vue-data-ui 3.16.4 → 3.17.0

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 (148) hide show
  1. package/README.md +64 -46
  2. package/dist/{PackageVersion-1BHnPIBZ.js → PackageVersion-B3kmPxTR.js} +1 -1
  3. package/dist/{Slicer-DUycDH_N.js → Slicer-CIHwwuNR.js} +107 -110
  4. package/dist/SlicerPreview-BIvxyb5W.js +1484 -0
  5. package/dist/{Tooltip-Bf-kM3_A.js → Tooltip-C8KGyqQk.js} +19 -17
  6. package/dist/components/vue-ui-3d-bar.js +1 -1
  7. package/dist/components/vue-ui-accordion.js +1 -1
  8. package/dist/components/vue-ui-age-pyramid.js +1 -1
  9. package/dist/components/vue-ui-annotator.js +1 -1
  10. package/dist/components/vue-ui-bullet.js +1 -1
  11. package/dist/components/vue-ui-bump.js +1 -1
  12. package/dist/components/vue-ui-candlestick.js +1 -1
  13. package/dist/components/vue-ui-carousel-table.js +1 -1
  14. package/dist/components/vue-ui-chestnut.js +1 -1
  15. package/dist/components/vue-ui-chord.js +1 -1
  16. package/dist/components/vue-ui-circle-pack.js +1 -1
  17. package/dist/components/vue-ui-cursor.js +1 -1
  18. package/dist/components/vue-ui-dag.js +1 -1
  19. package/dist/components/vue-ui-dashboard.js +1 -1
  20. package/dist/components/vue-ui-digits.js +1 -1
  21. package/dist/components/vue-ui-donut-evolution.js +1 -1
  22. package/dist/components/vue-ui-donut.js +1 -1
  23. package/dist/components/vue-ui-dumbbell.js +1 -1
  24. package/dist/components/vue-ui-flow.js +1 -1
  25. package/dist/components/vue-ui-funnel.js +1 -1
  26. package/dist/components/vue-ui-galaxy.js +1 -1
  27. package/dist/components/vue-ui-gauge.js +1 -1
  28. package/dist/components/vue-ui-geo.js +1 -1
  29. package/dist/components/vue-ui-gizmo.js +1 -1
  30. package/dist/components/vue-ui-heatmap.js +1 -1
  31. package/dist/components/vue-ui-history-plot.js +1 -1
  32. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  33. package/dist/components/vue-ui-kpi.js +1 -1
  34. package/dist/components/vue-ui-mini-loader.js +1 -1
  35. package/dist/components/vue-ui-molecule.js +1 -1
  36. package/dist/components/vue-ui-mood-radar.js +1 -1
  37. package/dist/components/vue-ui-nested-donuts.js +1 -1
  38. package/dist/components/vue-ui-onion.js +1 -1
  39. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  40. package/dist/components/vue-ui-quadrant.js +1 -1
  41. package/dist/components/vue-ui-quick-chart.js +1 -1
  42. package/dist/components/vue-ui-radar.js +1 -1
  43. package/dist/components/vue-ui-rating.js +1 -1
  44. package/dist/components/vue-ui-relation-circle.js +1 -1
  45. package/dist/components/vue-ui-ridgeline.js +1 -1
  46. package/dist/components/vue-ui-rings.js +1 -1
  47. package/dist/components/vue-ui-scatter.js +1 -1
  48. package/dist/components/vue-ui-skeleton.js +1 -1
  49. package/dist/components/vue-ui-smiley.js +1 -1
  50. package/dist/components/vue-ui-spark-trend.js +1 -1
  51. package/dist/components/vue-ui-sparkbar.js +1 -1
  52. package/dist/components/vue-ui-sparkgauge.js +1 -1
  53. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  54. package/dist/components/vue-ui-sparkline.js +1 -1
  55. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  56. package/dist/components/vue-ui-stackbar.js +1 -1
  57. package/dist/components/vue-ui-stackline.js +1 -1
  58. package/dist/components/vue-ui-strip-plot.js +1 -1
  59. package/dist/components/vue-ui-table-heatmap.js +1 -1
  60. package/dist/components/vue-ui-table-sparkline.js +1 -1
  61. package/dist/components/vue-ui-table.js +1 -1
  62. package/dist/components/vue-ui-thermometer.js +1 -1
  63. package/dist/components/vue-ui-timer.js +1 -1
  64. package/dist/components/vue-ui-tiremarks.js +1 -1
  65. package/dist/components/vue-ui-treemap.js +1 -1
  66. package/dist/components/vue-ui-vertical-bar.js +1 -1
  67. package/dist/components/vue-ui-waffle.js +1 -1
  68. package/dist/components/vue-ui-wheel.js +1 -1
  69. package/dist/components/vue-ui-word-cloud.js +1 -1
  70. package/dist/components/vue-ui-world.js +1 -1
  71. package/dist/components/vue-ui-xy-canvas.js +1 -1
  72. package/dist/components/vue-ui-xy.js +1 -1
  73. package/dist/style.css +1 -1
  74. package/dist/types/vue-data-ui.d.ts +1 -1
  75. package/dist/{useConfig-CpJA0VZa.js → useConfig-ChRble71.js} +1 -0
  76. package/dist/{useObjectBindings-DToqZaRC.js → useObjectBindings-BVFCsss5.js} +1 -1
  77. package/dist/utils.js +1 -1
  78. package/dist/{vue-data-ui-D28lrXzG.js → vue-data-ui-BX3I-ZQt.js} +67 -67
  79. package/dist/vue-data-ui.js +68 -68
  80. package/dist/{vue-ui-3d-bar-BOrQb1Zm.js → vue-ui-3d-bar-DsSxN6Xl.js} +2 -2
  81. package/dist/{vue-ui-accordion-BF4v32wv.js → vue-ui-accordion-CnDW2UQL.js} +1 -1
  82. package/dist/{vue-ui-age-pyramid-txthNdz1.js → vue-ui-age-pyramid-DgAJXx1F.js} +112 -109
  83. package/dist/{vue-ui-annotator-U961V1Kc.js → vue-ui-annotator-BA4hRkfX.js} +2 -2
  84. package/dist/{vue-ui-bullet-BboXC-yM.js → vue-ui-bullet-BCuT1zVr.js} +2 -2
  85. package/dist/{vue-ui-bump-oRhoxgeR.js → vue-ui-bump-BTnwgB5Q.js} +2 -2
  86. package/dist/{vue-ui-candlestick-RAgVO1Hl.js → vue-ui-candlestick-BMvM7WIc.js} +148 -145
  87. package/dist/{vue-ui-carousel-table-BFqP05En.js → vue-ui-carousel-table-DCtWIG49.js} +2 -2
  88. package/dist/{vue-ui-chestnut-ComiA10N.js → vue-ui-chestnut-DJ0R3Aqx.js} +2 -2
  89. package/dist/{vue-ui-chord-D9dLOTr5.js → vue-ui-chord-BbWToSBq.js} +2 -2
  90. package/dist/{vue-ui-circle-pack-pqOFrf-X.js → vue-ui-circle-pack-CwuEfQPE.js} +117 -114
  91. package/dist/{vue-ui-cursor-BmAytuMu.js → vue-ui-cursor-C4MnK_CE.js} +2 -2
  92. package/dist/{vue-ui-dag-CuJNCfFw.js → vue-ui-dag-HKbeFOit.js} +2 -2
  93. package/dist/{vue-ui-dashboard-DDuu-xwh.js → vue-ui-dashboard-DTYz-idn.js} +65 -65
  94. package/dist/{vue-ui-digits-DYKnwhao.js → vue-ui-digits-CrFH4BlD.js} +2 -2
  95. package/dist/{vue-ui-donut-CbD2wI-a.js → vue-ui-donut-B1C7vzFY.js} +100 -97
  96. package/dist/{vue-ui-donut-evolution-BdA0k4Eg.js → vue-ui-donut-evolution-BUIQwZ-c.js} +3 -3
  97. package/dist/{vue-ui-dumbbell-CPbXszE_.js → vue-ui-dumbbell-Bq-X5L24.js} +2 -2
  98. package/dist/{vue-ui-flow-RyxU8f22.js → vue-ui-flow-DUn9hp_J.js} +141 -138
  99. package/dist/{vue-ui-funnel-Cda_iN_h.js → vue-ui-funnel-CNF2ULOQ.js} +2 -2
  100. package/dist/{vue-ui-galaxy-BNUPKqkV.js → vue-ui-galaxy-BzlU9OSU.js} +75 -72
  101. package/dist/{vue-ui-gauge-CihaQBsc.js → vue-ui-gauge-aF_V6ynK.js} +2 -2
  102. package/dist/{vue-ui-geo-Da95dDom.js → vue-ui-geo-xaZvHjAP.js} +116 -113
  103. package/dist/{vue-ui-gizmo-DzHN0cW5.js → vue-ui-gizmo-BGvS_AHj.js} +2 -2
  104. package/dist/{vue-ui-heatmap-DqQiO1Oz.js → vue-ui-heatmap-B_BmpyVy.js} +191 -188
  105. package/dist/{vue-ui-history-plot-DqeaH_61.js → vue-ui-history-plot-DsoLp3aL.js} +124 -121
  106. package/dist/{vue-ui-horizontal-bar-CX6TPm9_.js → vue-ui-horizontal-bar-JVjE88ZW.js} +218 -215
  107. package/dist/{vue-ui-kpi-OxZqguE4.js → vue-ui-kpi-B-v1zpd4.js} +2 -2
  108. package/dist/{vue-ui-mini-loader-DSQ9kcmW.js → vue-ui-mini-loader-CPfZsqWP.js} +1 -1
  109. package/dist/{vue-ui-molecule-CTm126iW.js → vue-ui-molecule-Di9_wsME.js} +61 -58
  110. package/dist/{vue-ui-mood-radar-C0E6bq6E.js → vue-ui-mood-radar-CetQpdnu.js} +2 -2
  111. package/dist/{vue-ui-nested-donuts-Bh0ZICKK.js → vue-ui-nested-donuts-Y-UMjjYV.js} +131 -128
  112. package/dist/{vue-ui-onion-QsjwjlCa.js → vue-ui-onion-MM3QZLzF.js} +142 -139
  113. package/dist/{vue-ui-parallel-coordinate-plot-wJcWVLAC.js → vue-ui-parallel-coordinate-plot-CcHmB0MQ.js} +91 -88
  114. package/dist/{vue-ui-quadrant-lJ7T6q87.js → vue-ui-quadrant-CQIMUggy.js} +58 -55
  115. package/dist/{vue-ui-quick-chart-CEMQYbSC.js → vue-ui-quick-chart-lwGufdDj.js} +235 -232
  116. package/dist/{vue-ui-radar-d7b-Y40r.js → vue-ui-radar-CS74L65M.js} +117 -114
  117. package/dist/{vue-ui-rating-hudM2QS0.js → vue-ui-rating-DiLLVHq3.js} +1 -1
  118. package/dist/{vue-ui-relation-circle-_PoDqM8x.js → vue-ui-relation-circle-D3dO8RTC.js} +2 -2
  119. package/dist/{vue-ui-ridgeline-BU_EA8-u.js → vue-ui-ridgeline-Dpvq9yp2.js} +2 -2
  120. package/dist/{vue-ui-rings-BQKtt-FQ.js → vue-ui-rings-D-45pPpZ.js} +122 -119
  121. package/dist/{vue-ui-scatter-Bh95G7ZD.js → vue-ui-scatter-BzCjfGB9.js} +121 -118
  122. package/dist/{vue-ui-skeleton-BIw-u4zp.js → vue-ui-skeleton-Dai-bZZw.js} +2 -2
  123. package/dist/{vue-ui-smiley-CQ_rGHFe.js → vue-ui-smiley-BioqmYwT.js} +1 -1
  124. package/dist/{vue-ui-spark-trend-D4QxExdm.js → vue-ui-spark-trend-DiC9V0VU.js} +2 -2
  125. package/dist/{vue-ui-sparkbar-BmiEOs4E.js → vue-ui-sparkbar-D6EsbW6u.js} +2 -2
  126. package/dist/{vue-ui-sparkgauge-hwEkTICS.js → vue-ui-sparkgauge-BHDXZgJH.js} +2 -2
  127. package/dist/{vue-ui-sparkhistogram-DEkO_5i3.js → vue-ui-sparkhistogram-DzuOjuNH.js} +2 -2
  128. package/dist/{vue-ui-sparkline-DFnG0CrA.js → vue-ui-sparkline-B-zOqzrC.js} +288 -276
  129. package/dist/{vue-ui-sparkstackbar-CQqUPbkU.js → vue-ui-sparkstackbar-bqKzIKSg.js} +147 -144
  130. package/dist/{vue-ui-stackbar-BcP_TA9R.js → vue-ui-stackbar-DPfxqQUG.js} +435 -424
  131. package/dist/{vue-ui-stackline-Bnuj-z-G.js → vue-ui-stackline-Ctqe1OuF.js} +627 -609
  132. package/dist/{vue-ui-strip-plot-B-tszwir.js → vue-ui-strip-plot-Dg2URhvc.js} +72 -69
  133. package/dist/{vue-ui-table-heatmap-DU7w6PrX.js → vue-ui-table-heatmap-Da6sqBlI.js} +1 -1
  134. package/dist/{vue-ui-table-sparkline-DHjZyVAg.js → vue-ui-table-sparkline-Bkv6Qz6V.js} +2 -2
  135. package/dist/{vue-ui-table-BVQyX-Yx.js → vue-ui-table-xrD-xqis.js} +3 -3
  136. package/dist/{vue-ui-thermometer-ZED83TXZ.js → vue-ui-thermometer-D7VVeA2i.js} +2 -2
  137. package/dist/{vue-ui-timer-Xg7H9EaE.js → vue-ui-timer-D7XYgZfb.js} +2 -2
  138. package/dist/{vue-ui-tiremarks-BDoU-BcX.js → vue-ui-tiremarks-i6e8GTI9.js} +2 -2
  139. package/dist/{vue-ui-treemap-BcS1k9hJ.js → vue-ui-treemap-D8Mbfeuc.js} +220 -217
  140. package/dist/{vue-ui-waffle-CSvzbC5u.js → vue-ui-waffle-7rVD530d.js} +123 -120
  141. package/dist/{vue-ui-wheel-BrLKEar8.js → vue-ui-wheel-HQNWtsvJ.js} +2 -2
  142. package/dist/{vue-ui-word-cloud-D05ZR0u7.js → vue-ui-word-cloud-DFAEbzUa.js} +159 -156
  143. package/dist/{vue-ui-world-CtPJIK5c.js → vue-ui-world-YvmrdfIm.js} +86 -83
  144. package/dist/vue-ui-xy-canvas-CEaAQ_tr.js +1819 -0
  145. package/dist/{vue-ui-xy-5mNo0EDu.js → vue-ui-xy-n4juEarQ.js} +402 -398
  146. package/package.json +1 -1
  147. package/dist/SlicerPreview-DTjwV0iY.js +0 -1372
  148. package/dist/vue-ui-xy-canvas-CaoWw3AU.js +0 -1810
@@ -1,35 +1,35 @@
1
- import { defineAsyncComponent as ke, useSlots as gs, computed as f, ref as h, shallowRef as qt, onMounted as ps, toRefs as bs, watch as Fe, onBeforeUnmount as Xt, nextTick as Gt, watchEffect as pt, openBlock as i, createElementBlock as v, normalizeStyle as ge, normalizeClass as tl, createElementVNode as le, toDisplayString as fe, createBlock as oe, createCommentVNode as x, unref as C, withCtx as P, renderSlot as N, normalizeProps as ee, guardReactiveProps as te, createSlots as jt, createVNode as Ze, Fragment as F, renderList as X, mergeProps as bt, Teleport as xs, resolveDynamicComponent as ks, createTextVNode as al } from "vue";
2
- import { j as ll, t as sl, m as ws, p as xt, n as Ss, o as ol, q as nl, r as Ms, s as $s, ar as Qe, E as kt, D as wt, I as Cs, c as we, b as Se, F as Ls, T as As, U as Ts, k as et, l as Ce, G as tt, X as Ns, x as Ps, u as Is, K as rl, a0 as zs, a1 as _s, z as Fs, A as at, a3 as Es } from "./lib-DBptbyyI.js";
3
- import { t as Rs, u as Os } from "./useResponsive-DfdjqQps.js";
4
- import { u as il, a as ul, b as Ds } from "./useTimeLabels-C-A2uZKi.js";
5
- import { u as Vs } from "./useConfig-CpJA0VZa.js";
6
- import { u as Bs, B as Ys } from "./BaseScanner-BhhkKVoj.js";
7
- import { u as Hs } from "./usePrinter-CEpYU3r5.js";
8
- import { u as Ws } from "./useSvgExport-ByUukOZt.js";
1
+ import { defineAsyncComponent as ke, useSlots as ps, computed as m, ref as f, shallowRef as qt, onMounted as bs, toRefs as xs, watch as Fe, onBeforeUnmount as Xt, nextTick as Gt, watchEffect as bt, openBlock as i, createElementBlock as v, normalizeStyle as ge, normalizeClass as tl, createElementVNode as le, toDisplayString as fe, createBlock as se, createCommentVNode as x, unref as C, withCtx as P, renderSlot as N, normalizeProps as Q, guardReactiveProps as ee, createSlots as jt, createVNode as Ze, Fragment as R, renderList as X, mergeProps as xt, Teleport as ks, resolveDynamicComponent as ws, createTextVNode as al } from "vue";
2
+ import { j as ll, t as sl, m as Ss, p as kt, n as Ms, o as ol, q as nl, r as $s, s as Cs, ar as Qe, E as wt, D as St, I as Ls, c as we, b as Se, F as As, T as Ts, U as Ns, k as et, l as Ce, G as tt, X as Ps, x as zs, u as Is, K as rl, a0 as _s, a1 as Fs, z as Es, A as at, a3 as Rs } from "./lib-DBptbyyI.js";
3
+ import { t as Os, u as Ds } from "./useResponsive-DfdjqQps.js";
4
+ import { u as il, a as ul, b as Vs } from "./useTimeLabels-C-A2uZKi.js";
5
+ import { u as Bs } from "./useConfig-ChRble71.js";
6
+ import { u as Ys, B as Hs } from "./BaseScanner-BhhkKVoj.js";
7
+ import { u as Ws } from "./usePrinter-CEpYU3r5.js";
8
+ import { u as Us } from "./useSvgExport-ByUukOZt.js";
9
9
  import { u as Jt } from "./useNestedProp-Bf5XFbs8.js";
10
- import { u as Us } from "./useThemeCheck-D1ZYXUwG.js";
11
- import { u as qs } from "./useStableElementSize-DCNs0Tx7.js";
12
- import { u as Xs } from "./useChartAccessibility-9icAAmYg.js";
13
- import { u as Gs } from "./useTimeLabelCollider-CIsgDrl9.js";
14
- import { u as js } from "./useUserOptionState-BIvW1Kz7.js";
15
- import Js from "./img-LXxMLmCg.js";
10
+ import { u as qs } from "./useThemeCheck-D1ZYXUwG.js";
11
+ import { u as Xs } from "./useStableElementSize-DCNs0Tx7.js";
12
+ import { u as Gs } from "./useChartAccessibility-9icAAmYg.js";
13
+ import { u as js } from "./useTimeLabelCollider-CIsgDrl9.js";
14
+ import { u as Js } from "./useUserOptionState-BIvW1Kz7.js";
15
+ import Ks from "./img-LXxMLmCg.js";
16
16
  import { _ as Kt } from "./Shape-BKRUOeKk.js";
