vue-data-ui 3.19.6 → 3.19.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. package/dist/{BaseDraggableDialog-BQcmQAK5.js → BaseDraggableDialog-DUUu2E2Q.js} +1 -1
  2. package/dist/{BaseIcon-CEmt3Ifx.js → BaseIcon-DM1x8hQF.js} +6 -3
  3. package/dist/{BaseLegendToggle-DUIqQmwM.js → BaseLegendToggle-CJTwLGXL.js} +1 -1
  4. package/dist/{BaseZoomControls-Ce1yqas1.js → BaseZoomControls-BkajQ8q9.js} +1 -1
  5. package/dist/{ColorPicker-DS_QkH3W.js → ColorPicker-DTQeqKUV.js} +1 -1
  6. package/dist/{DataTable-BvDJEAma.js → DataTable-DmE8Oo4i.js} +1 -1
  7. package/dist/{NonSvgPenAndPaper-D4Gh7O43.js → NonSvgPenAndPaper-tvWXeCsd.js} +2 -2
  8. package/dist/{PackageVersion-C7CvErYQ.js → PackageVersion-zJAUEmyB.js} +1 -1
  9. package/dist/{PenAndPaper-DwpL8Z0l.js → PenAndPaper-DNgm6y3l.js} +2 -2
  10. package/dist/{Slicer-BlfyiHHD.js → Slicer-CPWGgGSp.js} +1 -1
  11. package/dist/{SlicerPreview-CG1jpZqZ.js → SlicerPreview-BU3ZeHjR.js} +1 -1
  12. package/dist/{UserOptions-B57xo6D2.js → UserOptions-D7zR0tnR.js} +1 -1
  13. package/dist/components/vue-ui-3d-bar.js +1 -1
  14. package/dist/components/vue-ui-accordion.js +1 -1
  15. package/dist/components/vue-ui-age-pyramid.js +1 -1
  16. package/dist/components/vue-ui-annotator.js +1 -1
  17. package/dist/components/vue-ui-bullet.js +1 -1
  18. package/dist/components/vue-ui-bump.js +1 -1
  19. package/dist/components/vue-ui-candlestick.js +1 -1
  20. package/dist/components/vue-ui-carousel-table.js +1 -1
  21. package/dist/components/vue-ui-chestnut.js +1 -1
  22. package/dist/components/vue-ui-chord.js +1 -1
  23. package/dist/components/vue-ui-circle-pack.js +1 -1
  24. package/dist/components/vue-ui-cursor.js +1 -1
  25. package/dist/components/vue-ui-dag.js +1 -1
  26. package/dist/components/vue-ui-dashboard.js +1 -1
  27. package/dist/components/vue-ui-digits.js +1 -1
  28. package/dist/components/vue-ui-donut-evolution.js +1 -1
  29. package/dist/components/vue-ui-donut.js +1 -1
  30. package/dist/components/vue-ui-dumbbell.js +1 -1
  31. package/dist/components/vue-ui-flow.js +1 -1
  32. package/dist/components/vue-ui-funnel.js +1 -1
  33. package/dist/components/vue-ui-galaxy.js +1 -1
  34. package/dist/components/vue-ui-gauge.js +1 -1
  35. package/dist/components/vue-ui-geo.js +1 -1
  36. package/dist/components/vue-ui-gizmo.js +1 -1
  37. package/dist/components/vue-ui-heatmap.js +1 -1
  38. package/dist/components/vue-ui-history-plot.js +1 -1
  39. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  40. package/dist/components/vue-ui-icon.js +1 -1
  41. package/dist/components/vue-ui-kpi.js +1 -1
  42. package/dist/components/vue-ui-mini-loader.js +1 -1
  43. package/dist/components/vue-ui-molecule.js +1 -1
  44. package/dist/components/vue-ui-mood-radar.js +1 -1
  45. package/dist/components/vue-ui-nested-donuts.js +1 -1
  46. package/dist/components/vue-ui-onion.js +1 -1
  47. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  48. package/dist/components/vue-ui-quadrant.js +1 -1
  49. package/dist/components/vue-ui-quick-chart.js +1 -1
  50. package/dist/components/vue-ui-radar.js +1 -1
  51. package/dist/components/vue-ui-rating.js +1 -1
  52. package/dist/components/vue-ui-relation-circle.js +1 -1
  53. package/dist/components/vue-ui-ridgeline.js +1 -1
  54. package/dist/components/vue-ui-rings.js +1 -1
  55. package/dist/components/vue-ui-scatter.js +1 -1
  56. package/dist/components/vue-ui-skeleton.js +1 -1
  57. package/dist/components/vue-ui-smiley.js +1 -1
  58. package/dist/components/vue-ui-spark-trend.js +1 -1
  59. package/dist/components/vue-ui-sparkbar.js +1 -1
  60. package/dist/components/vue-ui-sparkgauge.js +1 -1
  61. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  62. package/dist/components/vue-ui-sparkline.js +1 -1
  63. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  64. package/dist/components/vue-ui-stackbar.js +1 -1
  65. package/dist/components/vue-ui-stackline.js +1 -1
  66. package/dist/components/vue-ui-strip-plot.js +1 -1
  67. package/dist/components/vue-ui-table-heatmap.js +1 -1
  68. package/dist/components/vue-ui-table-sparkline.js +1 -1
  69. package/dist/components/vue-ui-table.js +1 -1
  70. package/dist/components/vue-ui-thermometer.js +1 -1
  71. package/dist/components/vue-ui-timer.js +1 -1
  72. package/dist/components/vue-ui-tiremarks.js +1 -1
  73. package/dist/components/vue-ui-treemap.js +1 -1
  74. package/dist/components/vue-ui-vertical-bar.js +1 -1
  75. package/dist/components/vue-ui-waffle.js +1 -1
  76. package/dist/components/vue-ui-wheel.js +1 -1
  77. package/dist/components/vue-ui-word-cloud.js +1 -1
  78. package/dist/components/vue-ui-world.js +1 -1
  79. package/dist/components/vue-ui-xy-canvas.js +1 -1
  80. package/dist/components/vue-ui-xy.js +1 -1
  81. package/dist/style.css +1 -1
  82. package/dist/types/vue-data-ui.d.ts +11 -0
  83. package/dist/{useConfig-lKgU652n.js → useConfig-ByaaSKhz.js} +5 -0
  84. package/dist/{useObjectBindings-C3q0I8Zm.js → useObjectBindings-BR1sGimd.js} +1 -1
  85. package/dist/utils.js +1 -1
  86. package/dist/{vue-data-ui-BBnKbdCT.js → vue-data-ui-Dv8MNDbS.js} +68 -68
  87. package/dist/vue-data-ui.js +69 -69
  88. package/dist/{vue-ui-3d-bar-gMuK6OMP.js → vue-ui-3d-bar-DVsF4qGd.js} +2 -2
  89. package/dist/{vue-ui-accordion-CNtzLReQ.js → vue-ui-accordion-BX9WL-QF.js} +2 -2
  90. package/dist/{vue-ui-age-pyramid-B_D1wPY4.js → vue-ui-age-pyramid-Bu3bocZx.js} +2 -2
  91. package/dist/{vue-ui-annotator-KPkeXw8q.js → vue-ui-annotator-Be3VpH8Z.js} +4 -4
  92. package/dist/{vue-ui-bullet-Ci3tqx6A.js → vue-ui-bullet-COSSZ7RU.js} +2 -2
  93. package/dist/{vue-ui-bump-31Kryh02.js → vue-ui-bump-C1w-a4ad.js} +3 -3
  94. package/dist/vue-ui-candlestick-zO0Jmsen.js +1826 -0
  95. package/dist/{vue-ui-carousel-table-D3j0UTQ1.js → vue-ui-carousel-table-Q2uTIELA.js} +2 -2
  96. package/dist/{vue-ui-chestnut-Cgf0vAxo.js → vue-ui-chestnut-DdNKhXkN.js} +2 -2
  97. package/dist/{vue-ui-chord-DGma5NsS.js → vue-ui-chord-CYzGIRtA.js} +2 -2
  98. package/dist/{vue-ui-circle-pack-EvRfcXnZ.js → vue-ui-circle-pack-Dp5_ugXW.js} +2 -2
  99. package/dist/{vue-ui-cursor-BX8kHXVE.js → vue-ui-cursor-DBViygOD.js} +2 -2
  100. package/dist/{vue-ui-dag-DuOokTx4.js → vue-ui-dag-BA2vr2Ub.js} +3 -3
  101. package/dist/{vue-ui-dashboard-BeZCujZv.js → vue-ui-dashboard-D11FCHnp.js} +67 -67
  102. package/dist/{vue-ui-digits-nIgbeL-K.js → vue-ui-digits-CIXbRR97.js} +2 -2
  103. package/dist/{vue-ui-donut-FzQwgIbN.js → vue-ui-donut-BSanYbqb.js} +3 -3
  104. package/dist/{vue-ui-donut-evolution-CwLYRDws.js → vue-ui-donut-evolution-BVttNIzH.js} +228 -218
  105. package/dist/{vue-ui-dumbbell-BmujSKH2.js → vue-ui-dumbbell-D-KcBLOF.js} +2 -2
  106. package/dist/{vue-ui-flow-D4jeyY5a.js → vue-ui-flow-Dly7N0Nb.js} +2 -2
  107. package/dist/{vue-ui-funnel-DQ1fOfXW.js → vue-ui-funnel-COwXzAbB.js} +2 -2
  108. package/dist/{vue-ui-galaxy-Wldw6HHG.js → vue-ui-galaxy-Cg9VStNF.js} +3 -3
  109. package/dist/{vue-ui-gauge-BzV3y_h3.js → vue-ui-gauge-DHWCS6jR.js} +2 -2
  110. package/dist/{vue-ui-geo-WLEkf2a9.js → vue-ui-geo-CV0FBeuB.js} +3 -3
  111. package/dist/{vue-ui-gizmo-C0vr-wLL.js → vue-ui-gizmo-5rdIvscj.js} +2 -2
  112. package/dist/{vue-ui-heatmap-RmaAnr9m.js → vue-ui-heatmap-kiQ6q3q4.js} +3 -3
  113. package/dist/{vue-ui-history-plot-Dyf2Atb2.js → vue-ui-history-plot-CgPjudHv.js} +3 -3
  114. package/dist/{vue-ui-horizontal-bar-DG4paRTj.js → vue-ui-horizontal-bar-CpQCmBQD.js} +4 -4
  115. package/dist/{vue-ui-kpi-TBQhSM0a.js → vue-ui-kpi-Bz7QeCTV.js} +2 -2
  116. package/dist/{vue-ui-mini-loader-BpLz9pDO.js → vue-ui-mini-loader-DDJUya9e.js} +1 -1
  117. package/dist/{vue-ui-molecule-Df4zCHL5.js → vue-ui-molecule-CvfwMxYY.js} +2 -2
  118. package/dist/{vue-ui-mood-radar-RQqmJU_9.js → vue-ui-mood-radar-D0lanJ__.js} +2 -2
  119. package/dist/{vue-ui-nested-donuts-C7VIp7mz.js → vue-ui-nested-donuts-C-LWBXmg.js} +3 -3
  120. package/dist/{vue-ui-onion-DP4NWU3Y.js → vue-ui-onion-u9hGe4VA.js} +3 -3
  121. package/dist/{vue-ui-parallel-coordinate-plot-a7OvbsVh.js → vue-ui-parallel-coordinate-plot-BJ5OjYTH.js} +3 -3
  122. package/dist/{vue-ui-quadrant-C4GxyyE3.js → vue-ui-quadrant-BVFJ5Vur.js} +3 -3
  123. package/dist/{vue-ui-quick-chart-BNCkZiiG.js → vue-ui-quick-chart-Cd5lGyph.js} +4 -4
  124. package/dist/{vue-ui-radar-Dcq3bWA4.js → vue-ui-radar-BsRGxgXN.js} +3 -3
  125. package/dist/{vue-ui-rating-DBxf9Vwv.js → vue-ui-rating-D_QR_A3V.js} +1 -1
  126. package/dist/{vue-ui-relation-circle-CZ1UtEIM.js → vue-ui-relation-circle-MxYh6hSt.js} +2 -2
  127. package/dist/{vue-ui-ridgeline-CsNDB48W.js → vue-ui-ridgeline-BtNEP6ba.js} +3 -3
  128. package/dist/{vue-ui-rings-Bwd_i2eo.js → vue-ui-rings-Pj7yMeOV.js} +3 -3
  129. package/dist/{vue-ui-scatter-DAa8MnhH.js → vue-ui-scatter-DrS1nrwL.js} +3 -3
  130. package/dist/{vue-ui-skeleton-CPy9DsSC.js → vue-ui-skeleton-Cqv1KG4y.js} +2 -2
  131. package/dist/{vue-ui-smiley-2xc8AwPP.js → vue-ui-smiley-rFdGxZK6.js} +1 -1
  132. package/dist/{vue-ui-spark-trend-CM06cEvG.js → vue-ui-spark-trend-eHleRq-z.js} +2 -2
  133. package/dist/{vue-ui-sparkbar-CSDRWMhb.js → vue-ui-sparkbar-BHJTG_on.js} +2 -2
  134. package/dist/{vue-ui-sparkgauge-CKeKTyBH.js → vue-ui-sparkgauge-DpAEwvLX.js} +2 -2
  135. package/dist/{vue-ui-sparkhistogram-BSnU2_Q0.js → vue-ui-sparkhistogram-BlMH_NJk.js} +2 -2
  136. package/dist/{vue-ui-sparkline-DhkrfLYf.js → vue-ui-sparkline-BAWc3ROJ.js} +2 -2
  137. package/dist/{vue-ui-sparkstackbar-D3vn49rn.js → vue-ui-sparkstackbar-BI8zG-DG.js} +3 -3
  138. package/dist/vue-ui-stackbar-28FVVqVu.js +2267 -0
  139. package/dist/vue-ui-stackline-DwtlEdOE.js +2395 -0
  140. package/dist/{vue-ui-strip-plot-DLH2Jc91.js → vue-ui-strip-plot-DX36qFKk.js} +2 -2
  141. package/dist/{vue-ui-table-DBWGRgw6.js → vue-ui-table-DdZ_DkqT.js} +5 -5
  142. package/dist/{vue-ui-table-heatmap-D0SM6A1L.js → vue-ui-table-heatmap-BFKyJTr1.js} +2 -2
  143. package/dist/{vue-ui-table-sparkline-BShpt1UR.js → vue-ui-table-sparkline-BSV1jn7r.js} +2 -2
  144. package/dist/{vue-ui-thermometer-BIH00QYu.js → vue-ui-thermometer-Io8LdW1o.js} +2 -2
  145. package/dist/{vue-ui-timer-vcaC2CGp.js → vue-ui-timer-BkdpZ-lw.js} +3 -3
  146. package/dist/{vue-ui-tiremarks-BmhvsqeP.js → vue-ui-tiremarks-GC773Hw1.js} +2 -2
  147. package/dist/{vue-ui-treemap-C-M5PHTS.js → vue-ui-treemap-C0dtbfbZ.js} +4 -4
  148. package/dist/{vue-ui-waffle-DnpUe9aj.js → vue-ui-waffle-BvzfNmJC.js} +3 -3
  149. package/dist/{vue-ui-wheel-D21hTOn0.js → vue-ui-wheel-Dm9V8TAH.js} +2 -2
  150. package/dist/{vue-ui-word-cloud-C4SPxSlX.js → vue-ui-word-cloud-Ne_B9Elc.js} +3 -3
  151. package/dist/{vue-ui-world-DSq_cPCv.js → vue-ui-world-Bp38MZij.js} +3 -3
  152. package/dist/{vue-ui-xy-Iep0AjyV.js → vue-ui-xy-BCeOqJYR.js} +1169 -1104
  153. package/dist/{vue-ui-xy-canvas-DjTurM4m.js → vue-ui-xy-canvas-B06Rit63.js} +6 -6
  154. package/package.json +1 -1
  155. package/dist/vue-ui-candlestick-DU0MXtKT.js +0 -1814
  156. package/dist/vue-ui-stackbar-BR7tZmWR.js +0 -2253
  157. package/dist/vue-ui-stackline-Dj9N60Js.js +0 -2381
@@ -1,24 +1,24 @@
1
1
  import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
2
- import { At as t, B as n, D as r, F as i, G as a, H as o, I as s, It as c, J as l, L as u, Lt as ee, M as te, Mt as d, O as f, Ot as p, P as m, R as ne, Rt as re, S as ie, St as ae, T as oe, Tt as se, X as ce, _t as le, a as h, c as ue, dt as g, et as _, g as de, h as fe, i as pe, j as me, jt as he, k as ge, l as _e, mt as ve, n as ye, nt as be, pt as xe, r as Se, s as Ce, v, w as we, x as Te, y as Ee, z as De, zt as Oe } from "./lib-BkiwukKO.js";
3
- import { n as ke, r as Ae, t as je } from "./useTimeLabels-C0x7zUXP.js";
4
- import { t as Me } from "./useConfig-lKgU652n.js";
5
- import { t as Ne } from "./usePrinter-X0yWOynH.js";
6
- import { n as Pe, t as Fe } from "./BaseScanner-C7dmAref.js";
7
- import { t as Ie } from "./useSvgExport-Dtu973wa.js";
8
- import { t as Le } from "./useNestedProp-Ck4hsrpu.js";
9
- import { t as Re } from "./useThemeCheck-rFK9Zlb_.js";
10
- import { t as ze } from "./useStableElementSize-0I1IpHPl.js";
11
- import { t as Be } from "./useTimeLabelCollider-Dm55Emzg.js";
12
- import { t as Ve } from "./img-BjOr008R.js";
13
- import { n as He } from "./Title-__gWq2g6.js";
14
- import { t as Ue } from "./vue_ui_xy-BYPqfYyx.js";
15
- import { t as We } from "./Shape-DEGOZ6GG.js";
16
- import { t as Ge } from "./_plugin-vue_export-helper-Dq1MygBL.js";
17
- import { t as Ke } from "./SlicerPreview-CG1jpZqZ.js";
18
- import { t as qe } from "./vue-ui-accordion-CNtzLReQ.js";
19
- import { t as Je } from "./BaseLegendToggle-DUIqQmwM.js";
20
- import { t as Ye } from "./A11yDataTable-q2-8fSlJ.js";
21
- import { Fragment as y, Teleport as Xe, computed as b, createBlock as Ze, createCommentVNode as x, createElementBlock as S, createElementVNode as C, createSlots as Qe, createTextVNode as $e, createVNode as et, defineAsyncComponent as tt, getCurrentInstance as nt, guardReactiveProps as w, mergeProps as rt, nextTick as it, normalizeClass as at, normalizeProps as T, normalizeStyle as E, onBeforeUnmount as ot, onMounted as st, openBlock as D, ref as O, renderList as k, renderSlot as A, resolveDynamicComponent as ct, shallowRef as lt, toDisplayString as ut, toRefs as dt, unref as j, useSlots as ft, vModelCheckbox as pt, watch as mt, watchEffect as ht, withCtx as M, withDirectives as gt } from "vue";
2
+ import { At as t, B as n, D as r, F as i, G as a, H as o, I as s, It as c, J as l, L as u, Lt as ee, M as te, Mt as d, O as f, Ot as p, P as m, R as ne, Rt as re, S as ie, St as ae, T as oe, Tt as h, X as se, _t as ce, a as g, c as le, dt as _, et as v, g as ue, h as de, i as fe, j as pe, jt as me, k as he, l as ge, mt as _e, n as ve, nt as ye, pt as be, r as xe, s as Se, v as y, w as Ce, x as we, y as Te, z as Ee, zt as De } from "./lib-BkiwukKO.js";
3
+ import { n as Oe, r as ke, t as Ae } from "./useTimeLabels-C0x7zUXP.js";
4
+ import { t as je } from "./useConfig-ByaaSKhz.js";
5
+ import { t as Me } from "./usePrinter-X0yWOynH.js";
6
+ import { n as Ne, t as Pe } from "./BaseScanner-C7dmAref.js";
7
+ import { t as Fe } from "./useSvgExport-Dtu973wa.js";
8
+ import { t as Ie } from "./useNestedProp-Ck4hsrpu.js";
9
+ import { t as Le } from "./useThemeCheck-rFK9Zlb_.js";
10
+ import { t as Re } from "./useStableElementSize-0I1IpHPl.js";
11
+ import { t as ze } from "./useTimeLabelCollider-Dm55Emzg.js";
12
+ import { t as Be } from "./img-BjOr008R.js";
13
+ import { n as Ve } from "./Title-__gWq2g6.js";
14
+ import { t as He } from "./vue_ui_xy-BYPqfYyx.js";
15
+ import { t as Ue } from "./Shape-DEGOZ6GG.js";
16
+ import { t as We } from "./_plugin-vue_export-helper-Dq1MygBL.js";
17
+ import { t as Ge } from "./SlicerPreview-BU3ZeHjR.js";
18
+ import { t as Ke } from "./vue-ui-accordion-BX9WL-QF.js";
19
+ import { t as qe } from "./BaseLegendToggle-CJTwLGXL.js";
20
+ import { t as Je } from "./A11yDataTable-q2-8fSlJ.js";
21
+ import { Fragment as b, Teleport as Ye, computed as x, createBlock as Xe, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createSlots as Ze, createTextVNode as Qe, createVNode as $e, defineAsyncComponent as et, getCurrentInstance as tt, guardReactiveProps as T, mergeProps as nt, nextTick as rt, normalizeClass as it, normalizeProps as at, normalizeStyle as E, onBeforeUnmount as ot, onMounted as st, openBlock as D, ref as O, renderList as k, renderSlot as A, resolveDynamicComponent as ct, shallowRef as lt, toDisplayString as ut, toRefs as dt, unref as j, useSlots as ft, vModelCheckbox as pt, watch as mt, watchEffect as ht, withCtx as M, withDirectives as gt } from "vue";
22
22
  //#region src/components/vue-ui-xy.vue
23
23
  var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt = ["id"], xt = { style: { position: "relative" } }, St = [
24
24
  "viewBox",
@@ -140,6 +140,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
140
140
  "stroke"
141
141
  ], _n = [
142
142
  "transform",
143
+ "text-anchor",
143
144
  "font-size",
144
145
  "fill"
145
146
  ], vn = [
@@ -151,6 +152,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
151
152
  ], yn = [
152
153
  "transform",
153
154
  "font-size",
155
+ "text-anchor",
154
156
  "fill"
155
157
  ], bn = [
156
158
  "width",
@@ -277,7 +279,11 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
277
279
  "font-size",
278
280
  "fill",
279
281
  "stroke"
280
- ], pr = ["id"], mr = ["stop-color"], hr = ["stop-color"], gr = [
282
+ ], pr = [
283
+ "id",
284
+ "x1",
285
+ "x2"
286
+ ], mr = ["stop-color"], hr = ["stop-color"], gr = [
281
287
  "x",
282
288
  "y",
283
289
  "width",
@@ -423,7 +429,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
423
429
  "padding-left": "6px"
424
430
  },
425
431
  "data-dom-to-png-ignore": ""
