vue-data-ui 3.0.0-next.31 → 3.0.0-next.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/dist/{Arrow-CjrRAMiU.js → Arrow-DiI9PrPS.js} +1 -1
  2. package/dist/{BaseDraggableDialog-Bat9k7_9.js → BaseDraggableDialog-C0Kz_kZp.js} +2 -2
  3. package/dist/{BaseIcon-DGtQbkFy.js → BaseIcon-B_tGgA4H.js} +1 -1
  4. package/dist/{ColorPicker-DowMg7RO.js → ColorPicker-CNsQt00F.js} +2 -2
  5. package/dist/{DataTable-DAZn6udI.js → DataTable-Cm1oLidx.js} +2 -2
  6. package/dist/{Legend-DCsRNGsk.js → Legend-DlUDcF1t.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-BhfZ3RsC.js → NonSvgPenAndPaper-CLlxRJK1.js} +3 -3
  8. package/dist/{PackageVersion-CJPhC_FI.js → PackageVersion-DZMJZGOu.js} +1 -1
  9. package/dist/{PenAndPaper-kGe5NPSy.js → PenAndPaper-BDNLADWh.js} +3 -3
  10. package/dist/{Shape-D6ahkZT8.js → Shape-Br_SZ_x0.js} +1 -1
  11. package/dist/Slicer-DMU3nifX.js +588 -0
  12. package/dist/{SparkTooltip-1EkqR7Qj.js → SparkTooltip-B6xp9zx_.js} +1 -1
  13. package/dist/{Title-gfAAMBE3.js → Title-B5lsq0cx.js} +1 -1
  14. package/dist/{Tooltip-eZi8Q0Mr.js → Tooltip-CrAURNKT.js} +1 -1
  15. package/dist/{UserOptions-Dd0OHMn7.js → UserOptions-CksX2mn0.js} +2 -2
  16. package/dist/{dom-to-png-CwBiVDQT.js → dom-to-png-CIBDe8BB.js} +1 -1
  17. package/dist/{img-FayRC7eM.js → img-CWXYkVMQ.js} +1 -1
  18. package/dist/{index-CvyDwC1y.js → index-DB4XIP_N.js} +9 -2
  19. package/dist/{pdf-B_EkQtoL.js → pdf-Dm-ieKMv.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +9 -1
  22. package/dist/types/vue-data-ui.d.ts +9 -1
  23. package/dist/{useNestedProp-B-ULAHAH.js → useNestedProp-iTa19l34.js} +1 -1
  24. package/dist/{usePrinter-BAQfJI9j.js → usePrinter-id381vkp.js} +2 -2
  25. package/dist/{vue-data-ui-Drw9rZ27.js → vue-data-ui-WdvK3lBL.js} +64 -64
  26. package/dist/vue-data-ui.js +1 -1
  27. package/dist/{vue-ui-3d-bar-Bu68MVtW.js → vue-ui-3d-bar-CtiAXSRA.js} +6 -6
  28. package/dist/{vue-ui-accordion-ErGvIA2d.js → vue-ui-accordion-DAT3uTMD.js} +3 -3
  29. package/dist/{vue-ui-age-pyramid-CeTpdJmu.js → vue-ui-age-pyramid-LuljyG04.js} +6 -6
  30. package/dist/{vue-ui-annotator-DneaduAI.js → vue-ui-annotator-CzHa2GlG.js} +2 -2
  31. package/dist/{vue-ui-bullet-gol3S_xU.js → vue-ui-bullet-BEzXYrWC.js} +7 -7
  32. package/dist/{vue-ui-candlestick-BIjOGylw.js → vue-ui-candlestick-DSaFw3wl.js} +7 -7
  33. package/dist/{vue-ui-carousel-table-DMIknisD.js → vue-ui-carousel-table-D1CLPWmk.js} +4 -4
  34. package/dist/{vue-ui-chestnut-BpaWvBdS.js → vue-ui-chestnut-D3FNLdep.js} +5 -5
  35. package/dist/{vue-ui-chord-BxtcK3_z.js → vue-ui-chord-CFT-LcE4.js} +8 -8
  36. package/dist/{vue-ui-circle-pack-C1VhKFJH.js → vue-ui-circle-pack-Bl_cyLTg.js} +6 -6
  37. package/dist/{vue-ui-cursor-BfBzN6pL.js → vue-ui-cursor-C2XYAY0n.js} +2 -2
  38. package/dist/{vue-ui-dashboard-BkJ-_5VM.js → vue-ui-dashboard-4ZwAsn1N.js} +62 -62
  39. package/dist/{vue-ui-digits-DiVIJnu1.js → vue-ui-digits-Da5mTaOQ.js} +2 -2
  40. package/dist/{vue-ui-donut-Bzs1fvFg.js → vue-ui-donut-B6QlrBEH.js} +8 -8
  41. package/dist/{vue-ui-donut-evolution-CphzEyQm.js → vue-ui-donut-evolution-Tv7oj7TE.js} +8 -8
  42. package/dist/{vue-ui-dumbbell-DZ_K-uO1.js → vue-ui-dumbbell-LNnnDec4.js} +7 -7
  43. package/dist/{vue-ui-flow-B1Smp670.js → vue-ui-flow-B618L2Da.js} +7 -7
  44. package/dist/{vue-ui-funnel-MxaU-Y6j.js → vue-ui-funnel-DS_tcSnW.js} +6 -6
  45. package/dist/{vue-ui-galaxy-CuIvJuky.js → vue-ui-galaxy-C5qk-fEV.js} +5 -5
  46. package/dist/{vue-ui-gauge-CQa1ARJW.js → vue-ui-gauge-C33XPj6b.js} +6 -6
  47. package/dist/{vue-ui-gizmo-CYD2DkWS.js → vue-ui-gizmo-Cr6zUxnq.js} +3 -3
  48. package/dist/{vue-ui-heatmap-DPKVxs97.js → vue-ui-heatmap-ksiw1nTI.js} +7 -7
  49. package/dist/{vue-ui-history-plot-CfaqUSG0.js → vue-ui-history-plot-DM_vTyiY.js} +7 -7
  50. package/dist/{vue-ui-kpi-BF7LY0ml.js → vue-ui-kpi-BgFQSUVT.js} +3 -3
  51. package/dist/{vue-ui-mini-loader-paPzy6bc.js → vue-ui-mini-loader-BEpehl5X.js} +2 -2
  52. package/dist/{vue-ui-molecule-s8MbsyOD.js → vue-ui-molecule-BIQFbPof.js} +5 -5
  53. package/dist/{vue-ui-mood-radar-DJVB6bAz.js → vue-ui-mood-radar-RShxk3Bz.js} +7 -7
  54. package/dist/{vue-ui-nested-donuts-Cj6UWI-E.js → vue-ui-nested-donuts-dMBxBBnZ.js} +9 -9
  55. package/dist/{vue-ui-onion-CZPQVM2E.js → vue-ui-onion-ZVZ6wpNM.js} +7 -7
  56. package/dist/{vue-ui-parallel-coordinate-plot-BFjFaGPP.js → vue-ui-parallel-coordinate-plot-1a3BGVsh.js} +8 -8
  57. package/dist/{vue-ui-quadrant-BliWKYkH.js → vue-ui-quadrant-XCnxKrJd.js} +8 -8
  58. package/dist/{vue-ui-quick-chart-BnsIAVwN.js → vue-ui-quick-chart-BQJqdHxB.js} +6 -6
  59. package/dist/{vue-ui-radar-BKWpjRbP.js → vue-ui-radar-CeXlq2A-.js} +7 -7
  60. package/dist/{vue-ui-rating-BfGF_GEg.js → vue-ui-rating-DTq-mZyU.js} +2 -2
  61. package/dist/{vue-ui-relation-circle-5U3oW2sT.js → vue-ui-relation-circle-k8viefM-.js} +6 -6
  62. package/dist/{vue-ui-ridgeline-Ch5zmtxC.js → vue-ui-ridgeline-B8oddwmZ.js} +8 -8
  63. package/dist/{vue-ui-rings-B0NyCg-p.js → vue-ui-rings-9XT1ePuY.js} +8 -8
  64. package/dist/{vue-ui-scatter-Xv9oRiGO.js → vue-ui-scatter-oM-LVerf.js} +8 -8
  65. package/dist/{vue-ui-skeleton-B-AdrWNd.js → vue-ui-skeleton-DDLBx4bb.js} +3 -3
  66. package/dist/{vue-ui-smiley-snwlluW9.js → vue-ui-smiley-D5ybBkdY.js} +2 -2
  67. package/dist/{vue-ui-spark-trend-DSdhsrCl.js → vue-ui-spark-trend-Tl-sOjqa.js} +3 -3
  68. package/dist/{vue-ui-sparkbar-eABecvjz.js → vue-ui-sparkbar-Ce6dYcF4.js} +3 -3
  69. package/dist/{vue-ui-sparkgauge-DFsW13y7.js → vue-ui-sparkgauge-DRHrbpSl.js} +3 -3
  70. package/dist/{vue-ui-sparkhistogram-DPzGXjFj.js → vue-ui-sparkhistogram-DBtPWFim.js} +4 -4
  71. package/dist/{vue-ui-sparkline-B5OPRjNU.js → vue-ui-sparkline-DcF2ugGh.js} +3 -3
  72. package/dist/{vue-ui-sparkstackbar-CVBdITIs.js → vue-ui-sparkstackbar-C01iI0y3.js} +3 -3
  73. package/dist/{vue-ui-stackbar-BTr1BBN4.js → vue-ui-stackbar-BeCCgw_v.js} +9 -9
  74. package/dist/{vue-ui-strip-plot-54NtDb0A.js → vue-ui-strip-plot-CsK2a1mH.js} +7 -7
  75. package/dist/{vue-ui-table-B3FWWAuR.js → vue-ui-table-COjBJDmq.js} +3 -3
  76. package/dist/{vue-ui-table-heatmap-BTWwkQXu.js → vue-ui-table-heatmap-DfxMcAr9.js} +5 -5
  77. package/dist/{vue-ui-table-sparkline-L_VfVY3_.js → vue-ui-table-sparkline-0BC6BxKt.js} +4 -4
  78. package/dist/{vue-ui-thermometer-BYg-tLqb.js → vue-ui-thermometer-Bf2_qGBi.js} +6 -6
  79. package/dist/{vue-ui-timer-Bsm1nthM.js → vue-ui-timer-BC9tH4qB.js} +5 -5
  80. package/dist/{vue-ui-tiremarks-DDNjDbqV.js → vue-ui-tiremarks-ya8ABi9I.js} +6 -6
  81. package/dist/{vue-ui-treemap-4Rb7juUd.js → vue-ui-treemap-BSHptMc8.js} +8 -8
  82. package/dist/{vue-ui-vertical-bar-BBUHbyBk.js → vue-ui-vertical-bar-B_Oa-v87.js} +9 -9
  83. package/dist/{vue-ui-waffle-B0pPICBw.js → vue-ui-waffle-DHB8v3nh.js} +8 -8
  84. package/dist/{vue-ui-wheel-DsxxqjAU.js → vue-ui-wheel-Bi28_KVB.js} +6 -6
  85. package/dist/{vue-ui-word-cloud-Bcy11LqK.js → vue-ui-word-cloud-BcQ2cfcu.js} +6 -6
  86. package/dist/{vue-ui-world-6gaLWJY0.js → vue-ui-world-aLL9NUDQ.js} +6 -6
  87. package/dist/vue-ui-xy-BxonzF88.js +3710 -0
  88. package/dist/{vue-ui-xy-canvas-dEh72fwk.js → vue-ui-xy-canvas-sUpmc7gl.js} +8 -8
  89. package/package.json +1 -1
  90. package/dist/Slicer-CUUN5Npc.js +0 -577
  91. package/dist/vue-ui-xy-DH1dcD0K.js +0 -3031
@@ -0,0 +1,3710 @@
1
+ import { useCssVars as Ga, computed as k, ref as p, onMounted as yt, onBeforeUnmount as pt, watch as Ke, nextTick as Wl, onUpdated as Ua, createElementBlock as i, openBlock as u, createElementVNode as b, createCommentVNode as h, renderSlot as Z, normalizeStyle as T, createVNode as Fl, withDirectives as Nt, unref as v, Fragment as g, renderList as L, normalizeClass as Ce, vModelText as ga, toDisplayString as le, defineAsyncComponent as dl, useSlots as qa, getCurrentInstance as Za, toRefs as Ja, watchEffect as Ka, createBlock as We, createSlots as Qa, withCtx as me, normalizeProps as ol, guardReactiveProps as hl, mergeProps as ft, vModelCheckbox as ja, createTextVNode as eo } from "vue";
2
+ import { c as bt, V as kt, U as wt, X as lo, F as Xe, u as to, e as Tt, A as ao, a5 as ul, b as oo, D as ot, ac as Al, d as uo, p as so, ad as gt, aa as Y, ae as io, v as V, af as ma, ag as xa, ah as no, ai as ba, aj as ya, i as ke, x as ro, y as co, _ as pa, R as Je, f as Re, w as Cl, s as Ye, a8 as Q, L as vo, ak as mt, I as ho, al as fl, C as Pe, t as fo, a as go, o as ka, q as mo, r as xo, E as Bl } from "./index-DB4XIP_N.js";
3
+ import { u as Ot } from "./useNestedProp-iTa19l34.js";
4
+ import { u as bo } from "./useTimeLabels-DFkUfjfs.js";
5
+ import { u as yo } from "./useTimeLabelCollider-V7AOiPLB.js";
6
+ import { S as po } from "./Slicer-DMU3nifX.js";
7
+ import ko from "./BaseIcon-B_tGgA4H.js";
8
+ import { t as Rt, u as wo } from "./useResponsive-DfdjqQps.js";
9
+ import { _ as wa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
+ import So from "./Title-B5lsq0cx.js";
11
+ import { _ as xt } from "./Shape-Br_SZ_x0.js";
12
+ import $o from "./img-CWXYkVMQ.js";
13
+ import { u as _o } from "./usePrinter-id381vkp.js";
14
+ import { u as Lo, B as Mo } from "./BaseScanner-DIK2NTdp.js";
15
+ const Ao = {
16
+ class: "vue-data-ui-slicer-labels",
17
+ style: { position: "relative", "z-index": "1", "pointer-events": "none" }
18
+ }, Co = {
19
+ key: 0,
20
+ style: { width: "100%", position: "relative" }
21
+ }, zo = {
22
+ key: 0,
23
+ class: "minimap",
24
+ style: { width: "100%" }
25
+ }, Io = ["xmlns", "viewBox"], To = ["id"], Oo = ["stop-color"], No = ["d", "stroke"], Ro = ["x", "width", "height", "fill", "rx"], Po = ["d", "fill"], Ho = ["x", "width", "height", "rx", "fill"], Vo = ["x", "width", "height", "fill", "rx"], Eo = ["d", "fill"], Bo = ["d", "stroke"], Fo = ["cx", "cy", "stroke", "fill"], Wo = ["cx", "cy", "stroke", "fill"], Yo = ["x1", "x2", "y2", "stroke"], Xo = ["x", "height", "width", "onMouseenter"], Do = ["min", "max"], Go = ["min", "max"], Uo = {
26
+ __name: "SlicerPreview",
27
+ props: {
28
+ background: {
29
+ type: String,
30
+ default: "#FFFFFF"
31
+ },
32
+ borderColor: {
33
+ type: String,
34
+ default: "#FFFFFF"
35
+ },
36
+ fontSize: {
37
+ type: Number,
38
+ default: 14
39
+ },
40
+ labelLeft: {
41
+ type: [String, Number],
42
+ default: ""
43
+ },
44
+ labelRight: {
45
+ type: [String, Number],
46
+ default: ""
47
+ },
48
+ textColor: {
49
+ type: String,
50
+ default: "#1A1A1A"
51
+ },
52
+ inputColor: {
53
+ type: String,
54
+ default: "#1A1A1A"
55
+ },
56
+ max: {
57
+ type: Number,
58
+ default: 0
59
+ },
60
+ min: {
61
+ type: Number,
62
+ default: 0
63
+ },
64
+ selectColor: {
65
+ type: String,
66
+ default: "#4A4A4A"
67
+ },
68
+ useResetSlot: {
69
+ type: Boolean,
70
+ default: !1
71
+ },
72
+ valueStart: {
73
+ type: [Number, String],
74
+ default: 0
75
+ },
76
+ valueEnd: {
77
+ type: [Number, String],
78
+ default: 0
79
+ },
80
+ minimap: {
81
+ type: Array,
82
+ default: []
83
+ },
84
+ smoothMinimap: {
85
+ type: Boolean,
86
+ default: !1
87
+ },
88
+ minimapSelectedColor: {
89
+ type: String,
90
+ default: "#1f77b4"
91
+ },
92
+ minimapSelectionRadius: {
93
+ type: Number,
94
+ default: 12
95
+ },
96
+ minimapLineColor: {
97
+ type: String,
98
+ default: "#2D353C"
99
+ },
100
+ minimapSelectedColorOpacity: {
101
+ type: Number,
102
+ default: 0.2
103
+ },
104
+ minimapSelectedIndex: {
105
+ type: Number,
106
+ default: null
107
+ },
108
+ minimapIndicatorColor: {
109
+ type: String,
110
+ default: "#2D353C"
111
+ },
112
+ refreshStartPoint: {
113
+ type: Number,
114
+ default: 0
115
+ },
116
+ refreshEndPoint: {
117
+ type: Number,
118
+ default: null
119
+ },
120
+ enableRangeHandles: {
121
+ type: Boolean,
122
+ default: !1
123
+ },
124
+ enableSelectionDrag: {
125
+ type: Boolean,
126
+ default: !0
127
+ },
128
+ verticalHandles: {
129
+ type: Boolean,
130
+ default: !1
131
+ }
132
+ },
133
+ emits: ["futureStart", "futureEnd", "update:start", "update:end", "reset", "trapMouse"],
134
+ setup(w, { expose: St, emit: $t }) {
135
+ Ga((m) => ({
136
+ "231ddff6": yl.value,
137
+ "89d92f2c": ze.value,
138
+ "620c7e5b": _t.value,
139
+ c96eaccc: w.selectColor,
140
+ "047ab728": pl.value
141
+ }));
142
+ const d = w, De = p(null), ve = p(d.min), fe = p(d.max), gl = k(() => !!d.minimap.length), Yl = p(bt()), zl = p(0), ml = k({
143
+ get() {
144
+ return ve.value;
145
+ },
146
+ set(m) {
147
+ const y = Math.min(m, fe.value - 1);
148
+ ve.value = y, wl.value && (wl.value.value = String(y)), de("futureStart", y);
149
+ }
150
+ }), xl = k({
151
+ get() {
152
+ return fe.value;
153
+ },
154
+ set(m) {
155
+ const y = Math.max(m, ve.value + 1);
156
+ fe.value = y, He.value && (He.value.value = String(y)), de("futureEnd", y);
157
+ }
158
+ });
159
+ yt(() => {
160
+ const m = () => {
161
+ zl.value = De.value.getBoundingClientRect().width;
162
+ };
163
+ m();
164
+ const y = Rt(m, 50);
165
+ window.addEventListener("resize", y), pt(() => {
166
+ window.removeEventListener("resize", y);
167
+ });
168
+ });
169
+ let bl = null;
170
+ function Xl() {
171
+ clearTimeout(bl), bl = setTimeout(() => {
172
+ de("update:start", Number(ve.value)), de("update:end", Number(fe.value));
173
+ }, 150);
174
+ }
175
+ function Dl() {
176
+ clearTimeout(bl), de("update:start", Number(ve.value)), de("update:end", Number(fe.value));
177
+ }
178
+ const Gl = k(() => d.refreshEndPoint === null ? d.max : d.refreshEndPoint), de = $t, xe = k(() => {
179
+ const m = d.max - d.min, y = (ve.value - d.min) / m * 100, A = (fe.value - d.min) / m * 100, x = (y + A) / 2, oe = Ge.value ? `calc(${x}% - ${el.value.width}px)` : _e.value ? `calc(${x}%)` : `calc(${x}% - ${el.value.width / 2}px)`;
180
+ return {
181
+ left: `${y}%`,
182
+ width: `${A - y}%`,
183
+ background: d.selectColor,
184
+ tooltipLeft: `calc(${y}% - ${_e.value ? 0 : Zl.value / 2}px)`,
185
+ tooltipRight: `calc(${A}% - ${Ge.value ? Hl.value : Hl.value / 2}px)`,
186
+ tooltipCenter: oe,
187
+ arrowLeft: !_e.value,
188
+ arrowRight: !Ge.value
189
+ };
190
+ }), _e = k(() => De.value ? De.value.getBoundingClientRect().width * ((ve.value - d.min) / (d.max - d.min)) - Zl.value / 2 < 0 : !1), Ge = k(() => De.value ? De.value.getBoundingClientRect().width * ((fe.value - d.min) / (d.max - d.min)) + Hl.value / 2 > De.value.getBoundingClientRect().width : !1), yl = k(() => d.inputColor), pl = k(() => d.background), _t = k(() => `${d.selectColor}33`), ze = k(() => d.borderColor), Il = k(() => {
191
+ let m = [];
192
+ for (let y = 0; y < d.minimap.length; y += 1)
193
+ m.push(y);
194
+ return m;
195
+ });
196
+ function Qe() {
197
+ de("reset");
198
+ }
199
+ Ke(
200
+ () => d.min,
201
+ (m) => {
202
+ Number(ve.value) < Number(m) && (ve.value = Number(m)), Number(fe.value) < Number(m) && (fe.value = Number(m));
203
+ }
204
+ ), Ke(
205
+ () => d.max,
206
+ (m) => {
207
+ Number(ve.value) > Number(m) && (ve.value = Number(m)), Number(fe.value) > Number(m) && (fe.value = Number(m));
208
+ }
209
+ );
210
+ const kl = p(null), X = p({
211
+ width: 1,
212
+ height: 1
213
+ }), sl = p(null);
214
+ yt(() => {
215
+ if (gl.value) {
216
+ const m = Rt(() => {
217
+ const { width: y, height: A } = wo({
218
+ chart: kl.value
219
+ });
220
+ X.value.width = y, X.value.height = A - 47;
221
+ });
222
+ sl.value = new ResizeObserver(m), sl.value.observe(kl.value);
223
+ }
224
+ }), pt(() => {
225
+ sl.value && sl.value.disconnect();
226
+ });
227
+ const he = k(() => d.minimap.length ? X.value.width / d.minimap.length : 0), M = k(() => {
228
+ if (!d.minimap.length) return [];
229
+ const m = Math.max(...d.minimap), y = Math.min(...d.minimap) - 10, A = m - (y > 0 ? 0 : y), x = d.minimap.map((Lt, Jl) => {
230
+ const nt = Lt - y;
231
+ return {
232
+ x: X.value.width / d.minimap.length * Jl + he.value / 2,
233
+ y: X.value.height - nt / A * (X.value.height * 0.9)
234
+ };
235
+ }), oe = d.smoothMinimap ? kt(x) : wt(x), $l = [...x].slice(d.valueStart, d.valueEnd), it = d.smoothMinimap ? kt($l) : wt($l);
236
+ return {
237
+ fullSet: oe,
238
+ selectionSet: it,
239
+ sliced: $l,
240
+ firstPlot: x[d.valueStart],
241
+ lastPlot: x[d.valueEnd - 1]
242
+ };
243
+ }), Ie = k(() => ({
244
+ x: he.value * ve.value + he.value / 2,
245
+ width: X.value.width * ((fe.value - ve.value) / d.max) - he.value
246
+ })), ue = p(d.minimapSelectedIndex);
247
+ Ke(() => d.minimapSelectedIndex, (m) => {
248
+ ue.value = m + d.valueStart;
249
+ }, { immediate: !0 });
250
+ function se(m) {
251
+ ue.value = m, m >= d.valueStart && m < d.valueEnd && de("trapMouse", m - d.valueStart);
252
+ }
253
+ const Tl = p(0), wl = p(null), He = p(null);
254
+ function il(m) {
255
+ ve.value = m, wl.value && (wl.value.value = String(m)), de("futureStart", m), Xl();
256
+ }
257
+ function je(m) {
258
+ fe.value = m, He.value && (He.value.value = m), de("futureEnd", m), Xl();
259
+ }
260
+ const Ol = k(() => d.valueEnd - d.valueStart), Ve = p(!1);
261
+ let te = p(null);
262
+ const J = k(() => (zl.value - 48) / (d.max - d.min)), ut = k(() => (zl.value - 48) / (d.max - d.min) * Ol.value), st = p(2.5), Ul = k(() => {
263
+ const m = zl.value - 48;
264
+ return Math.ceil(
265
+ (d.max - d.min) / ((m - ut.value) / st.value)
266
+ );
267
+ }), nl = (m) => {
268
+ if (f.value = !0, !d.enableSelectionDrag)
269
+ return;
270
+ const y = m.type === "touchstart";
271
+ if ((y ? m.targetTouches[0].target : m.target).classList.contains("range-handle"))
272
+ return;
273
+ Ve.value = !0, te.value = y ? m.targetTouches[0].clientX : m.clientX;
274
+ const x = y ? H : Nl, oe = y ? Pl : Rl;
275
+ window.addEventListener(y ? "touchmove" : "mousemove", x, { passive: !1 }), window.addEventListener(y ? "touchend" : "mouseup", oe);
276
+ };
277
+ function Nl(m) {
278
+ ql(m.clientX);
279
+ }
280
+ function H(m) {
281
+ De.value.contains(m.target) && (m.target.classList.contains("range-handle") || (m.preventDefault(), ql(m.targetTouches[0].clientX)));
282
+ }
283
+ function ql(m) {
284
+ if (!Ve.value) return;
285
+ const y = m - te.value;
286
+ if (Math.abs(y) > J.value) {
287
+ if (y > 0) {
288
+ const A = Math.min(d.max, fe.value + Ul.value);
289
+ xl.value = A, ml.value = A - Ol.value;
290
+ } else {
291
+ const A = Math.max(d.min, ve.value - Ul.value);
292
+ ml.value = A, xl.value = A + Ol.value;
293
+ }
294
+ te.value = m;
295
+ }
296
+ }
297
+ function Rl() {
298
+ be("mousemove", "mouseup");
299
+ }
300
+ function Pl() {
301
+ be("touchmove", "touchend");
302
+ }
303
+ function be(m, y) {
304
+ Ve.value = !1, window.removeEventListener(m, Nl), window.removeEventListener(y, Rl), Dl();
305
+ }
306
+ const ye = p(!1), Ue = p(null), $ = p(null), Zl = p(1), Hl = p(1), f = p(!1);
307
+ function S() {
308
+ Ue.value && (Zl.value = Ue.value.getBoundingClientRect().width);
309
+ }
310
+ function Le() {
311
+ $.value && (Hl.value = $.value.getBoundingClientRect().width);
312
+ }
313
+ const Vl = p(0);
314
+ function Sl(m) {
315
+ Vl.value = m === "start" ? 1 : 0;
316
+ }
317
+ const l = p(!1), el = p({
318
+ width: 0,
319
+ left: 0
320
+ });
321
+ return Ke([ve, fe], async () => {
322
+ if (await Wl(), !Ue.value || !$.value) {
323
+ l.value = !1, el.value = { width: 0, left: 0 };
324
+ return;
325
+ }
326
+ const m = Ue.value.getBoundingClientRect(), y = $.value.getBoundingClientRect();
327
+ l.value = m.x + m.width > y.x;
328
+ const A = m.x + m.width / 2, x = y.x + y.width / 2, oe = m.width + y.width, $l = (A + x) / 2;
329
+ el.value = {
330
+ width: oe,
331
+ left: $l - oe / 2
332
+ };
333
+ }), Ua(() => {
334
+ S(), Le();
335
+ }), Ke(() => d.labelLeft, () => {
336
+ Wl(S);
337
+ }, { deep: !0 }), Ke(() => d.labelRight, () => {
338
+ Wl(Le);
339
+ }, { deep: !0 }), St({
340
+ setStartValue: il,
341
+ setEndValue: je
342
+ }), (m, y) => (u(), i("div", {
343
+ "data-dom-to-png-ignore": "",
344
+ style: { padding: "0 24px" },
345
+ class: "vue-data-ui-zoom",
346
+ ref_key: "zoomWrapper",
347
+ ref: De,
348
+ onMousedown: nl,
349
+ onTouchstart: nl
350
+ }, [
351
+ b("div", Ao, [
352
+ w.valueStart !== w.refreshStartPoint || w.valueEnd !== Gl.value ? (u(), i("div", Co, [
353
+ w.useResetSlot ? Z(m.$slots, "reset-action", {
354
+ key: 1,
355
+ reset: Qe
356
+ }, void 0, !0) : (u(), i("button", {
357
+ key: 0,
358
+ tabindex: "0",
359
+ role: "button",
360
+ class: "vue-data-ui-refresh-button",
361
+ style: T({
362
+ top: gl.value ? "36px" : "-16px",
363
+ pointerEvents: "all !important"
364
+ }),
365
+ onClick: Qe
366
+ }, [
367
+ Fl(ko, {
368
+ name: "refresh",
369
+ stroke: w.textColor
370
+ }, null, 8, ["stroke"])
371
+ ], 4))
372
+ ])) : h("", !0)
373
+ ]),
374
+ b("div", {
375
+ class: "double-range-slider",
376
+ ref_key: "minimapWrapper",
377
+ ref: kl,
378
+ style: { "z-index": "0" },
379
+ onMouseenter: y[11] || (y[11] = (A) => f.value = !0),
380
+ onMouseleave: y[12] || (y[12] = (A) => f.value = !1)
381
+ }, [
382
+ gl.value ? (u(), i("div", zo, [
383
+ (u(), i("svg", {
384
+ xmlns: v(lo),
385
+ viewBox: `0 0 ${X.value.width < 0 ? 0 : X.value.width} ${X.value.height < 0 ? 0 : X.value.height}`
386
+ }, [
387
+ b("defs", null, [
388
+ b("linearGradient", {
389
+ id: Yl.value,
390
+ x1: "0%",
391
+ y1: "0%",
392
+ x2: "0%",
393
+ y2: "100%"
394
+ }, [
395
+ b("stop", {
396
+ offset: "0%",
397
+ "stop-color": `${w.minimapLineColor}50`
398
+ }, null, 8, Oo),
399
+ y[13] || (y[13] = b("stop", {
400
+ offset: "100%",
401
+ "stop-color": "transparent"
402
+ }, null, -1))
403
+ ], 8, To)
404
+ ]),
405
+ b("path", {
406
+ d: `M${M.value.fullSet}`,
407
+ stroke: `${w.minimapLineColor}`,
408
+ fill: "none",
409
+ "stroke-width": "1",
410
+ "stroke-linecap": "round",
411
+ "stroke-linejoin": "round",
412
+ style: { opacity: "1" }
413
+ }, null, 8, No),
414
+ b("rect", {
415
+ x: Ie.value.x,
416
+ width: Ie.value.width < 0 ? 0 : Ie.value.width,
417
+ height: Math.max(X.value.height, 0),
418
+ y: 0,
419
+ fill: ze.value,
420
+ rx: w.minimapSelectionRadius,
421
+ stroke: "none"
422
+ }, null, 8, Ro),
423
+ b("path", {
424
+ d: `M${he.value / 2},${Math.max(X.value.height, 0)} ${M.value.fullSet} L${X.value.width - he.value / 2},${Math.max(X.value.height, 0)}Z`,
425
+ fill: `url(#${Yl.value})`,
426
+ stroke: "none",
427
+ style: { opacity: "1" }
428
+ }, null, 8, Po),
429
+ b("rect", {
430
+ x: Ie.value.x,
431
+ width: Ie.value.width < 0 ? 0 : Ie.value.width,
432
+ height: Math.max(X.value.height, 0),
433
+ y: 0,
434
+ rx: w.minimapSelectionRadius,
435
+ fill: ze.value
436
+ }, null, 8, Ho),
437
+ b("rect", {
438
+ x: Ie.value.x,
439
+ width: Ie.value.width < 0 ? 0 : Ie.value.width,
440
+ height: Math.max(X.value.height, 0),
441
+ y: 0,
442
+ fill: w.minimapSelectedColor,
443
+ rx: w.minimapSelectionRadius,
444
+ style: T({
445
+ opacity: w.minimapSelectedColorOpacity
446
+ })
447
+ }, null, 12, Vo),
448
+ b("path", {
449
+ d: `M${M.value.sliced[0].x},${Math.max(X.value.height, 0)} ${M.value.selectionSet} L${M.value.sliced.at(-1).x},${Math.max(X.value.height, 0)}Z`,
450
+ fill: `url(#${Yl.value})`,
451
+ stroke: "none",
452
+ style: { opacity: "1" }
453
+ }, null, 8, Eo),
454
+ b("path", {
455
+ d: `M ${M.value.selectionSet}`,
456
+ stroke: `${w.minimapLineColor}`,
457
+ fill: "transparent",
458
+ "stroke-width": "2",
459
+ "stroke-linecap": "round",
460
+ "stroke-linejoin": "round"
461
+ }, null, 8, Bo),
462
+ b("circle", {
463
+ cx: M.value.firstPlot.x,
464
+ cy: M.value.firstPlot.y,
465
+ "stroke-width": "0.5",
466
+ stroke: ze.value,
467
+ r: "3",
468
+ fill: w.minimapLineColor
469
+ }, null, 8, Fo),
470
+ b("circle", {
471
+ cx: M.value.lastPlot.x,
472
+ cy: M.value.lastPlot.y,
473
+ "stroke-width": "0.5",
474
+ stroke: ze.value,
475
+ r: "3",
476
+ fill: w.minimapLineColor
477
+ }, null, 8, Wo),
478
+ ue.value !== null ? (u(!0), i(g, { key: 0 }, L(Il.value, (A, x) => (u(), i("g", null, [
479
+ ue.value === A && A >= w.valueStart && A < w.valueEnd ? (u(), i("line", {
480
+ key: 0,
481
+ x1: he.value * x + he.value / 2,
482
+ x2: he.value * x + he.value / 2,
483
+ y1: 0,
484
+ y2: Math.max(X.value.height, 0),
485
+ stroke: w.minimapIndicatorColor,
486
+ "stroke-linecap": "round",
487
+ "stroke-dasharray": "2",
488
+ "stroke-width": "1"
489
+ }, null, 8, Yo)) : h("", !0)
490
+ ]))), 256)) : h("", !0),
491
+ (u(!0), i(g, null, L(Il.value, (A, x) => (u(), i("rect", {
492
+ x: he.value * x,
493
+ y: 0,
494
+ height: Math.max(X.value.height, 0),
495
+ width: he.value < 0 ? 0 : he.value,
496
+ fill: "transparent",
497
+ style: T([{ "pointer-events": "all !important" }, {
498
+ cursor: A >= w.valueStart && A < w.valueEnd && w.enableSelectionDrag ? ye.value ? "grabbing" : "grab" : "default"
499
+ }]),
500
+ onMousedown: y[0] || (y[0] = (oe) => ye.value = !0),
501
+ onMouseup: y[1] || (y[1] = (oe) => ye.value = !1),
502
+ onMouseenter: (oe) => se(A),
503
+ onMouseleave: y[2] || (y[2] = (oe) => {
504
+ ue.value = null, de("trapMouse", null);
505
+ })
506
+ }, null, 44, Xo))), 256))
507
+ ], 8, Io))
508
+ ])) : h("", !0),
509
+ y[14] || (y[14] = b("div", { class: "slider-track" }, null, -1)),
510
+ b("div", {
511
+ class: Ce({
512
+ "range-highlight": !0,
513
+ move: w.enableSelectionDrag
514
+ }),
515
+ onMousedown: y[3] || (y[3] = (A) => ye.value = !0),
516
+ onMouseup: y[4] || (y[4] = (A) => ye.value = !1),
517
+ style: T({
518
+ ...xe.value,
519
+ cursor: ye.value ? "grabbing" : "grab"
520
+ })
521
+ }, null, 38),
522
+ w.enableRangeHandles ? Nt((u(), i("input", {
523
+ ref_key: "rangeStart",
524
+ ref: wl,
525
+ key: `range-min${Tl.value}`,
526
+ type: "range",
527
+ class: Ce({ "range-left": !0, "range-handle": !0, "range-minimap": gl.value && w.verticalHandles }),
528
+ min: w.min,
529
+ max: w.max,
530
+ "onUpdate:modelValue": y[5] || (y[5] = (A) => ml.value = A),
531
+ onInuput: il,
532
+ onMouseenter: y[6] || (y[6] = (A) => Sl("start")),
533
+ onPointermove: y[7] || (y[7] = (A) => ml.value = +A.target.value),
534
+ onPointerup: Dl
535
+ }, null, 42, Do)), [
536
+ [
537
+ ga,
538
+ ml.value,
539
+ void 0,
540
+ { number: !0 }
541
+ ]
542
+ ]) : h("", !0),
543
+ w.enableRangeHandles ? Nt((u(), i("input", {
544
+ key: 2,
545
+ ref_key: "rangeEnd",
546
+ ref: He,
547
+ type: "range",
548
+ class: Ce({ "range-right": !0, "range-handle": !0, "range-minimap": gl.value && w.verticalHandles }),
549
+ min: w.min,
550
+ max: w.max,
551
+ "onUpdate:modelValue": y[8] || (y[8] = (A) => xl.value = A),
552
+ onInuput: je,
553
+ onMouseenter: y[9] || (y[9] = (A) => Sl("end")),
554
+ onPointermove: y[10] || (y[10] = (A) => xl.value = +A.target.value),
555
+ onPointerup: Dl
556
+ }, null, 42, Go)), [
557
+ [
558
+ ga,
559
+ xl.value,
560
+ void 0,
561
+ { number: !0 }
562
+ ]
563
+ ]) : h("", !0),
564
+ w.labelLeft ? (u(), i("div", {
565
+ key: 3,
566
+ ref_key: "tooltipLeft",
567
+ ref: Ue,
568
+ class: Ce({
569
+ "range-tooltip": !0,
570
+ "range-tooltip-visible": f.value,
571
+ "range-tooltip-arrow": xe.value.arrowLeft && !w.verticalHandles,
572
+ "range-tooltip-arrow-left": !xe.value.arrowLeft && !w.verticalHandles
573
+ }),
574
+ style: T({
575
+ left: xe.value.tooltipLeft,
576
+ color: v(Xe)(w.selectColor),
577
+ backgroundColor: w.selectColor,
578
+ border: `1px solid ${ze.value}`,
579
+ zIndex: `${Vl.value + 4}`,
580
+ visibility: l.value || w.labelLeft === w.labelRight ? "hidden" : "visible"
581
+ })
582
+ }, le(w.labelLeft), 7)) : h("", !0),
583
+ l.value || w.labelLeft === w.labelRight ? (u(), i("div", {
584
+ key: 4,
585
+ ref: "tooltipMerge",
586
+ class: Ce({
587
+ "range-tooltip": !0,
588
+ "range-tooltip-visible": f.value,
589
+ "range-tooltip-arrow": !0,
590
+ "range-tooltip-arrow-left": !xe.value.arrowLeft && !w.verticalHandles,
591
+ "range-tooltip-arrow-right": !xe.value.arrowRight && !w.verticalHandles
592
+ }),
593
+ style: T({
594
+ left: xe.value.tooltipCenter,
595
+ width: el.value.width + "px",
596
+ color: v(Xe)(w.selectColor),
597
+ backgroundColor: w.selectColor,
598
+ border: `1px solid ${ze.value}`,
599
+ zIndex: "4"
600
+ })
601
+ }, le(w.labelLeft === w.labelRight ? w.labelLeft : `${w.labelLeft} - ${w.labelRight}`), 7)) : h("", !0),
602
+ w.labelRight ? (u(), i("div", {
603
+ key: 5,
604
+ ref_key: "tooltipRight",
605
+ ref: $,
606
+ class: Ce({
607
+ "range-tooltip": !0,
608
+ "range-tooltip-visible": f.value,
609
+ "range-tooltip-arrow": xe.value.arrowRight && !w.verticalHandles,
610
+ "range-tooltip-arrow-right": !xe.value.arrowRight && !w.verticalHandles
611
+ }),
612
+ style: T({
613
+ left: xe.value.tooltipRight,
614
+ color: v(Xe)(w.selectColor),
615
+ backgroundColor: w.selectColor,
616
+ border: `1px solid ${ze.value}`,
617
+ zIndex: "4",
618
+ visibility: l.value || w.labelLeft === w.labelRight ? "hidden" : "visible"
619
+ })
620
+ }, le(w.labelRight), 7)) : h("", !0)
621
+ ], 544)
622
+ ], 544));
623
+ }
624
+ }, qo = /* @__PURE__ */ wa(Uo, [["__scopeId", "data-v-79b2efbf"]]), Zo = ["id"], Jo = ["viewBox", "aria-label"], Ko = ["x", "y", "width", "height"], Qo = { key: 1 }, jo = { class: "vue-ui-xy-grid" }, eu = ["stroke", "x1", "x2", "y1", "y2"], lu = ["stroke", "x1", "x2", "y1", "y2"], tu = { key: 1 }, au = ["x1", "x2", "y1", "y2", "stroke"], ou = ["x1", "x2", "y1", "y2", "stroke"], uu = ["x1", "x2", "y1", "y2", "stroke"], su = { key: 3 }, iu = ["d", "stroke"], nu = { key: 4 }, ru = ["d", "stroke"], cu = ["id"], vu = ["stop-color"], du = ["stop-color"], hu = ["stop-color"], fu = ["id"], gu = ["stop-color"], mu = ["stop-color"], xu = ["stop-color"], bu = ["id"], yu = ["stop-color"], pu = ["stop-color"], ku = ["id"], wu = ["stop-color"], Su = ["stop-color"], $u = ["id"], _u = ["stop-color"], Lu = ["stop-color"], Mu = ["x", "y", "height", "width", "fill"], Au = ["x", "y", "width"], Cu = { key: 0 }, zu = ["x", "y", "height", "width", "fill"], Iu = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Tu = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Ou = ["width", "x", "y"], Nu = { key: 0 }, Ru = ["id"], Pu = ["fill"], Hu = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Vu = ["x", "y", "font-size", "fill"], Eu = ["stroke", "x1", "x2", "y1", "y2"], Bu = { key: 3 }, Fu = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Wu = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], Yu = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Xu = ["fill", "font-size", "transform"], Du = ["x1", "x2", "y1", "y2", "stroke"], Gu = ["x", "y", "font-size", "fill"], Uu = ["x1", "x2", "y1", "y2", "stroke"], qu = ["x", "y", "font-size", "fill"], Zu = ["width", "x", "y"], Ju = { style: { width: "100%" } }, Ku = { key: 0 }, Qu = ["id"], ju = ["fill"], es = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ls = ["x", "y", "font-size", "fill"], ts = ["d", "stroke", "stroke-width", "stroke-dasharray"], as = ["d", "stroke", "stroke-width", "stroke-dasharray"], os = { key: 6 }, us = { key: 0 }, ss = ["d", "fill"], is = ["d", "fill"], ns = ["d", "fill"], rs = ["d", "fill"], cs = ["d", "stroke", "stroke-width", "stroke-dasharray"], vs = ["d", "stroke", "stroke-width", "stroke-dasharray"], ds = ["width", "x", "y"], hs = { style: { width: "100%" } }, fs = { key: 3 }, gs = ["id"], ms = ["fill"], xs = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], bs = ["x", "y", "font-size", "fill"], ys = { key: 7 }, ps = ["x", "y", "font-size", "fill"], ks = ["x", "y", "font-size", "fill", "font-weight"], ws = { key: 8 }, Ss = ["x", "y", "font-size", "fill"], $s = { key: 9 }, _s = ["x", "y"], Ls = ["innerHTML"], Ms = ["x", "y"], As = ["innerHTML"], Cs = ["x1", "x2", "y1", "y2", "stroke"], zs = { key: 10 }, Is = ["x", "y", "font-size", "fill"], Ts = { key: 11 }, Os = ["x", "y"], Ns = ["innerHTML"], Rs = ["x", "y"], Ps = ["innerHTML"], Hs = ["x1", "x2", "y1", "y2", "stroke"], Vs = ["x", "y", "font-size", "fill", "innerHTML"], Es = ["x", "y", "font-size", "fill", "innerHTML"], Bs = ["x", "y", "font-size", "fill", "innerHTML"], Fs = ["x", "y", "font-size", "fill", "innerHTML"], Ws = ["id"], Ys = ["stop-color"], Xs = ["stop-color"], Ds = ["x", "y", "width", "height", "fill", "onMouseenter"], Gs = ["font-size", "fill", "transform"], Us = ["x", "y", "font-size", "fill"], qs = ["text-anchor", "font-size", "fill", "transform", "onClick"], Zs = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], Js = { key: 14 }, Ks = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], Qs = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], js = ["y", "x", "width", "height", "fill"], ei = ["id", "x", "y", "font-size", "fill", "text-anchor"], li = {
625
+ key: 15,
626
+ style: { "pointer-events": "none" }
627
+ }, ti = ["x", "y"], ai = ["cx", "cy", "r", "fill"], oi = {
628
+ key: 4,
629
+ class: "vue-data-ui-watermark"
630
+ }, ui = {
631
+ class: "vue-ui-xy-tag-arrow",
632
+ height: "20",
633
+ viewBox: "0 0 10 20",
634
+ style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
635
+ }, si = ["fill"], ii = ["innerHTML"], ni = {
636
+ class: "vue-ui-xy-tag-arrow",
637
+ height: "100%",
638
+ viewBox: "0 0 10 20",
639
+ style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
640
+ }, ri = ["fill"], ci = ["innerHTML"], vi = {
641
+ class: "vue-ui-xy-tag-arrow",
642
+ height: "20",
643
+ viewBox: "0 0 10 20",
644
+ style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
645
+ }, di = ["fill"], hi = ["innerHTML"], fi = {
646
+ class: "vue-ui-xy-tag-arrow",
647
+ height: "100%",
648
+ viewBox: "0 0 10 20",
649
+ style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
650
+ }, gi = ["fill"], mi = ["innerHTML"], xi = ["onClick"], bi = {
651
+ key: 0,
652
+ viewBox: "0 0 20 12",
653
+ height: "14",
654
+ width: "20"
655
+ }, yi = ["stroke", "fill"], pi = {
656
+ key: 1,
657
+ viewBox: "0 0 40 40",
658
+ height: "14",
659
+ width: "14"
660
+ }, ki = ["fill"], wi = ["fill"], Si = {
661
+ key: 2,
662
+ viewBox: "0 0 12 12",
663
+ height: "14",
664
+ width: "14"
665
+ }, $i = {
666
+ style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
667
+ "data-dom-to-png-ignore": ""
668
+ }, _i = ["innerHTML"], Li = {
669
+ __name: "vue-ui-xy",
670
+ props: {
671
+ config: {
672
+ type: Object,
673
+ default() {
674
+ return {};
675
+ }
676
+ },
677
+ dataset: {
678
+ type: Array,
679
+ default() {
680
+ return [];
681
+ }
682
+ },
683
+ selectedXIndex: {
684
+ type: Number,
685
+ default: void 0
686
+ }
687
+ },
688
+ emits: ["selectTimeLabel", "selectX", "selectLegend"],
689
+ setup(w, { expose: St, emit: $t }) {
690
+ const d = w, De = dl(() => import("./DataTable-Cm1oLidx.js")), ve = dl(() => import("./Tooltip-CrAURNKT.js")), fe = dl(() => import("./UserOptions-CksX2mn0.js")), gl = dl(() => import("./BaseIcon-B_tGgA4H.js")), Yl = dl(() => import("./vue-ui-table-sparkline-0BC6BxKt.js")), zl = dl(() => import("./vue-ui-accordion-DAT3uTMD.js")), ml = dl(() => import("./PackageVersion-DZMJZGOu.js")), xl = dl(() => import("./PenAndPaper-BDNLADWh.js")), bl = $t, Xl = qa(), Dl = Za(), { vue_ui_xy: Gl } = to(), de = p(null), xe = p(null), _e = p(null), Ge = p(null), yl = p(null), pl = p(null), _t = p(null), ze = p(null), Il = p(null), Qe = p(null), kl = p(null), X = p(null), sl = p(null), he = p(0), M = p(null), Ie = p(!0), ue = p(600), se = p(1e3), Tl = p("0 0 1000 600"), wl = p({ x: 0, y: 0 }), He = p({ line: "line", bar: "bar", plot: "plot" }), il = p(!1), je = p(!1), Ol = p(!1), Ve = p(null), te = p([]), J = p(bt()), ut = p(0), st = p(0), Ul = p(0), nl = p(!0), Nl = p(0), H = p(null), ql = p(!1), Rl = p(!0), Pl = p(!0), be = p(null), ye = p({}), Ue = p(null), $ = p(null), Zl = k(() => ({
691
+ height: ue.value,
692
+ width: se.value
693
+ })), Hl = d.config.downsample && d.config.downsample.threshold ? d.config.downsample.threshold : 500, f = p({
694
+ dataLabels: { show: !0 },
695
+ showTooltip: !0,
696
+ showTable: !1,
697
+ isStacked: !1,
698
+ useIndividualScale: !1
699
+ }), S = p({
700
+ xAxis: 18,
701
+ yAxis: 12,
702
+ dataLabels: 20,
703
+ plotLabels: 10
704
+ }), Le = p({ plot: 3, line: 3 });
705
+ yt(() => {
706
+ d.dataset.length && d.dataset.forEach((t, c) => {
707
+ [null, void 0].includes(t.series) && Tt({
708
+ componentName: "VueUiXy",
709
+ type: "datasetSerieAttribute",
710
+ property: "series (number[])",
711
+ index: c,
712
+ debug: lt.value
713
+ });
714
+ });
715
+ });
716
+ function Vl() {
717
+ if (!Object.keys(d.config || {}).length)
718
+ return Gl;
719
+ const t = Ot({
720
+ userConfig: d.config,
721
+ defaultConfig: Gl
722
+ });
723
+ return d.config && Pe(d.config, "chart.highlightArea") && (Array.isArray(d.config.chart.highlightArea) ? t.chart.highlightArea = d.config.chart.highlightArea : t.chart.highlightArea = [d.config.chart.highlightArea]), d.config && Pe(d.config, "chart.grid.labels.yAxis.scaleMin") ? t.chart.grid.labels.yAxis.scaleMin = d.config.chart.grid.labels.yAxis.scaleMin : t.chart.grid.labels.yAxis.scaleMin = null, d.config && Pe(d.config, "chart.grid.labels.yAxis.scaleMax") ? t.chart.grid.labels.yAxis.scaleMax = d.config.chart.grid.labels.yAxis.scaleMax : t.chart.grid.labels.yAxis.scaleMax = null, d.config && Pe(d.config, "chart.zoom.startIndex") ? t.chart.zoom.startIndex = d.config.chart.zoom.startIndex : t.chart.zoom.startIndex = null, d.config && Pe(d.config, "chart.zoom.endIndex") ? t.chart.zoom.endIndex = d.config.chart.zoom.endIndex : t.chart.zoom.endIndex = null, d.config && Pe(d.config, "chart.grid.labels.yAxis.groupColor") ? t.chart.grid.labels.yAxis.groupColor = d.config.chart.grid.labels.yAxis.groupColor : t.chart.grid.labels.yAxis.groupColor = null, d.config && d.config.chart.annotations && Array.isArray(d.config.chart.annotations) && d.config.chart.annotations.length ? t.chart.annotations = d.config.chart.annotations.map((c) => Ot({
724
+ defaultConfig: Gl.chart.annotations[0],
725
+ userConfig: c
726
+ })) : t.chart.annotations = [], d.config && Pe(d.config, "chart.grid.position") && d.config.chart.grid.position === "start" && d.dataset.length && d.dataset.some((c) => c.type === "bar") && (t.chart.grid.position = "middle", Pe(d.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), d.config && Pe(d.config, "chart.grid.labels.yAxis.serieNameFormatter") ? t.chart.grid.labels.yAxis.serieNameFormatter = d.config.chart.grid.labels.yAxis.serieNameFormatter : t.chart.grid.labels.yAxis.serieNameFormatter = null, d.config && Pe(d.config, "events.datapointEnter") ? t.events.datapointEnter = d.config.events.datapointEnter : t.events.datapointEnter = null, d.config && Pe(d.config, "events.datapointLeave") ? t.events.datapointLeave = d.config.events.datapointLeave : t.events.datapointLeave = null, d.config && Pe(d.config, "events.datapointClick") ? t.events.datapointClick = d.config.events.datapointClick : t.events.datapointClick = null, t.theme ? {
727
+ ...Ot({
728
+ userConfig: go.vue_ui_xy[t.theme] || d.config,
729
+ defaultConfig: t
730
+ }),
731
+ customPalette: fo[t.theme] || d.palette
732
+ } : t;
733
+ }
734
+ const Sl = k({
735
+ get() {
736
+ return !!d.dataset && d.dataset.length;
737
+ },
738
+ set(t) {
739
+ return t;
740
+ }
741
+ }), l = p(Vl()), { loading: el, FINAL_DATASET: m, manualLoading: y } = Lo({
742
+ ...Ja(d),
743
+ FINAL_CONFIG: l,
744
+ prepareConfig: Vl,
745
+ callback: () => {
746
+ Promise.resolve().then(async () => {
747
+ await It();
748
+ });
749
+ },
750
+ skeletonDataset: [
751
+ {
752
+ name: "",
753
+ series: [0, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 134],
754
+ type: "line",
755
+ smooth: !0,
756
+ color: "#BABABA"
757
+ },
758
+ {
759
+ name: "",
760
+ series: [0, 0.5, 1, 1.5, 2.5, 4, 6.5, 10.5, 17, 27.5, 44.5, 67],
761
+ type: "bar",
762
+ color: "#CACACA"
763
+ }
764
+ ],
765
+ skeletonConfig: ao({
766
+ defaultConfig: l.value,
767
+ userConfig: {
768
+ useCssAnimation: !1,
769
+ showTable: !1,
770
+ chart: {
771
+ annotations: [],
772
+ highlightArea: [],
773
+ backgroundColor: "#99999930",
774
+ grid: {
775
+ stroke: "#6A6A6A",
776
+ labels: {
777
+ show: !1,
778
+ axis: {
779
+ yLabel: "",
780
+ xLabel: ""
781
+ },
782
+ xAxisLabels: { show: !1 },
783
+ yAxis: {
784
+ commonScaleSteps: 10,
785
+ useNiceScale: !0,
786
+ scaleMin: 0,
787
+ scaleMax: 134
788
+ },
789
+ zeroLine: { show: !0 }
790
+ }
791
+ },
792
+ legend: { show: !1 },
793
+ padding: {
794
+ top: 12,
795
+ bottom: 24,
796
+ left: 24,
797
+ right: 24
798
+ },
799
+ userOptions: { show: !1 },
800
+ zoom: {
801
+ show: !1,
802
+ startIndex: null,
803
+ endIndex: null
804
+ }
805
+ },
806
+ bar: {
807
+ serieName: { show: !1 },
808
+ labels: { show: !1 },
809
+ border: {
810
+ useSerieColor: !1,
811
+ stroke: "#999999"
812
+ }
813
+ },
814
+ line: {
815
+ dot: {
816
+ useSerieColor: !1,
817
+ fill: "#8A8A8A"
818
+ },
819
+ labels: { show: !1 }
820
+ }
821
+ }
822
+ })
823
+ }), A = k({
824
+ get: () => Math.max(...m.value.map((t) => ul({ data: t.series, threshold: Hl }).length)),
825
+ set: (t) => t
826
+ }), x = p({ start: 0, end: A.value }), oe = p({ start: 0, end: A.value }), $l = k(() => l.value.chart.zoom.preview.enable && (oe.value.start !== x.value.start || oe.value.end !== x.value.end));
827
+ function it(t, c) {
828
+ oe.value[t] = c;
829
+ }
830
+ const Lt = k(() => {
831
+ const { left: t, top: c, width: e, height: s } = r.value, a = x.value.start, o = x.value.end - a, P = e / o, D = oe.value.start - a, G = oe.value.end - a, z = Math.max(0, Math.min(o, D)), N = Math.max(0, Math.min(o, G));
832
+ return {
833
+ x: t + z * P,
834
+ y: c,
835
+ width: (N - z) * P,
836
+ height: s,
837
+ fill: l.value.chart.zoom.preview.fill,
838
+ stroke: l.value.chart.zoom.preview.stroke,
839
+ strokeWidth: l.value.chart.zoom.preview.strokeWidth,
840
+ strokeDasharray: l.value.chart.zoom.preview.strokeDasharray,
841
+ style: {
842
+ pointerEvents: "none",
843
+ transition: "all 0.1s ease-in-out",
844
+ animation: "none !important"
845
+ }
846
+ };
847
+ });
848
+ Ke(() => d.selectedXIndex, (t) => {
849
+ if ([null, void 0].includes(d.selectedXIndex)) {
850
+ $.value = null;
851
+ return;
852
+ }
853
+ const c = t - x.value.start;
854
+ c < 0 || t >= x.value.end ? $.value = null : $.value = c ?? null;
855
+ }, { immediate: !0 });
856
+ const { isPrinting: Jl, isImaging: nt, generatePdf: Pt, generateImage: Ht } = _o({
857
+ elementId: `vue-ui-xy_${J.value}`,
858
+ fileName: l.value.chart.title.text || "vue-ui-xy",
859
+ options: l.value.chart.userOptions.print
860
+ }), Sa = p(!1), Vt = k(() => oo(l.value.customPalette)), rt = k(() => l.value.chart.grid.labels.yAxis.scaleMax ? l.value.chart.grid.labels.yAxis.scaleMax : Math.max(...ll.value.filter((t) => !te.value.includes(t.id)).map((t) => Math.max(...t.series)))), Mt = k(() => {
861
+ if (l.value.chart.grid.labels.yAxis.scaleMin !== null)
862
+ return l.value.chart.grid.labels.yAxis.scaleMin;
863
+ const t = Math.min(...ll.value.filter((c) => !te.value.includes(c.id)).map((c) => Math.min(...c.series)));
864
+ return t > 0 ? 0 : t;
865
+ }), Ee = k(() => l.value.chart.grid.labels.yAxis.useNiceScale ? ot(Mt.value, rt.value < 0 ? 0 : rt.value, l.value.chart.grid.labels.yAxis.commonScaleSteps) : Al(Mt.value, rt.value < 0 ? 0 : rt.value, l.value.chart.grid.labels.yAxis.commonScaleSteps)), Kl = k(() => [null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) ? Ee.value.min >= 0 ? 0 : Math.abs(Ee.value.min) : -Ee.value.min), ll = k(() => Ie.value ? m.value.map((t, c) => {
866
+ const e = ul({
867
+ data: t.series,
868
+ threshold: l.value.downsample.threshold
869
+ }), s = `uniqueId_${c}`;
870
+ return {
871
+ ...t,
872
+ slotAbsoluteIndex: c,
873
+ series: e.map((a) => gt(a) ? a : null).slice(x.value.start, x.value.end),
874
+ color: uo(t.color ? t.color : Vt.value[c] ? Vt.value[c] : so[c]),
875
+ id: s,
876
+ scaleLabel: t.scaleLabel || s
877
+ };
878
+ }) : m.value), tl = k(() => ll.value.map((t, c) => ({
879
+ absoluteIndex: c,
880
+ ...t,
881
+ series: t.series.map((e) => e + Kl.value),
882
+ absoluteValues: t.series,
883
+ segregate: () => ea(t),
884
+ isSegregated: te.value.includes(t.id)
885
+ }))), Te = k(() => ll.value.map((t, c) => ({
886
+ ...t,
887
+ series: t.series.map((e) => e + Kl.value),
888
+ absoluteValues: t.series
889
+ })).filter((t) => !te.value.includes(t.id)));
890
+ function $a() {
891
+ let t = 0;
892
+ kl.value && (t = Array.from(kl.value.querySelectorAll("text")).reduce((a, n) => {
893
+ const o = n.getComputedTextLength();
894
+ return (o > a ? o : a) + l.value.chart.grid.labels.yAxis.scaleValueOffsetX;
895
+ }, 0));
896
+ const c = Il.value ? Il.value.getBoundingClientRect().width + l.value.chart.grid.labels.axis.yLabelOffsetX + S.value.yAxis : 0, e = l.value.chart.grid.labels.yAxis.crosshairSize;
897
+ return t + c + e;
898
+ }
899
+ const At = p(0), _a = Rt((t) => {
900
+ At.value = t;
901
+ }, 100);
902
+ Ka((t) => {
903
+ const c = Qe.value;
904
+ if (!c) return;
905
+ const e = new ResizeObserver((s) => {
906
+ _a(s[0].contentRect.height);
907
+ });
908
+ e.observe(c), t(() => e.disconnect());
909
+ }), pt(() => {
910
+ At.value = 0;
911
+ });
912
+ const Et = k(() => {
913
+ let t = 0;
914
+ ze.value && (t = ze.value.getBBox().height);
915
+ let c = 0;
916
+ return Qe.value && (c = At.value), t + c + S.value.xAxis;
917
+ }), La = k(() => m.value.some((t) => t.useProgression)), r = k(() => {
918
+ let t = 0;
919
+ const c = 36;
920
+ l.value.chart.grid.labels.show && (f.value.useIndividualScale && !f.value.isStacked ? t = (m.value.length - te.value.length) * (l.value.chart.grid.labels.yAxis.labelWidth + c) : f.value.useIndividualScale && f.value.isStacked ? t = l.value.chart.grid.labels.yAxis.labelWidth + c : t = $a());
921
+ const e = l.value.chart.labels.fontSize * 1.1, s = La.value ? 24 : 6;
922
+ if (Qe.value) {
923
+ const o = Qe.value.getBBox().x;
924
+ o < 0 && (t += Math.abs(o));
925
+ }
926
+ const a = se.value - t - l.value.chart.grid.labels.yAxis.crosshairSize - s - l.value.chart.padding.left - l.value.chart.padding.right, n = l.value.chart.grid.position === "middle" ? 0 : a / _.value / 2;
927
+ return {
928
+ top: l.value.chart.padding.top + e,
929
+ right: se.value - s - l.value.chart.padding.right,
930
+ bottom: ue.value - Et.value - l.value.chart.padding.bottom - l.value.chart.grid.labels.axis.xLabelOffsetY,
931
+ left: t + l.value.chart.grid.labels.yAxis.crosshairSize - n + l.value.chart.padding.left,
932
+ height: ue.value - Et.value - l.value.chart.padding.top - l.value.chart.padding.bottom - e - l.value.chart.grid.labels.axis.xLabelOffsetY,
933
+ width: a,
934
+ scaleLabelX: t,
935
+ individualOffsetX: c
936
+ };
937
+ }), Ma = k(() => {
938
+ const t = l.value.chart.grid.position === "middle" ? 1 : 0, c = _.value + t, e = Y(r.value.top), s = Y(r.value.bottom);
939
+ return Array.from({ length: c }).map((a, n) => {
940
+ const o = r.value.width / _.value * n + r.value.left + j.value;
941
+ return `M${o},${e} L${o},${s}`;
942
+ }).join(" ");
943
+ }), Aa = k(() => {
944
+ if (!l.value.chart.grid.labels.xAxis.showCrosshairs)
945
+ return "";
946
+ const {
947
+ showOnlyAtModulo: t,
948
+ showOnlyFirstAndLast: c,
949
+ modulo: e
950
+ } = l.value.chart.grid.labels.xAxisLabels, s = K.value.length ? Math.min(e, [...new Set(K.value.map((n) => n.text))].length) : e, a = Math.floor((x.value.end - x.value.start) / s);
951
+ return K.value.map((n, o) => {
952
+ if (!n) return null;
953
+ const P = t && _.value <= s, D = !c && !t, G = c && !t && (o === 0 || o === K.value.length - 1), z = c && !t && $.value === o, N = !c && t && o % a === 0;
954
+ if (!(P || D || G || z || N))
955
+ return null;
956
+ const U = r.value.width / _.value, I = r.value.left + U * o + U / 2, E = l.value.chart.grid.labels.xAxis.crosshairSize, O = l.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero, ie = O ? we.value - (we.value === r.value.bottom ? 0 : E / 2) : r.value.bottom, ge = O ? we.value + E / (we.value === r.value.bottom ? 1 : 2) : r.value.bottom + E;
957
+ return `M${I},${ie} L${I},${ge}`;
958
+ }).filter((n) => n !== null).join(" ");
959
+ });
960
+ function Bt() {
961
+ return !!Dl?.vnode.props?.onSelectTimeLabel;
962
+ }
963
+ function Ca(t, c, e) {
964
+ if (!Ue.value) {
965
+ const s = document.createElement("canvas");
966
+ Ue.value = s.getContext("2d");
967
+ }
968
+ return Ue.value.font = `normal ${t}px sans-serif`, Ue.value;
969
+ }
970
+ function Ft() {
971
+ const t = de.value.querySelectorAll(".vue-ui-xy-tag");
972
+ t.length && Array.from(t).forEach((c) => c.style.opacity = "0");
973
+ }
974
+ function ct(t, c, e, s, a) {
975
+ e && (ye.value[`${t}_${c}_${s}_${a}`] = e);
976
+ }
977
+ const Wt = p(!1);
978
+ async function Yt(t = !1) {
979
+ await Wl(), Wt.value = t, ql.value && (Pl.value = t);
980
+ }
981
+ function Ct() {
982
+ il.value = !il.value;
983
+ }
984
+ const K = k(() => {
985
+ const t = Math.max(...m.value.map((c) => ul({ data: c.series, threshold: l.value.downsample.threshold }).length));
986
+ return bo({
987
+ values: l.value.chart.grid.labels.xAxisLabels.values,
988
+ maxDatapoints: t,
989
+ formatter: l.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
990
+ start: x.value.start,
991
+ end: x.value.end
992
+ });
993
+ }), vt = k(() => {
994
+ const t = l.value.chart.grid.labels.xAxisLabels.modulo;
995
+ return K.value.length ? Math.min(t, [...new Set(K.value.map((c) => c.text))].length) : t;
996
+ });
997
+ function Xt(t, c) {
998
+ const e = Te.value.map((s) => ({
999
+ shape: s.shape || null,
1000
+ name: s.name,
1001
+ color: s.color,
1002
+ type: s.type,
1003
+ value: s.absoluteValues.find((a, n) => n === c),
1004
+ comments: s.comments || [],
1005
+ prefix: s.prefix || l.value.chart.labels.prefix,
1006
+ suffix: s.suffix || l.value.chart.labels.suffix
1007
+ }));
1008
+ bl("selectTimeLabel", {
1009
+ datapoint: e,
1010
+ absoluteIndex: t.absoluteIndex,
1011
+ label: t.text
1012
+ });
1013
+ }
1014
+ const _ = k(() => x.value.end - x.value.start);
1015
+ function Dt(t) {
1016
+ H.value = t;
1017
+ }
1018
+ function Gt() {
1019
+ f.value.isStacked = !f.value.isStacked, f.value.isStacked ? f.value.useIndividualScale = !0 : f.value.useIndividualScale = l.value.chart.grid.labels.yAxis.useIndividualScale;
1020
+ }
1021
+ function zt(t) {
1022
+ lt.value && t.autoScaling && (l.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${t.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), l.value.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${t.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
1023
+ }
1024
+ function za(t, c) {
1025
+ let e = Array(Math.abs(t)).fill(0);
1026
+ for (let s = 0; s < c.length && s < t; s += 1)
1027
+ e[s] = c[s];
1028
+ return e;
1029
+ }
1030
+ function Ia(t) {
1031
+ const c = Math.max(...m.value.map((e) => ul({ data: e.series, threshold: l.value.downsample.threshold }).length));
1032
+ return t > c ? c : t < 0 || l.value.chart.zoom.startIndex !== null && t < l.value.chart.zoom.startIndex ? l.value.chart.zoom.startIndex !== null ? l.value.chart.zoom.startIndex + 1 : 1 : t;
1033
+ }
1034
+ async function It() {
1035
+ await Wl(), await Wl();
1036
+ const { startIndex: t, endIndex: c } = l.value.chart.zoom, e = _e.value, s = Math.max(
1037
+ ...m.value.map(
1038
+ (a) => ul({
1039
+ data: a.series,
1040
+ threshold: l.value.downsample.threshold
1041
+ }).length
1042
+ )
1043
+ );
1044
+ (t != null || c != null) && e ? (t != null && e.setStartValue(t), c != null && e.setEndValue(Ia(c + 1))) : (x.value = { start: 0, end: s }, he.value += 1), oe.value.start = x.value.start, oe.value.end = x.value.end;
1045
+ }
1046
+ async function Ut() {
1047
+ await It();
1048
+ }
1049
+ function Oe(t) {
1050
+ return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(t);
1051
+ }
1052
+ const qt = k(() => Ee.value.max + Kl.value);
1053
+ function _l(t) {
1054
+ return t / (Oe(qt.value) ? qt.value : 1);
1055
+ }
1056
+ const we = k(() => isNaN(_l(Kl.value)) ? r.value.bottom : r.value.bottom - r.value.height * _l(Kl.value));
1057
+ function Zt(t) {
1058
+ const c = ![null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) && l.value.chart.grid.labels.yAxis.scaleMin > 0 && Mt.value >= 0 ? r.value.bottom : we.value;
1059
+ return t.value >= 0 ? V(c - t.y <= 0 ? 1e-5 : c - t.y) : V(t.y - we.value <= 0 ? 1e-5 : t.y - we.value);
1060
+ }
1061
+ function Jt(t) {
1062
+ return t.value >= 0 ? V(t.zeroPosition - t.y <= 0 ? 1e-5 : t.zeroPosition - t.y) : V(t.y - t.zeroPosition <= 0 ? 1e-5 : t.zeroPosition - t.y);
1063
+ }
1064
+ const ae = k(() => ({
1065
+ bar: r.value.width / _.value / ll.value.filter((t) => t.type === "bar").filter((t) => !te.value.includes(t.id)).length,
1066
+ plot: r.value.width / _.value,
1067
+ line: r.value.width / _.value
1068
+ }));
1069
+ function Be() {
1070
+ return f.value.useIndividualScale && f.value.isStacked ? ae.value.line - r.value.width / _.value * 0.1 : ae.value.bar;
1071
+ }
1072
+ function dt(t) {
1073
+ return f.value.useIndividualScale && f.value.isStacked ? t.x + r.value.width / _.value * 0.05 : t.x + ae.value.bar / 2;
1074
+ }
1075
+ function Kt(t) {
1076
+ return t.value >= 0 ? t.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(we.value) ? r.bottom.value : we.value;
1077
+ }
1078
+ function Qt(t) {
1079
+ return t.value >= 0 ? t.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(t.zeroPosition) ? 0 : t.zeroPosition;
1080
+ }
1081
+ const Ql = p(null);
1082
+ function Ta(t) {
1083
+ if (il.value) return;
1084
+ const c = be.value.getBoundingClientRect(), s = be.value.viewBox.baseVal.width / c.width, n = (t.clientX - c.left) * s - r.value.left, o = r.value.width / _.value, P = Math.floor(n / o);
1085
+ P >= 0 && P < _.value ? Ql.value !== P && (Ql.value = P, na(!0, P)) : jt();
1086
+ }
1087
+ function jt() {
1088
+ Ql.value = null, na(!1, null);
1089
+ }
1090
+ function Oa() {
1091
+ Ql.value != null && Na(Ql.value);
1092
+ }
1093
+ function Na(t) {
1094
+ const c = Te.value.map((e) => ({
1095
+ name: e.name,
1096
+ value: [null, void 0, NaN].includes(e.absoluteValues[t]) ? null : e.absoluteValues[t],
1097
+ color: e.color,
1098
+ type: e.type
1099
+ }));
1100
+ bl(
1101
+ "selectX",
1102
+ {
1103
+ dataset: c,
1104
+ index: t,
1105
+ indexLabel: l.value.chart.grid.labels.xAxisLabels.values[t]
1106
+ }
1107
+ ), l.value.events.datapointClick && l.value.events.datapointClick({ datapoint: c, seriesIndex: t + x.value.start });
1108
+ }
1109
+ function Ra() {
1110
+ return tl.value.map((t) => ({
1111
+ values: t.absoluteValues,
1112
+ color: t.color,
1113
+ name: t.name,
1114
+ type: t.type
1115
+ }));
1116
+ }
1117
+ async function Pa({ scale: t = 2 } = {}) {
1118
+ if (!de.value) return;
1119
+ const { width: c, height: e } = de.value.getBoundingClientRect(), s = c / e, { imageUri: a, base64: n } = await $o({ domElement: de.value, base64: !0, img: !0, scale: t });
1120
+ return {
1121
+ imageUri: a,
1122
+ base64: n,
1123
+ title: l.value.chart.title.text,
1124
+ width: c,
1125
+ height: e,
1126
+ aspectRatio: s
1127
+ };
1128
+ }
1129
+ function ea(t) {
1130
+ if (te.value.includes(t.id))
1131
+ te.value = te.value.filter((c) => c !== t.id);
1132
+ else {
1133
+ if (te.value.length + 1 === ll.value.length) return;
1134
+ te.value.push(t.id);
1135
+ }
1136
+ bl("selectLegend", Te.value.map((c) => ({
1137
+ name: c.name,
1138
+ values: c.absoluteValues,
1139
+ color: c.color,
1140
+ type: c.type
1141
+ }))), Nl.value += 1;
1142
+ }
1143
+ const Ha = k(() => {
1144
+ const t = l.value.chart.title.text || "Chart visualization", c = l.value.chart.title.subtitle.text || "";
1145
+ return `${t}. ${c}`;
1146
+ }), la = k(() => ({
1147
+ linePlot: _.value > l.value.line.dot.hideAboveMaxSerieLength
1148
+ })), Va = k(() => l.value.chart.userOptions.show && (!l.value.chart.title.show || !l.value.chart.title.text)), Ea = k(() => {
1149
+ if (Array.isArray(l.value.chart.highlightArea))
1150
+ return l.value.chart.highlightArea.map((c) => {
1151
+ const e = Math.min(c.to, A.value - 1);
1152
+ return {
1153
+ ...c,
1154
+ span: c.from === e ? 1 : e < c.from ? 0 : e - c.from + 1
1155
+ };
1156
+ });
1157
+ const t = {
1158
+ ...l.value.chart.highlightArea,
1159
+ to: Math.min(l.value.chart.highlightArea.to, A.value - 1)
1160
+ };
1161
+ return [{ ...t, span: t.from === t.to ? 1 : t.to < t.from ? 0 : t.to - t.from + 1 }];
1162
+ }), Ba = k(() => Ie.value ? m.value.map((t, c) => ({
1163
+ ...t,
1164
+ series: ul({
1165
+ data: t.series,
1166
+ threshold: l.value.downsample.threshold
1167
+ }),
1168
+ id: `uniqueId_${c}`
1169
+ })) : m.value), Fa = k(() => Te.value.map((t) => {
1170
+ const c = t.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
1171
+ return {
1172
+ id: t.id,
1173
+ name: t.name,
1174
+ color: t.color,
1175
+ values: za(_.value, c)
1176
+ };
1177
+ })), Wa = k(() => ({
1178
+ responsiveBreakpoint: l.value.table.responsiveBreakpoint,
1179
+ roundingValues: l.value.table.rounding,
1180
+ showAverage: !1,
1181
+ showMedian: !1,
1182
+ showTotal: !1,
1183
+ fontFamily: l.value.chart.fontFamily,
1184
+ prefix: l.value.chart.labels.prefix,
1185
+ suffix: l.value.chart.labels.suffix,
1186
+ colNames: K.value.map((t) => t.text),
1187
+ thead: {
1188
+ backgroundColor: l.value.table.th.backgroundColor,
1189
+ color: l.value.table.th.color,
1190
+ outline: l.value.table.th.outline
1191
+ },
1192
+ tbody: {
1193
+ backgroundColor: l.value.table.td.backgroundColor,
1194
+ color: l.value.table.td.color,
1195
+ outline: l.value.table.td.outline
1196
+ },
1197
+ userOptions: {
1198
+ show: !1
1199
+ }
1200
+ })), j = k(() => l.value.chart.grid.position === "middle" ? 0 : r.value.width / _.value / 2), Ll = k(() => io(tl.value.filter((t) => !te.value.includes(t.id)))), C = k(() => {
1201
+ const t = Object.groupBy(Ll.value, (e) => e.scaleLabel), c = {};
1202
+ for (const [e, s] of Object.entries(t)) {
1203
+ const a = s.flatMap((n) => n.absoluteValues);
1204
+ c[e] = {
1205
+ min: Math.min(...a) || 0,
1206
+ max: Math.max(...a) || 1,
1207
+ groupId: `scale_group_${bt()}`
1208
+ };
1209
+ }
1210
+ return c;
1211
+ }), Ya = k(() => {
1212
+ const t = ll.value.filter((c) => c.type === "bar").filter((c) => !te.value.includes(c.id)).length;
1213
+ return r.value.width / _.value / t - al.value * t;
1214
+ }), al = k(() => ae.value.line * l.value.bar.periodGap), ta = k(() => {
1215
+ if (!l.value.chart.zoom.minimap.show) return [];
1216
+ const t = Ba.value.filter((a) => !te.value.includes(a.id)), c = Math.max(...t.map((a) => a.series.length)), e = [];
1217
+ for (let a = 0; a < c; a += 1)
1218
+ e.push(t.map((n) => n.series[a] || 0).reduce((n, o) => (n || 0) + (o || 0), 0));
1219
+ const s = Math.min(...e);
1220
+ return e.map((a) => a + (s < 0 ? Math.abs(s) : 0));
1221
+ }), jl = k(() => Te.value.map((t) => ({
1222
+ slotAbsoluteIndex: t.slotAbsoluteIndex,
1223
+ shape: t.shape || null,
1224
+ name: t.name,
1225
+ color: t.color,
1226
+ type: t.type,
1227
+ value: t.absoluteValues.find((c, e) => e === $.value),
1228
+ comments: t.comments || [],
1229
+ prefix: t.prefix || l.value.chart.labels.prefix,
1230
+ suffix: t.suffix || l.value.chart.labels.suffix
1231
+ }))), aa = k(() => Ee.value.ticks.map((t) => ({
1232
+ y: t >= 0 ? we.value - r.value.height * _l(t) : we.value + r.value.height * _l(Math.abs(t)),
1233
+ value: t,
1234
+ prefix: l.value.chart.labels.prefix,
1235
+ suffix: l.value.chart.labels.suffix
1236
+ }))), oa = k(() => {
1237
+ const t = l.value.chart.annotations;
1238
+ if (!t || !Array.isArray(t) || t.every((z) => !z.show)) return [];
1239
+ const c = t.filter(
1240
+ (z) => z.show && (z.yAxis.yTop != null || z.yAxis.yBottom != null)
1241
+ );
1242
+ if (!c.length) return [];
1243
+ const { left: e, right: s } = r.value, a = we.value, n = r.value.height, o = Ee.value.min, D = Ee.value.max - o, G = (z) => {
1244
+ const N = (z - 0) / D;
1245
+ return a - N * n;
1246
+ };
1247
+ return c.map((z) => {
1248
+ const { yAxis: { yTop: N, yBottom: U, label: I } } = z, E = N != null && U != null && N !== U, O = N == null ? null : G(N), ie = U == null ? null : G(U), ge = Ca(I.fontSize);
1249
+ ge.font = `${I.fontSize}px sans-serif`;
1250
+ const ee = ge.measureText(I.text).width, Ne = I.fontSize, Ze = (I.position === "start" ? e + I.padding.left : s - I.padding.right) + I.offsetX, Me = (O != null && ie != null ? Math.min(O, ie) : O ?? ie) - I.fontSize / 3 + I.offsetY - I.padding.top;
1251
+ let F;
1252
+ I.textAnchor === "middle" ? F = Ze - ee / 2 - I.padding.left : I.textAnchor === "end" ? F = Ze - ee - I.padding.right : F = Ze - I.padding.left;
1253
+ const W = Me - Ne * 0.75 - I.padding.top;
1254
+ return {
1255
+ show: ![O, ie, W].includes(NaN),
1256
+ id: `annotation_y_${bt()}`,
1257
+ hasArea: E,
1258
+ areaHeight: E ? Math.abs(O - ie) : 0,
1259
+ yTop: O,
1260
+ yBottom: ie,
1261
+ config: z.yAxis,
1262
+ x1: e,
1263
+ x2: s,
1264
+ _text: { x: Ze, y: Me },
1265
+ _box: {
1266
+ x: F,
1267
+ y: W,
1268
+ width: ee + I.padding.left + I.padding.right,
1269
+ height: Ne + I.padding.top + I.padding.bottom,
1270
+ fill: I.backgroundColor,
1271
+ stroke: I.border.stroke,
1272
+ rx: I.border.rx,
1273
+ ry: I.border.ry,
1274
+ strokeWidth: I.border.strokeWidth
1275
+ }
1276
+ };
1277
+ });
1278
+ }), rl = k(() => {
1279
+ const t = Ll.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), c = t.length, e = l.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, a = s ? e * (c - 1) : 0, n = r.value.height - a;
1280
+ return t.filter((o) => o.type === "bar").map((o, P) => {
1281
+ zt(o);
1282
+ const D = C.value[o.scaleLabel].min, G = C.value[o.scaleLabel].max;
1283
+ o.absoluteValues.filter((B) => ![null, void 0].includes(B)).map((B) => (B - D) / (G - D));
1284
+ const z = {
1285
+ valueMin: D,
1286
+ valueMax: G < 0 ? 0 : G
1287
+ }, N = {
1288
+ max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
1289
+ min: o.scaleMin || Math.min(...o.absoluteValues.filter((B) => ![void 0, null].includes(B))) > 0 ? 0 : Math.min(...o.absoluteValues.filter((B) => ![null, void 0].includes(B)))
1290
+ }, U = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, I = 1.0000001, E = l.value.chart.grid.labels.yAxis.useNiceScale ? ot(N.min, N.max === N.min ? N.max * I : N.max, U) : Al(N.min, N.max === N.min ? N.max * I : N.max, U), O = l.value.chart.grid.labels.yAxis.useNiceScale ? ot(z.valueMin, z.valueMax === z.valueMin ? z.valueMax * I : z.valueMax, U) : Al(z.valueMin, z.valueMax === z.valueMin ? z.valueMax * I : z.valueMax, U), ie = E.min >= 0 ? 0 : Math.abs(E.min), ge = 0, ee = E.max + ie, Ne = O.max + Math.abs(ge), Ze = o.stackIndex, El = c - 1 - Ze, Me = s ? 1 - o.cumulatedStackRatio : 0, F = s ? n * Me + e * El : 0, W = s ? n * o.stackRatio : r.value.height, ne = r.value.bottom - F - W * ie / ee, Ae = r.value.bottom - F - W * ge / Ne, Se = tl.value.filter((B) => B.type === "bar").filter((B) => !te.value.includes(B.id)).length, tt = o.series.map((B, ce) => {
1291
+ const vl = f.value.useIndividualScale ? (o.absoluteValues[ce] + ie) / ee : _l(B), Ml = f.value.useIndividualScale && f.value.isStacked ? r.value.left + r.value.width / _.value * ce : r.value.left + ae.value.bar * P + ae.value.bar * ce * Se - Ya.value / 2 - P * al.value;
1292
+ return {
1293
+ yOffset: V(F),
1294
+ individualHeight: V(W),
1295
+ x: V(Ml),
1296
+ y: r.value.bottom - F - W * vl,
1297
+ value: o.absoluteValues[ce],
1298
+ zeroPosition: V(ne),
1299
+ individualMax: V(ee),
1300
+ comment: o.comments && o.comments.slice(x.value.start, x.value.end)[ce] || ""
1301
+ };
1302
+ }), $e = o.absoluteValues.map((B) => O.min >= 0 ? (B - Math.abs(O.min)) / (O.max - Math.abs(O.min)) : (B + Math.abs(O.min)) / (O.max + Math.abs(O.min))), cl = o.series.map((B, ce) => {
1303
+ const vl = f.value.useIndividualScale && f.value.isStacked ? r.value.left + r.value.width / _.value * ce : r.value.left - ae.value.bar / 2 + ae.value.bar * P + ae.value.bar * ce * tl.value.filter((Ml) => Ml.type === "bar").filter((Ml) => !te.value.includes(Ml.id)).length;
1304
+ return {
1305
+ yOffset: V(F),
1306
+ individualHeight: V(W),
1307
+ x: V(vl),
1308
+ y: V(r.value.bottom - V(F) - (V(W) * $e[ce] || 0)),
1309
+ value: o.absoluteValues[ce],
1310
+ zeroPosition: V(ne),
1311
+ individualMax: V(ee),
1312
+ comment: o.comments && o.comments.slice(x.value.start, x.value.end)[ce] || ""
1313
+ };
1314
+ }), q = E.ticks.map((B) => ({
1315
+ y: B >= 0 ? ne - W * (B / ee) : ne + W * Math.abs(B) / ee,
1316
+ value: B,
1317
+ prefix: o.prefix || l.value.chart.labels.prefix,
1318
+ suffix: o.suffix || l.value.chart.labels.suffix,
1319
+ datapoint: o
1320
+ })), re = O.ticks.map((B) => {
1321
+ const ce = (B - O.min) / (O.max - O.min);
1322
+ return {
1323
+ y: B >= 0 ? Ae - W * ce : Ae + W * ce,
1324
+ value: B,
1325
+ prefix: o.prefix || l.value.chart.labels.prefix,
1326
+ suffix: o.suffix || l.value.chart.labels.suffix,
1327
+ datapoint: o
1328
+ };
1329
+ });
1330
+ return C.value[o.scaleLabel].name = o.name, C.value[o.scaleLabel].groupName = o.scaleLabel, C.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, C.value[o.scaleLabel].color = o.color, C.value[o.scaleLabel].scaleYLabels = o.autoScaling ? re : q, C.value[o.scaleLabel].zeroPosition = o.autoScaling ? Ae : ne, C.value[o.scaleLabel].individualMax = o.autoScaling ? Ne : ee, C.value[o.scaleLabel].scaleLabel = o.scaleLabel, C.value[o.scaleLabel].id = o.id, C.value[o.scaleLabel].yOffset = F, C.value[o.scaleLabel].individualHeight = W, C.value[o.scaleLabel].autoScaleYLabels = re, C.value[o.scaleLabel].unique = Ll.value.filter((B) => B.scaleLabel === o.scaleLabel).length === 1, {
1331
+ ...o,
1332
+ yOffset: F,
1333
+ autoScaleYLabels: re,
1334
+ individualHeight: W,
1335
+ scaleYLabels: o.autoScaling ? re : q,
1336
+ individualScale: o.autoScaling ? O : E,
1337
+ individualMax: o.autoScaling ? Ne : ee,
1338
+ zeroPosition: o.autoScaling ? Ae : ne,
1339
+ plots: o.autoScaling ? cl : tt,
1340
+ groupId: C.value[o.scaleLabel].groupId
1341
+ };
1342
+ });
1343
+ }), Fe = k(() => {
1344
+ const t = Ll.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), c = t.length, e = l.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, a = s ? e * (c - 1) : 0, n = r.value.height - a;
1345
+ return t.filter((o) => o.type === "line").map((o, P) => {
1346
+ zt(o);
1347
+ const D = C.value[o.scaleLabel].min, G = C.value[o.scaleLabel].max;
1348
+ o.absoluteValues.filter((R) => ![null, void 0].includes(R)).map((R) => (R - D) / (G - D));
1349
+ const z = {
1350
+ valueMin: D,
1351
+ valueMax: G
1352
+ }, N = {
1353
+ max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
1354
+ min: o.scaleMin || (Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues))
1355
+ }, U = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, I = 1.0000001, E = l.value.chart.grid.labels.yAxis.useNiceScale ? ot(N.min, N.max === N.min ? N.max * I : N.max, U) : Al(N.min, N.max === N.min ? N.max * I : N.max, U), O = l.value.chart.grid.labels.yAxis.useNiceScale ? ot(z.valueMin, z.valueMax === z.valueMin ? z.valueMax * I : z.valueMax, U) : Al(z.valueMin, z.valueMax === z.valueMin ? z.valueMax * I : z.valueMax, U), ie = E.min >= 0 ? 0 : Math.abs(E.min), ge = 0, ee = E.max + Math.abs(ie), Ne = O.max + Math.abs(ge), Ze = o.stackIndex, El = c - 1 - Ze, Me = s ? 1 - o.cumulatedStackRatio : 0, F = s ? n * Me + e * El : 0, W = s ? n * o.stackRatio : r.value.height, ne = r.value.bottom - F - W * ie / ee, Ae = r.value.bottom - F - W * ge / Ne, Se = o.series.map((R, pe) => {
1356
+ const Da = f.value.useIndividualScale ? (o.absoluteValues[pe] + Math.abs(ie)) / ee : _l(R);
1357
+ return {
1358
+ x: V(r.value.left + ae.value.line / 2 + ae.value.line * pe),
1359
+ y: V(r.value.bottom - F - W * Da),
1360
+ value: o.absoluteValues[pe],
1361
+ comment: o.comments && o.comments.slice(x.value.start, x.value.end)[pe] || ""
1362
+ };
1363
+ }), tt = o.absoluteValues.map((R) => O.min >= 0 ? (R - Math.abs(O.min)) / (O.max - Math.abs(O.min)) : (R + Math.abs(O.min)) / (O.max + Math.abs(O.min))), $e = o.series.map((R, pe) => [void 0, null].includes(o.absoluteValues[pe]) ? {
1364
+ x: V(r.value.left + ae.value.line / 2 + ae.value.line * pe),
1365
+ y: ne,
1366
+ value: o.absoluteValues[pe],
1367
+ comment: o.comments && o.comments.slice(x.value.start, x.value.end)[pe] || ""
1368
+ } : {
1369
+ x: V(r.value.left + ae.value.line / 2 + ae.value.line * pe),
1370
+ y: V(r.value.bottom - F - (W * tt[pe] || 0)),
1371
+ value: o.absoluteValues[pe],
1372
+ comment: o.comments && o.comments.slice(x.value.start, x.value.end)[pe] || ""
1373
+ }), cl = l.value.line.cutNullValues ? ma(Se) : kt(Se.filter((R) => R.value !== null)), q = l.value.line.cutNullValues ? ma($e) : kt($e.filter((R) => R.value !== null)), re = l.value.line.cutNullValues ? xa(Se) : wt(Se.filter((R) => R.value !== null)), B = l.value.line.cutNullValues ? xa($e) : wt($e.filter((R) => R.value !== null)), ce = E.ticks.map((R) => ({
1374
+ y: R >= 0 ? ne - W * (R / ee) : ne + W * Math.abs(R) / ee,
1375
+ value: R,
1376
+ prefix: o.prefix || l.value.chart.labels.prefix,
1377
+ suffix: o.suffix || l.value.chart.labels.suffix,
1378
+ datapoint: o
1379
+ })), vl = O.ticks.map((R) => {
1380
+ const pe = (R - O.min) / (O.max - O.min);
1381
+ return {
1382
+ y: R >= 0 ? Ae - W * pe : Ae + W * pe,
1383
+ value: R,
1384
+ prefix: o.prefix || l.value.chart.labels.prefix,
1385
+ suffix: o.suffix || l.value.chart.labels.suffix,
1386
+ datapoint: o
1387
+ };
1388
+ });
1389
+ C.value[o.scaleLabel].name = o.name, C.value[o.scaleLabel].groupName = o.scaleLabel, C.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, C.value[o.scaleLabel].color = o.color, C.value[o.scaleLabel].scaleYLabels = o.autoScaling ? vl : ce, C.value[o.scaleLabel].zeroPosition = o.autoScaling ? Ae : ne, C.value[o.scaleLabel].individualMax = o.autoScaling ? Ne : ee, C.value[o.scaleLabel].scaleLabel = o.scaleLabel, C.value[o.scaleLabel].id = o.id, C.value[o.scaleLabel].yOffset = F, C.value[o.scaleLabel].individualHeight = W, C.value[o.scaleLabel].autoScaleYLabels = vl, C.value[o.scaleLabel].unique = Ll.value.filter((R) => R.scaleLabel === o.scaleLabel).length === 1;
1390
+ const Ml = f.value.useIndividualScale ? o.autoScaling ? Ae : ne : we.value, at = Math.max(Math.max(o.autoScaling ? Ae : ce.at(-1) ? ce.at(-1).y : 0, r.value.top), Ml);
1391
+ return {
1392
+ ...o,
1393
+ yOffset: F,
1394
+ autoScaleYLabels: vl,
1395
+ individualHeight: W,
1396
+ scaleYLabels: o.autoScaling ? vl : ce,
1397
+ individualScale: o.autoScaling ? O : E,
1398
+ individualMax: o.autoScaling ? Ne : ee,
1399
+ zeroPosition: o.autoScaling ? Ae : ne,
1400
+ curve: o.autoScaling ? q : cl,
1401
+ plots: o.autoScaling ? $e : Se,
1402
+ area: o.useArea ? f.value.useIndividualScale ? l.value.line.cutNullValues ? ba(
1403
+ o.autoScaling ? $e : Se,
1404
+ at
1405
+ ) : ya(
1406
+ o.autoScaling ? $e.filter((R) => R.value !== null) : Se.filter((R) => R.value !== null),
1407
+ at
1408
+ ) : l.value.line.cutNullValues ? ba(Se, at) : ya(Se.filter((R) => R.value !== null), at) : "",
1409
+ curveAreas: o.useArea ? no(
1410
+ o.autoScaling ? l.value.line.cutNullValues ? $e : $e.filter((R) => R.value !== null) : l.value.line.cutNullValues ? Se : Se.filter((R) => R.value !== null),
1411
+ at,
1412
+ l.value.line.cutNullValues
1413
+ ) : [],
1414
+ straight: o.autoScaling ? B : re,
1415
+ groupId: C.value[o.scaleLabel].groupId
1416
+ };
1417
+ });
1418
+ }), qe = k(() => {
1419
+ const t = Ll.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), c = t.length, e = l.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, a = s ? e * (c - 1) : 0, n = r.value.height - a;
1420
+ return t.filter((o) => o.type === "plot").map((o) => {
1421
+ zt(o);
1422
+ const P = C.value[o.scaleLabel].min, D = C.value[o.scaleLabel].max;
1423
+ o.absoluteValues.filter((q) => ![null, void 0].includes(q)).map((q) => (q - P) / (D - P));
1424
+ const G = {
1425
+ valueMin: P,
1426
+ valueMax: D
1427
+ }, z = {
1428
+ max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
1429
+ min: o.scaleMin || Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues)
1430
+ }, N = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, U = 1.0000001, I = Al(z.min, z.max === z.min ? z.max * U : z.max, N), E = Al(G.valueMin, G.valueMax === G.valueMin ? G.valueMax * U : G.valueMax, N), O = I.min >= 0 ? 0 : Math.abs(I.min), ie = 0, ge = I.max + O, ee = E.max + Math.abs(ie), Ne = o.stackIndex, Ze = c - 1 - Ne, El = s ? 1 - o.cumulatedStackRatio : 0, Me = s ? n * El + e * Ze : 0, F = s ? n * o.stackRatio : r.value.height, W = r.value.bottom - Me - F * O / ge, ne = r.value.bottom - Me - F * ie / ee, Ae = o.series.map((q, re) => {
1431
+ const B = f.value.useIndividualScale ? (o.absoluteValues[re] + Math.abs(O)) / ge : _l(q);
1432
+ return {
1433
+ x: V(r.value.left + ae.value.plot / 2 + ae.value.plot * re),
1434
+ y: V(r.value.bottom - Me - F * B),
1435
+ value: o.absoluteValues[re],
1436
+ comment: o.comments && o.comments.slice(x.value.start, x.value.end)[re] || ""
1437
+ };
1438
+ }), Se = o.absoluteValues.map((q) => E.min >= 0 ? (q - Math.abs(E.min)) / (E.max - Math.abs(E.min)) : (q + Math.abs(E.min)) / (E.max + Math.abs(E.min))), tt = o.series.map((q, re) => ({
1439
+ x: V(r.value.left + ae.value.plot / 2 + ae.value.plot * re),
1440
+ y: V(r.value.bottom - Me - (F * Se[re] || 0)),
1441
+ value: o.absoluteValues[re],
1442
+ comment: o.comments && o.comments.slice(x.value.start, x.value.end)[re] || ""
1443
+ })), $e = I.ticks.map((q) => ({
1444
+ y: q >= 0 ? W - F * (q / ge) : W + F * Math.abs(q) / ge,
1445
+ value: q,
1446
+ prefix: o.prefix || l.value.chart.labels.prefix,
1447
+ suffix: o.suffix || l.value.chart.labels.suffix,
1448
+ datapoint: o
1449
+ })), cl = E.ticks.map((q) => {
1450
+ const re = (q - E.min) / (E.max - E.min);
1451
+ return {
1452
+ y: q >= 0 ? ne - F * re : ne + F * re,
1453
+ value: q,
1454
+ prefix: o.prefix || l.value.chart.labels.prefix,
1455
+ suffix: o.suffix || l.value.chart.labels.suffix,
1456
+ datapoint: o
1457
+ };
1458
+ });
1459
+ return C.value[o.scaleLabel].name = o.name, C.value[o.scaleLabel].groupName = o.scaleLabel, C.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, C.value[o.scaleLabel].color = o.color, C.value[o.scaleLabel].scaleYLabels = o.autoScaling ? cl : $e, C.value[o.scaleLabel].zeroPosition = o.autoScaling ? ne : W, C.value[o.scaleLabel].individualMax = o.autoScaling ? ee : ge, C.value[o.scaleLabel].scaleLabel = o.scaleLabel, C.value[o.scaleLabel].id = o.id, C.value[o.scaleLabel].yOffset = Me, C.value[o.scaleLabel].individualHeight = F, C.value[o.scaleLabel].autoScaleYLabels = cl, C.value[o.scaleLabel].unique = Ll.value.filter((q) => q.scaleLabel === o.scaleLabel).length === 1, {
1460
+ ...o,
1461
+ yOffset: Me,
1462
+ autoScaleYLabels: cl,
1463
+ individualHeight: F,
1464
+ scaleYLabels: o.autoScaling ? cl : $e,
1465
+ individualScale: o.autoScaling ? E : I,
1466
+ individualMax: o.autoScaling ? ee : ge,
1467
+ zeroPosition: o.autoScaling ? ne : W,
1468
+ plots: o.autoScaling ? tt : Ae,
1469
+ groupId: C.value[o.scaleLabel].groupId
1470
+ };
1471
+ });
1472
+ }), et = k(() => {
1473
+ const t = Fe.value.map((n) => ({
1474
+ name: n.name,
1475
+ color: n.color,
1476
+ scale: n.individualScale,
1477
+ scaleYLabels: n.scaleYLabels,
1478
+ zero: n.zeroPosition,
1479
+ max: n.individualMax,
1480
+ scaleLabel: n.scaleLabel || "",
1481
+ id: n.id,
1482
+ yOffset: n.yOffset || 0,
1483
+ individualHeight: n.individualHeight || r.value.height,
1484
+ autoScaleYLabels: n.autoScaleYLabels
1485
+ })), c = rl.value.map((n) => ({
1486
+ name: n.name,
1487
+ color: n.color,
1488
+ scale: n.individualScale,
1489
+ scaleYLabels: n.scaleYLabels,
1490
+ zero: n.zeroPosition,
1491
+ max: n.individualMax,
1492
+ scaleLabel: n.scaleLabel || "",
1493
+ id: n.id,
1494
+ yOffset: n.yOffset || 0,
1495
+ individualHeight: n.individualHeight || r.value.height
1496
+ })), e = qe.value.map((n) => ({
1497
+ name: n.name,
1498
+ color: n.color,
1499
+ scale: n.individualScale,
1500
+ scaleYLabels: n.scaleYLabels,
1501
+ // FIX
1502
+ zero: n.zeroPosition,
1503
+ max: n.individualMax,
1504
+ scaleLabel: n.scaleLabel || "",
1505
+ id: n.id,
1506
+ yOffset: n.yOffset || 0,
1507
+ individualHeight: n.individualHeight || r.value.height
1508
+ })), s = f.value.useIndividualScale && !f.value.isStacked ? Object.values(C.value) : [...t, ...c, ...e], a = s.flatMap((n) => n).length;
1509
+ return s.flatMap((n, o) => {
1510
+ let P = 0;
1511
+ P = f.value.isStacked ? r.value.left : r.value.left / a * (o + 1);
1512
+ const D = f.value.useIndividualScale && !f.value.isStacked ? n.unique ? n.name : n.groupName : n.name;
1513
+ return {
1514
+ unique: n.unique,
1515
+ id: n.id,
1516
+ groupId: n.groupId,
1517
+ scaleLabel: n.scaleLabel,
1518
+ name: ke(
1519
+ l.value.chart.grid.labels.yAxis.serieNameFormatter,
1520
+ D,
1521
+ D,
1522
+ n
1523
+ ),
1524
+ color: f.value.useIndividualScale && !f.value.isStacked ? n.unique ? n.color : n.groupColor : n.color,
1525
+ scale: n.scale,
1526
+ yOffset: n.yOffset,
1527
+ individualHeight: n.individualHeight,
1528
+ x: P,
1529
+ yLabels: n.scaleYLabels || n.scale.ticks.map((G) => ({
1530
+ y: G >= 0 ? n.zero - n.individualHeight * (G / n.max) : n.zero + n.individualHeight * Math.abs(G) / n.max,
1531
+ value: G
1532
+ }))
1533
+ };
1534
+ });
1535
+ }), ua = k(() => ({
1536
+ datapoint: jl.value,
1537
+ seriesIndex: $.value,
1538
+ series: tl.value,
1539
+ bars: rl.value,
1540
+ lines: Fe.value,
1541
+ plots: qe.value,
1542
+ config: l.value
1543
+ })), Xa = k(() => {
1544
+ let t = "", c = jl.value.map((a) => a.value).filter((a) => gt(a) && a !== null).reduce((a, n) => Math.abs(a) + Math.abs(n), 0);
1545
+ const e = K.value[$.value], s = l.value.chart.tooltip.customFormat;
1546
+ return ro(s) && co(() => s({
1547
+ absoluteIndex: $.value + x.value.start,
1548
+ seriesIndex: $.value,
1549
+ datapoint: jl.value,
1550
+ series: tl.value,
1551
+ bars: rl.value,
1552
+ lines: Fe.value,
1553
+ plots: qe.value,
1554
+ config: l.value
1555
+ })) ? s({
1556
+ absoluteIndex: $.value + x.value.start,
1557
+ seriesIndex: $.value,
1558
+ datapoint: jl.value,
1559
+ series: tl.value,
1560
+ bars: rl.value,
1561
+ lines: Fe.value,
1562
+ plots: qe.value,
1563
+ config: l.value
1564
+ }) : (e && e.text && l.value.chart.tooltip.showTimeLabel && (t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${l.value.chart.tooltip.borderColor}; width:100%">${e.text}</div>`), jl.value.forEach((a) => {
1565
+ if (gt(a.value)) {
1566
+ let n = "", o = "";
1567
+ switch (He.value[a.type]) {
1568
+ case "bar":
1569
+ n = `<svg viewBox="0 0 40 40" height="14" width="14">${Xl.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="${Xl.pattern ? `url(#pattern_${J.value}_${a.slotAbsoluteIndex}` : a.color}" /></svg>`;
1570
+ break;
1571
+ case "line":
1572
+ !a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" />` : a.shape === "triangle" ? o = `<path d="${Je({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "square" ? o = `<path d="${Je({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "diamond" ? o = `<path d="${Je({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "pentagon" ? o = `<path d="${Je({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "hexagon" ? o = `<path d="${Je({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "star" && (o = `<polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" points="${pa({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), n = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${a.color}" />${o}</svg>`;
1573
+ break;
1574
+ case "plot":
1575
+ if (!a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape)) {
1576
+ n = `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" /></svg>`;
1577
+ break;
1578
+ }
1579
+ if (a.shape === "star") {
1580
+ n = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" points="${pa({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
1581
+ break;
1582
+ }
1583
+ if (a.shape === "triangle") {
1584
+ n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Je({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1585
+ break;
1586
+ }
1587
+ if (a.shape === "square") {
1588
+ n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Je({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1589
+ break;
1590
+ }
1591
+ if (a.shape === "diamond") {
1592
+ n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Je({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1593
+ break;
1594
+ }
1595
+ if (a.shape === "pentagon") {
1596
+ n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Je({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1597
+ break;
1598
+ }
1599
+ if (a.shape === "hexagon") {
1600
+ n = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Je({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${a.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1601
+ break;
1602
+ }
1603
+ }
1604
+ t += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${n}</div> ${a.name}: <b>${l.value.chart.tooltip.showValue ? ke(
1605
+ a.type === "line" ? l.value.line.labels.formatter : a.type === "bar" ? l.value.bar.labels.formatter : l.value.plot.labels.formatter,
1606
+ a.value,
1607
+ Re({
1608
+ p: a.prefix,
1609
+ v: a.value,
1610
+ s: a.suffix,
1611
+ r: l.value.chart.tooltip.roundingValue
1612
+ }),
1613
+ { datapoint: a }
1614
+ ) : ""}</b> ${l.value.chart.tooltip.showPercentage ? `(${Re({
1615
+ v: V(Math.abs(a.value) / c * 100),
1616
+ s: "%",
1617
+ r: l.value.chart.tooltip.roundingPercentage
1618
+ })})` : ""}</div>`, l.value.chart.comments.showInTooltip && a.comments.length && a.comments.slice(x.value.start, x.value.end)[$.value] && (t += `<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(x.value.start, x.value.end)[$.value]}</div>`);
1619
+ }
1620
+ }), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${l.value.chart.tooltip.color}">${t}</div>`);
1621
+ }), sa = k(() => {
1622
+ if (ll.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
1623
+ const t = Te.value.map((e) => ({
1624
+ label: e.name,
1625
+ color: e.color,
1626
+ type: e.type
1627
+ })), c = [];
1628
+ return K.value.forEach((e, s) => {
1629
+ const a = [e.text];
1630
+ Te.value.forEach((n) => {
1631
+ a.push(Oe(n.absoluteValues[s]) ? Number(n.absoluteValues[s].toFixed(l.value.table.rounding)) : "");
1632
+ }), c.push(a);
1633
+ }), { head: t, body: c };
1634
+ }), ht = k(() => {
1635
+ const t = l.value.table.showSum;
1636
+ let c = [""].concat(Te.value.map((n) => n.name));
1637
+ t && (c = c.concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>'));
1638
+ let e = [];
1639
+ for (let n = 0; n < _.value; n += 1) {
1640
+ const o = Te.value.map((P) => P.absoluteValues[n] ?? 0).reduce((P, D) => P + D, 0);
1641
+ e.push(
1642
+ [
1643
+ K.value[n].text ?? "-"
1644
+ ].concat(Te.value.map(
1645
+ (P) => ke(
1646
+ P.type === "line" ? l.value.line.labels.formatter : P.type === "bar" ? l.value.bar.labels.formatter : l.value.plot.labels.formatter,
1647
+ P.absoluteValues[n] ?? 0,
1648
+ Re({
1649
+ p: P.prefix || l.value.chart.labels.prefix,
1650
+ v: P.absoluteValues[n] ?? 0,
1651
+ s: P.suffix || l.value.chart.labels.suffix,
1652
+ r: l.value.table.rounding
1653
+ })
1654
+ )
1655
+ )).concat(t ? (o ?? 0).toFixed(l.value.table.rounding) : [])
1656
+ );
1657
+ }
1658
+ const s = {
1659
+ th: {
1660
+ backgroundColor: l.value.table.th.backgroundColor,
1661
+ color: l.value.table.th.color,
1662
+ outline: l.value.table.th.outline
1663
+ },
1664
+ td: {
1665
+ backgroundColor: l.value.table.td.backgroundColor,
1666
+ color: l.value.table.td.color,
1667
+ outline: l.value.table.td.outline
1668
+ },
1669
+ breakpoint: l.value.table.responsiveBreakpoint
1670
+ }, a = [l.value.table.columnNames.period].concat(Te.value.map((n) => n.name)).concat(l.value.table.columnNames.total);
1671
+ return { head: c, body: e, config: s, colNames: a };
1672
+ });
1673
+ function ia(t = null) {
1674
+ const c = [[l.value.chart.title.text], [l.value.chart.title.subtitle.text], [""]], e = ["", ...sa.value.head.map((o) => o.label)], s = sa.value.body, a = c.concat([e]).concat(s), n = mo(a);
1675
+ t ? t(n) : xo({ csvContent: n, title: l.value.chart.title.text || "vue-ui-xy" });
1676
+ }
1677
+ function na(t, c = null) {
1678
+ Ol.value = t;
1679
+ const e = Te.value.map((s) => ({
1680
+ name: s.name,
1681
+ value: [null, void 0, NaN].includes(s.absoluteValues[c]) ? null : s.absoluteValues[c],
1682
+ color: s.color,
1683
+ type: s.type
1684
+ }));
1685
+ t ? ($.value = c, l.value.events.datapointEnter && l.value.events.datapointEnter({ datapoint: e, seriesIndex: c + x.value.start })) : ($.value = null, l.value.events.datapointLeave && l.value.events.datapointLeave({ datapoint: e, seriesIndex: c + x.value.start }));
1686
+ }
1687
+ function ra() {
1688
+ f.value.showTable = !f.value.showTable;
1689
+ }
1690
+ function ca() {
1691
+ f.value.dataLabels.show = !f.value.dataLabels.show;
1692
+ }
1693
+ function va() {
1694
+ f.value.showTooltip = !f.value.showTooltip;
1695
+ }
1696
+ function da(t) {
1697
+ je.value = t, ut.value += 1;
1698
+ }
1699
+ function ha() {
1700
+ if (!l.value.responsiveProportionalSizing) {
1701
+ S.value.dataLabels = l.value.chart.grid.labels.fontSize, S.value.yAxis = l.value.chart.grid.labels.axis.fontSize, S.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, S.value.plotLabels = l.value.chart.labels.fontSize, Le.value.plot = l.value.plot.radius, Le.value.line = l.value.line.radius;
1702
+ return;
1703
+ }
1704
+ S.value.dataLabels = Bl({
1705
+ relator: ue.value,
1706
+ adjuster: 400,
1707
+ source: l.value.chart.grid.labels.fontSize,
1708
+ threshold: 10,
1709
+ fallback: 10
1710
+ }), S.value.yAxis = Bl({
1711
+ relator: se.value,
1712
+ adjuster: 1e3,
1713
+ source: l.value.chart.grid.labels.axis.fontSize,
1714
+ threshold: 10,
1715
+ fallback: 10
1716
+ }), S.value.xAxis = Bl({
1717
+ relator: se.value,
1718
+ adjuster: 1e3,
1719
+ source: l.value.chart.grid.labels.xAxisLabels.fontSize,
1720
+ threshold: 10,
1721
+ fallback: 10
1722
+ }), S.value.plotLabels = Bl({
1723
+ relator: se.value,
1724
+ adjuster: 800,
1725
+ source: l.value.chart.labels.fontSize,
1726
+ threshold: 10,
1727
+ fallback: 10
1728
+ }), Le.value.plot = Bl({
1729
+ relator: se.value,
1730
+ adjuster: 800,
1731
+ source: l.value.plot.radius,
1732
+ threshold: 1,
1733
+ fallback: 1
1734
+ }), Le.value.line = Bl({
1735
+ relator: se.value,
1736
+ adjuster: 800,
1737
+ source: l.value.line.radius,
1738
+ threshold: 1,
1739
+ fallback: 1
1740
+ });
1741
+ }
1742
+ const lt = k(() => !!l.value.debug);
1743
+ function fa() {
1744
+ ka(d.dataset) ? (Tt({
1745
+ componentName: "VueUiXy",
1746
+ type: "dataset",
1747
+ debug: lt.value
1748
+ }), y.value = !0) : d.dataset.forEach((c, e) => {
1749
+ [null, void 0].includes(c.name) && (Tt({
1750
+ componentName: "VueUiXy",
1751
+ type: "datasetSerieAttribute",
1752
+ property: "name (string)",
1753
+ index: e,
1754
+ debug: lt.value
1755
+ }), y.value = !0);
1756
+ }), lt.value && d.dataset.forEach((c) => {
1757
+ c.series.forEach((e, s) => {
1758
+ gt(e) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
1759
+ -----> The serie '${c.name}' contains the value '${e}' at index ${s}.
1760
+ '${e}' was converted to null to allow the chart to display.`);
1761
+ });
1762
+ }), ka(d.dataset) || (y.value = l.value.loading), ql.value = l.value.chart.userOptions.showOnChartHover, Rl.value = l.value.chart.userOptions.keepStateOnChartLeave, Pl.value = !l.value.chart.userOptions.showOnChartHover, f.value = {
1763
+ dataLabels: {
1764
+ show: !0
1765
+ },
1766
+ showTooltip: l.value.chart.tooltip.show === !0,
1767
+ showTable: l.value.showTable === !0,
1768
+ isStacked: l.value.chart.grid.labels.yAxis.stacked,
1769
+ useIndividualScale: l.value.chart.grid.labels.yAxis.useIndividualScale
1770
+ };
1771
+ const t = 12;
1772
+ if (l.value.responsive) {
1773
+ const e = de.value.parentNode;
1774
+ X.value && (X.value.unobserve(sl.value), X.value.disconnect());
1775
+ const { height: s, width: a } = e.getBoundingClientRect();
1776
+ let n = null, o = 0;
1777
+ l.value.chart.title.show && xe.value && (n = xe.value, o = n.getBoundingClientRect().height);
1778
+ let P = null, D = 0;
1779
+ l.value.chart.zoom.show && A.value > 6 && Sl.value && _e.value && _e.value.$el && (P = _e.value.$el, D = P.getBoundingClientRect().height);
1780
+ let G = null, z = 0;
1781
+ l.value.chart.legend.show && Ge.value && (G = Ge.value, z = G.getBoundingClientRect().height);
1782
+ let N = 0;
1783
+ yl.value && (N = yl.value.getBoundingClientRect().height);
1784
+ let U = 0;
1785
+ pl.value && (U = pl.value.getBoundingClientRect().height), ue.value = s - o - z - D - N - U - t, se.value = a, Tl.value = `0 0 ${se.value < 0 ? 10 : se.value} ${ue.value < 0 ? 10 : ue.value}`, ha();
1786
+ const I = new ResizeObserver((E) => {
1787
+ for (const O of E)
1788
+ l.value.chart.title.show && xe.value ? o = xe.value.getBoundingClientRect().height : o = 0, _e.value && _e.value.$el ? D = _e.value.$el.getBoundingClientRect().height : D = 0, Ge.value ? z = Ge.value.getBoundingClientRect().height : z = 0, yl.value ? N = yl.value.getBoundingClientRect().height : N = 0, pl.value ? U = pl.value.getBoundingClientRect().height : U = 0, requestAnimationFrame(() => {
1789
+ ue.value = O.contentRect.height - o - z - D - N - U - t, se.value = O.contentBoxSize[0].inlineSize, Tl.value = `0 0 ${se.value < 0 ? 10 : se.value} ${ue.value < 0 ? 10 : ue.value}`, ha();
1790
+ });
1791
+ });
1792
+ X.value = I, sl.value = e, I.observe(e);
1793
+ } else
1794
+ ue.value = l.value.chart.height, se.value = l.value.chart.width, S.value.dataLabels = l.value.chart.grid.labels.fontSize, S.value.yAxis = l.value.chart.grid.labels.axis.fontSize, S.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, S.value.plotLabels = l.value.chart.labels.fontSize, Le.value.plot = l.value.plot.radius, Le.value.line = l.value.line.radius, Tl.value = `0 0 ${se.value} ${ue.value}`;
1795
+ }
1796
+ return yt(() => {
1797
+ fa(), It(), document.addEventListener("mousemove", (t) => {
1798
+ wl.value = {
1799
+ x: t.clientX,
1800
+ y: t.clientY
1801
+ };
1802
+ }), document.addEventListener("scroll", Ft);
1803
+ }), pt(() => {
1804
+ document.removeEventListener("scroll", Ft), X.value && (X.value.unobserve(sl.value), X.value.disconnect());
1805
+ }), yo({
1806
+ timeLabelsEls: Qe,
1807
+ timeLabels: K,
1808
+ slicer: x,
1809
+ configRef: l,
1810
+ rotationPath: ["chart", "grid", "labels", "xAxisLabels", "rotation"],
1811
+ autoRotatePath: ["chart", "grid", "labels", "xAxisLabels", "autoRotate"],
1812
+ isAutoSize: Sa
1813
+ }), Ke(() => d.dataset, (t) => {
1814
+ Array.isArray(t) && t.length > 0 && (y.value = !1), A.value = Math.max(...m.value.map((c) => ul({
1815
+ data: c.series,
1816
+ threshold: l.value.downsample.threshold
1817
+ }).length)), x.value = {
1818
+ start: 0,
1819
+ end: A.value
1820
+ }, he.value += 1, Nl.value += 1;
1821
+ }, { deep: !0 }), Ke(() => d.config, (t) => {
1822
+ el.value || (l.value = Vl()), fa(), Ul.value += 1, st.value += 1, f.value = {
1823
+ dataLabels: {
1824
+ show: !0
1825
+ },
1826
+ showTooltip: l.value.chart.tooltip.show === !0,
1827
+ showTable: l.value.showTable === !0,
1828
+ isStacked: l.value.chart.grid.labels.yAxis.stacked,
1829
+ useIndividualScale: l.value.chart.grid.labels.yAxis.useIndividualScale
1830
+ };
1831
+ }, { deep: !0 }), Ke(l, () => {
1832
+ f.value = {
1833
+ dataLabels: {
1834
+ show: !0
1835
+ },
1836
+ showTooltip: l.value.chart.tooltip.show === !0,
1837
+ showTable: l.value.showTable === !0,
1838
+ isStacked: l.value.chart.grid.labels.yAxis.stacked,
1839
+ useIndividualScale: l.value.chart.grid.labels.yAxis.useIndividualScale
1840
+ };
1841
+ }, { immediate: !0 }), St({
1842
+ getData: Ra,
1843
+ getImage: Pa,
1844
+ generatePdf: Pt,
1845
+ generateImage: Ht,
1846
+ generateCsv: ia,
1847
+ toggleStack: Gt,
1848
+ toggleTable: ra,
1849
+ toggleLabels: ca,
1850
+ toggleTooltip: va,
1851
+ toggleAnnotator: Ct,
1852
+ toggleFullscreen: da
1853
+ }), (t, c) => (u(), i("div", {
1854
+ id: `vue-ui-xy_${J.value}`,
1855
+ class: Ce(`vue-ui-xy ${je.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${l.value.useCssAnimation ? "" : "vue-ui-dna"}`),
1856
+ ref_key: "chart",
1857
+ ref: de,
1858
+ style: T(`background:${l.value.chart.backgroundColor}; color:${l.value.chart.color};width:100%;font-family:${l.value.chart.fontFamily};${l.value.responsive ? "height: 100%" : ""}`),
1859
+ onMouseenter: c[10] || (c[10] = () => Yt(!0)),
1860
+ onMouseleave: c[11] || (c[11] = () => Yt(!1))
1861
+ }, [
1862
+ l.value.chart.userOptions.buttons.annotator && be.value ? (u(), We(v(xl), {
1863
+ key: 0,
1864
+ svgRef: be.value,
1865
+ backgroundColor: l.value.chart.backgroundColor,
1866
+ color: l.value.chart.color,
1867
+ active: il.value,
1868
+ onClose: Ct
1869
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
1870
+ Va.value ? (u(), i("div", {
1871
+ key: 1,
1872
+ ref_key: "noTitle",
1873
+ ref: pl,
1874
+ class: "vue-data-ui-no-title-space",
1875
+ style: "height:36px; width: 100%; background:transparent"
1876
+ }, null, 512)) : h("", !0),
1877
+ l.value.chart.title.show ? (u(), i("div", {
1878
+ key: 2,
1879
+ ref_key: "chartTitle",
1880
+ ref: xe,
1881
+ class: "vue-ui-xy-title",
1882
+ style: T(`font-family:${l.value.chart.fontFamily}`)
1883
+ }, [
1884
+ (u(), We(So, {
1885
+ key: `title_${Ul.value}`,
1886
+ config: {
1887
+ title: {
1888
+ cy: "xy-div-title",
1889
+ ...l.value.chart.title
1890
+ },
1891
+ subtitle: {
1892
+ cy: "xy-div-subtitle",
1893
+ ...l.value.chart.title.subtitle
1894
+ }
1895
+ }
1896
+ }, null, 8, ["config"]))
1897
+ ], 4)) : h("", !0),
1898
+ l.value.chart.userOptions.show && (Rl.value || Pl.value) ? (u(), We(v(fe), {
1899
+ ref: "defails",
1900
+ key: `user_options_${ut.value}`,
1901
+ backgroundColor: l.value.chart.backgroundColor,
1902
+ color: l.value.chart.color,
1903
+ isPrinting: v(Jl),
1904
+ isImaging: v(nt),
1905
+ uid: J.value,
1906
+ hasTooltip: l.value.chart.userOptions.buttons.tooltip && l.value.chart.tooltip.show,
1907
+ hasPdf: l.value.chart.userOptions.buttons.pdf,
1908
+ hasXls: l.value.chart.userOptions.buttons.csv,
1909
+ hasImg: l.value.chart.userOptions.buttons.img,
1910
+ hasLabel: l.value.chart.userOptions.buttons.labels,
1911
+ hasTable: l.value.chart.userOptions.buttons.table,
1912
+ hasStack: w.dataset.length > 1 && l.value.chart.userOptions.buttons.stack,
1913
+ hasFullscreen: l.value.chart.userOptions.buttons.fullscreen,
1914
+ isStacked: f.value.isStacked,
1915
+ isFullscreen: je.value,
1916
+ chartElement: t.$refs.chart,
1917
+ position: l.value.chart.userOptions.position,
1918
+ isTooltip: f.value.showTooltip,
1919
+ titles: { ...l.value.chart.userOptions.buttonTitles },
1920
+ hasAnnotator: l.value.chart.userOptions.buttons.annotator,
1921
+ isAnnotation: il.value,
1922
+ callbacks: l.value.chart.userOptions.callbacks,
1923
+ printScale: l.value.chart.userOptions.print.scale,
1924
+ onToggleFullscreen: da,
1925
+ onGeneratePdf: v(Pt),
1926
+ onGenerateCsv: ia,
1927
+ onGenerateImage: v(Ht),
1928
+ onToggleTable: ra,
1929
+ onToggleLabels: ca,
1930
+ onToggleStack: Gt,
1931
+ onToggleTooltip: va,
1932
+ onToggleAnnotator: Ct,
1933
+ style: T({
1934
+ visibility: Rl.value ? Pl.value ? "visible" : "hidden" : "visible"
1935
+ })
1936
+ }, Qa({ _: 2 }, [
1937
+ t.$slots.menuIcon ? {
1938
+ name: "menuIcon",
1939
+ fn: me(({ isOpen: e, color: s }) => [
1940
+ Z(t.$slots, "menuIcon", ol(hl({ isOpen: e, color: s })), void 0, !0)
1941
+ ]),
1942
+ key: "0"
1943
+ } : void 0,
1944
+ t.$slots.optionTooltip ? {
1945
+ name: "optionTooltip",
1946
+ fn: me(() => [
1947
+ Z(t.$slots, "optionTooltip", {}, void 0, !0)
1948
+ ]),
1949
+ key: "1"
1950
+ } : void 0,
1951
+ t.$slots.optionPdf ? {
1952
+ name: "optionPdf",
1953
+ fn: me(() => [
1954
+ Z(t.$slots, "optionPdf", {}, void 0, !0)
1955
+ ]),
1956
+ key: "2"
1957
+ } : void 0,
1958
+ t.$slots.optionCsv ? {
1959
+ name: "optionCsv",
1960
+ fn: me(() => [
1961
+ Z(t.$slots, "optionCsv", {}, void 0, !0)
1962
+ ]),
1963
+ key: "3"
1964
+ } : void 0,
1965
+ t.$slots.optionImg ? {
1966
+ name: "optionImg",
1967
+ fn: me(() => [
1968
+ Z(t.$slots, "optionImg", {}, void 0, !0)
1969
+ ]),
1970
+ key: "4"
1971
+ } : void 0,
1972
+ t.$slots.optionTable ? {
1973
+ name: "optionTable",
1974
+ fn: me(() => [
1975
+ Z(t.$slots, "optionTable", {}, void 0, !0)
1976
+ ]),
1977
+ key: "5"
1978
+ } : void 0,
1979
+ t.$slots.optionLabels ? {
1980
+ name: "optionLabels",
1981
+ fn: me(() => [
1982
+ Z(t.$slots, "optionLabels", {}, void 0, !0)
1983
+ ]),
1984
+ key: "6"
1985
+ } : void 0,
1986
+ t.$slots.optionStack ? {
1987
+ name: "optionStack",
1988
+ fn: me(() => [
1989
+ Z(t.$slots, "optionStack", {}, void 0, !0)
1990
+ ]),
1991
+ key: "7"
1992
+ } : void 0,
1993
+ t.$slots.optionFullscreen ? {
1994
+ name: "optionFullscreen",
1995
+ fn: me(({ toggleFullscreen: e, isFullscreen: s }) => [
1996
+ Z(t.$slots, "optionFullscreen", ol(hl({ toggleFullscreen: e, isFullscreen: s })), void 0, !0)
1997
+ ]),
1998
+ key: "8"
1999
+ } : void 0,
2000
+ t.$slots.optionAnnotator ? {
2001
+ name: "optionAnnotator",
2002
+ fn: me(({ toggleAnnotator: e, isAnnotator: s }) => [
2003
+ Z(t.$slots, "optionAnnotator", ol(hl({ toggleAnnotator: e, isAnnotator: s })), void 0, !0)
2004
+ ]),
2005
+ key: "9"
2006
+ } : void 0
2007
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
2008
+ (u(), i("svg", {
2009
+ ref_key: "svgRef",
2010
+ ref: be,
2011
+ xmlns: "http://www.w3.org/2000/svg",
2012
+ class: Ce([{ "vue-data-ui-fullscreen--on": je.value, "vue-data-ui-fulscreen--off": !je.value }, "vue-ui-xy-svg vue-data-ui-svg"]),
2013
+ width: "100%",
2014
+ viewBox: Tl.value,
2015
+ style: T({
2016
+ background: "transparent",
2017
+ color: l.value.chart.color,
2018
+ fontFamily: l.value.chart.fontFamily
2019
+ }),
2020
+ "aria-label": Ha.value,
2021
+ role: "img",
2022
+ "aria-live": "polite",
2023
+ preserveAspectRatio: "xMidYMid",
2024
+ onMousemove: Ta,
2025
+ onMouseleave: jt,
2026
+ onClick: Oa
2027
+ }, [
2028
+ b("g", {
2029
+ ref_key: "G",
2030
+ ref: _t,
2031
+ class: "vue-data-ui-g"
2032
+ }, [
2033
+ Fl(v(ml)),
2034
+ t.$slots["chart-background"] ? (u(), i("foreignObject", {
2035
+ key: 0,
2036
+ x: r.value.left + j.value < 0 ? 0 : r.value.left + j.value,
2037
+ y: r.value.top,
2038
+ width: r.value.width - (l.value.chart.grid.position === "middle" ? 0 : r.value.width / _.value) < 0 ? 0 : r.value.width - (l.value.chart.grid.position === "middle" ? 0 : r.value.width / _.value),
2039
+ height: r.value.height < 0 ? 0 : r.value.height,
2040
+ style: {
2041
+ pointerEvents: "none"
2042
+ }
2043
+ }, [
2044
+ Z(t.$slots, "chart-background", {}, void 0, !0)
2045
+ ], 8, Ko)) : h("", !0),
2046
+ _.value > 0 ? (u(), i("g", Qo, [
2047
+ b("g", jo, [
2048
+ l.value.chart.grid.labels.xAxis.showBaseline ? (u(), i("line", {
2049
+ key: 0,
2050
+ stroke: l.value.chart.grid.stroke,
2051
+ "stroke-width": "1",
2052
+ x1: r.value.left + j.value,
2053
+ x2: r.value.right - j.value,
2054
+ y1: v(Y)(r.value.bottom),
2055
+ y2: v(Y)(r.value.bottom),
2056
+ "stroke-linecap": "round",
2057
+ style: { animation: "none !important" }
2058
+ }, null, 8, eu)) : h("", !0),
2059
+ f.value.useIndividualScale ? l.value.chart.grid.showHorizontalLines ? (u(!0), i(g, { key: 2 }, L(et.value, (e) => (u(), i("g", null, [
2060
+ e.id === M.value && e.yLabels.length ? (u(!0), i(g, { key: 0 }, L(e.yLabels, (s) => (u(), i("line", {
2061
+ x1: r.value.left + j.value,
2062
+ x2: r.value.right - j.value,
2063
+ y1: v(Y)(s.y),
2064
+ y2: v(Y)(s.y),
2065
+ stroke: e.color,
2066
+ "stroke-width": 0.5,
2067
+ "stroke-linecap": "round",
2068
+ style: { animation: "none !important" }
2069
+ }, null, 8, ou))), 256)) : e.yLabels.length ? (u(!0), i(g, { key: 1 }, L(e.yLabels, (s) => (u(), i("line", {
2070
+ x1: r.value.left + j.value,
2071
+ x2: r.value.right - j.value,
2072
+ y1: v(Y)(s.y),
2073
+ y2: v(Y)(s.y),
2074
+ stroke: l.value.chart.grid.stroke,
2075
+ "stroke-width": 0.5,
2076
+ "stroke-linecap": "round",
2077
+ style: { animation: "none !important" }
2078
+ }, null, 8, uu))), 256)) : h("", !0)
2079
+ ]))), 256)) : h("", !0) : (u(), i(g, { key: 1 }, [
2080
+ l.value.chart.grid.labels.yAxis.showBaseline ? (u(), i("line", {
2081
+ key: 0,
2082
+ stroke: l.value.chart.grid.stroke,
2083
+ "stroke-width": "1",
2084
+ x1: r.value.left + j.value,
2085
+ x2: r.value.left + j.value,
2086
+ y1: v(Y)(r.value.top),
2087
+ y2: v(Y)(r.value.bottom),
2088
+ "stroke-linecap": "round",
2089
+ style: { animation: "none !important" }
2090
+ }, null, 8, lu)) : h("", !0),
2091
+ l.value.chart.grid.showHorizontalLines ? (u(), i("g", tu, [
2092
+ (u(!0), i(g, null, L(aa.value, (e) => (u(), i("line", {
2093
+ x1: r.value.left + j.value,
2094
+ x2: r.value.right,
2095
+ y1: v(Y)(e.y),
2096
+ y2: v(Y)(e.y),
2097
+ stroke: l.value.chart.grid.stroke,
2098
+ "stroke-width": 0.5,
2099
+ "stroke-linecap": "round",
2100
+ style: { animation: "none !important" }
2101
+ }, null, 8, au))), 256))
2102
+ ])) : h("", !0)
2103
+ ], 64)),
2104
+ l.value.chart.grid.showVerticalLines ? (u(), i("g", su, [
2105
+ b("path", {
2106
+ d: Ma.value,
2107
+ "stroke-width": 0.5,
2108
+ stroke: l.value.chart.grid.stroke,
2109
+ "stroke-linecap": "round",
2110
+ style: { animation: "none !important" }
2111
+ }, null, 8, iu)
2112
+ ])) : h("", !0),
2113
+ l.value.chart.grid.labels.xAxisLabels.show ? (u(), i("g", nu, [
2114
+ b("path", {
2115
+ d: Aa.value,
2116
+ stroke: l.value.chart.grid.stroke,
2117
+ "stroke-width": 1,
2118
+ "stroke-linecap": "round",
2119
+ style: { animation: "none !important" }
2120
+ }, null, 8, ru)
2121
+ ])) : h("", !0)
2122
+ ]),
2123
+ (u(!0), i(g, null, L(rl.value, (e, s) => (u(), i("defs", {
2124
+ key: `def_rect_${s}`
2125
+ }, [
2126
+ b("linearGradient", {
2127
+ id: `rectGradient_pos_${s}_${J.value}`,
2128
+ x2: "0%",
2129
+ y2: "100%"
2130
+ }, [
2131
+ b("stop", {
2132
+ offset: "0%",
2133
+ "stop-color": e.color
2134
+ }, null, 8, vu),
2135
+ b("stop", {
2136
+ offset: "62%",
2137
+ "stop-color": `${v(Cl)(e.color, 0.02)}`
2138
+ }, null, 8, du),
2139
+ b("stop", {
2140
+ offset: "100%",
2141
+ "stop-color": `${v(Cl)(e.color, 0.05)}`
2142
+ }, null, 8, hu)
2143
+ ], 8, cu),
2144
+ b("linearGradient", {
2145
+ id: `rectGradient_neg_${s}_${J.value}`,
2146
+ x2: "0%",
2147
+ y2: "100%"
2148
+ }, [
2149
+ b("stop", {
2150
+ offset: "0%",
2151
+ "stop-color": `${v(Cl)(e.color, 0.05)}`
2152
+ }, null, 8, gu),
2153
+ b("stop", {
2154
+ offset: "38%",
2155
+ "stop-color": `${v(Cl)(e.color, 0.02)}`
2156
+ }, null, 8, mu),
2157
+ b("stop", {
2158
+ offset: "100%",
2159
+ "stop-color": e.color
2160
+ }, null, 8, xu)
2161
+ ], 8, fu)
2162
+ ]))), 128)),
2163
+ (u(!0), i(g, null, L(qe.value, (e, s) => (u(), i("defs", {
2164
+ key: `def_plot_${s}`
2165
+ }, [
2166
+ b("radialGradient", {
2167
+ id: `plotGradient_${s}_${J.value}`,
2168
+ cx: "50%",
2169
+ cy: "50%",
2170
+ r: "50%",
2171
+ fx: "50%",
2172
+ fy: "50%"
2173
+ }, [
2174
+ b("stop", {
2175
+ offset: "0%",
2176
+ "stop-color": `${v(Cl)(e.color, 0.05)}`
2177
+ }, null, 8, yu),
2178
+ b("stop", {
2179
+ offset: "100%",
2180
+ "stop-color": e.color
2181
+ }, null, 8, pu)
2182
+ ], 8, bu)
2183
+ ]))), 128)),
2184
+ (u(!0), i(g, null, L(Fe.value, (e, s) => (u(), i("defs", {
2185
+ key: `def_line_${s}`
2186
+ }, [
2187
+ b("radialGradient", {
2188
+ id: `lineGradient_${s}_${J.value}`,
2189
+ cx: "50%",
2190
+ cy: "50%",
2191
+ r: "50%",
2192
+ fx: "50%",
2193
+ fy: "50%"
2194
+ }, [
2195
+ b("stop", {
2196
+ offset: "0%",
2197
+ "stop-color": `${v(Cl)(e.color, 0.05)}`
2198
+ }, null, 8, wu),
2199
+ b("stop", {
2200
+ offset: "100%",
2201
+ "stop-color": e.color
2202
+ }, null, 8, Su)
2203
+ ], 8, ku),
2204
+ b("linearGradient", {
2205
+ id: `areaGradient_${s}_${J.value}`,
2206
+ x1: "0%",
2207
+ x2: "100%",
2208
+ y1: "0%",
2209
+ y2: "0%"
2210
+ }, [
2211
+ b("stop", {
2212
+ offset: "0%",
2213
+ "stop-color": `${v(Ye)(v(Cl)(e.color, 0.03), l.value.line.area.opacity)}`
2214
+ }, null, 8, _u),
2215
+ b("stop", {
2216
+ offset: "100%",
2217
+ "stop-color": `${v(Ye)(e.color, l.value.line.area.opacity)}`
2218
+ }, null, 8, Lu)
2219
+ ], 8, $u)
2220
+ ]))), 128)),
2221
+ (u(!0), i(g, null, L(Ea.value, (e) => (u(), i("g", null, [
2222
+ e.show ? (u(), i(g, { key: 0 }, [
2223
+ (u(!0), i(g, null, L(e.span, (s, a) => (u(), i("g", null, [
2224
+ b("rect", {
2225
+ style: T({
2226
+ transition: "none",
2227
+ opacity: e.from + a >= x.value.start && e.from + a <= x.value.end - 1 ? 1 : 0
2228
+ }),
2229
+ x: r.value.left + r.value.width / _.value * (e.from + a - x.value.start),
2230
+ y: r.value.top,
2231
+ height: r.value.height < 0 ? 10 : r.value.height,
2232
+ width: r.value.width / _.value < 0 ? 1e-5 : r.value.width / _.value,
2233
+ fill: v(Ye)(e.color, e.opacity)
2234
+ }, null, 12, Mu)
2235
+ ]))), 256)),
2236
+ (u(!0), i(g, null, L(e.span, (s, a) => (u(), i("g", null, [
2237
+ e.caption.text && a === 0 ? (u(), i("foreignObject", {
2238
+ key: 0,
2239
+ x: r.value.left + r.value.width / _.value * (e.from + a - x.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - r.value.width / _.value * e.span / 2),
2240
+ y: r.value.top + e.caption.offsetY,
2241
+ style: T({
2242
+ overflow: "visible",
2243
+ opacity: e.to >= x.value.start && e.from < x.value.end ? 1 : 0
2244
+ }),
2245
+ height: "1",
2246
+ width: e.caption.width === "auto" ? r.value.width / _.value * e.span : e.caption.width
2247
+ }, [
2248
+ b("div", {
2249
+ style: T(`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"}`)
2250
+ }, le(e.caption.text), 5)
2251
+ ], 12, Au)) : h("", !0)
2252
+ ]))), 256))
2253
+ ], 64)) : h("", !0)
2254
+ ]))), 256)),
2255
+ Wt.value ? (u(), i("g", Cu, [
2256
+ (u(!0), i(g, null, L(_.value, (e, s) => (u(), i("g", {
2257
+ key: `tooltip_trap_highlighter_${s}`
2258
+ }, [
2259
+ b("rect", {
2260
+ x: r.value.left + r.value.width / _.value * s,
2261
+ y: r.value.top,
2262
+ height: r.value.height < 0 ? 10 : r.value.height,
2263
+ width: r.value.width / _.value < 0 ? 1e-5 : r.value.width / _.value,
2264
+ fill: [H.value, $.value, Ve.value].includes(s) ? v(Ye)(l.value.chart.highlighter.color, l.value.chart.highlighter.opacity) : "transparent"
2265
+ }, null, 8, zu)
2266
+ ]))), 128))
2267
+ ])) : h("", !0),
2268
+ rl.value.length ? (u(!0), i(g, { key: 1 }, L(rl.value, (e, s) => (u(), i("g", {
2269
+ key: `serie_bar_${s}`,
2270
+ class: Ce(`serie_bar_${s}`),
2271
+ style: T(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2272
+ }, [
2273
+ (u(!0), i(g, null, L(e.plots, (a, n) => (u(), i("g", {
2274
+ key: `bar_plot_${s}_${n}`
2275
+ }, [
2276
+ Oe(a.value) ? (u(), i("rect", {
2277
+ key: 0,
2278
+ x: dt(a),
2279
+ y: f.value.useIndividualScale ? Qt(a) : Kt(a),
2280
+ height: f.value.useIndividualScale ? Math.abs(Jt(a)) : Math.abs(Zt(a)),
2281
+ width: Be() - (f.value.useIndividualScale && f.value.isStacked ? 0 : al.value) < 0 ? 1e-5 : Be() - (f.value.useIndividualScale && f.value.isStacked ? 0 : al.value),
2282
+ rx: l.value.bar.borderRadius,
2283
+ fill: l.value.bar.useGradient ? a.value >= 0 ? `url(#rectGradient_pos_${s}_${J.value})` : `url(#rectGradient_neg_${s}_${J.value})` : e.color,
2284
+ stroke: l.value.bar.border.useSerieColor ? e.color : l.value.bar.border.stroke,
2285
+ "stroke-width": l.value.bar.border.strokeWidth,
2286
+ style: T(`${v(el) ? "transition:none !important" : ""}`)
2287
+ }, null, 12, Iu)) : h("", !0),
2288
+ Oe(a.value) && t.$slots.pattern ? (u(), i("rect", {
2289
+ key: 1,
2290
+ x: dt(a),
2291
+ y: f.value.useIndividualScale ? Qt(a) : Kt(a),
2292
+ height: f.value.useIndividualScale ? Math.abs(Jt(a)) : Math.abs(Zt(a)),
2293
+ width: Be() - (f.value.useIndividualScale && f.value.isStacked ? 0 : al.value) < 0 ? 1e-5 : Be() - (f.value.useIndividualScale && f.value.isStacked ? 0 : al.value),
2294
+ rx: l.value.bar.borderRadius,
2295
+ fill: `url(#pattern_${J.value}_${e.slotAbsoluteIndex})`,
2296
+ stroke: l.value.bar.border.useSerieColor ? e.color : l.value.bar.border.stroke,
2297
+ "stroke-width": l.value.bar.border.strokeWidth
2298
+ }, null, 8, Tu)) : h("", !0),
2299
+ a.comment && l.value.chart.comments.show ? (u(), i("foreignObject", {
2300
+ key: 2,
2301
+ style: { overflow: "visible" },
2302
+ height: "12",
2303
+ width: (Be() - (f.value.useIndividualScale && f.value.isStacked ? 0 : al.value) < 0 ? 1e-5 : Be() - (f.value.useIndividualScale && f.value.isStacked ? 0 : al.value) / 2) + l.value.chart.comments.width,
2304
+ x: dt(a) - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
2305
+ y: v(V)(a.y) + l.value.chart.comments.offsetY + 6
2306
+ }, [
2307
+ Z(t.$slots, "plot-comment", {
2308
+ plot: { ...a, color: e.color, seriesIndex: s, datapointIndex: n }
2309
+ }, void 0, !0)
2310
+ ], 8, Ou)) : h("", !0)
2311
+ ]))), 128)),
2312
+ Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(Q)(e.plots).trend) ? (u(), i("g", Nu, [
2313
+ b("defs", null, [
2314
+ b("marker", {
2315
+ id: `bar_arrow_${s}`,
2316
+ markerWidth: 7,
2317
+ markerHeight: 7,
2318
+ refX: "0",
2319
+ refY: 7 / 2,
2320
+ orient: "auto"
2321
+ }, [
2322
+ b("polygon", {
2323
+ points: `0 0, 7 ${7 / 2}, 0 7`,
2324
+ fill: e.color
2325
+ }, null, 8, Pu)
2326
+ ], 8, Ru)
2327
+ ]),
2328
+ e.plots.length > 1 ? (u(), i("line", {
2329
+ key: 0,
2330
+ x1: v(Q)(e.plots).x1 + Be(),
2331
+ x2: v(Q)(e.plots).x2 + Be(),
2332
+ y1: v(Y)(v(Q)(e.plots).y1),
2333
+ y2: v(Y)(v(Q)(e.plots).y2),
2334
+ "stroke-width": 1,
2335
+ stroke: e.color,
2336
+ "stroke-dasharray": 2,
2337
+ "marker-end": `url(#bar_arrow_${s})`
2338
+ }, null, 8, Hu)) : h("", !0),
2339
+ e.plots.length > 1 ? (u(), i("text", {
2340
+ key: 1,
2341
+ "text-anchor": "middle",
2342
+ x: v(Q)(e.plots).x2 + Be(),
2343
+ y: v(Q)(e.plots).y2 - 6,
2344
+ "font-size": S.value.plotLabels,
2345
+ fill: e.color
2346
+ }, le(v(Re)({
2347
+ v: v(Q)(e.plots).trend * 100,
2348
+ s: "%",
2349
+ r: 2
2350
+ })), 9, Vu)) : h("", !0)
2351
+ ])) : h("", !0)
2352
+ ], 6))), 128)) : h("", !0),
2353
+ !f.value.useIndividualScale && l.value.chart.grid.labels.zeroLine.show ? (u(), i("line", {
2354
+ key: 2,
2355
+ stroke: l.value.chart.grid.stroke,
2356
+ "stroke-width": "1",
2357
+ x1: r.value.left + j.value,
2358
+ x2: r.value.right - j.value,
2359
+ y1: v(Y)(we.value),
2360
+ y2: v(Y)(we.value),
2361
+ "stroke-linecap": "round",
2362
+ style: { animation: "none !important" }
2363
+ }, null, 8, Eu)) : h("", !0),
2364
+ l.value.chart.highlighter.useLine && (![null, void 0].includes($.value) || ![null, void 0].includes(H.value)) ? (u(), i("g", Bu, [
2365
+ b("line", {
2366
+ x1: r.value.left + r.value.width / _.value * (($.value !== null ? $.value : 0) || (H.value !== null ? H.value : 0)) + r.value.width / _.value / 2,
2367
+ x2: r.value.left + r.value.width / _.value * (($.value !== null ? $.value : 0) || (H.value !== null ? H.value : 0)) + r.value.width / _.value / 2,
2368
+ y1: v(Y)(r.value.top),
2369
+ y2: v(Y)(r.value.bottom),
2370
+ stroke: l.value.chart.highlighter.color,
2371
+ "stroke-width": l.value.chart.highlighter.lineWidth,
2372
+ "stroke-dasharray": l.value.chart.highlighter.lineDasharray,
2373
+ "stroke-linecap": "round",
2374
+ style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
2375
+ }, null, 8, Fu)
2376
+ ])) : h("", !0),
2377
+ l.value.chart.grid.frame.show ? (u(), i("rect", {
2378
+ key: 4,
2379
+ style: { pointerEvents: "none", transition: "none", animation: "none !important" },
2380
+ x: r.value.left + j.value < 0 ? 0 : r.value.left + j.value,
2381
+ y: r.value.top,
2382
+ width: r.value.width - (l.value.chart.grid.position === "middle" ? 0 : r.value.width / _.value) < 0 ? 0 : r.value.width - (l.value.chart.grid.position === "middle" ? 0 : r.value.width / _.value),
2383
+ height: r.value.height < 0 ? 0 : r.value.height,
2384
+ fill: "transparent",
2385
+ stroke: l.value.chart.grid.frame.stroke,
2386
+ "stroke-width": l.value.chart.grid.frame.strokeWidth,
2387
+ "stroke-linecap": l.value.chart.grid.frame.strokeLinecap,
2388
+ "stroke-linejoin": l.value.chart.grid.frame.strokeLinejoin,
2389
+ "stroke-dasharray": l.value.chart.grid.frame.strokeDasharray
2390
+ }, null, 8, Wu)) : h("", !0),
2391
+ l.value.chart.grid.labels.show ? (u(), i("g", {
2392
+ key: 5,
2393
+ ref_key: "scaleLabels",
2394
+ ref: kl
2395
+ }, [
2396
+ f.value.useIndividualScale ? (u(), i(g, { key: 0 }, [
2397
+ (u(!0), i(g, null, L(et.value, (e) => (u(), i("g", null, [
2398
+ b("line", {
2399
+ x1: e.x + j.value - r.value.individualOffsetX,
2400
+ x2: e.x + j.value - r.value.individualOffsetX,
2401
+ y1: f.value.isStacked ? v(Y)(r.value.bottom - e.yOffset - e.individualHeight) : v(Y)(r.value.top),
2402
+ y2: f.value.isStacked ? v(Y)(r.value.bottom - e.yOffset) : v(Y)(r.value.bottom),
2403
+ stroke: e.color,
2404
+ "stroke-width": l.value.chart.grid.stroke,
2405
+ "stroke-linecap": "round",
2406
+ style: T(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
2407
+ }, null, 12, Yu)
2408
+ ]))), 256)),
2409
+ (u(!0), i(g, null, L(et.value, (e) => (u(), i("g", {
2410
+ style: T(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
2411
+ }, [
2412
+ b("text", {
2413
+ fill: e.color,
2414
+ "font-size": S.value.dataLabels * 0.8,
2415
+ "text-anchor": "middle",
2416
+ transform: `translate(${e.x - S.value.dataLabels * 0.8 / 2 + j.value}, ${f.value.isStacked ? r.value.bottom - e.yOffset - e.individualHeight / 2 : r.value.top + r.value.height / 2}) rotate(-90)`
2417
+ }, le(e.name) + " " + le(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `-
2418
+ ${e.scaleLabel}` : ""), 9, Xu),
2419
+ (u(!0), i(g, null, L(e.yLabels, (s, a) => (u(), i(g, null, [
2420
+ l.value.chart.grid.labels.yAxis.showCrosshairs ? (u(), i("line", {
2421
+ key: 0,
2422
+ x1: e.x + 3 + j.value - l.value.chart.grid.labels.yAxis.crosshairSize - r.value.individualOffsetX,
2423
+ x2: e.x + j.value - r.value.individualOffsetX,
2424
+ y1: v(Y)(s.y),
2425
+ y2: v(Y)(s.y),
2426
+ stroke: e.color,
2427
+ "stroke-width": 1,
2428
+ "stroke-linecap": "round",
2429
+ style: { animation: "none !important" }
2430
+ }, null, 8, Du)) : h("", !0)
2431
+ ], 64))), 256)),
2432
+ (u(!0), i(g, null, L(e.yLabels, (s, a) => (u(), i("text", {
2433
+ x: e.x - 5 + j.value - r.value.individualOffsetX,
2434
+ y: v(Y)(s.y) + S.value.dataLabels / 3,
2435
+ "font-size": S.value.dataLabels,
2436
+ "text-anchor": "end",
2437
+ fill: e.color
2438
+ }, le(v(ke)(
2439
+ l.value.chart.grid.labels.yAxis.formatter,
2440
+ s.value,
2441
+ v(Re)({
2442
+ p: s.prefix,
2443
+ v: s.value,
2444
+ s: s.suffix,
2445
+ r: l.value.chart.grid.labels.yAxis.rounding
2446
+ }),
2447
+ { datapoint: s.datapoint, seriesIndex: a }
2448
+ )), 9, Gu))), 256))
2449
+ ], 4))), 256))
2450
+ ], 64)) : (u(!0), i(g, { key: 1 }, L(aa.value, (e, s) => (u(), i("g", {
2451
+ key: `yLabel_${s}`
2452
+ }, [
2453
+ Oe(e) && e.value >= Ee.value.min && e.value <= Ee.value.max && l.value.chart.grid.labels.yAxis.showCrosshairs ? (u(), i("line", {
2454
+ key: 0,
2455
+ x1: r.value.left,
2456
+ x2: r.value.left - l.value.chart.grid.labels.yAxis.crosshairSize,
2457
+ y1: v(Y)(e.y),
2458
+ y2: v(Y)(e.y),
2459
+ stroke: l.value.chart.grid.stroke,
2460
+ "stroke-width": "1",
2461
+ "stroke-linecap": "round",
2462
+ style: { animation: "none !important" }
2463
+ }, null, 8, Uu)) : h("", !0),
2464
+ e.value >= Ee.value.min && e.value <= Ee.value.max ? (u(), i("text", {
2465
+ key: 1,
2466
+ x: r.value.scaleLabelX - l.value.chart.grid.labels.yAxis.crosshairSize,
2467
+ y: v(V)(e.y + S.value.dataLabels / 3),
2468
+ "font-size": S.value.dataLabels,
2469
+ "text-anchor": "end",
2470
+ fill: l.value.chart.grid.labels.color
2471
+ }, le(Oe(e.value) ? v(ke)(
2472
+ l.value.chart.grid.labels.yAxis.formatter,
2473
+ e.value,
2474
+ v(Re)({
2475
+ p: e.prefix,
2476
+ v: e.value,
2477
+ s: e.suffix,
2478
+ r: l.value.chart.grid.labels.yAxis.rounding
2479
+ })
2480
+ ) : ""), 9, qu)) : h("", !0)
2481
+ ]))), 128))
2482
+ ], 512)) : h("", !0),
2483
+ (u(!0), i(g, null, L(qe.value, (e, s) => (u(), i("g", {
2484
+ key: `serie_plot_${s}`,
2485
+ class: Ce(`serie_plot_${s}`),
2486
+ style: T(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2487
+ }, [
2488
+ (u(!0), i(g, null, L(e.plots, (a, n) => (u(), i("g", {
2489
+ key: `circle_plot_${s}_${n}`
2490
+ }, [
2491
+ a && Oe(a.value) ? (u(), We(xt, {
2492
+ key: 0,
2493
+ shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
2494
+ color: l.value.plot.useGradient ? `url(#plotGradient_${s}_${J.value})` : l.value.plot.dot.useSerieColor ? e.color : l.value.plot.dot.fill,
2495
+ plot: { x: v(V)(a.x), y: v(V)(a.y) },
2496
+ radius: $.value !== null && $.value === n || H.value !== null && H.value === n ? (Le.value.plot || 6) * 1.5 : Le.value.plot || 6,
2497
+ stroke: l.value.plot.dot.useSerieColor ? l.value.chart.backgroundColor : e.color,
2498
+ strokeWidth: l.value.plot.dot.strokeWidth
2499
+ }, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : h("", !0),
2500
+ a.comment && l.value.chart.comments.show ? (u(), i("foreignObject", {
2501
+ key: 1,
2502
+ style: { overflow: "visible" },
2503
+ height: "12",
2504
+ width: l.value.chart.comments.width,
2505
+ x: a.x - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
2506
+ y: a.y + l.value.chart.comments.offsetY + 6
2507
+ }, [
2508
+ b("div", Ju, [
2509
+ Z(t.$slots, "plot-comment", {
2510
+ plot: { ...a, color: e.color, seriesIndex: s, datapointIndex: n }
2511
+ }, void 0, !0)
2512
+ ])
2513
+ ], 8, Zu)) : h("", !0)
2514
+ ]))), 128)),
2515
+ Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(Q)(e.plots).trend) ? (u(), i("g", Ku, [
2516
+ b("defs", null, [
2517
+ b("marker", {
2518
+ id: `plot_arrow_${s}`,
2519
+ markerWidth: 7,
2520
+ markerHeight: 7,
2521
+ refX: "0",
2522
+ refY: 7 / 2,
2523
+ orient: "auto"
2524
+ }, [
2525
+ b("polygon", {
2526
+ points: `0 0, 7 ${7 / 2}, 0 7`,
2527
+ fill: e.color
2528
+ }, null, 8, ju)
2529
+ ], 8, Qu)
2530
+ ]),
2531
+ e.plots.length > 1 ? (u(), i("line", {
2532
+ key: 0,
2533
+ x1: v(Q)(e.plots).x1,
2534
+ x2: v(Q)(e.plots).x2,
2535
+ y1: v(Y)(v(Q)(e.plots).y1),
2536
+ y2: v(Y)(v(Q)(e.plots).y2),
2537
+ "stroke-width": 1,
2538
+ stroke: e.color,
2539
+ "stroke-dasharray": 2,
2540
+ "marker-end": `url(#plot_arrow_${s})`
2541
+ }, null, 8, es)) : h("", !0),
2542
+ e.plots.length > 1 ? (u(), i("text", {
2543
+ key: 1,
2544
+ "text-anchor": "middle",
2545
+ x: v(Q)(e.plots).x2,
2546
+ y: v(Q)(e.plots).y2 - 6,
2547
+ "font-size": S.value.plotLabels,
2548
+ fill: e.color
2549
+ }, le(v(Re)({
2550
+ v: v(Q)(e.plots).trend * 100,
2551
+ s: "%",
2552
+ r: 2
2553
+ })), 9, ls)) : h("", !0)
2554
+ ])) : h("", !0)
2555
+ ], 6))), 128)),
2556
+ (u(!0), i(g, null, L(Fe.value, (e, s) => (u(), i("g", {
2557
+ key: `serie_line_${s}`,
2558
+ class: Ce(`serie_line_${s}`),
2559
+ style: T(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2560
+ }, [
2561
+ e.smooth && e.plots.length > 1 && e.curve ? (u(), i("path", {
2562
+ key: 0,
2563
+ d: `M${e.curve}`,
2564
+ stroke: l.value.chart.backgroundColor,
2565
+ "stroke-width": l.value.line.strokeWidth + 1,
2566
+ "stroke-dasharray": e.dashed ? l.value.line.strokeWidth * 2 : 0,
2567
+ fill: "none"
2568
+ }, null, 8, ts)) : e.plots.length > 1 && e.straight ? (u(), i("path", {
2569
+ key: 1,
2570
+ d: `M${e.straight}`,
2571
+ stroke: l.value.chart.backgroundColor,
2572
+ "stroke-width": l.value.line.strokeWidth + 1,
2573
+ "stroke-dasharray": e.dashed ? l.value.line.strokeWidth * 2 : 0,
2574
+ fill: "none",
2575
+ "stroke-linecap": "round",
2576
+ "stroke-linejoin": "round"
2577
+ }, null, 8, as)) : h("", !0)
2578
+ ], 6))), 128)),
2579
+ t.$slots.pattern ? (u(), i("defs", os, [
2580
+ (u(!0), i(g, null, L(ll.value, (e, s) => Z(t.$slots, "pattern", ft({
2581
+ key: `serie_pattern_slot_${s}`
2582
+ }, { ref_for: !0 }, { ...e, seriesIndex: e.slotAbsoluteIndex, patternId: `pattern_${J.value}_${s}` }), void 0, !0)), 128))
2583
+ ])) : h("", !0),
2584
+ (u(!0), i(g, null, L(Fe.value, (e, s) => (u(), i("g", {
2585
+ key: `serie_line_${s}`,
2586
+ class: Ce(`serie_line_${s}`),
2587
+ style: T(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2588
+ }, [
2589
+ e.useArea && e.plots.length > 1 ? (u(), i("g", us, [
2590
+ e.smooth ? (u(!0), i(g, { key: 0 }, L(e.curveAreas, (a, n) => (u(), i(g, { key: n }, [
2591
+ a ? (u(), i("path", {
2592
+ key: 0,
2593
+ d: a,
2594
+ fill: l.value.line.area.useGradient ? `url(#areaGradient_${s}_${J.value})` : v(Ye)(e.color, l.value.line.area.opacity)
2595
+ }, null, 8, ss)) : h("", !0),
2596
+ t.$slots.pattern && a ? (u(), i("path", {
2597
+ key: 1,
2598
+ d: a,
2599
+ fill: `url(#pattern_${J.value}_${e.slotAbsoluteIndex})`
2600
+ }, null, 8, is)) : h("", !0)
2601
+ ], 64))), 128)) : (u(!0), i(g, { key: 1 }, L(e.area.split(";"), (a, n) => (u(), i(g, { key: n }, [
2602
+ a ? (u(), i("path", {
2603
+ key: 0,
2604
+ d: `M${a}Z`,
2605
+ fill: l.value.line.area.useGradient ? `url(#areaGradient_${s}_${J.value})` : v(Ye)(e.color, l.value.line.area.opacity)
2606
+ }, null, 8, ns)) : h("", !0),
2607
+ t.$slots.pattern && a ? (u(), i("path", {
2608
+ key: 1,
2609
+ d: `M${a}Z`,
2610
+ fill: `url(#pattern_${J.value}_${e.slotAbsoluteIndex})`
2611
+ }, null, 8, rs)) : h("", !0)
2612
+ ], 64))), 128))
2613
+ ])) : h("", !0),
2614
+ e.smooth && e.plots.length > 1 && e.curve ? (u(), i("path", {
2615
+ key: 1,
2616
+ d: `M${e.curve}`,
2617
+ stroke: e.color,
2618
+ "stroke-width": l.value.line.strokeWidth,
2619
+ "stroke-dasharray": e.dashed ? l.value.line.strokeWidth * 2 : 0,
2620
+ fill: "none",
2621
+ "stroke-linecap": "round"
2622
+ }, null, 8, cs)) : e.plots.length > 1 && e.straight ? (u(), i("path", {
2623
+ key: 2,
2624
+ d: `M${e.straight}`,
2625
+ stroke: e.color,
2626
+ "stroke-width": l.value.line.strokeWidth,
2627
+ "stroke-dasharray": e.dashed ? l.value.line.strokeWidth * 2 : 0,
2628
+ fill: "none",
2629
+ "stroke-linecap": "round",
2630
+ "stroke-linejoin": "round"
2631
+ }, null, 8, vs)) : h("", !0),
2632
+ (u(!0), i(g, null, L(e.plots, (a, n) => (u(), i(g, {
2633
+ key: `circle_line_${s}_${n}`
2634
+ }, [
2635
+ !la.value.linePlot && a && Oe(a.value) || la.value.linePlot && a && Oe(a.value) && ($.value !== null && $.value === n || H.value !== null && H.value === n) ? (u(), We(xt, {
2636
+ key: 0,
2637
+ shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
2638
+ color: l.value.line.useGradient ? `url(#lineGradient_${s}_${J.value})` : l.value.line.dot.useSerieColor ? e.color : l.value.line.dot.fill,
2639
+ plot: { x: v(V)(a.x), y: v(V)(a.y) },
2640
+ radius: $.value !== null && $.value === n || H.value !== null && H.value === n ? (Le.value.line || 6) * 1.5 : Le.value.line || 6,
2641
+ stroke: l.value.line.dot.useSerieColor ? l.value.chart.backgroundColor : e.color,
2642
+ strokeWidth: l.value.line.dot.strokeWidth
2643
+ }, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])) : h("", !0),
2644
+ a.comment && l.value.chart.comments.show ? (u(), i("foreignObject", {
2645
+ key: 1,
2646
+ style: { overflow: "visible" },
2647
+ height: "12",
2648
+ width: l.value.chart.comments.width,
2649
+ x: a.x - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
2650
+ y: a.y + l.value.chart.comments.offsetY + 6
2651
+ }, [
2652
+ b("div", hs, [
2653
+ Z(t.$slots, "plot-comment", {
2654
+ plot: { ...a, color: e.color, seriesIndex: s, datapointIndex: n }
2655
+ }, void 0, !0)
2656
+ ])
2657
+ ], 8, ds)) : h("", !0)
2658
+ ], 64))), 128)),
2659
+ Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(Q)(e.plots).trend) ? (u(), i("g", fs, [
2660
+ b("defs", null, [
2661
+ b("marker", {
2662
+ id: `line_arrow_${s}`,
2663
+ markerWidth: 7,
2664
+ markerHeight: 7,
2665
+ refX: "0",
2666
+ refY: 7 / 2,
2667
+ orient: "auto"
2668
+ }, [
2669
+ b("polygon", {
2670
+ points: `0 0, 7 ${7 / 2}, 0 7`,
2671
+ fill: e.color
2672
+ }, null, 8, ms)
2673
+ ], 8, gs)
2674
+ ]),
2675
+ e.plots.length > 1 ? (u(), i("line", {
2676
+ key: 0,
2677
+ x1: v(Q)(e.plots).x1,
2678
+ x2: v(Q)(e.plots).x2,
2679
+ y1: v(Y)(v(Q)(e.plots).y1),
2680
+ y2: v(Y)(v(Q)(e.plots).y2),
2681
+ "stroke-width": 1,
2682
+ stroke: e.color,
2683
+ "stroke-dasharray": 2,
2684
+ "marker-end": `url(#line_arrow_${s})`
2685
+ }, null, 8, xs)) : h("", !0),
2686
+ e.plots.length > 1 ? (u(), i("text", {
2687
+ key: 1,
2688
+ "text-anchor": "middle",
2689
+ x: v(Q)(e.plots).x2,
2690
+ y: v(Q)(e.plots).y2 - 6,
2691
+ "font-size": S.value.plotLabels,
2692
+ fill: e.color
2693
+ }, le(v(Re)({
2694
+ v: v(Q)(e.plots).trend * 100,
2695
+ s: "%",
2696
+ r: 2
2697
+ })), 9, bs)) : h("", !0)
2698
+ ])) : h("", !0)
2699
+ ], 6))), 128)),
2700
+ (l.value.bar.labels.show || l.value.bar.serieName.show) && f.value.dataLabels.show ? (u(), i("g", ys, [
2701
+ (u(!0), i(g, null, L(rl.value, (e, s) => (u(), i(g, {
2702
+ key: `xLabel_bar_${s}`
2703
+ }, [
2704
+ (u(!0), i(g, null, L(e.plots, (a, n) => (u(), i(g, {
2705
+ key: `xLabel_bar_${s}_${n}`
2706
+ }, [
2707
+ a && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || $.value !== null && $.value === n || H.value !== null && H.value === n) && l.value.bar.labels.show ? (u(), i("text", {
2708
+ key: 0,
2709
+ x: f.value.useIndividualScale && f.value.isStacked ? a.x + ae.value.line / 2 : dt(a) + Be() / 2 - al.value / 2,
2710
+ y: v(V)(a.y) + (a.value >= 0 ? l.value.bar.labels.offsetY : -l.value.bar.labels.offsetY * 3),
2711
+ "text-anchor": "middle",
2712
+ "font-size": S.value.plotLabels,
2713
+ fill: l.value.bar.labels.color,
2714
+ style: T(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2715
+ }, le(Oe(a.value) ? v(ke)(
2716
+ l.value.bar.labels.formatter,
2717
+ a.value,
2718
+ v(Re)({
2719
+ p: e.prefix || l.value.chart.labels.prefix,
2720
+ v: a.value,
2721
+ s: e.suffix || l.value.chart.labels.suffix,
2722
+ r: l.value.bar.labels.rounding
2723
+ }),
2724
+ {
2725
+ datapoint: a,
2726
+ serie: e
2727
+ }
2728
+ ) : ""), 13, ps)) : h("", !0),
2729
+ a && l.value.bar.serieName.show ? (u(), i("text", {
2730
+ key: 1,
2731
+ x: f.value.useIndividualScale && f.value.isStacked ? a.x + ae.value.line / 2 : a.x + Be() * 1.1,
2732
+ y: a.y + (a.value > 0 ? l.value.bar.serieName.offsetY : -l.value.bar.serieName.offsetY * 3),
2733
+ "text-anchor": "middle",
2734
+ "font-size": S.value.plotLabels,
2735
+ fill: l.value.bar.serieName.useSerieColor ? e.color : l.value.bar.serieName.color,
2736
+ "font-weight": l.value.bar.serieName.bold ? "bold" : "normal",
2737
+ style: T(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2738
+ }, le(l.value.bar.serieName.useAbbreviation ? v(vo)({
2739
+ source: e.name,
2740
+ length: l.value.bar.serieName.abbreviationSize
2741
+ }) : e.name), 13, ks)) : h("", !0)
2742
+ ], 64))), 128))
2743
+ ], 64))), 128))
2744
+ ])) : h("", !0),
2745
+ l.value.plot.labels.show && f.value.dataLabels.show ? (u(), i("g", ws, [
2746
+ (u(!0), i(g, null, L(qe.value, (e, s) => (u(), i(g, {
2747
+ key: `xLabel_plot_${s}`
2748
+ }, [
2749
+ (u(!0), i(g, null, L(e.plots, (a, n) => (u(), i(g, {
2750
+ key: `xLabel_plot_${s}_${n}`
2751
+ }, [
2752
+ a && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || $.value !== null && $.value === n || H.value !== null && H.value === n ? (u(), i("text", {
2753
+ key: 0,
2754
+ x: a.x,
2755
+ y: a.y + l.value.plot.labels.offsetY,
2756
+ "text-anchor": "middle",
2757
+ "font-size": S.value.plotLabels,
2758
+ fill: l.value.plot.labels.color,
2759
+ style: T(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2760
+ }, le(Oe(a.value) ? v(ke)(
2761
+ l.value.plot.labels.formatter,
2762
+ a.value,
2763
+ v(Re)({
2764
+ p: e.prefix || l.value.chart.labels.prefix,
2765
+ v: a.value,
2766
+ s: e.suffix || l.value.chart.labels.suffix,
2767
+ r: l.value.plot.labels.rounding
2768
+ }),
2769
+ {
2770
+ datapoint: a,
2771
+ serie: e
2772
+ }
2773
+ ) : ""), 13, Ss)) : h("", !0)
2774
+ ], 64))), 128))
2775
+ ], 64))), 128))
2776
+ ])) : (u(), i("g", $s, [
2777
+ (u(!0), i(g, null, L(qe.value, (e, s) => (u(), i(g, {
2778
+ key: `xLabel_plot_${s}`
2779
+ }, [
2780
+ (u(!0), i(g, null, L(e.plots, (a, n) => (u(), i(g, {
2781
+ key: `xLabel_plot_${s}_${n}`
2782
+ }, [
2783
+ l.value.plot.tag.followValue ? (u(), i(g, { key: 1 }, [
2784
+ [H.value, $.value, Ve.value].includes(n) && e.useTag ? (u(), i("line", {
2785
+ key: 0,
2786
+ class: "vue-ui-xy-tag-plot",
2787
+ x1: r.value.left,
2788
+ x2: r.value.right,
2789
+ y1: a.y,
2790
+ y2: a.y,
2791
+ "stroke-width": 1,
2792
+ "stroke-linecap": "round",
2793
+ "stroke-dasharray": "2",
2794
+ stroke: e.color
2795
+ }, null, 8, Cs)) : h("", !0)
2796
+ ], 64)) : (u(), i(g, { key: 0 }, [
2797
+ a && n === 0 && e.useTag && e.useTag === "start" ? (u(), i("foreignObject", {
2798
+ key: 0,
2799
+ x: a.x,
2800
+ y: a.y - 20,
2801
+ height: 24,
2802
+ width: "150",
2803
+ style: T(`overflow: visible; opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2804
+ }, [
2805
+ b("div", {
2806
+ style: T(`padding: 3px; background:${v(Ye)(e.color, 80)};color:${v(Xe)(e.color)};width:fit-content;font-size:${S.value.plotLabels}px;border-radius: 2px;`),
2807
+ innerHTML: v(ke)(
2808
+ l.value.plot.tag.formatter,
2809
+ a.value,
2810
+ e.name,
2811
+ {
2812
+ datapoint: a,
2813
+ seriesIndex: n,
2814
+ serieName: e.name
2815
+ }
2816
+ )
2817
+ }, null, 12, Ls)
2818
+ ], 12, _s)) : h("", !0),
2819
+ a && n === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (u(), i("foreignObject", {
2820
+ key: 1,
2821
+ x: a.x - e.name.length * (S.value.plotLabels / 2),
2822
+ y: a.y - 20,
2823
+ height: 24,
2824
+ width: "150",
2825
+ style: T(`overflow: visible; opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2826
+ }, [
2827
+ b("div", {
2828
+ style: T(`padding: 3px; background:${v(Ye)(e.color, 80)};color:${v(Xe)(e.color)};width:fit-content;font-size:${S.value.plotLabels}px;border-radius: 2px;`),
2829
+ innerHTML: v(ke)(
2830
+ l.value.plot.tag.formatter,
2831
+ a.value,
2832
+ e.name,
2833
+ {
2834
+ datapoint: a,
2835
+ seriesIndex: n,
2836
+ serieName: e.name
2837
+ }
2838
+ )
2839
+ }, null, 12, As)
2840
+ ], 12, Ms)) : h("", !0)
2841
+ ], 64))
2842
+ ], 64))), 128))
2843
+ ], 64))), 128))
2844
+ ])),
2845
+ l.value.line.labels.show && f.value.dataLabels.show ? (u(), i("g", zs, [
2846
+ (u(!0), i(g, null, L(Fe.value, (e, s) => (u(), i(g, {
2847
+ key: `xLabel_line_${s}`
2848
+ }, [
2849
+ (u(!0), i(g, null, L(e.plots, (a, n) => (u(), i(g, {
2850
+ key: `xLabel_line_${s}_${n}`
2851
+ }, [
2852
+ a && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || $.value !== null && $.value === n || H.value !== null && H.value === n ? (u(), i("text", {
2853
+ key: 0,
2854
+ x: a.x,
2855
+ y: a.y + (a.value >= 0 ? l.value.line.labels.offsetY : -l.value.line.labels.offsetY * 3),
2856
+ "text-anchor": "middle",
2857
+ "font-size": S.value.plotLabels,
2858
+ fill: l.value.line.labels.color,
2859
+ style: T(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2860
+ }, le(Oe(a.value) ? v(ke)(
2861
+ l.value.line.labels.formatter,
2862
+ a.value,
2863
+ v(Re)({
2864
+ p: e.prefix || l.value.chart.labels.prefix,
2865
+ v: a.value,
2866
+ s: e.suffix || l.value.chart.labels.suffix,
2867
+ r: l.value.line.labels.rounding
2868
+ }),
2869
+ {
2870
+ datapoint: a,
2871
+ serie: e
2872
+ }
2873
+ ) : ""), 13, Is)) : h("", !0)
2874
+ ], 64))), 128))
2875
+ ], 64))), 128))
2876
+ ])) : (u(), i("g", Ts, [
2877
+ (u(!0), i(g, null, L(Fe.value, (e, s) => (u(), i(g, {
2878
+ key: `xLabel_line_${s}`
2879
+ }, [
2880
+ (u(!0), i(g, null, L(e.plots, (a, n) => (u(), i(g, {
2881
+ key: `xLabel_line_${s}_${n}`
2882
+ }, [
2883
+ l.value.line.tag.followValue ? (u(), i(g, { key: 1 }, [
2884
+ [H.value, $.value, Ve.value].includes(n) && e.useTag ? (u(), i("line", {
2885
+ key: 0,
2886
+ class: "vue-ui-xy-tag-line",
2887
+ x1: r.value.left,
2888
+ x2: r.value.right,
2889
+ y1: a.y,
2890
+ y2: a.y,
2891
+ "stroke-width": 1,
2892
+ "stroke-linecap": "round",
2893
+ "stroke-dasharray": "2",
2894
+ stroke: e.color
2895
+ }, null, 8, Hs)) : h("", !0)
2896
+ ], 64)) : (u(), i(g, { key: 0 }, [
2897
+ a && n === 0 && e.useTag && e.useTag === "start" ? (u(), i("foreignObject", {
2898
+ key: 0,
2899
+ x: a.x,
2900
+ y: a.y - 20,
2901
+ height: 24,
2902
+ width: "150",
2903
+ style: T(`overflow: visible; opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2904
+ }, [
2905
+ b("div", {
2906
+ style: T(`padding: 3px; background:${v(Ye)(e.color, 80)};color:${v(Xe)(e.color)};width:fit-content;font-size:${S.value.plotLabels}px;border-radius: 2px;`),
2907
+ innerHTML: v(ke)(
2908
+ l.value.line.tag.formatter,
2909
+ a.value,
2910
+ e.name,
2911
+ {
2912
+ datapoint: a,
2913
+ seriesIndex: n,
2914
+ serieName: e.name
2915
+ }
2916
+ )
2917
+ }, null, 12, Ns)
2918
+ ], 12, Os)) : h("", !0),
2919
+ a && n === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (u(), i("foreignObject", {
2920
+ key: 1,
2921
+ x: a.x,
2922
+ y: a.y - 20,
2923
+ height: 24,
2924
+ width: "150",
2925
+ style: T(`overflow: visible; opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2926
+ }, [
2927
+ b("div", {
2928
+ style: T(`padding: 3px; background:${v(Ye)(e.color, 80)};color:${v(Xe)(e.color)};width:fit-content;font-size:${S.value.plotLabels}px;border-radius: 2px;`),
2929
+ innerHTML: v(ke)(
2930
+ l.value.line.tag.formatter,
2931
+ a.value,
2932
+ e.name,
2933
+ {
2934
+ datapoint: a,
2935
+ seriesIndex: n,
2936
+ serieName: e.name
2937
+ }
2938
+ )
2939
+ }, null, 12, Ps)
2940
+ ], 12, Rs)) : h("", !0)
2941
+ ], 64))
2942
+ ], 64))), 128))
2943
+ ], 64))), 128))
2944
+ ])),
2945
+ (u(!0), i(g, null, L(Fe.value, (e, s) => (u(), i(g, {
2946
+ key: `xLabel_line_${s}`
2947
+ }, [
2948
+ (u(!0), i(g, null, L(e.plots, (a, n) => (u(), i(g, {
2949
+ key: `xLabel_line_${s}_${n}`
2950
+ }, [
2951
+ a && n === 0 && e.showSerieName && e.showSerieName === "start" ? (u(), i("text", {
2952
+ key: 0,
2953
+ x: a.x - S.value.plotLabels,
2954
+ y: a.y,
2955
+ "font-size": S.value.plotLabels,
2956
+ "text-anchor": "end",
2957
+ fill: e.color,
2958
+ innerHTML: v(mt)({
2959
+ content: e.name,
2960
+ fontSize: S.value.plotLabels,
2961
+ fill: e.color,
2962
+ x: a.x - S.value.plotLabels,
2963
+ y: a.y,
2964
+ maxWords: 2
2965
+ }),
2966
+ style: T(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2967
+ }, null, 12, Vs)) : h("", !0),
2968
+ a && n === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (u(), i("text", {
2969
+ key: 1,
2970
+ x: a.x + S.value.plotLabels,
2971
+ y: a.y,
2972
+ "font-size": S.value.plotLabels,
2973
+ "text-anchor": "start",
2974
+ fill: e.color,
2975
+ innerHTML: v(mt)({
2976
+ content: e.name,
2977
+ fontSize: S.value.plotLabels,
2978
+ fill: e.color,
2979
+ x: a.x + S.value.plotLabels,
2980
+ y: a.y,
2981
+ maxWords: 2
2982
+ }),
2983
+ style: T(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2984
+ }, null, 12, Es)) : h("", !0)
2985
+ ], 64))), 128))
2986
+ ], 64))), 128)),
2987
+ (u(!0), i(g, null, L(qe.value, (e, s) => (u(), i(g, {
2988
+ key: `xLabel_plot_${s}`
2989
+ }, [
2990
+ (u(!0), i(g, null, L(e.plots, (a, n) => (u(), i(g, {
2991
+ key: `xLabel_plot_${s}_${n}`
2992
+ }, [
2993
+ a && n === 0 && e.showSerieName && e.showSerieName === "start" ? (u(), i("text", {
2994
+ key: 0,
2995
+ x: a.x - S.value.plotLabels,
2996
+ y: a.y,
2997
+ "font-size": S.value.plotLabels,
2998
+ "text-anchor": "end",
2999
+ fill: e.color,
3000
+ innerHTML: v(mt)({
3001
+ content: e.name,
3002
+ fontSize: S.value.plotLabels,
3003
+ fill: e.color,
3004
+ x: a.x - S.value.plotLabels,
3005
+ y: a.y,
3006
+ maxWords: 2
3007
+ }),
3008
+ style: T(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3009
+ }, null, 12, Bs)) : h("", !0),
3010
+ a && n === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (u(), i("text", {
3011
+ key: 1,
3012
+ x: a.x + S.value.plotLabels,
3013
+ y: a.y,
3014
+ "font-size": S.value.plotLabels,
3015
+ "text-anchor": "start",
3016
+ fill: e.color,
3017
+ innerHTML: v(mt)({
3018
+ content: e.name,
3019
+ fontSize: S.value.plotLabels,
3020
+ fill: e.color,
3021
+ x: a.x + S.value.plotLabels,
3022
+ y: a.y,
3023
+ maxWords: 2
3024
+ }),
3025
+ style: T(`opacity:${M.value ? M.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
3026
+ }, null, 12, Fs)) : h("", !0)
3027
+ ], 64))), 128))
3028
+ ], 64))), 128)),
3029
+ f.value.useIndividualScale && !f.value.isStacked ? (u(), i(g, { key: 12 }, [
3030
+ b("defs", null, [
3031
+ (u(!0), i(g, null, L(et.value, (e, s) => (u(), i("linearGradient", {
3032
+ id: `individual_scale_gradient_${J.value}_${s}`,
3033
+ x1: "0%",
3034
+ x2: "100%",
3035
+ y1: "0%",
3036
+ y2: "0%"
3037
+ }, [
3038
+ b("stop", {
3039
+ offset: "0%",
3040
+ "stop-color": l.value.chart.backgroundColor,
3041
+ "stop-opacity": "0"
3042
+ }, null, 8, Ys),
3043
+ b("stop", {
3044
+ offset: "100%",
3045
+ "stop-color": e.color,
3046
+ "stop-opacity": "0.2"
3047
+ }, null, 8, Xs)
3048
+ ], 8, Ws))), 256))
3049
+ ]),
3050
+ (u(!0), i(g, null, L(et.value, (e, s) => (u(), i("rect", {
3051
+ x: e.x - l.value.chart.grid.labels.yAxis.labelWidth + j.value - r.value.individualOffsetX,
3052
+ y: r.value.top,
3053
+ width: l.value.chart.grid.labels.yAxis.labelWidth + r.value.individualOffsetX,
3054
+ height: r.value.height < 0 ? 10 : r.value.height,
3055
+ fill: M.value === e.groupId ? `url(#individual_scale_gradient_${J.value}_${s})` : "transparent",
3056
+ onMouseenter: (a) => M.value = e.groupId,
3057
+ onMouseleave: c[0] || (c[0] = (a) => M.value = null)
3058
+ }, null, 40, Ds))), 256))
3059
+ ], 64)) : h("", !0),
3060
+ b("g", null, [
3061
+ l.value.chart.grid.labels.axis.yLabel && !f.value.useIndividualScale ? (u(), i("text", {
3062
+ key: 0,
3063
+ ref_key: "yAxisLabel",
3064
+ ref: Il,
3065
+ "font-size": S.value.yAxis,
3066
+ fill: l.value.chart.grid.labels.color,
3067
+ transform: `translate(${l.value.chart.grid.labels.axis.fontSize}, ${r.value.top + r.value.height / 2}) rotate(-90)`,
3068
+ "text-anchor": "middle",
3069
+ style: { transition: "none" }
3070
+ }, le(l.value.chart.grid.labels.axis.yLabel), 9, Gs)) : h("", !0),
3071
+ l.value.chart.grid.labels.axis.xLabel ? (u(), i("text", {
3072
+ key: 1,
3073
+ ref_key: "xAxisLabel",
3074
+ ref: ze,
3075
+ "text-anchor": "middle",
3076
+ x: se.value / 2,
3077
+ y: ue.value - 3,
3078
+ "font-size": S.value.yAxis,
3079
+ fill: l.value.chart.grid.labels.color
3080
+ }, le(l.value.chart.grid.labels.axis.xLabel), 9, Us)) : h("", !0)
3081
+ ]),
3082
+ l.value.chart.grid.labels.xAxisLabels.show ? (u(), i("g", {
3083
+ key: 13,
3084
+ ref_key: "timeLabelsEls",
3085
+ ref: Qe
3086
+ }, [
3087
+ t.$slots["time-label"] ? (u(!0), i(g, { key: 0 }, L(K.value, (e, s) => Z(t.$slots, "time-label", ft({
3088
+ key: `time_label_${s}`,
3089
+ ref_for: !0
3090
+ }, {
3091
+ x: r.value.left + r.value.width / _.value * s + r.value.width / _.value / 2,
3092
+ y: r.value.bottom,
3093
+ fontSize: S.value.xAxis,
3094
+ fill: l.value.chart.grid.labels.xAxisLabels.color,
3095
+ transform: `translate(${r.value.left + r.value.width / _.value * s + r.value.width / _.value / 2}, ${r.value.bottom + S.value.xAxis * 1.3 + l.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
3096
+ absoluteIndex: e.absoluteIndex,
3097
+ content: e.text,
3098
+ textAnchor: l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
3099
+ show: e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && _.value <= vt.value || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === K.value.length - 1) && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && $.value === s && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && s % Math.floor((x.value.end - x.value.start) / vt.value) === 0
3100
+ }), void 0, !0)), 128)) : (u(!0), i(g, { key: 1 }, L(K.value, (e, s) => (u(), i("g", {
3101
+ key: `time_label_${s}`
3102
+ }, [
3103
+ e && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && _.value <= vt.value || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === K.value.length - 1) && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && $.value === s && !l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || e && !l.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && l.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && s % Math.floor((x.value.end - x.value.start) / vt.value) === 0 ? (u(), i(g, { key: 0 }, [
3104
+ String(e.text).includes(`
3105
+ `) ? (u(), i("text", {
3106
+ key: 1,
3107
+ "text-anchor": l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
3108
+ "font-size": S.value.xAxis,
3109
+ fill: l.value.chart.grid.labels.xAxisLabels.color,
3110
+ transform: `translate(${r.value.left + r.value.width / _.value * s + r.value.width / _.value / 2}, ${r.value.bottom + S.value.xAxis * 1.3 + l.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
3111
+ style: T({
3112
+ cursor: Bt() ? "pointer" : "default"
3113
+ }),
3114
+ innerHTML: v(ho)({
3115
+ content: String(e.text),
3116
+ fontSize: S.value.xAxis,
3117
+ fill: l.value.chart.grid.labels.xAxisLabels.color,
3118
+ x: 0,
3119
+ y: 0
3120
+ }),
3121
+ onClick: () => Xt(e, s)
3122
+ }, null, 12, Zs)) : (u(), i("text", {
3123
+ key: 0,
3124
+ class: "vue-data-ui-time-label",
3125
+ "text-anchor": l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
3126
+ "font-size": S.value.xAxis,
3127
+ fill: l.value.chart.grid.labels.xAxisLabels.color,
3128
+ transform: `translate(${r.value.left + r.value.width / _.value * s + r.value.width / _.value / 2}, ${r.value.bottom + S.value.xAxis * 1.5}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
3129
+ style: T({
3130
+ cursor: Bt() ? "pointer" : "default"
3131
+ }),
3132
+ onClick: () => Xt(e, s)
3133
+ }, le(e.text || ""), 13, qs))
3134
+ ], 64)) : h("", !0)
3135
+ ]))), 128))
3136
+ ], 512)) : h("", !0),
3137
+ oa.value.length && !f.value.isStacked ? (u(), i("g", Js, [
3138
+ (u(!0), i(g, null, L(oa.value, (e) => (u(), i("g", {
3139
+ key: e.uid
3140
+ }, [
3141
+ e.yTop && e.show && isFinite(e.yTop) ? (u(), i("line", {
3142
+ key: 0,
3143
+ x1: e.x1,
3144
+ y1: e.yTop,
3145
+ x2: e.x2,
3146
+ y2: e.yTop,
3147
+ stroke: e.config.line.stroke,
3148
+ "stroke-width": e.config.line.strokeWidth,
3149
+ "stroke-dasharray": e.config.line.strokeDasharray,
3150
+ "stroke-linecap": "round",
3151
+ style: { animation: "none !important" }
3152
+ }, null, 8, Ks)) : h("", !0),
3153
+ e.yBottom && e.show && isFinite(e.yBottom) ? (u(), i("line", {
3154
+ key: 1,
3155
+ x1: e.x1,
3156
+ y1: e.yBottom,
3157
+ x2: e.x2,
3158
+ y2: e.yBottom,
3159
+ stroke: e.config.line.stroke,
3160
+ "stroke-width": e.config.line.strokeWidth,
3161
+ "stroke-dasharray": e.config.line.strokeDasharray,
3162
+ "stroke-linecap": "round",
3163
+ style: { animation: "none !important" }
3164
+ }, null, 8, Qs)) : h("", !0),
3165
+ e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (u(), i("rect", {
3166
+ key: 2,
3167
+ y: Math.min(e.yTop, e.yBottom),
3168
+ x: e.x1,
3169
+ width: r.value.width,
3170
+ height: v(V)(e.areaHeight, 0),
3171
+ fill: v(Ye)(e.config.area.fill, e.config.area.opacity),
3172
+ style: { animation: "none !important" }
3173
+ }, null, 8, js)) : h("", !0),
3174
+ e.config.label.text && e.show && isFinite(e._box.y) ? (u(), i("rect", ft({
3175
+ key: 3,
3176
+ class: "vue-ui-xy-annotation-label-box"
3177
+ }, { ref_for: !0 }, e._box, { style: { animation: "none !important", transition: "none !important" } }), null, 16)) : h("", !0),
3178
+ e.config.label.text && e.show && isFinite(e._text.y) ? (u(), i("text", {
3179
+ key: 4,
3180
+ id: e.id,
3181
+ class: "vue-ui-xy-annotation-label",
3182
+ x: e._text.x,
3183
+ y: e._text.y,
3184
+ "font-size": e.config.label.fontSize,
3185
+ fill: e.config.label.color,
3186
+ "text-anchor": e.config.label.textAnchor
3187
+ }, le(e.config.label.text), 9, ei)) : h("", !0)
3188
+ ]))), 128))
3189
+ ])) : h("", !0),
3190
+ l.value.chart.timeTag.show && (![null, void 0].includes($.value) || ![null, void 0].includes(H.value)) ? (u(), i("g", li, [
3191
+ (u(), i("foreignObject", {
3192
+ x: r.value.left + r.value.width / _.value * (($.value !== null ? $.value : 0) || (H.value !== null ? H.value : 0)) - 100 + r.value.width / _.value / 2,
3193
+ y: r.value.bottom,
3194
+ width: "200",
3195
+ height: "40",
3196
+ style: { overflow: "visible !important" }
3197
+ }, [
3198
+ b("div", {
3199
+ class: "vue-ui-xy-time-tag",
3200
+ style: T(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${l.value.chart.timeTag.backgroundColor};color:${l.value.chart.timeTag.color};font-size:${l.value.chart.timeTag.fontSize}px`)
3201
+ }, le(K.value[($.value !== null ? $.value : 0) || (H.value !== null ? H.value : 0)].text || ($.value !== null ? $.value : 0) || (H.value !== null ? H.value : 0)), 5)
3202
+ ], 8, ti)),
3203
+ b("circle", {
3204
+ cx: r.value.left + r.value.width / _.value * (($.value !== null ? $.value : 0) || (H.value !== null ? H.value : 0)) + r.value.width / _.value / 2,
3205
+ cy: r.value.bottom,
3206
+ r: l.value.chart.timeTag.circleMarker.radius,
3207
+ fill: l.value.chart.timeTag.circleMarker.color
3208
+ }, null, 8, ai)
3209
+ ])) : h("", !0)
3210
+ ])) : h("", !0),
3211
+ $l.value ? (u(), i("rect", ol(ft({ key: 2 }, Lt.value)), null, 16)) : h("", !0),
3212
+ Z(t.$slots, "svg", { svg: Zl.value }, void 0, !0)
3213
+ ], 512)
3214
+ ], 46, Jo)),
3215
+ t.$slots.watermark ? (u(), i("div", oi, [
3216
+ Z(t.$slots, "watermark", ol(hl({ isPrinting: v(Jl) || v(nt) })), void 0, !0)
3217
+ ])) : h("", !0),
3218
+ (u(!0), i(g, null, L(Fe.value, (e, s) => (u(), i(g, {
3219
+ key: `tag_line_${s}`
3220
+ }, [
3221
+ (u(!0), i(g, null, L(e.plots, (a, n) => (u(), i(g, {
3222
+ key: `tag_line_${s}_${n}`
3223
+ }, [
3224
+ [H.value, $.value, Ve.value].includes(n) && e.useTag && e.useTag === "end" && l.value.line.tag.followValue ? (u(), i("div", {
3225
+ key: 0,
3226
+ ref_for: !0,
3227
+ ref: (o) => ct(s, n, o, "right", "line"),
3228
+ class: "vue-ui-xy-tag",
3229
+ "data-tag": "right",
3230
+ style: T({
3231
+ position: "fixed",
3232
+ top: v(fl)({
3233
+ svgElement: be.value,
3234
+ x: r.value.right + l.value.line.tag.fontSize / 1.5,
3235
+ y: a.y,
3236
+ element: ye.value[`${s}_${n}_right_line`],
3237
+ position: "right"
3238
+ }).top + "px",
3239
+ left: v(fl)({
3240
+ svgElement: be.value,
3241
+ x: r.value.right + l.value.line.tag.fontSize / 1.5,
3242
+ y: a.y,
3243
+ element: ye.value[`${s}_${n}_right_line`],
3244
+ position: "right"
3245
+ }).left + "px",
3246
+ height: "fit-content",
3247
+ width: "fit-content",
3248
+ background: e.color,
3249
+ color: v(Xe)(e.color),
3250
+ padding: "0 6px",
3251
+ fontSize: l.value.line.tag.fontSize + "px",
3252
+ opacity: 1
3253
+ })
3254
+ }, [
3255
+ (u(), i("svg", ui, [
3256
+ b("path", {
3257
+ d: "M 0,10 10,0 10,20 Z",
3258
+ fill: e.color,
3259
+ stroke: "none"
3260
+ }, null, 8, si)
3261
+ ])),
3262
+ b("div", {
3263
+ class: "vue-ui-xy-tag-content",
3264
+ innerHTML: v(ke)(
3265
+ l.value.line.tag.formatter,
3266
+ a.value,
3267
+ e.name,
3268
+ {
3269
+ datapoint: a,
3270
+ seriesIndex: n,
3271
+ serieName: e.name
3272
+ }
3273
+ )
3274
+ }, null, 8, ii)
3275
+ ], 4)) : h("", !0),
3276
+ [H.value, $.value, Ve.value].includes(n) && e.useTag && e.useTag === "start" && l.value.line.tag.followValue ? (u(), i("div", {
3277
+ key: 1,
3278
+ ref_for: !0,
3279
+ ref: (o) => ct(s, n, o, "left", "line"),
3280
+ class: "vue-ui-xy-tag",
3281
+ "data-tag": "left",
3282
+ style: T({
3283
+ position: "fixed",
3284
+ top: v(fl)({
3285
+ svgElement: be.value,
3286
+ x: r.value.left - l.value.line.tag.fontSize / 1.5,
3287
+ y: a.y,
3288
+ element: ye.value[`${s}_${n}_left_line`],
3289
+ position: "left"
3290
+ }).top + "px",
3291
+ left: v(fl)({
3292
+ svgElement: be.value,
3293
+ x: r.value.left - l.value.line.tag.fontSize / 1.5,
3294
+ y: a.y,
3295
+ element: ye.value[`${s}_${n}_left_line`],
3296
+ position: "left"
3297
+ }).left + "px",
3298
+ height: "fit-content",
3299
+ width: "fit-content",
3300
+ background: e.color,
3301
+ color: v(Xe)(e.color),
3302
+ padding: "0 6px",
3303
+ fontSize: l.value.line.tag.fontSize + "px",
3304
+ opacity: 1
3305
+ })
3306
+ }, [
3307
+ (u(), i("svg", ni, [
3308
+ b("path", {
3309
+ d: "M 0,0 10,10 0,20 Z",
3310
+ fill: e.color,
3311
+ stroke: "none"
3312
+ }, null, 8, ri)
3313
+ ])),
3314
+ b("div", {
3315
+ class: "vue-ui-xy-tag-content",
3316
+ innerHTML: v(ke)(
3317
+ l.value.line.tag.formatter,
3318
+ a.value,
3319
+ e.name,
3320
+ {
3321
+ datapoint: a,
3322
+ seriesIndex: n,
3323
+ serieName: e.name
3324
+ }
3325
+ )
3326
+ }, null, 8, ci)
3327
+ ], 4)) : h("", !0)
3328
+ ], 64))), 128))
3329
+ ], 64))), 128)),
3330
+ (u(!0), i(g, null, L(qe.value, (e, s) => (u(), i(g, {
3331
+ key: `tag_plot_${s}`
3332
+ }, [
3333
+ (u(!0), i(g, null, L(e.plots, (a, n) => (u(), i(g, {
3334
+ key: `tag_plot_${s}_${n}`
3335
+ }, [
3336
+ [H.value, $.value, Ve.value].includes(n) && e.useTag && e.useTag === "end" && l.value.plot.tag.followValue ? (u(), i("div", {
3337
+ key: 0,
3338
+ ref_for: !0,
3339
+ ref: (o) => ct(s, n, o, "right", "plot"),
3340
+ class: "vue-ui-xy-tag",
3341
+ "data-tag": "right",
3342
+ style: T({
3343
+ position: "fixed",
3344
+ top: v(fl)({
3345
+ svgElement: be.value,
3346
+ x: r.value.right + l.value.plot.tag.fontSize / 1.5,
3347
+ y: a.y,
3348
+ element: ye.value[`${s}_${n}_right_plot`],
3349
+ position: "right"
3350
+ }).top + "px",
3351
+ left: v(fl)({
3352
+ svgElement: be.value,
3353
+ x: r.value.right + l.value.plot.tag.fontSize / 1.5,
3354
+ y: a.y,
3355
+ element: ye.value[`${s}_${n}_right_plot`],
3356
+ position: "right"
3357
+ }).left + "px",
3358
+ height: "fit-content",
3359
+ width: "fit-content",
3360
+ background: e.color,
3361
+ color: v(Xe)(e.color),
3362
+ padding: "0 6px",
3363
+ fontSize: l.value.plot.tag.fontSize + "px",
3364
+ opacity: 1
3365
+ })
3366
+ }, [
3367
+ (u(), i("svg", vi, [
3368
+ b("path", {
3369
+ d: "M 0,10 10,0 10,20 Z",
3370
+ fill: e.color,
3371
+ stroke: "none"
3372
+ }, null, 8, di)
3373
+ ])),
3374
+ b("div", {
3375
+ class: "vue-ui-xy-tag-content",
3376
+ innerHTML: v(ke)(
3377
+ l.value.plot.tag.formatter,
3378
+ a.value,
3379
+ e.name,
3380
+ {
3381
+ datapoint: a,
3382
+ seriesIndex: n,
3383
+ serieName: e.name
3384
+ }
3385
+ )
3386
+ }, null, 8, hi)
3387
+ ], 4)) : h("", !0),
3388
+ [H.value, $.value, Ve.value].includes(n) && e.useTag && e.useTag === "start" && l.value.plot.tag.followValue ? (u(), i("div", {
3389
+ key: 1,
3390
+ ref_for: !0,
3391
+ ref: (o) => ct(s, n, o, "left", "plot"),
3392
+ class: "vue-ui-xy-tag",
3393
+ "data-tag": "left",
3394
+ style: T({
3395
+ position: "fixed",
3396
+ top: v(fl)({
3397
+ svgElement: be.value,
3398
+ x: r.value.left - l.value.plot.tag.fontSize / 1.5,
3399
+ y: a.y,
3400
+ element: ye.value[`${s}_${n}_left_plot`],
3401
+ position: "left"
3402
+ }).top + "px",
3403
+ left: v(fl)({
3404
+ svgElement: be.value,
3405
+ x: r.value.left - l.value.plot.tag.fontSize / 1.5,
3406
+ y: a.y,
3407
+ element: ye.value[`${s}_${n}_left_plot`],
3408
+ position: "left"
3409
+ }).left + "px",
3410
+ height: "fit-content",
3411
+ width: "fit-content",
3412
+ background: e.color,
3413
+ color: v(Xe)(e.color),
3414
+ padding: "0 6px",
3415
+ fontSize: l.value.plot.tag.fontSize + "px",
3416
+ opacity: 1
3417
+ })
3418
+ }, [
3419
+ (u(), i("svg", fi, [
3420
+ b("path", {
3421
+ d: "M 0,0 10,10 0,20 Z",
3422
+ fill: e.color,
3423
+ stroke: "none"
3424
+ }, null, 8, gi)
3425
+ ])),
3426
+ b("div", {
3427
+ class: "vue-ui-xy-tag-content",
3428
+ innerHTML: v(ke)(
3429
+ l.value.plot.tag.formatter,
3430
+ a.value,
3431
+ e.name,
3432
+ {
3433
+ datapoint: a,
3434
+ seriesIndex: n,
3435
+ serieName: e.name
3436
+ }
3437
+ )
3438
+ }, null, 8, mi)
3439
+ ], 4)) : h("", !0)
3440
+ ], 64))), 128))
3441
+ ], 64))), 128)),
3442
+ l.value.chart.zoom.preview.enable ? (u(), i(g, { key: 5 }, [
3443
+ l.value.chart.zoom.show && A.value > 6 && Sl.value ? (u(), We(qo, {
3444
+ ref_key: "chartSlicer",
3445
+ ref: _e,
3446
+ key: `slicer_${he.value}`,
3447
+ background: l.value.chart.zoom.color,
3448
+ fontSize: l.value.chart.zoom.fontSize,
3449
+ useResetSlot: l.value.chart.zoom.useResetSlot,
3450
+ labelLeft: K.value[0] ? K.value[0].text : "",
3451
+ labelRight: K.value.at(-1) ? K.value.at(-1).text : "",
3452
+ textColor: l.value.chart.color,
3453
+ inputColor: l.value.chart.zoom.color,
3454
+ selectColor: l.value.chart.zoom.highlightColor,
3455
+ borderColor: l.value.chart.backgroundColor,
3456
+ minimap: ta.value,
3457
+ smoothMinimap: l.value.chart.zoom.minimap.smooth,
3458
+ minimapSelectedColor: l.value.chart.zoom.minimap.selectedColor,
3459
+ minimapSelectionRadius: l.value.chart.zoom.minimap.selectionRadius,
3460
+ minimapLineColor: l.value.chart.zoom.minimap.lineColor,
3461
+ minimapSelectedColorOpacity: l.value.chart.zoom.minimap.selectedColorOpacity,
3462
+ minimapSelectedIndex: $.value,
3463
+ minimapIndicatorColor: l.value.chart.zoom.minimap.indicatorColor,
3464
+ verticalHandles: l.value.chart.zoom.minimap.verticalHandles,
3465
+ max: A.value,
3466
+ min: 0,
3467
+ valueStart: x.value.start,
3468
+ valueEnd: x.value.end,
3469
+ start: x.value.start,
3470
+ "onUpdate:start": c[1] || (c[1] = (e) => x.value.start = e),
3471
+ end: x.value.end,
3472
+ "onUpdate:end": c[2] || (c[2] = (e) => x.value.end = e),
3473
+ refreshStartPoint: l.value.chart.zoom.startIndex !== null ? l.value.chart.zoom.startIndex : 0,
3474
+ refreshEndPoint: l.value.chart.zoom.endIndex !== null ? l.value.chart.zoom.endIndex + 1 : Math.max(...w.dataset.map((e) => v(ul)({ data: e.series, threshold: l.value.downsample.threshold }).length)),
3475
+ enableRangeHandles: l.value.chart.zoom.enableRangeHandles,
3476
+ enableSelectionDrag: l.value.chart.zoom.enableSelectionDrag,
3477
+ onReset: Ut,
3478
+ onTrapMouse: Dt,
3479
+ onFutureStart: c[3] || (c[3] = (e) => it("start", e)),
3480
+ onFutureEnd: c[4] || (c[4] = (e) => it("end", e))
3481
+ }, {
3482
+ "reset-action": me(({ reset: e }) => [
3483
+ Z(t.$slots, "reset-action", ol(hl({ reset: e })), void 0, !0)
3484
+ ]),
3485
+ _: 3
3486
+ }, 8, ["background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "minimapLineColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapIndicatorColor", "verticalHandles", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : h("", !0)
3487
+ ], 64)) : (u(), i(g, { key: 6 }, [
3488
+ l.value.chart.zoom.show && A.value > 6 && Sl.value ? (u(), We(po, {
3489
+ ref_key: "chartSlicer",
3490
+ ref: _e,
3491
+ key: `slicer_${he.value}`,
3492
+ background: l.value.chart.zoom.color,
3493
+ fontSize: l.value.chart.zoom.fontSize,
3494
+ useResetSlot: l.value.chart.zoom.useResetSlot,
3495
+ labelLeft: K.value[0] ? K.value[0].text : "",
3496
+ labelRight: K.value.at(-1) ? K.value.at(-1).text : "",
3497
+ textColor: l.value.chart.color,
3498
+ inputColor: l.value.chart.zoom.color,
3499
+ selectColor: l.value.chart.zoom.highlightColor,
3500
+ borderColor: l.value.chart.backgroundColor,
3501
+ minimap: ta.value,
3502
+ smoothMinimap: l.value.chart.zoom.minimap.smooth,
3503
+ minimapSelectedColor: l.value.chart.zoom.minimap.selectedColor,
3504
+ minimapSelectionRadius: l.value.chart.zoom.minimap.selectionRadius,
3505
+ minimapLineColor: l.value.chart.zoom.minimap.lineColor,
3506
+ minimapSelectedColorOpacity: l.value.chart.zoom.minimap.selectedColorOpacity,
3507
+ minimapSelectedIndex: $.value,
3508
+ minimapIndicatorColor: l.value.chart.zoom.minimap.indicatorColor,
3509
+ verticalHandles: l.value.chart.zoom.minimap.verticalHandles,
3510
+ max: A.value,
3511
+ min: 0,
3512
+ valueStart: x.value.start,
3513
+ valueEnd: x.value.end,
3514
+ start: x.value.start,
3515
+ "onUpdate:start": c[5] || (c[5] = (e) => x.value.start = e),
3516
+ end: x.value.end,
3517
+ "onUpdate:end": c[6] || (c[6] = (e) => x.value.end = e),
3518
+ refreshStartPoint: l.value.chart.zoom.startIndex !== null ? l.value.chart.zoom.startIndex : 0,
3519
+ refreshEndPoint: l.value.chart.zoom.endIndex !== null ? l.value.chart.zoom.endIndex + 1 : Math.max(...w.dataset.map((e) => v(ul)({ data: e.series, threshold: l.value.downsample.threshold }).length)),
3520
+ enableRangeHandles: l.value.chart.zoom.enableRangeHandles,
3521
+ enableSelectionDrag: l.value.chart.zoom.enableSelectionDrag,
3522
+ onReset: Ut,
3523
+ onTrapMouse: Dt
3524
+ }, {
3525
+ "reset-action": me(({ reset: e }) => [
3526
+ Z(t.$slots, "reset-action", ol(hl({ reset: e })), void 0, !0)
3527
+ ]),
3528
+ _: 3
3529
+ }, 8, ["background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "minimapLineColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapIndicatorColor", "verticalHandles", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : h("", !0)
3530
+ ], 64)),
3531
+ l.value.chart.legend.show ? (u(), i("div", {
3532
+ key: 7,
3533
+ ref_key: "chartLegend",
3534
+ ref: Ge,
3535
+ class: "vue-ui-xy-legend",
3536
+ style: T(`font-size:${l.value.chart.legend.fontSize}px`)
3537
+ }, [
3538
+ (u(!0), i(g, null, L(tl.value, (e, s) => (u(), i("div", {
3539
+ key: `div_legend_item_${s}`,
3540
+ onClick: (a) => ea(e),
3541
+ class: Ce({ "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": te.value.includes(e.id) })
3542
+ }, [
3543
+ He.value[e.type] === "line" ? (u(), i("svg", bi, [
3544
+ b("rect", {
3545
+ x: "0",
3546
+ y: "7.5",
3547
+ rx: "1.5",
3548
+ stroke: l.value.chart.backgroundColor,
3549
+ "stroke-width": 0.5,
3550
+ height: "3",
3551
+ width: "20",
3552
+ fill: e.color
3553
+ }, null, 8, yi),
3554
+ Fl(xt, {
3555
+ plot: { x: 10, y: 9 },
3556
+ radius: 4,
3557
+ color: e.color,
3558
+ shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
3559
+ stroke: l.value.chart.backgroundColor,
3560
+ strokeWidth: 0.5
3561
+ }, null, 8, ["color", "shape", "stroke"])
3562
+ ])) : He.value[e.type] === "bar" ? (u(), i("svg", pi, [
3563
+ He.value[e.type] === "bar" && t.$slots.pattern ? (u(), i("rect", {
3564
+ key: 0,
3565
+ x: "0",
3566
+ y: "0",
3567
+ rx: "1",
3568
+ height: "40",
3569
+ width: "40",
3570
+ stroke: "none",
3571
+ fill: e.color
3572
+ }, null, 8, ki)) : h("", !0),
3573
+ He.value[e.type] === "bar" ? (u(), i("rect", {
3574
+ key: 1,
3575
+ x: "0",
3576
+ y: "0",
3577
+ rx: "1",
3578
+ height: "40",
3579
+ width: "40",
3580
+ stroke: "none",
3581
+ fill: t.$slots.pattern ? `url(#pattern_${J.value}_${e.slotAbsoluteIndex})` : e.color
3582
+ }, null, 8, wi)) : h("", !0)
3583
+ ])) : (u(), i("svg", Si, [
3584
+ Fl(xt, {
3585
+ plot: { x: 6, y: 6 },
3586
+ radius: 5,
3587
+ color: e.color,
3588
+ shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle"
3589
+ }, null, 8, ["color", "shape"])
3590
+ ])),
3591
+ b("span", {
3592
+ style: T(`color:${l.value.chart.legend.color}`)
3593
+ }, le(e.name), 5)
3594
+ ], 10, xi))), 128))
3595
+ ], 4)) : (u(), i("div", {
3596
+ key: 8,
3597
+ ref_key: "chartLegend",
3598
+ ref: Ge
3599
+ }, [
3600
+ Z(t.$slots, "legend", { legend: tl.value }, void 0, !0)
3601
+ ], 512)),
3602
+ t.$slots.source ? (u(), i("div", {
3603
+ key: 9,
3604
+ ref_key: "source",
3605
+ ref: yl,
3606
+ dir: "auto"
3607
+ }, [
3608
+ Z(t.$slots, "source", {}, void 0, !0)
3609
+ ], 512)) : h("", !0),
3610
+ Fl(v(ve), {
3611
+ show: f.value.showTooltip && Ol.value,
3612
+ backgroundColor: l.value.chart.tooltip.backgroundColor,
3613
+ color: l.value.chart.tooltip.color,
3614
+ fontSize: l.value.chart.tooltip.fontSize,
3615
+ borderRadius: l.value.chart.tooltip.borderRadius,
3616
+ borderColor: l.value.chart.tooltip.borderColor,
3617
+ borderWidth: l.value.chart.tooltip.borderWidth,
3618
+ backgroundOpacity: l.value.chart.tooltip.backgroundOpacity,
3619
+ position: l.value.chart.tooltip.position,
3620
+ offsetY: l.value.chart.tooltip.offsetY,
3621
+ parent: t.$refs.chart,
3622
+ content: Xa.value,
3623
+ isFullscreen: je.value,
3624
+ isCustom: l.value.chart.tooltip.customFormat && typeof l.value.chart.tooltip.customFormat == "function",
3625
+ smooth: l.value.chart.tooltip.smooth,
3626
+ backdropFilter: l.value.chart.tooltip.backdropFilter
3627
+ }, {
3628
+ "tooltip-before": me(() => [
3629
+ Z(t.$slots, "tooltip-before", ol(hl({ ...ua.value })), void 0, !0)
3630
+ ]),
3631
+ "tooltip-after": me(() => [
3632
+ Z(t.$slots, "tooltip-after", ol(hl({ ...ua.value })), void 0, !0)
3633
+ ]),
3634
+ _: 3
3635
+ }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
3636
+ Sl.value ? (u(), We(v(zl), {
3637
+ key: 10,
3638
+ hideDetails: "",
3639
+ config: {
3640
+ open: f.value.showTable,
3641
+ maxHeight: 1e4,
3642
+ body: {
3643
+ backgroundColor: l.value.chart.backgroundColor,
3644
+ color: l.value.chart.color
3645
+ },
3646
+ head: {
3647
+ backgroundColor: l.value.chart.backgroundColor,
3648
+ color: l.value.chart.color
3649
+ }
3650
+ }
3651
+ }, {
3652
+ content: me(() => [
3653
+ b("div", {
3654
+ style: T(`${v(Jl) ? "" : "max-height:400px"};overflow:auto;width:100%;margin-top:48px`)
3655
+ }, [
3656
+ b("div", $i, [
3657
+ Nt(b("input", {
3658
+ type: "checkbox",
3659
+ "onUpdate:modelValue": c[7] || (c[7] = (e) => nl.value = e)
3660
+ }, null, 512), [
3661
+ [ja, nl.value]
3662
+ ]),
3663
+ b("div", {
3664
+ onClick: c[8] || (c[8] = (e) => nl.value = !nl.value),
3665
+ style: { cursor: "pointer" }
3666
+ }, [
3667
+ Fl(v(gl), {
3668
+ name: "chartLine",
3669
+ size: 20,
3670
+ stroke: l.value.chart.color
3671
+ }, null, 8, ["stroke"])
3672
+ ])
3673
+ ]),
3674
+ nl.value ? (u(), We(v(Yl), {
3675
+ key: `sparkline_${Nl.value}`,
3676
+ dataset: Fa.value,
3677
+ config: Wa.value
3678
+ }, null, 8, ["dataset", "config"])) : (u(), We(v(De), {
3679
+ key: `table_${st.value}`,
3680
+ colNames: ht.value.colNames,
3681
+ head: ht.value.head,
3682
+ body: ht.value.body,
3683
+ config: ht.value.config,
3684
+ title: `${l.value.chart.title.text}${l.value.chart.title.subtitle.text ? ` : ${l.value.chart.title.subtitle.text}` : ""}`,
3685
+ onClose: c[9] || (c[9] = (e) => f.value.showTable = !1)
3686
+ }, {
3687
+ th: me(({ th: e }) => [
3688
+ b("div", { innerHTML: e }, null, 8, _i)
3689
+ ]),
3690
+ td: me(({ td: e }) => [
3691
+ eo(le(isNaN(Number(e)) ? e : v(Re)({
3692
+ p: l.value.chart.labels.prefix,
3693
+ v: e,
3694
+ s: l.value.chart.labels.suffix,
3695
+ r: l.value.table.rounding
3696
+ })), 1)
3697
+ ]),
3698
+ _: 1
3699
+ }, 8, ["colNames", "head", "body", "config", "title"]))
3700
+ ], 4)
3701
+ ]),
3702
+ _: 1
3703
+ }, 8, ["config"])) : h("", !0),
3704
+ v(el) ? (u(), We(Mo, { key: 11 })) : h("", !0)
3705
+ ], 46, Zo));
3706
+ }
3707
+ }, Fi = /* @__PURE__ */ wa(Li, [["__scopeId", "data-v-53a5a79a"]]);
3708
+ export {
3709
+ Fi as default
3710
+ };