17
- import Ks from "./Title-BeMKE1cj.js";
18
- import Zs from "./vue_ui_stackline-QTh-nuxE.js";
19
- import Qs from "./Legend-CS7Xo5LK.js";
20
- import { A as eo } from "./A11yDataTable-KcVAX2cP.js";
21
- import { S as to } from "./SlicerPreview-DTjwV0iY.js";
22
- import { B as ao } from "./BaseLegendToggle-BQVIawmA.js";
23
- import { _ as lo } from "./_plugin-vue_export-helper-CHgC5LLL.js";
24
- const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative" } }, io = ["aria-describedby", "xmlns", "viewBox"], uo = { key: 0 }, co = ["x", "y", "width", "height"], vo = { key: 1 }, ho = ["id"], mo = ["stop-color"], fo = ["stop-color"], yo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], go = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], po = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], bo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], xo = ["x", "y", "font-size", "fill", "font-weight"], ko = ["transform", "font-size", "fill", "font-weight"], wo = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], So = ["d", "fill", "opacity"], Mo = ["d", "stroke", "stroke-width"], $o = ["x1", "x2", "y1", "y2", "stroke"], Co = ["x", "y", "font-size", "font-weight", "fill"], Lo = { key: 0 }, Ao = { key: 1 }, To = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], No = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], Po = ["x", "y", "height", "width", "fill"], Io = { key: 0 }, zo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], _o = { key: 0 }, Fo = ["x", "y", "font-size", "fill", "font-weight"], Eo = ["x", "y", "font-size", "font-weight", "fill"], Ro = ["data-start", "data-end"], Oo = {
17
+ import Zs from "./Title-BeMKE1cj.js";
18
+ import Qs from "./vue_ui_stackline-QTh-nuxE.js";
19
+ import eo from "./Legend-CS7Xo5LK.js";
20
+ import { A as to } from "./A11yDataTable-KcVAX2cP.js";
21
+ import { S as ao } from "./SlicerPreview-BIvxyb5W.js";
22
+ import { B as lo } from "./BaseLegendToggle-BQVIawmA.js";
23
+ import { _ as so } from "./_plugin-vue_export-helper-CHgC5LLL.js";
24
+ const oo = ["id"], no = ["id"], ro = ["id"], io = { style: { position: "relative" } }, uo = ["aria-describedby", "xmlns", "viewBox"], co = { key: 0 }, vo = ["x", "y", "width", "height"], ho = { key: 1 }, mo = ["id"], fo = ["stop-color"], yo = ["stop-color"], go = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], po = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], bo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], xo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ko = ["x", "y", "font-size", "fill", "font-weight"], wo = ["transform", "font-size", "fill", "font-weight"], So = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], Mo = ["d", "fill", "opacity"], $o = ["d", "stroke", "stroke-width"], Co = ["x1", "x2", "y1", "y2", "stroke"], Lo = ["x", "y", "font-size", "font-weight", "fill"], Ao = { key: 0 }, To = { key: 1 }, No = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], Po = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], zo = ["x", "y", "height", "width", "fill"], Io = { key: 0 }, _o = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Fo = { key: 0 }, Eo = ["x", "y", "font-size", "fill", "font-weight"], Ro = ["x", "y", "font-size", "font-weight", "fill"], Oo = ["data-start", "data-end"], Do = {
25
25
  key: 0,
26
26
  style: { position: "absolute", top: "100%", left: "0", width: "100%" },
27
27
  "data-dom-to-png-ignore": "",
28
28
  "aria-hidden": "true"
29
- }, Do = {
29
+ }, Vo = {
30
30
  key: 5,
31
31
  class: "vue-data-ui-watermark"
32
- }, Vo = ["onClick"], Bo = ["innerHTML"], Yo = ["innerHTML"], Ho = ["id"], Wo = {
32
+ }, Bo = ["onClick"], Yo = ["innerHTML"], Ho = ["innerHTML"], Wo = ["id"], Uo = {
33
33
  __name: "vue-ui-stackline",
34
34
  props: {
35
35
  config: {
@@ -50,16 +50,16 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
50
50
  }
51
51
  },
52
52
  emits: ["selectDatapoint", "selectLegend", "selectTimeLabel", "selectX", "copyAlt"],
53
- setup(St, { expose: cl, emit: vl }) {
54
- const dl = ke(() => import("./Tooltip-Bf-kM3_A.js")), hl = ke(() => import("./BaseIcon-Cb3zzG6s.js")), ml = ke(() => import("./vue-ui-accordion-BF4v32wv.js")), fl = ke(() => import("./DataTable-DT2kIdQ6.js")), yl = ke(() => import("./PenAndPaper-Ct3qJ4lA.js")), gl = ke(() => import("./UserOptions-rW2fRf3V.js")), pl = ke(() => import("./PackageVersion-1BHnPIBZ.js")), bl = ke(() => import("./BaseDraggableDialog-CIb-iD9g.js")), { vue_ui_stackline: xl } = Vs(), { isThemeValid: kl, warnInvalidTheme: wl } = Us(), Zt = gs(), G = St, ye = vl, Ee = f({
53
+ setup(Mt, { expose: cl, emit: vl }) {
54
+ const dl = ke(() => import("./Tooltip-C8KGyqQk.js")), hl = ke(() => import("./BaseIcon-Cb3zzG6s.js")), ml = ke(() => import("./vue-ui-accordion-CnDW2UQL.js")), fl = ke(() => import("./DataTable-DT2kIdQ6.js")), yl = ke(() => import("./PenAndPaper-Ct3qJ4lA.js")), gl = ke(() => import("./UserOptions-rW2fRf3V.js")), pl = ke(() => import("./PackageVersion-B3kmPxTR.js")), bl = ke(() => import("./BaseDraggableDialog-CIb-iD9g.js")), { vue_ui_stackline: xl } = Bs(), { isThemeValid: kl, warnInvalidTheme: wl } = qs(), Zt = ps(), G = Mt, ye = vl, Ee = m({
55
55
  get() {
56
56
  return !!G.dataset && G.dataset.length;
57
57
  },
58
58
  set(t) {
59
59
  return t;
60
60
  }
61
- }), ue = h(null), K = h(ll()), Re = h(!1), Qt = h(null), D = h([]), ea = h(0), ta = h(null), aa = h(null), Oe = h(null), la = h(null), sa = h(null), De = h(!1), Mt = h(!1), oa = h(0), Sl = h(0), Ml = h(0), na = h(!1), Ve = h(null), $t = h(null), Le = h(!1), lt = h(!1), st = h(!1), ot = h(null), Ct = h(null), Lt = h(null), nt = h(null), $l = h(null), ra = qt(null), ia = h(!1), ua = h(0), ca = h(0), ce = h(null), va = h({ x: 0, y: 0 }), Be = h("pointer"), da = qs({
62
- elementRef: ra,
61
+ }), ie = f(null), K = f(ll()), Re = f(!1), V = f([]), Qt = f(0), ea = f(null), ta = f(null), Oe = f(null), aa = f(null), la = f(null), De = f(!1), $t = f(!1), sa = f(0), Sl = f(0), Ml = f(0), oa = f(!1), Ve = f(null), Ct = f(null), Le = f(!1), lt = f(!1), st = f(!1), ot = f(null), Lt = f(null), At = f(null), nt = f(null), $l = f(null), na = qt(null), ra = f(!1), ia = f(0), ua = f(0), ue = f(null), ca = f({ x: 0, y: 0 }), Be = f("pointer"), va = Xs({
62
+ elementRef: na,
63
63
  minimumWidth: 2,
64
64
  minimumHeight: 2,
65
65
  stableFramesRequired: 2,
@@ -68,10 +68,10 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
68
68
  rt();
69
69
  }
70
70
  });
71
- function At() {
72
- ra.value = ue.value?.parentNode ?? null;
71
+ function Tt() {
72
+ na.value = ie.value?.parentNode ?? null;
73
73
  }
74
- function ha() {
74
+ function da() {
75
75
  return new Promise((t) => {
76
76
  requestAnimationFrame(() => {
77
77
  requestAnimationFrame(t);
@@ -79,17 +79,17 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
79
79
  });
80
80
  }
81
81
  async function rt() {
82
- const t = ++ca.value;
83
- ia.value = !1, await Gt(), await ha(), await ha(), t === ca.value && (ua.value += 1, ia.value = !0);
82
+ const t = ++ua.value;
83
+ ra.value = !1, await Gt(), await da(), await da(), t === ua.value && (ia.value += 1, ra.value = !0);
84
84
  }
85
- const Ye = h(null), Ae = h(!1);
86
- function Tt() {
85
+ const Ye = f(null), Ae = f(!1);
86
+ function Nt() {
87
87
  Ae.value = !Ae.value;
88
88
  }
89
- ps(() => {
90
- At(), da.start(), na.value = !0, ka(), rt();
89
+ bs(() => {
90
+ Tt(), va.start(), oa.value = !0, xa(), rt();
91
91
  });
92
- const e = h(It()), ve = f(() => e.value.userOptions.useCursorPointer), Cl = f(() => sl({
92
+ const e = f(It()), ce = m(() => e.value.userOptions.useCursorPointer), Cl = m(() => sl({
93
93
  defaultConfig: {
94
94
  userOptions: { show: !1 },
95
95
  useCssAnimation: !1,
@@ -140,8 +140,8 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
140
140
  }
141
141
  },
142
142
  userConfig: e.value.skeletonConfig ?? {}
143
- })), { loading: de, FINAL_DATASET: Nt, manualLoading: it } = Bs({
144
- ...bs(G),
143
+ })), { loading: ve, FINAL_DATASET: Pt, manualLoading: it } = Ys({
144
+ ...xs(G),
145
145
  FINAL_CONFIG: e,
146
146
  prepareConfig: It,
147
147
  callback: () => {
@@ -165,12 +165,12 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
165
165
  defaultConfig: e.value,
166
166
  userConfig: Cl.value
167
167
  })
168
- }), { userOptionsVisible: Pt, setUserOptionsVisibility: ma, keepUserOptionState: fa } = js({ config: e.value }), { svgRef: he } = Xs({ config: e.value.style.chart.title });
168
+ }), { userOptionsVisible: zt, setUserOptionsVisibility: ha, keepUserOptionState: ma } = Js({ config: e.value }), { svgRef: de } = Gs({ config: e.value.style.chart.title });
169
169
  function Ll() {
170
- Le.value = !0, ma(!0);
170
+ Le.value = !0, ha(!0);
171
171
  }
172
172
  function Al() {
173
- ma(!1), Le.value = !1, ce.value = null, Be.value = "pointer", Re.value = !1, b.value = null, ye("selectX", { seriesIndex: null, datapoint: null });
173
+ ha(!1), Le.value = !1, ue.value = null, Be.value = "pointer", Re.value = !1, b.value = null, ye("selectX", { seriesIndex: null, datapoint: null });
174
174
  }
175
175
  function It() {
176
176
  const t = Jt({
@@ -184,7 +184,7 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
184
184
  wl(t), l = t;
185
185
  else {
186
186
  const s = Jt({
187
- userConfig: Zs[a] || G.config,
187
+ userConfig: Qs[a] || G.config,
188
188
  defaultConfig: t
189
189
  });
190
190
  l = {
@@ -192,25 +192,25 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
192
192
  userConfig: G.config,
193
193
  defaultConfig: s
194
194
  }),
195
- customPalette: t.customPalette.length ? t.customPalette : ws[a] || xt
195
+ customPalette: t.customPalette.length ? t.customPalette : Ss[a] || kt
196
196
  };
197
197
  }
198
198
  else
199
199
  l = t;
200
200
  return l;
201
201
  }
202
- const ya = f(() => e.value.style.chart.lines.dataLabels.hideUnderValue !== null), ga = f(() => e.value.style.chart.lines.dataLabels.hideUnderPercentage !== null);
202
+ const fa = m(() => e.value.style.chart.lines.dataLabels.hideUnderValue !== null), ya = m(() => e.value.style.chart.lines.dataLabels.hideUnderPercentage !== null);
203
203
  Fe(() => G.config, (t) => {
204
- de.value || (e.value = It()), Pt.value = !e.value.userOptions.showOnChartHover, ka(), oa.value += 1, Sl.value += 1, Ml.value += 1, j.value.dataLabels.show = e.value.style.chart.lines.dataLabels.show, j.value.showTable = e.value.table.show, j.value.showTooltip = e.value.style.chart.tooltip.show, ne.value.width = e.value.style.chart.width, ne.value.height = e.value.style.chart.height, ne.value.paddingRatio = {
204
+ ve.value || (e.value = It()), zt.value = !e.value.userOptions.showOnChartHover, xa(), sa.value += 1, Sl.value += 1, Ml.value += 1, j.value.dataLabels.show = e.value.style.chart.lines.dataLabels.show, j.value.showTable = e.value.table.show, j.value.showTooltip = e.value.style.chart.tooltip.show, oe.value.width = e.value.style.chart.width, oe.value.height = e.value.style.chart.height, oe.value.paddingRatio = {
205
205
  top: e.value.style.chart.padding.top / e.value.style.chart.height,
206
206
  right: e.value.style.chart.padding.right / e.value.style.chart.width,
207
207
  bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
208
208
  left: e.value.style.chart.padding.left / e.value.style.chart.width
209
- }, At(), rt(), ct();
209
+ }, Tt(), rt(), ct();
210
210
  }, { deep: !0 }), Fe(() => G.dataset, (t) => {
211
- Array.isArray(t) && t.length > 0 && (it.value = !1), $a(), At(), rt();
211
+ Array.isArray(t) && t.length > 0 && (it.value = !1), Ma(), Tt(), rt();
212
212
  }, { deep: !0 });
213
- const j = h({
213
+ const j = f({
214
214
  dataLabels: {
215
215
  show: e.value.style.chart.lines.dataLabels.show
216
216
  },
@@ -226,11 +226,11 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
226
226
  showTooltip: e.value.style.chart.tooltip.show
227
227
  };
228
228
  }, { immediate: !0 });
229
- const { isPrinting: zt, isImaging: _t, generatePdf: pa, generateImage: ba } = Hs({
229
+ const { isPrinting: _t, isImaging: Ft, generatePdf: ga, generateImage: pa } = Ws({
230
230
  elementId: `stackline_${K.value}`,
231
231
  fileName: e.value.style.chart.title.text || "vue-ui-stackline",
232
232
  options: e.value.userOptions.print
233
- }), Tl = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), ne = h({
233
+ }), Tl = m(() => e.value.userOptions.show && !e.value.style.chart.title.text), oe = f({
234
234
  width: e.value.style.chart.width,
235
235
  height: e.value.style.chart.height,
236
236
  paddingRatio: {
@@ -239,14 +239,14 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
239
239
  bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
240
240
  left: e.value.style.chart.padding.left / e.value.style.chart.width
241
241
  }
242
- }), Nl = f(() => Ss(e.value.customPalette)), pe = qt(null), Te = qt(null), xa = h(null), Ft = f(() => !!e.value.debug);
243
- function ka() {
242
+ }), Nl = m(() => Ms(e.value.customPalette)), pe = qt(null), Te = qt(null), ba = f(null), Et = m(() => !!e.value.debug);
243
+ function xa() {
244
244
  if (ol(G.dataset) ? (nl({
245
245
  componentName: "VueUiStackline",
246
246
  type: "dataset",
247
- debug: Ft.value
247
+ debug: Et.value
248
248
  }), it.value = !0) : G.dataset.forEach((t, l) => {
249
- Ms({
249
+ $s({
250
250
  datasetObject: t,
251
251
  requiredAttributes: ["name", "series"]
252
252
  }).forEach((a) => {
@@ -255,46 +255,46 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
255
255
  type: "datasetSerieAttribute",
256
256
  property: a,
257
257
  index: l,
258
- debug: Ft.value
258
+ debug: Et.value
259
259
  }), it.value = !0;
260
260
  });
261
261
  }), ol(G.dataset) || (it.value = e.value.loading), setTimeout(() => {
262
- Mt.value = !0;
262
+ $t.value = !0;
263
263
  }, 10), e.value.responsive) {
264
- const t = Rs(() => {
265
- Mt.value = !1;
266
- const { width: l, height: a } = Os({
267
- chart: ue.value,
268
- noTitle: la.value,
269
- title: e.value.style.chart.title.text ? ta.value : null,
270
- legend: e.value.style.chart.legend.show ? aa.value : null,
271
- slicer: e.value.style.chart.zoom.show && me.value > 6 ? Oe.value.$el : null,
272
- source: sa.value
264
+ const t = Os(() => {
265
+ $t.value = !1;
266
+ const { width: l, height: a } = Ds({
267
+ chart: ie.value,
268
+ noTitle: aa.value,
269
+ title: e.value.style.chart.title.text ? ea.value : null,
270
+ legend: e.value.style.chart.legend.show ? ta.value : null,
271
+ slicer: e.value.style.chart.zoom.show && he.value > 6 ? Oe.value.$el : null,
272
+ source: la.value
273
273
  });
274
274
  requestAnimationFrame(() => {
275
- ne.value.width = l, ne.value.height = a - 12, clearTimeout(xa.value), xa.value = setTimeout(() => {
276
- Mt.value = !0;
275
+ oe.value.width = l, oe.value.height = a - 12, clearTimeout(ba.value), ba.value = setTimeout(() => {
276
+ $t.value = !0;
277
277
  }, 10);
278
278
  });
279
279
  });
280
- pe.value && (Te.value && pe.value.unobserve(Te.value), pe.value.disconnect()), pe.value = new ResizeObserver(t), Te.value = ue.value.parentNode, pe.value.observe(Te.value);
280
+ pe.value && (Te.value && pe.value.unobserve(Te.value), pe.value.disconnect()), pe.value = new ResizeObserver(t), Te.value = ie.value.parentNode, pe.value.observe(Te.value);
281
281
  }
282
282
  mt();
283
283
  }
284
284
  Xt(() => {
285
- da.stop(), pe.value && (Te.value && pe.value.unobserve(Te.value), pe.value.disconnect());
285
+ va.stop(), pe.value && (Te.value && pe.value.unobserve(Te.value), pe.value.disconnect());
286
286
  });
287
287
  function Pl() {
288
288
  let t = 0;
289
- Lt.value && (t = Array.from(Lt.value.querySelectorAll("text")).reduce((s, n) => {
289
+ At.value && (t = Array.from(At.value.querySelectorAll("text")).reduce((s, n) => {
290
290
  const o = n.getComputedTextLength();
291
291
  return o > s ? o : s;
292
292
  }, 0));
293
- const l = Ct.value ? Ct.value.getBoundingClientRect().width : 0;
293
+ const l = Lt.value ? Lt.value.getBoundingClientRect().width : 0;
294
294
  return t + l + (l ? 24 : 0);
295
295
  }
296
- const Et = h(0), He = h(0), We = h(0);
297
- function Il() {
296
+ const Rt = f(0), He = f(0), We = f(0);
297
+ function zl() {
298
298
  const t = nt.value;
299
299
  if (!t) {
300
300
  He.value = 0;
@@ -307,17 +307,17 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
307
307
  He.value = 0;
308
308
  }
309
309
  }
310
- function zl() {
310
+ function Il() {
311
311
  We.value && cancelAnimationFrame(We.value), We.value = requestAnimationFrame(() => {
312
312
  requestAnimationFrame(() => {
313
- Il();
313
+ zl();
314
314
  });
315
315
  });
316
316
  }
317
317
  Xt(() => {
318
- We.value && cancelAnimationFrame(We.value), He.value = 0, Et.value = 0;
318
+ We.value && cancelAnimationFrame(We.value), He.value = 0, Rt.value = 0;
319
319
  });
320
- const wa = f(() => {
320
+ const ka = m(() => {
321
321
  let t = 0;
322
322
  if (ot.value)
323
323
  try {
@@ -327,12 +327,12 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
327
327
  }
328
328
  const l = e.value.style.chart.grid.x.timeLabels.show ? He.value : 0;
329
329
  return t + l;
330
- }), d = f(() => {
331
- ua.value;
332
- const { height: t, width: l } = ne.value, { right: a } = ne.value.paddingRatio;
330
+ }), d = m(() => {
331
+ ia.value;
332
+ const { height: t, width: l } = oe.value, { right: a } = oe.value.paddingRatio;
333
333
  let s = e.value.style.chart.lines.totalValues.show && G.dataset && G.dataset.length > 1 ? e.value.style.chart.lines.totalValues.fontSize * 1.3 : 0, n = 0;
334
334
  e.value.style.chart.grid.y.axisLabels.show && (n = Pl());
335
- const o = e.value.style.chart.padding.top + s, r = l - l * a - Et.value, y = t - e.value.style.chart.padding.bottom - wa.value - s, k = e.value.style.chart.padding.left + n, A = l - k - l * a - Et.value, S = t - o - e.value.style.chart.padding.bottom - wa.value - s;
335
+ const o = e.value.style.chart.padding.top + s, r = l - l * a - Rt.value, y = t - e.value.style.chart.padding.bottom - ka.value - s, k = e.value.style.chart.padding.left + n, T = l - k - l * a - Rt.value, S = t - o - e.value.style.chart.padding.bottom - ka.value - s;
336
336
  return {
337
337
  chartHeight: Math.max(0, t),
338
338
  chartWidth: Math.max(0, l),
@@ -340,11 +340,11 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
340
340
  right: Math.max(0, r),
341
341
  bottom: Math.max(0, y),
342
342
  left: Math.max(0, k),
343
- width: Math.max(0, A),
343
+ width: Math.max(0, T),
344
344
  height: Math.max(0, S)
345
345
  };
346
- }), _l = f(() => {
347
- const { left: t, top: l, width: a, height: s } = d.value, n = c.value.start, o = c.value.end, r = Math.max(1, o - n), y = Math.max(0, Math.min(r, (re.value.start ?? n) - n)), k = Math.max(0, Math.min(r, (re.value.end ?? o) - n)), A = Math.max(0, k - y), S = {
346
+ }), _l = m(() => {
347
+ const { left: t, top: l, width: a, height: s } = d.value, n = u.value.start, o = u.value.end, r = Math.max(1, o - n), y = Math.max(0, Math.min(r, (ne.value.start ?? n) - n)), k = Math.max(0, Math.min(r, (ne.value.end ?? o) - n)), T = Math.max(0, k - y), S = {
348
348
  fill: e.value.style.chart.zoom.preview.fill,
349
349
  stroke: e.value.style.chart.zoom.preview.stroke,
350
350
  "stroke-width": e.value.style.chart.zoom.preview.strokeWidth,
@@ -356,16 +356,16 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
356
356
  transition: "none !important",
357
357
  animation: "none !important"
358
358
  }
359
- }, I = a / r;
359
+ }, z = a / r;
360
360
  return {
361
- x: t + y * I,
361
+ x: t + y * z,
362
362
  y: l,
363
- width: A * I,
363
+ width: T * z,
364
364
  height: s,
365
365
  ...S
366
366
  };
367
- }), Z = f(() => Nt.value.map((t, l) => {
368
- const a = $s(t.color) || Nl.value[l] || xt[l] || xt[l % xt.length];
367
+ }), Z = m(() => Pt.value.map((t, l) => {
368
+ const a = Cs(t.color) || Nl.value[l] || kt[l] || kt[l % kt.length];
369
369
  return {
370
370
  ...t,
371
371
  shape: t.shape || "circle",
@@ -379,34 +379,34 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
379
379
  id: ll(),
380
380
  color: a
381
381
  };
382
- })), Me = f(
383
- () => Z.value.filter((t) => !D.value.includes(t.id) && !t.standalone)
384
- ), ut = f(
385
- () => Z.value.filter((t) => !D.value.includes(t.id) && t.standalone)
386
- ), me = f(() => {
387
- const t = Math.max(...Z.value.filter((l) => !D.value.includes(l.id)).map((l) => l.series.length));
382
+ })), Me = m(
383
+ () => Z.value.filter((t) => !V.value.includes(t.id) && !t.standalone)
384
+ ), ut = m(
385
+ () => Z.value.filter((t) => !V.value.includes(t.id) && t.standalone)
386
+ ), he = m(() => {
387
+ const t = Math.max(...Z.value.filter((l) => !V.value.includes(l.id)).map((l) => l.series.length));
388
388
  return isFinite(t) ? t : Math.max(...Z.value.map((l) => l.series.length));
389
389
  });
390
390
  function Fl(t) {
391
391
  Ye.value = t;
392
392
  }
393
- const c = h({
393
+ const u = f({
394
394
  start: 0,
395
- end: Math.max(...Nt.value.map((t) => t.series.length))
396
- }), re = h({ start: 0, end: Math.max(...Nt.value.map((t) => t.series.length)) });
397
- function Rt(t) {
398
- return (c.value.start ?? 0) + (t ?? 0);
395
+ end: Math.max(...Pt.value.map((t) => t.series.length))
396
+ }), ne = f({ start: 0, end: Math.max(...Pt.value.map((t) => t.series.length)) });
397
+ function Ot(t) {
398
+ return (u.value.start ?? 0) + (t ?? 0);
399
399
  }
400
- const Sa = f(() => e.value.style.chart.zoom.preview.enable && (re.value.start !== c.value.start || re.value.end !== c.value.end));
401
- function Ma(t, l) {
402
- re.value[t] = l;
400
+ const wa = m(() => e.value.style.chart.zoom.preview.enable && (ne.value.start !== u.value.start || ne.value.end !== u.value.end));
401
+ function Sa(t, l) {
402
+ ne.value[t] = l;
403
403
  }
404
404
  function ct() {
405
- const t = me.value;
406
- let l = Math.max(0, Math.min(c.value.start ?? 0, t - 1)), a = Math.max(l + 1, Math.min(c.value.end ?? t, t));
407
- (!Number.isFinite(l) || !Number.isFinite(a) || a <= l) && (l = 0, a = t), c.value.start = l, c.value.end = a, re.value.start = l, re.value.end = a, Oe.value && (Oe.value.setStartValue(l), Oe.value.setEndValue(a));
405
+ const t = he.value;
406
+ let l = Math.max(0, Math.min(u.value.start ?? 0, t - 1)), a = Math.max(l + 1, Math.min(u.value.end ?? t, t));
407
+ (!Number.isFinite(l) || !Number.isFinite(a) || a <= l) && (l = 0, a = t), u.value.start = l, u.value.end = a, ne.value.start = l, ne.value.end = a, Oe.value && (Oe.value.setStartValue(l), Oe.value.setEndValue(a));
408
408
  }
409
- const Ue = h(null);
409
+ const Ue = f(null);
410
410
  function El() {
411
411
  return new Promise((t) => requestAnimationFrame(
412
412
  () => requestAnimationFrame(() => t())
@@ -415,16 +415,16 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
415
415
  Xt(() => {
416
416
  Ue.value && cancelAnimationFrame(Ue.value);
417
417
  });
418
- async function $a() {
418
+ async function Ma() {
419
419
  mt(), await Gt(), Ue.value && cancelAnimationFrame(Ue.value), Ue.value = requestAnimationFrame(async () => {
420
420
  await El(), mt();
421
421
  });
422
422
  }
423
- const vt = f(() => Math.max(0, d.value.width / (c.value.end - c.value.start))), Ca = f(() => Qe(
423
+ const vt = m(() => Math.max(0, d.value.width / (u.value.end - u.value.start))), $a = m(() => Qe(
424
424
  Me.value.map((t) => ({ ...t, series: t.series.map((l) => l ?? 0) }))
425
- ).slice(c.value.start, c.value.end)), dt = f(() => D.value.length === Z.value.length), La = f(() => {
425
+ ).slice(u.value.start, u.value.end)), dt = m(() => V.value.length === Z.value.length), Ca = m(() => {
426
426
  if (!e.value.style.chart.zoom.minimap.show) return [];
427
- const t = Z.value.filter((n) => dt.value ? !0 : !D.value.includes(n.id) && !n.standalone);
427
+ const t = Z.value.filter((n) => dt.value ? !0 : !V.value.includes(n.id) && !n.standalone);
428
428
  if (t.length)
429
429
  return Qe(
430
430
  t.map((n) => ({
@@ -439,11 +439,11 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
439
439
  { length: a },
440
440
  (n, o) => l.reduce((r, y) => r + Math.abs(y.series[o] ?? 0), 0)
441
441
  );
442
- }), Rl = f(() => {
442
+ }), Rl = m(() => {
443
443
  if (!e.value.style.chart.zoom.minimap.show) return [];
444
- const l = Z.value.filter((o) => dt.value ? !0 : !D.value.includes(o.id) && !o.standalone), a = ut.value, s = l.length ? [{
444
+ const l = Z.value.filter((o) => dt.value ? !0 : !V.value.includes(o.id) && !o.standalone), a = ut.value, s = l.length ? [{
445
445
  name: "",
446
- series: La.value,
446
+ series: Ca.value,
447
447
  color: "#000000",
448
448
  isVisible: !0
449
449
  }] : [], n = a.map((o) => ({
@@ -453,110 +453,110 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
453
453
  isVisible: !0
454
454
  }));
455
455
  return s.concat(n);
456
- }), Ol = f(() => Qe(
457
- Me.value.filter((t) => !D.value.includes(t.id)).map((t) => ({
456
+ }), Ol = m(() => Qe(
457
+ Me.value.filter((t) => !V.value.includes(t.id)).map((t) => ({
458
458
  ...t,
459
459
  series: t.series.map((l, a) => {
460
460
  const s = l ?? 0;
461
461
  return t.signedSeries[a] === -1 && s >= 0 ? -s : s;
462
462
  })
463
463
  }))
464
- ).slice(c.value.start, c.value.end)), Ne = f(() => {
465
- const t = Me.value.filter((l) => !D.value.includes(l.id));
464
+ ).slice(u.value.start, u.value.end)), Ne = m(() => {
465
+ const t = Me.value.filter((l) => !V.value.includes(l.id));
466
466
  return {
467
467
  positive: Qe(t.map((l) => ({
468
468
  ...l,
469
- series: l.series.slice(c.value.start, c.value.end).map((a) => (a ?? 0) >= 0 ? a ?? 0 : 0)
469
+ series: l.series.slice(u.value.start, u.value.end).map((a) => (a ?? 0) >= 0 ? a ?? 0 : 0)
470
470
  }))),
471
471
  negative: Qe(t.map((l) => ({
472
472
  ...l,
473
- series: l.series.slice(c.value.start, c.value.end).map((a) => (a ?? 0) < 0 ? a ?? 0 : 0)
473
+ series: l.series.slice(u.value.start, u.value.end).map((a) => (a ?? 0) < 0 ? a ?? 0 : 0)
474
474
  })))
475
475
  };
476
- }), Pe = f(() => {
477
- const t = Math.max(0, c.value.end - c.value.start), l = Array(t).fill(0), a = Array(t).fill(0);
476
+ }), Pe = m(() => {
477
+ const t = Math.max(0, u.value.end - u.value.start), l = Array(t).fill(0), a = Array(t).fill(0);
478
478
  return ut.value.forEach((s) => {
479
479
  for (let n = 0; n < t; n += 1) {
480
- const o = s.series[c.value.start + n] ?? 0;
480
+ const o = s.series[u.value.start + n] ?? 0;
481
481
  o > 0 && (l[n] = Math.max(l[n], o)), o < 0 && (a[n] = Math.min(a[n], o));
482
482
  }
483
483
  }), {
484
484
  positive: l,
485
485
  negative: a
486
486
  };
487
- }), Aa = f(() => Ol.value.map((t, l) => ({
487
+ }), La = m(() => Ol.value.map((t, l) => ({
488
488
  value: t,
489
489
  sign: t >= 0 ? 1 : -1
490
490
  })));
491
491
  function Dl() {
492
- return { y0: Ie.value?.[0]?.zero ?? d.value.bottom };
492
+ return { y0: ze.value?.[0]?.zero ?? d.value.bottom };
493
493
  }
494
494
  function Vl(t) {
495
495
  const { y0: l } = Dl(), a = e.value.style.chart.lines.totalValues, s = Math.max(2, a.fontSize * 1.3 + a.offsetY), n = (r) => Math.min(Math.max(r, d.value.top - e.value.style.chart.lines.totalValues.fontSize * 1.3), d.value.bottom + e.value.style.chart.lines.totalValues.fontSize * 2);
496
- if ((Aa.value?.[t]?.value ?? 0) >= 0 || e.value.style.chart.lines.distributed) {
496
+ if ((La.value?.[t]?.value ?? 0) >= 0 || e.value.style.chart.lines.distributed) {
497
497
  let r = 1 / 0;
498
- for (const k of T.value || []) {
499
- const A = k?.series?.[t], S = k?.topY?.[t];
500
- (A ?? 0) > 0 && Number.isFinite(S) && S < r && (r = S);
498
+ for (const k of A.value || []) {
499
+ const T = k?.series?.[t], S = k?.topY?.[t];
500
+ (T ?? 0) > 0 && Number.isFinite(S) && S < r && (r = S);
501
501
  }
502
502
  const y = Number.isFinite(r) ? r : l;
503
503
  return n(y - s - e.value.style.chart.lines.totalValues.offsetY);
504
504
  } else {
505
505
  let r = -1 / 0;
506
- for (const k of T.value || []) {
507
- const A = k?.series?.[t], S = k?.topY?.[t];
508
- (A ?? 0) < 0 && Number.isFinite(S) && S > r && (r = S);
506
+ for (const k of A.value || []) {
507
+ const T = k?.series?.[t], S = k?.topY?.[t];
508
+ (T ?? 0) < 0 && Number.isFinite(S) && S > r && (r = S);
509
509
  }
510
510
  const y = Number.isFinite(r) ? r : l;
511
511
  return n(y + s + a.fontSize * 0.7 + e.value.style.chart.lines.totalValues.offsetY);
512
512
  }
513
513
  }
514
- const Ie = f(() => {
515
- const t = Math.max(...Ne.value.positive, 0), l = Math.min(...Ne.value.negative, 0), a = Math.max(...Pe.value.positive, 0), s = Math.min(...Pe.value.negative, 0), n = Math.max(t, a), o = Math.min(l, s), r = [-1 / 0, 1 / 0, NaN, void 0, null].includes(o) ? 0 : o, y = e.value.style.chart.grid.scale.scaleMin, k = e.value.style.chart.grid.scale.scaleMax, A = !e.value.style.chart.lines.distributed && (y !== null || k !== null), S = y !== null && !e.value.style.chart.lines.distributed ? y : r > 0 ? 0 : r, I = k !== null && !e.value.style.chart.lines.distributed ? k : n < 0 ? 0 : n, E = A ? kt(S, I, e.value.style.chart.grid.scale.ticks) : wt(S, I, e.value.style.chart.grid.scale.ticks), M = Math.abs(Number(E.min) || 0), u = (Number(E.max) || 0) + M, w = u === 0 || !Number.isFinite(u) ? 1 : u, V = Array.isArray(E.ticks) && E.ticks.length ? E.ticks : [0], g = d.value.bottom - d.value.height * (M / w);
516
- return V.map(($) => {
517
- const R = Number($) || 0, _ = d.value.bottom - d.value.height * ((R + M) / w);
514
+ const ze = m(() => {
515
+ const t = Math.max(...Ne.value.positive, 0), l = Math.min(...Ne.value.negative, 0), a = Math.max(...Pe.value.positive, 0), s = Math.min(...Pe.value.negative, 0), n = Math.max(t, a), o = Math.min(l, s), r = [-1 / 0, 1 / 0, NaN, void 0, null].includes(o) ? 0 : o, y = e.value.style.chart.grid.scale.scaleMin, k = e.value.style.chart.grid.scale.scaleMax, T = !e.value.style.chart.lines.distributed && (y !== null || k !== null), S = y !== null && !e.value.style.chart.lines.distributed ? y : r > 0 ? 0 : r, z = k !== null && !e.value.style.chart.lines.distributed ? k : n < 0 ? 0 : n, O = T ? wt(S, z, e.value.style.chart.grid.scale.ticks) : St(S, z, e.value.style.chart.grid.scale.ticks), M = Math.abs(Number(O.min) || 0), w = (Number(O.max) || 0) + M, c = w === 0 || !Number.isFinite(w) ? 1 : w, _ = Array.isArray(O.ticks) && O.ticks.length ? O.ticks : [0], g = d.value.bottom - d.value.height * (M / c);
516
+ return _.map(($) => {
517
+ const F = Number($) || 0, E = d.value.bottom - d.value.height * ((F + M) / c);
518
518
  return {
519
519
  zero: g,
520
- y: _,
520
+ y: E,
521
521
  x: ae.value.left - 8,
522
- value: R
522
+ value: F
523
523
  };
524
524
  });
525
- }), se = h([]), ze = h([]);
526
- let Ta = 0;
527
- pt(() => {
528
- const t = ++Ta;
525
+ }), me = f([]), Ie = f([]);
526
+ let Aa = 0;
527
+ bt(() => {
528
+ const t = ++Aa;
529
529
  (async () => {
530
530
  const l = await il({
531
531
  values: e.value.style.chart.grid.x.timeLabels.values,
532
- maxDatapoints: me.value,
532
+ maxDatapoints: he.value,
533
533
  formatter: e.value.style.chart.grid.x.timeLabels.datetimeFormatter,
534
- start: c.value.start,
535
- end: c.value.end
534
+ start: u.value.start,
535
+ end: u.value.end
536
536
  });
537
- t === Ta && (se.value = l);
537
+ t === Aa && (me.value = l);
538
538
  })();
539
539
  });
540
- let Na = 0;
541
- pt(() => {
542
- const t = ++Na;
540
+ let Ta = 0;
541
+ bt(() => {
542
+ const t = ++Ta;
543
543
  (async () => {
544
544
  const l = await il({
545
545
  values: e.value.style.chart.grid.x.timeLabels.values,
546
- maxDatapoints: me.value,
546
+ maxDatapoints: he.value,
547
547
  formatter: e.value.style.chart.grid.x.timeLabels.datetimeFormatter,
548
548
  start: 0,
549
- end: me.value
549
+ end: he.value
550
550
  });
551
- t === Na && (ze.value = l);
551
+ t === Ta && (Ie.value = l);
552
552
  })();
553
553
  });
554
- const Bl = f(() => {
554
+ const Bl = m(() => {
555
555
  const t = e.value.style.chart.grid.x.timeLabels.modulo;
556
- return se.value.length ? Math.min(t, [...new Set(se.value.map((l) => l.text))].length) : t;
557
- }), ht = f(() => {
558
- const t = e.value.style.chart.grid.x.timeLabels, l = se.value || [], a = ze.value || [], s = c.value.start ?? 0, n = b.value, o = me.value, r = l.map((k) => k?.text ?? ""), y = a.map((k) => k?.text ?? "");
559
- return Cs(
556
+ return me.value.length ? Math.min(t, [...new Set(me.value.map((l) => l.text))].length) : t;
557
+ }), ht = m(() => {
558
+ const t = e.value.style.chart.grid.x.timeLabels, l = me.value || [], a = Ie.value || [], s = u.value.start ?? 0, n = b.value, o = he.value, r = l.map((k) => k?.text ?? ""), y = a.map((k) => k?.text ?? "");
559
+ return Ls(
560
560
  !!t.showOnlyFirstAndLast,
561
561
  !!t.showOnlyAtModulo,
562
562
  Math.max(1, Bl.value || 1),
@@ -567,117 +567,117 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
567
567
  o
568
568
  );
569
569
  });
570
- pt(() => {
571
- e.value.style.chart.grid.x.timeLabels.show, e.value.style.chart.grid.x.timeLabels.fontSize, e.value.style.chart.grid.x.timeLabels.rotation, e.value.style.chart.grid.x.timeLabels.offsetY, (ht.value || []).map((t) => t?.text ?? "").join("|"), ne.value.width, ne.value.height, nt.value, ot.value, zl();
570
+ bt(() => {
571
+ e.value.style.chart.grid.x.timeLabels.show, e.value.style.chart.grid.x.timeLabels.fontSize, e.value.style.chart.grid.x.timeLabels.rotation, e.value.style.chart.grid.x.timeLabels.offsetY, (ht.value || []).map((t) => t?.text ?? "").join("|"), oe.value.width, oe.value.height, nt.value, ot.value, Il();
572
572
  }, { flush: "post" });
573
- const Pa = h({ months: [], shortMonths: [], days: [], shortDays: [] });
574
- let Ia = 0;
575
- pt(() => {
576
- const t = ++Ia, l = e.value.style.chart.grid.x.timeLabels.datetimeFormatter;
573
+ const Na = f({ months: [], shortMonths: [], days: [], shortDays: [] });
574
+ let Pa = 0;
575
+ bt(() => {
576
+ const t = ++Pa, l = e.value.style.chart.grid.x.timeLabels.datetimeFormatter;
577
577
  (async () => {
578
578
  const a = await ul(l.locale).catch(() => ul("en"));
579
- t === Ia && (Pa.value = a.data);
579
+ t === Pa && (Na.value = a.data);
580
580
  })();
581
581
  });
582
- const za = f(() => {
583
- const t = e.value.style.chart.grid.x.timeLabels.datetimeFormatter, l = Ds({
582
+ const za = m(() => {
583
+ const t = e.value.style.chart.grid.x.timeLabels.datetimeFormatter, l = Vs({
584
584
  useUTC: t.useUTC,
585
- locale: Pa.value,
585
+ locale: Na.value,
586
586
  januaryAsYear: t.januaryAsYear
587
587
  });
588
588
  return (a, s) => {
589
589
  const o = e.value.style.chart.grid.x.timeLabels.values?.[a];
590
590
  return o == null ? "" : l.formatDate(new Date(o), s);
591
591
  };
592
- }), _a = f(() => (e.value.style.chart.grid.x.timeLabels.values || []).map((l, a) => ({
592
+ }), Ia = m(() => (e.value.style.chart.grid.x.timeLabels.values || []).map((l, a) => ({
593
593
  text: za.value(a, e.value.style.chart.zoom.timeFormat),
594
594
  absoluteIndex: a
595
- }))), Ot = f(() => (e.value.style.chart.grid.x.timeLabels.values || []).map((l, a) => ({
595
+ }))), Yl = m(() => (e.value.style.chart.grid.x.timeLabels.values || []).map((l, a) => ({
596
596
  text: za.value(a, e.value.style.chart.tooltip.timeFormat),
597
597
  absoluteIndex: a
598
- }))), Yl = f(() => {
599
- if (!Ee.value && !de.value) return [];
600
- const t = d.value.height, l = Ie.value[0] ? Ie.value[0].zero : d.value.bottom, a = c.value.start ?? 0, s = c.value.end ?? 0, n = Math.max(1, s - a), o = Math.max(...Ne.value.positive, 0), r = Math.min(...Ne.value.negative, 0), y = Math.max(...Pe.value.positive, 0), k = Math.min(...Pe.value.negative, 0), A = Math.max(o, y), S = Math.min(r, k), I = !e.value.style.chart.lines.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? kt(
598
+ }))), Hl = m(() => {
599
+ if (!Ee.value && !ve.value) return [];
600
+ const t = d.value.height, l = ze.value[0] ? ze.value[0].zero : d.value.bottom, a = u.value.start ?? 0, s = u.value.end ?? 0, n = Math.max(1, s - a), o = Math.max(...Ne.value.positive, 0), r = Math.min(...Ne.value.negative, 0), y = Math.max(...Pe.value.positive, 0), k = Math.min(...Pe.value.negative, 0), T = Math.max(o, y), S = Math.min(r, k), z = !e.value.style.chart.lines.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? wt(
601
601
  e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : S > 0 ? 0 : S,
602
- e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : A < 0 ? 0 : A,
602
+ e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : T < 0 ? 0 : T,
603
603
  e.value.style.chart.grid.scale.ticks
604
- ) : wt(
604
+ ) : St(
605
605
  e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : S > 0 ? 0 : S,
606
- e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : A < 0 ? 0 : A,
606
+ e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : T < 0 ? 0 : T,
607
607
  e.value.style.chart.grid.scale.ticks
608
- ), { min: E, max: M } = I, m = M + (E >= 0 ? 0 : Math.abs(E)) || 1, u = Array(n).fill(0), w = Array(n).fill(0), V = (g) => n <= 1 ? d.value.left + d.value.width / 2 : d.value.left + g / (n - 1) * d.value.width;
609
- return Z.value.filter((g) => !D.value.includes(g.id)).map((g) => {
610
- const $ = [], R = [], _ = [], z = new Array(n).fill(null), B = new Array(n).fill(null);
608
+ ), { min: O, max: M } = z, h = M + (O >= 0 ? 0 : Math.abs(O)) || 1, w = Array(n).fill(0), c = Array(n).fill(0), _ = (g) => n <= 1 ? d.value.left + d.value.width / 2 : d.value.left + g / (n - 1) * d.value.width;
609
+ return Z.value.filter((g) => !V.value.includes(g.id)).map((g) => {
610
+ const $ = [], F = [], E = [], I = new Array(n).fill(null), B = new Array(n).fill(null);
611
611
  for (let p = 0; p < n; p += 1) {
612
- const L = a + p, q = g.series?.[L], U = g.signedSeries?.[L], xe = q == null || Number.isNaN(q) ? 0 : q, el = g.standalone ? xe / m : e.value.style.chart.lines.distributed ? xe / (Ca.value[p] || 1) : xe / m;
612
+ const L = a + p, q = g.series?.[L], U = g.signedSeries?.[L], xe = q == null || Number.isNaN(q) ? 0 : q, el = g.standalone ? xe / h : e.value.style.chart.lines.distributed ? xe / ($a.value[p] || 1) : xe / h;
613
613
  if (xe >= 0) {
614
614
  const je = t * Math.abs(el);
615
615
  if (g.standalone)
616
- z[p] = l, B[p] = l - je;
616
+ I[p] = l, B[p] = l - je;
617
617
  else {
618
- const Je = u[p], Ke = Je + je;
619
- z[p] = l - Je, B[p] = l - Ke, u[p] = Ke;
618
+ const Je = w[p], Ke = Je + je;
619
+ I[p] = l - Je, B[p] = l - Ke, w[p] = Ke;
620
620
  }
621
621
  } else {
622
622
  const je = t * Math.abs(el);
623
623
  if (g.standalone)
624
- z[p] = l, B[p] = l + je;
624
+ I[p] = l, B[p] = l + je;
625
625
  else {
626
- const Je = w[p], Ke = Je + je;
627
- z[p] = l + Je, B[p] = l + Ke, w[p] = Ke;
626
+ const Je = c[p], Ke = Je + je;
627
+ I[p] = l + Je, B[p] = l + Ke, c[p] = Ke;
628
628
  }
629
629
  }
630
- $.push(p), R.push(xe), _.push(U ?? (xe >= 0 ? 1 : -1));
630
+ $.push(p), F.push(xe), E.push(U ?? (xe >= 0 ? 1 : -1));
631
631
  }
632
- const H = $.map((p) => ({ x: V(p), y: B[p] })), Q = H.map((p) => p.x), J = R.reduce((p, L) => p + Math.abs(L || 0), 0), W = J === 0 ? 1 : J, O = R.map((p, L) => {
632
+ const H = $.map((p) => ({ x: _(p), y: B[p] })), te = H.map((p) => p.x), J = F.reduce((p, L) => p + Math.abs(L || 0), 0), W = J === 0 ? 1 : J, D = F.map((p, L) => {
633
633
  if (e.value.style.chart.lines.distributed && !g.standalone) {
634
- const q = $[L], U = Ca.value[q] || 1;
634
+ const q = $[L], U = $a.value[q] || 1;
635
635
  return (p || 0) / U;
636
636
  }
637
637
  return (p || 0) / W;
638
638
  });
639
639
  return {
640
640
  ...g,
641
- x: Q,
641
+ x: te,
642
642
  points: H,
643
- baseY: $.map((p) => z[p]),
643
+ baseY: $.map((p) => I[p]),
644
644
  topY: $.map((p) => B[p]),
645
- series: R,
646
- signedSeries: _,
647
- proportions: O,
645
+ series: F,
646
+ signedSeries: E,
647
+ proportions: D,
648
648
  rel: $,
649
649
  fullSeries: Array.isArray(g.fullSeries) ? g.fullSeries : g.series
650
650
  };
651
651
  });
652
- }), T = f(() => {
652
+ }), A = m(() => {
653
653
  const t = (M) => typeof M == "string" ? M.replace(
654
654
  /^M\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*,?\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*/i,
655
655
  ""
656
- ).trim() : "", l = Math.max(...Ne.value.positive, 0), a = Math.min(...Ne.value.negative, 0), s = Math.max(...Pe.value.positive, 0), n = Math.min(...Pe.value.negative, 0), o = Math.max(l, s), r = Math.min(a, n), y = !e.value.style.chart.lines.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? kt(
656
+ ).trim() : "", l = Math.max(...Ne.value.positive, 0), a = Math.min(...Ne.value.negative, 0), s = Math.max(...Pe.value.positive, 0), n = Math.min(...Pe.value.negative, 0), o = Math.max(l, s), r = Math.min(a, n), y = !e.value.style.chart.lines.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? wt(
657
657
  e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : r > 0 ? 0 : r,
658
658
  e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : o < 0 ? 0 : o,
659
659
  e.value.style.chart.grid.scale.ticks
660
- ) : wt(
660
+ ) : St(
661
661
  e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : r > 0 ? 0 : r,
662
662
  e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : o < 0 ? 0 : o,
663
663
  e.value.style.chart.grid.scale.ticks
664
- ), k = Number(y.min) || 0, A = Number(y.max) || 0, S = Math.abs(k), I = A + S || 1, E = (M) => {
664
+ ), k = Number(y.min) || 0, T = Number(y.max) || 0, S = Math.abs(k), z = T + S || 1, O = (M) => {
665
665
  if (e.value.style.chart.lines.distributed) {
666
- const m = Math.max(0, Math.min(1, M));
667
- return minimapH - minimapH * m;
666
+ const h = Math.max(0, Math.min(1, M));
667
+ return minimapH - minimapH * h;
668
668
  }
669
- return clampY(minimapH - minimapH * (((M ?? 0) + S) / I));
669
+ return clampY(minimapH - minimapH * (((M ?? 0) + S) / z));
670
670
  };
671
- return Yl.value.map((M) => {
672
- const m = M.x.length, u = Array.isArray(M.fullSeries) ? M.fullSeries : M.series, w = ({ left: W = 0, unitW: O }) => {
673
- const p = u.length;
674
- return !Number.isFinite(O) || O <= 0 || p <= 0 ? [] : p === 1 ? [W + O * 0.5] : u.map((L, q) => W + q * O);
675
- }, V = ({ minimapH: W }) => !Number.isFinite(W) || W <= 0 ? [] : u.map((O) => E(O || 0)), g = ({ minimapH: W }) => {
671
+ return Hl.value.map((M) => {
672
+ const h = M.x.length, w = Array.isArray(M.fullSeries) ? M.fullSeries : M.series, c = ({ left: W = 0, unitW: D }) => {
673
+ const p = w.length;
674
+ return !Number.isFinite(D) || D <= 0 || p <= 0 ? [] : p === 1 ? [W + D * 0.5] : w.map((L, q) => W + q * D);
675
+ }, _ = ({ minimapH: W }) => !Number.isFinite(W) || W <= 0 ? [] : w.map((D) => O(D || 0)), g = ({ minimapH: W }) => {
676
676
  if (!Number.isFinite(W) || W <= 0) return [];
677
- const O = E(0);
678
- return u.map(() => O);
677
+ const D = O(0);
678
+ return w.map(() => D);
679
679
  };
680
- if (m === 0)
680
+ if (h === 0)
681
681
  return {
682
682
  ...M,
683
683
  points: [],
@@ -685,39 +685,46 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
685
685
  straightPath: "",
686
686
  smoothArea: "",
687
687
  straightArea: "",
688
- xMinimap: w,
689
- yMinimap: V,
688
+ xMinimap: c,
689
+ yMinimap: _,
690
690
  yMinimapBase: g
691
691
  };
692
- const $ = M.x.map((W, O) => ({ x: W, y: M.topY[O] })), R = M.x.map((W, O) => ({ x: W, y: M.baseY[O] })), _ = m >= 2 ? we($) : `M${$[0].x},${$[0].y}`, z = m >= 2 ? Se($) : `M${$[0].x},${$[0].y}`, B = m >= 2 ? `M${t(_)}` : _, H = m >= 2 ? `M${t(z)}` : z;
693
- let Q = "", J = "";
694
- if (e.value.style.chart.lines.useArea && m >= 2) {
695
- const W = we([...R].reverse()), O = Se([...R].reverse()), p = R[R.length - 1];
696
- Q = `M${$[0].x},${$[0].y} ${t(_)} L${p.x},${p.y} ${t(W)} Z`, J = `M${$[0].x},${$[0].y} ${t(z)} L${p.x},${p.y} ${t(O)} Z`;
692
+ const $ = M.x.map((W, D) => ({ x: W, y: M.topY[D] })), F = M.x.map((W, D) => ({ x: W, y: M.baseY[D] })), E = h >= 2 ? we($) : `M${$[0].x},${$[0].y}`, I = h >= 2 ? Se($) : `M${$[0].x},${$[0].y}`, B = h >= 2 ? `M${t(E)}` : E, H = h >= 2 ? `M${t(I)}` : I;
693
+ let te = "", J = "";
694
+ if (e.value.style.chart.lines.useArea && h >= 2) {
695
+ const W = we([...F].reverse()), D = Se([...F].reverse()), p = F[F.length - 1];
696
+ te = `M${$[0].x},${$[0].y} ${t(E)} L${p.x},${p.y} ${t(W)} Z`, J = `M${$[0].x},${$[0].y} ${t(I)} L${p.x},${p.y} ${t(D)} Z`;
697
697
  }
698
698
  return {
699
699
  ...M,
700
700
  points: $,
701
701
  smoothPath: B,
702
702
  straightPath: H,
703
- smoothArea: Q,
703
+ smoothArea: te,
704
704
  straightArea: J,
705
- xMinimap: w,
706
- yMinimap: V,
705
+ xMinimap: c,
706
+ yMinimap: _,
707
707
  yMinimapBase: g
708
708
  };
709
709
  });
710
- }), qe = h(!1), Fa = h(!1);
711
- function Ea(t) {
712
- const l = me.value;
713
- return t > l ? l : t < 0 || t < c.value.start ? e.value.style.chart.zoom.startIndex !== null ? c.value.start + 1 : 1 : t;
710
+ }), Dt = m(() => b.value === null || b.value === void 0 ? null : {
711
+ timeLabel: Da(b.value),
712
+ absoluteIndex: b.value + u.value.start,
713
+ seriesIndex: b.value,
714
+ datapoint: pt.value,
715
+ series: A.value,
716
+ config: e.value
717
+ }), qe = f(!1), _a = f(!1);
718
+ function Fa(t) {
719
+ const l = he.value;
720
+ return t > l ? l : t < 0 || t < u.value.start ? e.value.style.chart.zoom.startIndex !== null ? u.value.start + 1 : 1 : t;
714
721
  }
715
722
  function mt() {
716
723
  if (!qe.value) {
717
724
  qe.value = !0;
718
725
  try {
719
- const { startIndex: t, endIndex: l } = e.value.style.chart.zoom, a = me.value, s = t ?? 0, n = l != null ? Math.min(Ea(l + 1), a) : a;
720
- ft.value = !0, c.value.start = s, c.value.end = n, re.value.start = s, re.value.end = n, ct(), Fa.value = !0;
726
+ const { startIndex: t, endIndex: l } = e.value.style.chart.zoom, a = he.value, s = t ?? 0, n = l != null ? Math.min(Fa(l + 1), a) : a;
727
+ ft.value = !0, u.value.start = s, u.value.end = n, ne.value.start = s, ne.value.end = n, ct(), _a.value = !0;
721
728
  } finally {
722
729
  queueMicrotask(() => {
723
730
  ft.value = !1;
@@ -725,71 +732,71 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
725
732
  }
726
733
  }
727
734
  }
728
- function Hl(t) {
729
- qe.value || ft.value || t !== c.value.start && (c.value.start = t, re.value.start = t, ct());
730
- }
731
735
  function Wl(t) {
736
+ qe.value || ft.value || t !== u.value.start && (u.value.start = t, ne.value.start = t, ct());
737
+ }
738
+ function Ul(t) {
732
739
  if (qe.value || ft.value) return;
733
- const l = Ea(t);
734
- l !== c.value.end && (c.value.end = l, re.value.end = l, ct());
740
+ const l = Fa(t);
741
+ l !== u.value.end && (u.value.end = l, ne.value.end = l, ct());
735
742
  }
736
- const ae = f(() => ({
743
+ const ae = m(() => ({
737
744
  left: d.value.left,
738
745
  right: d.value.right,
739
746
  width: d.value.width
740
- })), ft = h(!1), Ul = f(() => ne.value.width), ql = f(() => ne.value.height);
741
- Gs({
747
+ })), ft = f(!1), ql = m(() => oe.value.width), Xl = m(() => oe.value.height);
748
+ js({
742
749
  timeLabelsEls: nt,
743
- timeLabels: se,
744
- slicer: c,
750
+ timeLabels: me,
751
+ slicer: u,
745
752
  configRef: e,
746
753
  rotationPath: ["style", "chart", "grid", "x", "timeLabels", "rotation"],
747
754
  autoRotatePath: ["style", "chart", "grid", "x", "timeLabels", "autoRotate", "enable"],
748
755
  isAutoSize: !1,
749
- width: Ul,
750
- height: ql,
756
+ width: ql,
757
+ height: Xl,
751
758
  rotation: e.value.style.chart.grid.x.timeLabels.autoRotate.angle
752
759
  });
753
- const yt = h(null);
754
- function Ra(t) {
755
- const l = he.value;
760
+ const yt = f(null);
761
+ function Ea(t) {
762
+ const l = de.value;
756
763
  if (!l) return null;
757
764
  if (l.createSVGPoint && l.getScreenCTM) {
758
- const I = l.createSVGPoint();
759
- I.x = t.clientX, I.y = t.clientY;
760
- const E = l.getScreenCTM();
761
- if (E) {
762
- const M = I.matrixTransform(E.inverse());
765
+ const z = l.createSVGPoint();
766
+ z.x = t.clientX, z.y = t.clientY;
767
+ const O = l.getScreenCTM();
768
+ if (O) {
769
+ const M = z.matrixTransform(O.inverse());
763
770
  return { x: M.x, y: M.y, ok: !0 };
764
771
  }
765
772
  }
766
- const a = l.getBoundingClientRect(), s = l.viewBox?.baseVal || { x: 0, y: 0, width: a.width, height: a.height }, n = Math.min(a.width / s.width, a.height / s.height), o = s.width * n, r = s.height * n, y = (a.width - o) / 2, k = (a.height - r) / 2, A = (t.clientX - a.left - y) / n + s.x, S = (t.clientY - a.top - k) / n + s.y;
767
- return { x: A, y: S, ok: !0 };
773
+ const a = l.getBoundingClientRect(), s = l.viewBox?.baseVal || { x: 0, y: 0, width: a.width, height: a.height }, n = Math.min(a.width / s.width, a.height / s.height), o = s.width * n, r = s.height * n, y = (a.width - o) / 2, k = (a.height - r) / 2, T = (t.clientX - a.left - y) / n + s.x, S = (t.clientY - a.top - k) / n + s.y;
774
+ return { x: T, y: S, ok: !0 };
768
775
  }
769
776
  let $e = 0;
770
- const Y = f(() => Math.max(1, c.value.end - c.value.start)), gt = f(
777
+ const Y = m(() => Math.max(1, u.value.end - u.value.start)), gt = m(
771
778
  () => Y.value > 1 ? d.value.width / (Y.value - 1) : 0
772
779
  );
773
- function ie(t) {
780
+ function re(t) {
774
781
  return Y.value <= 1 ? d.value.left + d.value.width / 2 : d.value.left + t * gt.value;
775
782
  }
776
- function Oa(t) {
783
+ function Ra(t) {
777
784
  if (Y.value <= 1)
778
785
  return { x: d.value.left, width: d.value.width };
779
- const l = t === 0 ? d.value.left : (ie(t - 1) + ie(t)) / 2, a = t === Y.value - 1 ? d.value.left + d.value.width : (ie(t) + ie(t + 1)) / 2;
786
+ const l = t === 0 ? d.value.left : (re(t - 1) + re(t)) / 2, a = t === Y.value - 1 ? d.value.left + d.value.width : (re(t) + re(t + 1)) / 2;
780
787
  return { x: l, width: Math.max(0, a - l) };
781
788
  }
782
- function Xl(t) {
789
+ function Gl(t) {
783
790
  Ae.value || ($e && cancelAnimationFrame($e), $e = requestAnimationFrame(() => {
784
791
  $e = 0;
785
- const l = Ra(t);
786
- if (!l || !he.value) {
787
- Dt();
792
+ const l = Ea(t);
793
+ if (!l || !de.value) {
794
+ Vt();
788
795
  return;
789
796
  }
790
797
  const { left: a, right: s, top: n, bottom: o } = d.value;
791
798
  if (l.x < a || l.x > s || l.y < n || l.y > o) {
792
- Dt();
799
+ Vt();
793
800
  return;
794
801
  }
795
802
  let r = 0;
@@ -801,9 +808,9 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
801
808
  r < 0 && (r = 0), r > Y.value - 1 && (r = Y.value - 1), yt.value !== r && (yt.value = r, Bt(!0, r));
802
809
  }));
803
810
  }
804
- function Gl(t) {
805
- const l = Ra(t);
806
- if (!l || !he.value) return;
811
+ function jl(t) {
812
+ const l = Ea(t);
813
+ if (!l || !de.value) return;
807
814
  const { left: a, right: s, top: n, bottom: o } = d.value;
808
815
  if (l.x < a || l.x > s || l.y < n || l.y > o) return;
809
816
  let r = 0;
@@ -815,20 +822,20 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
815
822
  r < 0 && (r = 0), r > Y.value - 1 && (r = Y.value - 1), Za({
816
823
  seriesIndex: r,
817
824
  datapoint: ja(r)
818
- }), Da(r);
825
+ }), Oa(r);
819
826
  }
820
- function Da(t) {
821
- const l = JSON.parse(JSON.stringify(T.value)).map((a) => ({
827
+ function Oa(t) {
828
+ const l = JSON.parse(JSON.stringify(A.value)).map((a) => ({
822
829
  name: a.name,
823
830
  value: a.series[t] === 0 ? 0 : a.series[t] || null,
824
831
  proportion: a.proportions[t] || null,
825
832
  color: a.color,
826
833
  id: a.id
827
834
  }));
828
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: t + c.value.start }), ye("selectDatapoint", { datapoint: l, period: se.value[t] });
835
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: t + u.value.start }), ye("selectDatapoint", { datapoint: l, period: me.value[t] });
829
836
  }
830
837
  Fe(
831
- () => [c.value.start, c.value.end, T.value.length],
838
+ () => [u.value.start, u.value.end, A.value.length],
832
839
  () => {
833
840
  const t = Y.value;
834
841
  if (b.value != null) {
@@ -840,12 +847,12 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
840
847
  }
841
848
  }
842
849
  );
843
- function Dt() {
850
+ function Vt() {
844
851
  $e && (cancelAnimationFrame($e), $e = 0), yt.value = null, Bt(!1, null);
845
852
  }
846
- const b = h(null), Vt = f(() => {
847
- const t = b.value, l = t == null ? null : Rt(t);
848
- return T.value.map((a) => ({
853
+ const b = f(null), pt = m(() => {
854
+ const t = b.value, l = t == null ? null : Ot(t);
855
+ return A.value.map((a) => ({
849
856
  slotAbsoluteIndex: a.absoluteIndex,
850
857
  shape: a.shape || "circle",
851
858
  name: a.name,
@@ -856,21 +863,28 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
856
863
  id: a.id,
857
864
  standalone: !!a.standalone
858
865
  }));
859
- }), jl = f(() => {
860
- const t = e.value.style.chart.tooltip.customFormat, l = [...Vt.value].reverse(), a = l.filter((u) => !u.standalone), s = l.filter((u) => u.standalone), n = a.map((u) => u.value).filter((u) => Ls(u) && u !== null).reduce((u, w) => Math.abs(u) + Math.abs(w), 0);
861
- if (As(t) && Ts(
866
+ });
867
+ function Da(t) {
868
+ if (t == null || !e.value.style.chart.tooltip.showTimeLabel)
869
+ return null;
870
+ const l = me.value?.[t]?.text || null, a = Yl.value?.[t]?.text || null, s = Ie.value?.[t]?.text || null;
871
+ return e.value.style.chart.tooltip.useDefaultTimeFormat ? l : a || s;
872
+ }
873
+ const Jl = m(() => {
874
+ const t = e.value.style.chart.tooltip.customFormat, l = [...pt.value].reverse(), a = l.filter((c) => !c.standalone), s = l.filter((c) => c.standalone), n = a.map((c) => c.value).filter((c) => As(c) && c !== null).reduce((c, _) => Math.abs(c) + Math.abs(_), 0);
875
+ if (Ts(t) && Ns(
862
876
  () => t({
863
- absoluteIndex: b.value + c.value.start,
877
+ absoluteIndex: b.value + u.value.start,
864
878
  seriesIndex: b.value,
865
- datapoint: Vt.value,
879
+ datapoint: pt.value,
866
880
  series: Z.value,
867
881
  config: e.value
868
882
  })
869
883
  ))
870
884
  return t({
871
- absoluteIndex: b.value + c.value.start,
885
+ absoluteIndex: b.value + u.value.start,
872
886
  seriesIndex: b.value,
873
- datapoint: Vt.value,
887
+ datapoint: pt.value,
874
888
  series: Z.value,
875
889
  config: e.value
876
890
  });
@@ -879,34 +893,35 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
879
893
  showTotal: r,
880
894
  totalTranslation: y,
881
895
  showPercentage: k,
882
- borderColor: A,
896
+ borderColor: T,
883
897
  roundingValue: S,
884
- roundingPercentage: I
885
- } = e.value.style.chart.tooltip, E = (u) => !u.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(u.shape) ? `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${e.value.style.chart.tooltip.backgroundColor}" stroke-width="1" fill="${u.color}" /></svg>` : u.shape === "star" ? `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${e.value.style.chart.tooltip.backgroundColor}" stroke-width="1" fill="${u.color}" points="${Fs({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>` : u.shape === "triangle" ? `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${at({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${u.color}" stroke="${e.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : u.shape === "square" ? `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${at({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${u.color}" stroke="${e.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : u.shape === "diamond" ? `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${at({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${u.color}" stroke="${e.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : u.shape === "pentagon" ? `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${at({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${u.color}" stroke="${e.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${at({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${u.color}" stroke="${e.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`, M = (u, w) => {
886
- const V = w ? Ce({
887
- v: isNaN((u.value ?? 0) / (n || 1)) ? 0 : Math.abs(u.value ?? 0) / (n || 1) * 100,
898
+ roundingPercentage: z
899
+ } = e.value.style.chart.tooltip, O = (c) => !c.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(c.shape) ? `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${e.value.style.chart.tooltip.backgroundColor}" stroke-width="1" fill="${c.color}" /></svg>` : c.shape === "star" ? `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${e.value.style.chart.tooltip.backgroundColor}" stroke-width="1" fill="${c.color}" points="${Es({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>` : c.shape === "triangle" ? `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${at({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${c.color}" stroke="${e.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : c.shape === "square" ? `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${at({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${c.color}" stroke="${e.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : c.shape === "diamond" ? `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${at({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${c.color}" stroke="${e.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : c.shape === "pentagon" ? `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${at({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${c.color}" stroke="${e.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${at({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${c.color}" stroke="${e.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`, M = (c, _) => {
900
+ const g = _ ? Ce({
901
+ v: isNaN((c.value ?? 0) / (n || 1)) ? 0 : Math.abs(c.value ?? 0) / (n || 1) * 100,
888
902
  s: "%",
889
- r: I
890
- }) : "", g = o && w ? "(" : "", $ = o && w ? ")" : "";
903
+ r: z
904
+ }) : "", $ = o && _ ? "(" : "", F = o && _ ? ")" : "";
891
905
  return `
892
906
  <div style="display:flex;flex-direction:row;align-items:center;gap:4px">
893
- <div style="width:20px;height:20px;display:flex;align-items:center;justify-content:center;">${E(u)}</div>
894
- ${u.name}${o || w ? ":" : ""}
907
+ <div style="width:20px;height:20px;display:flex;align-items:center;justify-content:center;">${O(c)}</div>
908
+ ${c.name}${o || _ ? ":" : ""}
895
909
  ${o ? et(
896
910
  e.value.style.chart.lines.dataLabels.formatter,
897
- u.sourceValue,
911
+ c.sourceValue,
898
912
  Ce({
899
913
  p: e.value.style.chart.lines.dataLabels.prefix,
900
- v: u.sourceValue,
914
+ v: c.sourceValue,
901
915
  s: e.value.style.chart.lines.dataLabels.suffix,
902
916
  r: S
903
917
  })
904
- ) : ""} ${g}${V}${$}
918
+ ) : ""} ${$}${g}${F}
905
919
  </div>
906
920
  `;
907
921
  };
908
- let m = "";
909
- return (se.value[b.value] && se.value[b.value].text || Ot.value[b.value] && Ot.value[b.value].text && e.value.style.chart.tooltip.showTimeLabel) && (m += `<div style="width:100%;text-align:center;border-bottom:1px solid ${A};padding-bottom:6px;margin-bottom:3px;">${e.value.style.chart.tooltip.useDefaultTimeFormat ? se.value[b.value]?.text : Ot.value[b.value]?.text || ze.value[b.value]?.text || ""}</div>`), r && a.length > 1 && (m += `<div class="vue-data-ui-tooltip-total" style="display:flex;flex-direction:row;align-items:center;gap:4px">
922
+ let h = "";
923
+ const w = Da(b.value);
924
+ return w && (h += `<div style="width:100%;text-align:center;border-bottom:1px solid ${T};padding-bottom:6px;margin-bottom:3px;">${w}</div>`), r && a.length > 1 && (h += `<div class="vue-data-ui-tooltip-total" style="display:flex;flex-direction:row;align-items:center;gap:4px">
910
925
  <span>${y}:</span>
911
926
  <span>${et(
912
927
  e.value.style.chart.lines.dataLabels.formatter,
@@ -919,24 +934,24 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
919
934
  }),
920
935
  { datapoint: { name: y, value: tt(n) } }
921
936
  )}</span>
922
- </div>`), a.forEach((u) => {
923
- m += M(u, k);
924
- }), s.length && (m += `<div style="border-top:1px solid ${Me.value.length ? A : "transparent"}; margin:${Me.value.length ? "6px 0" : "0"};"></div>`, s.forEach((u) => {
925
- m += M(u, !1);
926
- })), `<div>${m}</div>`;
937
+ </div>`), a.forEach((c) => {
938
+ h += M(c, k);
939
+ }), s.length && (h += `<div style="border-top:1px solid ${Me.value.length ? T : "transparent"}; margin:${Me.value.length ? "6px 0" : "0"};"></div>`, s.forEach((c) => {
940
+ h += M(c, !1);
941
+ })), `<div>${h}</div>`;
927
942
  });
928
943
  function Bt(t, l = null, a = "pointer") {
929
944
  if (dt.value) return;
930
945
  Be.value = a, Re.value = t;
931
- const s = T.value.map((n) => ({
946
+ const s = A.value.map((n) => ({
932
947
  name: n.name,
933
948
  value: [null, void 0, NaN].includes(n.series[l]) ? null : n.series[l],
934
949
  color: n.color
935
950
  }));
936
- t ? (ce.value = l, b.value = l, Za({ seriesIndex: l, datapoint: s }), e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: s, seriesIndex: l + c.value.start })) : (ce.value = null, b.value = null, ye("selectX", { seriesIndex: null, dataset: null, indexLabel: null }), e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: s, seriesIndex: l + c.value.start }));
951
+ t ? (ue.value = l, b.value = l, Za({ seriesIndex: l, datapoint: s }), e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: s, seriesIndex: l + u.value.start })) : (ue.value = null, b.value = null, ye("selectX", { seriesIndex: null, dataset: null, indexLabel: null }), e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: s, seriesIndex: l + u.value.start }));
937
952
  }
938
953
  function Va(t, l) {
939
- const a = JSON.parse(JSON.stringify(T.value)).map((s) => ({
954
+ const a = JSON.parse(JSON.stringify(A.value)).map((s) => ({
940
955
  name: s.name,
941
956
  value: s.series[l] === 0 ? 0 : (s.signedSeries[l] === -1 && s.series[l] >= 0 ? -s.series[l] : s.series[l]) || null,
942
957
  proportion: s.proportions[l] || null,
@@ -949,26 +964,26 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
949
964
  label: t.text
950
965
  });
951
966
  }
952
- function Jl() {
953
- D.value.length ? D.value = [] : Xe.value.forEach((t) => {
954
- D.value.push(t.id);
967
+ function Kl() {
968
+ V.value.length ? V.value = [] : Xe.value.forEach((t) => {
969
+ V.value.push(t.id);
955
970
  });
956
971
  }
957
972
  function Yt(t) {
958
- if (D.value.includes(t.id))
959
- D.value = D.value.filter((l) => l !== t.id);
973
+ if (V.value.includes(t.id))
974
+ V.value = V.value.filter((l) => l !== t.id);
960
975
  else {
961
- if (D.value.length === Z.value.length - 1) return;
962
- D.value.push(t.id);
976
+ if (V.value.length === Z.value.length - 1) return;
977
+ V.value.push(t.id);
963
978
  }
964
- ye("selectLegend", T.value);
979
+ ye("selectLegend", A.value);
965
980
  }
966
- const Xe = f(() => Z.value.map((t) => ({
981
+ const Xe = m(() => Z.value.map((t) => ({
967
982
  ...t,
968
- opacity: D.value.includes(t.id) ? 0.5 : 1,
983
+ opacity: V.value.includes(t.id) ? 0.5 : 1,
969
984
  segregate: () => Yt(t),
970
- isSegregated: D.value.includes(t.id)
971
- }))), Kl = f(() => ({
985
+ isSegregated: V.value.includes(t.id)
986
+ }))), Zl = m(() => ({
972
987
  cy: "stackline-legend",
973
988
  backgroundColor: e.value.style.chart.legend.backgroundColor,
974
989
  color: e.value.style.chart.legend.color,
@@ -982,18 +997,18 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
982
997
  const l = Z.value.find((a) => a.name === t);
983
998
  return l || (e.value.debug && console.warn(`VueUiStackline - Series name not found "${t}"`), null);
984
999
  }
985
- function Zl(t) {
1000
+ function Ql(t) {
986
1001
  const l = Ba(t);
987
- l !== null && D.value.includes(l.id) && Yt({ id: l.id });
1002
+ l !== null && V.value.includes(l.id) && Yt({ id: l.id });
988
1003
  }
989
- function Ql(t) {
1004
+ function es(t) {
990
1005
  const l = Ba(t);
991
- l !== null && (D.value.includes(l.id) || Yt({ id: l.id }));
1006
+ l !== null && (V.value.includes(l.id) || Yt({ id: l.id }));
992
1007
  }
993
- const Ya = f(() => {
994
- if (T.value.length === 0)
1008
+ const Ya = m(() => {
1009
+ if (A.value.length === 0)
995
1010
  return { head: [], body: [], config: {}, columnNames: [] };
996
- const t = T.value.map(({ name: a, color: s }) => ({ label: a, color: s })), l = [];
1011
+ const t = A.value.map(({ name: a, color: s }) => ({ label: a, color: s })), l = [];
997
1012
  return ht.value.forEach((a) => {
998
1013
  const s = a.absoluteIndex, o = [e.value.style.chart.grid.x.timeLabels.values?.[s] ? a.text : s + 1];
999
1014
  Z.value.forEach((r) => {
@@ -1003,16 +1018,16 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1003
1018
  }), { head: t, body: l };
1004
1019
  });
1005
1020
  function Ht(t = null) {
1006
- const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = ["", ...Ya.value.head.map((r) => r.label)], s = Ya.value.body, n = l.concat([a]).concat(s), o = zs(n);
1007
- t ? t(o) : _s({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-stackline" });
1021
+ const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = ["", ...Ya.value.head.map((r) => r.label)], s = Ya.value.body, n = l.concat([a]).concat(s), o = _s(n);
1022
+ t ? t(o) : Fs({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-stackline" });
1008
1023
  }
1009
- const _e = f(() => {
1010
- const t = [""].concat(T.value.map((o) => o.name)).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>'), l = [], a = Math.max(0, c.value.end - c.value.start);
1024
+ const _e = m(() => {
1025
+ const t = [""].concat(A.value.map((o) => o.name)).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>'), l = [], a = Math.max(0, u.value.end - u.value.start);
1011
1026
  for (let o = 0; o < a; o += 1) {
1012
- const r = Rt(o), y = e.value.style.chart.grid.x.timeLabels.values?.[r] ? se.value?.[o]?.text ?? r + 1 : r + 1, k = T.value.map((I) => {
1013
- const E = I.series?.[o] ?? 0;
1014
- return Number(E.toFixed(e.value.table.td.roundingValue));
1015
- }), S = T.value.filter((I) => !I.standalone).map((I) => I.series?.[o] ?? 0).reduce((I, E) => I + E, 0);
1027
+ const r = Ot(o), y = e.value.style.chart.grid.x.timeLabels.values?.[r] ? me.value?.[o]?.text ?? r + 1 : r + 1, k = A.value.map((z) => {
1028
+ const O = z.series?.[o] ?? 0;
1029
+ return Number(O.toFixed(e.value.table.td.roundingValue));
1030
+ }), S = A.value.filter((z) => !z.standalone).map((z) => z.series?.[o] ?? 0).reduce((z, O) => z + O, 0);
1016
1031
  l.push([y].concat(k).concat(Number(S.toFixed(e.value.table.td.roundingValue))));
1017
1032
  }
1018
1033
  const s = {
@@ -1027,30 +1042,30 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1027
1042
  outline: e.value.table.td.outline
1028
1043
  },
1029
1044
  breakpoint: e.value.table.responsiveBreakpoint
1030
- }, n = [e.value.table.columnNames.period].concat(T.value.map((o) => o.name)).concat(e.value.table.columnNames.total);
1045
+ }, n = [e.value.table.columnNames.period].concat(A.value.map((o) => o.name)).concat(e.value.table.columnNames.total);
1031
1046
  return { head: t, body: l, config: s, colNames: n };
1032
- }), es = f(() => e.value.style.chart.backgroundColor), ts = f(() => e.value.style.chart.legend), as = f(() => e.value.style.chart.title), { exportSvg: ls, getSvg: ss } = Ws({
1033
- svg: he,
1034
- title: as,
1035
- legend: ts,
1047
+ }), ts = m(() => e.value.style.chart.backgroundColor), as = m(() => e.value.style.chart.legend), ls = m(() => e.value.style.chart.title), { exportSvg: ss, getSvg: os } = Us({
1048
+ svg: de,
1049
+ title: ls,
1050
+ legend: as,
1036
1051
  legendItems: Xe,
1037
- backgroundColor: es
1052
+ backgroundColor: ts
1038
1053
  });
1039
1054
  async function Ha({ isCb: t }) {
1040
1055
  st.value = !0, await Gt();
1041
1056
  try {
1042
1057
  if (t) {
1043
- const { blob: l, url: a, text: s, dataUrl: n } = await ss();
1058
+ const { blob: l, url: a, text: s, dataUrl: n } = await os();
1044
1059
  await Promise.resolve(e.value.userOptions.callbacks.svg({ blob: l, url: a, text: s, dataUrl: n }));
1045
1060
  } else
1046
- await Promise.resolve(ls());
1061
+ await Promise.resolve(ss());
1047
1062
  } finally {
1048
1063
  st.value = !1;
1049
1064
  }
1050
1065
  }
1051
- async function os({ scale: t = 2 } = {}) {
1052
- if (!ue.value) return;
1053
- const { width: l, height: a } = ue.value.getBoundingClientRect(), s = l / a, { imageUri: n, base64: o } = await Js({ domElement: ue.value, base64: !0, img: !0, scale: t });
1066
+ async function ns({ scale: t = 2 } = {}) {
1067
+ if (!ie.value) return;
1068
+ const { width: l, height: a } = ie.value.getBoundingClientRect(), s = l / a, { imageUri: n, base64: o } = await Ks({ domElement: ie.value, base64: !0, img: !0, scale: t });
1054
1069
  return {
1055
1070
  imageUri: n,
1056
1071
  base64: o,
@@ -1060,7 +1075,7 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1060
1075
  aspectRatio: s
1061
1076
  };
1062
1077
  }
1063
- const Ge = f(() => {
1078
+ const Ge = m(() => {
1064
1079
  const t = e.value.table.useDialog && !e.value.table.show, l = j.value.showTable;
1065
1080
  return {
1066
1081
  component: t ? bl : ml,
@@ -1071,9 +1086,9 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1071
1086
  headerColor: e.value.table.th.color,
1072
1087
  headerBg: e.value.table.th.backgroundColor,
1073
1088
  isFullscreen: De.value,
1074
- fullscreenParent: ue.value,
1089
+ fullscreenParent: ie.value,
1075
1090
  forcedWidth: Math.min(800, window.innerWidth * 0.8),
1076
- isCursorPointer: ve.value
1091
+ isCursorPointer: ce.value
1077
1092
  } : {
1078
1093
  hideDetails: !0,
1079
1094
  config: {
@@ -1095,10 +1110,10 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1095
1110
  e.value.table.show || (t && e.value.table.useDialog && Ve.value ? Ve.value.open() : "close" in Ve.value && Ve.value.close());
1096
1111
  });
1097
1112
  function Wa() {
1098
- j.value.showTable = !1, $t.value && $t.value.setTableIconState(!1);
1113
+ j.value.showTable = !1, Ct.value && Ct.value.setTableIconState(!1);
1099
1114
  }
1100
1115
  function Ua(t) {
1101
- De.value = t, ea.value += 1;
1116
+ De.value = t, Qt.value += 1;
1102
1117
  }
1103
1118
  function qa() {
1104
1119
  j.value.showTable = !j.value.showTable;
@@ -1109,12 +1124,12 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1109
1124
  function Ga() {
1110
1125
  j.value.showTooltip = !j.value.showTooltip;
1111
1126
  }
1112
- function ns() {
1113
- return T.value;
1127
+ function rs() {
1128
+ return A.value;
1114
1129
  }
1115
1130
  function ja(t) {
1116
- const l = t ?? 0, a = Rt(l);
1117
- return JSON.parse(JSON.stringify(T.value)).map((s) => {
1131
+ const l = t ?? 0, a = Ot(l);
1132
+ return JSON.parse(JSON.stringify(A.value)).map((s) => {
1118
1133
  const n = s.series[l], o = s.signedSeries?.[l], r = n === 0 ? 0 : (o === -1 && n >= 0 ? -n : n) || null;
1119
1134
  return {
1120
1135
  name: s.name,
@@ -1123,86 +1138,86 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1123
1138
  proportion: s.proportions?.[l] || null,
1124
1139
  color: s.color,
1125
1140
  id: s.id,
1126
- timeLabel: ze.value?.[a] || null
1141
+ timeLabel: Ie.value?.[a] || null
1127
1142
  };
1128
1143
  });
1129
1144
  }
1130
- const rs = f(() => Array(me.value).fill(0).map((t, l) => ja(l)));
1145
+ const is = m(() => Array(he.value).fill(0).map((t, l) => ja(l)));
1131
1146
  Fe(() => G.selectedXIndex, (t) => {
1132
1147
  if ([null, void 0].includes(G.selectedXIndex)) {
1133
1148
  b.value = null;
1134
1149
  return;
1135
1150
  }
1136
- const l = t - c.value.start;
1137
- l < 0 || t >= c.value.end ? b.value = null : b.value = l ?? null;
1151
+ const l = t - u.value.start;
1152
+ l < 0 || t >= u.value.end ? b.value = null : b.value = l ?? null;
1138
1153
  }, { immediate: !0 });
1139
- const Ja = f(() => {
1154
+ const Ja = m(() => {
1140
1155
  if (e.value.style.chart.lines.distributed)
1141
1156
  return { min: -1, max: 1 };
1142
1157
  const t = Me.value, l = ut.value, a = Math.max(
1143
1158
  1,
1144
- ...[...t, ...l].map((m) => m.series?.length || 0)
1159
+ ...[...t, ...l].map((h) => h.series?.length || 0)
1145
1160
  ), s = Array(a).fill(0), n = Array(a).fill(0);
1146
- t.forEach((m) => {
1147
- for (let u = 0; u < a; u += 1) {
1148
- const w = m.series[u] ?? 0;
1149
- w >= 0 ? s[u] += w : n[u] += w;
1161
+ t.forEach((h) => {
1162
+ for (let w = 0; w < a; w += 1) {
1163
+ const c = h.series[w] ?? 0;
1164
+ c >= 0 ? s[w] += c : n[w] += c;
1150
1165
  }
1151
1166
  });
1152
1167
  const o = Array(a).fill(0), r = Array(a).fill(0);
1153
- l.forEach((m) => {
1154
- for (let u = 0; u < a; u += 1) {
1155
- const w = m.series[u] ?? 0;
1156
- w > 0 && (o[u] = Math.max(o[u], w)), w < 0 && (r[u] = Math.min(r[u], w));
1168
+ l.forEach((h) => {
1169
+ for (let w = 0; w < a; w += 1) {
1170
+ const c = h.series[w] ?? 0;
1171
+ c > 0 && (o[w] = Math.max(o[w], c)), c < 0 && (r[w] = Math.min(r[w], c));
1157
1172
  }
1158
1173
  });
1159
- const y = Math.max(0, ...s, ...o), k = Math.min(0, ...n, ...r), A = e.value.style.chart.grid.scale.scaleMin, S = e.value.style.chart.grid.scale.scaleMax, I = e.value.style.chart.grid.scale.ticks, M = !e.value.style.chart.lines.distributed && (A !== null || S !== null) ? kt(
1160
- A !== null ? A : k > 0 ? 0 : k,
1174
+ const y = Math.max(0, ...s, ...o), k = Math.min(0, ...n, ...r), T = e.value.style.chart.grid.scale.scaleMin, S = e.value.style.chart.grid.scale.scaleMax, z = e.value.style.chart.grid.scale.ticks, M = !e.value.style.chart.lines.distributed && (T !== null || S !== null) ? wt(
1175
+ T !== null ? T : k > 0 ? 0 : k,
1161
1176
  S !== null ? S : y < 0 ? 0 : y,
1162
- I
1163
- ) : wt(
1164
- A !== null ? A : k > 0 ? 0 : k,
1177
+ z
1178
+ ) : St(
1179
+ T !== null ? T : k > 0 ? 0 : k,
1165
1180
  S !== null ? S : y < 0 ? 0 : y,
1166
- I
1181
+ z
1167
1182
  );
1168
1183
  return { min: Number(M.min) || 0, max: Number(M.max) || 0 };
1169
1184
  });
1170
- function is({ minimapH: t, unitW: l }) {
1171
- const a = (m) => typeof m == "string" ? m.replace(/^M\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*,?\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*/i, "").trim() : "";
1185
+ function us({ minimapH: t, unitW: l }) {
1186
+ const a = (h) => typeof h == "string" ? h.replace(/^M\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*,?\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*/i, "").trim() : "";
1172
1187
  if (!Number.isFinite(t) || t <= 0 || !Number.isFinite(l) || l <= 0)
1173
1188
  return "";
1174
- const s = T.value.filter((m) => !m.standalone), n = T.value.filter((m) => m.standalone), o = Math.max(0, ...T.value.map((m) => Array.isArray(m.fullSeries) ? m.fullSeries.length : m.series.length));
1189
+ const s = A.value.filter((h) => !h.standalone), n = A.value.filter((h) => h.standalone), o = Math.max(0, ...A.value.map((h) => Array.isArray(h.fullSeries) ? h.fullSeries.length : h.series.length));
1175
1190
  if (o <= 0) return "";
1176
- const r = o === 1 ? [l * 0.5] : Array.from({ length: o }, (m, u) => u * l);
1191
+ const r = o === 1 ? [l * 0.5] : Array.from({ length: o }, (h, w) => w * l);
1177
1192
  if (e.value.style.chart.lines.distributed) {
1178
- const m = Array.from({ length: o }, (g, $) => {
1179
- let R = 0;
1180
- return s.forEach((_) => {
1181
- const B = (Array.isArray(_.fullSeries) ? _.fullSeries : _.series)?.[$];
1182
- B != null && !Number.isNaN(B) && (R += Math.abs(B));
1183
- }), R || 1;
1184
- }), u = (g) => {
1193
+ const h = Array.from({ length: o }, (g, $) => {
1194
+ let F = 0;
1195
+ return s.forEach((E) => {
1196
+ const B = (Array.isArray(E.fullSeries) ? E.fullSeries : E.series)?.[$];
1197
+ B != null && !Number.isNaN(B) && (F += Math.abs(B));
1198
+ }), F || 1;
1199
+ }), w = (g) => {
1185
1200
  const $ = Math.max(0, Math.min(1, g || 0));
1186
1201
  return t - t * $;
1187
- }, w = [], V = Array(o).fill(0);
1202
+ }, c = [], _ = Array(o).fill(0);
1188
1203
  return s.forEach((g) => {
1189
- const $ = Array.isArray(g.fullSeries) ? g.fullSeries : g.series, R = new Array(o), _ = new Array(o);
1204
+ const $ = Array.isArray(g.fullSeries) ? g.fullSeries : g.series, F = new Array(o), E = new Array(o);
1190
1205
  for (let U = 0; U < o; U += 1) {
1191
- const be = $?.[U], xe = be == null || Number.isNaN(be) ? 0 : Math.abs(be) / m[U];
1192
- _[U] = V[U], V[U] += xe, R[U] = V[U];
1206
+ const be = $?.[U], xe = be == null || Number.isNaN(be) ? 0 : Math.abs(be) / h[U];
1207
+ E[U] = _[U], _[U] += xe, F[U] = _[U];
1193
1208
  }
1194
- const z = R.map(u), B = _.map(u), H = r.map((U, be) => ({ x: U, y: z[be] })), Q = r.map((U, be) => ({ x: U, y: B[be] })), J = we(H), W = we([...Q].reverse()), O = Se(H), p = Se([...Q].reverse()), L = Q[Q.length - 1];
1209
+ const I = F.map(w), B = E.map(w), H = r.map((U, be) => ({ x: U, y: I[be] })), te = r.map((U, be) => ({ x: U, y: B[be] })), J = we(H), W = we([...te].reverse()), D = Se(H), p = Se([...te].reverse()), L = te[te.length - 1];
1195
1210
  if (e.value.style.chart.lines.useArea) {
1196
- const U = e.value.style.chart.lines.smooth ? `M${H[0].x},${H[0].y} ${a(J)} L${L.x},${L.y} ${a(W)} Z` : `M${H[0].x},${H[0].y} ${a(O)} L${L.x},${L.y} ${a(p)} Z`;
1197
- w.push(
1211
+ const U = e.value.style.chart.lines.smooth ? `M${H[0].x},${H[0].y} ${a(J)} L${L.x},${L.y} ${a(W)} Z` : `M${H[0].x},${H[0].y} ${a(D)} L${L.x},${L.y} ${a(p)} Z`;
1212
+ c.push(
1198
1213
  `<path d="${U}"
1199
1214
  fill="${Zt.pattern ? `url(#pattern_${K.value}_${g.absoluteIndex})` : (e.value.style.chart.lines.gradient.show, g.color)}"
1200
1215
  opacity="${e.value.style.chart.lines.areaOpacity}"
1201
1216
  stroke="none" />`
1202
1217
  );
1203
1218
  }
1204
- const q = e.value.style.chart.lines.smooth ? `M${H[0].x},${H[0].y} ${a(J)}` : `M${H[0].x},${H[0].y} ${a(O)}`;
1205
- w.push(
1219
+ const q = e.value.style.chart.lines.smooth ? `M${H[0].x},${H[0].y} ${a(J)}` : `M${H[0].x},${H[0].y} ${a(D)}`;
1220
+ c.push(
1206
1221
  `<path d="${q}"
1207
1222
  fill="none"
1208
1223
  stroke="${g.color}"
@@ -1210,61 +1225,61 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1210
1225
  stroke-linecap="round" />`
1211
1226
  );
1212
1227
  }), n.length && n.forEach((g) => {
1213
- const $ = Array.isArray(g.fullSeries) ? g.fullSeries : g.series, R = Array.from({ length: o }, (Q, J) => u(Math.abs($?.[J] ?? 0) / m[J])), _ = r.map((Q, J) => ({ x: Q, y: R[J] })), z = we(_), B = Se(_), H = e.value.style.chart.lines.smooth ? `M${_[0].x},${_[0].y} ${a(z)}` : `M${_[0].x},${_[0].y} ${a(B)}`;
1214
- w.push(
1228
+ const $ = Array.isArray(g.fullSeries) ? g.fullSeries : g.series, F = Array.from({ length: o }, (te, J) => w(Math.abs($?.[J] ?? 0) / h[J])), E = r.map((te, J) => ({ x: te, y: F[J] })), I = we(E), B = Se(E), H = e.value.style.chart.lines.smooth ? `M${E[0].x},${E[0].y} ${a(I)}` : `M${E[0].x},${E[0].y} ${a(B)}`;
1229
+ c.push(
1215
1230
  `<path d="${H}"
1216
1231
  fill="none"
1217
1232
  stroke="${g.color}"
1218
1233
  stroke-width="${e.value.style.chart.lines.strokeWidth}"
1219
1234
  stroke-linecap="round" />`
1220
1235
  );
1221
- }), w.join("");
1236
+ }), c.join("");
1222
1237
  }
1223
- const y = Ja.value.min, k = Ja.value.max, A = Math.abs(y), S = k + A || 1, I = (m) => Math.max(0, Math.min(t, m)), E = (m) => I(t - t * (((m ?? 0) + A) / S)), M = [];
1238
+ const y = Ja.value.min, k = Ja.value.max, T = Math.abs(y), S = k + T || 1, z = (h) => Math.max(0, Math.min(t, h)), O = (h) => z(t - t * (((h ?? 0) + T) / S)), M = [];
1224
1239
  if (s.length) {
1225
- const m = Array(o).fill(0), u = Array(o).fill(0);
1226
- s.forEach((w) => {
1227
- const V = Array.isArray(w.fullSeries) ? w.fullSeries : w.series, g = new Array(o), $ = new Array(o);
1240
+ const h = Array(o).fill(0), w = Array(o).fill(0);
1241
+ s.forEach((c) => {
1242
+ const _ = Array.isArray(c.fullSeries) ? c.fullSeries : c.series, g = new Array(o), $ = new Array(o);
1228
1243
  for (let L = 0; L < o; L += 1) {
1229
- const q = V?.[L] ?? 0;
1230
- q >= 0 ? ($[L] = m[L], m[L] += q, g[L] = m[L]) : ($[L] = u[L], u[L] += q, g[L] = u[L]);
1244
+ const q = _?.[L] ?? 0;
1245
+ q >= 0 ? ($[L] = h[L], h[L] += q, g[L] = h[L]) : ($[L] = w[L], w[L] += q, g[L] = w[L]);
1231
1246
  }
1232
- const R = g.map(E), _ = $.map(E), z = r.map((L, q) => ({ x: L, y: R[q] })), B = r.map((L, q) => ({ x: L, y: _[q] })), H = we(z), Q = we([...B].reverse()), J = Se(z), W = Se([...B].reverse()), O = B[B.length - 1];
1247
+ const F = g.map(O), E = $.map(O), I = r.map((L, q) => ({ x: L, y: F[q] })), B = r.map((L, q) => ({ x: L, y: E[q] })), H = we(I), te = we([...B].reverse()), J = Se(I), W = Se([...B].reverse()), D = B[B.length - 1];
1233
1248
  if (e.value.style.chart.lines.useArea) {
1234
- const L = e.value.style.chart.lines.smooth ? `M${z[0].x},${z[0].y} ${a(H)} L${O.x},${O.y} ${a(Q)} Z` : `M${z[0].x},${z[0].y} ${a(J)} L${O.x},${O.y} ${a(W)} Z`;
1249
+ const L = e.value.style.chart.lines.smooth ? `M${I[0].x},${I[0].y} ${a(H)} L${D.x},${D.y} ${a(te)} Z` : `M${I[0].x},${I[0].y} ${a(J)} L${D.x},${D.y} ${a(W)} Z`;
1235
1250
  M.push(
1236
1251
  `<path d="${L}"
1237
- fill="${Zt.pattern ? `url(#pattern_${K.value}_${w.absoluteIndex})` : (e.value.style.chart.lines.gradient.show, w.color)}"
1252
+ fill="${Zt.pattern ? `url(#pattern_${K.value}_${c.absoluteIndex})` : (e.value.style.chart.lines.gradient.show, c.color)}"
1238
1253
  opacity="${e.value.style.chart.lines.areaOpacity}"
1239
1254
  stroke="none" />`
1240
1255
  );
1241
1256
  }
1242
- const p = e.value.style.chart.lines.smooth ? `M${z[0].x},${z[0].y} ${a(H)}` : `M${z[0].x},${z[0].y} ${a(J)}`;
1257
+ const p = e.value.style.chart.lines.smooth ? `M${I[0].x},${I[0].y} ${a(H)}` : `M${I[0].x},${I[0].y} ${a(J)}`;
1243
1258
  M.push(
1244
1259
  `<path d="${p}"
1245
1260
  fill="none"
1246
- stroke="${w.color}"
1261
+ stroke="${c.color}"
1247
1262
  stroke-width="${e.value.style.chart.lines.strokeWidth}"
1248
1263
  stroke-linecap="round" />`
1249
1264
  );
1250
1265
  });
1251
1266
  }
1252
- return n.length && n.forEach((m) => {
1253
- const w = (Array.isArray(m.fullSeries) ? m.fullSeries : m.series).map(E), V = r.map((_, z) => ({ x: _, y: w[z] })), g = we(V), $ = Se(V), R = e.value.style.chart.lines.smooth ? `M${V[0].x},${V[0].y} ${a(g)}` : `M${V[0].x},${V[0].y} ${a($)}`;
1267
+ return n.length && n.forEach((h) => {
1268
+ const c = (Array.isArray(h.fullSeries) ? h.fullSeries : h.series).map(O), _ = r.map((E, I) => ({ x: E, y: c[I] })), g = we(_), $ = Se(_), F = e.value.style.chart.lines.smooth ? `M${_[0].x},${_[0].y} ${a(g)}` : `M${_[0].x},${_[0].y} ${a($)}`;
1254
1269
  M.push(
1255
- `<path d="${R}"
1270
+ `<path d="${F}"
1256
1271
  fill="none"
1257
- stroke="${m.color}"
1272
+ stroke="${h.color}"
1258
1273
  stroke-width="${e.value.style.chart.lines.strokeWidth}"
1259
1274
  stroke-linecap="round" />`
1260
1275
  );
1261
1276
  }), M.join("");
1262
1277
  }
1263
- function us(t, l) {
1278
+ function cs(t, l) {
1264
1279
  const a = e.value.style.chart.lines, s = a.dataLabels;
1265
- return a.showDistributedPercentage && a.distributed ? ga.value ? l === 0 ? !s.hideEmptyPercentages : Math.abs(l) * 100 >= s.hideUnderPercentage : s.hideEmptyPercentages ? Math.abs(l) > 0 : !0 : ga.value ? (ya.value && Ft.value && console.warn("Vue Data UI - VueUiStackline - You cannot set both dataLabels.hideUnderPercentage and dataLabels.hideUnderValue. Note that dataLabels.hideUnderPercentage takes precedence in this case."), Math.abs(t) > cs.value * s.hideUnderPercentage / 100) : ya.value ? Math.abs(t) >= s.hideUnderValue : s.hideEmptyValues ? t !== 0 : !0;
1280
+ return a.showDistributedPercentage && a.distributed ? ya.value ? l === 0 ? !s.hideEmptyPercentages : Math.abs(l) * 100 >= s.hideUnderPercentage : s.hideEmptyPercentages ? Math.abs(l) > 0 : !0 : ya.value ? (fa.value && Et.value && console.warn("Vue Data UI - VueUiStackline - You cannot set both dataLabels.hideUnderPercentage and dataLabels.hideUnderValue. Note that dataLabels.hideUnderPercentage takes precedence in this case."), Math.abs(t) > vs.value * s.hideUnderPercentage / 100) : fa.value ? Math.abs(t) >= s.hideUnderValue : s.hideEmptyValues ? t !== 0 : !0;
1266
1281
  }
1267
- const cs = f(() => Math.max(...T.value.flatMap((t) => t.series)));
1282
+ const vs = m(() => Math.max(...A.value.flatMap((t) => t.series)));
1268
1283
  function Ka(t, l, a, s, n) {
1269
1284
  const o = n === -1 && t >= 0 ? -t : t;
1270
1285
  return et(
@@ -1279,7 +1294,7 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1279
1294
  { datapoint: l, seriesIndex: a, datapointIndex: s }
1280
1295
  );
1281
1296
  }
1282
- function vs(t, l, a, s) {
1297
+ function ds(t, l, a, s) {
1283
1298
  return et(
1284
1299
  e.value.style.chart.lines.dataLabels.formatter,
1285
1300
  t,
@@ -1292,14 +1307,14 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1292
1307
  );
1293
1308
  }
1294
1309
  function Za({ seriesIndex: t, datapoint: l }) {
1295
- const a = c.value.start + t;
1310
+ const a = u.value.start + t;
1296
1311
  ye("selectX", {
1297
1312
  dataset: l,
1298
1313
  index: a,
1299
1314
  indexLabel: e.value.style.chart.grid.x.timeLabels.values[a]
1300
1315
  });
1301
1316
  }
1302
- function ds(t) {
1317
+ function hs(t) {
1303
1318
  if (t?.stage === "start") {
1304
1319
  lt.value = !0;
1305
1320
  return;
@@ -1308,73 +1323,73 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1308
1323
  lt.value = !1;
1309
1324
  return;
1310
1325
  }
1311
- ba();
1326
+ pa();
1312
1327
  }
1313
1328
  async function Qa() {
1314
1329
  if (ye("copyAlt", {
1315
1330
  config: e.value,
1316
- dataset: T.value
1331
+ dataset: A.value
1317
1332
  }), !e.value.userOptions.callbacks.altCopy) {
1318
1333
  console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
1319
1334
  return;
1320
1335
  }
1321
1336
  await Promise.resolve(e.value.userOptions.callbacks.altCopy({
1322
1337
  config: e.value,
1323
- dataset: T.value
1338
+ dataset: A.value
1324
1339
  }));
1325
1340
  }
1326
- const Wt = h(!1);
1327
- function hs() {
1328
- ce.value = null, Wt.value = !0;
1329
- }
1341
+ const Wt = f(!1);
1330
1342
  function ms() {
1331
- ce.value = null, Be.value = "pointer", Re.value = !1, b.value = null, ye("selectX", { seriesIndex: null, datapoint: null }), Wt.value = !1;
1343
+ ue.value = null, Wt.value = !0;
1332
1344
  }
1333
- function fs(t) {
1334
- if (!he.value || Ae.value || document.activeElement !== he.value || dt.value || !Y.value) return;
1345
+ function fs() {
1346
+ ue.value = null, Be.value = "pointer", Re.value = !1, b.value = null, ye("selectX", { seriesIndex: null, datapoint: null }), Wt.value = !1;
1347
+ }
1348
+ function ys(t) {
1349
+ if (!de.value || Ae.value || document.activeElement !== de.value || dt.value || !Y.value) return;
1335
1350
  const l = t.key === "ArrowLeft", a = t.key === "ArrowRight", s = t.key === "Enter" || t.key === " ", n = t.key === "Escape";
1336
1351
  if (!l && !a && !s && !n) return;
1337
1352
  if (t.preventDefault(), t.stopPropagation(), n) {
1338
- ce.value = null, Be.value = "pointer", Re.value = !1, b.value = null, ye("selectX", { seriesIndex: null, datapoint: null });
1353
+ ue.value = null, Be.value = "pointer", Re.value = !1, b.value = null, ye("selectX", { seriesIndex: null, datapoint: null });
1339
1354
  return;
1340
1355
  }
1341
1356
  if (s) {
1342
- if (ce.value === null) return;
1343
- Da(ce.value);
1357
+ if (ue.value === null) return;
1358
+ Oa(ue.value);
1344
1359
  return;
1345
1360
  }
1346
- let o = ce.value;
1361
+ let o = ue.value;
1347
1362
  const r = yt.value, y = o !== null && o >= 0 && o < Y.value, k = r !== null && r >= 0 && r < Y.value;
1348
- y ? a ? (o += 1, o >= Y.value && (o = 0)) : l && (o -= 1, o < 0 && (o = Y.value - 1)) : k ? (o = a ? r + 1 : r - 1, o >= Y.value && (o = 0), o < 0 && (o = Y.value - 1)) : a ? o = 0 : o = Y.value - 1, ce.value = o, ys(o), Bt(!0, o, "keyboard");
1363
+ y ? a ? (o += 1, o >= Y.value && (o = 0)) : l && (o -= 1, o < 0 && (o = Y.value - 1)) : k ? (o = a ? r + 1 : r - 1, o >= Y.value && (o = 0), o < 0 && (o = Y.value - 1)) : a ? o = 0 : o = Y.value - 1, ue.value = o, gs(o), Bt(!0, o, "keyboard");
1349
1364
  }
1350
- function ys(t) {
1351
- if (!Number.isFinite(t) || !he.value) return;
1352
- const l = d.value.left + t * gt.value, a = d.value.top + d.value.height / 2, s = Es(l, a, he.value);
1353
- s && (va.value = s);
1365
+ function gs(t) {
1366
+ if (!Number.isFinite(t) || !de.value) return;
1367
+ const l = d.value.left + t * gt.value, a = d.value.top + d.value.height / 2, s = Rs(l, a, de.value);
1368
+ s && (ca.value = s);
1354
1369
  }
1355
- const Ut = f(() => {
1370
+ const Ut = m(() => {
1356
1371
  const t = _e.value?.colNames ?? [], l = _e.value?.body ?? [];
1357
1372
  return { headers: t, rows: l };
1358
1373
  });
1359
1374
  return cl({
1360
- getData: ns,
1361
- getImage: os,
1362
- generatePdf: pa,
1375
+ getData: rs,
1376
+ getImage: ns,
1377
+ generatePdf: ga,
1363
1378
  generateCsv: Ht,
1364
- generateImage: ba,
1379
+ generateImage: pa,
1365
1380
  generateSvg: Ha,
1366
- hideSeries: Ql,
1367
- showSeries: Zl,
1381
+ hideSeries: es,
1382
+ showSeries: Ql,
1368
1383
  toggleTable: qa,
1369
1384
  toggleLabels: Xa,
1370
1385
  toggleTooltip: Ga,
1371
- toggleAnnotator: Tt,
1386
+ toggleAnnotator: Nt,
1372
1387
  toggleFullscreen: Ua,
1373
1388
  copyAlt: Qa
1374
1389
  }), (t, l) => (i(), v("div", {
1375
1390
  id: `stackline_${K.value}`,
1376
1391
  ref_key: "stacklineChart",
1377
- ref: ue,
1392
+ ref: ie,
1378
1393
  class: tl({ "vue-data-ui-component": !0, "vue-ui-stackline": !0, "vue-data-ui-wrapper-fullscreen": De.value }),
1379
1394
  style: ge(`background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
1380
1395
  onMouseenter: Ll,
@@ -1385,8 +1400,8 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1385
1400
  class: "sr-only"
1386
1401
  }, [
1387
1402
  le("p", null, fe(e.value.a11y.translations.keyboardNavigation), 1)
1388
- ], 8, oo),
1389
- Ut.value?.rows?.length ? (i(), oe(eo, {
1403
+ ], 8, no),
1404
+ Ut.value?.rows?.length ? (i(), se(to, {
1390
1405
  key: 0,
1391
1406
  uid: K.value,
1392
1407
  head: Ut.value.headers,
@@ -1394,32 +1409,32 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1394
1409
  notice: e.value.a11y.translations.tableAvailable,
1395
1410
  caption: e.value.a11y.translations.tableCaption
1396
1411
  }, null, 8, ["uid", "head", "body", "notice", "caption"])) : x("", !0),
1397
- e.value.userOptions.buttons.annotator ? (i(), oe(C(yl), {
1412
+ e.value.userOptions.buttons.annotator ? (i(), se(C(yl), {
1398
1413
  key: 1,
1399
- svgRef: C(he),
1414
+ svgRef: C(de),
1400
1415
  backgroundColor: e.value.style.chart.backgroundColor,
1401
1416
  color: e.value.style.chart.color,
1402
1417
  active: Ae.value,
1403
- isCursorPointer: ve.value,
1404
- onClose: Tt
1418
+ isCursorPointer: ce.value,
1419
+ onClose: Nt
1405
1420
  }, {
1406
1421
  "annotator-action-close": P(() => [
1407
1422
  N(t.$slots, "annotator-action-close", {}, void 0, !0)
1408
1423
  ]),
1409
1424
  "annotator-action-color": P(({ color: a }) => [
1410
- N(t.$slots, "annotator-action-color", ee(te({ color: a })), void 0, !0)
1425
+ N(t.$slots, "annotator-action-color", Q(ee({ color: a })), void 0, !0)
1411
1426
  ]),
1412
1427
  "annotator-action-draw": P(({ mode: a }) => [
1413
- N(t.$slots, "annotator-action-draw", ee(te({ mode: a })), void 0, !0)
1428
+ N(t.$slots, "annotator-action-draw", Q(ee({ mode: a })), void 0, !0)
1414
1429
  ]),
1415
1430
  "annotator-action-undo": P(({ disabled: a }) => [
1416
- N(t.$slots, "annotator-action-undo", ee(te({ disabled: a })), void 0, !0)
1431
+ N(t.$slots, "annotator-action-undo", Q(ee({ disabled: a })), void 0, !0)
1417
1432
  ]),
1418
1433
  "annotator-action-redo": P(({ disabled: a }) => [
1419
- N(t.$slots, "annotator-action-redo", ee(te({ disabled: a })), void 0, !0)
1434
+ N(t.$slots, "annotator-action-redo", Q(ee({ disabled: a })), void 0, !0)
1420
1435
  ]),
1421
1436
  "annotator-action-delete": P(({ disabled: a }) => [
1422
- N(t.$slots, "annotator-action-delete", ee(te({ disabled: a })), void 0, !0)
1437
+ N(t.$slots, "annotator-action-delete", Q(ee({ disabled: a })), void 0, !0)
1423
1438
  ]),
1424
1439
  _: 3
1425
1440
  }, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : x("", !0),
@@ -1427,18 +1442,18 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1427
1442
  Tl.value ? (i(), v("div", {
1428
1443
  key: 2,
1429
1444
  ref_key: "noTitle",
1430
- ref: la,
1445
+ ref: aa,
1431
1446
  class: "vue-data-ui-no-title-space",
1432
1447
  style: "height:36px; width: 100%;background:transparent"
1433
1448
  }, null, 512)) : x("", !0),
1434
1449
  e.value.style.chart.title.text ? (i(), v("div", {
1435
1450
  key: 3,
1436
1451
  ref_key: "chartTitle",
1437
- ref: ta,
1452
+ ref: ea,
1438
1453
  style: "width:100%;background:transparent;"
1439
1454
  }, [
1440
- (i(), oe(Ks, {
1441
- key: `title_${oa.value}`,
1455
+ (i(), se(Zs, {
1456
+ key: `title_${sa.value}`,
1442
1457
  config: {
1443
1458
  title: {
1444
1459
  cy: "stackline-title",
@@ -1453,15 +1468,15 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1453
1468
  ], 512)) : x("", !0),
1454
1469
  le("div", {
1455
1470
  id: `legend-top-${K.value}`
1456
- }, null, 8, no),
1457
- e.value.userOptions.show && Ee.value && (C(fa) || C(Pt)) ? (i(), oe(C(gl), {
1471
+ }, null, 8, ro),
1472
+ e.value.userOptions.show && Ee.value && (C(ma) || C(zt)) ? (i(), se(C(gl), {
1458
1473
  ref_key: "userOptionsRef",
1459
- ref: $t,
1460
- key: `user_option_${ea.value}`,
1474
+ ref: Ct,
1475
+ key: `user_option_${Qt.value}`,
1461
1476
  backgroundColor: e.value.style.chart.backgroundColor,
1462
1477
  color: e.value.style.chart.color,
1463
- isPrinting: C(zt),
1464
- isImaging: C(_t),
1478
+ isPrinting: C(_t),
1479
+ isImaging: C(Ft),
1465
1480
  uid: K.value,
1466
1481
  hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
1467
1482
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -1473,7 +1488,7 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1473
1488
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
1474
1489
  hasAltCopy: e.value.userOptions.buttons.altCopy,
1475
1490
  isFullscreen: De.value,
1476
- chartElement: ue.value,
1491
+ chartElement: ie.value,
1477
1492
  position: e.value.userOptions.position,
1478
1493
  isTooltip: j.value.showTooltip,
1479
1494
  titles: { ...e.value.userOptions.buttonTitles },
@@ -1482,25 +1497,25 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1482
1497
  callbacks: e.value.userOptions.callbacks,
1483
1498
  printScale: e.value.userOptions.print.scale,
1484
1499
  tableDialog: e.value.table.useDialog,
1485
- isCursorPointer: ve.value,
1500
+ isCursorPointer: ce.value,
1486
1501
  onToggleFullscreen: Ua,
1487
- onGeneratePdf: C(pa),
1502
+ onGeneratePdf: C(ga),
1488
1503
  onGenerateCsv: Ht,
1489
- onGenerateImage: ds,
1504
+ onGenerateImage: hs,
1490
1505
  onGenerateSvg: Ha,
1491
1506
  onToggleTable: qa,
1492
1507
  onToggleLabels: Xa,
1493
1508
  onToggleTooltip: Ga,
1494
- onToggleAnnotator: Tt,
1509
+ onToggleAnnotator: Nt,
1495
1510
  onCopyAlt: Qa,
1496
1511
  style: ge({
1497
- visibility: C(fa) ? C(Pt) ? "visible" : "hidden" : "visible"
1512
+ visibility: C(ma) ? C(zt) ? "visible" : "hidden" : "visible"
1498
1513
  })
1499
1514
  }, jt({ _: 2 }, [
1500
1515
  t.$slots.menuIcon ? {
1501
1516
  name: "menuIcon",
1502
1517
  fn: P(({ isOpen: a, color: s }) => [
1503
- N(t.$slots, "menuIcon", ee(te({ isOpen: a, color: s })), void 0, !0)
1518
+ N(t.$slots, "menuIcon", Q(ee({ isOpen: a, color: s })), void 0, !0)
1504
1519
  ]),
1505
1520
  key: "0"
1506
1521
  } : void 0,
@@ -1556,49 +1571,49 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1556
1571
  t.$slots.optionFullscreen ? {
1557
1572
  name: "optionFullscreen",
1558
1573
  fn: P(({ toggleFullscreen: a, isFullscreen: s }) => [
1559
- N(t.$slots, "optionFullscreen", ee(te({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
1574
+ N(t.$slots, "optionFullscreen", Q(ee({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
1560
1575
  ]),
1561
1576
  key: "8"
1562
1577
  } : void 0,
1563
1578
  t.$slots.optionAnnotator ? {
1564
1579
  name: "optionAnnotator",
1565
1580
  fn: P(({ toggleAnnotator: a, isAnnotator: s }) => [
1566
- N(t.$slots, "optionAnnotator", ee(te({ toggleAnnotator: a, isAnnotator: s })), void 0, !0)
1581
+ N(t.$slots, "optionAnnotator", Q(ee({ toggleAnnotator: a, isAnnotator: s })), void 0, !0)
1567
1582
  ]),
1568
1583
  key: "9"
1569
1584
  } : void 0,
1570
1585
  t.$slots.optionAltCopy ? {
1571
1586
  name: "optionAltCopy",
1572
1587
  fn: P(({ altCopy: a }) => [
1573
- N(t.$slots, "optionAltCopy", ee(te({ altCopy: a })), void 0, !0)
1588
+ N(t.$slots, "optionAltCopy", Q(ee({ altCopy: a })), void 0, !0)
1574
1589
  ]),
1575
1590
  key: "10"
1576
1591
  } : void 0
1577
1592
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "hasAltCopy", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : x("", !0),
1578
- le("div", ro, [
1593
+ le("div", io, [
1579
1594
  (i(), v("svg", {
1580
1595
  ref_key: "svgRef",
1581
- ref: he,
1596
+ ref: de,
1582
1597
  "aria-describedby": `chart-instructions-${K.value}`,
1583
- xmlns: C(Ns),
1598
+ xmlns: C(Ps),
1584
1599
  viewBox: `0 0 ${d.value.chartWidth <= 0 ? 10 : d.value.chartWidth} ${d.value.chartHeight <= 0 ? 10 : d.value.chartHeight}`,
1585
- class: tl({ "vue-data-ui-loading": C(de), "no-transition": !e.value.useCssAnimation }),
1600
+ class: tl({ "vue-data-ui-loading": C(ve), "no-transition": !e.value.useCssAnimation }),
1586
1601
  style: ge(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`),
1587
1602
  role: "img",
1588
1603
  "aria-live": "polite",
1589
1604
  tabindex: "0",
1590
1605
  preserveAspectRatio: "xMidYMid",
1591
- onMousemove: Xl,
1592
- onMouseleave: Dt,
1593
- onClick: Gl,
1594
- onFocus: hs,
1595
- onBlur: ms,
1596
- onKeydown: fs
1606
+ onMousemove: Gl,
1607
+ onMouseleave: Vt,
1608
+ onClick: jl,
1609
+ onFocus: ms,
1610
+ onBlur: fs,
1611
+ onKeydown: ys
1597
1612
  }, [
1598
1613
  Ze(C(pl)),
1599
- (i(!0), v(F, null, X(Me.value, (a) => (i(), v(F, null, [
1600
- t.$slots.pattern ? (i(), v("defs", uo, [
1601
- N(t.$slots, "pattern", bt({ ref_for: !0 }, { seriesIndex: a.absoluteIndex, patternId: `pattern_${K.value}_${a.absoluteIndex}` }), void 0, !0)
1614
+ (i(!0), v(R, null, X(Me.value, (a) => (i(), v(R, null, [
1615
+ t.$slots.pattern ? (i(), v("defs", co, [
1616
+ N(t.$slots, "pattern", xt({ ref_for: !0 }, { seriesIndex: a.absoluteIndex, patternId: `pattern_${K.value}_${a.absoluteIndex}` }), void 0, !0)
1602
1617
  ])) : x("", !0)
1603
1618
  ], 64))), 256)),
1604
1619
  t.$slots["chart-background"] ? (i(), v("foreignObject", {
@@ -1612,9 +1627,9 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1612
1627
  }
1613
1628
  }, [
1614
1629
  N(t.$slots, "chart-background", {}, void 0, !0)
1615
- ], 8, co)) : x("", !0),
1616
- e.value.style.chart.lines.gradient.show ? (i(), v("defs", vo, [
1617
- (i(!0), v(F, null, X(T.value, (a, s) => (i(), v("linearGradient", {
1630
+ ], 8, vo)) : x("", !0),
1631
+ e.value.style.chart.lines.gradient.show ? (i(), v("defs", ho, [
1632
+ (i(!0), v(R, null, X(A.value, (a, s) => (i(), v("linearGradient", {
1618
1633
  id: `gradient_${a.id}`,
1619
1634
  x1: "0%",
1620
1635
  y1: "0%",
@@ -1624,14 +1639,14 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1624
1639
  le("stop", {
1625
1640
  offset: "0%",
1626
1641
  "stop-color": a.color
1627
- }, null, 8, mo),
1642
+ }, null, 8, fo),
1628
1643
  le("stop", {
1629
1644
  offset: "100%",
1630
- "stop-color": C(Ps)(a.color, e.value.style.chart.lines.gradient.intensity / 100)
1631
- }, null, 8, fo)
1632
- ], 8, ho))), 256))
1645
+ "stop-color": C(zs)(a.color, e.value.style.chart.lines.gradient.intensity / 100)
1646
+ }, null, 8, yo)
1647
+ ], 8, mo))), 256))
1633
1648
  ])) : x("", !0),
1634
- e.value.style.chart.grid.x.showHorizontalLines ? (i(!0), v(F, { key: 2 }, X(Ie.value, (a, s) => (i(), v("line", {
1649
+ e.value.style.chart.grid.x.showHorizontalLines ? (i(!0), v(R, { key: 2 }, X(ze.value, (a, s) => (i(), v("line", {
1635
1650
  x1: ae.value.left,
1636
1651
  x2: ae.value.right,
1637
1652
  y1: a.y,
@@ -1640,17 +1655,17 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1640
1655
  "stroke-width": e.value.style.chart.grid.x.linesThickness,
1641
1656
  "stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
1642
1657
  "stroke-linecap": "round"
1643
- }, null, 8, yo))), 256)) : x("", !0),
1644
- e.value.style.chart.grid.y.showVerticalLines ? (i(!0), v(F, { key: 3 }, X(c.value.end - c.value.start, (a, s) => (i(), v("line", {
1645
- x1: ie(s),
1646
- x2: ie(s),
1658
+ }, null, 8, go))), 256)) : x("", !0),
1659
+ e.value.style.chart.grid.y.showVerticalLines ? (i(!0), v(R, { key: 3 }, X(u.value.end - u.value.start, (a, s) => (i(), v("line", {
1660
+ x1: re(s),
1661
+ x2: re(s),
1647
1662
  y1: d.value.top,
1648
1663
  y2: d.value.bottom,
1649
1664
  stroke: e.value.style.chart.grid.y.linesColor,
1650
1665
  "stroke-width": e.value.style.chart.grid.y.linesThickness,
1651
1666
  "stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
1652
1667
  "stroke-linecap": "round"
1653
- }, null, 8, go))), 256)) : x("", !0),
1668
+ }, null, 8, po))), 256)) : x("", !0),
1654
1669
  e.value.style.chart.grid.x.showAxis ? (i(), v("line", {
1655
1670
  key: 4,
1656
1671
  x1: ae.value.left,
@@ -1661,7 +1676,7 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1661
1676
  "stroke-width": e.value.style.chart.grid.x.axisThickness,
1662
1677
  "stroke-linecap": "round",
1663
1678
  "stroke-linejoin": "round"
1664
- }, null, 8, po)) : x("", !0),
1679
+ }, null, 8, bo)) : x("", !0),
1665
1680
  e.value.style.chart.grid.y.showAxis && !e.value.style.chart.lines.distributed ? (i(), v("line", {
1666
1681
  key: 5,
1667
1682
  x1: ae.value.left,
@@ -1672,7 +1687,7 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1672
1687
  "stroke-width": e.value.style.chart.grid.y.axisThickness,
1673
1688
  "stroke-linecap": "round",
1674
1689
  "stroke-linejoin": "round"
1675
- }, null, 8, bo)) : x("", !0),
1690
+ }, null, 8, xo)) : x("", !0),
1676
1691
  e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (i(), v("text", {
1677
1692
  key: 6,
1678
1693
  ref_key: "xAxisLabel",
@@ -1683,17 +1698,17 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1683
1698
  fill: e.value.style.chart.grid.x.axisName.color,
1684
1699
  "font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
1685
1700
  "text-anchor": "middle"
1686
- }, fe(e.value.style.chart.grid.x.axisName.text), 9, xo)) : x("", !0),
1701
+ }, fe(e.value.style.chart.grid.x.axisName.text), 9, ko)) : x("", !0),
1687
1702
  e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (i(), v("text", {
1688
1703
  key: 7,
1689
1704
  ref_key: "yAxisLabel",
1690
- ref: Ct,
1705
+ ref: Lt,
1691
1706
  transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize}, ${d.value.top + d.value.height / 2}) rotate(-90)`,
1692
1707
  "font-size": e.value.style.chart.grid.y.axisName.fontSize,
1693
1708
  fill: e.value.style.chart.grid.y.axisName.color,
1694
1709
  "font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
1695
1710
  "text-anchor": "middle"
1696
- }, fe(e.value.style.chart.grid.y.axisName.text), 9, ko)) : x("", !0),
1711
+ }, fe(e.value.style.chart.grid.y.axisName.text), 9, wo)) : x("", !0),
1697
1712
  e.value.style.chart.grid.frame.show ? (i(), v("rect", {
1698
1713
  key: 8,
1699
1714
  style: { pointerEvents: "none", transition: "none", animation: "none !important" },
@@ -1707,42 +1722,42 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1707
1722
  "stroke-linecap": e.value.style.chart.grid.frame.strokeLinecap,
1708
1723
  "stroke-linejoin": e.value.style.chart.grid.frame.strokeLinejoin,
1709
1724
  "stroke-dasharray": e.value.style.chart.grid.frame.strokeDasharray
1710
- }, null, 8, wo)) : x("", !0),
1711
- (i(!0), v(F, null, X(T.value, (a) => (i(), v(F, null, [
1725
+ }, null, 8, So)) : x("", !0),
1726
+ (i(!0), v(R, null, X(A.value, (a) => (i(), v(R, null, [
1712
1727
  e.value.style.chart.lines.useArea && !a.standalone ? (i(), v("path", {
1713
1728
  key: 0,
1714
1729
  d: e.value.style.chart.lines.smooth ? a.smoothArea : a.straightArea,
1715
1730
  fill: t.$slots.pattern ? `url(#pattern_${K.value}_${a.absoluteIndex})` : e.value.style.chart.lines.gradient.show ? `url(#gradient_${a.id})` : a.color,
1716
1731
  opacity: e.value.style.chart.lines.areaOpacity,
1717
1732
  style: ge({
1718
- transition: C(de) || !e.value.useCssAnimation ? void 0 : "all 0.3s ease-in-out"
1733
+ transition: C(ve) || !e.value.useCssAnimation ? void 0 : "all 0.3s ease-in-out"
1719
1734
  })
1720
- }, null, 12, So)) : x("", !0)
1735
+ }, null, 12, Mo)) : x("", !0)
1721
1736
  ], 64))), 256)),
1722
- (i(!0), v(F, null, X(T.value, (a) => (i(), v("path", {
1737
+ (i(!0), v(R, null, X(A.value, (a) => (i(), v("path", {
1723
1738
  d: e.value.style.chart.lines.smooth ? a.smoothPath : a.straightPath,
1724
1739
  stroke: a.color,
1725
1740
  "stroke-width": e.value.style.chart.lines.strokeWidth,
1726
1741
  fill: "none",
1727
1742
  "stroke-linecap": "round",
1728
1743
  style: ge({
1729
- transition: C(de) || !e.value.useCssAnimation ? void 0 : "all 0.3s ease-in-out"
1744
+ transition: C(ve) || !e.value.useCssAnimation ? void 0 : "all 0.3s ease-in-out"
1730
1745
  })
1731
- }, null, 12, Mo))), 256)),
1746
+ }, null, 12, $o))), 256)),
1732
1747
  e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.lines.distributed ? (i(), v("g", {
1733
1748
  key: 9,
1734
1749
  ref_key: "scaleLabels",
1735
- ref: Lt
1750
+ ref: At
1736
1751
  }, [
1737
- (i(!0), v(F, null, X(Ie.value, (a, s) => (i(), v("line", {
1752
+ (i(!0), v(R, null, X(ze.value, (a, s) => (i(), v("line", {
1738
1753
  x1: ae.value.left,
1739
1754
  x2: ae.value.left - 6,
1740
1755
  y1: a.y,
1741
1756
  y2: a.y,
1742
1757
  stroke: e.value.style.chart.grid.x.axisColor,
1743
1758
  "stroke-width": 1
1744
- }, null, 8, $o))), 256)),
1745
- (i(!0), v(F, null, X(Ie.value, (a, s) => (i(), v("text", {
1759
+ }, null, 8, Co))), 256)),
1760
+ (i(!0), v(R, null, X(ze.value, (a, s) => (i(), v("text", {
1746
1761
  x: a.x,
1747
1762
  y: a.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
1748
1763
  "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
@@ -1759,16 +1774,16 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1759
1774
  r: e.value.style.chart.grid.y.axisLabels.rounding
1760
1775
  }),
1761
1776
  { datapoint: a }
1762
- )), 9, Co))), 256))
1777
+ )), 9, Lo))), 256))
1763
1778
  ], 512)) : x("", !0),
1764
1779
  e.value.style.chart.grid.x.timeLabels.show ? (i(), v("g", {
1765
1780
  key: 10,
1766
1781
  ref_key: "timeLabelsEls",
1767
1782
  ref: nt
1768
1783
  }, [
1769
- t.$slots["time-label"] ? (i(), v("g", Lo, [
1770
- (i(!0), v(F, null, X(ht.value, (a, s) => (i(), v("g", null, [
1771
- N(t.$slots, "time-label", bt({ ref_for: !0 }, {
1784
+ t.$slots["time-label"] ? (i(), v("g", Ao, [
1785
+ (i(!0), v(R, null, X(ht.value, (a, s) => (i(), v("g", null, [
1786
+ N(t.$slots, "time-label", xt({ ref_for: !0 }, {
1772
1787
  x: d.value.left + vt.value * s + vt.value / 2,
1773
1788
  y: d.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
1774
1789
  fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
@@ -1780,8 +1795,8 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1780
1795
  show: !0
1781
1796
  }), void 0, !0)
1782
1797
  ]))), 256))
1783
- ])) : (i(), v("g", Ao, [
1784
- (i(!0), v(F, null, X(ht.value, (a, s) => (i(), v("g", null, [
1798
+ ])) : (i(), v("g", To, [
1799
+ (i(!0), v(R, null, X(ht.value, (a, s) => (i(), v("g", null, [
1785
1800
  String(a.text).includes(`
1786
1801
  `) ? (i(), v("text", {
1787
1802
  key: s + "-multi",
@@ -1790,12 +1805,12 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1790
1805
  fill: e.value.style.chart.grid.x.timeLabels.color,
1791
1806
  transform: `
1792
1807
  translate(
1793
- ${ie(s)},
1808
+ ${re(s)},
1794
1809
  ${d.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}
1795
1810
  ),
1796
1811
  rotate(${e.value.style.chart.grid.x.timeLabels.rotation})
1797
1812
  `,
1798
- style: ge({ cursor: ve.value ? "pointer" : "default" }),
1813
+ style: ge({ cursor: ce.value ? "pointer" : "default" }),
1799
1814
  innerHTML: t.createTSpansFromLineBreaksOnX({
1800
1815
  content: String(a.text),
1801
1816
  fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
@@ -1804,37 +1819,37 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1804
1819
  y: 0
1805
1820
  }),
1806
1821
  onClick: () => Va(a, s)
1807
- }, null, 12, No)) : (i(), v("text", {
1822
+ }, null, 12, Po)) : (i(), v("text", {
1808
1823
  class: "vue-data-ui-time-label",
1809
1824
  key: s,
1810
1825
  "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
1811
1826
  "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
1812
1827
  "font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
1813
1828
  fill: e.value.style.chart.grid.x.timeLabels.color,
1814
- transform: `translate(${ie(s)}, ${d.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`,
1815
- style: ge({ cursor: ve.value ? "pointer" : "default" }),
1829
+ transform: `translate(${re(s)}, ${d.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`,
1830
+ style: ge({ cursor: ce.value ? "pointer" : "default" }),
1816
1831
  onClick: () => Va(a, s)
1817
- }, fe(a.text), 13, To))
1832
+ }, fe(a.text), 13, No))
1818
1833
  ]))), 256))
1819
1834
  ]))
1820
1835
  ], 512)) : x("", !0),
1821
- (Le.value || ![null, void 0].includes(b.value)) && !e.value.style.chart.highlighter.useLine ? (i(!0), v(F, { key: 11 }, X(c.value.end - c.value.start, (a, s) => (i(), v("g", {
1836
+ (Le.value || ![null, void 0].includes(b.value)) && !e.value.style.chart.highlighter.useLine ? (i(!0), v(R, { key: 11 }, X(u.value.end - u.value.start, (a, s) => (i(), v("g", {
1822
1837
  key: `tooltip_trap_highlighter_${s}`
1823
1838
  }, [
1824
1839
  le("rect", {
1825
- x: Oa(s).x,
1840
+ x: Ra(s).x,
1826
1841
  y: d.value.top,
1827
1842
  height: d.value.height,
1828
- width: Oa(s).width,
1843
+ width: Ra(s).width,
1829
1844
  fill: [Ye.value, b.value].includes(s) ? C(Is)(e.value.style.chart.highlighter.color, e.value.style.chart.highlighter.opacity) : "transparent",
1830
1845
  style: { transition: "none !important", animation: "none !important" }
1831
- }, null, 8, Po)
1846
+ }, null, 8, zo)
1832
1847
  ]))), 128)) : x("", !0),
1833
- (Le.value || ![null, void 0].includes(b.value)) && e.value.style.chart.highlighter.useLine ? (i(), v(F, { key: 12 }, [
1848
+ (Le.value || ![null, void 0].includes(b.value)) && e.value.style.chart.highlighter.useLine ? (i(), v(R, { key: 12 }, [
1834
1849
  ![null, void 0].includes(b.value) || ![null, void 0].includes(Ye.value) ? (i(), v("g", Io, [
1835
1850
  le("line", {
1836
- x1: ie((b.value ?? Ye.value) || 0),
1837
- x2: ie((b.value ?? Ye.value) || 0),
1851
+ x1: re((b.value ?? Ye.value) || 0),
1852
+ x2: re((b.value ?? Ye.value) || 0),
1838
1853
  y1: C(tt)(d.value.top),
1839
1854
  y2: C(tt)(d.value.bottom),
1840
1855
  stroke: e.value.style.chart.highlighter.color,
@@ -1842,13 +1857,13 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1842
1857
  "stroke-dasharray": e.value.style.chart.highlighter.lineDasharray,
1843
1858
  "stroke-linecap": "round",
1844
1859
  style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
1845
- }, null, 8, zo)
1860
+ }, null, 8, _o)
1846
1861
  ])) : x("", !0)
1847
1862
  ], 64)) : x("", !0),
1848
- (i(!0), v(F, null, X(T.value, (a) => (i(), v(F, null, [
1849
- Le.value && c.value.end - c.value.start > e.value.style.chart.lines.dot.hideAboveMaxSerieLength ? (i(), v("g", _o, [
1850
- b.value != null ? (i(), v(F, { key: 0 }, [
1851
- a.rel.includes(b.value) && a.fullSeries?.[c.value.start + b.value] != null && !Number.isNaN(a.fullSeries?.[c.value.start + b.value]) ? (i(), oe(Kt, {
1863
+ (i(!0), v(R, null, X(A.value, (a) => (i(), v(R, null, [
1864
+ Le.value && u.value.end - u.value.start > e.value.style.chart.lines.dot.hideAboveMaxSerieLength ? (i(), v("g", Fo, [
1865
+ b.value != null ? (i(), v(R, { key: 0 }, [
1866
+ a.rel.includes(b.value) && a.fullSeries?.[u.value.start + b.value] != null && !Number.isNaN(a.fullSeries?.[u.value.start + b.value]) ? (i(), se(Kt, {
1852
1867
  key: 0,
1853
1868
  shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(a.shape) ? a.shape : "circle",
1854
1869
  color: e.value.style.chart.lines.dot.useSerieColor ? a.color : e.value.style.chart.lines.dot.fill,
@@ -1859,14 +1874,14 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1859
1874
  radius: e.value.style.chart.lines.dot.radius * 1.3,
1860
1875
  stroke: e.value.style.chart.lines.dot.useSerieColor ? e.value.style.chart.backgroundColor : a.color,
1861
1876
  strokeWidth: e.value.style.chart.lines.dot.strokeWidth,
1862
- transition: C(de) ? void 0 : `all ${e.value.style.chart.lines.transitionDurationMs}ms ease-in-out`
1877
+ transition: C(ve) ? void 0 : `all ${e.value.style.chart.lines.transitionDurationMs}ms ease-in-out`
1863
1878
  }, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : x("", !0)
1864
1879
  ], 64)) : x("", !0)
1865
1880
  ])) : x("", !0)
1866
1881
  ], 64))), 256)),
1867
- (i(!0), v(F, null, X(T.value, (a) => (i(), v(F, null, [
1868
- c.value.end - c.value.start < e.value.style.chart.lines.dot.hideAboveMaxSerieLength ? (i(!0), v(F, { key: 0 }, X(a.points, (s, n) => (i(), v("g", { key: n }, [
1869
- a.fullSeries?.[c.value.start + a.rel[n]] != null && !Number.isNaN(a.fullSeries?.[c.value.start + a.rel[n]]) ? (i(), oe(Kt, {
1882
+ (i(!0), v(R, null, X(A.value, (a) => (i(), v(R, null, [
1883
+ u.value.end - u.value.start < e.value.style.chart.lines.dot.hideAboveMaxSerieLength ? (i(!0), v(R, { key: 0 }, X(a.points, (s, n) => (i(), v("g", { key: n }, [
1884
+ a.fullSeries?.[u.value.start + a.rel[n]] != null && !Number.isNaN(a.fullSeries?.[u.value.start + a.rel[n]]) ? (i(), se(Kt, {
1870
1885
  key: 0,
1871
1886
  shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(a.shape) ? a.shape : "circle",
1872
1887
  color: e.value.style.chart.lines.dot.useSerieColor ? a.color : e.value.style.chart.lines.dot.fill,
@@ -1874,14 +1889,14 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1874
1889
  radius: Le.value && b.value === a.rel[n] ? e.value.style.chart.lines.dot.radius * 1.3 : e.value.style.chart.lines.dot.radius,
1875
1890
  stroke: e.value.style.chart.lines.dot.useSerieColor ? e.value.style.chart.backgroundColor : a.color,
1876
1891
  strokeWidth: e.value.style.chart.lines.dot.strokeWidth,
1877
- transition: C(de) ? void 0 : `all ${e.value.style.chart.lines.transitionDurationMs}ms ease-in-out`
1892
+ transition: C(ve) ? void 0 : `all ${e.value.style.chart.lines.transitionDurationMs}ms ease-in-out`
1878
1893
  }, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : x("", !0)
1879
1894
  ]))), 128)) : x("", !0)
1880
1895
  ], 64))), 256)),
1881
- j.value.dataLabels.show && e.value.style.chart.lines.dataLabels.hideAboveMaxSerieLength > c.value.end - c.value.start ? (i(), v(F, { key: 13 }, [
1882
- (i(!0), v(F, null, X(T.value, (a, s) => (i(), v("g", { key: s }, [
1883
- (i(!0), v(F, null, X(a.points, (n, o) => (i(), v(F, { key: o }, [
1884
- us(a.series[o], a.proportions[o]) ? (i(), v("text", {
1896
+ j.value.dataLabels.show && e.value.style.chart.lines.dataLabels.hideAboveMaxSerieLength > u.value.end - u.value.start ? (i(), v(R, { key: 13 }, [
1897
+ (i(!0), v(R, null, X(A.value, (a, s) => (i(), v("g", { key: s }, [
1898
+ (i(!0), v(R, null, X(a.points, (n, o) => (i(), v(R, { key: o }, [
1899
+ cs(a.series[o], a.proportions[o]) ? (i(), v("text", {
1885
1900
  key: 0,
1886
1901
  x: n.x,
1887
1902
  y: n.y + (a.series[o] >= 0 ? -e.value.style.chart.lines.dataLabels.fontSize / 2 + e.value.style.chart.lines.dataLabels.offsetY : e.value.style.chart.lines.dataLabels.fontSize * 1.2 - e.value.style.chart.lines.dataLabels.offsetY),
@@ -1889,78 +1904,78 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1889
1904
  fill: e.value.style.chart.lines.dataLabels.color,
1890
1905
  "font-weight": e.value.style.chart.lines.dataLabels.bold ? "bold" : "normal",
1891
1906
  "text-anchor": "middle"
1892
- }, fe(e.value.style.chart.lines.showDistributedPercentage && e.value.style.chart.lines.distributed ? vs(a.proportions[o] * 100, a, s, a.rel[o]) : Ka(a.series[o], a, s, a.rel[o], a.signedSeries[o])), 9, Fo)) : x("", !0)
1907
+ }, fe(e.value.style.chart.lines.showDistributedPercentage && e.value.style.chart.lines.distributed ? ds(a.proportions[o] * 100, a, s, a.rel[o]) : Ka(a.series[o], a, s, a.rel[o], a.signedSeries[o])), 9, Eo)) : x("", !0)
1893
1908
  ], 64))), 128))
1894
1909
  ]))), 128)),
1895
- e.value.style.chart.lines.totalValues.show && T.value.length > 1 ? (i(), v("g", {
1910
+ e.value.style.chart.lines.totalValues.show && A.value.length > 1 ? (i(), v("g", {
1896
1911
  key: 0,
1897
1912
  ref_key: "sumTop",
1898
1913
  ref: $l
1899
1914
  }, [
1900
- (i(!0), v(F, null, X(Aa.value, (a, s) => (i(), v(F, null, [
1915
+ (i(!0), v(R, null, X(La.value, (a, s) => (i(), v(R, null, [
1901
1916
  !e.value.style.chart.lines.dataLabels.hideEmptyValues || a.value !== 0 ? (i(), v("text", {
1902
1917
  key: 0,
1903
- x: ie(s),
1918
+ x: re(s),
1904
1919
  y: Vl(s),
1905
1920
  "text-anchor": "middle",
1906
1921
  "font-size": e.value.style.chart.lines.totalValues.fontSize,
1907
1922
  "font-weight": e.value.style.chart.lines.totalValues.bold ? "bold" : "normal",
1908
1923
  fill: e.value.style.chart.lines.totalValues.color
1909
- }, fe(Ka(a.value, a, s, s, a.sign)), 9, Eo)) : x("", !0)
1924
+ }, fe(Ka(a.value, a, s, s, a.sign)), 9, Ro)) : x("", !0)
1910
1925
  ], 64))), 256))
1911
1926
  ], 512)) : x("", !0)
1912
1927
  ], 64)) : x("", !0),
1913
- Sa.value ? (i(), v("rect", bt({ key: 14 }, _l.value, {
1914
- "data-start": c.value.start,
1915
- "data-end": c.value.end
1916
- }), null, 16, Ro)) : x("", !0),
1928
+ wa.value ? (i(), v("rect", xt({ key: 14 }, _l.value, {
1929
+ "data-start": u.value.start,
1930
+ "data-end": u.value.end
1931
+ }), null, 16, Oo)) : x("", !0),
1917
1932
  N(t.$slots, "svg", {
1918
1933
  svg: {
1919
1934
  drawingArea: d.value,
1920
- data: T.value,
1921
- isPrintingImg: C(zt) | C(_t) | lt.value,
1935
+ data: A.value,
1936
+ isPrintingImg: C(_t) | C(Ft) | lt.value,
1922
1937
  isPrintingSvg: st.value
1923
1938
  }
1924
1939
  }, void 0, !0)
1925
- ], 46, io)),
1926
- t.$slots.hint ? (i(), v("div", Oo, [
1927
- N(t.$slots, "hint", ee(te({ hint: e.value.a11y.translations.keyboardNavigation, isVisible: Wt.value })), void 0, !0)
1940
+ ], 46, uo)),
1941
+ t.$slots.hint ? (i(), v("div", Do, [
1942
+ N(t.$slots, "hint", Q(ee({ hint: e.value.a11y.translations.keyboardNavigation, isVisible: Wt.value })), void 0, !0)
1928
1943
  ])) : x("", !0)
1929
1944
  ]),
1930
- t.$slots.watermark ? (i(), v("div", Do, [
1931
- N(t.$slots, "watermark", ee(te({ isPrinting: C(zt) || C(_t) || lt.value || st.value })), void 0, !0)
1945
+ t.$slots.watermark ? (i(), v("div", Vo, [
1946
+ N(t.$slots, "watermark", Q(ee({ isPrinting: C(_t) || C(Ft) || lt.value || st.value })), void 0, !0)
1932
1947
  ])) : x("", !0),
1933
- na.value ? (i(), oe(xs, {
1948
+ oa.value ? (i(), se(ks, {
1934
1949
  key: 6,
1935
1950
  to: e.value.style.chart.legend.position === "top" ? `#legend-top-${K.value}` : `#legend-bottom-${K.value}`
1936
1951
  }, [
1937
1952
  le("div", {
1938
1953
  ref_key: "chartLegend",
1939
- ref: aa
1954
+ ref: ta
1940
1955
  }, [
1941
- e.value.style.chart.legend.show ? (i(), oe(Qs, {
1956
+ e.value.style.chart.legend.show ? (i(), se(eo, {
1942
1957
  key: 0,
1943
1958
  legendSet: Xe.value,
1944
- config: Kl.value,
1945
- isCursorPointer: ve.value,
1959
+ config: Zl.value,
1960
+ isCursorPointer: ce.value,
1946
1961
  onClickMarker: l[0] || (l[0] = ({ legend: a }) => a.segregate())
1947
1962
  }, jt({
1948
1963
  item: P(({ legend: a }) => [
1949
- C(de) ? x("", !0) : (i(), v("div", {
1964
+ C(ve) ? x("", !0) : (i(), v("div", {
1950
1965
  key: 0,
1951
1966
  onClick: (s) => a.segregate(),
1952
- style: ge(`opacity:${D.value.includes(a.id) ? 0.5 : 1}`)
1953
- }, fe(a.name), 13, Vo))
1967
+ style: ge(`opacity:${V.value.includes(a.id) ? 0.5 : 1}`)
1968
+ }, fe(a.name), 13, Bo))
1954
1969
  ]),
1955
1970
  legendToggle: P(() => [
1956
- Xe.value.length > 2 && e.value.style.chart.legend.selectAllToggle.show && !C(de) ? (i(), oe(ao, {
1971
+ Xe.value.length > 2 && e.value.style.chart.legend.selectAllToggle.show && !C(ve) ? (i(), se(lo, {
1957
1972
  key: 0,
1958
1973
  backgroundColor: e.value.style.chart.legend.selectAllToggle.backgroundColor,
1959
1974
  color: e.value.style.chart.legend.selectAllToggle.color,
1960
1975
  fontSize: e.value.style.chart.legend.fontSize,
1961
- checked: D.value.length > 0,
1962
- isCursorPointer: ve.value,
1963
- onToggle: Jl
1976
+ checked: V.value.length > 0,
1977
+ isCursorPointer: ce.value,
1978
+ onToggle: Kl
1964
1979
  }, null, 8, ["backgroundColor", "color", "fontSize", "checked", "isCursorPointer"])) : x("", !0)
1965
1980
  ]),
1966
1981
  _: 2
@@ -1984,7 +1999,7 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1984
1999
  }, void 0, !0)
1985
2000
  ], 512)
1986
2001
  ], 8, ["to"])) : x("", !0),
1987
- Ee.value && e.value.userOptions.buttons.table ? (i(), oe(ks(Ge.value.component), bt({ key: 7 }, Ge.value.props, {
2002
+ Ee.value && e.value.userOptions.buttons.table ? (i(), se(ws(Ge.value.component), xt({ key: 7 }, Ge.value.props, {
1988
2003
  ref_key: "tableUnit",
1989
2004
  ref: Ve,
1990
2005
  onClose: Wa
@@ -1997,11 +2012,11 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1997
2012
  config: _e.value.config,
1998
2013
  title: e.value.table.useDialog ? "" : Ge.value.title,
1999
2014
  withCloseButton: !e.value.table.useDialog,
2000
- isCursorPointer: ve.value,
2015
+ isCursorPointer: ce.value,
2001
2016
  onClose: Wa
2002
2017
  }, {
2003
2018
  th: P(({ th: a }) => [
2004
- le("div", { innerHTML: a }, null, 8, Bo)
2019
+ le("div", { innerHTML: a }, null, 8, Yo)
2005
2020
  ]),
2006
2021
  td: P(({ td: a }) => [
2007
2022
  al(fe(isNaN(Number(a)) ? a : C(Ce)({
@@ -2030,7 +2045,7 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
2030
2045
  tabindex: "0",
2031
2046
  class: "vue-ui-user-options-button",
2032
2047
  onClick: l[1] || (l[1] = (a) => Ht(e.value.userOptions.callbacks.csv)),
2033
- style: ge({ cursor: ve.value ? "pointer" : "default" })
2048
+ style: ge({ cursor: ce.value ? "pointer" : "default" })
2034
2049
  }, [
2035
2050
  Ze(C(hl), {
2036
2051
  name: "fileCsv",
@@ -2041,7 +2056,7 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
2041
2056
  key: "1"
2042
2057
  } : void 0
2043
2058
  ]), 1040)) : x("", !0),
2044
- e.value.style.chart.zoom.show && Ee.value && Fa.value && me.value > 6 ? (i(), oe(to, {
2059
+ e.value.style.chart.zoom.show && Ee.value && _a.value && he.value > 6 ? (i(), se(ao, {
2045
2060
  key: 8,
2046
2061
  ref_key: "chartSlicer",
2047
2062
  ref: Oe,
@@ -2052,18 +2067,18 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
2052
2067
  cutNullValues: !1,
2053
2068
  enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
2054
2069
  enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
2055
- end: c.value.end,
2070
+ end: u.value.end,
2056
2071
  focusOnDrag: e.value.style.chart.zoom.focusOnDrag,
2057
2072
  focusRangeRatio: e.value.style.chart.zoom.focusRangeRatio,
2058
2073
  fontSize: e.value.style.chart.zoom.fontSize,
2059
2074
  immediate: !e.value.style.chart.zoom.preview.enable,
2060
2075
  inputColor: e.value.style.chart.zoom.color,
2061
- isPreview: Sa.value,
2062
- labelLeft: e.value.style.chart.grid.x.timeLabels.values[c.value.start] ? se.value?.[0]?.text ?? "" : "",
2063
- labelRight: e.value.style.chart.grid.x.timeLabels.values[c.value.end - 1] ? se.value?.at(-1)?.text ?? "" : "",
2064
- max: Math.max(...St.dataset.map((a) => a.series.length)),
2076
+ isPreview: wa.value,
2077
+ labelLeft: e.value.style.chart.grid.x.timeLabels.values[u.value.start] ? me.value?.[0]?.text ?? "" : "",
2078
+ labelRight: e.value.style.chart.grid.x.timeLabels.values[u.value.end - 1] ? me.value?.at(-1)?.text ?? "" : "",
2079
+ max: Math.max(...Mt.dataset.map((a) => a.series.length)),
2065
2080
  min: 0,
2066
- minimap: La.value,
2081
+ minimap: Ca.value,
2067
2082
  minimapCompact: e.value.style.chart.zoom.minimap.compact,
2068
2083
  minimapFrameColor: e.value.style.chart.zoom.minimap.frameColor,
2069
2084
  minimapIndicatorColor: e.value.style.chart.zoom.minimap.indicatorColor,
@@ -2072,21 +2087,21 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
2072
2087
  minimapSelectedColorOpacity: e.value.style.chart.zoom.minimap.selectedColorOpacity,
2073
2088
  minimapSelectedIndex: b.value,
2074
2089
  minimapSelectionRadius: 1,
2075
- preciseLabels: _a.value.length ? _a.value : ze.value,
2076
- refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...St.dataset.map((a) => a.series.length)),
2090
+ preciseLabels: Ia.value.length ? Ia.value : Ie.value,
2091
+ refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...Mt.dataset.map((a) => a.series.length)),
2077
2092
  refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
2078
2093
  selectColor: e.value.style.chart.zoom.highlightColor,
2079
- selectedSeries: rs.value,
2094
+ selectedSeries: is.value,
2080
2095
  smoothMinimap: !1,
2081
- start: c.value.start,
2096
+ start: u.value.start,
2082
2097
  textColor: e.value.style.chart.color,
2083
- timeLabels: ze.value,
2098
+ timeLabels: Ie.value,
2084
2099
  usePreciseLabels: e.value.style.chart.grid.x.timeLabels.datetimeFormatter.enable && !e.value.style.chart.zoom.useDefaultFormat,
2085
- valueEnd: c.value.end,
2086
- valueStart: c.value.start,
2100
+ valueEnd: u.value.end,
2101
+ valueStart: u.value.start,
2087
2102
  verticalHandles: e.value.style.chart.zoom.minimap.verticalHandles,
2088
2103
  maxWidth: e.value.style.chart.zoom.maxWidth,
2089
- isCursorPointer: ve.value,
2104
+ isCursorPointer: ce.value,
2090
2105
  additionalMinimapHeight: e.value.style.chart.zoom.minimap.additionalHeight,
2091
2106
  handleType: e.value.style.chart.zoom.minimap.handleType,
2092
2107
  handleIconColor: e.value.style.chart.zoom.minimap.handleIconColor,
@@ -2094,26 +2109,26 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
2094
2109
  handleBorderColor: e.value.style.chart.zoom.minimap.handleBorderColor,
2095
2110
  handleFill: e.value.style.chart.zoom.minimap.handleFill,
2096
2111
  handleWidth: e.value.style.chart.zoom.minimap.handleWidth,
2097
- "onUpdate:end": Wl,
2098
- "onUpdate:start": Hl,
2112
+ "onUpdate:end": Ul,
2113
+ "onUpdate:start": Wl,
2099
2114
  onTrapMouse: Fl,
2100
- onReset: $a,
2101
- onFutureEnd: l[2] || (l[2] = (a) => Ma("end", a)),
2102
- onFutureStart: l[3] || (l[3] = (a) => Ma("start", a))
2115
+ onReset: Ma,
2116
+ onFutureEnd: l[2] || (l[2] = (a) => Sa("end", a)),
2117
+ onFutureStart: l[3] || (l[3] = (a) => Sa("start", a))
2103
2118
  }, {
2104
2119
  "reset-action": P(({ reset: a }) => [
2105
- N(t.$slots, "reset-action", ee(te({ reset: a })), void 0, !0)
2120
+ N(t.$slots, "reset-action", Q(ee({ reset: a })), void 0, !0)
2106
2121
  ]),
2107
2122
  slotMap: P(({ width: a, height: s, unitW: n }) => [
2108
2123
  le("g", {
2109
- innerHTML: is({ minimapH: s, unitW: n })
2110
- }, null, 8, Yo)
2124
+ innerHTML: us({ minimapH: s, unitW: n })
2125
+ }, null, 8, Ho)
2111
2126
  ]),
2112
2127
  _: 3
2113
2128
  }, 8, ["allMinimaps", "background", "borderColor", "customFormat", "enableRangeHandles", "enableSelectionDrag", "end", "focusOnDrag", "focusRangeRatio", "fontSize", "immediate", "inputColor", "isPreview", "labelLeft", "labelRight", "max", "minimap", "minimapCompact", "minimapFrameColor", "minimapIndicatorColor", "minimapSelectedColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "preciseLabels", "refreshEndPoint", "refreshStartPoint", "selectColor", "selectedSeries", "start", "textColor", "timeLabels", "usePreciseLabels", "valueEnd", "valueStart", "verticalHandles", "maxWidth", "isCursorPointer", "additionalMinimapHeight", "handleType", "handleIconColor", "handleBorderWidth", "handleBorderColor", "handleFill", "handleWidth"])) : x("", !0),
2114
2129
  le("div", {
2115
2130
  id: `legend-bottom-${K.value}`
2116
- }, null, 8, Ho),
2131
+ }, null, 8, Wo),
2117
2132
  Ze(C(dl), {
2118
2133
  teleportTo: e.value.style.chart.tooltip.teleportTo,
2119
2134
  show: j.value.showTooltip && Re.value,
@@ -2126,8 +2141,8 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
2126
2141
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
2127
2142
  position: e.value.style.chart.tooltip.position,
2128
2143
  offsetY: e.value.style.chart.tooltip.offsetY,
2129
- parent: ue.value,
2130
- content: jl.value,
2144
+ parent: ie.value,
2145
+ content: Jl.value,
2131
2146
  isFullscreen: De.value,
2132
2147
  isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
2133
2148
  smooth: e.value.style.chart.tooltip.smooth,
@@ -2135,30 +2150,33 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
2135
2150
  smoothForce: e.value.style.chart.tooltip.smoothForce,
2136
2151
  smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold,
2137
2152
  isA11yMode: Be.value === "keyboard",
2138
- a11yPosition: va.value
2153
+ a11yPosition: ca.value
2139
2154
  }, {
2140
2155
  "tooltip-before": P(() => [
2141
- N(t.$slots, "tooltip-before", ee(te({ ...Qt.value })), void 0, !0)
2156
+ N(t.$slots, "tooltip-before", Q(ee({ ...Dt.value })), void 0, !0)
2157
+ ]),
2158
+ tooltip: P(() => [
2159
+ N(t.$slots, "tooltip", Q(ee({ ...Dt.value })), void 0, !0)
2142
2160
  ]),
2143
2161
  "tooltip-after": P(() => [
2144
- N(t.$slots, "tooltip-after", ee(te({ ...Qt.value })), void 0, !0)
2162
+ N(t.$slots, "tooltip-after", Q(ee({ ...Dt.value })), void 0, !0)
2145
2163
  ]),
2146
2164
  _: 3
2147
2165
  }, 8, ["teleportTo", "show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
2148
2166
  t.$slots.source ? (i(), v("div", {
2149
2167
  key: 9,
2150
2168
  ref_key: "source",
2151
- ref: sa,
2169
+ ref: la,
2152
2170
  dir: "auto"
2153
2171
  }, [
2154
2172
  N(t.$slots, "source", {}, void 0, !0)
2155
2173
  ], 512)) : x("", !0),
2156
2174
  N(t.$slots, "skeleton", {}, () => [
2157
- C(de) ? (i(), oe(Ys, { key: 0 })) : x("", !0)
2175
+ C(ve) ? (i(), se(Hs, { key: 0 })) : x("", !0)
2158
2176
  ], !0)
2159
- ], 46, so));
2177
+ ], 46, oo));
2160
2178
  }
2161
- }, fn = /* @__PURE__ */ lo(Wo, [["__scopeId", "data-v-a4a2b837"]]);
2179
+ }, yn = /* @__PURE__ */ so(Uo, [["__scopeId", "data-v-92ca460b"]]);
2162
2180
  export {
2163
- fn as default
2181
+ yn as default
2164
2182
  };