426
- }, ei = ["innerHTML"], N = /* @__PURE__ */ Ge({
432
+ }, ei = ["innerHTML"], N = /* @__PURE__ */ We({
427
433
  __name: "vue-ui-xy",
428
434
  props: {
429
435
  config: {
@@ -452,8 +458,8 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
452
458
  "zoomReset",
453
459
  "copyAlt"
454
460
  ],
455
- setup(e, { expose: Ge, emit: _t }) {
456
- let N = e, ti = tt(() => import("./DataTable-BvDJEAma.js")), ni = tt(() => import("./Tooltip-CuWEYGr3.js")), ri = tt(() => import("./UserOptions-B57xo6D2.js").then((e) => e.n)), ii = tt(() => import("./BaseIcon-CEmt3Ifx.js").then((e) => e.n)), ai = tt(() => import("./vue-ui-table-sparkline-BShpt1UR.js").then((e) => e.n)), oi = tt(() => import("./PackageVersion-C7CvErYQ.js").then((e) => e.t)), si = tt(() => import("./PenAndPaper-DwpL8Z0l.js").then((e) => e.t)), ci = tt(() => import("./BaseDraggableDialog-BQcmQAK5.js").then((e) => e.n)), li = _t, ui = ft(), di = nt(), { vue_ui_xy: fi } = Me(), { isThemeValid: pi, warnInvalidTheme: mi } = Re(), hi = O(null), gi = O(null), _i = O(null), vi = O(null), yi = O(null), bi = O(null), xi = O(null), Si = O(null), Ci = O(null), wi = O(null), Ti = O(null), Ei = O(null), Di = O(null), Oi = O(null), ki = O(0), P = O(null), Ai = O(!0), ji = O(600), F = O(1e3), Mi = O("0 0 1000 600"), Ni = O({
461
+ setup(e, { expose: We, emit: _t }) {
462
+ let N = e, ti = et(() => import("./DataTable-DmE8Oo4i.js")), ni = et(() => import("./Tooltip-CuWEYGr3.js")), ri = et(() => import("./UserOptions-D7zR0tnR.js").then((e) => e.n)), ii = et(() => import("./BaseIcon-DM1x8hQF.js").then((e) => e.n)), ai = et(() => import("./vue-ui-table-sparkline-BSV1jn7r.js").then((e) => e.n)), oi = et(() => import("./PackageVersion-zJAUEmyB.js").then((e) => e.t)), si = et(() => import("./PenAndPaper-DNgm6y3l.js").then((e) => e.t)), ci = et(() => import("./BaseDraggableDialog-DUUu2E2Q.js").then((e) => e.n)), li = _t, ui = ft(), di = tt(), { vue_ui_xy: fi } = je(), { isThemeValid: pi, warnInvalidTheme: mi } = Le(), hi = O(null), gi = O(null), _i = O(null), vi = O(null), yi = O(null), bi = O(null), xi = O(null), Si = O(null), Ci = O(null), wi = O(null), Ti = O(null), Ei = O(null), Di = O(null), Oi = O(null), ki = O(0), P = O(null), Ai = O(!0), ji = O(600), F = O(1e3), Mi = O("0 0 1000 600"), Ni = O({
457
463
  x: 0,
458
464
  y: 0
459
465
  }), Pi = O({
@@ -463,7 +469,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
463
469
  }), Fi = O(!1), Ii = O(!1), Li = O(!1), Ri = O(null), I = O([]), L = O(o()), zi = O(0), Bi = O(0), Vi = O(0), Hi = O(!0), Ui = O(0), R = O(null), Wi = O(!1), Gi = O(!0), Ki = O(!0), z = O(null), qi = O({}), Ji = O(null), Yi = O(!1), Xi = O(null), Zi = O(!1), Qi = O(!1), B = O(null), $i = O(null), ea = O({
464
470
  x: 0,
465
471
  y: 0
466
- }), ta = lt(null), na = O(!1), ra = O(0), ia = O(0), aa = ze({
472
+ }), ta = lt(null), na = O(!1), ra = O(0), ia = O(0), aa = Re({
467
473
  elementRef: ta,
468
474
  minimumWidth: 2,
469
475
  minimumHeight: 2,
@@ -485,9 +491,9 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
485
491
  }
486
492
  async function ca() {
487
493
  let e = ++ia.value;
488
- na.value = !1, await it(), await sa(), await sa(), e === ia.value && (ra.value += 1, na.value = !0);
494
+ na.value = !1, await rt(), await sa(), await sa(), e === ia.value && (ra.value += 1, na.value = !0);
489
495
  }
490
- let la = b(() => ({
496
+ let la = x(() => ({
491
497
  height: ji.value,
492
498
  width: F.value
493
499
  }));
@@ -497,87 +503,92 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
497
503
  function da(e, t, n = 0) {
498
504
  return Number.isFinite(e) && Number.isFinite(t) && Math.abs(t) > 1e-9 ? e / t : n;
499
505
  }
500
- let fa = O(!1), V = O({
506
+ let fa = O(!1), pa = O(null), ma = O(null), V = O({
501
507
  xAxis: 18,
502
508
  yAxis: 12,
503
509
  dataLabels: 20,
504
510
  plotLabels: 10
505
- }), pa = O({
511
+ }), ha = O({
506
512
  plot: 3,
507
513
  line: 3
508
514
  });
509
515
  st(() => {
510
516
  Yi.value = !0, N.dataset.length && N.dataset.forEach((e, t) => {
511
- [null, void 0].includes(e.series) && ce({
517
+ [null, void 0].includes(e.series) && se({
512
518
  componentName: "VueUiXy",
513
519
  type: "datasetSerieAttribute",
514
520
  property: "series (number[])",
515
521
  index: t,
516
- debug: ya.value
522
+ debug: xa.value
517
523
  });
518
524
  }), oa(), aa.start(), ca();
519
525
  });
520
- function ma() {
526
+ function ga() {
521
527
  if (!Object.keys(N.config || {}).length) return fi;
522
- let e = Le({
528
+ let e = Ie({
523
529
  userConfig: N.config,
524
530
  defaultConfig: fi
525
531
  });
526
- N.config && g(N.config, "chart.highlightArea") && (Array.isArray(N.config.chart.highlightArea) ? e.chart.highlightArea = N.config.chart.highlightArea : e.chart.highlightArea = [N.config.chart.highlightArea]), N.config && g(N.config, "chart.annotations") && Array.isArray(N.config.chart.annotations) && N.config.chart.annotations.length ? e.chart.annotations = N.config.chart.annotations.map((e) => Le({
532
+ N.config && _(N.config, "chart.highlightArea") && (Array.isArray(N.config.chart.highlightArea) ? e.chart.highlightArea = N.config.chart.highlightArea : e.chart.highlightArea = [N.config.chart.highlightArea]), N.config && _(N.config, "chart.annotations") && Array.isArray(N.config.chart.annotations) && N.config.chart.annotations.length ? e.chart.annotations = N.config.chart.annotations.map((e) => Ie({
527
533
  defaultConfig: fi.chart.annotations[0],
528
534
  userConfig: e
529
- })) : e.chart.annotations = [], N.config && g(N.config, "chart.grid.position") && N.config.chart.grid.position === "start" && N.dataset.length && N.dataset.some((e) => e.type === "bar") && (e.chart.grid.position = "middle", g(N.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), N.config && g(N.config, "chart.highlightArea") && (Array.isArray(N.config.chart.highlightArea) ? e.chart.highlightArea = N.config.chart.highlightArea.map((e) => ha({
535
+ })) : e.chart.annotations = [], N.config && _(N.config, "chart.grid.position") && N.config.chart.grid.position === "start" && N.dataset.length && N.dataset.some((e) => e.type === "bar") && (e.chart.grid.position = "middle", _(N.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), N.config && _(N.config, "chart.highlightArea") && (Array.isArray(N.config.chart.highlightArea) ? e.chart.highlightArea = N.config.chart.highlightArea.map((e) => _a({
530
536
  defaultConfig: fi.chart.highlightArea,
531
537
  userConfig: e
532
- })) : e.chart.highlightArea = ha({
538
+ })) : e.chart.highlightArea = _a({
533
539
  defaultConfig: fi.chart.highlightArea,
534
540
  userConfig: N.config.chart.highlightArea
535
541
  }));
536
542
  let t = e.theme;
537
543
  if (!t) return e;
538
544
  if (!pi.value(e)) return mi(e), e;
539
- let n = Le({
540
- userConfig: Ue[t] || N.config,
545
+ let n = Ie({
546
+ userConfig: He[t] || N.config,
541
547
  defaultConfig: e
542
- }), r = Le({
548
+ }), r = Ie({
543
549
  userConfig: N.config,
544
550
  defaultConfig: n
545
551
  });
546
552
  return {
547
553
  ...r,
548
- customPalette: r.customPalette.length ? r.customPalette : ee[t] || se
554
+ customPalette: r.customPalette.length ? r.customPalette : ee[t] || h
549
555
  };
550
556
  }
551
- function ha({ defaultConfig: e, userConfig: t }) {
552
- return Le({
557
+ function _a({ defaultConfig: e, userConfig: t }) {
558
+ return Ie({
553
559
  defaultConfig: e,
554
560
  userConfig: t
555
561
  });
556
562
  }
557
- let ga = b({
563
+ let va = x({
558
564
  get() {
559
565
  return !!N.dataset && N.dataset.length;
560
566
  },
561
567
  set(e) {
562
568
  return e;
563
569
  }
564
- }), H = O(ma()), _a = b(() => H.value.chart.userOptions.useCursorPointer), U = O({
570
+ }), H = O(ga()), ya = x(() => H.value.chart.userOptions.useCursorPointer), U = O({
565
571
  dataLabels: { show: !0 },
566
572
  showTooltip: !0,
567
573
  showTable: !1,
568
574
  isStacked: !1,
569
575
  useIndividualScale: !1
570
576
  });
571
- function va() {
572
- fa.value ? (U.value.showTooltip = H.value.chart.tooltip.show === !0, U.value.isStacked = H.value.chart.grid.labels.yAxis.stacked, U.value.useIndividualScale ?? (U.value.useIndividualScale = H.value.chart.grid.labels.yAxis.useIndividualScale)) : (U.value = {
573
- dataLabels: { show: !0 },
574
- showTooltip: H.value.chart.tooltip.show === !0,
575
- showTable: H.value.showTable === !0,
576
- isStacked: H.value.chart.grid.labels.yAxis.stacked,
577
- useIndividualScale: H.value.chart.grid.labels.yAxis.useIndividualScale
578
- }, fa.value = !0);
577
+ function ba() {
578
+ let e = H.value.chart.grid.labels.yAxis.stacked, t = H.value.chart.grid.labels.yAxis.useIndividualScale;
579
+ if (!fa.value) {
580
+ U.value = {
581
+ dataLabels: { show: !0 },
582
+ showTooltip: H.value.chart.tooltip.show === !0,
583
+ showTable: H.value.showTable === !0,
584
+ isStacked: e,
585
+ useIndividualScale: t
586
+ }, pa.value = e, ma.value = t, fa.value = !0;
587
+ return;
588
+ }
589
+ U.value.showTooltip = H.value.chart.tooltip.show === !0, e !== pa.value && (U.value.isStacked = e, pa.value = e), t !== ma.value && (U.value.useIndividualScale = t, ma.value = t), U.value.isStacked && (U.value.useIndividualScale = !0);
579
590
  }
580
- let ya = b(() => !!H.value.debug), ba = b(() => Oe({
591
+ let xa = x(() => !!H.value.debug), Sa = x(() => De({
581
592
  defaultConfig: {
582
593
  useCssAnimation: !1,
583
594
  showTable: !1,
@@ -633,7 +644,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
633
644
  }
634
645
  },
635
646
  userConfig: H.value.skeletonConfig ?? {}
636
- })), xa = b(() => N.config?.skeletonDataset ?? [{
647
+ })), Ca = x(() => N.config?.skeletonDataset ?? [{
637
648
  name: "",
638
649
  series: [
639
650
  0,
@@ -670,22 +681,22 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
670
681
  ],
671
682
  type: "bar",
672
683
  color: "#CACACA"
673
- }]), { loading: Sa, FINAL_DATASET: Ca, manualLoading: wa } = Pe({
684
+ }]), { loading: wa, FINAL_DATASET: W, manualLoading: Ta } = Ne({
674
685
  ...dt(N),
675
686
  FINAL_CONFIG: H,
676
- prepareConfig: ma,
687
+ prepareConfig: ga,
677
688
  callback: () => {
678
689
  Promise.resolve().then(async () => {
679
- (!H.value.chart.zoom.keepState || !Do.value || G.value.start === 0 && G.value.end === 0) && await jo(), U.value.showTable = H.value.showTable;
690
+ (!H.value.chart.zoom.keepState || !ko.value || K.value.start === 0 && K.value.end === 0) && await No(), U.value.showTable = H.value.showTable;
680
691
  });
681
692
  },
682
- skeletonDataset: xa.value,
683
- skeletonConfig: Oe({
693
+ skeletonDataset: Ca.value,
694
+ skeletonConfig: De({
684
695
  defaultConfig: H.value,
685
- userConfig: ba.value
696
+ userConfig: Sa.value
686
697
  })
687
698
  });
688
- function Ta(e) {
699
+ function Ea(e) {
689
700
  let t = /* @__PURE__ */ new WeakMap();
690
701
  return (n, ...r) => {
691
702
  let i = t.get(n), a = JSON.stringify(r);
@@ -694,31 +705,31 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
694
705
  return i || (i = /* @__PURE__ */ new Map(), t.set(n, i)), i.set(a, o), o;
695
706
  };
696
707
  }
697
- let Ea = Ta((e, t) => le({
708
+ let Da = Ea((e, t) => ce({
698
709
  data: e,
699
710
  threshold: t
700
- })), Da = (e) => Ea(e, H.value.downsample.threshold), W = b({
701
- get: () => Math.max(...Ca.value.map((e) => Da(e.series).length)),
711
+ })), Oa = (e) => Da(e, H.value.downsample.threshold), G = x({
712
+ get: () => Math.max(...W.value.map((e) => Oa(e.series).length)),
702
713
  set: (e) => e
703
- }), G = O({
714
+ }), K = O({
704
715
  start: 0,
705
- end: W.value
706
- }), Oa = O({
716
+ end: G.value
717
+ }), ka = O({
707
718
  start: 0,
708
- end: W.value
709
- }), ka = b(() => H.value.chart.zoom.preview.enable && (Oa.value.start !== G.value.start || Oa.value.end !== G.value.end));
710
- function Aa(e, t) {
711
- Oa.value[e] = t;
719
+ end: G.value
720
+ }), Aa = x(() => H.value.chart.zoom.preview.enable && (ka.value.start !== K.value.start || ka.value.end !== K.value.end));
721
+ function ja(e, t) {
722
+ ka.value[e] = t;
712
723
  }
713
- function ja() {
714
- let e = Math.max(1, ...Ca.value.map((e) => Da(e.series).length)), t = Math.max(0, Math.min(G.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(G.value.end ?? e, e));
715
- (!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), G.value = {
724
+ function Ma() {
725
+ let e = Math.max(1, ...W.value.map((e) => Oa(e.series).length)), t = Math.max(0, Math.min(K.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(K.value.end ?? e, e));
726
+ (!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), K.value = {
716
727
  start: t,
717
728
  end: n
718
- }, Oa.value.start = t, Oa.value.end = n, _i.value && (_i.value.setStartValue(t), _i.value.setEndValue(n));
729
+ }, ka.value.start = t, ka.value.end = n, _i.value && (_i.value.setStartValue(t), _i.value.setEndValue(n));
719
730
  }
720
- let Ma = b(() => {
721
- let { left: e, top: t, width: n, height: r } = q.value, i = G.value.start, a = G.value.end - i, o = n / a, s = Oa.value.start - i, c = Oa.value.end - i, l = Math.max(0, Math.min(a, s)), u = Math.max(0, Math.min(a, c));
731
+ let Na = x(() => {
732
+ let { left: e, top: t, width: n, height: r } = Y.value, i = K.value.start, a = K.value.end - i, o = n / a, s = ka.value.start - i, c = ka.value.end - i, l = Math.max(0, Math.min(a, s)), u = Math.max(0, Math.min(a, c));
722
733
  return {
723
734
  x: e + l * o,
724
735
  y: t,
@@ -742,25 +753,25 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
742
753
  B.value = null;
743
754
  return;
744
755
  }
745
- let t = e - G.value.start;
746
- t < 0 || e >= G.value.end ? B.value = null : B.value = t ?? null;
756
+ let t = e - K.value.start;
757
+ t < 0 || e >= K.value.end ? B.value = null : B.value = t ?? null;
747
758
  }, { immediate: !0 });
748
- let { isPrinting: Na, isImaging: Pa, generatePdf: Fa, generateImage: Ia } = Ne({
759
+ let { isPrinting: Pa, isImaging: Fa, generatePdf: Ia, generateImage: La } = Me({
749
760
  elementId: `vue-ui-xy_${L.value}`,
750
761
  fileName: H.value.chart.title.text || "vue-ui-xy",
751
762
  options: H.value.chart.userOptions.print
752
- }), La = O(!1), Ra = b(() => Te(H.value.customPalette)), za = b(() => {
763
+ }), Ra = O(!1), za = x(() => we(H.value.customPalette)), Ba = x(() => {
753
764
  let e = H.value.chart.grid.labels.yAxis.scaleMin;
754
765
  if (e == null) return null;
755
766
  let t = Number(e);
756
767
  return Number.isFinite(t) ? t : null;
757
- }), Ba = b(() => za.value === null ? zo.value : q.value.bottom), Va = b(() => {
768
+ }), Va = x(() => Ba.value === null ? Vo.value : Y.value.bottom), Ha = x(() => {
758
769
  let e = H.value.chart.grid.labels.yAxis.scaleMax;
759
770
  if (e == null) return null;
760
771
  let t = Number(e);
761
772
  return Number.isFinite(t) ? t : null;
762
- }), Ha = b(() => za.value !== null || Va.value !== null), Ua = b(() => {
763
- let e = Ja.value.filter((e) => !I.value.includes(e.id)).flatMap((e) => Array.isArray(e.series) ? e.series : []).filter(Number.isFinite);
773
+ }), Ua = x(() => Ba.value !== null || Ha.value !== null), Wa = x(() => {
774
+ let e = Ya.value.filter((e) => !I.value.includes(e.id)).flatMap((e) => Array.isArray(e.series) ? e.series : []).filter(Number.isFinite);
764
775
  return e.length ? {
765
776
  min: Math.min(...e),
766
777
  max: Math.max(...e)
@@ -769,195 +780,215 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
769
780
  max: 1
770
781
  };
771
782
  });
772
- function Wa(e, t) {
783
+ function Ga(e, t) {
773
784
  let n = Number.isFinite(e) ? e : 0, r = Number.isFinite(t) ? t : 1;
774
785
  return n === r ? r = n + 1 : n > r && ([n, r] = [r, n]), {
775
786
  min: n,
776
787
  max: r
777
788
  };
778
789
  }
779
- let Ga = b(() => {
780
- let { min: e, max: t } = Ua.value;
781
- if (!Ha.value) {
790
+ let Ka = x(() => {
791
+ let { min: e, max: t } = Wa.value;
792
+ if (!Ua.value) {
782
793
  let t = e;
783
794
  return t > 0 ? 0 : t;
784
795
  }
785
- let n = za.value === null ? e > 0 ? 0 : e : za.value, r = Va.value === null ? t : Va.value;
786
- return Wa(e < n ? e : n, t > r ? t : r).min;
787
- }), Ka = b(() => {
788
- let { min: e, max: t } = Ua.value;
789
- if (!Ha.value) {
796
+ let n = Ba.value === null ? e > 0 ? 0 : e : Ba.value, r = Ha.value === null ? t : Ha.value;
797
+ return Ga(e < n ? e : n, t > r ? t : r).min;
798
+ }), qa = x(() => {
799
+ let { min: e, max: t } = Wa.value;
800
+ if (!Ua.value) {
790
801
  let e = t;
791
- return Ga.value === e ? e + 1 : e;
802
+ return Ka.value === e ? e + 1 : e;
792
803
  }
793
- let n = za.value === null ? e > 0 ? 0 : e : za.value, r = Va.value === null ? t : Va.value;
794
- return Wa(e < n ? e : n, t > r ? t : r).max;
795
- }), K = b(() => H.value.chart.grid.labels.yAxis.useNiceScale ? fe(Ga.value, Ka.value < 0 ? 0 : Ka.value, H.value.chart.grid.labels.yAxis.commonScaleSteps) : de(Ga.value, Ka.value < 0 ? 0 : Ka.value, H.value.chart.grid.labels.yAxis.commonScaleSteps)), qa = b(() => [null, void 0].includes(H.value.chart.grid.labels.yAxis.scaleMin) ? K.value.min >= 0 ? 0 : Math.abs(K.value.min) : -K.value.min), Ja = b(() => Ai.value ? Ca.value.map((e, t) => {
796
- let n = Da(e.series), r = `uniqueId_${t}`;
804
+ let n = Ba.value === null ? e > 0 ? 0 : e : Ba.value, r = Ha.value === null ? t : Ha.value;
805
+ return Ga(e < n ? e : n, t > r ? t : r).max;
806
+ }), q = x(() => H.value.chart.grid.labels.yAxis.useNiceScale ? de(Ka.value, qa.value < 0 ? 0 : qa.value, H.value.chart.grid.labels.yAxis.commonScaleSteps) : ue(Ka.value, qa.value < 0 ? 0 : qa.value, H.value.chart.grid.labels.yAxis.commonScaleSteps)), Ja = x(() => [null, void 0].includes(H.value.chart.grid.labels.yAxis.scaleMin) ? q.value.min >= 0 ? 0 : Math.abs(q.value.min) : -q.value.min), Ya = x(() => Ai.value ? W.value.map((e, t) => {
807
+ let n = Oa(e.series), r = `uniqueId_${t}`;
797
808
  return {
798
809
  ...e,
799
810
  slotAbsoluteIndex: t,
800
- series: n.map((e) => ve(e) ? e : null).slice(G.value.start, G.value.end),
801
- color: Ee(e.color ? e.color : Ra.value[t] ? Ra.value[t] : se[t]),
811
+ series: n.map((e) => _e(e) ? e : null).slice(K.value.start, K.value.end),
812
+ color: Te(e.color ? e.color : za.value[t] ? za.value[t] : h[t]),
802
813
  id: r,
803
814
  scaleLabel: e.scaleLabel || r
804
815
  };
805
- }) : Ca.value), Ya = b(() => Ja.value.map((e, t) => ({
816
+ }) : W.value), Xa = x(() => Ya.value.map((e, t) => ({
806
817
  absoluteIndex: t,
807
818
  ...e,
808
- series: e.series.map((e) => e + qa.value),
819
+ series: e.series.map((e) => e + Ja.value),
809
820
  absoluteValues: e.series,
810
- segregate: () => as(e),
821
+ segregate: () => cs(e),
811
822
  isSegregated: I.value.includes(e.id)
812
- }))), Xa = b(() => Ja.value.map((e, t) => ({
823
+ }))), Za = x(() => Ya.value.map((e, t) => ({
813
824
  ...e,
814
- series: e.series.map((e) => e + qa.value),
825
+ series: e.series.map((e) => e + Ja.value),
815
826
  absoluteValues: e.series
816
- })).filter((e) => !I.value.includes(e.id))), Za = b(() => I.value.length === Ya.value.length);
817
- function Qa() {
827
+ })).filter((e) => !I.value.includes(e.id))), Qa = x(() => I.value.length === Xa.value.length), J = x(() => H.value.chart.grid.labels.yAxis.position === "right");
828
+ function $a() {
818
829
  let e = 0;
819
830
  Ti.value && (e = Array.from(Ti.value.querySelectorAll("text")).reduce((e, t) => {
820
831
  let n = t.getComputedTextLength();
821
- return (n > e ? n : e) + H.value.chart.grid.labels.yAxis.scaleValueOffsetX;
832
+ return n > e ? n : e;
822
833
  }, 0));
823
- let t = Ci.value ? Ci.value.getBoundingClientRect().width + H.value.chart.grid.labels.axis.yLabelOffsetX + V.value.yAxis : 0, n = H.value.chart.grid.labels.yAxis.crosshairSize;
824
- return e + t + n;
834
+ let t = Ci.value ? Ci.value.getBoundingClientRect().width + H.value.chart.grid.labels.axis.yLabelOffsetX + V.value.yAxis : 0, n = e + H.value.chart.grid.labels.yAxis.scaleValueOffsetX + H.value.chart.grid.labels.yAxis.crosshairSize;
835
+ return {
836
+ left: J.value ? 0 : n + t,
837
+ right: J.value ? n + t : 0,
838
+ scaleLabelsOffset: n,
839
+ yAxisLabelWidth: t
840
+ };
825
841
  }
826
- let $a = O(0), eo = O(0);
827
- function to() {
842
+ let eo = O(0), to = O(0);
843
+ function no() {
828
844
  let e = wi.value;
829
845
  if (!e) {
830
- $a.value = 0, eo.value = 0;
846
+ eo.value = 0, to.value = 0;
831
847
  return;
832
848
  }
833
849
  try {
834
850
  let t = e.getBBox();
835
- $a.value = t?.height ?? 0, eo.value = t?.x ?? 0;
851
+ eo.value = t?.height ?? 0, to.value = t?.x ?? 0;
836
852
  } catch {
837
- $a.value = 0, eo.value = 0;
853
+ eo.value = 0, to.value = 0;
838
854
  }
839
855
  }
840
- let no = b(() => {
856
+ let ro = x(() => {
841
857
  let e = 0;
842
858
  if (Si.value) try {
843
859
  e = Si.value.getBBox().height || 0;
844
860
  } catch {
845
861
  e = 0;
846
862
  }
847
- return e + $a.value + V.value.xAxis;
848
- }), ro = b(() => Ca.value.some((e) => e.useProgression)), q = b(() => {
863
+ return e + eo.value + V.value.xAxis;
864
+ }), io = x(() => W.value.some((e) => e.useProgression));
865
+ function ao() {
866
+ return H.value.chart.grid.labels.yAxis.crosshairSize + H.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 + H.value.chart.grid.labels.yAxis.labelWidth + H.value.chart.grid.labels.axis.yLabelOffsetX + V.value.dataLabels * .8;
867
+ }
868
+ let Y = x(() => {
849
869
  ra.value;
850
- let e = 0;
851
- H.value.chart.grid.labels.show && (e = U.value.useIndividualScale && !U.value.isStacked ? (Ca.value.length - I.value.length) * (H.value.chart.grid.labels.yAxis.labelWidth + 36) : U.value.useIndividualScale && U.value.isStacked ? H.value.chart.grid.labels.yAxis.labelWidth + 36 : Qa());
852
- let t = H.value.chart.labels.fontSize * 1.1, n = ro.value ? 24 : 6;
853
- wi.value && eo.value < 0 && (e += Math.abs(eo.value));
854
- let r = F.value - e - H.value.chart.grid.labels.yAxis.crosshairSize - n - H.value.chart.padding?.left - H.value.chart.padding?.right, i = H.value.chart.grid.position === "middle" ? 0 : r / Y.value / 2;
870
+ let e = 0, t = 0, n = 0, r = 0;
871
+ if (H.value.chart.grid.labels.show) if (U.value.useIndividualScale && !U.value.isStacked) J.value ? t = (W.value.length - I.value.length) * ao() : e = (W.value.length - I.value.length) * (H.value.chart.grid.labels.yAxis.labelWidth + 36);
872
+ else if (U.value.useIndividualScale && U.value.isStacked) {
873
+ let n = H.value.chart.grid.labels.yAxis.labelWidth + 36;
874
+ J.value ? t = n : e = n;
875
+ } else {
876
+ let i = $a();
877
+ e = i.left, t = i.right, n = i.scaleLabelsOffset, r = i.yAxisLabelWidth;
878
+ }
879
+ let i = H.value.chart.labels.fontSize * 1.1, a = io.value ? 24 : 6;
880
+ wi.value && to.value < 0 && (e += Math.abs(to.value));
881
+ let o = F.value - e - t - a - H.value.chart.padding?.left - H.value.chart.padding?.right;
855
882
  return {
856
- top: H.value.chart.padding?.top + t,
857
- right: F.value - n - H.value.chart.padding?.right,
858
- bottom: ji.value - no.value - H.value.chart.padding?.bottom - H.value.chart.grid.labels.axis.xLabelOffsetY,
859
- left: e + H.value.chart.grid.labels.yAxis.crosshairSize - i + H.value.chart.padding?.left,
860
- height: ji.value - no.value - H.value.chart.padding?.top - H.value.chart.padding?.bottom - t - H.value.chart.grid.labels.axis.xLabelOffsetY,
861
- width: r,
883
+ top: H.value.chart.padding?.top + i,
884
+ right: e + (J.value ? 0 : H.value.chart.grid.labels.yAxis.crosshairSize) + H.value.chart.padding?.left + o,
885
+ bottom: ji.value - ro.value - H.value.chart.padding?.bottom - H.value.chart.grid.labels.axis.xLabelOffsetY,
886
+ left: e + (J.value ? 0 : H.value.chart.grid.labels.yAxis.crosshairSize) + H.value.chart.padding?.left,
887
+ height: ji.value - ro.value - H.value.chart.padding?.top - H.value.chart.padding?.bottom - i - H.value.chart.grid.labels.axis.xLabelOffsetY,
888
+ width: o,
862
889
  scaleLabelX: e,
890
+ rightScaleLabelX: t,
891
+ scaleLabelsOffset: n,
892
+ yAxisLabelWidth: r,
863
893
  individualOffsetX: 36
864
894
  };
865
- }), io = b(() => {
866
- let e = +(H.value.chart.grid.position === "middle"), t = Y.value + e, n = _(q.value?.top), r = _(q.value?.bottom);
895
+ }), oo = x(() => {
896
+ let e = +(H.value.chart.grid.position === "middle"), t = Z.value + e, n = v(Y.value?.top), r = v(Y.value?.bottom);
867
897
  return Array.from({ length: t }).map((e, t) => {
868
- let i = q.value.width / Y.value * t + q.value?.left + Z.value;
898
+ let i = H.value.chart.grid.position === "middle" ? Ss(t) : xs(t);
869
899
  return `M${i},${n} L${i},${r}`;
870
900
  }).join(" ");
871
- }), ao = b(() => {
901
+ }), so = x(() => {
872
902
  if (!H.value.chart.grid.labels.xAxis.showCrosshairs) return "";
873
- let e = q.value.width / Y.value, t = H.value.chart.grid.labels.xAxis.crosshairSize, n = H.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero;
874
- return vo.value.map((r, i) => {
875
- if (!r || !r.text) return null;
876
- let a = q.value?.left + e * i + e / 2;
877
- return `M${a},${n ? zo.value - (zo.value === q.value?.bottom ? 0 : t / 2) : q.value?.bottom} L${a},${n ? zo.value + t / (zo.value === q.value?.bottom ? 1 : 2) : q.value?.bottom + t}`;
903
+ bs.value;
904
+ let e = H.value.chart.grid.labels.xAxis.crosshairSize, t = H.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero;
905
+ return bo.value.map((n, r) => {
906
+ if (!n || !n.text) return null;
907
+ let i = xs(r);
908
+ return `M${i},${t ? Vo.value - (Vo.value === Y.value?.bottom ? 0 : e / 2) : Y.value?.bottom} L${i},${t ? Vo.value + e / (Vo.value === Y.value?.bottom ? 1 : 2) : Y.value?.bottom + e}`;
878
909
  }).filter(Boolean).join(" ");
879
910
  });
880
- function oo() {
911
+ function co() {
881
912
  return !!di?.vnode.props?.onSelectTimeLabel;
882
913
  }
883
- function so(e, t, n) {
914
+ function lo(e, t, n) {
884
915
  return Ji.value ||= document.createElement("canvas").getContext("2d"), Ji.value.font = `${n || "normal"} ${e}px ${t || "sans-serif"}`, Ji.value;
885
916
  }
886
- function co() {
917
+ function uo() {
887
918
  let e = hi.value.querySelectorAll(".vue-ui-xy-tag");
888
919
  e.length && Array.from(e).forEach((e) => e.style.opacity = "0");
889
920
  }
890
- function lo(e, t, n, r, i) {
921
+ function fo(e, t, n, r, i) {
891
922
  n && (qi.value[`${e}_${t}_${r}_${i}`] = n);
892
923
  }
893
- let uo = O(!1);
894
- async function fo(e = !1) {
895
- await it(), uo.value = e, Wi.value && (Ki.value = e);
924
+ let po = O(!1);
925
+ async function mo(e = !1) {
926
+ await rt(), po.value = e, Wi.value && (Ki.value = e);
896
927
  }
897
- function po() {
928
+ function ho() {
898
929
  Fi.value = !Fi.value;
899
930
  }
900
- let J = O([]), mo = O([]), ho = 0;
931
+ let X = O([]), go = O([]), _o = 0;
901
932
  ht(() => {
902
- let e = ++ho;
933
+ let e = ++_o;
903
934
  (async () => {
904
- let t = Math.max(...Ca.value.map((e) => le({
935
+ let t = Math.max(...W.value.map((e) => ce({
905
936
  data: e.series,
906
937
  threshold: H.value.downsample.threshold
907
- }).length)), n = await je({
938
+ }).length)), n = await Ae({
908
939
  values: H.value.chart.grid.labels.xAxisLabels.values,
909
940
  maxDatapoints: t,
910
941
  formatter: H.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
911
- start: G.value.start,
912
- end: G.value.end
942
+ start: K.value.start,
943
+ end: K.value.end
913
944
  });
914
- e === ho && (J.value = n);
945
+ e === _o && (X.value = n);
915
946
  })();
916
947
  });
917
- let go = 0;
948
+ let vo = 0;
918
949
  ht(() => {
919
- let e = ++go;
950
+ let e = ++vo;
920
951
  (async () => {
921
- let t = Math.max(...Ca.value.map((e) => le({
952
+ let t = Math.max(...W.value.map((e) => ce({
922
953
  data: e.series,
923
954
  threshold: H.value.downsample.threshold
924
- }).length)), n = await je({
955
+ }).length)), n = await Ae({
925
956
  values: H.value.chart.grid.labels.xAxisLabels.values,
926
957
  maxDatapoints: t,
927
958
  formatter: H.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
928
959
  start: 0,
929
- end: W.value
960
+ end: G.value
930
961
  });
931
- e === go && (mo.value = n);
962
+ e === vo && (go.value = n);
932
963
  })();
933
964
  });
934
- let _o = b(() => {
965
+ let yo = x(() => {
935
966
  let e = H.value.chart.grid.labels.xAxisLabels.modulo;
936
- return J.value.length ? Math.min(e, [...new Set(J.value.map((e) => e.text))].length) : e;
937
- }), vo = b(() => {
938
- let e = H.value.chart.grid.labels.xAxisLabels, t = J.value || [], n = mo.value || [], r = G.value.start ?? 0, i = B.value, a = Y.value, o = t.map((e) => e?.text ?? ""), s = n.map((e) => e?.text ?? "");
939
- return Ce(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, _o.value || 1), o, s, r, i, a);
940
- }), yo = b(() => (vo.value || []).map((e) => e?.text ?? "").join("|"));
967
+ return X.value.length ? Math.min(e, [...new Set(X.value.map((e) => e.text))].length) : e;
968
+ }), bo = x(() => {
969
+ let e = H.value.chart.grid.labels.xAxisLabels, t = X.value || [], n = go.value || [], r = K.value.start ?? 0, i = B.value, a = Z.value, o = t.map((e) => e?.text ?? ""), s = n.map((e) => e?.text ?? "");
970
+ return Se(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, yo.value || 1), o, s, r, i, a);
971
+ }), xo = x(() => (bo.value || []).map((e) => e?.text ?? "").join("|"));
941
972
  st(() => {
942
973
  requestAnimationFrame(() => {
943
- to();
974
+ no();
944
975
  }), mt([
945
- () => yo.value,
976
+ () => xo.value,
946
977
  () => H.value.chart.grid.labels.xAxisLabels.rotation,
947
978
  () => V.value.xAxis,
948
979
  () => F.value,
949
980
  () => ji.value
950
981
  ], async () => {
951
- await it(), requestAnimationFrame(() => {
952
- to();
982
+ await rt(), requestAnimationFrame(() => {
983
+ no();
953
984
  });
954
985
  }, { flush: "post" });
955
986
  }), ot(() => {
956
- $a.value = 0, eo.value = 0, aa.stop();
987
+ eo.value = 0, to.value = 0, aa.stop();
957
988
  });
958
- function bo(e, t) {
989
+ function So(e, t) {
959
990
  li("selectTimeLabel", {
960
- datapoint: Xa.value.map((e) => ({
991
+ datapoint: Za.value.map((e) => ({
961
992
  shape: e.shape ?? e.type === "bar" ? "square" : "circle",
962
993
  name: e.name,
963
994
  color: e.color,
@@ -971,70 +1002,70 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
971
1002
  label: e.text
972
1003
  });
973
1004
  }
974
- let Y = b(() => {
975
- let e = ua((G.value.end ?? 0) - (G.value.start ?? 0));
1005
+ let Z = x(() => {
1006
+ let e = ua((K.value.end ?? 0) - (K.value.start ?? 0));
976
1007
  return Math.max(1, e);
977
1008
  });
978
- function xo(e) {
1009
+ function Co(e) {
979
1010
  R.value = e;
980
1011
  }
981
- function So() {
1012
+ function wo() {
982
1013
  U.value.isStacked = !U.value.isStacked, U.value.isStacked ? U.value.useIndividualScale = !0 : U.value.useIndividualScale = H.value.chart.grid.labels.yAxis.useIndividualScale;
983
1014
  }
984
- function Co(e) {
985
- ya.value && e.autoScaling && (H.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${e.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), H.value.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${e.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
1015
+ function To(e) {
1016
+ xa.value && e.autoScaling && (H.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${e.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), H.value.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${e.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
986
1017
  }
987
- function wo(e, t) {
1018
+ function Eo(e, t) {
988
1019
  let n = ua(e), r = Array(n).fill(0);
989
1020
  for (let e = 0; e < t.length && e < n; e += 1) r[e] = t[e] ?? 0;
990
1021
  return r;
991
1022
  }
992
- function To(e) {
993
- let t = Math.max(...Ca.value.map((e) => Da(e.series).length));
1023
+ function Do(e) {
1024
+ let t = Math.max(...W.value.map((e) => Oa(e.series).length));
994
1025
  return e > t ? t : e < 0 || H.value.chart.zoom.startIndex !== null && e < H.value.chart.zoom.startIndex ? H.value.chart.zoom.startIndex === null ? 1 : H.value.chart.zoom.startIndex + 1 : e;
995
1026
  }
996
- let Eo = O(!1), Do = O(!1), Oo = O(0), ko = O(0);
997
- function Ao(e, t) {
1027
+ let Oo = O(!1), ko = O(!1), Ao = O(0), jo = O(0);
1028
+ function Mo(e, t) {
998
1029
  let n = Number(e), r = Number(t);
999
1030
  return !Number.isFinite(n) || !Number.isFinite(r) ? !1 : !Object.is(n, r);
1000
1031
  }
1001
- function jo() {
1002
- if (!Eo.value) {
1003
- Eo.value = !0;
1032
+ function No() {
1033
+ if (!Oo.value) {
1034
+ Oo.value = !0;
1004
1035
  try {
1005
- let { startIndex: e, endIndex: t } = H.value.chart.zoom, n = H.value.chart.zoom.keepState ? Math.max(0, ...Ca.value.map((e) => Da(e.series).length)) : Math.max(...Ca.value.map((e) => Da(e.series).length));
1036
+ let { startIndex: e, endIndex: t } = H.value.chart.zoom, n = H.value.chart.zoom.keepState ? Math.max(0, ...W.value.map((e) => Oa(e.series).length)) : Math.max(...W.value.map((e) => Oa(e.series).length));
1006
1037
  if (H.value.chart.zoom.keepState && n <= 0) return;
1007
- Oo.value = 0, ko.value = n;
1008
- let r = e ?? 0, i = t == null ? n : Math.min(To(t + 1), n);
1009
- Mo.value = !0, G.value.start = r, G.value.end = i, Oa.value.start = r, Oa.value.end = i, ja(), Do.value = !0;
1038
+ Ao.value = 0, jo.value = n;
1039
+ let r = e ?? 0, i = t == null ? n : Math.min(Do(t + 1), n);
1040
+ Po.value = !0, K.value.start = r, K.value.end = i, ka.value.start = r, ka.value.end = i, Ma(), ko.value = !0;
1010
1041
  } finally {
1011
1042
  queueMicrotask(() => {
1012
- Mo.value = !1;
1013
- }), Eo.value = !1;
1043
+ Po.value = !1;
1044
+ }), Oo.value = !1;
1014
1045
  }
1015
1046
  }
1016
1047
  }
1017
- let Mo = O(!1);
1018
- function No(e) {
1019
- if (Eo.value || Mo.value) return;
1048
+ let Po = O(!1);
1049
+ function Fo(e) {
1050
+ if (Oo.value || Po.value) return;
1020
1051
  let t = Number(e);
1021
1052
  li("zoomStart", {
1022
1053
  index: t,
1023
- isZoom: Ao(t, Oo.value)
1024
- }), Number.isFinite(t) && t !== G.value.start && (G.value.start = t, Oa.value.start = t, ja());
1054
+ isZoom: Mo(t, Ao.value)
1055
+ }), Number.isFinite(t) && t !== K.value.start && (K.value.start = t, ka.value.start = t, Ma());
1025
1056
  }
1026
- function Po(e) {
1027
- if (Eo.value || Mo.value) return;
1028
- let t = To(e);
1057
+ function Io(e) {
1058
+ if (Oo.value || Po.value) return;
1059
+ let t = Do(e);
1029
1060
  li("zoomEnd", {
1030
1061
  index: t,
1031
- isZoom: Ao(t, ko.value)
1032
- }), t !== G.value.end && (G.value.end = t, Oa.value.end = t, ja());
1062
+ isZoom: Mo(t, jo.value)
1063
+ }), t !== K.value.end && (K.value.end = t, ka.value.end = t, Ma());
1033
1064
  }
1034
- async function Fo() {
1035
- await jo(), li("zoomReset");
1065
+ async function Lo() {
1066
+ await No(), li("zoomReset");
1036
1067
  }
1037
- function Io(e) {
1068
+ function Ro(e) {
1038
1069
  return ![
1039
1070
  null,
1040
1071
  void 0,
@@ -1043,47 +1074,47 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
1043
1074
  -Infinity
1044
1075
  ].includes(e);
1045
1076
  }
1046
- let Lo = b(() => K.value.max + qa.value);
1047
- function Ro(e) {
1048
- return e / (Io(Lo.value) ? Lo.value : 1);
1049
- }
1050
- let zo = b(() => isNaN(Ro(qa.value)) ? q.value?.bottom : q.value?.bottom - q.value.height * Ro(qa.value));
1077
+ let zo = x(() => q.value.max + Ja.value);
1051
1078
  function Bo(e) {
1052
- let t = K.value.min, n = K.value.max - t;
1053
- return !Number.isFinite(e) || !Number.isFinite(n) || n === 0 ? q.value?.bottom : q.value?.bottom - q.value.height * ((e - t) / n);
1079
+ return e / (Ro(zo.value) ? zo.value : 1);
1054
1080
  }
1055
- let Vo = b(() => K.value.min <= 0 && K.value.max >= 0 ? Bo(0) : K.value.min > 0 ? Bo(K.value.min) : Bo(K.value.max));
1081
+ let Vo = x(() => isNaN(Bo(Ja.value)) ? Y.value?.bottom : Y.value?.bottom - Y.value.height * Bo(Ja.value));
1056
1082
  function Ho(e) {
1057
- let t = ![null, void 0].includes(H.value.chart.grid.labels.yAxis.scaleMin) && H.value.chart.grid.labels.yAxis.scaleMin > 0 && Ga.value >= 0 ? q.value?.bottom : zo.value;
1058
- return e.value >= 0 ? v(t - e.y <= 0 ? 1e-5 : t - e.y) : v(e.y - zo.value <= 0 ? 1e-5 : e.y - zo.value);
1083
+ let t = q.value.min, n = q.value.max - t;
1084
+ return !Number.isFinite(e) || !Number.isFinite(n) || n === 0 ? Y.value?.bottom : Y.value?.bottom - Y.value.height * ((e - t) / n);
1059
1085
  }
1060
- function Uo(e) {
1061
- return e.value >= 0 ? v(e.zeroPosition - e.y <= 0 ? 1e-5 : e.zeroPosition - e.y) : v(e.y - e.zeroPosition <= 0 ? 1e-5 : e.zeroPosition - e.y);
1086
+ let Uo = x(() => q.value.min <= 0 && q.value.max >= 0 ? Ho(0) : q.value.min > 0 ? Ho(q.value.min) : Ho(q.value.max));
1087
+ function Wo(e) {
1088
+ let t = ![null, void 0].includes(H.value.chart.grid.labels.yAxis.scaleMin) && H.value.chart.grid.labels.yAxis.scaleMin > 0 && Ka.value >= 0 ? Y.value?.bottom : Vo.value;
1089
+ return e.value >= 0 ? y(t - e.y <= 0 ? 1e-5 : t - e.y) : y(e.y - Vo.value <= 0 ? 1e-5 : e.y - Vo.value);
1062
1090
  }
1063
- let X = b(() => {
1064
- let e = Math.max(1, Y.value), t = Math.max(1, q.value.width);
1091
+ function Go(e) {
1092
+ return e.value >= 0 ? y(e.zeroPosition - e.y <= 0 ? 1e-5 : e.zeroPosition - e.y) : y(e.y - e.zeroPosition <= 0 ? 1e-5 : e.zeroPosition - e.y);
1093
+ }
1094
+ let Ko = x(() => {
1095
+ let e = Math.max(1, Z.value);
1065
1096
  return {
1066
- bar: da(t, e * Math.max(1, Ja.value.filter((e) => e.type === "bar" && !I.value.includes(e.id)).length), 1),
1067
- plot: da(t, e, 1),
1068
- line: da(t, e, 1)
1097
+ bar: da(Math.max(1, Y.value.width), e * Math.max(1, Ya.value.filter((e) => e.type === "bar" && !I.value.includes(e.id)).length), 1),
1098
+ plot: ys.value,
1099
+ line: ys.value
1069
1100
  };
1070
1101
  });
1071
- function Wo() {
1072
- return U.value.useIndividualScale && U.value.isStacked ? X.value.line - q.value.width / Y.value * .1 : X.value.bar;
1102
+ function qo() {
1103
+ return U.value.useIndividualScale && U.value.isStacked ? Ko.value.line - Y.value.width / Z.value * .1 : Ko.value.bar;
1073
1104
  }
1074
- function Go(e) {
1075
- return U.value.useIndividualScale && U.value.isStacked ? e.x + q.value.width / Y.value * .05 : e.x + X.value.bar / 2;
1105
+ function Jo(e) {
1106
+ return U.value.useIndividualScale && U.value.isStacked ? e.x + Y.value.width / Z.value * .05 : e.x + Ko.value.bar / 2;
1076
1107
  }
1077
- function Ko(e) {
1108
+ function Yo(e) {
1078
1109
  return e.value >= 0 ? e.y : [
1079
1110
  null,
1080
1111
  void 0,
1081
1112
  NaN,
1082
1113
  Infinity,
1083
1114
  -Infinity
1084
- ].includes(zo.value) ? q?.bottom.value : zo.value;
1115
+ ].includes(Vo.value) ? Y?.bottom.value : Vo.value;
1085
1116
  }
1086
- function qo(e) {
1117
+ function Xo(e) {
1087
1118
  return e.value >= 0 ? e.y : [
1088
1119
  null,
1089
1120
  void 0,
@@ -1092,8 +1123,8 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
1092
1123
  -Infinity
1093
1124
  ].includes(e.zeroPosition) ? 0 : e.zeroPosition;
1094
1125
  }
1095
- let Jo = O(null);
1096
- function Yo(e) {
1126
+ let Zo = O(null);
1127
+ function Qo(e) {
1097
1128
  let t = z.value;
1098
1129
  if (!t) return null;
1099
1130
  if (t.createSVGPoint && t.getScreenCTM) {
@@ -1121,43 +1152,43 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
1121
1152
  ok: !0
1122
1153
  };
1123
1154
  }
1124
- let Xo = 0;
1125
- function Zo(e) {
1126
- $i.value = null, !Fi.value && (Xo && cancelAnimationFrame(Xo), Xo = requestAnimationFrame(() => {
1127
- Xo = 0;
1128
- let t = Yo(e);
1155
+ let $o = 0;
1156
+ function es(e) {
1157
+ $i.value = null, !Fi.value && ($o && cancelAnimationFrame($o), $o = requestAnimationFrame(() => {
1158
+ $o = 0;
1159
+ let t = Qo(e);
1129
1160
  if (!t || !z.value) {
1130
- Qo();
1161
+ ts();
1131
1162
  return;
1132
1163
  }
1133
- let { left: n, right: r, top: i, bottom: a, width: o } = q.value;
1164
+ let { left: n, right: r, top: i, bottom: a, width: o } = Y.value;
1134
1165
  if (t.x < n || t.x > r || t.y < i || t.y > a) {
1135
- Qo();
1166
+ ts();
1136
1167
  return;
1137
1168
  }
1138
- let s = t.x - n, c = o / Y.value, l = Math.floor(s / c);
1139
- l >= 0 && l < Y.value ? Jo.value !== l && (Jo.value = l, Hs(!0, l)) : Qo();
1169
+ let s = Ts(t.x);
1170
+ s == null ? ts() : Zo.value !== s && (Zo.value = s, ec(!0, s));
1140
1171
  }));
1141
1172
  }
1142
- function Qo() {
1143
- Xo &&= (cancelAnimationFrame(Xo), 0), Jo.value = null, Hs(!1, null);
1173
+ function ts() {
1174
+ $o &&= (cancelAnimationFrame($o), 0), Zo.value = null, ec(!1, null);
1144
1175
  }
1145
- function $o(e) {
1146
- let t = Yo(e);
1176
+ function ns(e) {
1177
+ let t = Qo(e);
1147
1178
  if (t && z.value) {
1148
- let { left: e, right: n, top: r, bottom: i, width: a } = q.value;
1179
+ let { left: e, right: n, top: r, bottom: i, width: a } = Y.value;
1149
1180
  if (t.x >= e && t.x <= n && t.y >= r && t.y <= i) {
1150
- let n = a / Math.max(1, Y.value), r = Math.floor((t.x - e) / n);
1151
- if (r >= 0 && r < Y.value) {
1152
- es(r);
1181
+ let e = Ts(t.x);
1182
+ if (e != null) {
1183
+ rs(e);
1153
1184
  return;
1154
1185
  }
1155
1186
  }
1156
1187
  }
1157
- Jo.value != null && es(Jo.value);
1188
+ Zo.value != null && rs(Zo.value);
1158
1189
  }
1159
- function es(e) {
1160
- let t = Xa.value.map((t) => ({
1190
+ function rs(e) {
1191
+ let t = Za.value.map((t) => ({
1161
1192
  name: t.name,
1162
1193
  value: [
1163
1194
  null,
@@ -1173,20 +1204,20 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
1173
1204
  indexLabel: H.value.chart.grid.labels.xAxisLabels.values[e]
1174
1205
  }), H.value.events.datapointClick && H.value.events.datapointClick({
1175
1206
  datapoint: t,
1176
- seriesIndex: e + G.value.start
1207
+ seriesIndex: e + K.value.start
1177
1208
  });
1178
1209
  }
1179
- function ts() {
1180
- return Ya.value.map((e) => ({
1210
+ function is() {
1211
+ return Xa.value.map((e) => ({
1181
1212
  values: e.absoluteValues,
1182
1213
  color: e.color,
1183
1214
  name: e.name,
1184
1215
  type: e.type
1185
1216
  }));
1186
1217
  }
1187
- async function ns({ scale: e = 2 } = {}) {
1218
+ async function as({ scale: e = 2 } = {}) {
1188
1219
  if (!hi.value) return;
1189
- let { width: t, height: n } = hi.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Ve({
1220
+ let { width: t, height: n } = hi.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Be({
1190
1221
  domElement: hi.value,
1191
1222
  base64: !0,
1192
1223
  img: !0,
@@ -1201,41 +1232,41 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
1201
1232
  aspectRatio: r
1202
1233
  };
1203
1234
  }
1204
- function rs() {
1205
- I.value.length ? I.value = [] : Ya.value.forEach((e) => {
1235
+ function os() {
1236
+ I.value.length ? I.value = [] : Xa.value.forEach((e) => {
1206
1237
  I.value.push(e.id);
1207
1238
  });
1208
1239
  }
1209
- function is(e, t) {
1210
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), as(t));
1240
+ function ss(e, t) {
1241
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), cs(t));
1211
1242
  }
1212
- function as(e) {
1243
+ function cs(e) {
1213
1244
  if (I.value.includes(e.id)) I.value = I.value.filter((t) => t !== e.id);
1214
1245
  else {
1215
- if (I.value.length + 1 === Ja.value.length) return;
1246
+ if (I.value.length + 1 === Ya.value.length) return;
1216
1247
  I.value.push(e.id);
1217
1248
  }
1218
- li("selectLegend", Xa.value.map((e) => ({
1249
+ li("selectLegend", Za.value.map((e) => ({
1219
1250
  name: e.name,
1220
1251
  values: e.absoluteValues,
1221
1252
  color: e.color,
1222
1253
  type: e.type
1223
1254
  }))), Ui.value += 1;
1224
1255
  }
1225
- function os(e) {
1226
- return Ya.value.length ? Ya.value.find((t) => t.name === e) || (H.value.debug && console.warn(`VueUiXy - Series name not found "${e}"`), null) : (H.value.debug && console.warn("VueUiXy - There are no series to show."), null);
1256
+ function ls(e) {
1257
+ return Xa.value.length ? Xa.value.find((t) => t.name === e) || (H.value.debug && console.warn(`VueUiXy - Series name not found "${e}"`), null) : (H.value.debug && console.warn("VueUiXy - There are no series to show."), null);
1227
1258
  }
1228
- function ss(e) {
1229
- let t = os(e);
1230
- t !== null && I.value.includes(t.id) && as({ id: t.id });
1259
+ function us(e) {
1260
+ let t = ls(e);
1261
+ t !== null && I.value.includes(t.id) && cs({ id: t.id });
1231
1262
  }
1232
- function cs(e) {
1233
- let t = os(e);
1234
- t !== null && (I.value.includes(t.id) || as({ id: t.id }));
1263
+ function ds(e) {
1264
+ let t = ls(e);
1265
+ t !== null && (I.value.includes(t.id) || cs({ id: t.id }));
1235
1266
  }
1236
- let ls = b(() => `${H.value.chart.title.text || "Chart visualization"}. ${H.value.chart.title.subtitle.text || ""}`), us = b(() => ({ linePlot: Y.value > H.value.line.dot.hideAboveMaxSerieLength })), ds = b(() => H.value.chart.userOptions.show && (!H.value.chart.title.show || !H.value.chart.title.text)), fs = b(() => {
1267
+ let fs = x(() => `${H.value.chart.title.text || "Chart visualization"}. ${H.value.chart.title.subtitle.text || ""}`), ps = x(() => ({ linePlot: Z.value > H.value.line.dot.hideAboveMaxSerieLength })), ms = x(() => H.value.chart.userOptions.show && (!H.value.chart.title.show || !H.value.chart.title.text)), hs = x(() => {
1237
1268
  if (Array.isArray(H.value.chart.highlightArea)) return H.value.chart.highlightArea.map((e) => {
1238
- let t = Math.min(e.to, W.value - 1);
1269
+ let t = Math.min(e.to, G.value - 1);
1239
1270
  return {
1240
1271
  ...e,
1241
1272
  span: e.from === t ? 1 : t < e.from ? 0 : t - e.from + 1
@@ -1243,26 +1274,26 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
1243
1274
  });
1244
1275
  let e = {
1245
1276
  ...H.value.chart.highlightArea,
1246
- to: Math.min(H.value.chart.highlightArea.to, W.value - 1)
1277
+ to: Math.min(H.value.chart.highlightArea.to, G.value - 1)
1247
1278
  };
1248
1279
  return [{
1249
1280
  ...e,
1250
1281
  span: e.from === e.to ? 1 : e.to < e.from ? 0 : e.to - e.from + 1
1251
1282
  }];
1252
- }), ps = b(() => Ai.value ? Ca.value.map((e, t) => ({
1283
+ }), gs = x(() => Ai.value ? W.value.map((e, t) => ({
1253
1284
  ...e,
1254
- series: Da(e.series),
1285
+ series: Oa(e.series),
1255
1286
  id: `uniqueId_${t}`,
1256
- color: Ee(e.color ? e.color : Ra.value[t] ? Ra.value[t] : se[t])
1257
- })) : Ca.value), ms = b(() => Xa.value.map((e) => {
1287
+ color: Te(e.color ? e.color : za.value[t] ? za.value[t] : h[t])
1288
+ })) : W.value), _s = x(() => Za.value.map((e) => {
1258
1289
  let t = e.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
1259
1290
  return {
1260
1291
  id: e.id,
1261
1292
  name: e.name,
1262
1293
  color: e.color,
1263
- values: wo(Y.value, t)
1294
+ values: Eo(Z.value, t)
1264
1295
  };
1265
- })), hs = b(() => ({
1296
+ })), vs = x(() => ({
1266
1297
  responsiveBreakpoint: H.value.table.responsiveBreakpoint,
1267
1298
  roundingValues: H.value.table.rounding,
1268
1299
  showAverage: !1,
@@ -1271,7 +1302,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
1271
1302
  fontFamily: H.value.chart.fontFamily,
1272
1303
  prefix: H.value.chart.labels.prefix,
1273
1304
  suffix: H.value.chart.labels.suffix,
1274
- colNames: J.value.map((e, t) => H.value.table.useDefaultTimeFormat ? e.text : Is.value(t + G.value.start, H.value.table.timeFormat)),
1305
+ colNames: X.value.map((e, t) => H.value.table.useDefaultTimeFormat ? e.text : Js.value(t + K.value.start, H.value.table.timeFormat)),
1275
1306
  thead: {
1276
1307
  backgroundColor: H.value.table.th.backgroundColor,
1277
1308
  color: H.value.table.th.color,
@@ -1284,8 +1315,42 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
1284
1315
  },
1285
1316
  userOptions: { show: !1 },
1286
1317
  sparkline: { animation: { show: !1 } }
1287
- })), Z = b(() => H.value.chart.grid.position === "middle" ? 0 : q.value.width / Y.value / 2), gs = b(() => h(Ya.value.filter((e) => !I.value.includes(e.id))));
1288
- function _s(e, t) {
1318
+ })), ys = x(() => {
1319
+ let e = Math.max(0, Y.value?.width || 0);
1320
+ return H.value.chart.grid.position === "middle" ? da(e, Math.max(1, Z.value), 1) : da(e, Math.max(1, Z.value - 1), 0);
1321
+ }), bs = x(() => H.value.chart.grid.position === "middle" ? ys.value : Z.value <= 1 ? Math.max(0, Y.value?.width || 0) : ys.value);
1322
+ function xs(e) {
1323
+ let t = Y.value?.left || 0;
1324
+ return H.value.chart.grid.position === "middle" ? t + ys.value / 2 + ys.value * e : t + ys.value * e;
1325
+ }
1326
+ function Ss(e) {
1327
+ let t = Y.value?.left || 0;
1328
+ return H.value.chart.grid.position === "middle" ? t + ys.value * e : Z.value <= 1 ? t : t + ys.value * e - ys.value / 2;
1329
+ }
1330
+ function Cs(e) {
1331
+ return Math.max(Y.value?.left || 0, Ss(e));
1332
+ }
1333
+ function ws(e) {
1334
+ let t = Y.value?.left || 0, n = Y.value?.right || 0, r = Ss(e), i = r + bs.value;
1335
+ return Math.max(1e-5, Math.min(n, i) - Math.max(t, r));
1336
+ }
1337
+ function Ts(e) {
1338
+ let t = Y.value?.left || 0, n = Y.value?.right || 0;
1339
+ for (let r = 0; r < Z.value; r += 1) {
1340
+ let i = Math.max(t, Ss(r)), a = Math.min(n, Ss(r) + bs.value);
1341
+ if (e >= i && e <= a) return r;
1342
+ }
1343
+ return null;
1344
+ }
1345
+ function Es(e) {
1346
+ let t = Y.value?.left || 0, n = Y.value?.right || 0, r = Ss(e), i = r + bs.value;
1347
+ return Math.max(1e-5, Math.min(n, i) - Math.max(t, r));
1348
+ }
1349
+ function Ds(e) {
1350
+ return Math.max(1e-5, bs.value * e);
1351
+ }
1352
+ let Os = x(() => g(Xa.value.filter((e) => !I.value.includes(e.id))));
1353
+ function ks(e, t) {
1289
1354
  let n = Object.create(null);
1290
1355
  for (let r = 0; r < e.length; r += 1) {
1291
1356
  let i = e[r], a = String(t(i));
@@ -1293,8 +1358,8 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
1293
1358
  }
1294
1359
  return n;
1295
1360
  }
1296
- let Q = b(() => {
1297
- let e = _s(gs.value, (e) => e.scaleLabel), t = {};
1361
+ let Q = x(() => {
1362
+ let e = ks(Os.value, (e) => e.scaleLabel), t = {};
1298
1363
  for (let [n, r] of Object.entries(e)) {
1299
1364
  let e = r.flatMap((e) => e.absoluteValues);
1300
1365
  t[n] = {
@@ -1304,19 +1369,19 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
1304
1369
  };
1305
1370
  }
1306
1371
  return t;
1307
- }), vs = b(() => {
1308
- let e = Ja.value.filter((e) => e.type === "bar").filter((e) => !I.value.includes(e.id)).length;
1309
- return q.value.width / Y.value / e - ys.value * e;
1310
- }), ys = b(() => X.value.line * H.value.bar.periodGap), bs = b(() => Math.max(1e-5, Wo() - (U.value.useIndividualScale && U.value.isStacked ? 0 : ys.value))), xs = b(() => bs.value * Math.min(Math.abs(H.value.bar.innerGap), .95)), Ss = b(() => {
1372
+ }), As = x(() => {
1373
+ let e = Ya.value.filter((e) => e.type === "bar").filter((e) => !I.value.includes(e.id)).length;
1374
+ return Y.value.width / Z.value / e - js.value * e;
1375
+ }), js = x(() => Ko.value.line * H.value.bar.periodGap), Ms = x(() => Math.max(1e-5, qo() - (U.value.useIndividualScale && U.value.isStacked ? 0 : js.value))), Ns = x(() => Ms.value * Math.min(Math.abs(H.value.bar.innerGap), .95)), Ps = x(() => {
1311
1376
  if (!H.value.chart.zoom.minimap.show) return [];
1312
- let e = ps.value.filter((e) => !I.value.includes(e.id)), t = Math.max(...e.map((e) => e.series.length)), n = [];
1377
+ let e = gs.value.filter((e) => !I.value.includes(e.id)), t = Math.max(...e.map((e) => e.series.length)), n = [];
1313
1378
  for (let r = 0; r < t; r += 1) n.push(e.map((e) => e.series[r] || 0).reduce((e, t) => (e || 0) + (t || 0), 0));
1314
1379
  let r = Math.min(...n);
1315
1380
  return n.map((e) => e + (r < 0 ? Math.abs(r) : 0));
1316
- }), Cs = b(() => H.value.chart.zoom.minimap.show ? ps.value.map((e) => ({
1381
+ }), Fs = x(() => H.value.chart.zoom.minimap.show ? gs.value.map((e) => ({
1317
1382
  ...e,
1318
1383
  isVisible: !I.value.includes(e.id)
1319
- })) : []), ws = b(() => Xa.value.map((e) => ({
1384
+ })) : []), Is = x(() => Za.value.map((e) => ({
1320
1385
  slotAbsoluteIndex: e.slotAbsoluteIndex,
1321
1386
  shape: e.shape || e.type === "bar" ? "square" : "circle",
1322
1387
  name: e.name,
@@ -1326,19 +1391,19 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
1326
1391
  comments: e.comments || [],
1327
1392
  prefix: e.prefix || H.value.chart.labels.prefix,
1328
1393
  suffix: e.suffix || H.value.chart.labels.suffix
1329
- }))), Ts = b(() => K.value.ticks.map((e) => ({
1330
- y: e >= 0 ? zo.value - q.value.height * Ro(e) : zo.value + q.value.height * Ro(Math.abs(e)),
1394
+ }))), Ls = x(() => q.value.ticks.map((e) => ({
1395
+ y: e >= 0 ? Vo.value - Y.value.height * Bo(e) : Vo.value + Y.value.height * Bo(Math.abs(e)),
1331
1396
  value: e,
1332
1397
  prefix: H.value.chart.labels.prefix,
1333
1398
  suffix: H.value.chart.labels.suffix
1334
- }))), Es = b(() => {
1399
+ }))), Rs = x(() => {
1335
1400
  let e = H.value.chart.annotations;
1336
1401
  if (!e || !Array.isArray(e) || e.every((e) => !e.show)) return [];
1337
1402
  let t = e.filter((e) => e.show && (e.yAxis.yTop != null || e.yAxis.yBottom != null));
1338
1403
  if (!t.length) return [];
1339
- let { left: n, right: r } = q.value, i = zo.value, a = q.value.height, s = K.value.min, c = K.value.max - s, l = (e) => i - (e - 0) / c * a;
1404
+ let { left: n, right: r } = Y.value, i = Vo.value, a = Y.value.height, s = q.value.min, c = q.value.max - s, l = (e) => i - (e - 0) / c * a;
1340
1405
  return t.map((e) => {
1341
- let { yAxis: { yTop: t, yBottom: i, label: a } } = e, s = t != null && i != null && t !== i, c = t == null ? null : l(t), u = i == null ? null : l(i), ee = so(a.fontSize);
1406
+ let { yAxis: { yTop: t, yBottom: i, label: a } } = e, s = t != null && i != null && t !== i, c = t == null ? null : l(t), u = i == null ? null : l(i), ee = lo(a.fontSize);
1342
1407
  ee.font = `${a.fontSize}px sans-serif`;
1343
1408
  let te = ee.measureText(a.text).width, d = a.fontSize, f = (a.position === "start" ? n + a.padding?.left : r - a.padding?.right) + a.offsetX, p = (c != null && u != null ? Math.min(c, u) : c ?? u) - a.fontSize / 3 + a.offsetY - a.padding?.top, m;
1344
1409
  m = a.textAnchor === "middle" ? f - te / 2 - a.padding?.left : a.textAnchor === "end" ? f - te - a.padding?.right : f - a.padding?.left;
@@ -1375,12 +1440,12 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
1375
1440
  };
1376
1441
  });
1377
1442
  });
1378
- function Ds(e, t) {
1443
+ function zs(e, t) {
1379
1444
  let n = e[t - 1], r = e[t + 1], i = !!n && !!r && n.value == null && r.value == null || !n && !!r && r.value == null || !!n && !r && n.value == null;
1380
- return Io(e[t].value) && i && H.value.line.cutNullValues;
1445
+ return Ro(e[t].value) && i && H.value.line.cutNullValues;
1381
1446
  }
1382
- function Os({ datapoint: e, totalSeries: t, gap: n, usableHeight: r, autoScaleValueMin: i, autoScaleValueMax: a, individualExtremes: o, forceExactScale: s = !1 }) {
1383
- let c = e.scaleSteps || H.value.chart.grid.labels.yAxis.commonScaleSteps, l = 1.0000001, u = s || !H.value.chart.grid.labels.yAxis.useNiceScale ? de : fe, ee = o.max === o.min ? o.max * l : o.max, te = a === i ? a * l : a, d = u(o.min, ee, c), f = u(i, te, c), p = d.min >= 0 ? 0 : Math.abs(d.min), m = d.max + Math.abs(p), ne = f.max + 0, re = e.stackIndex, ie = t - 1 - re, ae = U.value.isStacked ? 1 - e.cumulatedStackRatio : 0, oe = U.value.isStacked ? r * ae + n * ie : 0, se = U.value.isStacked ? r * e.stackRatio : q.value.height;
1447
+ function Bs({ datapoint: e, totalSeries: t, gap: n, usableHeight: r, autoScaleValueMin: i, autoScaleValueMax: a, individualExtremes: o, forceExactScale: s = !1 }) {
1448
+ let c = e.scaleSteps || H.value.chart.grid.labels.yAxis.commonScaleSteps, l = 1.0000001, u = s || !H.value.chart.grid.labels.yAxis.useNiceScale ? ue : de, ee = o.max === o.min ? o.max * l : o.max, te = a === i ? a * l : a, d = u(o.min, ee, c), f = u(i, te, c), p = d.min >= 0 ? 0 : Math.abs(d.min), m = d.max + Math.abs(p), ne = f.max + 0, re = e.stackIndex, ie = t - 1 - re, ae = U.value.isStacked ? 1 - e.cumulatedStackRatio : 0, oe = U.value.isStacked ? r * ae + n * ie : 0, h = U.value.isStacked ? r * e.stackRatio : Y.value.height;
1384
1449
  return {
1385
1450
  scaleSteps: c,
1386
1451
  individualScale: d,
@@ -1390,19 +1455,19 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
1390
1455
  individualMax: m,
1391
1456
  autoScaleMax: ne,
1392
1457
  yOffset: oe,
1393
- individualHeight: se,
1394
- zeroPosition: q.value?.bottom - oe - se * p / m,
1395
- autoScaleZeroPosition: q.value?.bottom - oe - se * 0 / ne
1458
+ individualHeight: h,
1459
+ zeroPosition: Y.value?.bottom - oe - h * p / m,
1460
+ autoScaleZeroPosition: Y.value?.bottom - oe - h * 0 / ne
1396
1461
  };
1397
1462
  }
1398
- let ks = b(() => {
1399
- let e = gs.value.filter((e) => [
1463
+ let Vs = x(() => {
1464
+ let e = Os.value.filter((e) => [
1400
1465
  "bar",
1401
1466
  "line",
1402
1467
  "plot"
1403
- ].includes(e.type)), t = e.length, n = H.value.chart.grid.labels.yAxis.gap, r = U.value.isStacked ? n * (t - 1) : 0, i = q.value.height - r;
1468
+ ].includes(e.type)), t = e.length, n = H.value.chart.grid.labels.yAxis.gap, r = U.value.isStacked ? n * (t - 1) : 0, i = Y.value.height - r;
1404
1469
  return e.filter((e) => e.type === "bar").map((e, r) => {
1405
- Co(e);
1470
+ To(e);
1406
1471
  let a = Q.value[e.scaleLabel].min, o = Q.value[e.scaleLabel].max, s = {
1407
1472
  ratios: e.absoluteValues.filter((e) => ![null, void 0].includes(e)).map((e) => (e - a) / (o - a)),
1408
1473
  valueMin: a,
@@ -1410,7 +1475,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
1410
1475
  }, c = {
1411
1476
  max: e.scaleMax || Math.max(...e.absoluteValues) || 1,
1412
1477
  min: e.scaleMin || Math.min(...e.absoluteValues.filter((e) => ![void 0, null].includes(e))) > 0 ? 0 : Math.min(...e.absoluteValues.filter((e) => ![null, void 0].includes(e)))
1413
- }, { individualScale: l, autoScaleSteps: u, individualZero: ee, individualMax: te, autoScaleMax: d, yOffset: f, individualHeight: p, zeroPosition: m, autoScaleZeroPosition: ne } = Os({
1478
+ }, { individualScale: l, autoScaleSteps: u, individualZero: ee, individualMax: te, autoScaleMax: d, yOffset: f, individualHeight: p, zeroPosition: m, autoScaleZeroPosition: ne } = Bs({
1414
1479
  datapoint: e,
1415
1480
  totalSeries: t,
1416
1481
  gap: n,
@@ -1418,37 +1483,37 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
1418
1483
  autoScaleValueMin: s.valueMin,
1419
1484
  autoScaleValueMax: s.valueMax,
1420
1485
  individualExtremes: c
1421
- }), re = Ya.value.filter((e) => e.type === "bar").filter((e) => !I.value.includes(e.id)).length, ie = e.series.map((t, n) => {
1422
- let i = U.value.useIndividualScale ? (e.absoluteValues[n] + ee) / te : Ro(t), a = U.value.useIndividualScale && U.value.isStacked ? q.value?.left + q.value.width / Y.value * n : q.value?.left + X.value.bar * r + X.value.bar * n * re - vs.value / 2 - r * ys.value;
1486
+ }), re = Xa.value.filter((e) => e.type === "bar").filter((e) => !I.value.includes(e.id)).length, ie = e.series.map((t, n) => {
1487
+ let i = U.value.useIndividualScale ? (e.absoluteValues[n] + ee) / te : Bo(t), a = U.value.useIndividualScale && U.value.isStacked ? Y.value?.left + Y.value.width / Z.value * n : Y.value?.left + Ko.value.bar * r + Ko.value.bar * n * re - As.value / 2 - r * js.value;
1423
1488
  return {
1424
- yOffset: v(f),
1425
- individualHeight: v(p),
1426
- x: v(a),
1427
- y: q.value?.bottom - f - p * i,
1489
+ yOffset: y(f),
1490
+ individualHeight: y(p),
1491
+ x: y(a),
1492
+ y: Y.value?.bottom - f - p * i,
1428
1493
  value: e.absoluteValues[n],
1429
- zeroPosition: v(m),
1430
- individualMax: v(te),
1431
- comment: e.comments && e.comments.slice(G.value.start, G.value.end)[n] || ""
1494
+ zeroPosition: y(m),
1495
+ individualMax: y(te),
1496
+ comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
1432
1497
  };
1433
1498
  }), ae = e.absoluteValues.map((e) => u.min >= 0 ? (e - Math.abs(u.min)) / (u.max - Math.abs(u.min)) : (e + Math.abs(u.min)) / (u.max + Math.abs(u.min))), oe = e.series.map((t, n) => {
1434
- let i = U.value.useIndividualScale && U.value.isStacked ? q.value?.left + q.value.width / Y.value * n : q.value?.left - X.value.bar / 2 + X.value.bar * r + X.value.bar * n * Ya.value.filter((e) => e.type === "bar").filter((e) => !I.value.includes(e.id)).length;
1499
+ let i = U.value.useIndividualScale && U.value.isStacked ? Y.value?.left + Y.value.width / Z.value * n : Y.value?.left - Ko.value.bar / 2 + Ko.value.bar * r + Ko.value.bar * n * Xa.value.filter((e) => e.type === "bar").filter((e) => !I.value.includes(e.id)).length;
1435
1500
  return {
1436
- yOffset: v(f),
1437
- individualHeight: v(p),
1438
- x: v(i),
1439
- y: v(q.value?.bottom - v(f) - (v(p) * ae[n] || 0)),
1501
+ yOffset: y(f),
1502
+ individualHeight: y(p),
1503
+ x: y(i),
1504
+ y: y(Y.value?.bottom - y(f) - (y(p) * ae[n] || 0)),
1440
1505
  value: e.absoluteValues[n],
1441
- zeroPosition: v(m),
1442
- individualMax: v(te),
1443
- comment: e.comments && e.comments.slice(G.value.start, G.value.end)[n] || ""
1506
+ zeroPosition: y(m),
1507
+ individualMax: y(te),
1508
+ comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
1444
1509
  };
1445
- }), se = l.ticks.map((t) => ({
1510
+ }), h = l.ticks.map((t) => ({
1446
1511
  y: t >= 0 ? m - t / te * p : m + p * Math.abs(t) / te,
1447
1512
  value: t,
1448
1513
  prefix: e.prefix || H.value.chart.labels.prefix,
1449
1514
  suffix: e.suffix || H.value.chart.labels.suffix,
1450
1515
  datapoint: e
1451
- })), ce = u.ticks.map((t) => {
1516
+ })), se = u.ticks.map((t) => {
1452
1517
  let n = (t - u.min) / (u.max - u.min);
1453
1518
  return {
1454
1519
  y: t >= 0 ? ne - p * n : ne + p * n,
@@ -1458,12 +1523,12 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
1458
1523
  datapoint: e
1459
1524
  };
1460
1525
  });
1461
- return Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = H.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ? ce : se, Q.value[e.scaleLabel].zeroPosition = e.autoScaling ? ne : m, Q.value[e.scaleLabel].individualMax = e.autoScaling ? d : te, Q.value[e.scaleLabel].scaleLabel = e.scaleLabel, Q.value[e.scaleLabel].id = e.id, Q.value[e.scaleLabel].yOffset = f, Q.value[e.scaleLabel].individualHeight = p, Q.value[e.scaleLabel].autoScaleYLabels = ce, Q.value[e.scaleLabel].unique = gs.value.filter((t) => t.scaleLabel === e.scaleLabel).length === 1, {
1526
+ return Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = H.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ? se : h, Q.value[e.scaleLabel].zeroPosition = e.autoScaling ? ne : m, Q.value[e.scaleLabel].individualMax = e.autoScaling ? d : te, Q.value[e.scaleLabel].scaleLabel = e.scaleLabel, Q.value[e.scaleLabel].id = e.id, Q.value[e.scaleLabel].yOffset = f, Q.value[e.scaleLabel].individualHeight = p, Q.value[e.scaleLabel].autoScaleYLabels = se, Q.value[e.scaleLabel].unique = Os.value.filter((t) => t.scaleLabel === e.scaleLabel).length === 1, {
1462
1527
  ...e,
1463
1528
  yOffset: f,
1464
- autoScaleYLabels: ce,
1529
+ autoScaleYLabels: se,
1465
1530
  individualHeight: p,
1466
- scaleYLabels: e.autoScaling ? ce : se,
1531
+ scaleYLabels: e.autoScaling ? se : h,
1467
1532
  individualScale: e.autoScaling ? u : l,
1468
1533
  individualMax: e.autoScaling ? d : te,
1469
1534
  zeroPosition: e.autoScaling ? ne : m,
@@ -1471,14 +1536,14 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
1471
1536
  groupId: Q.value[e.scaleLabel].groupId
1472
1537
  };
1473
1538
  });
1474
- }), $ = b(() => {
1475
- let e = gs.value.filter((e) => [
1539
+ }), $ = x(() => {
1540
+ let e = Os.value.filter((e) => [
1476
1541
  "bar",
1477
1542
  "line",
1478
1543
  "plot"
1479
- ].includes(e.type)), t = e.length, n = H.value.chart.grid.labels.yAxis.gap, r = U.value.isStacked ? n * (t - 1) : 0, a = q.value.height - r;
1544
+ ].includes(e.type)), t = e.length, n = H.value.chart.grid.labels.yAxis.gap, r = U.value.isStacked ? n * (t - 1) : 0, a = Y.value.height - r;
1480
1545
  return e.filter((e) => e.type === "line").map((e, r) => {
1481
- Co(e);
1546
+ To(e);
1482
1547
  let o = Q.value[e.scaleLabel].min, c = Q.value[e.scaleLabel].max, l = {
1483
1548
  ratios: e.absoluteValues.filter((e) => ![null, void 0].includes(e)).map((e) => (e - o) / (c - o)),
1484
1549
  valueMin: o,
@@ -1486,7 +1551,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
1486
1551
  }, ee = {
1487
1552
  max: e.scaleMax || Math.max(...e.absoluteValues) || 1,
1488
1553
  min: e.scaleMin || (Math.min(...e.absoluteValues) > 0 ? 0 : Math.min(...e.absoluteValues))
1489
- }, { individualScale: d, autoScaleSteps: p, individualZero: m, individualMax: re, autoScaleMax: ie, yOffset: ae, individualHeight: se, zeroPosition: ce, autoScaleZeroPosition: le } = Os({
1554
+ }, { individualScale: d, autoScaleSteps: p, individualZero: m, individualMax: re, autoScaleMax: ie, yOffset: ae, individualHeight: h, zeroPosition: se, autoScaleZeroPosition: ce } = Bs({
1490
1555
  datapoint: e,
1491
1556
  totalSeries: t,
1492
1557
  gap: n,
@@ -1494,76 +1559,76 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
1494
1559
  autoScaleValueMin: l.valueMin,
1495
1560
  autoScaleValueMax: l.valueMax,
1496
1561
  individualExtremes: ee
1497
- }), h = e.series.map((t, n) => {
1498
- let r = U.value.useIndividualScale ? (e.absoluteValues[n] + Math.abs(m)) / re : Ro(t);
1562
+ }), g = e.series.map((t, n) => {
1563
+ let r = U.value.useIndividualScale ? (e.absoluteValues[n] + Math.abs(m)) / re : Bo(t);
1499
1564
  return {
1500
- x: v(q.value?.left + X.value.line / 2 + X.value.line * n),
1501
- y: v(q.value?.bottom - ae - se * r),
1565
+ x: y(xs(n)),
1566
+ y: y(Y.value?.bottom - ae - h * r),
1502
1567
  value: e.absoluteValues[n],
1503
- comment: e.comments && e.comments.slice(G.value.start, G.value.end)[n] || ""
1568
+ comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
1504
1569
  };
1505
- }), ue = e.absoluteValues.map((e) => p.min >= 0 ? (e - Math.abs(p.min)) / (p.max - Math.abs(p.min)) : (e + Math.abs(p.min)) / (p.max + Math.abs(p.min))), g = e.series.map((t, n) => [void 0, null].includes(e.absoluteValues[n]) ? {
1506
- x: v(q.value?.left + X.value.line / 2 + X.value.line * n),
1507
- y: ce,
1570
+ }), le = e.absoluteValues.map((e) => p.min >= 0 ? (e - Math.abs(p.min)) / (p.max - Math.abs(p.min)) : (e + Math.abs(p.min)) / (p.max + Math.abs(p.min))), _ = e.series.map((t, n) => [void 0, null].includes(e.absoluteValues[n]) ? {
1571
+ x: y(xs(n)),
1572
+ y: se,
1508
1573
  value: e.absoluteValues[n],
1509
- comment: e.comments && e.comments.slice(G.value.start, G.value.end)[n] || ""
1574
+ comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
1510
1575
  } : {
1511
- x: v(q.value?.left + X.value.line / 2 + X.value.line * n),
1512
- y: v(q.value?.bottom - ae - (se * ue[n] || 0)),
1576
+ x: y(xs(n)),
1577
+ y: y(Y.value?.bottom - ae - (h * le[n] || 0)),
1513
1578
  value: e.absoluteValues[n],
1514
- comment: e.comments && e.comments.slice(G.value.start, G.value.end)[n] || ""
1515
- }), _ = e.dashIndices && Array.isArray(e.dashIndices) && e?.dashIndices?.length > 0, de = H.value.line.cutNullValues ? me(h) : ge(h.filter((e) => e.value !== null)), fe = H.value.line.cutNullValues ? me(g) : ge(g.filter((e) => e.value !== null)), pe = H.value.line.cutNullValues ? u(h) : s(h.filter((e) => e.value !== null)), he = H.value.line.cutNullValues ? u(g) : s(g.filter((e) => e.value !== null)), _e = i(H.value.line.cutNullValues ? h : h.filter((e) => e.value !== null)), ve = i(H.value.line.cutNullValues ? g : g.filter((e) => e.value !== null)), ye = _ ? ne(H.value.line.cutNullValues ? h : h.filter((e) => e.value !== null), e.dashIndices.map((e) => e - G.value.start)) : [], be = _ ? te(H.value.line.cutNullValues ? h : h.filter((e) => e.value !== null), e.dashIndices.map((e) => e - G.value.start)) : [], xe = d.ticks.map((t) => ({
1516
- y: t >= 0 ? ce - t / re * se : ce + se * Math.abs(t) / re,
1579
+ comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
1580
+ }), v = e.dashIndices && Array.isArray(e.dashIndices) && e?.dashIndices?.length > 0, ue = H.value.line.cutNullValues ? pe(g) : he(g.filter((e) => e.value !== null)), de = H.value.line.cutNullValues ? pe(_) : he(_.filter((e) => e.value !== null)), fe = H.value.line.cutNullValues ? u(g) : s(g.filter((e) => e.value !== null)), me = H.value.line.cutNullValues ? u(_) : s(_.filter((e) => e.value !== null)), ge = i(H.value.line.cutNullValues ? g : g.filter((e) => e.value !== null)), _e = i(H.value.line.cutNullValues ? _ : _.filter((e) => e.value !== null)), ve = v ? ne(H.value.line.cutNullValues ? g : g.filter((e) => e.value !== null), e.dashIndices.map((e) => e - K.value.start)) : [], ye = v ? te(H.value.line.cutNullValues ? g : g.filter((e) => e.value !== null), e.dashIndices.map((e) => e - K.value.start)) : [], be = d.ticks.map((t) => ({
1581
+ y: t >= 0 ? se - t / re * h : se + h * Math.abs(t) / re,
1517
1582
  value: t,
1518
1583
  prefix: e.prefix || H.value.chart.labels.prefix,
1519
1584
  suffix: e.suffix || H.value.chart.labels.suffix,
1520
1585
  datapoint: e
1521
- })), Se = p.ticks.map((t) => {
1586
+ })), xe = p.ticks.map((t) => {
1522
1587
  let n = (t - p.min) / (p.max - p.min);
1523
1588
  return {
1524
- y: t >= 0 ? le - se * n : le + se * n,
1589
+ y: t >= 0 ? ce - h * n : ce + h * n,
1525
1590
  value: t,
1526
1591
  prefix: e.prefix || H.value.chart.labels.prefix,
1527
1592
  suffix: e.suffix || H.value.chart.labels.suffix,
1528
1593
  datapoint: e
1529
1594
  };
1530
1595
  });
1531
- Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = H.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ? Se : xe, Q.value[e.scaleLabel].zeroPosition = e.autoScaling ? le : ce, Q.value[e.scaleLabel].individualMax = e.autoScaling ? ie : re, Q.value[e.scaleLabel].scaleLabel = e.scaleLabel, Q.value[e.scaleLabel].id = e.id, Q.value[e.scaleLabel].yOffset = ae, Q.value[e.scaleLabel].individualHeight = se, Q.value[e.scaleLabel].autoScaleYLabels = Se, Q.value[e.scaleLabel].unique = gs.value.filter((t) => t.scaleLabel === e.scaleLabel).length === 1;
1532
- let Ce = U.value.useIndividualScale ? e.autoScaling ? le : ce : Ba.value, Te = Math.max(Math.max(e.autoScaling ? le : xe.at(-1) ? xe.at(-1).y : 0, q.value?.top), Ce), De = e.autoScaling ? g : h, Oe = H.value.line.cutNullValues ? De : De.filter((e) => e.value !== null), ke = e.absoluteValues.filter((e) => ![
1596
+ Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = H.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ? xe : be, Q.value[e.scaleLabel].zeroPosition = e.autoScaling ? ce : se, Q.value[e.scaleLabel].individualMax = e.autoScaling ? ie : re, Q.value[e.scaleLabel].scaleLabel = e.scaleLabel, Q.value[e.scaleLabel].id = e.id, Q.value[e.scaleLabel].yOffset = ae, Q.value[e.scaleLabel].individualHeight = h, Q.value[e.scaleLabel].autoScaleYLabels = xe, Q.value[e.scaleLabel].unique = Os.value.filter((t) => t.scaleLabel === e.scaleLabel).length === 1;
1597
+ let Se = U.value.useIndividualScale ? e.autoScaling ? ce : se : Va.value, we = Math.max(Math.max(e.autoScaling ? ce : be.at(-1) ? be.at(-1).y : 0, Y.value?.top), Se), Ee = e.autoScaling ? _ : g, De = H.value.line.cutNullValues ? Ee : Ee.filter((e) => e.value !== null), Oe = e.absoluteValues.filter((e) => ![
1533
1598
  null,
1534
1599
  void 0,
1535
1600
  NaN
1536
- ].includes(e)), Ae = !!e.temperatureColors && new Set(ke).size <= 1;
1601
+ ].includes(e)), ke = !!e.temperatureColors && new Set(Oe).size <= 1;
1537
1602
  return {
1538
1603
  ...e,
1539
- isFlatTemperatureLine: Ae,
1540
- temperatureColors: e.temperatureColors ? e.temperatureColors.map((e) => Ee(e)) : null,
1604
+ isFlatTemperatureLine: ke,
1605
+ temperatureColors: e.temperatureColors ? e.temperatureColors.map((e) => Te(e)) : null,
1541
1606
  yOffset: ae,
1542
- autoScaleYLabels: Se,
1543
- individualHeight: se,
1544
- scaleYLabels: e.autoScaling ? Se : xe,
1607
+ autoScaleYLabels: xe,
1608
+ individualHeight: h,
1609
+ scaleYLabels: e.autoScaling ? xe : be,
1545
1610
  individualScale: e.autoScaling ? p : d,
1546
1611
  individualMax: e.autoScaling ? ie : re,
1547
- zeroPosition: e.autoScaling ? le : ce,
1548
- curve: e.useStepper ? e.autoScaling ? ve : _e : e.autoScaling ? fe : de,
1549
- plots: e.autoScaling ? g : h,
1550
- dashedStraight: ye,
1551
- dashedSmooth: be,
1552
- hasDashedSegments: _,
1553
- area: e.useArea ? e.useStepper ? i(Oe, Te) : U.value.useIndividualScale ? H.value.line.cutNullValues ? oe(e.autoScaling ? g : h, Te) : we(e.autoScaling ? g.filter((e) => e.value !== null) : h.filter((e) => e.value !== null), Te) : H.value.line.cutNullValues ? oe(h, Te) : we(h.filter((e) => e.value !== null), Te) : "",
1554
- curveAreas: e.useArea ? e.useStepper ? i(Oe, Te).split(";").filter(Boolean).map((e) => `M${e}Z`) : f(e.autoScaling ? H.value.line.cutNullValues ? g : g.filter((e) => e.value !== null) : H.value.line.cutNullValues ? h : h.filter((e) => e.value !== null), Te, H.value.line.cutNullValues) : [],
1555
- straight: e.useStepper ? e.autoScaling ? ve : _e : e.autoScaling ? he : pe,
1612
+ zeroPosition: e.autoScaling ? ce : se,
1613
+ curve: e.useStepper ? e.autoScaling ? _e : ge : e.autoScaling ? de : ue,
1614
+ plots: e.autoScaling ? _ : g,
1615
+ dashedStraight: ve,
1616
+ dashedSmooth: ye,
1617
+ hasDashedSegments: v,
1618
+ area: e.useArea ? e.useStepper ? i(De, we) : U.value.useIndividualScale ? H.value.line.cutNullValues ? oe(e.autoScaling ? _ : g, we) : Ce(e.autoScaling ? _.filter((e) => e.value !== null) : g.filter((e) => e.value !== null), we) : H.value.line.cutNullValues ? oe(g, we) : Ce(g.filter((e) => e.value !== null), we) : "",
1619
+ curveAreas: e.useArea ? e.useStepper ? i(De, we).split(";").filter(Boolean).map((e) => `M${e}Z`) : f(e.autoScaling ? H.value.line.cutNullValues ? _ : _.filter((e) => e.value !== null) : H.value.line.cutNullValues ? g : g.filter((e) => e.value !== null), we, H.value.line.cutNullValues) : [],
1620
+ straight: e.useStepper ? e.autoScaling ? _e : ge : e.autoScaling ? me : fe,
1556
1621
  groupId: Q.value[e.scaleLabel].groupId
1557
1622
  };
1558
1623
  });
1559
- }), As = b(() => {
1560
- let e = gs.value.filter((e) => [
1624
+ }), Hs = x(() => {
1625
+ let e = Os.value.filter((e) => [
1561
1626
  "bar",
1562
1627
  "line",
1563
1628
  "plot"
1564
- ].includes(e.type)), t = e.length, n = H.value.chart.grid.labels.yAxis.gap, r = U.value.isStacked ? n * (t - 1) : 0, i = q.value.height - r;
1629
+ ].includes(e.type)), t = e.length, n = H.value.chart.grid.labels.yAxis.gap, r = U.value.isStacked ? n * (t - 1) : 0, i = Y.value.height - r;
1565
1630
  return e.filter((e) => e.type === "plot").map((e) => {
1566
- Co(e);
1631
+ To(e);
1567
1632
  let r = Q.value[e.scaleLabel].min, a = Q.value[e.scaleLabel].max, o = {
1568
1633
  ratios: e.absoluteValues.filter((e) => ![null, void 0].includes(e)).map((e) => (e - r) / (a - r)),
1569
1634
  valueMin: r,
@@ -1571,7 +1636,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
1571
1636
  }, s = {
1572
1637
  max: e.scaleMax || Math.max(...e.absoluteValues) || 1,
1573
1638
  min: e.scaleMin || Math.min(...e.absoluteValues) > 0 ? 0 : Math.min(...e.absoluteValues)
1574
- }, { individualScale: c, autoScaleSteps: l, individualZero: u, individualMax: ee, autoScaleMax: te, yOffset: d, individualHeight: f, zeroPosition: p, autoScaleZeroPosition: m } = Os({
1639
+ }, { individualScale: c, autoScaleSteps: l, individualZero: u, individualMax: ee, autoScaleMax: te, yOffset: d, individualHeight: f, zeroPosition: p, autoScaleZeroPosition: m } = Bs({
1575
1640
  datapoint: e,
1576
1641
  totalSeries: t,
1577
1642
  gap: n,
@@ -1581,18 +1646,18 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
1581
1646
  individualExtremes: s,
1582
1647
  forceExactScale: !0
1583
1648
  }), ne = e.series.map((t, n) => {
1584
- let r = U.value.useIndividualScale ? (e.absoluteValues[n] + Math.abs(u)) / ee : Ro(t);
1649
+ let r = U.value.useIndividualScale ? (e.absoluteValues[n] + Math.abs(u)) / ee : Bo(t);
1585
1650
  return {
1586
- x: v(q.value?.left + X.value.plot / 2 + X.value.plot * n),
1587
- y: v(q.value?.bottom - d - f * r),
1651
+ x: y(xs(n)),
1652
+ y: y(Y.value?.bottom - d - f * r),
1588
1653
  value: e.absoluteValues[n],
1589
- comment: e.comments && e.comments.slice(G.value.start, G.value.end)[n] || ""
1654
+ comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
1590
1655
  };
1591
1656
  }), re = e.absoluteValues.map((e) => l.min >= 0 ? (e - Math.abs(l.min)) / (l.max - Math.abs(l.min)) : (e + Math.abs(l.min)) / (l.max + Math.abs(l.min))), ie = e.series.map((t, n) => ({
1592
- x: v(q.value?.left + X.value.plot / 2 + X.value.plot * n),
1593
- y: v(q.value?.bottom - d - (f * re[n] || 0)),
1657
+ x: y(xs(n)),
1658
+ y: y(Y.value?.bottom - d - (f * re[n] || 0)),
1594
1659
  value: e.absoluteValues[n],
1595
- comment: e.comments && e.comments.slice(G.value.start, G.value.end)[n] || ""
1660
+ comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
1596
1661
  })), ae = c.ticks.map((t) => ({
1597
1662
  y: t >= 0 ? p - t / ee * f : p + f * Math.abs(t) / ee,
1598
1663
  value: t,
@@ -1609,7 +1674,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
1609
1674
  datapoint: e
1610
1675
  };
1611
1676
  });
1612
- return Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = H.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ? oe : ae, Q.value[e.scaleLabel].zeroPosition = e.autoScaling ? m : p, Q.value[e.scaleLabel].individualMax = e.autoScaling ? te : ee, Q.value[e.scaleLabel].scaleLabel = e.scaleLabel, Q.value[e.scaleLabel].id = e.id, Q.value[e.scaleLabel].yOffset = d, Q.value[e.scaleLabel].individualHeight = f, Q.value[e.scaleLabel].autoScaleYLabels = oe, Q.value[e.scaleLabel].unique = gs.value.filter((t) => t.scaleLabel === e.scaleLabel).length === 1, {
1677
+ return Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = H.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ? oe : ae, Q.value[e.scaleLabel].zeroPosition = e.autoScaling ? m : p, Q.value[e.scaleLabel].individualMax = e.autoScaling ? te : ee, Q.value[e.scaleLabel].scaleLabel = e.scaleLabel, Q.value[e.scaleLabel].id = e.id, Q.value[e.scaleLabel].yOffset = d, Q.value[e.scaleLabel].individualHeight = f, Q.value[e.scaleLabel].autoScaleYLabels = oe, Q.value[e.scaleLabel].unique = Os.value.filter((t) => t.scaleLabel === e.scaleLabel).length === 1, {
1613
1678
  ...e,
1614
1679
  yOffset: d,
1615
1680
  autoScaleYLabels: oe,
@@ -1622,7 +1687,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
1622
1687
  groupId: Q.value[e.scaleLabel].groupId
1623
1688
  };
1624
1689
  });
1625
- }), js = b(() => {
1690
+ }), Us = x(() => {
1626
1691
  let e = $.value.map((e) => ({
1627
1692
  name: e.name,
1628
1693
  color: e.color,
@@ -1633,9 +1698,9 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
1633
1698
  scaleLabel: e.scaleLabel || "",
1634
1699
  id: e.id,
1635
1700
  yOffset: e.yOffset || 0,
1636
- individualHeight: e.individualHeight || q.value.height,
1701
+ individualHeight: e.individualHeight || Y.value.height,
1637
1702
  autoScaleYLabels: e.autoScaleYLabels
1638
- })), t = ks.value.map((e) => ({
1703
+ })), t = Vs.value.map((e) => ({
1639
1704
  name: e.name,
1640
1705
  color: e.color,
1641
1706
  scale: e.individualScale,
@@ -1645,8 +1710,8 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
1645
1710
  scaleLabel: e.scaleLabel || "",
1646
1711
  id: e.id,
1647
1712
  yOffset: e.yOffset || 0,
1648
- individualHeight: e.individualHeight || q.value.height
1649
- })), n = As.value.map((e) => ({
1713
+ individualHeight: e.individualHeight || Y.value.height
1714
+ })), n = Hs.value.map((e) => ({
1650
1715
  name: e.name,
1651
1716
  color: e.color,
1652
1717
  scale: e.individualScale,
@@ -1656,7 +1721,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
1656
1721
  scaleLabel: e.scaleLabel || "",
1657
1722
  id: e.id,
1658
1723
  yOffset: e.yOffset || 0,
1659
- individualHeight: e.individualHeight || q.value.height
1724
+ individualHeight: e.individualHeight || Y.value.height
1660
1725
  })), r = U.value.useIndividualScale && !U.value.isStacked ? Object.values(Q.value) : [
1661
1726
  ...e,
1662
1727
  ...t,
@@ -1664,14 +1729,14 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
1664
1729
  ], i = r.flatMap((e) => e).length;
1665
1730
  return r.flatMap((e, t) => {
1666
1731
  let n = 0;
1667
- n = U.value.isStacked ? q.value?.left : q.value?.left / i * (t + 1);
1732
+ n = U.value.isStacked ? J.value ? Y.value?.right : Y.value?.left : J.value ? Y.value?.right + ao() * t : Y.value?.left / i * (t + 1);
1668
1733
  let r = U.value.useIndividualScale && !U.value.isStacked ? e.unique ? e.name : e.groupName : e.name;
1669
1734
  return {
1670
1735
  unique: e.unique,
1671
1736
  id: e.id,
1672
1737
  groupId: e.groupId,
1673
1738
  scaleLabel: e.scaleLabel,
1674
- name: pe(H.value.chart.grid.labels.yAxis.serieNameFormatter, r, r, e),
1739
+ name: fe(H.value.chart.grid.labels.yAxis.serieNameFormatter, r, r, e),
1675
1740
  color: U.value.useIndividualScale && !U.value.isStacked ? e.unique ? e.color : e.groupColor : e.color,
1676
1741
  scale: e.scale,
1677
1742
  yOffset: e.yOffset,
@@ -1683,7 +1748,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
1683
1748
  }))
1684
1749
  };
1685
1750
  });
1686
- }), Ms = b(() => {
1751
+ }), Ws = x(() => {
1687
1752
  let e = H.value.line.interLine || {}, t = e.pairs || [], n = e.colors || [];
1688
1753
  if (!t.length) return [];
1689
1754
  let r = [];
@@ -1693,7 +1758,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
1693
1758
  let o = $.value.find((e) => e.name === i), s = $.value.find((e) => e.name === a);
1694
1759
  if (!o || !s || o.type !== "line" || s.type !== "line") return;
1695
1760
  let c = n?.[t]?.[0] ?? o.color, l = n?.[t]?.[1] ?? s.color;
1696
- ue({
1761
+ le({
1697
1762
  lineA: o.plots,
1698
1763
  lineB: s.plots,
1699
1764
  smoothA: !!o.smooth,
@@ -1709,70 +1774,70 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
1709
1774
  });
1710
1775
  });
1711
1776
  }), r;
1712
- }), Ns = b(() => ({
1713
- timeLabel: J.value[B.value],
1714
- datapoint: ws.value,
1777
+ }), Gs = x(() => ({
1778
+ timeLabel: X.value[B.value],
1779
+ datapoint: Is.value,
1715
1780
  seriesIndex: B.value,
1716
- series: Ya.value,
1717
- bars: ks.value,
1781
+ series: Xa.value,
1782
+ bars: Vs.value,
1718
1783
  lines: $.value,
1719
- plots: As.value,
1784
+ plots: Hs.value,
1720
1785
  config: H.value
1721
- })), Ps = O({
1786
+ })), Ks = O({
1722
1787
  months: [],
1723
1788
  shortMonths: [],
1724
1789
  days: [],
1725
1790
  shortDays: []
1726
- }), Fs = 0;
1791
+ }), qs = 0;
1727
1792
  ht(() => {
1728
- let e = ++Fs, t = H.value.chart.grid.labels.xAxisLabels.datetimeFormatter;
1793
+ let e = ++qs, t = H.value.chart.grid.labels.xAxisLabels.datetimeFormatter;
1729
1794
  (async () => {
1730
- let n = await Ae(t.locale).catch(() => Ae("en"));
1731
- e === Fs && (Ps.value = n.data);
1795
+ let n = await ke(t.locale).catch(() => ke("en"));
1796
+ e === qs && (Ks.value = n.data);
1732
1797
  })();
1733
1798
  });
1734
- let Is = b(() => {
1735
- let e = H.value.chart.grid.labels.xAxisLabels.datetimeFormatter, t = ke({
1799
+ let Js = x(() => {
1800
+ let e = H.value.chart.grid.labels.xAxisLabels.datetimeFormatter, t = Oe({
1736
1801
  useUTC: e.useUTC,
1737
- locale: Ps.value,
1802
+ locale: Ks.value,
1738
1803
  januaryAsYear: e.januaryAsYear
1739
1804
  });
1740
1805
  return (e, n) => {
1741
1806
  let r = H.value.chart.grid.labels.xAxisLabels.values?.[e];
1742
1807
  return r == null ? "" : t.formatDate(new Date(r), n);
1743
1808
  };
1744
- }), Ls = b(() => (H.value.chart.grid.labels.xAxisLabels.values || []).map((e, t) => ({
1745
- text: Is.value(t, H.value.chart.zoom.timeFormat),
1809
+ }), Ys = x(() => (H.value.chart.grid.labels.xAxisLabels.values || []).map((e, t) => ({
1810
+ text: Js.value(t, H.value.chart.zoom.timeFormat),
1746
1811
  absoluteIndex: t
1747
- }))), Rs = b(() => {
1748
- let e = "", t = ws.value.map((e) => e.value).filter((e) => ve(e) && e !== null).reduce((e, t) => Math.abs(e) + Math.abs(t), 0), n = J.value[B.value], i = H.value.chart.tooltip.customFormat;
1749
- if (xe(i) && be(() => i({
1750
- absoluteIndex: B.value + G.value.start,
1812
+ }))), Xs = x(() => {
1813
+ let e = "", t = Is.value.map((e) => e.value).filter((e) => _e(e) && e !== null).reduce((e, t) => Math.abs(e) + Math.abs(t), 0), n = X.value[B.value], i = H.value.chart.tooltip.customFormat;
1814
+ if (be(i) && ye(() => i({
1815
+ absoluteIndex: B.value + K.value.start,
1751
1816
  seriesIndex: B.value,
1752
- datapoint: ws.value,
1753
- series: Ya.value,
1754
- bars: ks.value,
1817
+ datapoint: Is.value,
1818
+ series: Xa.value,
1819
+ bars: Vs.value,
1755
1820
  lines: $.value,
1756
- plots: As.value,
1821
+ plots: Hs.value,
1757
1822
  config: H.value,
1758
1823
  dateLabel: n
1759
1824
  }))) return i({
1760
- absoluteIndex: B.value + G.value.start,
1825
+ absoluteIndex: B.value + K.value.start,
1761
1826
  seriesIndex: B.value,
1762
- datapoint: ws.value,
1763
- series: Ya.value,
1764
- bars: ks.value,
1827
+ datapoint: Is.value,
1828
+ series: Xa.value,
1829
+ bars: Vs.value,
1765
1830
  lines: $.value,
1766
- plots: As.value,
1831
+ plots: Hs.value,
1767
1832
  config: H.value,
1768
1833
  dateLabel: n
1769
1834
  });
1770
1835
  if (n && n.text && H.value.chart.tooltip.showTimeLabel) {
1771
- let t = Is.value(B.value + G.value.start, H.value.chart.tooltip.timeFormat);
1836
+ let t = Js.value(B.value + K.value.start, H.value.chart.tooltip.timeFormat);
1772
1837
  e += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${H.value.chart.tooltip.borderColor}; width:100%">${H.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !H.value.chart.tooltip.useDefaultTimeFormat ? t : n.text}</div>`;
1773
1838
  }
1774
- return ws.value.forEach((n) => {
1775
- if (ve(n.value)) {
1839
+ return Is.value.forEach((n) => {
1840
+ if (_e(n.value)) {
1776
1841
  let i = "", o = "";
1777
1842
  switch (Pi.value[n.type]) {
1778
1843
  case "bar":
@@ -1918,46 +1983,46 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
1918
1983
  }
1919
1984
  default: break;
1920
1985
  }
1921
- e += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${i}</div> ${n.name}: <b>${H.value.chart.tooltip.showValue ? pe(n.type === "line" ? H.value.line.labels.formatter : n.type === "bar" ? H.value.bar.labels.formatter : H.value.plot.labels.formatter, n.value, a({
1986
+ e += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${i}</div> ${n.name}: <b>${H.value.chart.tooltip.showValue ? fe(n.type === "line" ? H.value.line.labels.formatter : n.type === "bar" ? H.value.bar.labels.formatter : H.value.plot.labels.formatter, n.value, a({
1922
1987
  p: n.prefix,
1923
1988
  v: n.value,
1924
1989
  s: n.suffix,
1925
1990
  r: H.value.chart.tooltip.roundingValue
1926
1991
  }), { datapoint: n }) : ""}</b> ${H.value.chart.tooltip.showPercentage ? `(${a({
1927
- v: v(Math.abs(n.value) / t * 100),
1992
+ v: y(Math.abs(n.value) / t * 100),
1928
1993
  s: "%",
1929
1994
  r: H.value.chart.tooltip.roundingPercentage
1930
- })})` : ""}</div>`, H.value.chart.comments.showInTooltip && n.comments.length && n.comments.slice(G.value.start, G.value.end)[B.value] && (e += `<div class="vue-data-ui-tooltip-comment" style="background:${n.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${n.color}">${n.comments.slice(G.value.start, G.value.end)[B.value]}</div>`);
1995
+ })})` : ""}</div>`, H.value.chart.comments.showInTooltip && n.comments.length && n.comments.slice(K.value.start, K.value.end)[B.value] && (e += `<div class="vue-data-ui-tooltip-comment" style="background:${n.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${n.color}">${n.comments.slice(K.value.start, K.value.end)[B.value]}</div>`);
1931
1996
  }
1932
1997
  }), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${H.value.chart.tooltip.color}">${e}</div>`;
1933
- }), zs = b(() => {
1934
- if (Ja.value.length === 0) return {
1998
+ }), Zs = x(() => {
1999
+ if (Ya.value.length === 0) return {
1935
2000
  head: [],
1936
2001
  body: [],
1937
2002
  config: {},
1938
2003
  columnNames: []
1939
2004
  };
1940
- let e = Xa.value.map((e) => ({
2005
+ let e = Za.value.map((e) => ({
1941
2006
  label: e.name,
1942
2007
  color: e.color,
1943
2008
  type: e.type
1944
2009
  })), t = [];
1945
- return J.value.forEach((e, n) => {
1946
- let r = H.value.table.useDefaultTimeFormat ? [e.text] : [Is.value(n + G.value.start, H.value.table.timeFormat)];
1947
- Xa.value.forEach((e) => {
1948
- r.push(Io(e.absoluteValues[n]) ? Number(e.absoluteValues[n].toFixed(H.value.table.rounding)) : "");
2010
+ return X.value.forEach((e, n) => {
2011
+ let r = H.value.table.useDefaultTimeFormat ? [e.text] : [Js.value(n + K.value.start, H.value.table.timeFormat)];
2012
+ Za.value.forEach((e) => {
2013
+ r.push(Ro(e.absoluteValues[n]) ? Number(e.absoluteValues[n].toFixed(H.value.table.rounding)) : "");
1949
2014
  }), t.push(r);
1950
2015
  }), {
1951
2016
  head: e,
1952
2017
  body: t
1953
2018
  };
1954
- }), Bs = b(() => {
1955
- let e = H.value.table.showSum, t = [""].concat(Xa.value.map((e) => e.name));
2019
+ }), Qs = x(() => {
2020
+ let e = H.value.table.showSum, t = [""].concat(Za.value.map((e) => e.name));
1956
2021
  e && (t = t.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>"));
1957
2022
  let n = [];
1958
- for (let t = 0; t < Y.value; t += 1) {
1959
- let r = Xa.value.map((e) => e.absoluteValues[t] ?? 0).reduce((e, t) => e + t, 0);
1960
- n.push([H.value.table.useDefaultTimeFormat ? J.value[t]?.text ?? "-" : Is.value(t + G.value.start, H.value.table.timeFormat)].concat(Xa.value.map((e) => pe(e.type === "line" ? H.value.line.labels.formatter : e.type === "bar" ? H.value.bar.labels.formatter : H.value.plot.labels.formatter, e.absoluteValues[t] ?? 0, a({
2023
+ for (let t = 0; t < Z.value; t += 1) {
2024
+ let r = Za.value.map((e) => e.absoluteValues[t] ?? 0).reduce((e, t) => e + t, 0);
2025
+ n.push([H.value.table.useDefaultTimeFormat ? X.value[t]?.text ?? "-" : Js.value(t + K.value.start, H.value.table.timeFormat)].concat(Za.value.map((e) => fe(e.type === "line" ? H.value.line.labels.formatter : e.type === "bar" ? H.value.bar.labels.formatter : H.value.plot.labels.formatter, e.absoluteValues[t] ?? 0, a({
1961
2026
  p: e.prefix || H.value.chart.labels.prefix,
1962
2027
  v: e.absoluteValues[t] ?? 0,
1963
2028
  s: e.suffix || H.value.chart.labels.suffix,
@@ -1976,7 +2041,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
1976
2041
  outline: H.value.table.td.outline
1977
2042
  },
1978
2043
  breakpoint: H.value.table.responsiveBreakpoint
1979
- }, i = [H.value.table.columnNames.period].concat(Xa.value.map((e) => e.name), H.value.table.columnNames.total);
2044
+ }, i = [H.value.table.columnNames.period].concat(Za.value.map((e) => e.name), H.value.table.columnNames.total);
1980
2045
  return {
1981
2046
  head: t,
1982
2047
  body: n,
@@ -1984,21 +2049,21 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
1984
2049
  colNames: i
1985
2050
  };
1986
2051
  });
1987
- function Vs(e = null) {
2052
+ function $s(e = null) {
1988
2053
  let t = [
1989
2054
  [H.value.chart.title.text],
1990
2055
  [H.value.chart.title.subtitle.text],
1991
2056
  [""]
1992
- ], n = ["", ...zs.value.head.map((e) => e.label)], r = zs.value.body, i = ie(t.concat([n]).concat(r));
2057
+ ], n = ["", ...Zs.value.head.map((e) => e.label)], r = Zs.value.body, i = ie(t.concat([n]).concat(r));
1993
2058
  e ? e(i) : l({
1994
2059
  csvContent: i,
1995
2060
  title: H.value.chart.title.text || "vue-ui-xy"
1996
2061
  });
1997
2062
  }
1998
- function Hs(e, t = null) {
1999
- if (Za.value) return;
2063
+ function ec(e, t = null) {
2064
+ if (Qa.value) return;
2000
2065
  Li.value = e;
2001
- let n = Xa.value.map((e) => ({
2066
+ let n = Za.value.map((e) => ({
2002
2067
  name: e.name,
2003
2068
  value: [
2004
2069
  null,
@@ -2010,27 +2075,27 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
2010
2075
  }));
2011
2076
  e ? (B.value = t, H.value.events.datapointEnter && H.value.events.datapointEnter({
2012
2077
  datapoint: n,
2013
- seriesIndex: t + G.value.start
2078
+ seriesIndex: t + K.value.start
2014
2079
  })) : (B.value = null, H.value.events.datapointLeave && H.value.events.datapointLeave({
2015
2080
  datapoint: n,
2016
- seriesIndex: t + G.value.start
2081
+ seriesIndex: t + K.value.start
2017
2082
  }));
2018
2083
  }
2019
- function Us() {
2084
+ function tc() {
2020
2085
  U.value.showTable = !U.value.showTable;
2021
2086
  }
2022
- function Ws() {
2087
+ function nc() {
2023
2088
  U.value.dataLabels.show = !U.value.dataLabels.show;
2024
2089
  }
2025
- function Gs() {
2090
+ function rc() {
2026
2091
  U.value.showTooltip = !U.value.showTooltip;
2027
2092
  }
2028
- function Ks(e) {
2093
+ function ic(e) {
2029
2094
  Ii.value = e, zi.value += 1;
2030
2095
  }
2031
- function qs() {
2096
+ function ac() {
2032
2097
  if (!H.value.responsiveProportionalSizing) {
2033
- V.value.dataLabels = H.value.chart.grid.labels.fontSize, V.value.yAxis = H.value.chart.grid.labels.axis.fontSize, V.value.xAxis = H.value.chart.grid.labels.xAxisLabels.fontSize, V.value.plotLabels = H.value.chart.labels.fontSize, pa.value.plot = H.value.plot.radius, pa.value.line = H.value.line.radius;
2098
+ V.value.dataLabels = H.value.chart.grid.labels.fontSize, V.value.yAxis = H.value.chart.grid.labels.axis.fontSize, V.value.xAxis = H.value.chart.grid.labels.xAxisLabels.fontSize, V.value.plotLabels = H.value.chart.labels.fontSize, ha.value.plot = H.value.plot.radius, ha.value.line = H.value.line.radius;
2034
2099
  return;
2035
2100
  }
2036
2101
  V.value.dataLabels = re({
@@ -2057,13 +2122,13 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
2057
2122
  source: H.value.chart.labels.fontSize,
2058
2123
  threshold: 10,
2059
2124
  fallback: 10
2060
- }), pa.value.plot = re({
2125
+ }), ha.value.plot = re({
2061
2126
  relator: F.value,
2062
2127
  adjuster: 800,
2063
2128
  source: H.value.plot.radius,
2064
2129
  threshold: 1,
2065
2130
  fallback: 1
2066
- }), pa.value.line = re({
2131
+ }), ha.value.line = re({
2067
2132
  relator: F.value,
2068
2133
  adjuster: 800,
2069
2134
  source: H.value.line.radius,
@@ -2071,59 +2136,59 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
2071
2136
  fallback: 1
2072
2137
  });
2073
2138
  }
2074
- function Js() {
2075
- if (ae(N.dataset) ? (ce({
2139
+ function oc() {
2140
+ if (ae(N.dataset) ? (se({
2076
2141
  componentName: "VueUiXy",
2077
2142
  type: "dataset",
2078
- debug: ya.value
2079
- }), wa.value = !0) : N.dataset.forEach((e, t) => {
2080
- [null, void 0].includes(e.name) && (ce({
2143
+ debug: xa.value
2144
+ }), Ta.value = !0) : N.dataset.forEach((e, t) => {
2145
+ [null, void 0].includes(e.name) && (se({
2081
2146
  componentName: "VueUiXy",
2082
2147
  type: "datasetSerieAttribute",
2083
2148
  property: "name (string)",
2084
2149
  index: t,
2085
- debug: ya.value
2086
- }), wa.value = !0);
2087
- }), ya.value && N.dataset.forEach((e) => {
2150
+ debug: xa.value
2151
+ }), Ta.value = !0);
2152
+ }), xa.value && N.dataset.forEach((e) => {
2088
2153
  e.series.forEach((t, n) => {
2089
- ve(t) || console.warn(`VueUiXy has detected an unsafe value in your dataset:\n-----> The serie '${e.name}' contains the value '${t}' at index ${n}.\n'${t}' was converted to null to allow the chart to display.`);
2154
+ _e(t) || console.warn(`VueUiXy has detected an unsafe value in your dataset:\n-----> The serie '${e.name}' contains the value '${t}' at index ${n}.\n'${t}' was converted to null to allow the chart to display.`);
2090
2155
  });
2091
- }), ae(N.dataset) || (wa.value = H.value.loading), Wi.value = H.value.chart.userOptions.showOnChartHover, Gi.value = H.value.chart.userOptions.keepStateOnChartLeave, Ki.value = !H.value.chart.userOptions.showOnChartHover, va(), H.value.responsive) {
2156
+ }), ae(N.dataset) || (Ta.value = H.value.loading), Wi.value = H.value.chart.userOptions.showOnChartHover, Gi.value = H.value.chart.userOptions.keepStateOnChartLeave, Ki.value = !H.value.chart.userOptions.showOnChartHover, ba(), H.value.responsive) {
2092
2157
  let e = hi.value.parentNode;
2093
2158
  Di.value && (Di.value.unobserve(Oi.value), Di.value.disconnect());
2094
2159
  let { height: t, width: n } = e.getBoundingClientRect(), r = null, i = 0;
2095
2160
  H.value.chart.title.show && gi.value && (r = gi.value, i = r.getBoundingClientRect().height);
2096
2161
  let a = null, o = 0;
2097
- H.value.chart.zoom.show && W.value > 6 && ga.value && _i.value && _i.value.$el && (a = _i.value.$el, o = a.getBoundingClientRect().height);
2162
+ H.value.chart.zoom.show && G.value > 6 && va.value && _i.value && _i.value.$el && (a = _i.value.$el, o = a.getBoundingClientRect().height);
2098
2163
  let s = null, c = 0;
2099
2164
  H.value.chart.legend.show && vi.value && (s = vi.value, c = s.getBoundingClientRect().height);
2100
2165
  let l = 0;
2101
2166
  yi.value && (l = yi.value.getBoundingClientRect().height);
2102
2167
  let u = 0;
2103
- bi.value && (u = bi.value.getBoundingClientRect().height), ji.value = t - i - c - o - l - u - 12, F.value = n, Mi.value = `0 0 ${F.value < 0 ? 10 : F.value} ${ji.value < 0 ? 10 : ji.value}`, qs();
2168
+ bi.value && (u = bi.value.getBoundingClientRect().height), ji.value = t - i - c - o - l - u - 12, F.value = n, Mi.value = `0 0 ${F.value < 0 ? 10 : F.value} ${ji.value < 0 ? 10 : ji.value}`, ac();
2104
2169
  let ee = new ResizeObserver((e) => {
2105
2170
  for (let t of e) i = H.value.chart.title.show && gi.value ? gi.value.getBoundingClientRect().height : 0, o = _i.value && _i.value.$el ? _i.value.$el.getBoundingClientRect().height : 0, c = vi.value ? vi.value.getBoundingClientRect().height : 0, l = yi.value ? yi.value.getBoundingClientRect().height : 0, u = bi.value ? bi.value.getBoundingClientRect().height : 0, requestAnimationFrame(() => {
2106
- ji.value = t.contentRect.height - i - c - o - l - u - 12, F.value = t.contentBoxSize[0].inlineSize ?? t.contentRect.width, Mi.value = `0 0 ${F.value < 0 ? 10 : F.value} ${ji.value < 0 ? 10 : ji.value}`, qs(), oa(), ca();
2171
+ ji.value = t.contentRect.height - i - c - o - l - u - 12, F.value = t.contentBoxSize[0].inlineSize ?? t.contentRect.width, Mi.value = `0 0 ${F.value < 0 ? 10 : F.value} ${ji.value < 0 ? 10 : ji.value}`, ac(), oa(), ca();
2107
2172
  });
2108
2173
  });
2109
2174
  Di.value = ee, Oi.value = e, ee.observe(e);
2110
- } else ji.value = H.value.chart.height, F.value = H.value.chart.width, V.value.dataLabels = H.value.chart.grid.labels.fontSize, V.value.yAxis = H.value.chart.grid.labels.axis.fontSize, V.value.xAxis = H.value.chart.grid.labels.xAxisLabels.fontSize, V.value.plotLabels = H.value.chart.labels.fontSize, pa.value.plot = H.value.plot.radius, pa.value.line = H.value.line.radius, Mi.value = `0 0 ${F.value} ${ji.value}`;
2175
+ } else ji.value = H.value.chart.height, F.value = H.value.chart.width, V.value.dataLabels = H.value.chart.grid.labels.fontSize, V.value.yAxis = H.value.chart.grid.labels.axis.fontSize, V.value.xAxis = H.value.chart.grid.labels.xAxisLabels.fontSize, V.value.plotLabels = H.value.chart.labels.fontSize, ha.value.plot = H.value.plot.radius, ha.value.line = H.value.line.radius, Mi.value = `0 0 ${F.value} ${ji.value}`;
2111
2176
  oa(), ca();
2112
2177
  }
2113
- function Ys(e) {
2178
+ function sc(e) {
2114
2179
  Ni.value = {
2115
2180
  x: e.clientX,
2116
2181
  y: e.clientY
2117
2182
  };
2118
2183
  }
2119
2184
  st(() => {
2120
- Js(), jo(), document.addEventListener("mousemove", Ys, { passive: !0 }), document.addEventListener("scroll", co, { passive: !0 });
2185
+ oc(), No(), document.addEventListener("mousemove", sc, { passive: !0 }), document.addEventListener("scroll", uo, { passive: !0 });
2121
2186
  }), ot(() => {
2122
- document.removeEventListener("scroll", co, { passive: !0 }), document.removeEventListener("mousemove", Ys, { passive: !0 }), Di.value &&= (Di.value.unobserve(Oi.value), Di.value.disconnect(), null);
2123
- }), Be({
2187
+ document.removeEventListener("scroll", uo, { passive: !0 }), document.removeEventListener("mousemove", sc, { passive: !0 }), Di.value &&= (Di.value.unobserve(Oi.value), Di.value.disconnect(), null);
2188
+ }), ze({
2124
2189
  timeLabelsEls: wi,
2125
- timeLabels: J,
2126
- slicer: G,
2190
+ timeLabels: X,
2191
+ slicer: K,
2127
2192
  configRef: H,
2128
2193
  rotationPath: [
2129
2194
  "chart",
@@ -2140,31 +2205,31 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
2140
2205
  "autoRotate",
2141
2206
  "enable"
2142
2207
  ],
2143
- isAutoSize: La,
2208
+ isAutoSize: Ra,
2144
2209
  height: ji,
2145
2210
  width: F,
2146
2211
  rotation: H.value.chart.grid.labels.xAxisLabels.autoRotate.angle
2147
2212
  });
2148
- let Xs = O(!1), Zs = O(null), Qs = O(200), $s = b(() => B.value ?? R.value ?? 0);
2149
- function ec() {
2150
- let e = Math.ceil(Qs.value || 200);
2213
+ let cc = O(!1), lc = O(null), uc = O(200), dc = x(() => B.value ?? R.value ?? 0);
2214
+ function fc() {
2215
+ let e = Math.ceil(uc.value || 200);
2151
2216
  return Math.min(Math.max(e, 1), 200);
2152
2217
  }
2153
- function tc() {
2154
- let e = ec(), t = Math.max(1, Y.value), n = q.value.width / t, r = q.value?.left + $s.value * n + n / 2 - e / 2 - (200 - e) / 2, i = q.value?.left - (200 - e) / 2, a = q.value?.right - (200 + e) / 2;
2155
- return v(Math.max(i, Math.min(r, a)));
2218
+ function pc() {
2219
+ let e = fc(), t = xs(dc.value) - e / 2 - (200 - e) / 2, n = Y.value?.left - (200 - e) / 2, r = Y.value?.right - (200 + e) / 2;
2220
+ return y(Math.max(n, Math.min(t, r)));
2156
2221
  }
2157
2222
  st(() => {
2158
2223
  let e = null, t = null, n = (e) => {
2159
2224
  cancelAnimationFrame(t), t = requestAnimationFrame(() => {
2160
- Qs.value = Math.min(Math.max(Math.ceil(e || 0), 1), 200);
2225
+ uc.value = Math.min(Math.max(Math.ceil(e || 0), 1), 200);
2161
2226
  });
2162
2227
  }, r = new ResizeObserver((t) => {
2163
2228
  let r = t.find((t) => t.target === e) || t[0];
2164
2229
  r && n(r.contentRect.width || 200);
2165
2230
  }), i = ht((t) => {
2166
- let i = Zs.value;
2167
- e && e !== i && (r.unobserve(e), e = null), i && i !== e && (it(() => {
2231
+ let i = lc.value;
2232
+ e && e !== i && (r.unobserve(e), e = null), i && i !== e && (rt(() => {
2168
2233
  i.offsetParent !== null && n(i.offsetWidth || i.getBoundingClientRect().width || 200);
2169
2234
  }), r.observe(i), e = i), t(() => {
2170
2235
  e &&= (r.unobserve(e), null);
@@ -2176,28 +2241,28 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
2176
2241
  } catch {}
2177
2242
  });
2178
2243
  });
2179
- let nc = b(() => {
2244
+ let mc = x(() => {
2180
2245
  if ([null, void 0].includes(B.value) && [null, void 0].includes(R.value)) return "";
2181
2246
  let e = (B.value == null ? 0 : B.value) || (R.value == null ? 0 : R.value), t = H.value.chart.timeTag.customFormat;
2182
- if (Xs.value = !1, xe(t)) try {
2247
+ if (cc.value = !1, be(t)) try {
2183
2248
  let n = t({
2184
- absoluteIndex: e + G.value.start,
2249
+ absoluteIndex: e + K.value.start,
2185
2250
  seriesIndex: e,
2186
- datapoint: ws.value,
2187
- bars: ks.value,
2251
+ datapoint: Is.value,
2252
+ bars: Vs.value,
2188
2253
  lines: $.value,
2189
- plots: As.value,
2254
+ plots: Hs.value,
2190
2255
  config: H.value
2191
2256
  });
2192
- if (typeof n == "string") return Xs.value = !0, n;
2257
+ if (typeof n == "string") return cc.value = !0, n;
2193
2258
  } catch {
2194
- console.warn("Custom format cannot be applied on timeTag."), Xs.value = !1;
2259
+ console.warn("Custom format cannot be applied on timeTag."), cc.value = !1;
2195
2260
  }
2196
- if (!Xs.value) return [null, void 0].includes(J.value[e]) ? "" : H.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !H.value.chart.timeTag.useDefaultFormat ? Is.value(e + G.value.start, H.value.chart.timeTag.timeFormat) : J.value[e].text;
2261
+ if (!cc.value) return [null, void 0].includes(X.value[e]) ? "" : H.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !H.value.chart.timeTag.useDefaultFormat ? Js.value(e + K.value.start, H.value.chart.timeTag.timeFormat) : X.value[e].text;
2197
2262
  });
2198
- function rc({ serie: e, plot: t, type: r }) {
2199
- return Io(t.value) ? n({
2200
- content: pe(H.value[r].labels.formatter, t.value, a({
2263
+ function hc({ serie: e, plot: t, type: r }) {
2264
+ return Ro(t.value) ? n({
2265
+ content: fe(H.value[r].labels.formatter, t.value, a({
2201
2266
  p: e.prefix || H.value.chart.labels.prefix,
2202
2267
  v: t.value,
2203
2268
  x: e.suffix || H.value.chart.labels.suffix,
@@ -2212,72 +2277,72 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
2212
2277
  y: 0
2213
2278
  }) : "";
2214
2279
  }
2215
- function ic({ plot: e }) {
2216
- let t = H.value.bar.labels.offsetY, n = Math.abs(Uo(e)), r = e.value < 0, i = {
2217
- x: (U.value.useIndividualScale && U.value.isStacked ? e.x + X.value.line / 2 : Go(e) + Wo() / 2 - ys.value / 2) + H.value.bar.labels.offsetX,
2218
- y: v(e.y) + (H.value.bar.labels.alwaysOnTop ? t - (r ? n : 0) : e.value >= 0 ? t : -t * 3)
2280
+ function gc({ plot: e }) {
2281
+ let t = H.value.bar.labels.offsetY, n = Math.abs(Go(e)), r = e.value < 0, i = {
2282
+ x: (U.value.useIndividualScale && U.value.isStacked ? e.x + Ko.value.line / 2 : Jo(e) + qo() / 2 - js.value / 2) + H.value.bar.labels.offsetX,
2283
+ y: y(e.y) + (H.value.bar.labels.alwaysOnTop ? t - (r ? n : 0) : e.value >= 0 ? t : -t * 3)
2219
2284
  };
2220
2285
  return `translate(${i.x}, ${i.y}) rotate(${H.value.bar.labels.rotation})`;
2221
2286
  }
2222
- function ac({ plot: e, type: t }) {
2287
+ function _c({ plot: e, type: t }) {
2223
2288
  let n = H.value[t].labels.offsetY, r = {
2224
2289
  x: e.x + H.value[t].labels.offsetX,
2225
- y: v(e.y) + (H.value[t].labels.alwaysOnTop || e.value >= 0 ? n : -n * 3)
2290
+ y: y(e.y) + (H.value[t].labels.alwaysOnTop || e.value >= 0 ? n : -n * 3)
2226
2291
  };
2227
2292
  return `translate(${r.x}, ${r.y}) rotate(${H.value[t].labels.rotation})`;
2228
2293
  }
2229
- function oc({ plot: e, type: t }) {
2294
+ function vc({ plot: e, type: t }) {
2230
2295
  if (H.value[t].labels.textAnchor != null) return H.value[t].labels.textAnchor;
2231
2296
  let n = e.value >= 0;
2232
2297
  return H.value[t].labels.rotation === 0 ? "middle" : H.value[t].labels.alwaysOnTop || n ? "start" : "end";
2233
2298
  }
2234
2299
  mt(() => N.dataset, (e) => {
2235
- if (Array.isArray(e) && e.length > 0 && (wa.value = !1), H.value.chart.zoom.keepState) {
2236
- if (W.value = Math.max(0, ...Ca.value.map((e) => Da(e.series).length)), W.value > 0) {
2237
- let e = G.value.start, t = G.value.end;
2238
- if (!Do.value || e === 0 && t === 0) jo();
2300
+ if (Array.isArray(e) && e.length > 0 && (Ta.value = !1), H.value.chart.zoom.keepState) {
2301
+ if (G.value = Math.max(0, ...W.value.map((e) => Oa(e.series).length)), G.value > 0) {
2302
+ let e = K.value.start, t = K.value.end;
2303
+ if (!ko.value || e === 0 && t === 0) No();
2239
2304
  else {
2240
- let n = Math.max(0, Math.min(e, W.value - 1)), r = Math.max(n + 1, Math.min(t, W.value));
2241
- G.value = {
2305
+ let n = Math.max(0, Math.min(e, G.value - 1)), r = Math.max(n + 1, Math.min(t, G.value));
2306
+ K.value = {
2242
2307
  start: n,
2243
2308
  end: r
2244
- }, Oa.value = {
2309
+ }, ka.value = {
2245
2310
  start: n,
2246
2311
  end: r
2247
- }, Oo.value = 0, ko.value = W.value;
2312
+ }, Ao.value = 0, jo.value = G.value;
2248
2313
  }
2249
2314
  }
2250
- } else W.value = Math.max(...Ca.value.map((e) => Da(e.series).length)), G.value = {
2315
+ } else G.value = Math.max(...W.value.map((e) => Oa(e.series).length)), K.value = {
2251
2316
  start: 0,
2252
- end: W.value
2317
+ end: G.value
2253
2318
  };
2254
- ki.value += 1, Ui.value += 1, oa(), ca(), ja();
2319
+ ki.value += 1, Ui.value += 1, oa(), ca(), Ma();
2255
2320
  }, { deep: !0 }), mt(() => N.config, (e) => {
2256
- Sa.value || (H.value = ma()), Js(), Vi.value += 1, Bi.value += 1, va(), oa(), ca(), H.value.chart.zoom.keepState && (W.value = Math.max(0, ...Ca.value.map((e) => Da(e.series).length)), W.value > 0 && (!Do.value || G.value.start === 0 && G.value.end === 0) && jo()), ja();
2321
+ wa.value || (H.value = ga()), oc(), Vi.value += 1, Bi.value += 1, ba(), oa(), ca(), H.value.chart.zoom.keepState && (G.value = Math.max(0, ...W.value.map((e) => Oa(e.series).length)), G.value > 0 && (!ko.value || K.value.start === 0 && K.value.end === 0) && No()), Ma();
2257
2322
  }, { deep: !0 });
2258
- let sc = O(!1);
2259
- function cc() {
2323
+ let yc = O(!1);
2324
+ function bc() {
2260
2325
  let e = hi.value?.parentNode;
2261
2326
  if (!e) {
2262
- sc.value = !1;
2327
+ yc.value = !1;
2263
2328
  return;
2264
2329
  }
2265
2330
  let t = e.getBoundingClientRect();
2266
- sc.value = t.width > 2 && t.height > 2;
2331
+ yc.value = t.width > 2 && t.height > 2;
2267
2332
  }
2268
2333
  st(() => {
2269
- cc();
2334
+ bc();
2270
2335
  let e = new ResizeObserver(() => {
2271
- cc(), sc.value && (Js(), ja(), H.value.chart.zoom.keepState || jo());
2336
+ bc(), yc.value && (oc(), Ma(), H.value.chart.zoom.keepState || No());
2272
2337
  });
2273
2338
  hi.value?.parentNode && e.observe(hi.value.parentNode);
2274
2339
  }), mt(H, () => {
2275
- va();
2340
+ ba();
2276
2341
  }, { immediate: !0 });
2277
- let lc = b(() => {
2342
+ let xc = x(() => {
2278
2343
  let e = H.value.table.useDialog && !H.value.showTable, t = U.value.showTable;
2279
2344
  return {
2280
- component: e ? ci : qe,
2345
+ component: e ? ci : Ke,
2281
2346
  title: `${H.value.chart.title.text}${H.value.chart.title.subtitle.text ? `: ${H.value.chart.title.subtitle.text}` : ""}`,
2282
2347
  props: e ? {
2283
2348
  backgroundColor: H.value.table.th.backgroundColor,
@@ -2307,37 +2372,37 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
2307
2372
  mt(() => U.value.showTable, (e) => {
2308
2373
  H.value.showTable || (e && H.value.table.useDialog && Xi.value ? Xi.value.open() : Xi.value && Xi.value.close && Xi.value.close());
2309
2374
  });
2310
- function uc() {
2375
+ function Sc() {
2311
2376
  U.value.showTable = !1, Ei.value && Ei.value.setTableIconState(!1);
2312
2377
  }
2313
- let dc = b(() => Ya.value.map((e) => ({
2378
+ let Cc = x(() => Xa.value.map((e) => ({
2314
2379
  shape: e.type === "bar" ? "square" : e.shape ?? "circle",
2315
2380
  color: e.color,
2316
2381
  name: e.name
2317
- }))), fc = b(() => H.value.chart.backgroundColor), pc = b(() => H.value.chart.legend), { exportSvg: mc, getSvg: hc } = Ie({
2382
+ }))), wc = x(() => H.value.chart.backgroundColor), Tc = x(() => H.value.chart.legend), { exportSvg: Ec, getSvg: Dc } = Fe({
2318
2383
  svg: z,
2319
- title: b(() => H.value.chart.title),
2320
- legend: pc,
2321
- legendItems: dc,
2322
- backgroundColor: fc
2384
+ title: x(() => H.value.chart.title),
2385
+ legend: Tc,
2386
+ legendItems: Cc,
2387
+ backgroundColor: wc
2323
2388
  });
2324
- async function gc({ isCb: e }) {
2325
- Qi.value = !0, await it();
2389
+ async function Oc({ isCb: e }) {
2390
+ Qi.value = !0, await rt();
2326
2391
  try {
2327
2392
  if (e) {
2328
- let { blob: e, url: t, text: n, dataUrl: r } = await hc();
2393
+ let { blob: e, url: t, text: n, dataUrl: r } = await Dc();
2329
2394
  await Promise.resolve(H.value.chart.userOptions.callbacks.svg({
2330
2395
  blob: e,
2331
2396
  url: t,
2332
2397
  text: n,
2333
2398
  dataUrl: r
2334
2399
  }));
2335
- } else await Promise.resolve(mc());
2400
+ } else await Promise.resolve(Ec());
2336
2401
  } finally {
2337
2402
  Qi.value = !1;
2338
2403
  }
2339
2404
  }
2340
- function _c(e) {
2405
+ function kc(e) {
2341
2406
  if (e?.stage === "start") {
2342
2407
  Zi.value = !0;
2343
2408
  return;
@@ -2346,18 +2411,18 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
2346
2411
  Zi.value = !1;
2347
2412
  return;
2348
2413
  }
2349
- Ia();
2414
+ La();
2350
2415
  }
2351
- async function vc() {
2416
+ async function Ac() {
2352
2417
  if (li("copyAlt", {
2353
2418
  config: {
2354
2419
  ...H.value,
2355
- formattedDates: J.value
2420
+ formattedDates: X.value
2356
2421
  },
2357
2422
  dataset: {
2358
2423
  lines: $.value,
2359
- bars: ks.value,
2360
- plots: As.value
2424
+ bars: Vs.value,
2425
+ plots: Hs.value
2361
2426
  }
2362
2427
  }), !H.value.chart.userOptions.callbacks.altCopy) {
2363
2428
  console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
@@ -2366,84 +2431,84 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
2366
2431
  await Promise.resolve(H.value.chart.userOptions.callbacks.altCopy({
2367
2432
  config: {
2368
2433
  ...H.value,
2369
- formattedDates: J.value
2434
+ formattedDates: X.value
2370
2435
  },
2371
2436
  dataset: {
2372
2437
  lines: $.value,
2373
- bars: ks.value,
2374
- plots: As.value
2438
+ bars: Vs.value,
2439
+ plots: Hs.value
2375
2440
  }
2376
2441
  }));
2377
2442
  }
2378
- let yc = O(!1);
2379
- function bc() {
2380
- G.value.end > G.value.start && ($i.value = null), uo.value = !0, yc.value = !0;
2443
+ let jc = O(!1);
2444
+ function Mc() {
2445
+ K.value.end > K.value.start && ($i.value = null), po.value = !0, jc.value = !0;
2381
2446
  }
2382
- function xc() {
2383
- $i.value = null, Qo(), yc.value = !1, uo.value = !1;
2447
+ function Nc() {
2448
+ $i.value = null, ts(), jc.value = !1, po.value = !1;
2384
2449
  }
2385
- function Sc(e) {
2450
+ function Pc(e) {
2386
2451
  if (!z.value || Fi.value || document.activeElement !== z.value) return;
2387
2452
  let t = e.key === "ArrowLeft", n = e.key === "ArrowRight";
2388
- if (!t && !n || !G.value.end && G.value.end !== 0) return;
2389
- let r = G.value.end - G.value.start;
2453
+ if (!t && !n || !K.value.end && K.value.end !== 0) return;
2454
+ let r = K.value.end - K.value.start;
2390
2455
  if (r <= 0) return;
2391
2456
  e.preventDefault(), e.stopPropagation();
2392
- let i = $i.value, a = Jo.value;
2393
- i !== null && i >= 0 && i < r ? n ? (i += 1, i >= r && (i = 0)) : t && (--i, i < 0 && (i = r - 1)) : a !== null && a >= 0 && a < r ? (i = n ? a + 1 : a - 1, i >= r && (i = 0), i < 0 && (i = r - 1)) : i = n ? 0 : r - 1, $i.value = i, Cc(i), Hs(!0, i);
2457
+ let i = $i.value, a = Zo.value;
2458
+ i !== null && i >= 0 && i < r ? n ? (i += 1, i >= r && (i = 0)) : t && (--i, i < 0 && (i = r - 1)) : a !== null && a >= 0 && a < r ? (i = n ? a + 1 : a - 1, i >= r && (i = 0), i < 0 && (i = r - 1)) : i = n ? 0 : r - 1, $i.value = i, Fc(i), ec(!0, i);
2394
2459
  }
2395
- function Cc(e) {
2396
- let t = G.value.end - G.value.start;
2460
+ function Fc(e) {
2461
+ let t = K.value.end - K.value.start;
2397
2462
  if (t <= 0) return;
2398
- let n = q.value.width / t, r = c(q.value.left + n * e + n / 2, q.value.top + q.value.height / 2, z.value);
2463
+ let n = Y.value.width / t, r = c(Y.value.left + n * e + n / 2, Y.value.top + Y.value.height / 2, z.value);
2399
2464
  r && (ea.value = r);
2400
2465
  }
2401
- let wc = b(() => {
2402
- if (!Bs.value) return null;
2403
- let e = H.value.table.showSum, t = [H.value.table.columnNames.period].concat(Xa.value.map((e) => e.name));
2466
+ let Ic = x(() => {
2467
+ if (!Qs.value) return null;
2468
+ let e = H.value.table.showSum, t = [H.value.table.columnNames.period].concat(Za.value.map((e) => e.name));
2404
2469
  e && (t = t.concat(H.value.table.columnNames.total));
2405
- let n = Bs.value.body.slice(G.value.start, G.value.end);
2470
+ let n = Qs.value.body.slice(K.value.start, K.value.end);
2406
2471
  return {
2407
2472
  headers: t,
2408
2473
  rows: n
2409
2474
  };
2410
2475
  });
2411
- return Ge({
2412
- getData: ts,
2413
- getImage: ns,
2414
- generatePdf: Fa,
2415
- generateImage: Ia,
2416
- generateSvg: gc,
2417
- generateCsv: Vs,
2418
- hideSeries: cs,
2419
- showSeries: ss,
2420
- toggleStack: So,
2421
- toggleTable: Us,
2422
- toggleLabels: Ws,
2423
- toggleTooltip: Gs,
2424
- toggleAnnotator: po,
2425
- toggleFullscreen: Ks,
2426
- copyAlt: vc,
2427
- resetZoom: Fo
2428
- }), (r, i) => (D(), S("div", {
2476
+ return We({
2477
+ getData: is,
2478
+ getImage: as,
2479
+ generatePdf: Ia,
2480
+ generateImage: La,
2481
+ generateSvg: Oc,
2482
+ generateCsv: $s,
2483
+ hideSeries: ds,
2484
+ showSeries: us,
2485
+ toggleStack: wo,
2486
+ toggleTable: tc,
2487
+ toggleLabels: nc,
2488
+ toggleTooltip: rc,
2489
+ toggleAnnotator: ho,
2490
+ toggleFullscreen: ic,
2491
+ copyAlt: Ac,
2492
+ resetZoom: Lo
2493
+ }), (r, i) => (D(), C("div", {
2429
2494
  id: `vue-ui-xy_${L.value}`,
2430
- class: at(`vue-data-ui-component vue-ui-xy ${Ii.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${H.value.useCssAnimation ? "" : "vue-ui-dna"}`),
2495
+ class: it(`vue-data-ui-component vue-ui-xy ${Ii.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${H.value.useCssAnimation ? "" : "vue-ui-dna"}`),
2431
2496
  ref_key: "chart",
2432
2497
  ref: hi,
2433
2498
  style: E(`background:${H.value.chart.backgroundColor}; color:${H.value.chart.color};width:100%;font-family:${H.value.chart.fontFamily};${H.value.responsive ? "height: 100%" : ""}`),
2434
- onMouseenter: i[6] ||= () => fo(!0),
2435
- onMouseleave: i[7] ||= () => fo(!1),
2436
- onClick: $o
2499
+ onMouseenter: i[6] ||= () => mo(!0),
2500
+ onMouseleave: i[7] ||= () => mo(!1),
2501
+ onClick: ns
2437
2502
  }, [
2438
- C("div", {
2503
+ w("div", {
2439
2504
  id: `chart-instructions-${L.value}`,
2440
2505
  class: "sr-only"
2441
- }, [C("p", null, ut(H.value.a11y.translations.keyboardNavigation), 1)], 8, yt),
2442
- wc.value?.rows?.length ? (D(), Ze(Ye, {
2506
+ }, [w("p", null, ut(H.value.a11y.translations.keyboardNavigation), 1)], 8, yt),
2507
+ Ic.value?.rows?.length ? (D(), Xe(Je, {
2443
2508
  key: 0,
2444
2509
  uid: L.value,
2445
- head: wc.value.headers,
2446
- body: wc.value.rows,
2510
+ head: Ic.value.headers,
2511
+ body: Ic.value.rows,
2447
2512
  notice: H.value.a11y.translations.tableAvailable,
2448
2513
  caption: H.value.a11y.translations.tableCaption
2449
2514
  }, null, 8, [
@@ -2452,22 +2517,22 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
2452
2517
  "body",
2453
2518
  "notice",
2454
2519
  "caption"
2455
- ])) : x("", !0),
2456
- H.value.chart.userOptions.buttons.annotator && z.value ? (D(), Ze(j(si), {
2520
+ ])) : S("", !0),
2521
+ H.value.chart.userOptions.buttons.annotator && z.value ? (D(), Xe(j(si), {
2457
2522
  key: 1,
2458
2523
  svgRef: z.value,
2459
2524
  backgroundColor: H.value.chart.backgroundColor,
2460
2525
  color: H.value.chart.color,
2461
2526
  active: Fi.value,
2462
- isCursorPointer: _a.value,
2463
- onClose: po
2527
+ isCursorPointer: ya.value,
2528
+ onClose: ho
2464
2529
  }, {
2465
2530
  "annotator-action-close": M(() => [A(r.$slots, "annotator-action-close", {}, void 0, !0)]),
2466
- "annotator-action-color": M(({ color: e }) => [A(r.$slots, "annotator-action-color", T(w({ color: e })), void 0, !0)]),
2467
- "annotator-action-draw": M(({ mode: e }) => [A(r.$slots, "annotator-action-draw", T(w({ mode: e })), void 0, !0)]),
2468
- "annotator-action-undo": M(({ disabled: e }) => [A(r.$slots, "annotator-action-undo", T(w({ disabled: e })), void 0, !0)]),
2469
- "annotator-action-redo": M(({ disabled: e }) => [A(r.$slots, "annotator-action-redo", T(w({ disabled: e })), void 0, !0)]),
2470
- "annotator-action-delete": M(({ disabled: e }) => [A(r.$slots, "annotator-action-delete", T(w({ disabled: e })), void 0, !0)]),
2531
+ "annotator-action-color": M(({ color: e }) => [A(r.$slots, "annotator-action-color", at(T({ color: e })), void 0, !0)]),
2532
+ "annotator-action-draw": M(({ mode: e }) => [A(r.$slots, "annotator-action-draw", at(T({ mode: e })), void 0, !0)]),
2533
+ "annotator-action-undo": M(({ disabled: e }) => [A(r.$slots, "annotator-action-undo", at(T({ disabled: e })), void 0, !0)]),
2534
+ "annotator-action-redo": M(({ disabled: e }) => [A(r.$slots, "annotator-action-redo", at(T({ disabled: e })), void 0, !0)]),
2535
+ "annotator-action-delete": M(({ disabled: e }) => [A(r.$slots, "annotator-action-delete", at(T({ disabled: e })), void 0, !0)]),
2471
2536
  _: 3
2472
2537
  }, 8, [
2473
2538
  "svgRef",
@@ -2475,21 +2540,21 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
2475
2540
  "color",
2476
2541
  "active",
2477
2542
  "isCursorPointer"
2478
- ])) : x("", !0),
2479
- ds.value ? (D(), S("div", {
2543
+ ])) : S("", !0),
2544
+ ms.value ? (D(), C("div", {
2480
2545
  key: 2,
2481
2546
  ref_key: "noTitle",
2482
2547
  ref: bi,
2483
2548
  class: "vue-data-ui-no-title-space",
2484
2549
  style: "height:36px; width: 100%; background:transparent"
2485
- }, null, 512)) : x("", !0),
2486
- H.value.chart.title.show ? (D(), S("div", {
2550
+ }, null, 512)) : S("", !0),
2551
+ H.value.chart.title.show ? (D(), C("div", {
2487
2552
  key: 3,
2488
2553
  ref_key: "chartTitle",
2489
2554
  ref: gi,
2490
2555
  class: "vue-ui-xy-title",
2491
2556
  style: E(`font-family:${H.value.chart.fontFamily}`)
2492
- }, [(D(), Ze(He, {
2557
+ }, [(D(), Xe(Ve, {
2493
2558
  key: `title_${Vi.value}`,
2494
2559
  config: {
2495
2560
  title: {
@@ -2501,16 +2566,16 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
2501
2566
  ...H.value.chart.title.subtitle
2502
2567
  }
2503
2568
  }
2504
- }, null, 8, ["config"]))], 4)) : x("", !0),
2505
- C("div", { id: `legend-top-${L.value}` }, null, 8, bt),
2506
- H.value.chart.userOptions.show && (Gi.value || Ki.value) ? (D(), Ze(j(ri), {
2569
+ }, null, 8, ["config"]))], 4)) : S("", !0),
2570
+ w("div", { id: `legend-top-${L.value}` }, null, 8, bt),
2571
+ H.value.chart.userOptions.show && (Gi.value || Ki.value) ? (D(), Xe(j(ri), {
2507
2572
  ref_key: "userOptionsRef",
2508
2573
  ref: Ei,
2509
2574
  key: `user_options_${zi.value}`,
2510
2575
  backgroundColor: H.value.chart.backgroundColor,
2511
2576
  color: H.value.chart.color,
2512
- isPrinting: j(Na),
2513
- isImaging: j(Pa),
2577
+ isPrinting: j(Pa),
2578
+ isImaging: j(Fa),
2514
2579
  uid: L.value,
2515
2580
  hasTooltip: H.value.chart.userOptions.buttons.tooltip && H.value.chart.tooltip.show,
2516
2581
  hasPdf: H.value.chart.userOptions.buttons.pdf,
@@ -2533,23 +2598,23 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
2533
2598
  callbacks: H.value.chart.userOptions.callbacks,
2534
2599
  tableDialog: H.value.table.useDialog,
2535
2600
  printScale: H.value.chart.userOptions.print.scale,
2536
- isCursorPointer: _a.value,
2537
- onToggleFullscreen: Ks,
2538
- onGeneratePdf: j(Fa),
2539
- onGenerateCsv: Vs,
2540
- onGenerateImage: _c,
2541
- onGenerateSvg: gc,
2542
- onToggleTable: Us,
2543
- onToggleLabels: Ws,
2544
- onToggleStack: So,
2545
- onToggleTooltip: Gs,
2546
- onToggleAnnotator: po,
2547
- onCopyAlt: vc,
2601
+ isCursorPointer: ya.value,
2602
+ onToggleFullscreen: ic,
2603
+ onGeneratePdf: j(Ia),
2604
+ onGenerateCsv: $s,
2605
+ onGenerateImage: kc,
2606
+ onGenerateSvg: Oc,
2607
+ onToggleTable: tc,
2608
+ onToggleLabels: nc,
2609
+ onToggleStack: wo,
2610
+ onToggleTooltip: rc,
2611
+ onToggleAnnotator: ho,
2612
+ onCopyAlt: Ac,
2548
2613
  style: E({ visibility: Gi.value ? Ki.value ? "visible" : "hidden" : "visible" })
2549
- }, Qe({ _: 2 }, [
2614
+ }, Ze({ _: 2 }, [
2550
2615
  r.$slots.menuIcon ? {
2551
2616
  name: "menuIcon",
2552
- fn: M(({ isOpen: e, color: t }) => [A(r.$slots, "menuIcon", T(w({
2617
+ fn: M(({ isOpen: e, color: t }) => [A(r.$slots, "menuIcon", at(T({
2553
2618
  isOpen: e,
2554
2619
  color: t
2555
2620
  })), void 0, !0)]),
@@ -2592,12 +2657,12 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
2592
2657
  } : void 0,
2593
2658
  r.$slots.optionStack ? {
2594
2659
  name: "optionStack",
2595
- fn: M(({ isStack: e }) => [A(r.$slots, "optionStack", T(w({ isStack: e })), void 0, !0)]),
2660
+ fn: M(({ isStack: e }) => [A(r.$slots, "optionStack", at(T({ isStack: e })), void 0, !0)]),
2596
2661
  key: "8"
2597
2662
  } : void 0,
2598
2663
  r.$slots.optionFullscreen ? {
2599
2664
  name: "optionFullscreen",
2600
- fn: M(({ toggleFullscreen: e, isFullscreen: t }) => [A(r.$slots, "optionFullscreen", T(w({
2665
+ fn: M(({ toggleFullscreen: e, isFullscreen: t }) => [A(r.$slots, "optionFullscreen", at(T({
2601
2666
  toggleFullscreen: e,
2602
2667
  isFullscreen: t
2603
2668
  })), void 0, !0)]),
@@ -2605,7 +2670,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
2605
2670
  } : void 0,
2606
2671
  r.$slots.optionAnnotator ? {
2607
2672
  name: "optionAnnotator",
2608
- fn: M(({ toggleAnnotator: e, isAnnotator: t }) => [A(r.$slots, "optionAnnotator", T(w({
2673
+ fn: M(({ toggleAnnotator: e, isAnnotator: t }) => [A(r.$slots, "optionAnnotator", at(T({
2609
2674
  toggleAnnotator: e,
2610
2675
  isAnnotator: t
2611
2676
  })), void 0, !0)]),
@@ -2613,7 +2678,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
2613
2678
  } : void 0,
2614
2679
  r.$slots.optionAltCopy ? {
2615
2680
  name: "optionAltCopy",
2616
- fn: M(({ altCopy: e }) => [A(r.$slots, "optionAltCopy", T(w({ altCopy: e })), void 0, !0)]),
2681
+ fn: M(({ altCopy: e }) => [A(r.$slots, "optionAltCopy", at(T({ altCopy: e })), void 0, !0)]),
2617
2682
  key: "11"
2618
2683
  } : void 0,
2619
2684
  r.$slots["custom-menu-before"] ? {
@@ -2626,12 +2691,12 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
2626
2691
  fn: M(() => [A(r.$slots, "custom-menu-after", {}, void 0, !0)]),
2627
2692
  key: "13"
2628
2693
  } : void 0
2629
- ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasLabel.hasTable.hasStack.hasFullscreen.hasAltCopy.isStacked.isFullscreen.chartElement.position.isTooltip.titles.hasAnnotator.isAnnotation.callbacks.tableDialog.printScale.isCursorPointer.onGeneratePdf.style".split("."))) : x("", !0),
2630
- C("div", xt, [(D(), S("svg", {
2694
+ ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasLabel.hasTable.hasStack.hasFullscreen.hasAltCopy.isStacked.isFullscreen.chartElement.position.isTooltip.titles.hasAnnotator.isAnnotation.callbacks.tableDialog.printScale.isCursorPointer.onGeneratePdf.style".split("."))) : S("", !0),
2695
+ w("div", xt, [(D(), C("svg", {
2631
2696
  ref_key: "svgRef",
2632
2697
  ref: z,
2633
2698
  xmlns: "http://www.w3.org/2000/svg",
2634
- class: at([{
2699
+ class: it([{
2635
2700
  "vue-data-ui-fullscreen--on": Ii.value,
2636
2701
  "vue-data-ui-fulscreen--off": !Ii.value
2637
2702
  }, "vue-ui-xy-svg vue-data-ui-svg"]),
@@ -2642,289 +2707,290 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
2642
2707
  color: H.value.chart.color,
2643
2708
  fontFamily: H.value.chart.fontFamily
2644
2709
  }),
2645
- "aria-label": ls.value,
2710
+ "aria-label": fs.value,
2646
2711
  "aria-describedby": `chart-instructions-${L.value}`,
2647
2712
  "aria-live": "polite",
2648
2713
  role: "img",
2649
2714
  tabindex: "0",
2650
2715
  preserveAspectRatio: "xMidYMid",
2651
- onMousemove: Zo,
2652
- onMouseleave: Qo,
2653
- onClick: $o,
2654
- onFocus: bc,
2655
- onBlur: xc,
2656
- onKeydown: Sc
2657
- }, [C("g", {
2716
+ onMousemove: es,
2717
+ onMouseleave: ts,
2718
+ onClick: ns,
2719
+ onFocus: Mc,
2720
+ onBlur: Nc,
2721
+ onKeydown: Pc
2722
+ }, [w("g", {
2658
2723
  ref_key: "G",
2659
2724
  ref: xi,
2660
2725
  class: "vue-data-ui-g"
2661
2726
  }, [
2662
- et(j(oi)),
2663
- r.$slots["chart-background"] ? (D(), S("foreignObject", {
2727
+ $e(j(oi)),
2728
+ r.$slots["chart-background"] ? (D(), C("foreignObject", {
2664
2729
  key: 0,
2665
- x: q.value?.left + Z.value < 0 ? 0 : q.value?.left + Z.value,
2666
- y: q.value?.top,
2667
- width: q.value.width - (H.value.chart.grid.position === "middle" ? 0 : q.value.width / Y.value) < 0 ? 0 : q.value.width - (H.value.chart.grid.position === "middle" ? 0 : q.value.width / Y.value),
2668
- height: q.value.height < 0 ? 0 : q.value.height,
2730
+ x: Math.max(0, Y.value?.left),
2731
+ y: Y.value?.top,
2732
+ width: Math.max(0, Y.value?.width),
2733
+ height: Math.max(0, Y.value?.height),
2669
2734
  style: { pointerEvents: "none" }
2670
- }, [A(r.$slots, "chart-background", {}, void 0, !0)], 8, Ct)) : x("", !0),
2671
- Y.value > 0 ? (D(), S("g", wt, [
2672
- C("g", Tt, [
2673
- H.value.chart.grid.labels.xAxis.showBaseline ? (D(), S("line", {
2735
+ }, [A(r.$slots, "chart-background", {}, void 0, !0)], 8, Ct)) : S("", !0),
2736
+ Z.value > 0 ? (D(), C("g", wt, [
2737
+ w("g", Tt, [
2738
+ H.value.chart.grid.labels.xAxis.showBaseline ? (D(), C("line", {
2674
2739
  key: 0,
2675
2740
  stroke: H.value.chart.grid.stroke,
2676
2741
  "stroke-width": "1",
2677
- x1: q.value?.left + Z.value,
2678
- x2: q.value?.right - Z.value,
2679
- y1: j(_)(q.value?.bottom),
2680
- y2: j(_)(q.value?.bottom),
2742
+ x1: Y.value?.left,
2743
+ x2: Y.value?.right,
2744
+ y1: j(v)(Y.value?.bottom),
2745
+ y2: j(v)(Y.value?.bottom),
2681
2746
  "stroke-linecap": "round",
2682
2747
  style: { animation: "none !important" }
2683
- }, null, 8, Et)) : x("", !0),
2684
- U.value.useIndividualScale ? H.value.chart.grid.showHorizontalLines ? (D(!0), S(y, { key: 2 }, k(js.value, (e) => (D(), S("g", null, [e.id === P.value && e.yLabels.length ? (D(!0), S(y, { key: 0 }, k(e.yLabels, (t) => (D(), S("line", {
2685
- x1: q.value?.left + Z.value,
2686
- x2: q.value?.right - Z.value,
2687
- y1: j(_)(t.y),
2688
- y2: j(_)(t.y),
2748
+ }, null, 8, Et)) : S("", !0),
2749
+ U.value.useIndividualScale ? H.value.chart.grid.showHorizontalLines ? (D(!0), C(b, { key: 2 }, k(Us.value, (e) => (D(), C("g", null, [e.id === P.value && e.yLabels.length ? (D(!0), C(b, { key: 0 }, k(e.yLabels, (t) => (D(), C("line", {
2750
+ x1: Y.value?.left,
2751
+ x2: Y.value?.right,
2752
+ y1: j(v)(t.y),
2753
+ y2: j(v)(t.y),
2689
2754
  stroke: e.color,
2690
2755
  "stroke-width": .5,
2691
2756
  "stroke-linecap": "round",
2692
2757
  style: { animation: "none !important" }
2693
- }, null, 8, At))), 256)) : e.yLabels.length ? (D(!0), S(y, { key: 1 }, k(e.yLabels, (e) => (D(), S("line", {
2694
- x1: q.value?.left + Z.value,
2695
- x2: q.value?.right - Z.value,
2696
- y1: j(_)(e.y),
2697
- y2: j(_)(e.y),
2758
+ }, null, 8, At))), 256)) : e.yLabels.length ? (D(!0), C(b, { key: 1 }, k(e.yLabels, (e) => (D(), C("line", {
2759
+ x1: Y.value?.left,
2760
+ x2: Y.value?.right,
2761
+ y1: j(v)(e.y),
2762
+ y2: j(v)(e.y),
2698
2763
  stroke: H.value.chart.grid.stroke,
2699
2764
  "stroke-width": .5,
2700
2765
  "stroke-linecap": "round",
2701
2766
  style: { animation: "none !important" }
2702
- }, null, 8, jt))), 256)) : x("", !0)]))), 256)) : x("", !0) : (D(), S(y, { key: 1 }, [H.value.chart.grid.labels.yAxis.showBaseline ? (D(), S("line", {
2767
+ }, null, 8, jt))), 256)) : S("", !0)]))), 256)) : S("", !0) : (D(), C(b, { key: 1 }, [H.value.chart.grid.labels.yAxis.showBaseline ? (D(), C("line", {
2703
2768
  key: 0,
2769
+ class: "vue-ui-xy-y-axis",
2704
2770
  stroke: H.value.chart.grid.stroke,
2705
2771
  "stroke-width": "1",
2706
- x1: q.value?.left + Z.value,
2707
- x2: q.value?.left + Z.value,
2708
- y1: j(_)(q.value?.top),
2709
- y2: j(_)(q.value?.bottom),
2772
+ x1: J.value ? Y.value?.right : Y.value?.left,
2773
+ x2: J.value ? Y.value?.right : Y.value?.left,
2774
+ y1: j(v)(Y.value?.top),
2775
+ y2: j(v)(Y.value?.bottom),
2710
2776
  "stroke-linecap": "round",
2711
2777
  style: { animation: "none !important" }
2712
- }, null, 8, Dt)) : x("", !0), H.value.chart.grid.showHorizontalLines ? (D(), S("g", Ot, [(D(!0), S(y, null, k(Ts.value, (e) => (D(), S("line", {
2713
- x1: q.value?.left + Z.value,
2714
- x2: q.value?.right,
2715
- y1: j(_)(e.y),
2716
- y2: j(_)(e.y),
2778
+ }, null, 8, Dt)) : S("", !0), H.value.chart.grid.showHorizontalLines ? (D(), C("g", Ot, [(D(!0), C(b, null, k(Ls.value, (e) => (D(), C("line", {
2779
+ x1: Y.value?.left,
2780
+ x2: Y.value?.right,
2781
+ y1: j(v)(e.y),
2782
+ y2: j(v)(e.y),
2717
2783
  stroke: H.value.chart.grid.stroke,
2718
2784
  "stroke-width": .5,
2719
2785
  "stroke-linecap": "round",
2720
2786
  style: { animation: "none !important" }
2721
- }, null, 8, kt))), 256))])) : x("", !0)], 64)),
2722
- H.value.chart.grid.showVerticalLines ? (D(), S("g", Mt, [C("path", {
2723
- d: io.value,
2787
+ }, null, 8, kt))), 256))])) : S("", !0)], 64)),
2788
+ H.value.chart.grid.showVerticalLines ? (D(), C("g", Mt, [w("path", {
2789
+ d: oo.value,
2724
2790
  "stroke-width": .5,
2725
2791
  stroke: H.value.chart.grid.stroke,
2726
2792
  "stroke-linecap": "round",
2727
2793
  style: { animation: "none !important" }
2728
- }, null, 8, Nt)])) : x("", !0),
2729
- H.value.chart.grid.labels.xAxisLabels.show ? (D(), S("g", Pt, [C("path", {
2730
- d: ao.value,
2794
+ }, null, 8, Nt)])) : S("", !0),
2795
+ H.value.chart.grid.labels.xAxisLabels.show ? (D(), C("g", Pt, [w("path", {
2796
+ d: so.value,
2731
2797
  stroke: H.value.chart.grid.stroke,
2732
2798
  "stroke-width": 1,
2733
2799
  "stroke-linecap": "round",
2734
2800
  style: { animation: "none !important" }
2735
- }, null, 8, Ft)])) : x("", !0)
2801
+ }, null, 8, Ft)])) : S("", !0)
2736
2802
  ]),
2737
- (D(!0), S(y, null, k(ks.value, (e, t) => (D(), S("defs", { key: `def_rect_${t}` }, [r.$slots["bar-gradient"] ? A(r.$slots, "bar-gradient", rt({
2803
+ (D(!0), C(b, null, k(Vs.value, (e, t) => (D(), C("defs", { key: `def_rect_${t}` }, [r.$slots["bar-gradient"] ? A(r.$slots, "bar-gradient", nt({
2738
2804
  key: 0,
2739
2805
  ref_for: !0
2740
2806
  }, {
2741
2807
  series: e,
2742
2808
  positiveId: `rectGradient_pos_${t}_${L.value}`,
2743
2809
  negativeId: `rectGradient_neg_${t}_${L.value}`
2744
- }), void 0, !0) : (D(), S(y, { key: 1 }, [C("linearGradient", {
2810
+ }), void 0, !0) : (D(), C(b, { key: 1 }, [w("linearGradient", {
2745
2811
  id: `rectGradient_pos_${t}_${L.value}`,
2746
2812
  x2: "0%",
2747
2813
  y2: "100%"
2748
2814
  }, [
2749
- C("stop", {
2815
+ w("stop", {
2750
2816
  offset: "0%",
2751
2817
  "stop-color": e.color
2752
2818
  }, null, 8, Lt),
2753
- C("stop", {
2819
+ w("stop", {
2754
2820
  offset: "62%",
2755
2821
  "stop-color": `${j(d)(e.color, .02)}`
2756
2822
  }, null, 8, Rt),
2757
- C("stop", {
2823
+ w("stop", {
2758
2824
  offset: "100%",
2759
2825
  "stop-color": `${j(d)(e.color, .05)}`
2760
2826
  }, null, 8, zt)
2761
- ], 8, It), C("linearGradient", {
2827
+ ], 8, It), w("linearGradient", {
2762
2828
  id: `rectGradient_neg_${t}_${L.value}`,
2763
2829
  x2: "0%",
2764
2830
  y2: "100%"
2765
2831
  }, [
2766
- C("stop", {
2832
+ w("stop", {
2767
2833
  offset: "0%",
2768
2834
  "stop-color": `${j(d)(e.color, .05)}`
2769
2835
  }, null, 8, Vt),
2770
- C("stop", {
2836
+ w("stop", {
2771
2837
  offset: "38%",
2772
2838
  "stop-color": `${j(d)(e.color, .02)}`
2773
2839
  }, null, 8, Ht),
2774
- C("stop", {
2840
+ w("stop", {
2775
2841
  offset: "100%",
2776
2842
  "stop-color": e.color
2777
2843
  }, null, 8, Ut)
2778
2844
  ], 8, Bt)], 64))]))), 128)),
2779
- (D(!0), S(y, null, k(As.value, (e, t) => (D(), S("defs", { key: `def_plot_${t}` }, [C("radialGradient", {
2845
+ (D(!0), C(b, null, k(Hs.value, (e, t) => (D(), C("defs", { key: `def_plot_${t}` }, [w("radialGradient", {
2780
2846
  id: `plotGradient_${t}_${L.value}`,
2781
2847
  cx: "50%",
2782
2848
  cy: "50%",
2783
2849
  r: "50%",
2784
2850
  fx: "50%",
2785
2851
  fy: "50%"
2786
- }, [C("stop", {
2852
+ }, [w("stop", {
2787
2853
  offset: "0%",
2788
2854
  "stop-color": `${j(d)(e.color, .05)}`
2789
- }, null, 8, Gt), C("stop", {
2855
+ }, null, 8, Gt), w("stop", {
2790
2856
  offset: "100%",
2791
2857
  "stop-color": e.color
2792
2858
  }, null, 8, Kt)], 8, Wt)]))), 128)),
2793
- (D(!0), S(y, null, k($.value, (e, n) => (D(), S(y, { key: `def_line_${e.id}` }, [C("defs", null, [C("radialGradient", {
2859
+ (D(!0), C(b, null, k($.value, (e, n) => (D(), C(b, { key: `def_line_${e.id}` }, [w("defs", null, [w("radialGradient", {
2794
2860
  id: `lineGradient_${n}_${L.value}`,
2795
2861
  cx: "50%",
2796
2862
  cy: "50%",
2797
2863
  r: "50%",
2798
2864
  fx: "50%",
2799
2865
  fy: "50%"
2800
- }, [C("stop", {
2866
+ }, [w("stop", {
2801
2867
  offset: "0%",
2802
2868
  "stop-color": `${j(d)(e.color, .05)}`
2803
- }, null, 8, Jt), C("stop", {
2869
+ }, null, 8, Jt), w("stop", {
2804
2870
  offset: "100%",
2805
2871
  "stop-color": e.color
2806
- }, null, 8, Yt)], 8, qt), r.$slots["area-gradient"] ? A(r.$slots, "area-gradient", rt({
2872
+ }, null, 8, Yt)], 8, qt), r.$slots["area-gradient"] ? A(r.$slots, "area-gradient", nt({
2807
2873
  key: 0,
2808
2874
  ref_for: !0
2809
2875
  }, {
2810
2876
  series: e,
2811
2877
  id: `areaGradient_${n}_${L.value}`
2812
- }), void 0, !0) : (D(), S("linearGradient", {
2878
+ }), void 0, !0) : (D(), C("linearGradient", {
2813
2879
  key: 1,
2814
2880
  id: `areaGradient_${n}_${L.value}`,
2815
2881
  x1: "0%",
2816
2882
  x2: "100%",
2817
2883
  y1: "0%",
2818
2884
  y2: "0%"
2819
- }, [C("stop", {
2885
+ }, [w("stop", {
2820
2886
  offset: "0%",
2821
- "stop-color": `${j(he)(j(d)(e.color, .03), H.value.line.area.opacity)}`
2822
- }, null, 8, Zt), C("stop", {
2887
+ "stop-color": `${j(me)(j(d)(e.color, .03), H.value.line.area.opacity)}`
2888
+ }, null, 8, Zt), w("stop", {
2823
2889
  offset: "100%",
2824
- "stop-color": `${j(he)(e.color, H.value.line.area.opacity)}`
2825
- }, null, 8, Qt)], 8, Xt))]), e.temperatureColors && !e.isFlatTemperatureLine ? (D(), S("defs", $t, [C("linearGradient", {
2890
+ "stop-color": `${j(me)(e.color, H.value.line.area.opacity)}`
2891
+ }, null, 8, Qt)], 8, Xt))]), e.temperatureColors && !e.isFlatTemperatureLine ? (D(), C("defs", $t, [w("linearGradient", {
2826
2892
  id: `temperature_grad_line_${n}_${L.value}`,
2827
2893
  gradientTransform: "rotate(90)"
2828
- }, [(D(!0), S(y, null, k(e.temperatureColors, (r, i) => (D(), S("stop", {
2894
+ }, [(D(!0), C(b, null, k(e.temperatureColors, (r, i) => (D(), C("stop", {
2829
2895
  key: `temperature_grad_stop_${n}_${i}_${L.value}`,
2830
2896
  "stop-color": r,
2831
2897
  offset: j(t)(i, e.temperatureColors.length)
2832
- }, null, 8, tn))), 128))], 8, en)])) : x("", !0)], 64))), 128)),
2833
- (D(!0), S(y, null, k(fs.value, (e) => (D(), S("g", null, [e.show ? (D(), S(y, { key: 0 }, [(D(!0), S(y, null, k(e.span, (t, n) => (D(), S("g", null, [C("rect", {
2898
+ }, null, 8, tn))), 128))], 8, en)])) : S("", !0)], 64))), 128)),
2899
+ (D(!0), C(b, null, k(hs.value, (e) => (D(), C("g", null, [e.show ? (D(), C(b, { key: 0 }, [(D(!0), C(b, null, k(e.span, (t, n) => (D(), C("g", null, [w("rect", {
2834
2900
  style: E({
2835
2901
  transition: "none",
2836
- opacity: +(e.from + n >= G.value.start && e.from + n <= G.value.end - 1)
2902
+ opacity: +(e.from + n >= K.value.start && e.from + n <= K.value.end - 1)
2837
2903
  }),
2838
- x: q.value?.left + q.value.width / Y.value * (e.from + n - G.value.start),
2839
- y: q.value?.top,
2840
- height: q.value.height < 0 ? 10 : q.value.height,
2841
- width: q.value.width / Y.value < 0 ? 1e-5 : q.value.width / Y.value,
2842
- fill: j(he)(e.color, e.opacity)
2843
- }, null, 12, nn)]))), 256)), (D(!0), S(y, null, k(e.span, (t, n) => (D(), S("g", null, [e.caption.text && n === 0 ? (D(), S("foreignObject", {
2904
+ x: Cs(e.from + n - K.value.start),
2905
+ y: Y.value?.top,
2906
+ height: Y.value.height < 0 ? 10 : Y.value.height,
2907
+ width: ws(e.from + n - K.value.start),
2908
+ fill: j(me)(e.color, e.opacity)
2909
+ }, null, 12, nn)]))), 256)), (D(!0), C(b, null, k(e.span, (t, n) => (D(), C("g", null, [e.caption.text && n === 0 ? (D(), C("foreignObject", {
2844
2910
  key: 0,
2845
- x: q.value?.left + q.value.width / Y.value * (e.from + n - G.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - q.value.width / Y.value * e.span / 2),
2846
- y: q.value?.top + e.caption.offsetY,
2911
+ x: Cs(e.from + n - K.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - Ds(e.span) / 2),
2912
+ y: Y.value?.top + e.caption.offsetY,
2847
2913
  style: E({
2848
2914
  overflow: "visible",
2849
- opacity: +(e.to >= G.value.start && e.from < G.value.end)
2915
+ opacity: +(e.to >= K.value.start && e.from < K.value.end)
2850
2916
  }),
2851
2917
  height: "1",
2852
- width: e.caption.width === "auto" ? q.value.width / Y.value * e.span : e.caption.width
2853
- }, [C("div", { style: E(`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"}`) }, ut(e.caption.text), 5)], 12, rn)) : x("", !0)]))), 256))], 64)) : x("", !0)]))), 256)),
2854
- uo.value ? (D(), S("g", an, [(D(!0), S(y, null, k(Y.value, (e, t) => (D(), S("g", { key: `tooltip_trap_highlighter_${t}` }, [C("rect", {
2855
- x: q.value?.left + q.value.width / Y.value * t,
2856
- y: q.value?.top,
2857
- height: q.value.height < 0 ? 10 : q.value.height,
2858
- width: q.value.width / Y.value < 0 ? 1e-5 : q.value.width / Y.value,
2918
+ width: e.caption.width === "auto" ? Ds(e.span) : e.caption.width
2919
+ }, [w("div", { style: E(`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"}`) }, ut(e.caption.text), 5)], 12, rn)) : S("", !0)]))), 256))], 64)) : S("", !0)]))), 256)),
2920
+ po.value ? (D(), C("g", an, [(D(!0), C(b, null, k(Z.value, (e, t) => (D(), C("g", { key: `tooltip_trap_highlighter_${t}` }, [w("rect", {
2921
+ x: Cs(t),
2922
+ y: Y.value?.top,
2923
+ height: Y.value.height < 0 ? 10 : Y.value.height,
2924
+ width: Es(t),
2859
2925
  fill: [
2860
2926
  R.value,
2861
2927
  B.value,
2862
2928
  Ri.value
2863
- ].includes(t) ? j(he)(H.value.chart.highlighter.color, H.value.chart.highlighter.opacity) : "transparent",
2929
+ ].includes(t) ? j(me)(H.value.chart.highlighter.color, H.value.chart.highlighter.opacity) : "transparent",
2864
2930
  style: {
2865
2931
  transition: "none !important",
2866
2932
  animation: "none !important"
2867
2933
  }
2868
- }, null, 8, on)]))), 128))])) : x("", !0),
2869
- ks.value.length ? (D(!0), S(y, { key: 1 }, k(ks.value, (e, t) => (D(), S("g", {
2934
+ }, null, 8, on)]))), 128))])) : S("", !0),
2935
+ Vs.value.length ? (D(!0), C(b, { key: 1 }, k(Vs.value, (e, t) => (D(), C("g", {
2870
2936
  key: `serie_bar_${e.id}`,
2871
- class: at(`serie_bar_${t}`),
2937
+ class: it(`serie_bar_${t}`),
2872
2938
  style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
2873
- }, [(D(!0), S(y, null, k(e.plots, (n, i) => (D(), S("g", { key: `bar_plot_${t}_${i}` }, [
2874
- Io(n.value) ? (D(), S("rect", {
2939
+ }, [(D(!0), C(b, null, k(e.plots, (n, i) => (D(), C("g", { key: `bar_plot_${t}_${i}` }, [
2940
+ Ro(n.value) ? (D(), C("rect", {
2875
2941
  key: 0,
2876
- x: Go(n) + xs.value / 2,
2877
- y: U.value.useIndividualScale ? qo(n) : Ko(n),
2878
- height: U.value.useIndividualScale ? Math.abs(Uo(n)) : Math.abs(Ho(n)),
2879
- width: bs.value - xs.value,
2942
+ x: Jo(n) + Ns.value / 2,
2943
+ y: U.value.useIndividualScale ? Xo(n) : Yo(n),
2944
+ height: U.value.useIndividualScale ? Math.abs(Go(n)) : Math.abs(Wo(n)),
2945
+ width: Ms.value - Ns.value,
2880
2946
  rx: H.value.bar.borderRadius,
2881
2947
  fill: H.value.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${t}_${L.value})` : `url(#rectGradient_neg_${t}_${L.value})` : e.color,
2882
2948
  stroke: H.value.bar.border.useSerieColor ? e.color : H.value.bar.border.stroke,
2883
2949
  "stroke-width": H.value.bar.border.strokeWidth,
2884
- style: E({ transition: j(Sa) || !H.value.bar.showTransition ? void 0 : `all ${H.value.bar.transitionDurationMs}ms ease-in-out` })
2885
- }, null, 12, sn)) : x("", !0),
2886
- Io(n.value) && r.$slots.pattern ? (D(), S("rect", {
2950
+ style: E({ transition: j(wa) || !H.value.bar.showTransition ? void 0 : `all ${H.value.bar.transitionDurationMs}ms ease-in-out` })
2951
+ }, null, 12, sn)) : S("", !0),
2952
+ Ro(n.value) && r.$slots.pattern ? (D(), C("rect", {
2887
2953
  key: 1,
2888
- x: Go(n) - xs.value / 2,
2889
- y: U.value.useIndividualScale ? qo(n) : Ko(n),
2890
- height: U.value.useIndividualScale ? Math.abs(Uo(n)) : Math.abs(Ho(n)),
2891
- width: bs.value - xs.value,
2954
+ x: Jo(n) - Ns.value / 2,
2955
+ y: U.value.useIndividualScale ? Xo(n) : Yo(n),
2956
+ height: U.value.useIndividualScale ? Math.abs(Go(n)) : Math.abs(Wo(n)),
2957
+ width: Ms.value - Ns.value,
2892
2958
  rx: H.value.bar.borderRadius,
2893
2959
  fill: `url(#pattern_${L.value}_${e.slotAbsoluteIndex})`,
2894
2960
  stroke: H.value.bar.border.useSerieColor ? e.color : H.value.bar.border.stroke,
2895
2961
  "stroke-width": H.value.bar.border.strokeWidth,
2896
- style: E({ transition: j(Sa) || !H.value.bar.showTransition ? void 0 : `all ${H.value.bar.transitionDurationMs}ms ease-in-out` })
2897
- }, null, 12, cn)) : x("", !0),
2898
- n.comment && H.value.chart.comments.show ? (D(), S("foreignObject", {
2962
+ style: E({ transition: j(wa) || !H.value.bar.showTransition ? void 0 : `all ${H.value.bar.transitionDurationMs}ms ease-in-out` })
2963
+ }, null, 12, cn)) : S("", !0),
2964
+ n.comment && H.value.chart.comments.show ? (D(), C("foreignObject", {
2899
2965
  key: 2,
2900
2966
  style: { overflow: "visible" },
2901
2967
  height: "12",
2902
- width: bs.value + H.value.chart.comments.width,
2903
- x: Go(n) - H.value.chart.comments.width / 2 + H.value.chart.comments.offsetX,
2904
- y: j(v)(n.y) + H.value.chart.comments.offsetY + 6
2968
+ width: Ms.value + H.value.chart.comments.width,
2969
+ x: Jo(n) - H.value.chart.comments.width / 2 + H.value.chart.comments.offsetX,
2970
+ y: j(y)(n.y) + H.value.chart.comments.offsetY + 6
2905
2971
  }, [A(r.$slots, "plot-comment", { plot: {
2906
2972
  ...n,
2907
2973
  color: e.color,
2908
2974
  seriesIndex: t,
2909
2975
  datapointIndex: i
2910
- } }, void 0, !0)], 8, ln)) : x("", !0)
2911
- ]))), 128))], 6))), 128)) : x("", !0),
2912
- !U.value.useIndividualScale && H.value.chart.grid.labels.zeroLine.show ? (D(), S("line", {
2976
+ } }, void 0, !0)], 8, ln)) : S("", !0)
2977
+ ]))), 128))], 6))), 128)) : S("", !0),
2978
+ !U.value.useIndividualScale && H.value.chart.grid.labels.zeroLine.show ? (D(), C("line", {
2913
2979
  key: 2,
2914
2980
  stroke: H.value.chart.grid.stroke,
2915
2981
  "stroke-width": "1",
2916
- x1: q.value?.left + Z.value,
2917
- x2: q.value?.right,
2918
- y1: j(_)(Vo.value),
2919
- y2: j(_)(Vo.value),
2982
+ x1: Y.value?.left,
2983
+ x2: Y.value?.right,
2984
+ y1: j(v)(Uo.value),
2985
+ y2: j(v)(Uo.value),
2920
2986
  "stroke-linecap": "round",
2921
2987
  style: { animation: "none !important" }
2922
- }, null, 8, un)) : x("", !0),
2923
- H.value.chart.highlighter.useLine && (![null, void 0].includes(B.value) || ![null, void 0].includes(R.value)) ? (D(), S("g", dn, [C("line", {
2924
- x1: q.value?.left + q.value.width / Y.value * ((B.value === null ? 0 : B.value) || (R.value === null ? 0 : R.value)) + q.value.width / Y.value / 2,
2925
- x2: q.value?.left + q.value.width / Y.value * ((B.value === null ? 0 : B.value) || (R.value === null ? 0 : R.value)) + q.value.width / Y.value / 2,
2926
- y1: j(_)(q.value?.top),
2927
- y2: j(_)(q.value?.bottom),
2988
+ }, null, 8, un)) : S("", !0),
2989
+ H.value.chart.highlighter.useLine && (![null, void 0].includes(B.value) || ![null, void 0].includes(R.value)) ? (D(), C("g", dn, [w("line", {
2990
+ x1: xs((B.value === null ? 0 : B.value) || (R.value === null ? 0 : R.value)),
2991
+ x2: xs((B.value === null ? 0 : B.value) || (R.value === null ? 0 : R.value)),
2992
+ y1: j(v)(Y.value?.top),
2993
+ y2: j(v)(Y.value?.bottom),
2928
2994
  stroke: H.value.chart.highlighter.color,
2929
2995
  "stroke-width": H.value.chart.highlighter.lineWidth,
2930
2996
  "stroke-dasharray": H.value.chart.highlighter.lineDasharray,
@@ -2934,63 +3000,62 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
2934
3000
  animation: "none !important",
2935
3001
  "pointer-events": "none"
2936
3002
  }
2937
- }, null, 8, fn)])) : x("", !0),
2938
- H.value.chart.grid.frame.show ? (D(), S("rect", {
3003
+ }, null, 8, fn)])) : S("", !0),
3004
+ H.value.chart.grid.frame.show ? (D(), C("rect", {
2939
3005
  key: 4,
2940
3006
  style: {
2941
3007
  pointerEvents: "none",
2942
3008
  transition: "none",
2943
3009
  animation: "none !important"
2944
3010
  },
2945
- x: q.value?.left + Z.value < 0 ? 0 : q.value?.left + Z.value,
2946
- y: q.value?.top,
2947
- width: q.value.width - (H.value.chart.grid.position === "middle" ? 0 : q.value.width / Y.value) < 0 ? 0 : q.value.width - (H.value.chart.grid.position === "middle" ? 0 : q.value.width / Y.value),
2948
- height: q.value.height < 0 ? 0 : q.value.height,
3011
+ x: Math.max(0, Y.value?.left),
3012
+ y: Y.value?.top,
3013
+ width: Math.max(0, Y.value?.width),
3014
+ height: Y.value.height < 0 ? 0 : Y.value.height,
2949
3015
  fill: "transparent",
2950
3016
  stroke: H.value.chart.grid.frame.stroke,
2951
3017
  "stroke-width": H.value.chart.grid.frame.strokeWidth,
2952
3018
  "stroke-linecap": H.value.chart.grid.frame.strokeLinecap,
2953
3019
  "stroke-linejoin": H.value.chart.grid.frame.strokeLinejoin,
2954
3020
  "stroke-dasharray": H.value.chart.grid.frame.strokeDasharray
2955
- }, null, 8, pn)) : x("", !0),
2956
- H.value.chart.grid.labels.show ? (D(), S("g", {
3021
+ }, null, 8, pn)) : S("", !0),
3022
+ H.value.chart.grid.labels.show ? (D(), C("g", {
2957
3023
  key: 5,
2958
3024
  ref_key: "scaleLabels",
2959
3025
  ref: Ti
2960
- }, [U.value.useIndividualScale ? (D(), S(y, { key: 0 }, [(D(!0), S(y, null, k(js.value, (e) => (D(), S("g", null, [C("line", {
2961
- x1: e.x + Z.value - q.value.individualOffsetX,
2962
- x2: e.x + Z.value - q.value.individualOffsetX,
2963
- y1: U.value.isStacked ? j(_)(q.value?.bottom - e.yOffset - e.individualHeight) : j(_)(q.value?.top),
2964
- y2: U.value.isStacked ? j(_)(q.value?.bottom - e.yOffset) : j(_)(q.value?.bottom),
3026
+ }, [U.value.useIndividualScale ? (D(), C(b, { key: 0 }, [(D(!0), C(b, null, k(Us.value, (e) => (D(), C("g", null, [w("line", {
3027
+ x1: U.value.isStacked ? J.value ? Y.value.right : Y.value.left : J.value ? e.x : e.x - Y.value.individualOffsetX,
3028
+ x2: U.value.isStacked ? J.value ? Y.value.right : Y.value.left : J.value ? e.x : e.x - Y.value.individualOffsetX,
3029
+ y1: U.value.isStacked ? j(v)(Y.value?.bottom - e.yOffset - e.individualHeight) : j(v)(Y.value?.top),
3030
+ y2: U.value.isStacked ? j(v)(Y.value?.bottom - e.yOffset) : j(v)(Y.value?.bottom),
2965
3031
  stroke: e.color,
2966
3032
  "stroke-width": H.value.chart.grid.stroke,
2967
3033
  "stroke-linecap": "round",
2968
3034
  style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
2969
- }, null, 12, mn)]))), 256)), (D(!0), S(y, null, k(js.value, (e) => (D(), S("g", { style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .3 : 1};transition:opacity 0.2s ease-in-out`) }, [
2970
- C("text", {
3035
+ }, null, 12, mn)]))), 256)), (D(!0), C(b, null, k(Us.value, (e) => (D(), C("g", { style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .3 : 1};transition:opacity 0.2s ease-in-out`) }, [
3036
+ w("text", {
2971
3037
  fill: e.color,
2972
3038
  "font-size": V.value.dataLabels * .8,
2973
3039
  "text-anchor": "middle",
2974
- transform: `translate(${e.x - V.value.dataLabels * .8 / 2 + Z.value}, ${U.value.isStacked ? q.value?.bottom - e.yOffset - e.individualHeight / 2 : q.value?.top + q.value.height / 2}) rotate(-90)`
2975
- }, ut(e.name) + " " + ut(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `-
2976
- ${e.scaleLabel}` : ""), 9, hn),
2977
- (D(!0), S(y, null, k(e.yLabels, (t, n) => (D(), S(y, null, [H.value.chart.grid.labels.yAxis.showCrosshairs ? (D(), S("line", {
3040
+ transform: `translate(${U.value.isStacked ? J.value ? Y.value.right + H.value.chart.grid.labels.yAxis.crosshairSize + H.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 + H.value.chart.grid.labels.yAxis.labelWidth + Y.value.individualOffsetX + H.value.chart.grid.labels.axis.yLabelOffsetX : Y.value.left - H.value.chart.grid.labels.yAxis.crosshairSize - H.value.chart.grid.labels.yAxis.scaleValueOffsetX - H.value.chart.grid.labels.yAxis.labelWidth - H.value.chart.grid.labels.axis.yLabelOffsetX : J.value ? e.x + H.value.chart.grid.labels.yAxis.crosshairSize + H.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 + H.value.chart.grid.labels.yAxis.labelWidth + H.value.chart.grid.labels.axis.yLabelOffsetX : e.x - V.value.dataLabels * .8 / 2}, ${U.value.isStacked ? Y.value?.bottom - e.yOffset - e.individualHeight / 2 : Y.value?.top + Y.value.height / 2}) rotate(-90)`
3041
+ }, ut(e.name) + " " + ut(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `- ${e.scaleLabel}` : ""), 9, hn),
3042
+ (D(!0), C(b, null, k(e.yLabels, (t, n) => (D(), C(b, null, [H.value.chart.grid.labels.yAxis.showCrosshairs ? (D(), C("line", {
2978
3043
  key: 0,
2979
- x1: e.x + 3 + Z.value - H.value.chart.grid.labels.yAxis.crosshairSize - q.value.individualOffsetX,
2980
- x2: e.x + Z.value - q.value.individualOffsetX,
2981
- y1: j(_)(t.y),
2982
- y2: j(_)(t.y),
3044
+ x1: U.value.isStacked ? J.value ? Y.value.right : Y.value.left : J.value ? e.x : e.x + 3 - H.value.chart.grid.labels.yAxis.crosshairSize - Y.value.individualOffsetX,
3045
+ x2: U.value.isStacked ? J.value ? Y.value.right + H.value.chart.grid.labels.yAxis.crosshairSize : Y.value.left - H.value.chart.grid.labels.yAxis.crosshairSize : J.value ? e.x + H.value.chart.grid.labels.yAxis.crosshairSize : e.x - Y.value.individualOffsetX,
3046
+ y1: j(v)(t.y),
3047
+ y2: j(v)(t.y),
2983
3048
  stroke: e.color,
2984
3049
  "stroke-width": 1,
2985
3050
  "stroke-linecap": "round",
2986
3051
  style: { animation: "none !important" }
2987
- }, null, 8, gn)) : x("", !0)], 64))), 256)),
2988
- (D(!0), S(y, null, k(e.yLabels, (t, n) => (D(), S("text", {
2989
- transform: `translate(${e.x - 5 + Z.value - q.value.individualOffsetX}, ${j(_)(t.y) + V.value.dataLabels / 3})`,
3052
+ }, null, 8, gn)) : S("", !0)], 64))), 256)),
3053
+ (D(!0), C(b, null, k(e.yLabels, (t, n) => (D(), C("text", {
3054
+ transform: `translate(${U.value.isStacked ? J.value ? Y.value.right + H.value.chart.grid.labels.yAxis.crosshairSize + H.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : Y.value.left - H.value.chart.grid.labels.yAxis.crosshairSize - H.value.chart.grid.labels.yAxis.scaleValueOffsetX - 5 : J.value ? e.x + H.value.chart.grid.labels.yAxis.crosshairSize + H.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : e.x - 5 - Y.value.individualOffsetX}, ${j(v)(t.y) + V.value.dataLabels / 3})`,
3055
+ "text-anchor": J.value ? "start" : "end",
2990
3056
  "font-size": V.value.dataLabels,
2991
- "text-anchor": "end",
2992
3057
  fill: e.color
2993
- }, ut(j(pe)(H.value.chart.grid.labels.yAxis.formatter, t.value, j(a)({
3058
+ }, ut(j(fe)(H.value.chart.grid.labels.yAxis.formatter, t.value, j(a)({
2994
3059
  p: t.prefix,
2995
3060
  v: t.value,
2996
3061
  s: t.suffix,
@@ -2999,33 +3064,33 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
2999
3064
  datapoint: t.datapoint,
3000
3065
  seriesIndex: n
3001
3066
  })), 9, _n))), 256))
3002
- ], 4))), 256))], 64)) : (D(!0), S(y, { key: 1 }, k(Ts.value, (e, t) => (D(), S("g", { key: `yLabel_${t}` }, [Io(e) && e.value >= K.value.min && e.value <= K.value.max && H.value.chart.grid.labels.yAxis.showCrosshairs ? (D(), S("line", {
3067
+ ], 4))), 256))], 64)) : (D(!0), C(b, { key: 1 }, k(Ls.value, (e, t) => (D(), C("g", { key: `yLabel_${t}` }, [Ro(e) && e.value >= q.value.min && e.value <= q.value.max && H.value.chart.grid.labels.yAxis.showCrosshairs ? (D(), C("line", {
3003
3068
  key: 0,
3004
- x1: q.value?.left + Z.value,
3005
- x2: q.value?.left + Z.value - H.value.chart.grid.labels.yAxis.crosshairSize,
3006
- y1: j(_)(e.y),
3007
- y2: j(_)(e.y),
3069
+ x1: J.value ? Y.value?.right : Y.value?.left,
3070
+ x2: J.value ? Y.value?.right + H.value.chart.grid.labels.yAxis.crosshairSize : Y.value?.left - H.value.chart.grid.labels.yAxis.crosshairSize,
3071
+ y1: j(v)(e.y),
3072
+ y2: j(v)(e.y),
3008
3073
  stroke: H.value.chart.grid.stroke,
3009
3074
  "stroke-width": "1",
3010
3075
  "stroke-linecap": "round",
3011
3076
  style: { animation: "none !important" }
3012
- }, null, 8, vn)) : x("", !0), e.value >= K.value.min && e.value <= K.value.max ? (D(), S("text", {
3077
+ }, null, 8, vn)) : S("", !0), e.value >= q.value.min && e.value <= q.value.max ? (D(), C("text", {
3013
3078
  key: 1,
3014
- transform: `translate(${q.value.scaleLabelX - H.value.chart.grid.labels.yAxis.crosshairSize}, ${j(v)(e.y + V.value.dataLabels / 3)})`,
3079
+ transform: `translate(${J.value ? Y.value.right + H.value.chart.grid.labels.yAxis.crosshairSize + H.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : Y.value.scaleLabelX - H.value.chart.grid.labels.yAxis.crosshairSize}, ${j(y)(e.y + V.value.dataLabels / 3)})`,
3015
3080
  "font-size": V.value.dataLabels,
3016
- "text-anchor": "end",
3081
+ "text-anchor": J.value ? "start" : "end",
3017
3082
  fill: H.value.chart.grid.labels.color
3018
- }, ut(Io(e.value) ? j(pe)(H.value.chart.grid.labels.yAxis.formatter, e.value, j(a)({
3083
+ }, ut(Ro(e.value) ? j(fe)(H.value.chart.grid.labels.yAxis.formatter, e.value, j(a)({
3019
3084
  p: e.prefix,
3020
3085
  v: e.value,
3021
3086
  s: e.suffix,
3022
3087
  r: H.value.chart.grid.labels.yAxis.rounding
3023
- })) : ""), 9, yn)) : x("", !0)]))), 128))], 512)) : x("", !0),
3024
- (D(!0), S(y, null, k(As.value, (e, t) => (D(), S("g", {
3088
+ })) : ""), 9, yn)) : S("", !0)]))), 128))], 512)) : S("", !0),
3089
+ (D(!0), C(b, null, k(Hs.value, (e, t) => (D(), C("g", {
3025
3090
  key: `serie_plot_${e.id}`,
3026
- class: at(`serie_plot_${t}`),
3091
+ class: it(`serie_plot_${t}`),
3027
3092
  style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3028
- }, [(D(!0), S(y, null, k(e.plots, (n, i) => (D(), S("g", { key: `circle_plot_${t}_${i}` }, [n && Io(n.value) ? (D(), Ze(We, {
3093
+ }, [(D(!0), C(b, null, k(e.plots, (n, i) => (D(), C("g", { key: `circle_plot_${t}_${i}` }, [n && Ro(n.value) ? (D(), Xe(Ue, {
3029
3094
  key: 0,
3030
3095
  shape: [
3031
3096
  "triangle",
@@ -3037,13 +3102,13 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
3037
3102
  ].includes(e.shape) ? e.shape : "circle",
3038
3103
  color: H.value.plot.useGradient ? `url(#plotGradient_${t}_${L.value})` : H.value.plot.dot.useSerieColor ? e.color : H.value.plot.dot.fill,
3039
3104
  plot: {
3040
- x: j(v)(n.x),
3041
- y: j(v)(n.y)
3105
+ x: j(y)(n.x),
3106
+ y: j(y)(n.y)
3042
3107
  },
3043
- radius: B.value !== null && B.value === i || R.value !== null && R.value === i ? (pa.value.plot || 6) * 1.5 : pa.value.plot || 6,
3108
+ radius: B.value !== null && B.value === i || R.value !== null && R.value === i ? (ha.value.plot || 6) * 1.5 : ha.value.plot || 6,
3044
3109
  stroke: H.value.plot.dot.useSerieColor ? H.value.chart.backgroundColor : e.color,
3045
3110
  strokeWidth: H.value.plot.dot.strokeWidth,
3046
- transition: j(Sa) || !H.value.plot.showTransition || B.value !== null && B.value === i || R.value !== null && R.value === i ? void 0 : `all ${H.value.plot.transitionDurationMs}ms ease-in-out`
3111
+ transition: j(wa) || !H.value.plot.showTransition || B.value !== null && B.value === i || R.value !== null && R.value === i ? void 0 : `all ${H.value.plot.transitionDurationMs}ms ease-in-out`
3047
3112
  }, null, 8, [
3048
3113
  "shape",
3049
3114
  "color",
@@ -3052,32 +3117,32 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
3052
3117
  "stroke",
3053
3118
  "strokeWidth",
3054
3119
  "transition"
3055
- ])) : x("", !0), n.comment && H.value.chart.comments.show ? (D(), S("foreignObject", {
3120
+ ])) : S("", !0), n.comment && H.value.chart.comments.show ? (D(), C("foreignObject", {
3056
3121
  key: 1,
3057
3122
  style: { overflow: "visible" },
3058
3123
  height: "12",
3059
3124
  width: H.value.chart.comments.width,
3060
3125
  x: n.x - H.value.chart.comments.width / 2 + H.value.chart.comments.offsetX,
3061
3126
  y: n.y + H.value.chart.comments.offsetY + 6
3062
- }, [C("div", xn, [A(r.$slots, "plot-comment", { plot: {
3127
+ }, [w("div", xn, [A(r.$slots, "plot-comment", { plot: {
3063
3128
  ...n,
3064
3129
  color: e.color,
3065
3130
  seriesIndex: t,
3066
3131
  datapointIndex: i
3067
- } }, void 0, !0)])], 8, bn)) : x("", !0)]))), 128))], 6))), 128)),
3068
- (D(!0), S(y, null, k($.value, (e, t) => (D(), S("g", {
3132
+ } }, void 0, !0)])], 8, bn)) : S("", !0)]))), 128))], 6))), 128)),
3133
+ (D(!0), C(b, null, k($.value, (e, t) => (D(), C("g", {
3069
3134
  key: `serie_line_${e.id}`,
3070
- class: at(`serie_line_${t}`),
3135
+ class: it(`serie_line_${t}`),
3071
3136
  style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3072
- }, [e.smooth && e.plots.length > 1 && e.curve ? (D(), S("path", {
3137
+ }, [e.smooth && e.plots.length > 1 && e.curve ? (D(), C("path", {
3073
3138
  key: 0,
3074
3139
  d: `M${e.curve}`,
3075
3140
  stroke: H.value.chart.backgroundColor,
3076
3141
  "stroke-width": H.value.line.strokeWidth + 1,
3077
3142
  "stroke-dasharray": e.dashed ? H.value.line.strokeWidth * 2 : 0,
3078
3143
  fill: "none",
3079
- style: E({ transition: j(Sa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3080
- }, null, 12, Sn)) : e.plots.length > 1 && e.straight ? (D(), S("path", {
3144
+ style: E({ transition: j(wa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3145
+ }, null, 12, Sn)) : e.plots.length > 1 && e.straight ? (D(), C("path", {
3081
3146
  key: 1,
3082
3147
  d: `M${e.straight}`,
3083
3148
  stroke: H.value.chart.backgroundColor,
@@ -3086,49 +3151,49 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
3086
3151
  fill: "none",
3087
3152
  "stroke-linecap": "round",
3088
3153
  "stroke-linejoin": "round",
3089
- style: E({ transition: j(Sa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3090
- }, null, 12, Cn)) : x("", !0)], 6))), 128)),
3091
- r.$slots.pattern ? (D(), S("defs", wn, [(D(!0), S(y, null, k(Ja.value, (e, t) => A(r.$slots, "pattern", rt({ key: `serie_pattern_slot_${e.id}` }, { ref_for: !0 }, {
3154
+ style: E({ transition: j(wa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3155
+ }, null, 12, Cn)) : S("", !0)], 6))), 128)),
3156
+ r.$slots.pattern ? (D(), C("defs", wn, [(D(!0), C(b, null, k(Ya.value, (e, t) => A(r.$slots, "pattern", nt({ key: `serie_pattern_slot_${e.id}` }, { ref_for: !0 }, {
3092
3157
  ...e,
3093
3158
  seriesIndex: e.slotAbsoluteIndex,
3094
3159
  patternId: `pattern_${L.value}_${t}`
3095
- }), void 0, !0)), 128))])) : x("", !0),
3096
- Ms.value.length && !U.value.isStacked ? (D(), S("g", Tn, [(D(!0), S(y, null, k(Ms.value, (e) => (D(), S("path", {
3160
+ }), void 0, !0)), 128))])) : S("", !0),
3161
+ Ws.value.length && !U.value.isStacked ? (D(), C("g", Tn, [(D(!0), C(b, null, k(Ws.value, (e) => (D(), C("path", {
3097
3162
  key: e.key,
3098
3163
  d: e.d,
3099
3164
  fill: e.color,
3100
3165
  "fill-opacity": H.value.line.interLine.fillOpacity,
3101
3166
  stroke: "none",
3102
3167
  "pointer-events": "none",
3103
- style: E({ transition: j(Sa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3104
- }, null, 12, En))), 128))])) : x("", !0),
3105
- (D(!0), S(y, null, k($.value, (e, t) => (D(), S("g", {
3168
+ style: E({ transition: j(wa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3169
+ }, null, 12, En))), 128))])) : S("", !0),
3170
+ (D(!0), C(b, null, k($.value, (e, t) => (D(), C("g", {
3106
3171
  key: `serie_line_above_${e.id}`,
3107
- class: at(`serie_line_${t}`),
3172
+ class: it(`serie_line_${t}`),
3108
3173
  style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3109
3174
  }, [
3110
- e.useArea && e.plots.length > 1 ? (D(), S("g", Dn, [e.smooth ? (D(!0), S(y, { key: 0 }, k(e.curveAreas, (n, i) => (D(), S(y, { key: i }, [n ? (D(), S("path", {
3175
+ e.useArea && e.plots.length > 1 ? (D(), C("g", Dn, [e.smooth ? (D(!0), C(b, { key: 0 }, k(e.curveAreas, (n, i) => (D(), C(b, { key: i }, [n ? (D(), C("path", {
3111
3176
  key: 0,
3112
3177
  d: n,
3113
- fill: H.value.line.area.useGradient ? `url(#areaGradient_${t}_${L.value})` : j(he)(e.color, H.value.line.area.opacity),
3114
- style: E({ transition: j(Sa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3115
- }, null, 12, On)) : x("", !0), r.$slots.pattern && n ? (D(), S("path", {
3178
+ fill: H.value.line.area.useGradient ? `url(#areaGradient_${t}_${L.value})` : j(me)(e.color, H.value.line.area.opacity),
3179
+ style: E({ transition: j(wa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3180
+ }, null, 12, On)) : S("", !0), r.$slots.pattern && n ? (D(), C("path", {
3116
3181
  key: 1,
3117
3182
  d: n,
3118
3183
  fill: `url(#pattern_${L.value}_${e.slotAbsoluteIndex})`,
3119
- style: E({ transition: j(Sa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3120
- }, null, 12, kn)) : x("", !0)], 64))), 128)) : (D(!0), S(y, { key: 1 }, k(e.area.split(";"), (n, i) => (D(), S(y, { key: i }, [n ? (D(), S("path", {
3184
+ style: E({ transition: j(wa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3185
+ }, null, 12, kn)) : S("", !0)], 64))), 128)) : (D(!0), C(b, { key: 1 }, k(e.area.split(";"), (n, i) => (D(), C(b, { key: i }, [n ? (D(), C("path", {
3121
3186
  key: 0,
3122
3187
  d: `M${n}Z`,
3123
- fill: H.value.line.area.useGradient ? `url(#areaGradient_${t}_${L.value})` : j(he)(e.color, H.value.line.area.opacity),
3124
- style: E({ transition: j(Sa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3125
- }, null, 12, An)) : x("", !0), r.$slots.pattern && n ? (D(), S("path", {
3188
+ fill: H.value.line.area.useGradient ? `url(#areaGradient_${t}_${L.value})` : j(me)(e.color, H.value.line.area.opacity),
3189
+ style: E({ transition: j(wa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3190
+ }, null, 12, An)) : S("", !0), r.$slots.pattern && n ? (D(), C("path", {
3126
3191
  key: 1,
3127
3192
  d: `M${n}Z`,
3128
3193
  fill: `url(#pattern_${L.value}_${e.slotAbsoluteIndex})`,
3129
- style: E({ transition: j(Sa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3130
- }, null, 12, jn)) : x("", !0)], 64))), 128))])) : x("", !0),
3131
- !e.hasDashedSegments && e.smooth && e.plots.length > 1 && e.curve ? (D(), S("path", {
3194
+ style: E({ transition: j(wa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3195
+ }, null, 12, jn)) : S("", !0)], 64))), 128))])) : S("", !0),
3196
+ !e.hasDashedSegments && e.smooth && e.plots.length > 1 && e.curve ? (D(), C("path", {
3132
3197
  key: 1,
3133
3198
  d: `M${e.curve}`,
3134
3199
  stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${t}_${L.value})` : e.color,
@@ -3136,8 +3201,8 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
3136
3201
  "stroke-dasharray": e.dashed ? H.value.line.strokeWidth * 2 : 0,
3137
3202
  fill: "none",
3138
3203
  "stroke-linecap": "round",
3139
- style: E({ transition: j(Sa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3140
- }, null, 12, Mn)) : e.hasDashedSegments ? (D(), S(y, { key: 2 }, [e.smooth ? (D(!0), S(y, { key: 0 }, k(e.dashedSmooth, (n) => (D(), S("path", {
3204
+ style: E({ transition: j(wa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3205
+ }, null, 12, Mn)) : e.hasDashedSegments ? (D(), C(b, { key: 2 }, [e.smooth ? (D(!0), C(b, { key: 0 }, k(e.dashedSmooth, (n) => (D(), C("path", {
3141
3206
  key: n.path,
3142
3207
  fill: "none",
3143
3208
  "stroke-linecap": "round",
@@ -3146,7 +3211,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
3146
3211
  stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${t}_${L.value})` : e.color,
3147
3212
  "stroke-width": H.value.line.strokeWidth,
3148
3213
  "stroke-dasharray": n.dashed ? H.value.line.strokeWidth * 2 : 0
3149
- }, null, 8, Nn))), 128)) : (D(!0), S(y, { key: 1 }, k(e.dashedStraight, (n) => (D(), S("path", {
3214
+ }, null, 8, Nn))), 128)) : (D(!0), C(b, { key: 1 }, k(e.dashedStraight, (n) => (D(), C("path", {
3150
3215
  key: n.path,
3151
3216
  fill: "none",
3152
3217
  "stroke-linecap": "round",
@@ -3155,7 +3220,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
3155
3220
  stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${t}_${L.value})` : e.color,
3156
3221
  "stroke-width": H.value.line.strokeWidth,
3157
3222
  "stroke-dasharray": n.dashed ? H.value.line.strokeWidth * 2 : 0
3158
- }, null, 8, Pn))), 128))], 64)) : e.plots.length > 1 && e.straight ? (D(), S("path", {
3223
+ }, null, 8, Pn))), 128))], 64)) : e.plots.length > 1 && e.straight ? (D(), C("path", {
3159
3224
  key: 3,
3160
3225
  d: `M${e.straight}`,
3161
3226
  stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${t}_${L.value})` : e.color,
@@ -3164,9 +3229,9 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
3164
3229
  fill: "none",
3165
3230
  "stroke-linecap": "round",
3166
3231
  "stroke-linejoin": "round",
3167
- style: E({ transition: j(Sa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3168
- }, null, 12, Fn)) : x("", !0),
3169
- (D(!0), S(y, null, k(e.plots, (n, i) => (D(), S(y, { key: `circle_line_${t}_${i}` }, [!us.value.linePlot && n && Io(n.value) || us.value.linePlot && n && Io(n.value) && (B.value !== null && B.value === i || R.value !== null && R.value === i) || Ds(e.plots, i) ? (D(), Ze(We, {
3232
+ style: E({ transition: j(wa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3233
+ }, null, 12, Fn)) : S("", !0),
3234
+ (D(!0), C(b, null, k(e.plots, (n, i) => (D(), C(b, { key: `circle_line_${t}_${i}` }, [!ps.value.linePlot && n && Ro(n.value) || ps.value.linePlot && n && Ro(n.value) && (B.value !== null && B.value === i || R.value !== null && R.value === i) || zs(e.plots, i) ? (D(), Xe(Ue, {
3170
3235
  key: 0,
3171
3236
  shape: [
3172
3237
  "triangle",
@@ -3178,13 +3243,13 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
3178
3243
  ].includes(e.shape) ? e.shape : "circle",
3179
3244
  color: H.value.line.useGradient ? `url(#lineGradient_${t}_${L.value})` : H.value.line.dot.useSerieColor ? e.color : H.value.line.dot.fill,
3180
3245
  plot: {
3181
- x: j(v)(n.x),
3182
- y: j(v)(n.y)
3246
+ x: j(y)(n.x),
3247
+ y: j(y)(n.y)
3183
3248
  },
3184
- radius: B.value !== null && B.value === i || R.value !== null && R.value === i ? (pa.value.line || 6) * 1.5 : (Ds(e.plots, i), pa.value.line || 6),
3249
+ radius: B.value !== null && B.value === i || R.value !== null && R.value === i ? (ha.value.line || 6) * 1.5 : (zs(e.plots, i), ha.value.line || 6),
3185
3250
  stroke: H.value.line.dot.useSerieColor ? H.value.chart.backgroundColor : e.color,
3186
3251
  strokeWidth: H.value.line.dot.strokeWidth,
3187
- transition: j(Sa) || !H.value.line.showTransition || B.value !== null && B.value === i || R.value !== null && R.value === i ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out`
3252
+ transition: j(wa) || !H.value.line.showTransition || B.value !== null && B.value === i || R.value !== null && R.value === i ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out`
3188
3253
  }, null, 8, [
3189
3254
  "shape",
3190
3255
  "color",
@@ -3193,57 +3258,57 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
3193
3258
  "stroke",
3194
3259
  "strokeWidth",
3195
3260
  "transition"
3196
- ])) : x("", !0), n.comment && H.value.chart.comments.show ? (D(), S("foreignObject", {
3261
+ ])) : S("", !0), n.comment && H.value.chart.comments.show ? (D(), C("foreignObject", {
3197
3262
  key: 1,
3198
3263
  style: { overflow: "visible" },
3199
3264
  height: "12",
3200
3265
  width: H.value.chart.comments.width,
3201
3266
  x: n.x - H.value.chart.comments.width / 2 + H.value.chart.comments.offsetX,
3202
3267
  y: n.y + H.value.chart.comments.offsetY + 6
3203
- }, [C("div", Ln, [A(r.$slots, "plot-comment", { plot: {
3268
+ }, [w("div", Ln, [A(r.$slots, "plot-comment", { plot: {
3204
3269
  ...n,
3205
3270
  color: e.color,
3206
3271
  seriesIndex: t,
3207
3272
  datapointIndex: i
3208
- } }, void 0, !0)])], 8, In)) : x("", !0)], 64))), 128))
3273
+ } }, void 0, !0)])], 8, In)) : S("", !0)], 64))), 128))
3209
3274
  ], 6))), 128)),
3210
- (H.value.bar.labels.show || H.value.bar.serieName.show) && U.value.dataLabels.show ? (D(), S("g", Rn, [(D(!0), S(y, null, k(ks.value, (e, t) => (D(), S(y, { key: `xLabel_bar_${e.id}` }, [(D(!0), S(y, null, k(e.plots, (n, r) => (D(), S(y, { key: `xLabel_bar_${t}_${r}` }, [n && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || B.value !== null && B.value === r || R.value !== null && R.value === r) && H.value.bar.labels.show ? (D(), S("text", {
3275
+ (H.value.bar.labels.show || H.value.bar.serieName.show) && U.value.dataLabels.show ? (D(), C("g", Rn, [(D(!0), C(b, null, k(Vs.value, (e, t) => (D(), C(b, { key: `xLabel_bar_${e.id}` }, [(D(!0), C(b, null, k(e.plots, (n, r) => (D(), C(b, { key: `xLabel_bar_${t}_${r}` }, [n && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || B.value !== null && B.value === r || R.value !== null && R.value === r) && H.value.bar.labels.show ? (D(), C("text", {
3211
3276
  key: 0,
3212
- "text-anchor": oc({
3277
+ "text-anchor": vc({
3213
3278
  plot: n,
3214
3279
  type: "bar"
3215
3280
  }),
3216
3281
  "font-size": V.value.plotLabels,
3217
- transform: ic({ plot: n }),
3282
+ transform: gc({ plot: n }),
3218
3283
  fill: H.value.bar.labels.color,
3219
3284
  stroke: H.value.chart.backgroundColor,
3220
3285
  "paint-order": "stroke",
3221
3286
  style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`),
3222
- innerHTML: rc({
3287
+ innerHTML: hc({
3223
3288
  serie: e,
3224
3289
  plot: n,
3225
3290
  type: "bar"
3226
3291
  })
3227
- }, null, 12, zn)) : x("", !0), n && H.value.bar.serieName.show ? (D(), S("text", {
3292
+ }, null, 12, zn)) : S("", !0), n && H.value.bar.serieName.show ? (D(), C("text", {
3228
3293
  key: 1,
3229
- x: U.value.useIndividualScale && U.value.isStacked ? n.x + X.value.line / 2 : n.x + Wo() * 1.1,
3294
+ x: U.value.useIndividualScale && U.value.isStacked ? n.x + Ko.value.line / 2 : n.x + qo() * 1.1,
3230
3295
  y: n.y + (n.value > 0 ? H.value.bar.serieName.offsetY : -H.value.bar.serieName.offsetY * 3),
3231
3296
  "text-anchor": "middle",
3232
3297
  "font-size": V.value.plotLabels,
3233
3298
  fill: H.value.bar.serieName.useSerieColor ? e.color : H.value.bar.serieName.color,
3234
3299
  "font-weight": H.value.bar.serieName.bold ? "bold" : "normal",
3235
3300
  style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3236
- }, ut(H.value.bar.serieName.useAbbreviation ? j(ye)({
3301
+ }, ut(H.value.bar.serieName.useAbbreviation ? j(ve)({
3237
3302
  source: e.name,
3238
3303
  length: H.value.bar.serieName.abbreviationSize
3239
- }) : e.name), 13, Bn)) : x("", !0)], 64))), 128))], 64))), 128))])) : x("", !0),
3240
- H.value.plot.labels.show && U.value.dataLabels.show ? (D(), S("g", Vn, [(D(!0), S(y, null, k(As.value, (e, t) => (D(), S(y, { key: `xLabel_plot_${e.id}` }, [(D(!0), S(y, null, k(e.plots, (n, r) => (D(), S(y, { key: `xLabel_plot_${t}_${r}` }, [n && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || B.value !== null && B.value === r || R.value !== null && R.value === r ? (D(), S("text", {
3304
+ }) : e.name), 13, Bn)) : S("", !0)], 64))), 128))], 64))), 128))])) : S("", !0),
3305
+ H.value.plot.labels.show && U.value.dataLabels.show ? (D(), C("g", Vn, [(D(!0), C(b, null, k(Hs.value, (e, t) => (D(), C(b, { key: `xLabel_plot_${e.id}` }, [(D(!0), C(b, null, k(e.plots, (n, r) => (D(), C(b, { key: `xLabel_plot_${t}_${r}` }, [n && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || B.value !== null && B.value === r || R.value !== null && R.value === r ? (D(), C("text", {
3241
3306
  key: 0,
3242
- transform: ac({
3307
+ transform: _c({
3243
3308
  plot: n,
3244
3309
  type: "plot"
3245
3310
  }),
3246
- "text-anchor": oc({
3311
+ "text-anchor": vc({
3247
3312
  plot: n,
3248
3313
  type: "plot"
3249
3314
  }),
@@ -3252,62 +3317,62 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
3252
3317
  stroke: H.value.chart.backgroundColor,
3253
3318
  "paint-order": "stroke",
3254
3319
  style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`),
3255
- innerHTML: rc({
3320
+ innerHTML: hc({
3256
3321
  serie: e,
3257
3322
  plot: n,
3258
3323
  type: "plot"
3259
3324
  })
3260
- }, null, 12, Hn)) : x("", !0)], 64))), 128))], 64))), 128))])) : (D(), S("g", Un, [(D(!0), S(y, null, k(As.value, (e, t) => (D(), S(y, { key: `xLabel_plot_${e.id}` }, [(D(!0), S(y, null, k(e.plots, (n, r) => (D(), S(y, { key: `xLabel_plot_${t}_${r}` }, [H.value.plot.tag.followValue ? (D(), S(y, { key: 1 }, [[
3325
+ }, null, 12, Hn)) : S("", !0)], 64))), 128))], 64))), 128))])) : (D(), C("g", Un, [(D(!0), C(b, null, k(Hs.value, (e, t) => (D(), C(b, { key: `xLabel_plot_${e.id}` }, [(D(!0), C(b, null, k(e.plots, (n, r) => (D(), C(b, { key: `xLabel_plot_${t}_${r}` }, [H.value.plot.tag.followValue ? (D(), C(b, { key: 1 }, [[
3261
3326
  R.value,
3262
3327
  B.value,
3263
3328
  Ri.value
3264
- ].includes(r) && e.useTag ? (D(), S("line", {
3329
+ ].includes(r) && e.useTag ? (D(), C("line", {
3265
3330
  key: 0,
3266
3331
  class: "vue-ui-xy-tag-plot",
3267
- x1: q.value?.left,
3268
- x2: q.value?.right,
3332
+ x1: Y.value?.left,
3333
+ x2: Y.value?.right,
3269
3334
  y1: n.y,
3270
3335
  y2: n.y,
3271
3336
  "stroke-width": 1,
3272
3337
  "stroke-linecap": "round",
3273
3338
  "stroke-dasharray": "2",
3274
3339
  stroke: e.color
3275
- }, null, 8, Jn)) : x("", !0)], 64)) : (D(), S(y, { key: 0 }, [n && r === 0 && e.useTag && e.useTag === "start" ? (D(), S("foreignObject", {
3340
+ }, null, 8, Jn)) : S("", !0)], 64)) : (D(), C(b, { key: 0 }, [n && r === 0 && e.useTag && e.useTag === "start" ? (D(), C("foreignObject", {
3276
3341
  key: 0,
3277
3342
  x: n.x,
3278
3343
  y: n.y - 20,
3279
3344
  height: 24,
3280
3345
  width: "150",
3281
3346
  style: E(`overflow: visible; opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3282
- }, [C("div", {
3283
- style: E(`padding: 3px; background:${j(he)(e.color, 80)};color:${j(Se)(e.color)};width:fit-content;font-size:${V.value.plotLabels}px;border-radius: 2px;`),
3284
- innerHTML: j(pe)(H.value.plot.tag.formatter, n.value, e.name, {
3347
+ }, [w("div", {
3348
+ style: E(`padding: 3px; background:${j(me)(e.color, 80)};color:${j(xe)(e.color)};width:fit-content;font-size:${V.value.plotLabels}px;border-radius: 2px;`),
3349
+ innerHTML: j(fe)(H.value.plot.tag.formatter, n.value, e.name, {
3285
3350
  datapoint: n,
3286
3351
  seriesIndex: r,
3287
3352
  serieName: e.name
3288
3353
  })
3289
- }, null, 12, Gn)], 12, Wn)) : x("", !0), n && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (D(), S("foreignObject", {
3354
+ }, null, 12, Gn)], 12, Wn)) : S("", !0), n && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (D(), C("foreignObject", {
3290
3355
  key: 1,
3291
3356
  x: n.x - e.name.length * (V.value.plotLabels / 2),
3292
3357
  y: n.y - 20,
3293
3358
  height: 24,
3294
3359
  width: "150",
3295
3360
  style: E(`overflow: visible; opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3296
- }, [C("div", {
3297
- style: E(`padding: 3px; background:${j(he)(e.color, 80)};color:${j(Se)(e.color)};width:fit-content;font-size:${V.value.plotLabels}px;border-radius: 2px;`),
3298
- innerHTML: j(pe)(H.value.plot.tag.formatter, n.value, e.name, {
3361
+ }, [w("div", {
3362
+ style: E(`padding: 3px; background:${j(me)(e.color, 80)};color:${j(xe)(e.color)};width:fit-content;font-size:${V.value.plotLabels}px;border-radius: 2px;`),
3363
+ innerHTML: j(fe)(H.value.plot.tag.formatter, n.value, e.name, {
3299
3364
  datapoint: n,
3300
3365
  seriesIndex: r,
3301
3366
  serieName: e.name
3302
3367
  })
3303
- }, null, 12, qn)], 12, Kn)) : x("", !0)], 64))], 64))), 128))], 64))), 128))])),
3304
- H.value.line.labels.show && U.value.dataLabels.show ? (D(), S("g", Yn, [(D(!0), S(y, null, k($.value, (e, t) => (D(), S(y, { key: `xLabel_line_${e.id}` }, [(D(!0), S(y, null, k(e.plots, (n, r) => (D(), S(y, { key: `xLabel_line_${t}_${r}` }, [n && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || B.value !== null && B.value === r || R.value !== null && R.value === r ? (D(), S("text", {
3368
+ }, null, 12, qn)], 12, Kn)) : S("", !0)], 64))], 64))), 128))], 64))), 128))])),
3369
+ H.value.line.labels.show && U.value.dataLabels.show ? (D(), C("g", Yn, [(D(!0), C(b, null, k($.value, (e, t) => (D(), C(b, { key: `xLabel_line_${e.id}` }, [(D(!0), C(b, null, k(e.plots, (n, r) => (D(), C(b, { key: `xLabel_line_${t}_${r}` }, [n && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || B.value !== null && B.value === r || R.value !== null && R.value === r ? (D(), C("text", {
3305
3370
  key: 0,
3306
- transform: ac({
3371
+ transform: _c({
3307
3372
  plot: n,
3308
3373
  type: "line"
3309
3374
  }),
3310
- "text-anchor": oc({
3375
+ "text-anchor": vc({
3311
3376
  plot: n,
3312
3377
  type: "line"
3313
3378
  }),
@@ -3316,63 +3381,63 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
3316
3381
  stroke: H.value.chart.backgroundColor,
3317
3382
  "paint-order": "stroke",
3318
3383
  style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`),
3319
- innerHTML: rc({
3384
+ innerHTML: hc({
3320
3385
  serie: e,
3321
3386
  plot: n,
3322
3387
  type: "line"
3323
3388
  })
3324
- }, null, 12, Xn)) : x("", !0)], 64))), 128))], 64))), 128))])) : (D(), S("g", Zn, [(D(!0), S(y, null, k($.value, (e, t) => (D(), S(y, { key: `xLabel_line_${e.id}` }, [(D(!0), S(y, null, k(e.plots, (n, r) => (D(), S(y, { key: `xLabel_line_${t}_${r}` }, [H.value.line.tag.followValue ? (D(), S(y, { key: 1 }, [[
3389
+ }, null, 12, Xn)) : S("", !0)], 64))), 128))], 64))), 128))])) : (D(), C("g", Zn, [(D(!0), C(b, null, k($.value, (e, t) => (D(), C(b, { key: `xLabel_line_${e.id}` }, [(D(!0), C(b, null, k(e.plots, (n, r) => (D(), C(b, { key: `xLabel_line_${t}_${r}` }, [H.value.line.tag.followValue ? (D(), C(b, { key: 1 }, [[
3325
3390
  R.value,
3326
3391
  B.value,
3327
3392
  Ri.value
3328
- ].includes(r) && e.useTag ? (D(), S("line", {
3393
+ ].includes(r) && e.useTag ? (D(), C("line", {
3329
3394
  key: 0,
3330
3395
  class: "vue-ui-xy-tag-line",
3331
- x1: q.value?.left,
3332
- x2: q.value?.right,
3396
+ x1: Y.value?.left,
3397
+ x2: Y.value?.right,
3333
3398
  y1: n.y,
3334
3399
  y2: n.y,
3335
3400
  "stroke-width": 1,
3336
3401
  "stroke-linecap": "round",
3337
3402
  "stroke-dasharray": "2",
3338
3403
  stroke: e.color
3339
- }, null, 8, nr)) : x("", !0)], 64)) : (D(), S(y, { key: 0 }, [n && r === 0 && e.useTag && e.useTag === "start" ? (D(), S("foreignObject", {
3404
+ }, null, 8, nr)) : S("", !0)], 64)) : (D(), C(b, { key: 0 }, [n && r === 0 && e.useTag && e.useTag === "start" ? (D(), C("foreignObject", {
3340
3405
  key: 0,
3341
3406
  x: n.x,
3342
3407
  y: n.y - 20,
3343
3408
  height: 24,
3344
3409
  width: "150",
3345
3410
  style: E(`overflow: visible; opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3346
- }, [C("div", {
3347
- style: E(`padding: 3px; background:${j(he)(e.color, 80)};color:${j(Se)(e.color)};width:fit-content;font-size:${V.value.plotLabels}px;border-radius: 2px;`),
3348
- innerHTML: j(pe)(H.value.line.tag.formatter, n.value, e.name, {
3411
+ }, [w("div", {
3412
+ style: E(`padding: 3px; background:${j(me)(e.color, 80)};color:${j(xe)(e.color)};width:fit-content;font-size:${V.value.plotLabels}px;border-radius: 2px;`),
3413
+ innerHTML: j(fe)(H.value.line.tag.formatter, n.value, e.name, {
3349
3414
  datapoint: n,
3350
3415
  seriesIndex: r,
3351
3416
  serieName: e.name
3352
3417
  })
3353
- }, null, 12, $n)], 12, Qn)) : x("", !0), n && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (D(), S("foreignObject", {
3418
+ }, null, 12, $n)], 12, Qn)) : S("", !0), n && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (D(), C("foreignObject", {
3354
3419
  key: 1,
3355
3420
  x: n.x,
3356
3421
  y: n.y - 20,
3357
3422
  height: 24,
3358
3423
  width: "150",
3359
3424
  style: E(`overflow: visible; opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3360
- }, [C("div", {
3361
- style: E(`padding: 3px; background:${j(he)(e.color, 80)};color:${j(Se)(e.color)};width:fit-content;font-size:${V.value.plotLabels}px;border-radius: 2px;`),
3362
- innerHTML: j(pe)(H.value.line.tag.formatter, n.value, e.name, {
3425
+ }, [w("div", {
3426
+ style: E(`padding: 3px; background:${j(me)(e.color, 80)};color:${j(xe)(e.color)};width:fit-content;font-size:${V.value.plotLabels}px;border-radius: 2px;`),
3427
+ innerHTML: j(fe)(H.value.line.tag.formatter, n.value, e.name, {
3363
3428
  datapoint: n,
3364
3429
  seriesIndex: r,
3365
3430
  serieName: e.name
3366
3431
  })
3367
- }, null, 12, tr)], 12, er)) : x("", !0)], 64))], 64))), 128))], 64))), 128))])),
3368
- (D(!0), S(y, null, k($.value, (e, t) => (D(), S(y, { key: `xLabel_line_${e.id}` }, [(D(!0), S(y, null, k(e.plots, (n, r) => (D(), S(y, { key: `xLabel_line_${t}_${r}` }, [n && r === 0 && e.showSerieName && e.showSerieName === "start" ? (D(), S("text", {
3432
+ }, null, 12, tr)], 12, er)) : S("", !0)], 64))], 64))), 128))], 64))), 128))])),
3433
+ (D(!0), C(b, null, k($.value, (e, t) => (D(), C(b, { key: `xLabel_line_${e.id}` }, [(D(!0), C(b, null, k(e.plots, (n, r) => (D(), C(b, { key: `xLabel_line_${t}_${r}` }, [n && r === 0 && e.showSerieName && e.showSerieName === "start" ? (D(), C("text", {
3369
3434
  key: 0,
3370
3435
  x: n.x - V.value.plotLabels,
3371
3436
  y: n.y,
3372
3437
  "font-size": V.value.plotLabels,
3373
3438
  "text-anchor": "end",
3374
3439
  fill: e.color,
3375
- innerHTML: j(De)({
3440
+ innerHTML: j(Ee)({
3376
3441
  content: e.name,
3377
3442
  fontSize: V.value.plotLabels,
3378
3443
  fill: e.color,
@@ -3381,14 +3446,14 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
3381
3446
  maxWords: 2
3382
3447
  }),
3383
3448
  style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3384
- }, null, 12, rr)) : x("", !0), n && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (D(), S("text", {
3449
+ }, null, 12, rr)) : S("", !0), n && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (D(), C("text", {
3385
3450
  key: 1,
3386
3451
  x: n.x + V.value.plotLabels,
3387
3452
  y: n.y,
3388
3453
  "font-size": V.value.plotLabels,
3389
3454
  "text-anchor": "start",
3390
3455
  fill: e.color,
3391
- innerHTML: j(De)({
3456
+ innerHTML: j(Ee)({
3392
3457
  content: e.name,
3393
3458
  fontSize: V.value.plotLabels,
3394
3459
  fill: e.color,
@@ -3397,15 +3462,15 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
3397
3462
  maxWords: 2
3398
3463
  }),
3399
3464
  style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3400
- }, null, 12, ir)) : x("", !0)], 64))), 128))], 64))), 128)),
3401
- (D(!0), S(y, null, k(As.value, (e, t) => (D(), S(y, { key: `xLabel_plot_${e.id}` }, [(D(!0), S(y, null, k(e.plots, (n, r) => (D(), S(y, { key: `xLabel_plot_${t}_${r}` }, [n && r === 0 && e.showSerieName && e.showSerieName === "start" ? (D(), S("text", {
3465
+ }, null, 12, ir)) : S("", !0)], 64))), 128))], 64))), 128)),
3466
+ (D(!0), C(b, null, k(Hs.value, (e, t) => (D(), C(b, { key: `xLabel_plot_${e.id}` }, [(D(!0), C(b, null, k(e.plots, (n, r) => (D(), C(b, { key: `xLabel_plot_${t}_${r}` }, [n && r === 0 && e.showSerieName && e.showSerieName === "start" ? (D(), C("text", {
3402
3467
  key: 0,
3403
3468
  x: n.x - V.value.plotLabels,
3404
3469
  y: n.y,
3405
3470
  "font-size": V.value.plotLabels,
3406
3471
  "text-anchor": "end",
3407
3472
  fill: e.color,
3408
- innerHTML: j(De)({
3473
+ innerHTML: j(Ee)({
3409
3474
  content: e.name,
3410
3475
  fontSize: V.value.plotLabels,
3411
3476
  fill: e.color,
@@ -3414,14 +3479,14 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
3414
3479
  maxWords: 2
3415
3480
  }),
3416
3481
  style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3417
- }, null, 12, ar)) : x("", !0), n && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (D(), S("text", {
3482
+ }, null, 12, ar)) : S("", !0), n && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (D(), C("text", {
3418
3483
  key: 1,
3419
3484
  x: n.x + V.value.plotLabels,
3420
3485
  y: n.y,
3421
3486
  "font-size": V.value.plotLabels,
3422
3487
  "text-anchor": "start",
3423
3488
  fill: e.color,
3424
- innerHTML: j(De)({
3489
+ innerHTML: j(Ee)({
3425
3490
  content: e.name,
3426
3491
  fontSize: V.value.plotLabels,
3427
3492
  fill: e.color,
@@ -3430,13 +3495,13 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
3430
3495
  maxWords: 2
3431
3496
  }),
3432
3497
  style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3433
- }, null, 12, or)) : x("", !0)], 64))), 128))], 64))), 128)),
3434
- (D(!0), S(y, null, k([
3435
- ...As.value,
3498
+ }, null, 12, or)) : S("", !0)], 64))), 128))], 64))), 128)),
3499
+ (D(!0), C(b, null, k([
3500
+ ...Hs.value,
3436
3501
  ...$.value,
3437
- ...ks.value
3438
- ], (e, t) => (D(), S(y, { key: `progression-${t}` }, [Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(j(_e)(e.plots).trend) ? (D(), S("g", sr, [
3439
- C("defs", null, [C("marker", {
3502
+ ...Vs.value
3503
+ ], (e, t) => (D(), C(b, { key: `progression-${t}` }, [Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(j(ge)(e.plots).trend) ? (D(), C("g", sr, [
3504
+ w("defs", null, [w("marker", {
3440
3505
  id: `progression_arrow_${t}`,
3441
3506
  markerWidth: "9",
3442
3507
  markerHeight: "9",
@@ -3446,44 +3511,44 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
3446
3511
  refY: 7 / 2,
3447
3512
  orient: "auto",
3448
3513
  overflow: "visible"
3449
- }, [C("polygon", {
3514
+ }, [w("polygon", {
3450
3515
  points: "0,0 7,3.5 0,7",
3451
3516
  fill: e.color,
3452
3517
  stroke: H.value.chart.backgroundColor,
3453
3518
  "stroke-width": "1",
3454
3519
  "stroke-linejoin": "round"
3455
3520
  }, null, 8, lr)], 8, cr)]),
3456
- e.plots.length > 1 ? (D(), S("line", {
3521
+ e.plots.length > 1 ? (D(), C("line", {
3457
3522
  key: 0,
3458
- x1: j(_e)(e.plots).x1 + (e.type === "bar" ? Wo() : 0),
3459
- x2: j(_e)(e.plots).x2 + (e.type === "bar" ? Wo() : 0),
3460
- y1: j(_)(j(_e)(e.plots).y1),
3461
- y2: j(_)(j(_e)(e.plots).y2),
3523
+ x1: j(ge)(e.plots).x1 + (e.type === "bar" ? qo() : 0),
3524
+ x2: j(ge)(e.plots).x2 + (e.type === "bar" ? qo() : 0),
3525
+ y1: j(v)(j(ge)(e.plots).y1),
3526
+ y2: j(v)(j(ge)(e.plots).y2),
3462
3527
  "stroke-width": 1,
3463
3528
  stroke: H.value.chart.backgroundColor,
3464
3529
  "stroke-dasharray": 2,
3465
3530
  "stroke-linecap": "round",
3466
3531
  "stroke-linejoin": "round",
3467
3532
  "marker-end": `url(#progression_arrow_${t})`
3468
- }, null, 8, ur)) : x("", !0),
3469
- e.plots.length > 1 ? (D(), S("line", {
3533
+ }, null, 8, ur)) : S("", !0),
3534
+ e.plots.length > 1 ? (D(), C("line", {
3470
3535
  key: 1,
3471
- x1: j(_e)(e.plots).x1 + (e.type === "bar" ? Wo() : 0),
3472
- x2: j(_e)(e.plots).x2 + (e.type === "bar" ? Wo() : 0),
3473
- y1: j(_)(j(_e)(e.plots).y1),
3474
- y2: j(_)(j(_e)(e.plots).y2),
3536
+ x1: j(ge)(e.plots).x1 + (e.type === "bar" ? qo() : 0),
3537
+ x2: j(ge)(e.plots).x2 + (e.type === "bar" ? qo() : 0),
3538
+ y1: j(v)(j(ge)(e.plots).y1),
3539
+ y2: j(v)(j(ge)(e.plots).y2),
3475
3540
  "stroke-width": 1,
3476
3541
  stroke: e.color,
3477
3542
  "stroke-dasharray": 2,
3478
3543
  "stroke-linecap": "round",
3479
3544
  "stroke-linejoin": "round",
3480
3545
  "marker-end": `url(#progression_arrow_${t})`
3481
- }, null, 8, dr)) : x("", !0),
3482
- e.plots.length > 1 ? (D(), S("text", {
3546
+ }, null, 8, dr)) : S("", !0),
3547
+ e.plots.length > 1 ? (D(), C("text", {
3483
3548
  key: 2,
3484
3549
  "text-anchor": "middle",
3485
- x: j(_e)(e.plots).x2 + (e.type === "bar" ? Wo() : 0),
3486
- y: j(_e)(e.plots).y2 - 12,
3550
+ x: j(ge)(e.plots).x2 + (e.type === "bar" ? qo() : 0),
3551
+ y: j(ge)(e.plots).y2 - 12,
3487
3552
  "font-size": V.value.plotLabels,
3488
3553
  fill: e.color,
3489
3554
  stroke: H.value.chart.backgroundColor,
@@ -3492,44 +3557,44 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
3492
3557
  "stroke-linejoin": "round",
3493
3558
  "paint-order": "stroke fill"
3494
3559
  }, ut(j(a)({
3495
- v: j(_e)(e.plots).trend * 100,
3560
+ v: j(ge)(e.plots).trend * 100,
3496
3561
  s: "%",
3497
3562
  r: 2
3498
- })), 9, fr)) : x("", !0)
3499
- ])) : x("", !0)], 64))), 128)),
3500
- U.value.useIndividualScale && !U.value.isStacked ? (D(), S(y, { key: 13 }, [C("defs", null, [(D(!0), S(y, null, k(js.value, (e, t) => (D(), S("linearGradient", {
3563
+ })), 9, fr)) : S("", !0)
3564
+ ])) : S("", !0)], 64))), 128)),
3565
+ U.value.useIndividualScale && !U.value.isStacked ? (D(), C(b, { key: 13 }, [w("defs", null, [(D(!0), C(b, null, k(Us.value, (e, t) => (D(), C("linearGradient", {
3501
3566
  id: `individual_scale_gradient_${L.value}_${t}`,
3502
- x1: "0%",
3503
- x2: "100%",
3567
+ x1: J.value ? "100%" : "0%",
3568
+ x2: J.value ? "0%" : "100%",
3504
3569
  y1: "0%",
3505
3570
  y2: "0%"
3506
- }, [C("stop", {
3571
+ }, [w("stop", {
3507
3572
  offset: "0%",
3508
3573
  "stop-color": H.value.chart.backgroundColor,
3509
3574
  "stop-opacity": "0"
3510
- }, null, 8, mr), C("stop", {
3575
+ }, null, 8, mr), w("stop", {
3511
3576
  offset: "100%",
3512
3577
  "stop-color": e.color,
3513
3578
  "stop-opacity": "0.2"
3514
- }, null, 8, hr)], 8, pr))), 256))]), (D(!0), S(y, null, k(js.value, (e, t) => (D(), S("rect", {
3515
- x: e.x - H.value.chart.grid.labels.yAxis.labelWidth + Z.value - q.value.individualOffsetX,
3516
- y: q.value?.top,
3517
- width: H.value.chart.grid.labels.yAxis.labelWidth + q.value.individualOffsetX,
3518
- height: q.value.height < 0 ? 10 : q.value.height,
3579
+ }, null, 8, hr)], 8, pr))), 256))]), (D(!0), C(b, null, k(Us.value, (e, t) => (D(), C("rect", {
3580
+ x: J.value ? e.x : e.x - H.value.chart.grid.labels.yAxis.labelWidth - Y.value.individualOffsetX,
3581
+ y: Y.value?.top,
3582
+ width: (J.value, H.value.chart.grid.labels.yAxis.labelWidth + Y.value.individualOffsetX),
3583
+ height: Y.value.height < 0 ? 10 : Y.value.height,
3519
3584
  fill: P.value === e.groupId ? `url(#individual_scale_gradient_${L.value}_${t})` : "transparent",
3520
3585
  onMouseenter: (t) => P.value = e.groupId,
3521
3586
  onMouseleave: i[0] ||= (e) => P.value = null
3522
- }, null, 40, gr))), 256))], 64)) : x("", !0),
3523
- C("g", null, [H.value.chart.grid.labels.axis.yLabel && !U.value.useIndividualScale ? (D(), S("text", {
3587
+ }, null, 40, gr))), 256))], 64)) : S("", !0),
3588
+ w("g", null, [H.value.chart.grid.labels.axis.yLabel && !U.value.useIndividualScale ? (D(), C("text", {
3524
3589
  key: 0,
3525
3590
  ref_key: "yAxisLabel",
3526
3591
  ref: Ci,
3527
3592
  "font-size": V.value.yAxis,
3528
3593
  fill: H.value.chart.grid.labels.color,
3529
- transform: `translate(${H.value.chart.grid.labels.axis.fontSize}, ${q.value?.top + q.value.height / 2}) rotate(-90)`,
3594
+ transform: `translate(${J.value ? Y.value.right + Y.value.scaleLabelsOffset + H.value.chart.grid.labels.axis.yLabelOffsetX + V.value.yAxis : H.value.chart.grid.labels.axis.fontSize + H.value.chart.grid.labels.axis.yLabelOffsetX}, ${Y.value?.top + Y.value.height / 2}) rotate(-90)`,
3530
3595
  "text-anchor": "middle",
3531
3596
  style: { transition: "none" }
3532
- }, ut(H.value.chart.grid.labels.axis.yLabel), 9, _r)) : x("", !0), H.value.chart.grid.labels.axis.xLabel ? (D(), S("text", {
3597
+ }, ut(H.value.chart.grid.labels.axis.yLabel), 9, _r)) : S("", !0), H.value.chart.grid.labels.axis.xLabel ? (D(), C("text", {
3533
3598
  key: 1,
3534
3599
  ref_key: "xAxisLabel",
3535
3600
  ref: Si,
@@ -3538,32 +3603,32 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
3538
3603
  y: ji.value - 3,
3539
3604
  "font-size": V.value.yAxis,
3540
3605
  fill: H.value.chart.grid.labels.color
3541
- }, ut(H.value.chart.grid.labels.axis.xLabel), 9, vr)) : x("", !0)]),
3542
- H.value.chart.grid.labels.xAxisLabels.show ? (D(), S("g", {
3606
+ }, ut(H.value.chart.grid.labels.axis.xLabel), 9, vr)) : S("", !0)]),
3607
+ H.value.chart.grid.labels.xAxisLabels.show ? (D(), C("g", {
3543
3608
  key: 14,
3544
3609
  ref_key: "timeLabelsEls",
3545
3610
  ref: wi
3546
- }, [r.$slots["time-label"] ? (D(!0), S(y, { key: 0 }, k(vo.value, (e, t) => A(r.$slots, "time-label", rt({
3611
+ }, [r.$slots["time-label"] ? (D(!0), C(b, { key: 0 }, k(bo.value, (e, t) => A(r.$slots, "time-label", nt({
3547
3612
  key: `time_label_${e.id}`,
3548
3613
  ref_for: !0
3549
3614
  }, {
3550
- x: q.value?.left + q.value.width / Y.value * t + q.value.width / Y.value / 2,
3551
- y: q.value?.bottom,
3615
+ x: xs(t),
3616
+ y: Y.value?.bottom,
3552
3617
  fontSize: V.value.xAxis,
3553
3618
  fill: H.value.chart.grid.labels.xAxisLabels.color,
3554
- transform: `translate(${q.value?.left + q.value.width / Y.value * t + q.value.width / Y.value / 2}, ${q.value?.bottom + V.value.xAxis * 1.3 + H.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${H.value.chart.grid.labels.xAxisLabels.rotation})`,
3619
+ transform: `translate(${xs(t)}, ${Y.value?.bottom + V.value.xAxis * 1.3 + H.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${H.value.chart.grid.labels.xAxisLabels.rotation})`,
3555
3620
  absoluteIndex: e.absoluteIndex,
3556
3621
  content: e.text,
3557
3622
  textAnchor: H.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : H.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
3558
3623
  show: e && e.text
3559
- }), void 0, !0)), 128)) : (D(!0), S(y, { key: 1 }, k(vo.value, (e, t) => (D(), S("g", { key: `time_label_${t}` }, [e && e.text ? (D(), S(y, { key: 0 }, [String(e.text).includes("\n") ? (D(), S("text", {
3624
+ }), void 0, !0)), 128)) : (D(!0), C(b, { key: 1 }, k(bo.value, (e, t) => (D(), C("g", { key: `time_label_${t}` }, [e && e.text ? (D(), C(b, { key: 0 }, [String(e.text).includes("\n") ? (D(), C("text", {
3560
3625
  key: 1,
3561
3626
  class: "vue-data-ui-time-label",
3562
3627
  "text-anchor": H.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : H.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
3563
3628
  "font-size": V.value.xAxis,
3564
3629
  fill: H.value.chart.grid.labels.xAxisLabels.color,
3565
- transform: `translate(${q.value?.left + q.value.width / Y.value * t + q.value.width / Y.value / 2}, ${q.value?.bottom + V.value.xAxis * 1.5}), rotate(${H.value.chart.grid.labels.xAxisLabels.rotation})`,
3566
- style: E({ cursor: oo() && _a.value ? "pointer" : "default" }),
3630
+ transform: `translate(${xs(t)}, ${Y.value?.bottom + V.value.xAxis * 1.5}), rotate(${H.value.chart.grid.labels.xAxisLabels.rotation})`,
3631
+ style: E({ cursor: co() && ya.value ? "pointer" : "default" }),
3567
3632
  innerHTML: j(n)({
3568
3633
  content: String(e.text),
3569
3634
  fontSize: V.value.xAxis,
@@ -3571,19 +3636,19 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
3571
3636
  x: 0,
3572
3637
  y: 0
3573
3638
  }),
3574
- onClick: () => bo(e, t)
3575
- }, null, 12, br)) : (D(), S("text", {
3639
+ onClick: () => So(e, t)
3640
+ }, null, 12, br)) : (D(), C("text", {
3576
3641
  key: 0,
3577
3642
  class: "vue-data-ui-time-label",
3578
3643
  "text-anchor": H.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : H.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
3579
3644
  "font-size": V.value.xAxis,
3580
3645
  fill: H.value.chart.grid.labels.xAxisLabels.color,
3581
- transform: `translate(${q.value?.left + q.value.width / Y.value * t + q.value.width / Y.value / 2}, ${q.value?.bottom + V.value.xAxis * 1.5}), rotate(${H.value.chart.grid.labels.xAxisLabels.rotation})`,
3582
- style: E({ cursor: oo() && _a.value ? "pointer" : "default" }),
3583
- onClick: () => bo(e, t)
3584
- }, ut(e.text || ""), 13, yr))], 64)) : x("", !0)]))), 128))], 512)) : x("", !0),
3585
- Es.value.length && !U.value.isStacked ? (D(), S("g", xr, [(D(!0), S(y, null, k(Es.value, (e) => (D(), S("g", { key: e.uid }, [
3586
- e.yTop && e.show && isFinite(e.yTop) ? (D(), S("line", {
3646
+ transform: `translate(${xs(t)}, ${Y.value?.bottom + V.value.xAxis * 1.5}), rotate(${H.value.chart.grid.labels.xAxisLabels.rotation})`,
3647
+ style: E({ cursor: co() && ya.value ? "pointer" : "default" }),
3648
+ onClick: () => So(e, t)
3649
+ }, ut(e.text || ""), 13, yr))], 64)) : S("", !0)]))), 128))], 512)) : S("", !0),
3650
+ Rs.value.length && !U.value.isStacked ? (D(), C("g", xr, [(D(!0), C(b, null, k(Rs.value, (e) => (D(), C("g", { key: e.uid }, [
3651
+ e.yTop && e.show && isFinite(e.yTop) ? (D(), C("line", {
3587
3652
  key: 0,
3588
3653
  x1: e.x1,
3589
3654
  y1: e.yTop,
@@ -3594,8 +3659,8 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
3594
3659
  "stroke-dasharray": e.config.line.strokeDasharray,
3595
3660
  "stroke-linecap": "round",
3596
3661
  style: { animation: "none !important" }
3597
- }, null, 8, Sr)) : x("", !0),
3598
- e.yBottom && e.show && isFinite(e.yBottom) ? (D(), S("line", {
3662
+ }, null, 8, Sr)) : S("", !0),
3663
+ e.yBottom && e.show && isFinite(e.yBottom) ? (D(), C("line", {
3599
3664
  key: 1,
3600
3665
  x1: e.x1,
3601
3666
  y1: e.yBottom,
@@ -3606,24 +3671,24 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
3606
3671
  "stroke-dasharray": e.config.line.strokeDasharray,
3607
3672
  "stroke-linecap": "round",
3608
3673
  style: { animation: "none !important" }
3609
- }, null, 8, Cr)) : x("", !0),
3610
- e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (D(), S("rect", {
3674
+ }, null, 8, Cr)) : S("", !0),
3675
+ e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (D(), C("rect", {
3611
3676
  key: 2,
3612
3677
  y: Math.min(e.yTop, e.yBottom),
3613
3678
  x: e.x1,
3614
- width: q.value.width,
3615
- height: j(v)(e.areaHeight, 0),
3616
- fill: j(he)(e.config.area.fill, e.config.area.opacity),
3679
+ width: Y.value.width,
3680
+ height: j(y)(e.areaHeight, 0),
3681
+ fill: j(me)(e.config.area.fill, e.config.area.opacity),
3617
3682
  style: { animation: "none !important" }
3618
- }, null, 8, wr)) : x("", !0),
3619
- e.config.label.text && e.show && isFinite(e._box.y) ? (D(), S("rect", rt({
3683
+ }, null, 8, wr)) : S("", !0),
3684
+ e.config.label.text && e.show && isFinite(e._box.y) ? (D(), C("rect", nt({
3620
3685
  key: 3,
3621
3686
  class: "vue-ui-xy-annotation-label-box"
3622
3687
  }, { ref_for: !0 }, e._box, { style: {
3623
3688
  animation: "none !important",
3624
3689
  transition: "none !important"
3625
- } }), null, 16)) : x("", !0),
3626
- e.config.label.text && e.show && isFinite(e._text.y) ? (D(), S("text", {
3690
+ } }), null, 16)) : S("", !0),
3691
+ e.config.label.text && e.show && isFinite(e._text.y) ? (D(), C("text", {
3627
3692
  key: 4,
3628
3693
  id: e.id,
3629
3694
  class: "vue-ui-xy-annotation-label",
@@ -3632,70 +3697,70 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
3632
3697
  "font-size": e.config.label.fontSize,
3633
3698
  fill: e.config.label.color,
3634
3699
  "text-anchor": e.config.label.textAnchor
3635
- }, ut(e.config.label.text), 9, Tr)) : x("", !0)
3636
- ]))), 128))])) : x("", !0),
3637
- H.value.chart.timeTag.show && (![null, void 0].includes(B.value) || ![null, void 0].includes(R.value)) ? (D(), S("g", Er, [(D(), S("foreignObject", {
3638
- x: tc(),
3639
- y: q.value?.bottom,
3700
+ }, ut(e.config.label.text), 9, Tr)) : S("", !0)
3701
+ ]))), 128))])) : S("", !0),
3702
+ H.value.chart.timeTag.show && (![null, void 0].includes(B.value) || ![null, void 0].includes(R.value)) ? (D(), C("g", Er, [(D(), C("foreignObject", {
3703
+ x: pc(),
3704
+ y: Y.value?.bottom,
3640
3705
  width: "200",
3641
3706
  height: "40",
3642
3707
  style: { overflow: "visible !important" }
3643
- }, [C("div", {
3708
+ }, [w("div", {
3644
3709
  ref_key: "timeTagEl",
3645
- ref: Zs,
3710
+ ref: lc,
3646
3711
  class: "vue-ui-xy-time-tag",
3647
3712
  style: E(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${H.value.chart.timeTag.backgroundColor};color:${H.value.chart.timeTag.color};font-size:${H.value.chart.timeTag.fontSize}px`),
3648
- innerHTML: nc.value
3649
- }, null, 12, Or)], 8, Dr)), C("circle", {
3650
- cx: q.value?.left + q.value.width / Y.value * ((B.value === null ? 0 : B.value) || (R.value === null ? 0 : R.value)) + q.value.width / Y.value / 2,
3651
- cy: q.value?.bottom,
3713
+ innerHTML: mc.value
3714
+ }, null, 12, Or)], 8, Dr)), w("circle", {
3715
+ cx: xs((B.value === null ? 0 : B.value) || (R.value === null ? 0 : R.value)),
3716
+ cy: Y.value?.bottom,
3652
3717
  r: H.value.chart.timeTag.circleMarker.radius,
3653
3718
  fill: H.value.chart.timeTag.circleMarker.color
3654
- }, null, 8, kr)])) : x("", !0)
3655
- ])) : x("", !0),
3656
- ka.value ? (D(), S("rect", rt({ key: 2 }, Ma.value, {
3657
- "data-start": G.value.start,
3658
- "data-end": G.value.end
3659
- }), null, 16, Ar)) : x("", !0),
3719
+ }, null, 8, kr)])) : S("", !0)
3720
+ ])) : S("", !0),
3721
+ Aa.value ? (D(), C("rect", nt({ key: 2 }, Na.value, {
3722
+ "data-start": K.value.start,
3723
+ "data-end": K.value.end
3724
+ }), null, 16, Ar)) : S("", !0),
3660
3725
  A(r.$slots, "svg", { svg: {
3661
3726
  ...la.value,
3662
- slicer: G.value,
3663
- isPrintingImg: j(Na) || j(Pa) || Zi.value,
3727
+ slicer: K.value,
3728
+ isPrintingImg: j(Pa) || j(Fa) || Zi.value,
3664
3729
  isPrintingSvg: Qi.value,
3665
3730
  data: [
3666
3731
  ...$.value,
3667
- ...ks.value,
3668
- ...As.value
3732
+ ...Vs.value,
3733
+ ...Hs.value
3669
3734
  ],
3670
- drawingArea: q.value
3735
+ drawingArea: Y.value
3671
3736
  } }, void 0, !0)
3672
- ], 512)], 46, St)), r.$slots.hint ? (D(), S("div", jr, [A(r.$slots, "hint", T(w({
3737
+ ], 512)], 46, St)), r.$slots.hint ? (D(), C("div", jr, [A(r.$slots, "hint", at(T({
3673
3738
  hint: H.value.a11y.translations.keyboardNavigation,
3674
- isVisible: yc.value
3675
- })), void 0, !0)])) : x("", !0)]),
3676
- r.$slots.watermark ? (D(), S("div", Mr, [A(r.$slots, "watermark", T(w({ isPrinting: j(Na) || j(Pa) || Zi.value || Qi.value })), void 0, !0)])) : x("", !0),
3677
- (D(!0), S(y, null, k($.value, (e, t) => (D(), S(y, { key: `tag_line_${e.id}` }, [(D(!0), S(y, null, k(e.plots, (n, r) => (D(), S(y, { key: `tag_line_${t}_${r}` }, [[
3739
+ isVisible: jc.value
3740
+ })), void 0, !0)])) : S("", !0)]),
3741
+ r.$slots.watermark ? (D(), C("div", Mr, [A(r.$slots, "watermark", at(T({ isPrinting: j(Pa) || j(Fa) || Zi.value || Qi.value })), void 0, !0)])) : S("", !0),
3742
+ (D(!0), C(b, null, k($.value, (e, t) => (D(), C(b, { key: `tag_line_${e.id}` }, [(D(!0), C(b, null, k(e.plots, (n, r) => (D(), C(b, { key: `tag_line_${t}_${r}` }, [[
3678
3743
  R.value,
3679
3744
  B.value,
3680
3745
  Ri.value
3681
- ].includes(r) && e.useTag && e.useTag === "end" && H.value.line.tag.followValue ? (D(), S("div", {
3746
+ ].includes(r) && e.useTag && e.useTag === "end" && H.value.line.tag.followValue ? (D(), C("div", {
3682
3747
  key: 0,
3683
3748
  ref_for: !0,
3684
- ref: (e) => lo(t, r, e, "right", "line"),
3749
+ ref: (e) => fo(t, r, e, "right", "line"),
3685
3750
  class: "vue-ui-xy-tag",
3686
3751
  "data-tag": "right",
3687
3752
  style: E({
3688
3753
  position: "fixed",
3689
3754
  top: j(p)({
3690
3755
  svgElement: z.value,
3691
- x: q.value?.right + H.value.line.tag.fontSize / 1.5,
3756
+ x: Y.value?.right + H.value.line.tag.fontSize / 1.5,
3692
3757
  y: n.y,
3693
3758
  element: qi.value[`${t}_${r}_right_line`],
3694
3759
  position: "right"
3695
3760
  })?.top + "px",
3696
3761
  left: j(p)({
3697
3762
  svgElement: z.value,
3698
- x: q.value?.right + H.value.line.tag.fontSize / 1.5,
3763
+ x: Y.value?.right + H.value.line.tag.fontSize / 1.5,
3699
3764
  y: n.y,
3700
3765
  element: qi.value[`${t}_${r}_right_line`],
3701
3766
  position: "right"
@@ -3703,44 +3768,44 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
3703
3768
  height: "fit-content",
3704
3769
  width: "fit-content",
3705
3770
  background: e.color,
3706
- color: j(Se)(e.color),
3771
+ color: j(xe)(e.color),
3707
3772
  padding: "0 6px",
3708
3773
  fontSize: H.value.line.tag.fontSize + "px",
3709
3774
  opacity: 1
3710
3775
  })
3711
- }, [(D(), S("svg", Nr, [C("path", {
3776
+ }, [(D(), C("svg", Nr, [w("path", {
3712
3777
  d: "M 0,10 10,0 10,20 Z",
3713
3778
  fill: e.color,
3714
3779
  stroke: "none"
3715
- }, null, 8, Pr)])), C("div", {
3780
+ }, null, 8, Pr)])), w("div", {
3716
3781
  class: "vue-ui-xy-tag-content",
3717
- innerHTML: j(pe)(H.value.line.tag.formatter, n.value, e.name, {
3782
+ innerHTML: j(fe)(H.value.line.tag.formatter, n.value, e.name, {
3718
3783
  datapoint: n,
3719
3784
  seriesIndex: r,
3720
3785
  serieName: e.name
3721
3786
  })
3722
- }, null, 8, Fr)], 4)) : x("", !0), [
3787
+ }, null, 8, Fr)], 4)) : S("", !0), [
3723
3788
  R.value,
3724
3789
  B.value,
3725
3790
  Ri.value
3726
- ].includes(r) && e.useTag && e.useTag === "start" && H.value.line.tag.followValue ? (D(), S("div", {
3791
+ ].includes(r) && e.useTag && e.useTag === "start" && H.value.line.tag.followValue ? (D(), C("div", {
3727
3792
  key: 1,
3728
3793
  ref_for: !0,
3729
- ref: (e) => lo(t, r, e, "left", "line"),
3794
+ ref: (e) => fo(t, r, e, "left", "line"),
3730
3795
  class: "vue-ui-xy-tag",
3731
3796
  "data-tag": "left",
3732
3797
  style: E({
3733
3798
  position: "fixed",
3734
3799
  top: j(p)({
3735
3800
  svgElement: z.value,
3736
- x: q.value?.left - H.value.line.tag.fontSize / 1.5,
3801
+ x: Y.value?.left - H.value.line.tag.fontSize / 1.5,
3737
3802
  y: n.y,
3738
3803
  element: qi.value[`${t}_${r}_left_line`],
3739
3804
  position: "left"
3740
3805
  })?.top + "px",
3741
3806
  left: j(p)({
3742
3807
  svgElement: z.value,
3743
- x: q.value?.left - H.value.line.tag.fontSize / 1.5,
3808
+ x: Y.value?.left - H.value.line.tag.fontSize / 1.5,
3744
3809
  y: n.y,
3745
3810
  element: qi.value[`${t}_${r}_left_line`],
3746
3811
  position: "left"
@@ -3748,45 +3813,45 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
3748
3813
  height: "fit-content",
3749
3814
  width: "fit-content",
3750
3815
  background: e.color,
3751
- color: j(Se)(e.color),
3816
+ color: j(xe)(e.color),
3752
3817
  padding: "0 6px",
3753
3818
  fontSize: H.value.line.tag.fontSize + "px",
3754
3819
  opacity: 1
3755
3820
  })
3756
- }, [(D(), S("svg", Ir, [C("path", {
3821
+ }, [(D(), C("svg", Ir, [w("path", {
3757
3822
  d: "M 0,0 10,10 0,20 Z",
3758
3823
  fill: e.color,
3759
3824
  stroke: "none"
3760
- }, null, 8, Lr)])), C("div", {
3825
+ }, null, 8, Lr)])), w("div", {
3761
3826
  class: "vue-ui-xy-tag-content",
3762
- innerHTML: j(pe)(H.value.line.tag.formatter, n.value, e.name, {
3827
+ innerHTML: j(fe)(H.value.line.tag.formatter, n.value, e.name, {
3763
3828
  datapoint: n,
3764
3829
  seriesIndex: r,
3765
3830
  serieName: e.name
3766
3831
  })
3767
- }, null, 8, Rr)], 4)) : x("", !0)], 64))), 128))], 64))), 128)),
3768
- (D(!0), S(y, null, k(As.value, (e, t) => (D(), S(y, { key: `tag_plot_${e.id}` }, [(D(!0), S(y, null, k(e.plots, (n, r) => (D(), S(y, { key: `tag_plot_${t}_${r}` }, [[
3832
+ }, null, 8, Rr)], 4)) : S("", !0)], 64))), 128))], 64))), 128)),
3833
+ (D(!0), C(b, null, k(Hs.value, (e, t) => (D(), C(b, { key: `tag_plot_${e.id}` }, [(D(!0), C(b, null, k(e.plots, (n, r) => (D(), C(b, { key: `tag_plot_${t}_${r}` }, [[
3769
3834
  R.value,
3770
3835
  B.value,
3771
3836
  Ri.value
3772
- ].includes(r) && e.useTag && e.useTag === "end" && H.value.plot.tag.followValue ? (D(), S("div", {
3837
+ ].includes(r) && e.useTag && e.useTag === "end" && H.value.plot.tag.followValue ? (D(), C("div", {
3773
3838
  key: 0,
3774
3839
  ref_for: !0,
3775
- ref: (e) => lo(t, r, e, "right", "plot"),
3840
+ ref: (e) => fo(t, r, e, "right", "plot"),
3776
3841
  class: "vue-ui-xy-tag",
3777
3842
  "data-tag": "right",
3778
3843
  style: E({
3779
3844
  position: "fixed",
3780
3845
  top: j(p)({
3781
3846
  svgElement: z.value,
3782
- x: q.value?.right + H.value.plot.tag.fontSize / 1.5,
3847
+ x: Y.value?.right + H.value.plot.tag.fontSize / 1.5,
3783
3848
  y: n.y,
3784
3849
  element: qi.value[`${t}_${r}_right_plot`],
3785
3850
  position: "right"
3786
3851
  })?.top + "px",
3787
3852
  left: j(p)({
3788
3853
  svgElement: z.value,
3789
- x: q.value?.right + H.value.plot.tag.fontSize / 1.5,
3854
+ x: Y.value?.right + H.value.plot.tag.fontSize / 1.5,
3790
3855
  y: n.y,
3791
3856
  element: qi.value[`${t}_${r}_right_plot`],
3792
3857
  position: "right"
@@ -3794,44 +3859,44 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
3794
3859
  height: "fit-content",
3795
3860
  width: "fit-content",
3796
3861
  background: e.color,
3797
- color: j(Se)(e.color),
3862
+ color: j(xe)(e.color),
3798
3863
  padding: "0 6px",
3799
3864
  fontSize: H.value.plot.tag.fontSize + "px",
3800
3865
  opacity: 1
3801
3866
  })
3802
- }, [(D(), S("svg", zr, [C("path", {
3867
+ }, [(D(), C("svg", zr, [w("path", {
3803
3868
  d: "M 0,10 10,0 10,20 Z",
3804
3869
  fill: e.color,
3805
3870
  stroke: "none"
3806
- }, null, 8, Br)])), C("div", {
3871
+ }, null, 8, Br)])), w("div", {
3807
3872
  class: "vue-ui-xy-tag-content",
3808
- innerHTML: j(pe)(H.value.plot.tag.formatter, n.value, e.name, {
3873
+ innerHTML: j(fe)(H.value.plot.tag.formatter, n.value, e.name, {
3809
3874
  datapoint: n,
3810
3875
  seriesIndex: r,
3811
3876
  serieName: e.name
3812
3877
  })
3813
- }, null, 8, Vr)], 4)) : x("", !0), [
3878
+ }, null, 8, Vr)], 4)) : S("", !0), [
3814
3879
  R.value,
3815
3880
  B.value,
3816
3881
  Ri.value
3817
- ].includes(r) && e.useTag && e.useTag === "start" && H.value.plot.tag.followValue ? (D(), S("div", {
3882
+ ].includes(r) && e.useTag && e.useTag === "start" && H.value.plot.tag.followValue ? (D(), C("div", {
3818
3883
  key: 1,
3819
3884
  ref_for: !0,
3820
- ref: (e) => lo(t, r, e, "left", "plot"),
3885
+ ref: (e) => fo(t, r, e, "left", "plot"),
3821
3886
  class: "vue-ui-xy-tag",
3822
3887
  "data-tag": "left",
3823
3888
  style: E({
3824
3889
  position: "fixed",
3825
3890
  top: j(p)({
3826
3891
  svgElement: z.value,
3827
- x: q.value?.left - H.value.plot.tag.fontSize / 1.5,
3892
+ x: Y.value?.left - H.value.plot.tag.fontSize / 1.5,
3828
3893
  y: n.y,
3829
3894
  element: qi.value[`${t}_${r}_left_plot`],
3830
3895
  position: "left"
3831
3896
  })?.top + "px",
3832
3897
  left: j(p)({
3833
3898
  svgElement: z.value,
3834
- x: q.value?.left - H.value.plot.tag.fontSize / 1.5,
3899
+ x: Y.value?.left - H.value.plot.tag.fontSize / 1.5,
3835
3900
  y: n.y,
3836
3901
  element: qi.value[`${t}_${r}_left_plot`],
3837
3902
  position: "left"
@@ -3839,48 +3904,48 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
3839
3904
  height: "fit-content",
3840
3905
  width: "fit-content",
3841
3906
  background: e.color,
3842
- color: j(Se)(e.color),
3907
+ color: j(xe)(e.color),
3843
3908
  padding: "0 6px",
3844
3909
  fontSize: H.value.plot.tag.fontSize + "px",
3845
3910
  opacity: 1
3846
3911
  })
3847
- }, [(D(), S("svg", Hr, [C("path", {
3912
+ }, [(D(), C("svg", Hr, [w("path", {
3848
3913
  d: "M 0,0 10,10 0,20 Z",
3849
3914
  fill: e.color,
3850
3915
  stroke: "none"
3851
- }, null, 8, Ur)])), C("div", {
3916
+ }, null, 8, Ur)])), w("div", {
3852
3917
  class: "vue-ui-xy-tag-content",
3853
- innerHTML: j(pe)(H.value.plot.tag.formatter, n.value, e.name, {
3918
+ innerHTML: j(fe)(H.value.plot.tag.formatter, n.value, e.name, {
3854
3919
  datapoint: n,
3855
3920
  seriesIndex: r,
3856
3921
  serieName: e.name
3857
3922
  })
3858
- }, null, 8, Wr)], 4)) : x("", !0)], 64))), 128))], 64))), 128)),
3859
- H.value.chart.zoom.show && W.value > 6 && ga.value && Do.value ? (D(), Ze(Ke, {
3923
+ }, null, 8, Wr)], 4)) : S("", !0)], 64))), 128))], 64))), 128)),
3924
+ H.value.chart.zoom.show && G.value > 6 && va.value && ko.value ? (D(), Xe(Ge, {
3860
3925
  key: 6,
3861
3926
  ref_key: "chartSlicer",
3862
3927
  ref: _i,
3863
3928
  uuid: L.value,
3864
- allMinimaps: Cs.value,
3929
+ allMinimaps: Fs.value,
3865
3930
  background: H.value.chart.zoom.color,
3866
3931
  borderColor: H.value.chart.backgroundColor,
3867
3932
  customFormat: H.value.chart.zoom.customFormat,
3868
3933
  cutNullValues: H.value.line.cutNullValues,
3869
3934
  enableRangeHandles: H.value.chart.zoom.enableRangeHandles,
3870
3935
  enableSelectionDrag: H.value.chart.zoom.enableSelectionDrag,
3871
- end: G.value.end,
3936
+ end: K.value.end,
3872
3937
  focusOnDrag: H.value.chart.zoom.focusOnDrag,
3873
3938
  focusRangeRatio: H.value.chart.zoom.focusRangeRatio,
3874
3939
  fontSize: H.value.chart.zoom.fontSize,
3875
3940
  useResetSlot: H.value.chart.zoom.useResetSlot,
3876
3941
  immediate: !H.value.chart.zoom.preview.enable,
3877
3942
  inputColor: H.value.chart.zoom.color,
3878
- isPreview: ka.value,
3879
- labelLeft: J.value[0] ? J.value[0].text : "",
3880
- labelRight: J.value.at(-1) ? J.value.at(-1).text : "",
3881
- max: W.value,
3943
+ isPreview: Aa.value,
3944
+ labelLeft: X.value[0] ? X.value[0].text : "",
3945
+ labelRight: X.value.at(-1) ? X.value.at(-1).text : "",
3946
+ max: G.value,
3882
3947
  min: 0,
3883
- minimap: Ss.value,
3948
+ minimap: Ps.value,
3884
3949
  minimapCompact: H.value.chart.zoom.minimap.compact,
3885
3950
  minimapFrameColor: H.value.chart.zoom.minimap.frameColor,
3886
3951
  minimapIndicatorColor: H.value.chart.zoom.minimap.indicatorColor,
@@ -3890,18 +3955,18 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
3890
3955
  minimapSelectedColorOpacity: H.value.chart.zoom.minimap.selectedColorOpacity,
3891
3956
  minimapSelectedIndex: B.value,
3892
3957
  minimapSelectionRadius: H.value.chart.zoom.minimap.selectionRadius,
3893
- preciseLabels: Ls.value.length ? Ls.value : mo.value,
3894
- refreshEndPoint: H.value.chart.zoom.endIndex === null ? Math.max(...e.dataset.map((e) => Da(e.series).length)) : H.value.chart.zoom.endIndex + 1,
3958
+ preciseLabels: Ys.value.length ? Ys.value : go.value,
3959
+ refreshEndPoint: H.value.chart.zoom.endIndex === null ? Math.max(...e.dataset.map((e) => Oa(e.series).length)) : H.value.chart.zoom.endIndex + 1,
3895
3960
  refreshStartPoint: H.value.chart.zoom.startIndex === null ? 0 : H.value.chart.zoom.startIndex,
3896
3961
  selectColor: H.value.chart.zoom.highlightColor,
3897
- selectedSeries: ws.value,
3962
+ selectedSeries: Is.value,
3898
3963
  smoothMinimap: H.value.chart.zoom.minimap.smooth,
3899
- start: G.value.start,
3964
+ start: K.value.start,
3900
3965
  textColor: H.value.chart.color,
3901
- timeLabels: mo.value,
3966
+ timeLabels: go.value,
3902
3967
  usePreciseLabels: H.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !H.value.chart.zoom.useDefaultFormat,
3903
- valueEnd: G.value.end,
3904
- valueStart: G.value.start,
3968
+ valueEnd: K.value.end,
3969
+ valueStart: K.value.start,
3905
3970
  verticalHandles: H.value.chart.zoom.minimap.verticalHandles,
3906
3971
  minScale: H.value.chart.grid.labels.yAxis.scaleMin,
3907
3972
  maxScale: H.value.chart.grid.labels.yAxis.scaleMax,
@@ -3913,53 +3978,53 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
3913
3978
  handleBorderColor: H.value.chart.zoom.minimap.handleBorderColor,
3914
3979
  handleFill: H.value.chart.zoom.minimap.handleFill,
3915
3980
  handleWidth: H.value.chart.zoom.minimap.handleWidth,
3916
- isCursorPointer: _a.value,
3917
- onFutureEnd: i[1] ||= (e) => Aa("end", e),
3918
- onFutureStart: i[2] ||= (e) => Aa("start", e),
3919
- onReset: Fo,
3920
- onTrapMouse: xo,
3921
- "onUpdate:end": Po,
3922
- "onUpdate:start": No
3981
+ isCursorPointer: ya.value,
3982
+ onFutureEnd: i[1] ||= (e) => ja("end", e),
3983
+ onFutureStart: i[2] ||= (e) => ja("start", e),
3984
+ onReset: Lo,
3985
+ onTrapMouse: Co,
3986
+ "onUpdate:end": Io,
3987
+ "onUpdate:start": Fo
3923
3988
  }, {
3924
- "reset-action": M(({ reset: e }) => [A(r.$slots, "reset-action", T(w({ reset: e })), void 0, !0)]),
3989
+ "reset-action": M(({ reset: e }) => [A(r.$slots, "reset-action", at(T({ reset: e })), void 0, !0)]),
3925
3990
  _: 3
3926
- }, 8, /* @__PURE__ */ "uuid.allMinimaps.background.borderColor.customFormat.cutNullValues.enableRangeHandles.enableSelectionDrag.end.focusOnDrag.focusRangeRatio.fontSize.useResetSlot.immediate.inputColor.isPreview.labelLeft.labelRight.max.minimap.minimapCompact.minimapFrameColor.minimapIndicatorColor.minimapLineColor.minimapMerged.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectedIndex.minimapSelectionRadius.preciseLabels.refreshEndPoint.refreshStartPoint.selectColor.selectedSeries.smoothMinimap.start.textColor.timeLabels.usePreciseLabels.valueEnd.valueStart.verticalHandles.minScale.maxScale.maxWidth.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth.isCursorPointer".split("."))) : x("", !0),
3927
- C("div", { id: `legend-bottom-${L.value}` }, null, 8, Gr),
3928
- Yi.value && (H.value.chart.legend.show || r.$slots.legend) ? (D(), Ze(Xe, {
3991
+ }, 8, /* @__PURE__ */ "uuid.allMinimaps.background.borderColor.customFormat.cutNullValues.enableRangeHandles.enableSelectionDrag.end.focusOnDrag.focusRangeRatio.fontSize.useResetSlot.immediate.inputColor.isPreview.labelLeft.labelRight.max.minimap.minimapCompact.minimapFrameColor.minimapIndicatorColor.minimapLineColor.minimapMerged.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectedIndex.minimapSelectionRadius.preciseLabels.refreshEndPoint.refreshStartPoint.selectColor.selectedSeries.smoothMinimap.start.textColor.timeLabels.usePreciseLabels.valueEnd.valueStart.verticalHandles.minScale.maxScale.maxWidth.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth.isCursorPointer".split("."))) : S("", !0),
3992
+ w("div", { id: `legend-bottom-${L.value}` }, null, 8, Gr),
3993
+ Yi.value && (H.value.chart.legend.show || r.$slots.legend) ? (D(), Xe(Ye, {
3929
3994
  key: 7,
3930
3995
  to: H.value.chart.legend.position === "top" ? `#legend-top-${L.value}` : `#legend-bottom-${L.value}`
3931
- }, [C("div", {
3996
+ }, [w("div", {
3932
3997
  ref_key: "chartLegend",
3933
3998
  ref: vi
3934
- }, [A(r.$slots, "legend", { legend: Ya.value }, () => [H.value.chart.legend.show ? (D(), S("div", {
3999
+ }, [A(r.$slots, "legend", { legend: Xa.value }, () => [H.value.chart.legend.show ? (D(), C("div", {
3935
4000
  key: 0,
3936
4001
  class: "vue-ui-xy-legend",
3937
4002
  style: E({ fontSize: `var(--legend-font-size, ${H.value.chart.legend.fontSize ?? 14}px)` })
3938
- }, [H.value.chart.legend.selectAllToggle.show && Ya.value.length > 2 && !j(Sa) ? (D(), Ze(Je, {
4003
+ }, [H.value.chart.legend.selectAllToggle.show && Xa.value.length > 2 && !j(wa) ? (D(), Xe(qe, {
3939
4004
  key: 0,
3940
4005
  backgroundColor: H.value.chart.legend.selectAllToggle.backgroundColor,
3941
4006
  color: H.value.chart.legend.selectAllToggle.color,
3942
4007
  fontSize: H.value.chart.legend.fontSize,
3943
4008
  checked: I.value.length > 0,
3944
- onToggle: rs
4009
+ onToggle: os
3945
4010
  }, null, 8, [
3946
4011
  "backgroundColor",
3947
4012
  "color",
3948
4013
  "fontSize",
3949
4014
  "checked"
3950
- ])) : x("", !0), (D(!0), S(y, null, k(Ya.value, (e, t) => (D(), S("div", {
4015
+ ])) : S("", !0), (D(!0), C(b, null, k(Xa.value, (e, t) => (D(), C("div", {
3951
4016
  key: `div_legend_item_${t}`,
3952
- onClick: (t) => as(e),
3953
- onKeydown: (t) => is(t, e),
4017
+ onClick: (t) => cs(e),
4018
+ onKeydown: (t) => ss(t, e),
3954
4019
  role: "button",
3955
4020
  tabindex: "0",
3956
- class: at({
3957
- "vue-ui-xy-legend-item-alone": Ya.value.length === 1,
4021
+ class: it({
4022
+ "vue-ui-xy-legend-item-alone": Xa.value.length === 1,
3958
4023
  "vue-ui-xy-legend-item": !0,
3959
4024
  "vue-ui-xy-legend-item-segregated": I.value.includes(e.id)
3960
4025
  }),
3961
- style: E({ cursor: _a.value ? "pointer" : "default" })
3962
- }, [Pi.value[e.type] === "line" ? (D(), S("svg", qr, [C("rect", {
4026
+ style: E({ cursor: ya.value ? "pointer" : "default" })
4027
+ }, [Pi.value[e.type] === "line" ? (D(), C("svg", qr, [w("rect", {
3963
4028
  x: "0",
3964
4029
  y: "7.5",
3965
4030
  rx: "1.5",
@@ -3968,7 +4033,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
3968
4033
  height: "3",
3969
4034
  width: "20",
3970
4035
  fill: e.color
3971
- }, null, 8, Jr), et(We, {
4036
+ }, null, 8, Jr), $e(Ue, {
3972
4037
  plot: {
3973
4038
  x: 10,
3974
4039
  y: 9
@@ -3989,7 +4054,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
3989
4054
  "color",
3990
4055
  "shape",
3991
4056
  "stroke"
3992
- ])])) : Pi.value[e.type] === "bar" ? (D(), S("svg", Yr, [Pi.value[e.type] === "bar" && r.$slots.pattern ? (D(), S("rect", {
4057
+ ])])) : Pi.value[e.type] === "bar" ? (D(), C("svg", Yr, [Pi.value[e.type] === "bar" && r.$slots.pattern ? (D(), C("rect", {
3993
4058
  key: 0,
3994
4059
  x: "4",
3995
4060
  y: "4",
@@ -3998,7 +4063,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
3998
4063
  width: "32",
3999
4064
  stroke: "none",
4000
4065
  fill: e.color
4001
- }, null, 8, Xr)) : x("", !0), Pi.value[e.type] === "bar" ? (D(), S("rect", {
4066
+ }, null, 8, Xr)) : S("", !0), Pi.value[e.type] === "bar" ? (D(), C("rect", {
4002
4067
  key: 1,
4003
4068
  x: "4",
4004
4069
  y: "4",
@@ -4007,7 +4072,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
4007
4072
  width: "32",
4008
4073
  stroke: "none",
4009
4074
  fill: r.$slots.pattern ? `url(#pattern_${L.value}_${e.slotAbsoluteIndex})` : e.color
4010
- }, null, 8, Zr)) : x("", !0)])) : (D(), S("svg", Qr, [et(We, {
4075
+ }, null, 8, Zr)) : S("", !0)])) : (D(), C("svg", Qr, [$e(Ue, {
4011
4076
  plot: {
4012
4077
  x: 6,
4013
4078
  y: 6
@@ -4022,14 +4087,14 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
4022
4087
  "hexagon",
4023
4088
  "star"
4024
4089
  ].includes(e.shape) ? e.shape : "circle"
4025
- }, null, 8, ["color", "shape"])])), C("span", { style: E(`color:${H.value.chart.legend.color}`) }, ut(e.name), 5)], 46, Kr))), 128))], 4)) : x("", !0)], !0)], 512)], 8, ["to"])) : x("", !0),
4026
- r.$slots.source ? (D(), S("div", {
4090
+ }, null, 8, ["color", "shape"])])), w("span", { style: E(`color:${H.value.chart.legend.color}`) }, ut(e.name), 5)], 46, Kr))), 128))], 4)) : S("", !0)], !0)], 512)], 8, ["to"])) : S("", !0),
4091
+ r.$slots.source ? (D(), C("div", {
4027
4092
  key: 8,
4028
4093
  ref_key: "source",
4029
4094
  ref: yi,
4030
4095
  dir: "auto"
4031
- }, [A(r.$slots, "source", {}, void 0, !0)], 512)) : x("", !0),
4032
- et(j(ni), {
4096
+ }, [A(r.$slots, "source", {}, void 0, !0)], 512)) : S("", !0),
4097
+ $e(j(ni), {
4033
4098
  teleportTo: H.value.chart.tooltip.teleportTo,
4034
4099
  show: U.value.showTooltip && Li.value,
4035
4100
  backgroundColor: H.value.chart.tooltip.backgroundColor,
@@ -4043,7 +4108,7 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
4043
4108
  offsetX: H.value.chart.tooltip.offsetX,
4044
4109
  offsetY: H.value.chart.tooltip.offsetY,
4045
4110
  parent: r.$refs.chart,
4046
- content: Rs.value,
4111
+ content: Xs.value,
4047
4112
  isFullscreen: Ii.value,
4048
4113
  isCustom: H.value.chart.tooltip.customFormat && typeof H.value.chart.tooltip.customFormat == "function",
4049
4114
  smooth: H.value.chart.tooltip.smooth,
@@ -4053,9 +4118,9 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
4053
4118
  isA11yMode: $i.value != null,
4054
4119
  a11yPosition: ea.value
4055
4120
  }, {
4056
- "tooltip-before": M(() => [A(r.$slots, "tooltip-before", T(w({ ...Ns.value })), void 0, !0)]),
4057
- tooltip: M(() => [A(r.$slots, "tooltip", T(w({ ...Ns.value })), void 0, !0)]),
4058
- "tooltip-after": M(() => [A(r.$slots, "tooltip-after", T(w({ ...Ns.value })), void 0, !0)]),
4121
+ "tooltip-before": M(() => [A(r.$slots, "tooltip-before", at(T({ ...Gs.value })), void 0, !0)]),
4122
+ tooltip: M(() => [A(r.$slots, "tooltip", at(T({ ...Gs.value })), void 0, !0)]),
4123
+ "tooltip-after": M(() => [A(r.$slots, "tooltip-after", at(T({ ...Gs.value })), void 0, !0)]),
4059
4124
  _: 3
4060
4125
  }, 8, [
4061
4126
  "teleportTo",
@@ -4081,37 +4146,37 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
4081
4146
  "isA11yMode",
4082
4147
  "a11yPosition"
4083
4148
  ]),
4084
- ga.value && H.value.chart.userOptions.buttons.table ? (D(), Ze(ct(lc.value.component), rt({ key: 9 }, lc.value.props, {
4149
+ va.value && H.value.chart.userOptions.buttons.table ? (D(), Xe(ct(xc.value.component), nt({ key: 9 }, xc.value.props, {
4085
4150
  ref_key: "tableUnit",
4086
4151
  ref: Xi,
4087
- onClose: uc
4088
- }), Qe({
4089
- content: M(() => [C("div", { style: E(`${j(Na) || H.value.table.useDialog ? "" : "max-height:400px"};${H.value.table.useDialog ? "height: fit-content; " : ""};overflow:auto;width:100%;${H.value.table.useDialog ? "" : "margin-top:48px"}`) }, [C("div", $r, [gt(C("input", {
4152
+ onClose: Sc
4153
+ }), Ze({
4154
+ content: M(() => [w("div", { style: E(`${j(Pa) || H.value.table.useDialog ? "" : "max-height:400px"};${H.value.table.useDialog ? "height: fit-content; " : ""};overflow:auto;width:100%;${H.value.table.useDialog ? "" : "margin-top:48px"}`) }, [w("div", $r, [gt(w("input", {
4090
4155
  type: "checkbox",
4091
4156
  "onUpdate:modelValue": i[4] ||= (e) => Hi.value = e
4092
- }, null, 512), [[pt, Hi.value]]), C("div", {
4157
+ }, null, 512), [[pt, Hi.value]]), w("div", {
4093
4158
  onClick: i[5] ||= (e) => Hi.value = !Hi.value,
4094
- style: E({ cursor: _a.value ? "pointer" : "default" })
4095
- }, [et(j(ii), {
4159
+ style: E({ cursor: ya.value ? "pointer" : "default" })
4160
+ }, [$e(j(ii), {
4096
4161
  name: "chartLine",
4097
4162
  size: 20,
4098
4163
  stroke: H.value.chart.color
4099
- }, null, 8, ["stroke"])], 4)]), Hi.value ? (D(), Ze(j(ai), {
4164
+ }, null, 8, ["stroke"])], 4)]), Hi.value ? (D(), Xe(j(ai), {
4100
4165
  key: `sparkline_${Ui.value}`,
4101
- dataset: ms.value,
4102
- config: hs.value
4103
- }, null, 8, ["dataset", "config"])) : (D(), Ze(j(ti), {
4166
+ dataset: _s.value,
4167
+ config: vs.value
4168
+ }, null, 8, ["dataset", "config"])) : (D(), Xe(j(ti), {
4104
4169
  key: `table_${Bi.value}`,
4105
- colNames: Bs.value.colNames,
4106
- head: Bs.value.head,
4107
- body: Bs.value.body,
4108
- config: Bs.value.config,
4109
- title: H.value.table.useDialog ? "" : lc.value.title,
4170
+ colNames: Qs.value.colNames,
4171
+ head: Qs.value.head,
4172
+ body: Qs.value.body,
4173
+ config: Qs.value.config,
4174
+ title: H.value.table.useDialog ? "" : xc.value.title,
4110
4175
  withCloseButton: !H.value.table.useDialog,
4111
- onClose: uc
4176
+ onClose: Sc
4112
4177
  }, {
4113
- th: M(({ th: e }) => [C("div", { innerHTML: e }, null, 8, ei)]),
4114
- td: M(({ td: e }) => [$e(ut(isNaN(Number(e)) ? e : j(a)({
4178
+ th: M(({ th: e }) => [w("div", { innerHTML: e }, null, 8, ei)]),
4179
+ td: M(({ td: e }) => [Qe(ut(isNaN(Number(e)) ? e : j(a)({
4115
4180
  p: H.value.chart.labels.prefix,
4116
4181
  v: e,
4117
4182
  s: H.value.chart.labels.suffix,
@@ -4129,23 +4194,23 @@ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt =
4129
4194
  _: 2
4130
4195
  }, [H.value.table.useDialog ? {
4131
4196
  name: "title",
4132
- fn: M(() => [$e(ut(lc.value.title), 1)]),
4197
+ fn: M(() => [Qe(ut(xc.value.title), 1)]),
4133
4198
  key: "0"
4134
4199
  } : void 0, H.value.table.useDialog ? {
4135
4200
  name: "actions",
4136
- fn: M(() => [C("button", {
4201
+ fn: M(() => [w("button", {
4137
4202
  tabindex: "0",
4138
4203
  class: "vue-ui-user-options-button",
4139
- onClick: i[3] ||= (e) => Vs(H.value.chart.userOptions.callbacks.csv)
4140
- }, [et(j(ii), {
4204
+ onClick: i[3] ||= (e) => $s(H.value.chart.userOptions.callbacks.csv)
4205
+ }, [$e(j(ii), {
4141
4206
  name: "fileCsv",
4142
- stroke: lc.value.props.color
4207
+ stroke: xc.value.props.color
4143
4208
  }, null, 8, ["stroke"])])]),
4144
4209
  key: "1"
4145
- } : void 0]), 1040)) : x("", !0),
4146
- A(r.$slots, "skeleton", {}, () => [j(Sa) ? (D(), Ze(Fe, { key: 0 })) : x("", !0)], !0)
4210
+ } : void 0]), 1040)) : S("", !0),
4211
+ A(r.$slots, "skeleton", {}, () => [j(wa) ? (D(), Xe(Pe, { key: 0 })) : S("", !0)], !0)
4147
4212
  ], 46, vt));
4148
4213
  }
4149
- }, [["__scopeId", "data-v-d82ef283"]]);
4214
+ }, [["__scopeId", "data-v-25ca945c"]]);
4150
4215
  //#endregion
4151
4216
  export { _t as n, N as t };