vue-data-ui 3.23.9 → 3.23.11

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 (200) hide show
  1. package/README.md +40 -40
  2. package/dist/{Arrow-CF0VFcBH.js → Arrow-DrF4NNJO.js} +1 -1
  3. package/dist/{BaseDraggableDialog-LoqqwRtV.js → BaseDraggableDialog-Dr_Q6Yt5.js} +2 -2
  4. package/dist/{BaseIcon-BfndwIWE.js → BaseIcon-BbElSC8_.js} +1 -1
  5. package/dist/{BaseLegendToggle-DZVucLnv.js → BaseLegendToggle-CtEdLr4R.js} +1 -1
  6. package/dist/{BaseZoomControls-BZvCnZEi.js → BaseZoomControls-Cvq4UmNG.js} +2 -2
  7. package/dist/{ColorPicker--ayG2YHf.js → ColorPicker-ChOgAmCi.js} +2 -2
  8. package/dist/{DataTable-BbKgJ5UI.js → DataTable-CmyEubtT.js} +2 -2
  9. package/dist/{HillActions-BD9j_sOU.js → HillActions-3HneGJhS.js} +1 -1
  10. package/dist/{Legend-CQxUgOd-.js → Legend-BJtY2RA9.js} +2 -2
  11. package/dist/{NonSvgPenAndPaper-4ypecDg1.js → NonSvgPenAndPaper-DmxzHJtV.js} +3 -3
  12. package/dist/{PackageVersion-B629oKuX.js → PackageVersion-C0b7KAMa.js} +1 -1
  13. package/dist/{PenAndPaper-C0UZ74fa.js → PenAndPaper-CIa1F5Jq.js} +3 -3
  14. package/dist/{Shape-C21CMlWS.js → Shape-BAL5bQmA.js} +1 -1
  15. package/dist/{SlicerPreview-wUw1hFwe.js → SlicerPreview-BRRyc1p7.js} +426 -426
  16. package/dist/{SparkTooltip-CjsbIhzi.js → SparkTooltip-Bou05CV_.js} +1 -1
  17. package/dist/{Title-BE3qg9xl.js → Title-CaVA8EIw.js} +1 -1
  18. package/dist/{Tooltip-DhjyfHwz.js → Tooltip-CVxJe3UW.js} +1 -1
  19. package/dist/{UserOptions-Dt98of5H.js → UserOptions-WH7-49V0.js} +2 -2
  20. package/dist/components/arrow.js +1 -1
  21. package/dist/components/vue-ui-3d-bar.js +1 -1
  22. package/dist/components/vue-ui-accordion.js +1 -1
  23. package/dist/components/vue-ui-age-pyramid.js +1 -1
  24. package/dist/components/vue-ui-annotator.js +1 -1
  25. package/dist/components/vue-ui-bullet.js +1 -1
  26. package/dist/components/vue-ui-bump.js +1 -1
  27. package/dist/components/vue-ui-candlestick.js +1 -1
  28. package/dist/components/vue-ui-carousel-table.js +1 -1
  29. package/dist/components/vue-ui-chestnut.js +1 -1
  30. package/dist/components/vue-ui-chord.js +1 -1
  31. package/dist/components/vue-ui-circle-pack.js +1 -1
  32. package/dist/components/vue-ui-cursor.js +1 -1
  33. package/dist/components/vue-ui-dag.js +1 -1
  34. package/dist/components/vue-ui-dashboard.js +1 -1
  35. package/dist/components/vue-ui-digits.js +1 -1
  36. package/dist/components/vue-ui-donut-evolution.js +1 -1
  37. package/dist/components/vue-ui-donut.js +1 -1
  38. package/dist/components/vue-ui-dumbbell.js +1 -1
  39. package/dist/components/vue-ui-flow.js +1 -1
  40. package/dist/components/vue-ui-funnel.js +1 -1
  41. package/dist/components/vue-ui-galaxy.js +1 -1
  42. package/dist/components/vue-ui-gauge.js +1 -1
  43. package/dist/components/vue-ui-geo.js +1 -1
  44. package/dist/components/vue-ui-gizmo.js +1 -1
  45. package/dist/components/vue-ui-heatmap.js +1 -1
  46. package/dist/components/vue-ui-hill.js +1 -1
  47. package/dist/components/vue-ui-history-plot.js +1 -1
  48. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  49. package/dist/components/vue-ui-icon.js +1 -1
  50. package/dist/components/vue-ui-kpi.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/{dom-to-png-BYIvdTe8.js → dom-to-png-COvyU2SG.js} +1 -1
  91. package/dist/exposedLib-DrUEXSyf.js +28 -0
  92. package/dist/{img-Bnokohej.js → img-Bkzj3lDD.js} +1 -1
  93. package/dist/{labelUtils-BeVpDvTJ.js → labelUtils-iX76cA2-.js} +1 -1
  94. package/dist/{lib-Bttd6u5E.js → lib-Dqr_-I6Y.js} +166 -163
  95. package/dist/{package-C01DAl-Z.js → package-D7_0M69J.js} +1 -1
  96. package/dist/{pdf-CVIDfCrS.js → pdf-Bk_9lTdQ.js} +1 -1
  97. package/dist/{render-common-Dv5BvuwZ.js → render-common-B0f5NTO9.js} +12 -12
  98. package/dist/ssr/vue-ui-donut.js +1 -1
  99. package/dist/ssr/vue-ui-xy.js +1 -1
  100. package/dist/ssr.js +2 -2
  101. package/dist/style.css +1 -1
  102. package/dist/types/vue-data-ui.d.ts +13 -2
  103. package/dist/types/vue-ui-dag.d.ts +2 -0
  104. package/dist/{useNestedProp-vPNvh7rV.js → useNestedProp-CulPqtou.js} +1 -1
  105. package/dist/{usePrinter-DN5bYhTG.js → usePrinter-CEiH1b6R.js} +2 -2
  106. package/dist/utils.js +9 -9
  107. package/dist/{vue-data-ui-DDZLOx_v.js → vue-data-ui-BlZHZHoH.js} +69 -69
  108. package/dist/vue-data-ui.js +73 -73
  109. package/dist/{vue-ui-3d-bar-C9Y9Uklb.js → vue-ui-3d-bar-CtT2BovY.js} +379 -381
  110. package/dist/{vue-ui-accordion-CLU_su1P.js → vue-ui-accordion-C6L7glHU.js} +3 -3
  111. package/dist/{vue-ui-age-pyramid-D98P16h3.js → vue-ui-age-pyramid-BhGNgnLB.js} +27 -27
  112. package/dist/{vue-ui-annotator-QjHngrui.js → vue-ui-annotator-BwIu0JUV.js} +9 -9
  113. package/dist/vue-ui-bullet-BI7KJyJx.js +700 -0
  114. package/dist/{vue-ui-bump-BP7UOMFX.js → vue-ui-bump-BCQ97z1G.js} +325 -325
  115. package/dist/{vue-ui-candlestick-XPQeeduK.js → vue-ui-candlestick-Cs7I5MQS.js} +245 -245
  116. package/dist/{vue-ui-carousel-table-D39rMqRb.js → vue-ui-carousel-table-CDjAjc4b.js} +108 -108
  117. package/dist/{vue-ui-chestnut-B0xezYHS.js → vue-ui-chestnut-d6GxjfcP.js} +86 -86
  118. package/dist/vue-ui-chord-BuConnPN.js +1345 -0
  119. package/dist/vue-ui-circle-pack-CmxANHap.js +1633 -0
  120. package/dist/{vue-ui-cursor-JXCd2JAw.js → vue-ui-cursor-CQcnZYBv.js} +3 -3
  121. package/dist/{vue-ui-dag-D42c5rJN.js → vue-ui-dag-DKUZN-aQ.js} +923 -885
  122. package/dist/{vue-ui-dashboard-9-9eUWEy.js → vue-ui-dashboard-ciI4wMe6.js} +69 -69
  123. package/dist/{vue-ui-digits-CCkSVNpz.js → vue-ui-digits-DWf1vzYE.js} +3 -3
  124. package/dist/{vue-ui-donut-BnVCS9Ll.js → vue-ui-donut-CvCViwSI.js} +64 -64
  125. package/dist/vue-ui-donut-DZTtuFAG.js +2413 -0
  126. package/dist/{vue-ui-donut-evolution-CgjBE6EG.js → vue-ui-donut-evolution-BvZX3Gi8.js} +347 -347
  127. package/dist/{vue-ui-dumbbell-CVX2tGDU.js → vue-ui-dumbbell-BZywCpHd.js} +233 -236
  128. package/dist/vue-ui-flow-D5jcKr_S.js +1214 -0
  129. package/dist/vue-ui-funnel-7zX5QnQx.js +747 -0
  130. package/dist/{vue-ui-galaxy-CThLjvdQ.js → vue-ui-galaxy-BuGd-Ojm.js} +323 -325
  131. package/dist/vue-ui-gauge-BlDQIpBk.js +932 -0
  132. package/dist/{vue-ui-geo-DwNCnH_W.js → vue-ui-geo-PWGZw4Un.js} +34 -34
  133. package/dist/{vue-ui-gizmo-BkQUnPvN.js → vue-ui-gizmo-CTxB3PAl.js} +10 -10
  134. package/dist/{vue-ui-heatmap-COX6rafn.js → vue-ui-heatmap-sFF5IbM8.js} +472 -472
  135. package/dist/{vue-ui-hill-7BisXEYH.js → vue-ui-hill-DO3r2s-i.js} +10 -10
  136. package/dist/vue-ui-history-plot-Cj-Olvhn.js +1695 -0
  137. package/dist/vue-ui-horizontal-bar-B34aYuDZ.js +1708 -0
  138. package/dist/{vue-ui-kpi-R9bl7je_.js → vue-ui-kpi-Co6y1YlE.js} +3 -3
  139. package/dist/{vue-ui-mini-loader-SNMKnmMa.js → vue-ui-mini-loader-BVSIAFYi.js} +2 -2
  140. package/dist/{vue-ui-molecule-CNtY2_yF.js → vue-ui-molecule-ERAB4YzZ.js} +157 -163
  141. package/dist/{vue-ui-mood-radar-DUxhOQpR.js → vue-ui-mood-radar-BPp7L6OP.js} +302 -304
  142. package/dist/{vue-ui-nested-donuts-Bbub_wCe.js → vue-ui-nested-donuts-CX5ut2yp.js} +110 -113
  143. package/dist/vue-ui-onion-CWYJTUCq.js +1233 -0
  144. package/dist/vue-ui-parallel-coordinate-plot-DJrV-dVt.js +1430 -0
  145. package/dist/{vue-ui-quadrant-CFvonilu.js → vue-ui-quadrant-wj8Up03L.js} +32 -32
  146. package/dist/{vue-ui-quick-chart-iEJt6333.js → vue-ui-quick-chart-CPYdScHL.js} +153 -153
  147. package/dist/{vue-ui-radar-ClZ_OIr5.js → vue-ui-radar-D3gLQcI5.js} +41 -41
  148. package/dist/{vue-ui-rating-BnXrMeGg.js → vue-ui-rating-dBCk6ECe.js} +26 -26
  149. package/dist/vue-ui-relation-circle-DeNBOPjz.js +903 -0
  150. package/dist/vue-ui-ridgeline-DQcZJ_hv.js +1614 -0
  151. package/dist/vue-ui-rings-CF9NfFW2.js +1250 -0
  152. package/dist/vue-ui-scatter-U_xxKOte.js +2403 -0
  153. package/dist/{vue-ui-skeleton-Drk48XZi.js → vue-ui-skeleton-GA4wzjXV.js} +3 -3
  154. package/dist/{vue-ui-smiley-BQuXRW4o.js → vue-ui-smiley-D1pW2Fdy.js} +23 -23
  155. package/dist/{vue-ui-spark-trend-CYcS6-FN.js → vue-ui-spark-trend-BXRGMn5-.js} +23 -23
  156. package/dist/{vue-ui-sparkbar-eqLrT50j.js → vue-ui-sparkbar-96D0eR-o.js} +24 -24
  157. package/dist/{vue-ui-sparkgauge-C_b1h4DY.js → vue-ui-sparkgauge-BWBek2u2.js} +61 -61
  158. package/dist/{vue-ui-sparkhistogram-BzJr83-i.js → vue-ui-sparkhistogram-Cqs068RX.js} +15 -15
  159. package/dist/vue-ui-sparkline-B8cyY_P1.js +1584 -0
  160. package/dist/{vue-ui-sparkstackbar-O6Ojc2m8.js → vue-ui-sparkstackbar-C0BkLc2b.js} +207 -207
  161. package/dist/vue-ui-stackbar-DtsOc7B_.js +2332 -0
  162. package/dist/{vue-ui-stackline-D7d_Yqid.js → vue-ui-stackline-MSs0pdhE.js} +751 -747
  163. package/dist/{vue-ui-strip-plot-AljSBqsw.js → vue-ui-strip-plot-Df-TomML.js} +63 -66
  164. package/dist/vue-ui-table-BKSRQGVK.js +1352 -0
  165. package/dist/{vue-ui-table-heatmap-DRABMw2H.js → vue-ui-table-heatmap-CglQqfWH.js} +84 -84
  166. package/dist/{vue-ui-table-sparkline-OScDr7Z5.js → vue-ui-table-sparkline-B7Dh-fN2.js} +11 -11
  167. package/dist/vue-ui-thermometer-DXuLn8NC.js +756 -0
  168. package/dist/{vue-ui-timer--q-f8RPJ.js → vue-ui-timer-orCjVwS4.js} +12 -12
  169. package/dist/{vue-ui-tiremarks-B2Fji5g0.js → vue-ui-tiremarks-DNoQ6Fl2.js} +12 -12
  170. package/dist/{vue-ui-treemap-CHqCU3Mt.js → vue-ui-treemap-90_Clj0e.js} +51 -54
  171. package/dist/vue-ui-waffle-BSQXyJ1S.js +1610 -0
  172. package/dist/{vue-ui-wheel-Dz2QzZcJ.js → vue-ui-wheel-CfU0Nnn0.js} +28 -28
  173. package/dist/{vue-ui-word-cloud-DBp8kZ4A.js → vue-ui-word-cloud-AgMvmPlI.js} +38 -41
  174. package/dist/{vue-ui-world-DbYSOiC4.js → vue-ui-world-D0Z9B6M2.js} +120 -123
  175. package/dist/{vue-ui-xy-C23skZ-G.js → vue-ui-xy-5Te2TfRK.js} +1645 -1641
  176. package/dist/vue-ui-xy-canvas-BHpBO5dS.js +1823 -0
  177. package/dist/{vue-ui-xy-CrHCmWhv.js → vue-ui-xy-ua_mFu_a.js} +99 -99
  178. package/package.json +1 -1
  179. package/dist/exposedLib-C0DPCgFj.js +0 -28
  180. package/dist/vue-ui-bullet-GgRg9sbN.js +0 -700
  181. package/dist/vue-ui-chord-eOIKOfDO.js +0 -1345
  182. package/dist/vue-ui-circle-pack-kCN1R-pw.js +0 -1636
  183. package/dist/vue-ui-donut-HrEXYDqO.js +0 -2415
  184. package/dist/vue-ui-flow-R-fW_EeT.js +0 -1217
  185. package/dist/vue-ui-funnel-CT3ixpCM.js +0 -750
  186. package/dist/vue-ui-gauge-DRXsVxYq.js +0 -932
  187. package/dist/vue-ui-history-plot-Bn_M0AFg.js +0 -1698
  188. package/dist/vue-ui-horizontal-bar-CkRRidx3.js +0 -1708
  189. package/dist/vue-ui-onion-Bix9MN3w.js +0 -1233
  190. package/dist/vue-ui-parallel-coordinate-plot-6SI2vJOo.js +0 -1430
  191. package/dist/vue-ui-relation-circle-CZ68uWhc.js +0 -903
  192. package/dist/vue-ui-ridgeline-BSiPLA08.js +0 -1614
  193. package/dist/vue-ui-rings-mGN_bpo1.js +0 -1252
  194. package/dist/vue-ui-scatter-C0PouRMY.js +0 -2403
  195. package/dist/vue-ui-sparkline-CyJKVGYw.js +0 -1584
  196. package/dist/vue-ui-stackbar-J5QzbBaA.js +0 -2328
  197. package/dist/vue-ui-table-CBdCPS2r.js +0 -1352
  198. package/dist/vue-ui-thermometer-DWmM_Hn9.js +0 -756
  199. package/dist/vue-ui-waffle-C1ksX6OD.js +0 -1612
  200. package/dist/vue-ui-xy-canvas-B-KxaFGF.js +0 -1819
@@ -1,32 +1,32 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, Bt as n, D as r, Gt as i, Jt as a, Kt as o, M as s, Ot as c, P as l, Pt as u, S as d, St as f, V as p, Wt as m, X as h, _ as g, b as _, c as ee, ct as te, dt as ne, i as v, jt as re, ot as ie, pt as ae, q as oe, t as se, tt as ce, v as le, w as ue, xt as de, z as fe } from "./lib-Bttd6u5E.js";
3
- import { n as pe, t as me } from "./useHints-Dq_w2E8B.js";
4
- import { n as he, r as ge, t as _e } from "./useTimeLabels-d2f-W1L4.js";
5
- import { t as ve } from "./useConfig-DwdGsXTx.js";
6
- import { t as ye } from "./usePrinter-DN5bYhTG.js";
7
- import { n as be, t as xe } from "./BaseScanner-DZvpgOjM.js";
8
- import { t as Se } from "./useNestedProp-vPNvh7rV.js";
9
- import { t as Ce } from "./useThemeCheck-C43Tcqmk.js";
10
- import { t as we } from "./useChartExport-DNiwdPmb.js";
11
- import { t as Te } from "./useTransitions-g_zBREk2.js";
12
- import { t as Ee } from "./useStableElementSize-C7KADDKj.js";
13
- import { t as De } from "./useTimeLabelCollider-AEcY4Ioe.js";
14
- import { t as Oe } from "./img-Bnokohej.js";
15
- import { n as ke } from "./Title-BE3qg9xl.js";
16
- import { t as Ae } from "./Shape-C21CMlWS.js";
17
- import { t as je } from "./_plugin-vue_export-helper-B3ysoDQm.js";
18
- import { l as Me, t as Ne } from "./useResponsive-ZtArZtUf.js";
19
- import { t as Pe } from "./DefGrad-DVBqDjhO.js";
20
- import { t as Fe } from "./SlicerPreview-wUw1hFwe.js";
21
- import { t as Ie } from "./BaseLegendToggle-DZVucLnv.js";
22
- import { t as Le } from "./A11yDataTable-DdRsVULz.js";
23
- import { t as Re } from "./useUserOptionState-DK-_1ddE.js";
24
- import { t as ze } from "./useChartAccessibility-DYqac8yF.js";
25
- import { t as Be } from "./Legend-CQxUgOd-.js";
26
- import { t as Ve } from "./vue_ui_stackline-DQqKPA9z.js";
27
- import { Fragment as y, Teleport as He, computed as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createSlots as Ue, createTextVNode as We, createVNode as Ge, defineAsyncComponent as Ke, guardReactiveProps as T, mergeProps as qe, nextTick as Je, normalizeClass as E, normalizeProps as D, normalizeStyle as Ye, onBeforeUnmount as Xe, onMounted as Ze, openBlock as O, ref as k, renderList as A, renderSlot as j, resolveDynamicComponent as Qe, shallowRef as $e, toDisplayString as M, toRefs as et, unref as N, useSlots as tt, watch as nt, watchEffect as rt, withCtx as P } from "vue";
2
+ import { $ as t, At as n, Ct as r, D as i, Ht as a, It as o, Jt as s, Kt as c, M as l, Nt as u, P as d, S as f, St as p, V as m, X as h, Xt as g, _, b as v, c as ee, ft as te, i as y, lt as ne, mt as re, nt as ie, q as ae, qt as oe, st as se, t as ce, v as le, w as ue, z as de } from "./lib-Dqr_-I6Y.js";
3
+ import { n as fe, t as pe } from "./useHints-Dq_w2E8B.js";
4
+ import { n as me, r as he, t as ge } from "./useTimeLabels-d2f-W1L4.js";
5
+ import { t as _e } from "./useConfig-DwdGsXTx.js";
6
+ import { t as ve } from "./usePrinter-CEiH1b6R.js";
7
+ import { n as ye, t as be } from "./BaseScanner-DZvpgOjM.js";
8
+ import { t as xe } from "./useNestedProp-CulPqtou.js";
9
+ import { t as Se } from "./useThemeCheck-C43Tcqmk.js";
10
+ import { t as Ce } from "./useChartExport-DNiwdPmb.js";
11
+ import { t as we } from "./useTransitions-g_zBREk2.js";
12
+ import { t as Te } from "./useStableElementSize-C7KADDKj.js";
13
+ import { t as Ee } from "./useTimeLabelCollider-AEcY4Ioe.js";
14
+ import { t as De } from "./img-Bkzj3lDD.js";
15
+ import { n as Oe } from "./Title-CaVA8EIw.js";
16
+ import { t as ke } from "./Shape-BAL5bQmA.js";
17
+ import { t as Ae } from "./_plugin-vue_export-helper-B3ysoDQm.js";
18
+ import { l as je, t as Me } from "./useResponsive-ZtArZtUf.js";
19
+ import { t as Ne } from "./DefGrad-DVBqDjhO.js";
20
+ import { t as Pe } from "./SlicerPreview-BRRyc1p7.js";
21
+ import { t as Fe } from "./BaseLegendToggle-CtEdLr4R.js";
22
+ import { t as Ie } from "./A11yDataTable-DdRsVULz.js";
23
+ import { t as Le } from "./useUserOptionState-DK-_1ddE.js";
24
+ import { t as Re } from "./useChartAccessibility-DYqac8yF.js";
25
+ import { t as ze } from "./Legend-BJtY2RA9.js";
26
+ import { t as Be } from "./vue_ui_stackline-DQqKPA9z.js";
27
+ import { Fragment as b, Teleport as Ve, computed as x, createBlock as S, createCommentVNode as C, createElementBlock as w, createElementVNode as T, createSlots as He, createTextVNode as Ue, createVNode as We, defineAsyncComponent as Ge, guardReactiveProps as E, mergeProps as Ke, nextTick as qe, normalizeClass as Je, normalizeProps as D, normalizeStyle as Ye, onBeforeUnmount as Xe, onMounted as Ze, openBlock as O, ref as k, renderList as A, renderSlot as j, resolveDynamicComponent as Qe, shallowRef as $e, toDisplayString as M, toRefs as et, unref as N, useSlots as tt, watch as nt, watchEffect as rt, withCtx as P } from "vue";
28
28
  //#region src/components/vue-ui-stackline.vue
29
- var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st = ["id"], ct = { style: { position: "relative" } }, lt = [
29
+ var it = /* @__PURE__ */ e({ default: () => Ht }), at = ["id"], ot = ["id"], st = ["id"], ct = { style: { position: "relative" } }, lt = [
30
30
  "aria-describedby",
31
31
  "xmlns",
32
32
  "viewBox"
@@ -157,7 +157,7 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
157
157
  }, It = {
158
158
  key: 5,
159
159
  class: "vue-data-ui-watermark"
160
- }, Lt = ["onClick"], Rt = ["innerHTML"], zt = ["innerHTML"], Bt = ["id"], Vt = /*#__PURE__*/ je({
160
+ }, Lt = ["onClick"], Rt = { key: 0 }, zt = { key: 1 }, Bt = ["innerHTML"], Vt = ["id"], Ht = /*#__PURE__*/ Ae({
161
161
  __name: "vue-ui-stackline",
162
162
  props: {
163
163
  config: {
@@ -184,55 +184,55 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
184
184
  "selectX",
185
185
  "copyAlt"
186
186
  ],
187
- setup(e, { expose: je, emit: it }) {
188
- let Vt = Ke(() => import("./Tooltip-DhjyfHwz.js")), Ht = Ke(() => import("./BaseIcon-BfndwIWE.js").then((e) => e.n)), Ut = Ke(() => import("./vue-ui-accordion-CLU_su1P.js").then((e) => e.n)), Wt = Ke(() => import("./DataTable-BbKgJ5UI.js")), Gt = Ke(() => import("./PenAndPaper-C0UZ74fa.js").then((e) => e.t)), Kt = Ke(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), qt = Ke(() => import("./PackageVersion-B629oKuX.js").then((e) => e.t)), Jt = Ke(() => import("./BaseDraggableDialog-LoqqwRtV.js").then((e) => e.n)), { vue_ui_stackline: Yt } = ve(), { isThemeValid: Xt, warnInvalidTheme: Zt } = Ce(), Qt = tt(), F = e, $t = it, en = b({
187
+ setup(e, { expose: Ae, emit: it }) {
188
+ let Ht = Ge(() => import("./Tooltip-CVxJe3UW.js")), Ut = Ge(() => import("./BaseIcon-BbElSC8_.js").then((e) => e.n)), Wt = Ge(() => import("./vue-ui-accordion-C6L7glHU.js").then((e) => e.n)), Gt = Ge(() => import("./DataTable-CmyEubtT.js")), Kt = Ge(() => import("./PenAndPaper-CIa1F5Jq.js").then((e) => e.t)), qt = Ge(() => import("./UserOptions-WH7-49V0.js").then((e) => e.n)), Jt = Ge(() => import("./PackageVersion-C0b7KAMa.js").then((e) => e.t)), Yt = Ge(() => import("./BaseDraggableDialog-Dr_Q6Yt5.js").then((e) => e.n)), { vue_ui_stackline: Xt } = _e(), { isThemeValid: Zt, warnInvalidTheme: Qt } = Se(), $t = tt(), F = e, en = it, tn = x({
189
189
  get() {
190
190
  return !!F.dataset && F.dataset.length;
191
191
  },
192
192
  set(e) {
193
193
  return e;
194
194
  }
195
- }), tn = k(null), I = k(oe()), nn = k(!1), L = k([]), rn = k(0), an = k(null), on = k(null), sn = k(null), cn = k(null), ln = k(null), un = k(!1), dn = k(!1), fn = k(0), pn = k(0), mn = k(0), hn = k(!1), gn = k(null), _n = k(null), vn = k(!1), yn = k(null), bn = k(null), xn = k(null), Sn = k(null), Cn = k(null), wn = $e(null), Tn = k(!1), En = k(0), Dn = k(0), R = k(null), On = k({
195
+ }), nn = k(null), I = k(ae()), rn = k(!1), L = k([]), an = k(0), on = k(null), sn = k(null), cn = k(null), ln = k(null), un = k(null), dn = k(!1), fn = k(!1), pn = k(0), mn = k(0), hn = k(0), gn = k(!1), _n = k(null), vn = k(null), yn = k(!1), bn = k(null), xn = k(null), Sn = k(null), Cn = k(null), wn = k(null), Tn = $e(null), En = k(!1), Dn = k(0), On = k(0), R = k(null), kn = k({
196
196
  x: 0,
197
197
  y: 0
198
- }), kn = k("pointer"), An = Ee({
199
- elementRef: wn,
198
+ }), An = k("pointer"), jn = Te({
199
+ elementRef: Tn,
200
200
  minimumWidth: 2,
201
201
  minimumHeight: 2,
202
202
  stableFramesRequired: 2,
203
203
  once: !1,
204
204
  onSizeAccepted: () => {
205
- Nn();
205
+ Pn();
206
206
  }
207
207
  });
208
- function jn() {
209
- wn.value = tn.value?.parentNode ?? null;
210
- }
211
208
  function Mn() {
209
+ Tn.value = nn.value?.parentNode ?? null;
210
+ }
211
+ function Nn() {
212
212
  return new Promise((e) => {
213
213
  requestAnimationFrame(() => {
214
214
  requestAnimationFrame(e);
215
215
  });
216
216
  });
217
217
  }
218
- async function Nn() {
219
- let e = ++Dn.value;
220
- Tn.value = !1, await Je(), await Mn(), await Mn(), e === Dn.value && (En.value += 1, Tn.value = !0);
218
+ async function Pn() {
219
+ let e = ++On.value;
220
+ En.value = !1, await qe(), await Nn(), await Nn(), e === On.value && (Dn.value += 1, En.value = !0);
221
221
  }
222
- let Pn = k(null), Fn = k(!1);
223
- function In() {
224
- Fn.value = !Fn.value;
222
+ let Fn = k(null), In = k(!1);
223
+ function Ln() {
224
+ In.value = !In.value;
225
225
  }
226
226
  Ze(() => {
227
- jn(), An.start(), hn.value = !0, or(), Nn();
227
+ Mn(), jn.start(), gn.value = !0, cr(), Pn();
228
228
  });
229
- let z = k(qn());
230
- pe({
229
+ let z = k(Yn());
230
+ fe({
231
231
  config: () => z.value,
232
232
  dataset: () => F.dataset,
233
233
  component: "VueUiStackline",
234
234
  rules: [
235
- me.emptyArray,
235
+ pe.emptyArray,
236
236
  {
237
237
  test: (e) => e.some((e) => e.series.length > 200),
238
238
  message: [
@@ -255,10 +255,10 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
255
255
  }
256
256
  ]
257
257
  });
258
- let { transitionEnabled: Ln } = Te({
258
+ let { transitionEnabled: Rn } = we({
259
259
  config: () => z.value.transitions,
260
260
  dataset: () => F.dataset
261
- }), B = b(() => z.value.userOptions.useCursorPointer), Rn = b(() => a({
261
+ }), B = x(() => z.value.userOptions.useCursorPointer), zn = x(() => g({
262
262
  defaultConfig: {
263
263
  userOptions: { show: !1 },
264
264
  useCssAnimation: !1,
@@ -304,13 +304,13 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
304
304
  } }
305
305
  },
306
306
  userConfig: z.value.skeletonConfig ?? {}
307
- })), { loading: zn, FINAL_DATASET: Bn, manualLoading: Vn } = be({
307
+ })), { loading: Bn, FINAL_DATASET: Vn, manualLoading: Hn } = ye({
308
308
  ...et(F),
309
309
  FINAL_CONFIG: z,
310
- prepareConfig: qn,
310
+ prepareConfig: Yn,
311
311
  callback: () => {
312
312
  Promise.resolve().then(async () => {
313
- (!z.value.style.chart.zoom.keepState || !Qr.value || q.value.start === 0 && q.value.end === 0) && await ei();
313
+ (!z.value.style.chart.zoom.keepState || !$r.value || K.value.start === 0 && K.value.end === 0) && await ti();
314
314
  });
315
315
  },
316
316
  skeletonDataset: F.config?.skeletonDataset ?? [{
@@ -344,71 +344,71 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
344
344
  ],
345
345
  color: "#CACACA"
346
346
  }],
347
- skeletonConfig: a({
347
+ skeletonConfig: g({
348
348
  defaultConfig: z.value,
349
- userConfig: Rn.value
349
+ userConfig: zn.value
350
350
  })
351
- }), { userOptionsVisible: Hn, setUserOptionsVisibility: Un, keepUserOptionState: Wn } = Re({ config: z.value }), { svgRef: V } = ze({ config: z.value.style.chart.title });
352
- function Gn() {
353
- vn.value = !0, Un(!0);
351
+ }), { userOptionsVisible: Un, setUserOptionsVisibility: Wn, keepUserOptionState: Gn } = Le({ config: z.value }), { svgRef: Kn } = Re({ config: z.value.style.chart.title });
352
+ function qn() {
353
+ yn.value = !0, Wn(!0);
354
354
  }
355
- function Kn() {
356
- Un(!1), vn.value = !1, R.value = null, kn.value = "pointer", nn.value = !1, $.value = null, $t("selectX", {
355
+ function Jn() {
356
+ Wn(!1), yn.value = !1, R.value = null, An.value = "pointer", rn.value = !1, $.value = null, en("selectX", {
357
357
  index: null,
358
358
  indexLabel: null,
359
359
  dataset: null
360
360
  });
361
361
  }
362
- function qn() {
363
- let e = Se({
362
+ function Yn() {
363
+ let e = xe({
364
364
  userConfig: F.config,
365
- defaultConfig: Yt
365
+ defaultConfig: Xt
366
366
  }), t = {}, n = e.theme;
367
- if (n) if (!Xt.value(e)) Zt(e), t = e;
367
+ if (n) if (!Zt.value(e)) Qt(e), t = e;
368
368
  else {
369
- let r = Se({
370
- userConfig: Ve[n] || F.config,
369
+ let r = xe({
370
+ userConfig: Be[n] || F.config,
371
371
  defaultConfig: e
372
372
  });
373
373
  t = {
374
- ...Se({
374
+ ...xe({
375
375
  userConfig: F.config,
376
376
  defaultConfig: r
377
377
  }),
378
- customPalette: e.customPalette.length ? e.customPalette : o[n] || u
378
+ customPalette: e.customPalette.length ? e.customPalette : s[n] || o
379
379
  };
380
380
  }
381
381
  else t = e;
382
382
  return t;
383
383
  }
384
- let Jn = b(() => z.value.style.chart.lines.dataLabels.hideUnderValue !== null), Yn = b(() => z.value.style.chart.lines.dataLabels.hideUnderPercentage !== null);
384
+ let Xn = x(() => z.value.style.chart.lines.dataLabels.hideUnderValue !== null), Zn = x(() => z.value.style.chart.lines.dataLabels.hideUnderPercentage !== null);
385
385
  nt(() => F.config, (e) => {
386
- zn.value || (z.value = qn()), Hn.value = !z.value.userOptions.showOnChartHover, or({ resetSlicer: !z.value.style.chart.zoom.keepState }), fn.value += 1, pn.value += 1, mn.value += 1, H.value.dataLabels.show = z.value.style.chart.lines.dataLabels.show, H.value.showTable = z.value.table.show, H.value.showTooltip = z.value.style.chart.tooltip.show, U.value.width = z.value.style.chart.width, U.value.height = z.value.style.chart.height, U.value.paddingRatio = {
386
+ Bn.value || (z.value = Yn()), Un.value = !z.value.userOptions.showOnChartHover, cr({ resetSlicer: !z.value.style.chart.zoom.keepState }), pn.value += 1, mn.value += 1, hn.value += 1, V.value.dataLabels.show = z.value.style.chart.lines.dataLabels.show, V.value.showTable = z.value.table.show, V.value.showTooltip = z.value.style.chart.tooltip.show, H.value.width = z.value.style.chart.width, H.value.height = z.value.style.chart.height, H.value.paddingRatio = {
387
387
  top: z.value.style.chart.padding.top / z.value.style.chart.height,
388
388
  right: z.value.style.chart.padding.right / z.value.style.chart.width,
389
389
  bottom: z.value.style.chart.padding.bottom / z.value.style.chart.height,
390
390
  left: z.value.style.chart.padding.left / z.value.style.chart.width
391
- }, jn(), Nn(), !z.value.style.chart.zoom.keepState || !Qr.value || q.value.start === 0 && q.value.end === 0 ? ei() : Sr();
391
+ }, Mn(), Pn(), !z.value.style.chart.zoom.keepState || !$r.value || K.value.start === 0 && K.value.end === 0 ? ti() : wr();
392
392
  }, { deep: !0 }), nt(() => F.dataset, (e) => {
393
- Array.isArray(e) && e.length > 0 && (Vn.value = !1), z.value.style.chart.zoom.keepState ? Sr() : Tr(), jn(), Nn();
393
+ Array.isArray(e) && e.length > 0 && (Hn.value = !1), z.value.style.chart.zoom.keepState ? wr() : Dr(), Mn(), Pn();
394
394
  }, { deep: !0 });
395
- let H = k({
395
+ let V = k({
396
396
  dataLabels: { show: z.value.style.chart.lines.dataLabels.show },
397
397
  showTable: z.value.table.show,
398
398
  showTooltip: z.value.style.chart.tooltip.show
399
399
  });
400
400
  nt(z, () => {
401
- H.value = {
401
+ V.value = {
402
402
  dataLabels: { show: z.value.style.chart.lines.dataLabels.show },
403
403
  showTable: z.value.table.show,
404
404
  showTooltip: z.value.style.chart.tooltip.show
405
405
  };
406
406
  }, { immediate: !0 });
407
- let { isPrinting: Xn, isImaging: Zn, generatePdf: Qn, generateImage: $n } = ye({
407
+ let { isPrinting: Qn, isImaging: $n, generatePdf: er, generateImage: tr } = ve({
408
408
  elementId: `stackline_${I.value}`,
409
409
  fileName: z.value.style.chart.title.text || "vue-ui-stackline",
410
410
  options: z.value.userOptions.print
411
- }), er = b(() => z.value.userOptions.show && !z.value.style.chart.title.text), U = k({
411
+ }), nr = x(() => z.value.userOptions.show && !z.value.style.chart.title.text), H = k({
412
412
  width: z.value.style.chart.width,
413
413
  height: z.value.style.chart.height,
414
414
  paddingRatio: {
@@ -417,107 +417,107 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
417
417
  bottom: z.value.style.chart.padding.bottom / z.value.style.chart.height,
418
418
  left: z.value.style.chart.padding.left / z.value.style.chart.width
419
419
  }
420
- }), tr = b(() => ue(z.value.customPalette)), nr = $e(null), rr = $e(null), ir = k(null), ar = b(() => z.value.debug);
421
- function or({ resetSlicer: e = !0 } = {}) {
422
- if (re(F.dataset) ? (ce({
420
+ }), rr = x(() => ue(z.value.customPalette)), ir = $e(null), ar = $e(null), or = k(null), sr = x(() => z.value.debug);
421
+ function cr({ resetSlicer: e = !0 } = {}) {
422
+ if (u(F.dataset) ? (ie({
423
423
  componentName: "VueUiStackline",
424
424
  type: "dataset",
425
- debug: ar.value
426
- }), Vn.value = !0) : F.dataset.forEach((e, t) => {
427
- ae({
425
+ debug: sr.value
426
+ }), Hn.value = !0) : F.dataset.forEach((e, t) => {
427
+ re({
428
428
  datasetObject: e,
429
429
  requiredAttributes: ["name", "series"]
430
430
  }).forEach((e) => {
431
- en.value = !1, ce({
431
+ tn.value = !1, ie({
432
432
  componentName: "VueUiStackline",
433
433
  type: "datasetSerieAttribute",
434
434
  property: e,
435
435
  index: t,
436
- debug: ar.value
437
- }), Vn.value = !0;
436
+ debug: sr.value
437
+ }), Hn.value = !0;
438
438
  });
439
- }), re(F.dataset) || (Vn.value = z.value.loading), setTimeout(() => {
440
- dn.value = !0;
439
+ }), u(F.dataset) || (Hn.value = z.value.loading), setTimeout(() => {
440
+ fn.value = !0;
441
441
  }, 10), z.value.responsive) {
442
- let e = Me(() => {
443
- dn.value = !1;
444
- let { width: e, height: t } = Ne({
445
- chart: tn.value,
446
- noTitle: cn.value,
447
- title: z.value.style.chart.title.text ? an.value : null,
448
- legend: z.value.style.chart.legend.show ? on.value : null,
449
- slicer: z.value.style.chart.zoom.show && K.value > 6 ? sn.value.$el : null,
450
- source: ln.value
442
+ let e = je(() => {
443
+ fn.value = !1;
444
+ let { width: e, height: t } = Me({
445
+ chart: nn.value,
446
+ noTitle: ln.value,
447
+ title: z.value.style.chart.title.text ? on.value : null,
448
+ legend: z.value.style.chart.legend.show ? sn.value : null,
449
+ slicer: z.value.style.chart.zoom.show && G.value > 6 ? cn.value.$el : null,
450
+ source: un.value
451
451
  });
452
452
  requestAnimationFrame(() => {
453
- U.value.width = e, U.value.height = t - 12, clearTimeout(ir.value), ir.value = setTimeout(() => {
454
- dn.value = !0;
453
+ H.value.width = e, H.value.height = t - 12, clearTimeout(or.value), or.value = setTimeout(() => {
454
+ fn.value = !0;
455
455
  }, 10);
456
456
  });
457
457
  });
458
- nr.value && (rr.value && nr.value.unobserve(rr.value), nr.value.disconnect()), nr.value = new ResizeObserver(e), rr.value = tn.value.parentNode, nr.value.observe(rr.value);
458
+ ir.value && (ar.value && ir.value.unobserve(ar.value), ir.value.disconnect()), ir.value = new ResizeObserver(e), ar.value = nn.value.parentNode, ir.value.observe(ar.value);
459
459
  }
460
- e && ei();
460
+ e && ti();
461
461
  }
462
462
  Xe(() => {
463
- An.stop(), nr.value && (rr.value && nr.value.unobserve(rr.value), nr.value.disconnect());
463
+ jn.stop(), ir.value && (ar.value && ir.value.unobserve(ar.value), ir.value.disconnect());
464
464
  });
465
- let sr = b(() => z.value.style.chart.grid.y.position === "right");
466
- function cr() {
465
+ let lr = x(() => z.value.style.chart.grid.y.position === "right");
466
+ function ur() {
467
467
  let e = 0;
468
- xn.value && (e = Array.from(xn.value.querySelectorAll("text")).reduce((e, t) => {
468
+ Sn.value && (e = Array.from(Sn.value.querySelectorAll("text")).reduce((e, t) => {
469
469
  let n = t.getComputedTextLength();
470
470
  return n > e ? n : e;
471
471
  }, 0));
472
- let t = bn.value ? bn.value.getBoundingClientRect().width + z.value.style.chart.grid.y.axisName.fontSize + z.value.style.chart.grid.y.axisName.offsetX : 0;
472
+ let t = xn.value ? xn.value.getBoundingClientRect().width + z.value.style.chart.grid.y.axisName.fontSize + z.value.style.chart.grid.y.axisName.offsetX : 0;
473
473
  return {
474
- left: sr.value ? 0 : e + t,
475
- right: sr.value ? e + t : 0,
474
+ left: lr.value ? 0 : e + t,
475
+ right: lr.value ? e + t : 0,
476
476
  scaleLabelsWidth: e,
477
477
  yAxisLabelWidth: t
478
478
  };
479
479
  }
480
- let lr = k(0), ur = k(0), dr = k(0);
481
- function fr() {
482
- let e = Sn.value;
480
+ let dr = k(0), fr = k(0), pr = k(0);
481
+ function mr() {
482
+ let e = Cn.value;
483
483
  if (!e) {
484
- ur.value = 0;
484
+ fr.value = 0;
485
485
  return;
486
486
  }
487
487
  try {
488
488
  let t = e.getBBox();
489
- ur.value = Number.isFinite(t?.height) ? t.height : 0;
489
+ fr.value = Number.isFinite(t?.height) ? t.height : 0;
490
490
  } catch {
491
- ur.value = 0;
491
+ fr.value = 0;
492
492
  }
493
493
  }
494
- function pr() {
495
- dr.value && cancelAnimationFrame(dr.value), dr.value = requestAnimationFrame(() => {
494
+ function hr() {
495
+ pr.value && cancelAnimationFrame(pr.value), pr.value = requestAnimationFrame(() => {
496
496
  requestAnimationFrame(() => {
497
- fr();
497
+ mr();
498
498
  });
499
499
  });
500
500
  }
501
501
  Xe(() => {
502
- dr.value && cancelAnimationFrame(dr.value), ur.value = 0, lr.value = 0;
502
+ pr.value && cancelAnimationFrame(pr.value), fr.value = 0, dr.value = 0;
503
503
  });
504
- let mr = b(() => {
504
+ let gr = x(() => {
505
505
  let e = 0;
506
- if (yn.value) try {
507
- e = yn.value.getBBox().height;
506
+ if (bn.value) try {
507
+ e = bn.value.getBBox().height;
508
508
  } catch {
509
509
  e = 0;
510
510
  }
511
- let t = z.value.style.chart.grid.x.timeLabels.show ? ur.value : 0;
511
+ let t = z.value.style.chart.grid.x.timeLabels.show ? fr.value : 0;
512
512
  return e + t;
513
- }), W = b(() => {
514
- En.value;
515
- let { height: e, width: t } = U.value, { right: n } = U.value.paddingRatio, r = z.value.style.chart.lines.totalValues.show && F.dataset && F.dataset.length > 1 ? z.value.style.chart.lines.totalValues.fontSize * 1.3 : 0, i = 0, a = 0, o = 0, s = 0;
513
+ }), U = x(() => {
514
+ Dn.value;
515
+ let { height: e, width: t } = H.value, { right: n } = H.value.paddingRatio, r = z.value.style.chart.lines.totalValues.show && F.dataset && F.dataset.length > 1 ? z.value.style.chart.lines.totalValues.fontSize * 1.3 : 0, i = 0, a = 0, o = 0, s = 0;
516
516
  if (z.value.style.chart.grid.y.axisLabels.show) {
517
- let e = cr();
517
+ let e = ur();
518
518
  i = e.left, a = e.right, o = e.scaleLabelsWidth, s = e.yAxisLabelWidth;
519
519
  }
520
- let c = z.value.style.chart.padding.top + r, l = t - t * n - lr.value - a, u = e - z.value.style.chart.padding.bottom - mr.value - r, d = z.value.style.chart.padding.left + i, f = t - d - t * n - lr.value - a, p = e - c - z.value.style.chart.padding.bottom - mr.value - r;
520
+ let c = z.value.style.chart.padding.top + r, l = t - t * n - dr.value - a, u = e - z.value.style.chart.padding.bottom - gr.value - r, d = z.value.style.chart.padding.left + i, f = t - d - t * n - dr.value - a, p = e - c - z.value.style.chart.padding.bottom - gr.value - r;
521
521
  return {
522
522
  chartHeight: Math.max(0, e),
523
523
  chartWidth: Math.max(0, t),
@@ -532,8 +532,8 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
532
532
  scaleLabelsWidth: o,
533
533
  yAxisLabelWidth: s
534
534
  };
535
- }), hr = b(() => {
536
- let { left: e, top: t, width: n, height: r } = W.value, i = q.value.start, a = q.value.end, o = Math.max(1, a - i), s = Math.max(0, Math.min(o, (J.value.start ?? i) - i)), c = Math.max(0, Math.min(o, (J.value.end ?? a) - i)), l = Math.max(0, c - s), u = {
535
+ }), _r = x(() => {
536
+ let { left: e, top: t, width: n, height: r } = U.value, i = K.value.start, a = K.value.end, o = Math.max(1, a - i), s = Math.max(0, Math.min(o, (q.value.start ?? i) - i)), c = Math.max(0, Math.min(o, (q.value.end ?? a) - i)), l = Math.max(0, c - s), u = {
537
537
  fill: z.value.style.chart.zoom.preview.fill,
538
538
  stroke: z.value.style.chart.zoom.preview.stroke,
539
539
  "stroke-width": z.value.style.chart.zoom.preview.strokeWidth,
@@ -553,8 +553,8 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
553
553
  height: r,
554
554
  ...u
555
555
  };
556
- }), G = b(() => Bn.value.map((e, t) => {
557
- let n = oe(), r = d(e.color) || tr.value[t] || u[t] || u[t % u.length];
556
+ }), W = x(() => Vn.value.map((e, t) => {
557
+ let n = ae(), r = f(e.color) || rr.value[t] || o[t] || o[t % o.length];
558
558
  return {
559
559
  ...e,
560
560
  shape: e.shape || "circle",
@@ -566,66 +566,66 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
566
566
  id: n,
567
567
  color: r
568
568
  };
569
- })), gr = b(() => G.value.filter((e) => !L.value.includes(e.id) && !e.standalone)), _r = b(() => G.value.filter((e) => !L.value.includes(e.id) && e.standalone)), K = b(() => {
570
- let e = Math.max(...G.value.filter((e) => !L.value.includes(e.id)).map((e) => e.series.length));
571
- return isFinite(e) ? e : Math.max(...G.value.map((e) => e.series.length));
569
+ })), vr = x(() => W.value.filter((e) => !L.value.includes(e.id) && !e.standalone)), yr = x(() => W.value.filter((e) => !L.value.includes(e.id) && e.standalone)), G = x(() => {
570
+ let e = Math.max(...W.value.filter((e) => !L.value.includes(e.id)).map((e) => e.series.length));
571
+ return isFinite(e) ? e : Math.max(...W.value.map((e) => e.series.length));
572
572
  });
573
- function vr(e) {
574
- Pn.value = e;
573
+ function br(e) {
574
+ Fn.value = e;
575
575
  }
576
- let q = k({
576
+ let K = k({
577
577
  start: 0,
578
- end: Math.max(...Bn.value.map((e) => e.series.length))
579
- }), J = k({
578
+ end: Math.max(...Vn.value.map((e) => e.series.length))
579
+ }), q = k({
580
580
  start: 0,
581
- end: Math.max(...Bn.value.map((e) => e.series.length))
581
+ end: Math.max(...Vn.value.map((e) => e.series.length))
582
582
  });
583
- function yr(e) {
584
- return (q.value.start ?? 0) + (e ?? 0);
585
- }
586
- let br = b(() => z.value.style.chart.zoom.preview.enable && (J.value.start !== q.value.start || J.value.end !== q.value.end));
587
- function xr(e, t) {
588
- J.value[e] = t;
583
+ function xr(e) {
584
+ return (K.value.start ?? 0) + (e ?? 0);
589
585
  }
590
- function Sr() {
591
- let e = K.value, t = Math.max(0, Math.min(q.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(q.value.end ?? e, e));
592
- (!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), q.value.start = t, q.value.end = n, J.value.start = t, J.value.end = n, sn.value && (sn.value.setStartValue(t), sn.value.setEndValue(n));
586
+ let Sr = x(() => z.value.style.chart.zoom.preview.enable && (q.value.start !== K.value.start || q.value.end !== K.value.end));
587
+ function Cr(e, t) {
588
+ q.value[e] = t;
593
589
  }
594
- let Cr = k(null);
595
590
  function wr() {
591
+ let e = G.value, t = Math.max(0, Math.min(K.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(K.value.end ?? e, e));
592
+ (!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), K.value.start = t, K.value.end = n, q.value.start = t, q.value.end = n, cn.value && (cn.value.setStartValue(t), cn.value.setEndValue(n));
593
+ }
594
+ let Tr = k(null);
595
+ function Er() {
596
596
  return new Promise((e) => requestAnimationFrame(() => requestAnimationFrame(() => e())));
597
597
  }
598
598
  Xe(() => {
599
- Cr.value && cancelAnimationFrame(Cr.value);
599
+ Tr.value && cancelAnimationFrame(Tr.value);
600
600
  });
601
- async function Tr({ force: e = !1 } = {}) {
602
- if (z.value.style.chart.zoom.keepState && !e && Qr.value && (q.value.start !== 0 || q.value.end !== 0)) {
603
- Sr();
601
+ async function Dr({ force: e = !1 } = {}) {
602
+ if (z.value.style.chart.zoom.keepState && !e && $r.value && (K.value.start !== 0 || K.value.end !== 0)) {
603
+ wr();
604
604
  return;
605
605
  }
606
- ei(), await Je(), Cr.value && cancelAnimationFrame(Cr.value), Cr.value = requestAnimationFrame(async () => {
607
- await wr(), ei();
606
+ ti(), await qe(), Tr.value && cancelAnimationFrame(Tr.value), Tr.value = requestAnimationFrame(async () => {
607
+ await Er(), ti();
608
608
  });
609
609
  }
610
- let Er = b(() => Math.max(0, W.value.width / (q.value.end - q.value.start))), Dr = b(() => m(gr.value.map((e) => ({
610
+ let Or = x(() => Math.max(0, U.value.width / (K.value.end - K.value.start))), kr = x(() => c(vr.value.map((e) => ({
611
611
  ...e,
612
612
  series: e.series.map((e) => e ?? 0)
613
- }))).slice(q.value.start, q.value.end)), Or = b(() => L.value.length === G.value.length), kr = b(() => {
613
+ }))).slice(K.value.start, K.value.end)), Ar = x(() => L.value.length === W.value.length), jr = x(() => {
614
614
  if (!z.value.style.chart.zoom.minimap.show) return [];
615
- let e = G.value.filter((e) => Or.value ? !0 : !L.value.includes(e.id) && !e.standalone);
616
- if (e.length) return m(e.map((e) => ({
615
+ let e = W.value.filter((e) => Ar.value ? !0 : !L.value.includes(e.id) && !e.standalone);
616
+ if (e.length) return c(e.map((e) => ({
617
617
  ...e,
618
618
  series: (e.series || []).map((e) => e ?? 0)
619
619
  })));
620
- let t = _r.value;
620
+ let t = yr.value;
621
621
  if (!t.length) return [];
622
622
  let n = Math.max(...t.map((e) => e.series.length || 0));
623
623
  return Array.from({ length: n }, (e, n) => t.reduce((e, t) => e + Math.abs(t.series[n] ?? 0), 0));
624
- }), Ar = b(() => {
624
+ }), Mr = x(() => {
625
625
  if (!z.value.style.chart.zoom.minimap.show) return [];
626
- let e = G.value.filter((e) => Or.value ? !0 : !L.value.includes(e.id) && !e.standalone), t = _r.value, n = e.length ? [{
626
+ let e = W.value.filter((e) => Ar.value ? !0 : !L.value.includes(e.id) && !e.standalone), t = yr.value, n = e.length ? [{
627
627
  name: "",
628
- series: kr.value,
628
+ series: jr.value,
629
629
  color: "#000000",
630
630
  isVisible: !0
631
631
  }] : [], r = t.map((e) => ({
@@ -635,45 +635,45 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
635
635
  isVisible: !0
636
636
  }));
637
637
  return n.concat(r);
638
- }), jr = b(() => m(gr.value.filter((e) => !L.value.includes(e.id)).map((e) => ({
638
+ }), Nr = x(() => c(vr.value.filter((e) => !L.value.includes(e.id)).map((e) => ({
639
639
  ...e,
640
640
  series: e.series.map((t, n) => {
641
641
  let r = t ?? 0;
642
642
  return e.signedSeries[n] === -1 && r >= 0 ? -r : r;
643
643
  })
644
- }))).slice(q.value.start, q.value.end)), Mr = b(() => {
645
- let e = gr.value.filter((e) => !L.value.includes(e.id));
644
+ }))).slice(K.value.start, K.value.end)), Pr = x(() => {
645
+ let e = vr.value.filter((e) => !L.value.includes(e.id));
646
646
  return {
647
- positive: m(e.map((e) => ({
647
+ positive: c(e.map((e) => ({
648
648
  ...e,
649
- series: e.series.slice(q.value.start, q.value.end).map((e) => (e ?? 0) >= 0 ? e ?? 0 : 0)
649
+ series: e.series.slice(K.value.start, K.value.end).map((e) => (e ?? 0) >= 0 ? e ?? 0 : 0)
650
650
  }))),
651
- negative: m(e.map((e) => ({
651
+ negative: c(e.map((e) => ({
652
652
  ...e,
653
- series: e.series.slice(q.value.start, q.value.end).map((e) => (e ?? 0) < 0 ? e ?? 0 : 0)
653
+ series: e.series.slice(K.value.start, K.value.end).map((e) => (e ?? 0) < 0 ? e ?? 0 : 0)
654
654
  })))
655
655
  };
656
- }), Nr = b(() => {
657
- let e = Math.max(0, q.value.end - q.value.start), t = Array(e).fill(0), n = Array(e).fill(0);
658
- return _r.value.forEach((r) => {
656
+ }), Fr = x(() => {
657
+ let e = Math.max(0, K.value.end - K.value.start), t = Array(e).fill(0), n = Array(e).fill(0);
658
+ return yr.value.forEach((r) => {
659
659
  for (let i = 0; i < e; i += 1) {
660
- let e = r.series[q.value.start + i] ?? 0;
660
+ let e = r.series[K.value.start + i] ?? 0;
661
661
  e > 0 && (t[i] = Math.max(t[i], e)), e < 0 && (n[i] = Math.min(n[i], e));
662
662
  }
663
663
  }), {
664
664
  positive: t,
665
665
  negative: n
666
666
  };
667
- }), Pr = b(() => jr.value.map((e, t) => ({
667
+ }), Ir = x(() => Nr.value.map((e, t) => ({
668
668
  value: e,
669
669
  sign: e >= 0 ? 1 : -1
670
670
  })));
671
- function Fr() {
672
- return { y0: Lr.value?.[0]?.zero ?? W.value.bottom };
671
+ function Lr() {
672
+ return { y0: zr.value?.[0]?.zero ?? U.value.bottom };
673
673
  }
674
- function Ir(e) {
675
- let { y0: t } = Fr(), n = z.value.style.chart.lines.totalValues, r = Math.max(2, n.fontSize * 1.3 + n.offsetY), i = (e) => Math.min(Math.max(e, W.value.top - z.value.style.chart.lines.totalValues.fontSize * 1.3), W.value.bottom + z.value.style.chart.lines.totalValues.fontSize * 2);
676
- if ((Pr.value?.[e]?.value ?? 0) >= 0 || z.value.style.chart.lines.distributed) {
674
+ function Rr(e) {
675
+ let { y0: t } = Lr(), n = z.value.style.chart.lines.totalValues, r = Math.max(2, n.fontSize * 1.3 + n.offsetY), i = (e) => Math.min(Math.max(e, U.value.top - z.value.style.chart.lines.totalValues.fontSize * 1.3), U.value.bottom + z.value.style.chart.lines.totalValues.fontSize * 2);
676
+ if ((Ir.value?.[e]?.value ?? 0) >= 0 || z.value.style.chart.lines.distributed) {
677
677
  let n = Infinity;
678
678
  for (let t of Y.value || []) {
679
679
  let r = t?.series?.[e], i = t?.topY?.[e];
@@ -690,97 +690,97 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
690
690
  return i((Number.isFinite(a) ? a : t) + r + n.fontSize * .7 + z.value.style.chart.lines.totalValues.offsetY);
691
691
  }
692
692
  }
693
- let Lr = b(() => {
694
- let e = Math.max(...Mr.value.positive, 0), t = Math.min(...Mr.value.negative, 0), n = Math.max(...Nr.value.positive, 0), r = Math.min(...Nr.value.negative, 0), i = Math.max(e, n), a = Math.min(t, r), o = [
693
+ let zr = x(() => {
694
+ let e = Math.max(...Pr.value.positive, 0), t = Math.min(...Pr.value.negative, 0), n = Math.max(...Fr.value.positive, 0), r = Math.min(...Fr.value.negative, 0), i = Math.max(e, n), a = Math.min(t, r), o = [
695
695
  -Infinity,
696
696
  Infinity,
697
697
  NaN,
698
698
  void 0,
699
699
  null
700
- ].includes(a) ? 0 : a, s = z.value.style.chart.grid.scale.scaleMin, c = z.value.style.chart.grid.scale.scaleMax, l = !z.value.style.chart.lines.distributed && (s !== null || c !== null), u = s !== null && !z.value.style.chart.lines.distributed ? s : o > 0 ? 0 : o, d = c !== null && !z.value.style.chart.lines.distributed ? c : i < 0 ? 0 : i, f = l ? le(u, d, z.value.style.chart.grid.scale.ticks) : g(u, d, z.value.style.chart.grid.scale.ticks), p = Math.abs(Number(f.min) || 0), m = (Number(f.max) || 0) + p, h = m === 0 || !Number.isFinite(m) ? 1 : m, _ = Array.isArray(f.ticks) && f.ticks.length ? f.ticks : [0], ee = W.value.bottom - W.value.height * (p / h);
701
- return _.map((e) => {
702
- let t = Number(e) || 0, n = W.value.bottom - W.value.height * ((t + p) / h);
700
+ ].includes(a) ? 0 : a, s = z.value.style.chart.grid.scale.scaleMin, c = z.value.style.chart.grid.scale.scaleMax, l = !z.value.style.chart.lines.distributed && (s !== null || c !== null), u = s !== null && !z.value.style.chart.lines.distributed ? s : o > 0 ? 0 : o, d = c !== null && !z.value.style.chart.lines.distributed ? c : i < 0 ? 0 : i, f = l ? le(u, d, z.value.style.chart.grid.scale.ticks) : _(u, d, z.value.style.chart.grid.scale.ticks), p = Math.abs(Number(f.min) || 0), m = (Number(f.max) || 0) + p, h = m === 0 || !Number.isFinite(m) ? 1 : m, g = Array.isArray(f.ticks) && f.ticks.length ? f.ticks : [0], v = U.value.bottom - U.value.height * (p / h);
701
+ return g.map((e) => {
702
+ let t = Number(e) || 0, n = U.value.bottom - U.value.height * ((t + p) / h);
703
703
  return {
704
- zero: ee,
704
+ zero: v,
705
705
  y: n,
706
- x: sr.value ? X.value.right + 8 : X.value.left - 8,
706
+ x: lr.value ? X.value.right + 8 : X.value.left - 8,
707
707
  value: t
708
708
  };
709
709
  });
710
- }), Rr = k([]), zr = k([]), Br = 0;
710
+ }), J = k([]), Br = k([]), Vr = 0;
711
711
  rt(() => {
712
- let e = ++Br;
712
+ let e = ++Vr;
713
713
  (async () => {
714
- let t = await _e({
714
+ let t = await ge({
715
715
  values: z.value.style.chart.grid.x.timeLabels.values,
716
- maxDatapoints: K.value,
716
+ maxDatapoints: G.value,
717
717
  formatter: z.value.style.chart.grid.x.timeLabels.datetimeFormatter,
718
- start: q.value.start,
719
- end: q.value.end
718
+ start: K.value.start,
719
+ end: K.value.end
720
720
  });
721
- e === Br && (Rr.value = t);
721
+ e === Vr && (J.value = t);
722
722
  })();
723
723
  });
724
- let Vr = 0;
724
+ let Hr = 0;
725
725
  rt(() => {
726
- let e = ++Vr;
726
+ let e = ++Hr;
727
727
  (async () => {
728
- let t = await _e({
728
+ let t = await ge({
729
729
  values: z.value.style.chart.grid.x.timeLabels.values,
730
- maxDatapoints: K.value,
730
+ maxDatapoints: G.value,
731
731
  formatter: z.value.style.chart.grid.x.timeLabels.datetimeFormatter,
732
732
  start: 0,
733
- end: K.value
733
+ end: G.value
734
734
  });
735
- e === Vr && (zr.value = t);
735
+ e === Hr && (Br.value = t);
736
736
  })();
737
737
  });
738
- let Hr = b(() => {
738
+ let Ur = x(() => {
739
739
  let e = z.value.style.chart.grid.x.timeLabels.modulo;
740
- return Rr.value.length ? Math.min(e, [...new Set(Rr.value.map((e) => e.text))].length) : e;
741
- }), Ur = b(() => {
742
- let e = z.value.style.chart.grid.x.timeLabels, t = Rr.value || [], n = zr.value || [], r = q.value.start ?? 0, i = $.value, a = K.value, o = t.map((e) => e?.text ?? ""), s = n.map((e) => e?.text ?? "");
743
- return ee(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, Hr.value || 1), o, s, r, i, a);
740
+ return J.value.length ? Math.min(e, [...new Set(J.value.map((e) => e.text))].length) : e;
741
+ }), Wr = x(() => {
742
+ let e = z.value.style.chart.grid.x.timeLabels, t = J.value || [], n = Br.value || [], r = K.value.start ?? 0, i = $.value, a = G.value, o = t.map((e) => e?.text ?? ""), s = n.map((e) => e?.text ?? "");
743
+ return ee(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, Ur.value || 1), o, s, r, i, a);
744
744
  });
745
745
  rt(() => {
746
- z.value.style.chart.grid.x.timeLabels.show, z.value.style.chart.grid.x.timeLabels.fontSize, z.value.style.chart.grid.x.timeLabels.rotation, z.value.style.chart.grid.x.timeLabels.offsetY, (Ur.value || []).map((e) => e?.text ?? "").join("|"), U.value.width, U.value.height, Sn.value, yn.value, pr();
746
+ z.value.style.chart.grid.x.timeLabels.show, z.value.style.chart.grid.x.timeLabels.fontSize, z.value.style.chart.grid.x.timeLabels.rotation, z.value.style.chart.grid.x.timeLabels.offsetY, (Wr.value || []).map((e) => e?.text ?? "").join("|"), H.value.width, H.value.height, Cn.value, bn.value, hr();
747
747
  }, { flush: "post" });
748
- let Wr = k({
748
+ let Gr = k({
749
749
  months: [],
750
750
  shortMonths: [],
751
751
  days: [],
752
752
  shortDays: []
753
- }), Gr = 0;
753
+ }), Kr = 0;
754
754
  rt(() => {
755
- let e = ++Gr, t = z.value.style.chart.grid.x.timeLabels.datetimeFormatter;
755
+ let e = ++Kr, t = z.value.style.chart.grid.x.timeLabels.datetimeFormatter;
756
756
  (async () => {
757
- let n = await ge(t.locale).catch(() => ge("en"));
758
- e === Gr && (Wr.value = n.data);
757
+ let n = await he(t.locale).catch(() => he("en"));
758
+ e === Kr && (Gr.value = n.data);
759
759
  })();
760
760
  });
761
- let Kr = b(() => {
762
- let e = z.value.style.chart.grid.x.timeLabels.datetimeFormatter, t = he({
761
+ let qr = x(() => {
762
+ let e = z.value.style.chart.grid.x.timeLabels.datetimeFormatter, t = me({
763
763
  useUTC: e.useUTC,
764
- locale: Wr.value,
764
+ locale: Gr.value,
765
765
  januaryAsYear: e.januaryAsYear
766
766
  });
767
767
  return (e, n) => {
768
768
  let r = z.value.style.chart.grid.x.timeLabels.values?.[e];
769
769
  return r == null ? "" : t.formatDate(new Date(r), n);
770
770
  };
771
- }), qr = b(() => (z.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
772
- text: Kr.value(t, z.value.style.chart.zoom.timeFormat),
771
+ }), Jr = x(() => (z.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
772
+ text: qr.value(t, z.value.style.chart.zoom.timeFormat),
773
773
  absoluteIndex: t
774
- }))), Jr = b(() => (z.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
775
- text: Kr.value(t, z.value.style.chart.tooltip.timeFormat),
774
+ }))), Yr = x(() => (z.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
775
+ text: qr.value(t, z.value.style.chart.tooltip.timeFormat),
776
776
  absoluteIndex: t
777
- }))), Yr = b(() => {
778
- if (!en.value && !zn.value) return [];
779
- let e = W.value.height, t = Lr.value[0] ? Lr.value[0].zero : W.value.bottom, n = q.value.start ?? 0, r = q.value.end ?? 0, i = Math.max(1, r - n), a = Math.max(...Mr.value.positive, 0), o = Math.min(...Mr.value.negative, 0), s = Math.max(...Nr.value.positive, 0), c = Math.min(...Nr.value.negative, 0), l = Math.max(a, s), u = Math.min(o, c), { min: d, max: f } = !z.value.style.chart.lines.distributed && (z.value.style.chart.grid.scale.scaleMax !== null || z.value.style.chart.grid.scale.scaleMin !== null) ? le(z.value.style.chart.grid.scale.scaleMin === null ? u > 0 ? 0 : u : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? l < 0 ? 0 : l : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks) : g(z.value.style.chart.grid.scale.scaleMin === null ? u > 0 ? 0 : u : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? l < 0 ? 0 : l : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks), p = f + (d >= 0 ? 0 : Math.abs(d)) || 1, m = Array(i).fill(0), h = Array(i).fill(0), _ = (e) => i <= 1 ? W.value.left + W.value.width / 2 : W.value.left + e / (i - 1) * W.value.width;
780
- return G.value.filter((e) => !L.value.includes(e.id)).map((r) => {
777
+ }))), Xr = x(() => {
778
+ if (!tn.value && !Bn.value) return [];
779
+ let e = U.value.height, t = zr.value[0] ? zr.value[0].zero : U.value.bottom, n = K.value.start ?? 0, r = K.value.end ?? 0, i = Math.max(1, r - n), a = Math.max(...Pr.value.positive, 0), o = Math.min(...Pr.value.negative, 0), s = Math.max(...Fr.value.positive, 0), c = Math.min(...Fr.value.negative, 0), l = Math.max(a, s), u = Math.min(o, c), { min: d, max: f } = !z.value.style.chart.lines.distributed && (z.value.style.chart.grid.scale.scaleMax !== null || z.value.style.chart.grid.scale.scaleMin !== null) ? le(z.value.style.chart.grid.scale.scaleMin === null ? u > 0 ? 0 : u : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? l < 0 ? 0 : l : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks) : _(z.value.style.chart.grid.scale.scaleMin === null ? u > 0 ? 0 : u : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? l < 0 ? 0 : l : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks), p = f + (d >= 0 ? 0 : Math.abs(d)) || 1, m = Array(i).fill(0), h = Array(i).fill(0), g = (e) => i <= 1 ? U.value.left + U.value.width / 2 : U.value.left + e / (i - 1) * U.value.width;
780
+ return W.value.filter((e) => !L.value.includes(e.id)).map((r) => {
781
781
  let a = [], o = [], s = [], c = Array(i).fill(null), l = Array(i).fill(null);
782
782
  for (let u = 0; u < i; u += 1) {
783
- let i = n + u, d = r.series?.[i], f = r.signedSeries?.[i], g = d == null || Number.isNaN(d) ? 0 : d, _ = r.standalone ? g / p : z.value.style.chart.lines.distributed ? g / (Dr.value[u] || 1) : g / p;
783
+ let i = n + u, d = r.series?.[i], f = r.signedSeries?.[i], g = d == null || Number.isNaN(d) ? 0 : d, _ = r.standalone ? g / p : z.value.style.chart.lines.distributed ? g / (kr.value[u] || 1) : g / p;
784
784
  if (g >= 0) {
785
785
  let n = e * Math.abs(_);
786
786
  if (r.standalone) c[u] = t, l[u] = t - n;
@@ -799,14 +799,14 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
799
799
  a.push(u), o.push(g), s.push(f ?? (g >= 0 ? 1 : -1));
800
800
  }
801
801
  let u = a.map((e) => ({
802
- x: _(e),
802
+ x: g(e),
803
803
  y: l[e]
804
- })), d = u.map((e) => e.x), f = o.reduce((e, t) => e + Math.abs(t || 0), 0), g = f === 0 ? 1 : f, ee = o.map((e, t) => {
804
+ })), d = u.map((e) => e.x), f = o.reduce((e, t) => e + Math.abs(t || 0), 0), _ = f === 0 ? 1 : f, v = o.map((e, t) => {
805
805
  if (z.value.style.chart.lines.distributed && !r.standalone) {
806
- let n = a[t], r = Dr.value[n] || 1;
806
+ let n = a[t], r = kr.value[n] || 1;
807
807
  return (e || 0) / r;
808
808
  }
809
- return (e || 0) / g;
809
+ return (e || 0) / _;
810
810
  });
811
811
  return {
812
812
  ...r,
@@ -816,26 +816,26 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
816
816
  topY: a.map((e) => l[e]),
817
817
  series: o,
818
818
  signedSeries: s,
819
- proportions: ee,
819
+ proportions: v,
820
820
  rel: a,
821
821
  fullSeries: Array.isArray(r.fullSeries) ? r.fullSeries : r.series
822
822
  };
823
823
  });
824
- }), Y = b(() => {
825
- let e = (e) => typeof e == "string" ? e.replace(/^M\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*,?\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*/i, "").trim() : "", t = Math.max(...Mr.value.positive, 0), n = Math.min(...Mr.value.negative, 0), r = Math.max(...Nr.value.positive, 0), i = Math.min(...Nr.value.negative, 0), a = Math.max(t, r), o = Math.min(n, i), s = !z.value.style.chart.lines.distributed && (z.value.style.chart.grid.scale.scaleMax !== null || z.value.style.chart.grid.scale.scaleMin !== null) ? le(z.value.style.chart.grid.scale.scaleMin === null ? o > 0 ? 0 : o : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? a < 0 ? 0 : a : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks) : g(z.value.style.chart.grid.scale.scaleMin === null ? o > 0 ? 0 : o : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? a < 0 ? 0 : a : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks), c = Number(s.min) || 0, u = Number(s.max) || 0, d = Math.abs(c), f = u + d || 1, m = (e) => {
824
+ }), Y = x(() => {
825
+ let e = (e) => typeof e == "string" ? e.replace(/^M\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*,?\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*/i, "").trim() : "", t = Math.max(...Pr.value.positive, 0), n = Math.min(...Pr.value.negative, 0), r = Math.max(...Fr.value.positive, 0), i = Math.min(...Fr.value.negative, 0), a = Math.max(t, r), o = Math.min(n, i), s = !z.value.style.chart.lines.distributed && (z.value.style.chart.grid.scale.scaleMax !== null || z.value.style.chart.grid.scale.scaleMin !== null) ? le(z.value.style.chart.grid.scale.scaleMin === null ? o > 0 ? 0 : o : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? a < 0 ? 0 : a : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks) : _(z.value.style.chart.grid.scale.scaleMin === null ? o > 0 ? 0 : o : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? a < 0 ? 0 : a : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks), c = Number(s.min) || 0, l = Number(s.max) || 0, u = Math.abs(c), f = l + u || 1, p = (e) => {
826
826
  if (z.value.style.chart.lines.distributed) {
827
827
  let t = Math.max(0, Math.min(1, e));
828
828
  return minimapH - minimapH * t;
829
829
  }
830
- return clampY(minimapH - minimapH * (((e ?? 0) + d) / f));
830
+ return clampY(minimapH - minimapH * (((e ?? 0) + u) / f));
831
831
  };
832
- return Yr.value.map((t) => {
832
+ return Xr.value.map((t) => {
833
833
  let n = t.x.length, r = Array.isArray(t.fullSeries) ? t.fullSeries : t.series, i = ({ left: e = 0, unitW: t }) => {
834
834
  let n = r.length;
835
835
  return !Number.isFinite(t) || t <= 0 || n <= 0 ? [] : n === 1 ? [e + t * .5] : r.map((n, r) => e + r * t);
836
- }, a = ({ minimapH: e }) => !Number.isFinite(e) || e <= 0 ? [] : r.map((t) => m(t || 0, e)), o = ({ minimapH: e }) => {
836
+ }, a = ({ minimapH: e }) => !Number.isFinite(e) || e <= 0 ? [] : r.map((t) => p(t || 0, e)), o = ({ minimapH: e }) => {
837
837
  if (!Number.isFinite(e) || e <= 0) return [];
838
- let t = m(0, e);
838
+ let t = p(0, e);
839
839
  return r.map(() => t);
840
840
  };
841
841
  if (n === 0) return {
@@ -855,10 +855,10 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
855
855
  })), c = t.x.map((e, n) => ({
856
856
  x: e,
857
857
  y: t.baseY[n]
858
- })), u = n >= 2 ? l(s) : `M${s[0].x},${s[0].y}`, d = n >= 2 ? p(s) : `M${s[0].x},${s[0].y}`, f = n >= 2 ? `M${e(u)}` : u, h = n >= 2 ? `M${e(d)}` : d, g = "", _ = "";
858
+ })), l = n >= 2 ? d(s) : `M${s[0].x},${s[0].y}`, u = n >= 2 ? m(s) : `M${s[0].x},${s[0].y}`, f = n >= 2 ? `M${e(l)}` : l, h = n >= 2 ? `M${e(u)}` : u, g = "", _ = "";
859
859
  if (z.value.style.chart.lines.useArea && n >= 2) {
860
- let t = l([...c].reverse()), n = p([...c].reverse()), r = c[c.length - 1];
861
- g = `M${s[0].x},${s[0].y} ${e(u)} L${r.x},${r.y} ${e(t)} Z`, _ = `M${s[0].x},${s[0].y} ${e(d)} L${r.x},${r.y} ${e(n)} Z`;
860
+ let t = d([...c].reverse()), n = m([...c].reverse()), r = c[c.length - 1];
861
+ g = `M${s[0].x},${s[0].y} ${e(l)} L${r.x},${r.y} ${e(t)} Z`, _ = `M${s[0].x},${s[0].y} ${e(u)} L${r.x},${r.y} ${e(n)} Z`;
862
862
  }
863
863
  return {
864
864
  ...t,
@@ -872,48 +872,48 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
872
872
  yMinimapBase: o
873
873
  };
874
874
  });
875
- }), Xr = b(() => $.value === null || $.value === void 0 ? null : {
876
- timeLabel: _i($.value),
877
- absoluteIndex: $.value + q.value.start,
875
+ }), Zr = x(() => $.value === null || $.value === void 0 ? null : {
876
+ timeLabel: vi($.value),
877
+ absoluteIndex: $.value + K.value.start,
878
878
  seriesIndex: $.value,
879
- datapoint: gi.value,
879
+ datapoint: _i.value,
880
880
  series: Y.value,
881
881
  config: z.value
882
- }), Zr = k(!1), Qr = k(!1);
883
- function $r(e) {
884
- let t = K.value;
885
- return e > t ? t : e < 0 || e < q.value.start ? z.value.style.chart.zoom.startIndex === null ? 1 : q.value.start + 1 : e;
882
+ }), Qr = k(!1), $r = k(!1);
883
+ function ei(e) {
884
+ let t = G.value;
885
+ return e > t ? t : e < 0 || e < K.value.start ? z.value.style.chart.zoom.startIndex === null ? 1 : K.value.start + 1 : e;
886
886
  }
887
- function ei() {
888
- if (!Zr.value) {
889
- Zr.value = !0;
887
+ function ti() {
888
+ if (!Qr.value) {
889
+ Qr.value = !0;
890
890
  try {
891
- let { startIndex: e, endIndex: t, keepState: n } = z.value.style.chart.zoom, r = n ? Math.max(0, K.value) : K.value;
891
+ let { startIndex: e, endIndex: t, keepState: n } = z.value.style.chart.zoom, r = n ? Math.max(0, G.value) : G.value;
892
892
  if (n && r <= 0) return;
893
- let i = e ?? 0, a = t == null ? r : Math.min($r(t + 1), r);
894
- ii.value = !0, q.value.start = i, q.value.end = a, J.value.start = i, J.value.end = a, Sr(), Qr.value = !0;
893
+ let i = e ?? 0, a = t == null ? r : Math.min(ei(t + 1), r);
894
+ ai.value = !0, K.value.start = i, K.value.end = a, q.value.start = i, q.value.end = a, wr(), $r.value = !0;
895
895
  } finally {
896
896
  queueMicrotask(() => {
897
- ii.value = !1;
898
- }), Zr.value = !1;
897
+ ai.value = !1;
898
+ }), Qr.value = !1;
899
899
  }
900
900
  }
901
901
  }
902
- function ti(e) {
903
- Zr.value || ii.value || e !== q.value.start && (q.value.start = e, J.value.start = e, Sr());
904
- }
905
902
  function ni(e) {
906
- if (Zr.value || ii.value) return;
907
- let t = $r(e);
908
- t !== q.value.end && (q.value.end = t, J.value.end = t, Sr());
903
+ Qr.value || ai.value || e !== K.value.start && (K.value.start = e, q.value.start = e, wr());
904
+ }
905
+ function ri(e) {
906
+ if (Qr.value || ai.value) return;
907
+ let t = ei(e);
908
+ t !== K.value.end && (K.value.end = t, q.value.end = t, wr());
909
909
  }
910
- let X = b(() => ({
911
- left: W.value.left,
912
- right: W.value.right,
913
- width: W.value.width
914
- })), ri = b(() => {
910
+ let X = x(() => ({
911
+ left: U.value.left,
912
+ right: U.value.right,
913
+ width: U.value.width
914
+ })), ii = x(() => {
915
915
  let e = z.value.style.chart.grid.y.axisLabels, { prefix: t, suffix: n } = z.value.style.chart.lines.dataLabels;
916
- return Lr.value.map((r) => String(v(e.formatter, r.value, h({
916
+ return zr.value.map((r) => String(y(e.formatter, r.value, h({
917
917
  p: t,
918
918
  v: r.value,
919
919
  s: n,
@@ -921,19 +921,19 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
921
921
  }), { datapoint: r }) ?? "")).join("|");
922
922
  });
923
923
  nt([
924
- ri,
924
+ ii,
925
925
  () => z.value.style.chart.grid.y.axisLabels.show,
926
926
  () => z.value.style.chart.grid.y.axisLabels.fontSize,
927
927
  () => z.value.style.chart.grid.y.axisLabels.bold,
928
928
  () => z.value.style.chart.grid.y.position
929
929
  ], () => {
930
- z.value.style.chart.grid.y.axisLabels.show && Nn();
930
+ z.value.style.chart.grid.y.axisLabels.show && Pn();
931
931
  }, { flush: "post" });
932
- let ii = k(!1), ai = b(() => U.value.width), oi = b(() => U.value.height);
933
- De({
934
- timeLabelsEls: Sn,
935
- timeLabels: Rr,
936
- slicer: q,
932
+ let ai = k(!1), oi = x(() => H.value.width), si = x(() => H.value.height);
933
+ Ee({
934
+ timeLabelsEls: Cn,
935
+ timeLabels: J,
936
+ slicer: K,
937
937
  configRef: z,
938
938
  rotationPath: [
939
939
  "style",
@@ -953,13 +953,13 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
953
953
  "enable"
954
954
  ],
955
955
  isAutoSize: !1,
956
- width: ai,
957
- height: oi,
956
+ width: oi,
957
+ height: si,
958
958
  rotation: z.value.style.chart.grid.x.timeLabels.autoRotate.angle
959
959
  });
960
- let si = k(null);
961
- function ci(e) {
962
- let t = V.value;
960
+ let ci = k(null);
961
+ function li(e) {
962
+ let t = Kn.value;
963
963
  if (!t) return null;
964
964
  if (t.createSVGPoint && t.getScreenCTM) {
965
965
  let n = t.createSVGPoint();
@@ -986,58 +986,58 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
986
986
  ok: !0
987
987
  };
988
988
  }
989
- let li = 0, Z = b(() => Math.max(1, q.value.end - q.value.start)), ui = b(() => Z.value > 1 ? W.value.width / (Z.value - 1) : 0);
989
+ let ui = 0, Z = x(() => Math.max(1, K.value.end - K.value.start)), di = x(() => Z.value > 1 ? U.value.width / (Z.value - 1) : 0);
990
990
  function Q(e) {
991
- return Z.value <= 1 ? W.value.left + W.value.width / 2 : W.value.left + e * ui.value;
991
+ return Z.value <= 1 ? U.value.left + U.value.width / 2 : U.value.left + e * di.value;
992
992
  }
993
- function di(e) {
993
+ function fi(e) {
994
994
  if (Z.value <= 1) return {
995
- x: W.value.left,
996
- width: W.value.width
995
+ x: U.value.left,
996
+ width: U.value.width
997
997
  };
998
- let t = e === 0 ? W.value.left : (Q(e - 1) + Q(e)) / 2, n = e === Z.value - 1 ? W.value.left + W.value.width : (Q(e) + Q(e + 1)) / 2;
998
+ let t = e === 0 ? U.value.left : (Q(e - 1) + Q(e)) / 2, n = e === Z.value - 1 ? U.value.left + U.value.width : (Q(e) + Q(e + 1)) / 2;
999
999
  return {
1000
1000
  x: t,
1001
1001
  width: Math.max(0, n - t)
1002
1002
  };
1003
1003
  }
1004
- function fi(e) {
1005
- Fn.value || (li && cancelAnimationFrame(li), li = requestAnimationFrame(() => {
1006
- li = 0;
1007
- let t = ci(e);
1008
- if (!t || !V.value) {
1009
- hi();
1004
+ function pi(e) {
1005
+ In.value || (ui && cancelAnimationFrame(ui), ui = requestAnimationFrame(() => {
1006
+ ui = 0;
1007
+ let t = li(e);
1008
+ if (!t || !Kn.value) {
1009
+ gi();
1010
1010
  return;
1011
1011
  }
1012
- let { left: n, right: r, top: i, bottom: a } = W.value;
1012
+ let { left: n, right: r, top: i, bottom: a } = U.value;
1013
1013
  if (t.x < n || t.x > r || t.y < i || t.y > a) {
1014
- hi();
1014
+ gi();
1015
1015
  return;
1016
1016
  }
1017
1017
  let o = 0;
1018
1018
  if (Z.value > 1) {
1019
- let e = (t.x - n) / ui.value;
1019
+ let e = (t.x - n) / di.value;
1020
1020
  o = Math.round(e);
1021
1021
  } else o = 0;
1022
- o < 0 && (o = 0), o > Z.value - 1 && (o = Z.value - 1), si.value !== o && (si.value = o, yi(!0, o));
1022
+ o < 0 && (o = 0), o > Z.value - 1 && (o = Z.value - 1), ci.value !== o && (ci.value = o, bi(!0, o));
1023
1023
  }));
1024
1024
  }
1025
- function pi(e) {
1026
- let t = ci(e);
1027
- if (!t || !V.value) return;
1028
- let { left: n, right: r, top: i, bottom: a } = W.value;
1025
+ function mi(e) {
1026
+ let t = li(e);
1027
+ if (!t || !Kn.value) return;
1028
+ let { left: n, right: r, top: i, bottom: a } = U.value;
1029
1029
  if (t.x < n || t.x > r || t.y < i || t.y > a) return;
1030
1030
  let o = 0;
1031
1031
  if (Z.value > 1) {
1032
- let e = (t.x - n) / ui.value;
1032
+ let e = (t.x - n) / di.value;
1033
1033
  o = Math.round(e);
1034
1034
  } else o = 0;
1035
- o < 0 && (o = 0), o > Z.value - 1 && (o = Z.value - 1), ea({
1035
+ o < 0 && (o = 0), o > Z.value - 1 && (o = Z.value - 1), ta({
1036
1036
  seriesIndex: o,
1037
- datapoint: Ki(o)
1038
- }), mi(o);
1037
+ datapoint: qi(o)
1038
+ }), hi(o);
1039
1039
  }
1040
- function mi(e) {
1040
+ function hi(e) {
1041
1041
  let t = JSON.parse(JSON.stringify(Y.value)).map((t) => ({
1042
1042
  name: t.name,
1043
1043
  value: t.series[e] === 0 ? 0 : t.series[e] || null,
@@ -1047,15 +1047,15 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
1047
1047
  }));
1048
1048
  z.value.events.datapointClick && z.value.events.datapointClick({
1049
1049
  datapoint: t,
1050
- seriesIndex: e + q.value.start
1051
- }), $t("selectDatapoint", {
1050
+ seriesIndex: e + K.value.start
1051
+ }), en("selectDatapoint", {
1052
1052
  datapoint: t,
1053
- period: Rr.value[e]
1053
+ period: J.value[e]
1054
1054
  });
1055
1055
  }
1056
1056
  nt(() => [
1057
- q.value.start,
1058
- q.value.end,
1057
+ K.value.start,
1058
+ K.value.end,
1059
1059
  Y.value.length
1060
1060
  ], () => {
1061
1061
  let e = Z.value;
@@ -1067,11 +1067,11 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
1067
1067
  $.value < 0 && ($.value = 0), $.value > e - 1 && ($.value = e - 1);
1068
1068
  }
1069
1069
  });
1070
- function hi() {
1071
- li &&= (cancelAnimationFrame(li), 0), si.value = null, yi(!1, null);
1070
+ function gi() {
1071
+ ui &&= (cancelAnimationFrame(ui), 0), ci.value = null, bi(!1, null);
1072
1072
  }
1073
- let $ = k(null), gi = b(() => {
1074
- let e = $.value, t = e == null ? null : yr(e);
1073
+ let $ = k(null), _i = x(() => {
1074
+ let e = $.value, t = e == null ? null : xr(e);
1075
1075
  return Y.value.map((n) => ({
1076
1076
  slotAbsoluteIndex: n.absoluteIndex,
1077
1077
  shape: n.shape || "circle",
@@ -1084,40 +1084,40 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
1084
1084
  standalone: !!n.standalone
1085
1085
  }));
1086
1086
  });
1087
- function _i(e) {
1087
+ function vi(e) {
1088
1088
  if (e == null || !z.value.style.chart.tooltip.showTimeLabel) return null;
1089
- let t = Rr.value?.[e]?.text || null, n = Jr.value?.[e]?.text || null, r = zr.value?.[e]?.text || null;
1089
+ let t = J.value?.[e]?.text || null, n = Yr.value?.[e]?.text || null, r = Br.value?.[e]?.text || null;
1090
1090
  return z.value.style.chart.tooltip.useDefaultTimeFormat ? t : n || r;
1091
1091
  }
1092
- let vi = b(() => {
1093
- let e = z.value.style.chart.tooltip.customFormat, t = [...gi.value].reverse(), n = t.filter((e) => !e.standalone), r = t.filter((e) => e.standalone), i = n.map((e) => e.value).filter((e) => f(e) && e !== null).reduce((e, t) => Math.abs(e) + Math.abs(t), 0);
1094
- if (de(e) && te(() => e({
1095
- absoluteIndex: $.value + q.value.start,
1092
+ let yi = x(() => {
1093
+ let e = z.value.style.chart.tooltip.customFormat, t = [..._i.value].reverse(), n = t.filter((e) => !e.standalone), i = t.filter((e) => e.standalone), a = n.map((e) => e.value).filter((e) => r(e) && e !== null).reduce((e, t) => Math.abs(e) + Math.abs(t), 0);
1094
+ if (p(e) && ne(() => e({
1095
+ absoluteIndex: $.value + K.value.start,
1096
1096
  seriesIndex: $.value,
1097
- datapoint: gi.value,
1098
- series: G.value,
1097
+ datapoint: _i.value,
1098
+ series: W.value,
1099
1099
  config: z.value
1100
1100
  }))) return e({
1101
- absoluteIndex: $.value + q.value.start,
1101
+ absoluteIndex: $.value + K.value.start,
1102
1102
  seriesIndex: $.value,
1103
- datapoint: gi.value,
1104
- series: G.value,
1103
+ datapoint: _i.value,
1104
+ series: W.value,
1105
1105
  config: z.value
1106
1106
  });
1107
- let { showValue: a, showTotal: o, totalTranslation: c, showPercentage: l, borderColor: u, roundingValue: d, roundingPercentage: p } = z.value.style.chart.tooltip, m = (e) => !e.shape || ![
1107
+ let { showValue: o, showTotal: s, totalTranslation: c, showPercentage: u, borderColor: d, roundingValue: f, roundingPercentage: m } = z.value.style.chart.tooltip, g = (e) => !e.shape || ![
1108
1108
  "star",
1109
1109
  "triangle",
1110
1110
  "square",
1111
1111
  "diamond",
1112
1112
  "pentagon",
1113
1113
  "hexagon"
1114
- ].includes(e.shape) ? `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" fill="${e.color}" /></svg>` : e.shape === "star" ? `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><polygon stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" fill="${e.color}" points="${fe({
1114
+ ].includes(e.shape) ? `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" fill="${e.color}" /></svg>` : e.shape === "star" ? `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><polygon stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" fill="${e.color}" points="${de({
1115
1115
  plot: {
1116
1116
  x: 6,
1117
1117
  y: 6
1118
1118
  },
1119
1119
  radius: 5
1120
- })}" /></svg>` : e.shape === "triangle" ? `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><path d="${s({
1120
+ })}" /></svg>` : e.shape === "triangle" ? `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><path d="${l({
1121
1121
  plot: {
1122
1122
  x: 6,
1123
1123
  y: 6
@@ -1125,7 +1125,7 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
1125
1125
  radius: 6,
1126
1126
  sides: 3,
1127
1127
  rotation: .52
1128
- }).path}" fill="${e.color}" stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : e.shape === "square" ? `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${s({
1128
+ }).path}" fill="${e.color}" stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : e.shape === "square" ? `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${l({
1129
1129
  plot: {
1130
1130
  x: 6,
1131
1131
  y: 6
@@ -1133,7 +1133,7 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
1133
1133
  radius: 6,
1134
1134
  sides: 4,
1135
1135
  rotation: .8
1136
- }).path}" fill="${e.color}" stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : e.shape === "diamond" ? `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><path d="${s({
1136
+ }).path}" fill="${e.color}" stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : e.shape === "diamond" ? `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><path d="${l({
1137
1137
  plot: {
1138
1138
  x: 6,
1139
1139
  y: 6
@@ -1141,7 +1141,7 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
1141
1141
  radius: 5,
1142
1142
  sides: 4,
1143
1143
  rotation: 0
1144
- }).path}" fill="${e.color}" stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : e.shape === "pentagon" ? `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><path d="${s({
1144
+ }).path}" fill="${e.color}" stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : e.shape === "pentagon" ? `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><path d="${l({
1145
1145
  plot: {
1146
1146
  x: 6,
1147
1147
  y: 6
@@ -1149,7 +1149,7 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
1149
1149
  radius: 5,
1150
1150
  sides: 5,
1151
1151
  rotation: .95
1152
- }).path}" fill="${e.color}" stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><path d="${s({
1152
+ }).path}" fill="${e.color}" stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><path d="${l({
1153
1153
  plot: {
1154
1154
  x: 6,
1155
1155
  y: 6
@@ -1157,45 +1157,45 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
1157
1157
  radius: 5,
1158
1158
  sides: 6,
1159
1159
  rotation: 0
1160
- }).path}" fill="${e.color}" stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`, g = (e, t) => {
1160
+ }).path}" fill="${e.color}" stroke="${z.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`, _ = (e, t) => {
1161
1161
  let n = t ? h({
1162
- v: isNaN((e.value ?? 0) / (i || 1)) ? 0 : Math.abs(e.value ?? 0) / (i || 1) * 100,
1162
+ v: isNaN((e.value ?? 0) / (a || 1)) ? 0 : Math.abs(e.value ?? 0) / (a || 1) * 100,
1163
1163
  s: "%",
1164
- r: p
1165
- }) : "", r = a && t ? "(" : "", o = a && t ? ")" : "";
1164
+ r: m
1165
+ }) : "", r = o && t ? "(" : "", i = o && t ? ")" : "";
1166
1166
  return `
1167
1167
  <div style="display:flex;flex-direction:row;align-items:center;gap:4px">
1168
- <div style="width:20px;height:20px;display:flex;align-items:center;justify-content:center;">${m(e)}</div>
1169
- ${e.name}${a || t ? ":" : ""}
1170
- ${a ? v(z.value.style.chart.lines.dataLabels.formatter, e.sourceValue, h({
1168
+ <div style="width:20px;height:20px;display:flex;align-items:center;justify-content:center;">${g(e)}</div>
1169
+ ${e.name}${o || t ? ":" : ""}
1170
+ ${o ? y(z.value.style.chart.lines.dataLabels.formatter, e.sourceValue, h({
1171
1171
  p: z.value.style.chart.lines.dataLabels.prefix,
1172
1172
  v: e.sourceValue,
1173
1173
  s: z.value.style.chart.lines.dataLabels.suffix,
1174
- r: d
1175
- }, { datapoint: e })) : ""} ${r}${n}${o}
1174
+ r: f
1175
+ }, { datapoint: e })) : ""} ${r}${n}${i}
1176
1176
  </div>
1177
1177
  `;
1178
- }, _ = "", ee = _i($.value);
1179
- return ee && (_ += `<div style="width:100%;text-align:center;border-bottom:1px solid ${u};padding-bottom:6px;margin-bottom:3px;">${ee}</div>`), o && n.length > 1 && (_ += `<div class="vue-data-ui-tooltip-total" style="display:flex;flex-direction:row;align-items:center;gap:4px">
1178
+ }, v = "", ee = vi($.value);
1179
+ return ee && (v += `<div style="width:100%;text-align:center;border-bottom:1px solid ${d};padding-bottom:6px;margin-bottom:3px;">${ee}</div>`), s && n.length > 1 && (v += `<div class="vue-data-ui-tooltip-total" style="display:flex;flex-direction:row;align-items:center;gap:4px">
1180
1180
  <span>${c}:</span>
1181
- <span>${v(z.value.style.chart.lines.dataLabels.formatter, ie(i), h({
1181
+ <span>${y(z.value.style.chart.lines.dataLabels.formatter, se(a), h({
1182
1182
  p: z.value.style.chart.lines.dataLabels.prefix,
1183
- v: ie(i),
1183
+ v: se(a),
1184
1184
  s: z.value.style.chart.lines.dataLabels.suffix,
1185
- r: d
1185
+ r: f
1186
1186
  }), { datapoint: {
1187
1187
  name: c,
1188
- value: ie(i)
1188
+ value: se(a)
1189
1189
  } })}</span>
1190
1190
  </div>`), n.forEach((e) => {
1191
- _ += g(e, l);
1192
- }), r.length && (_ += `<div style="border-top:1px solid ${gr.value.length ? u : "transparent"}; margin:${gr.value.length ? "6px 0" : "0"};"></div>`, r.forEach((e) => {
1193
- _ += g(e, !1);
1194
- })), `<div>${_}</div>`;
1191
+ v += _(e, u);
1192
+ }), i.length && (v += `<div style="border-top:1px solid ${vr.value.length ? d : "transparent"}; margin:${vr.value.length ? "6px 0" : "0"};"></div>`, i.forEach((e) => {
1193
+ v += _(e, !1);
1194
+ })), `<div>${v}</div>`;
1195
1195
  });
1196
- function yi(e, t = null, n = "pointer") {
1197
- if (Or.value) return;
1198
- kn.value = n, nn.value = e;
1196
+ function bi(e, t = null, n = "pointer") {
1197
+ if (Ar.value) return;
1198
+ An.value = n, rn.value = e;
1199
1199
  let r = Y.value.map((e) => ({
1200
1200
  name: e.name,
1201
1201
  value: [
@@ -1205,22 +1205,22 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
1205
1205
  ].includes(e.series[t]) ? null : e.series[t],
1206
1206
  color: e.color
1207
1207
  }));
1208
- e ? (R.value = t, $.value = t, ea({
1208
+ e ? (R.value = t, $.value = t, ta({
1209
1209
  seriesIndex: t,
1210
1210
  datapoint: r
1211
1211
  }), z.value.events.datapointEnter && z.value.events.datapointEnter({
1212
1212
  datapoint: r,
1213
- seriesIndex: t + q.value.start
1214
- })) : (R.value = null, $.value = null, $t("selectX", {
1213
+ seriesIndex: t + K.value.start
1214
+ })) : (R.value = null, $.value = null, en("selectX", {
1215
1215
  index: null,
1216
1216
  indexLabel: null,
1217
1217
  dataset: null
1218
1218
  }), z.value.events.datapointLeave && z.value.events.datapointLeave({
1219
1219
  datapoint: r,
1220
- seriesIndex: t + q.value.start
1220
+ seriesIndex: t + K.value.start
1221
1221
  }));
1222
1222
  }
1223
- function bi(e, t) {
1223
+ function xi(e, t) {
1224
1224
  let n = JSON.parse(JSON.stringify(Y.value)).map((e) => ({
1225
1225
  name: e.name,
1226
1226
  value: e.series[t] === 0 ? 0 : (e.signedSeries[t] === -1 && e.series[t] >= 0 ? -e.series[t] : e.series[t]) || null,
@@ -1228,31 +1228,31 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
1228
1228
  color: e.color,
1229
1229
  id: e.id
1230
1230
  }));
1231
- $t("selectTimeLabel", {
1231
+ en("selectTimeLabel", {
1232
1232
  datapoint: n,
1233
1233
  absoluteIndex: e.absoluteIndex,
1234
1234
  label: e.text
1235
1235
  });
1236
1236
  }
1237
- function xi() {
1238
- L.value.length ? L.value = [] : Ci.value.forEach((e) => {
1237
+ function Si() {
1238
+ L.value.length ? L.value = [] : wi.value.forEach((e) => {
1239
1239
  L.value.push(e.id);
1240
- }), $t("selectLegend", Y.value);
1240
+ }), en("selectLegend", Y.value);
1241
1241
  }
1242
- function Si(e) {
1242
+ function Ci(e) {
1243
1243
  if (L.value.includes(e.id)) L.value = L.value.filter((t) => t !== e.id);
1244
1244
  else {
1245
- if (L.value.length === G.value.length - 1) return;
1245
+ if (L.value.length === W.value.length - 1) return;
1246
1246
  L.value.push(e.id);
1247
1247
  }
1248
- $t("selectLegend", Y.value);
1248
+ en("selectLegend", Y.value);
1249
1249
  }
1250
- let Ci = b(() => G.value.map((e) => ({
1250
+ let wi = x(() => W.value.map((e) => ({
1251
1251
  ...e,
1252
1252
  opacity: L.value.includes(e.id) ? .5 : 1,
1253
- segregate: () => Si(e),
1253
+ segregate: () => Ci(e),
1254
1254
  isSegregated: L.value.includes(e.id)
1255
- }))), wi = b(() => ({
1255
+ }))), Ti = x(() => ({
1256
1256
  cy: "stackline-legend",
1257
1257
  backgroundColor: z.value.style.chart.legend.backgroundColor,
1258
1258
  color: z.value.style.chart.legend.color,
@@ -1260,18 +1260,18 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
1260
1260
  paddingBottom: 12,
1261
1261
  fontWeight: z.value.style.chart.legend.bold ? "bold" : ""
1262
1262
  }));
1263
- function Ti(e) {
1264
- return G.value.length ? G.value.find((t) => t.name === e) || (ar.value && console.warn(`VueUiStackline - Series name not found "${e}"`), null) : (ar.value && console.warn("VueUiStackline - There are no series to show."), null);
1265
- }
1266
1263
  function Ei(e) {
1267
- let t = Ti(e);
1268
- t !== null && L.value.includes(t.id) && Si({ id: t.id });
1264
+ return W.value.length ? W.value.find((t) => t.name === e) || (sr.value && console.warn(`VueUiStackline - Series name not found "${e}"`), null) : (sr.value && console.warn("VueUiStackline - There are no series to show."), null);
1269
1265
  }
1270
1266
  function Di(e) {
1271
- let t = Ti(e);
1272
- t !== null && (L.value.includes(t.id) || Si({ id: t.id }));
1267
+ let t = Ei(e);
1268
+ t !== null && L.value.includes(t.id) && Ci({ id: t.id });
1273
1269
  }
1274
- let Oi = b(() => {
1270
+ function Oi(e) {
1271
+ let t = Ei(e);
1272
+ t !== null && (L.value.includes(t.id) || Ci({ id: t.id }));
1273
+ }
1274
+ let ki = x(() => {
1275
1275
  if (Y.value.length === 0) return {
1276
1276
  head: [],
1277
1277
  body: [],
@@ -1282,9 +1282,9 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
1282
1282
  label: e,
1283
1283
  color: t
1284
1284
  })), t = [];
1285
- return Ur.value.forEach((e) => {
1285
+ return Wr.value.forEach((e) => {
1286
1286
  let n = e.absoluteIndex, r = [z.value.style.chart.grid.x.timeLabels.values?.[n] ? e.text : n + 1];
1287
- G.value.forEach((e) => {
1287
+ W.value.forEach((e) => {
1288
1288
  let t = e.series?.[n], i = Number((t ?? 0).toFixed(z.value.table.td.roundingValue));
1289
1289
  r.push(i);
1290
1290
  }), t.push(r);
@@ -1293,21 +1293,21 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
1293
1293
  body: t
1294
1294
  };
1295
1295
  });
1296
- function ki(e = null) {
1296
+ function Ai(e = null) {
1297
1297
  let n = [
1298
1298
  [z.value.style.chart.title.text],
1299
1299
  [z.value.style.chart.title.subtitle.text],
1300
1300
  [""]
1301
- ], i = ["", ...Oi.value.head.map((e) => e.label)], a = Oi.value.body, o = n.concat([i]).concat(a), s = r(o);
1301
+ ], r = ["", ...ki.value.head.map((e) => e.label)], a = ki.value.body, o = n.concat([r]).concat(a), s = i(o);
1302
1302
  e ? e(s) : t({
1303
1303
  csvContent: s,
1304
1304
  title: z.value.style.chart.title.text || "vue-ui-stackline"
1305
1305
  });
1306
1306
  }
1307
- let Ai = b(() => {
1308
- let e = [""].concat(Y.value.map((e) => e.name), " <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>"), t = [], n = Math.max(0, q.value.end - q.value.start);
1307
+ let ji = x(() => {
1308
+ let e = [""].concat(Y.value.map((e) => e.name), "__SUM__"), t = [], n = Math.max(0, K.value.end - K.value.start);
1309
1309
  for (let e = 0; e < n; e += 1) {
1310
- let n = yr(e), r = z.value.style.chart.grid.x.timeLabels.values?.[n] ? Rr.value?.[e]?.text ?? n + 1 : n + 1, i = Y.value.map((t) => {
1310
+ let n = xr(e), r = z.value.style.chart.grid.x.timeLabels.values?.[n] ? J.value?.[e]?.text ?? n + 1 : n + 1, i = Y.value.map((t) => {
1311
1311
  let n = t.series?.[e] ?? 0;
1312
1312
  return Number(n.toFixed(z.value.table.td.roundingValue));
1313
1313
  }), a = Y.value.filter((e) => !e.standalone).map((t) => t.series?.[e] ?? 0).reduce((e, t) => e + t, 0);
@@ -1331,27 +1331,27 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
1331
1331
  },
1332
1332
  colNames: [z.value.table.columnNames.period].concat(Y.value.map((e) => e.name), z.value.table.columnNames.total)
1333
1333
  };
1334
- }), ji = b(() => z.value.style.chart.backgroundColor), Mi = b(() => z.value.style.chart.legend), Ni = b(() => z.value.style.chart.title), { isCallbackImaging: Pi, isCallbackSvg: Fi, generateSvg: Ii, onGenerateImage: Li } = we({
1335
- svg: V,
1336
- title: Ni,
1337
- legend: Mi,
1338
- legendItems: Ci,
1339
- backgroundColor: ji,
1334
+ }), Mi = x(() => z.value.style.chart.backgroundColor), Ni = x(() => z.value.style.chart.legend), Pi = x(() => z.value.style.chart.title), { isCallbackImaging: Fi, isCallbackSvg: Ii, generateSvg: Li, onGenerateImage: Ri } = Ce({
1335
+ svg: Kn,
1336
+ title: Pi,
1337
+ legend: Ni,
1338
+ legendItems: wi,
1339
+ backgroundColor: Mi,
1340
1340
  getSvgCallback: () => z.value.userOptions.callbacks.svg,
1341
- generateImage: $n
1341
+ generateImage: tr
1342
1342
  });
1343
- async function Ri({ scale: e = 2 } = {}) {
1344
- if (!tn.value) return;
1345
- let { imageUri: t, base64: n } = await Oe({
1346
- domElement: tn.value,
1343
+ async function zi({ scale: e = 2 } = {}) {
1344
+ if (!nn.value) return;
1345
+ let { imageUri: t, base64: n } = await De({
1346
+ domElement: nn.value,
1347
1347
  base64: !0,
1348
1348
  img: !0,
1349
1349
  scale: e
1350
- }), r = tn.value.getBoundingClientRect(), i = {
1350
+ }), r = nn.value.getBoundingClientRect(), i = {
1351
1351
  width: r.width,
1352
1352
  height: r.height,
1353
1353
  aspectRatio: r.height ? r.width / r.height : 0
1354
- }, a = await ne(t, e) ?? i;
1354
+ }, a = await te(t, e) ?? i;
1355
1355
  return {
1356
1356
  imageUri: t,
1357
1357
  base64: n,
@@ -1359,18 +1359,18 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
1359
1359
  ...a
1360
1360
  };
1361
1361
  }
1362
- let zi = b(() => {
1363
- let e = z.value.table.useDialog && !z.value.table.show, t = H.value.showTable;
1362
+ let Bi = x(() => {
1363
+ let e = z.value.table.useDialog && !z.value.table.show, t = V.value.showTable;
1364
1364
  return {
1365
- component: e ? Jt : Ut,
1365
+ component: e ? Yt : Wt,
1366
1366
  title: `${z.value.style.chart.title.text}${z.value.style.chart.title.subtitle.text ? `: ${z.value.style.chart.title.subtitle.text}` : ""}`,
1367
1367
  props: e ? {
1368
1368
  backgroundColor: z.value.table.th.backgroundColor,
1369
1369
  color: z.value.table.th.color,
1370
1370
  headerColor: z.value.table.th.color,
1371
1371
  headerBg: z.value.table.th.backgroundColor,
1372
- isFullscreen: un.value,
1373
- fullscreenParent: tn.value,
1372
+ isFullscreen: dn.value,
1373
+ fullscreenParent: nn.value,
1374
1374
  forcedWidth: Math.min(800, window.innerWidth * .8),
1375
1375
  isCursorPointer: B.value
1376
1376
  } : {
@@ -1390,29 +1390,29 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
1390
1390
  }
1391
1391
  };
1392
1392
  });
1393
- nt(() => H.value.showTable, (e) => {
1394
- z.value.table.show || (e && z.value.table.useDialog && gn.value ? gn.value.open() : "close" in gn.value && gn.value.close());
1393
+ nt(() => V.value.showTable, (e) => {
1394
+ z.value.table.show || (e && z.value.table.useDialog && _n.value ? _n.value.open() : "close" in _n.value && _n.value.close());
1395
1395
  });
1396
- function Bi() {
1397
- H.value.showTable = !1, _n.value && _n.value.setTableIconState(!1);
1398
- }
1399
- function Vi(e) {
1400
- un.value = e, rn.value += 1;
1396
+ function Vi() {
1397
+ V.value.showTable = !1, vn.value && vn.value.setTableIconState(!1);
1401
1398
  }
1402
- function Hi() {
1403
- H.value.showTable = !H.value.showTable;
1399
+ function Hi(e) {
1400
+ dn.value = e, an.value += 1;
1404
1401
  }
1405
1402
  function Ui() {
1406
- H.value.dataLabels.show = !H.value.dataLabels.show;
1403
+ V.value.showTable = !V.value.showTable;
1407
1404
  }
1408
1405
  function Wi() {
1409
- H.value.showTooltip = !H.value.showTooltip;
1406
+ V.value.dataLabels.show = !V.value.dataLabels.show;
1410
1407
  }
1411
1408
  function Gi() {
1409
+ V.value.showTooltip = !V.value.showTooltip;
1410
+ }
1411
+ function Ki() {
1412
1412
  return Y.value;
1413
1413
  }
1414
- function Ki(e) {
1415
- let t = e ?? 0, n = yr(t);
1414
+ function qi(e) {
1415
+ let t = e ?? 0, n = xr(t);
1416
1416
  return JSON.parse(JSON.stringify(Y.value)).map((e) => {
1417
1417
  let r = e.series[t], i = e.signedSeries?.[t], a = r === 0 ? 0 : (i === -1 && r >= 0 ? -r : r) || null;
1418
1418
  return {
@@ -1422,25 +1422,25 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
1422
1422
  proportion: e.proportions?.[t] || null,
1423
1423
  color: e.color,
1424
1424
  id: e.id,
1425
- timeLabel: zr.value?.[n] || null
1425
+ timeLabel: Br.value?.[n] || null
1426
1426
  };
1427
1427
  });
1428
1428
  }
1429
- let qi = b(() => Array(K.value).fill(0).map((e, t) => Ki(t)));
1429
+ let Ji = x(() => Array(G.value).fill(0).map((e, t) => qi(t)));
1430
1430
  nt(() => F.selectedXIndex, (e) => {
1431
1431
  if ([null, void 0].includes(F.selectedXIndex)) {
1432
1432
  $.value = null;
1433
1433
  return;
1434
1434
  }
1435
- let t = e - q.value.start;
1436
- t < 0 || e >= q.value.end ? $.value = null : $.value = t ?? null;
1435
+ let t = e - K.value.start;
1436
+ t < 0 || e >= K.value.end ? $.value = null : $.value = t ?? null;
1437
1437
  }, { immediate: !0 });
1438
- let Ji = b(() => {
1438
+ let Yi = x(() => {
1439
1439
  if (z.value.style.chart.lines.distributed) return {
1440
1440
  min: -1,
1441
1441
  max: 1
1442
1442
  };
1443
- let e = gr.value, t = _r.value, n = Math.max(1, ...[...e, ...t].map((e) => e.series?.length || 0)), r = Array(n).fill(0), i = Array(n).fill(0);
1443
+ let e = vr.value, t = yr.value, n = Math.max(1, ...[...e, ...t].map((e) => e.series?.length || 0)), r = Array(n).fill(0), i = Array(n).fill(0);
1444
1444
  e.forEach((e) => {
1445
1445
  for (let t = 0; t < n; t += 1) {
1446
1446
  let n = e.series[t] ?? 0;
@@ -1454,13 +1454,13 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
1454
1454
  n > 0 && (a[t] = Math.max(a[t], n)), n < 0 && (o[t] = Math.min(o[t], n));
1455
1455
  }
1456
1456
  });
1457
- let s = Math.max(0, ...r, ...a), c = Math.min(0, ...i, ...o), l = z.value.style.chart.grid.scale.scaleMin, u = z.value.style.chart.grid.scale.scaleMax, d = z.value.style.chart.grid.scale.ticks, f = !z.value.style.chart.lines.distributed && (l !== null || u !== null) ? le(l === null ? c > 0 ? 0 : c : l, u === null ? s < 0 ? 0 : s : u, d) : g(l === null ? c > 0 ? 0 : c : l, u === null ? s < 0 ? 0 : s : u, d);
1457
+ let s = Math.max(0, ...r, ...a), c = Math.min(0, ...i, ...o), l = z.value.style.chart.grid.scale.scaleMin, u = z.value.style.chart.grid.scale.scaleMax, d = z.value.style.chart.grid.scale.ticks, f = !z.value.style.chart.lines.distributed && (l !== null || u !== null) ? le(l === null ? c > 0 ? 0 : c : l, u === null ? s < 0 ? 0 : s : u, d) : _(l === null ? c > 0 ? 0 : c : l, u === null ? s < 0 ? 0 : s : u, d);
1458
1458
  return {
1459
1459
  min: Number(f.min) || 0,
1460
1460
  max: Number(f.max) || 0
1461
1461
  };
1462
1462
  });
1463
- function Yi({ minimapH: e, unitW: t }) {
1463
+ function Xi({ minimapH: e, unitW: t }) {
1464
1464
  let n = (e) => typeof e == "string" ? e.replace(/^M\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*,?\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*/i, "").trim() : "";
1465
1465
  if (!Number.isFinite(e) || e <= 0 || !Number.isFinite(t) || t <= 0) return "";
1466
1466
  let r = Y.value.filter((e) => !e.standalone), i = Y.value.filter((e) => e.standalone), a = Math.max(0, ...Y.value.map((e) => Array.isArray(e.fullSeries) ? e.fullSeries.length : e.series.length));
@@ -1473,46 +1473,46 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
1473
1473
  let r = (Array.isArray(e.fullSeries) ? e.fullSeries : e.series)?.[t];
1474
1474
  r != null && !Number.isNaN(r) && (n += Math.abs(r));
1475
1475
  }), n || 1;
1476
- }), s = (t) => e - e * Math.max(0, Math.min(1, t || 0)), c = [], u = Array(a).fill(0);
1476
+ }), s = (t) => e - e * Math.max(0, Math.min(1, t || 0)), c = [], l = Array(a).fill(0);
1477
1477
  return r.forEach((e) => {
1478
- let r = Array.isArray(e.fullSeries) ? e.fullSeries : e.series, i = Array(a), d = Array(a);
1478
+ let r = Array.isArray(e.fullSeries) ? e.fullSeries : e.series, i = Array(a), u = Array(a);
1479
1479
  for (let e = 0; e < a; e += 1) {
1480
1480
  let n = r?.[e], a = n == null || Number.isNaN(n) ? 0 : Math.abs(n) / t[e];
1481
- d[e] = u[e], u[e] += a, i[e] = u[e];
1481
+ u[e] = l[e], l[e] += a, i[e] = l[e];
1482
1482
  }
1483
- let f = i.map(s), m = d.map(s), h = o.map((e, t) => ({
1483
+ let f = i.map(s), p = u.map(s), h = o.map((e, t) => ({
1484
1484
  x: e,
1485
1485
  y: f[t]
1486
1486
  })), g = o.map((e, t) => ({
1487
1487
  x: e,
1488
- y: m[t]
1489
- })), _ = l(h), ee = l([...g].reverse()), te = p(h), ne = p([...g].reverse()), v = g[g.length - 1];
1488
+ y: p[t]
1489
+ })), _ = d(h), v = d([...g].reverse()), ee = m(h), te = m([...g].reverse()), y = g[g.length - 1];
1490
1490
  if (z.value.style.chart.lines.useArea) {
1491
- let t = z.value.style.chart.lines.smooth ? `M${h[0].x},${h[0].y} ${n(_)} L${v.x},${v.y} ${n(ee)} Z` : `M${h[0].x},${h[0].y} ${n(te)} L${v.x},${v.y} ${n(ne)} Z`;
1491
+ let t = z.value.style.chart.lines.smooth ? `M${h[0].x},${h[0].y} ${n(_)} L${y.x},${y.y} ${n(v)} Z` : `M${h[0].x},${h[0].y} ${n(ee)} L${y.x},${y.y} ${n(te)} Z`;
1492
1492
  c.push(`<path d="${t}"
1493
- fill="${Qt.pattern ? `url(#pattern_${I.value}_${e.absoluteIndex})` : (z.value.style.chart.lines.gradient.show, e.color)}"
1493
+ fill="${$t.pattern ? `url(#pattern_${I.value}_${e.absoluteIndex})` : (z.value.style.chart.lines.gradient.show, e.color)}"
1494
1494
  opacity="${z.value.style.chart.lines.areaOpacity}"
1495
1495
  stroke="none" />`);
1496
1496
  }
1497
- let re = z.value.style.chart.lines.smooth ? `M${h[0].x},${h[0].y} ${n(_)}` : `M${h[0].x},${h[0].y} ${n(te)}`;
1498
- c.push(`<path d="${re}"
1497
+ let ne = z.value.style.chart.lines.smooth ? `M${h[0].x},${h[0].y} ${n(_)}` : `M${h[0].x},${h[0].y} ${n(ee)}`;
1498
+ c.push(`<path d="${ne}"
1499
1499
  fill="none"
1500
1500
  stroke="${e.color}"
1501
1501
  stroke-width="${z.value.style.chart.lines.strokeWidth}"
1502
1502
  stroke-linecap="round" />`);
1503
1503
  }), i.length && i.forEach((e) => {
1504
- let r = Array.isArray(e.fullSeries) ? e.fullSeries : e.series, i = Array.from({ length: a }, (e, n) => s(Math.abs(r?.[n] ?? 0) / t[n])), u = o.map((e, t) => ({
1504
+ let r = Array.isArray(e.fullSeries) ? e.fullSeries : e.series, i = Array.from({ length: a }, (e, n) => s(Math.abs(r?.[n] ?? 0) / t[n])), l = o.map((e, t) => ({
1505
1505
  x: e,
1506
1506
  y: i[t]
1507
- })), d = l(u), f = p(u), m = z.value.style.chart.lines.smooth ? `M${u[0].x},${u[0].y} ${n(d)}` : `M${u[0].x},${u[0].y} ${n(f)}`;
1508
- c.push(`<path d="${m}"
1507
+ })), u = d(l), f = m(l), p = z.value.style.chart.lines.smooth ? `M${l[0].x},${l[0].y} ${n(u)}` : `M${l[0].x},${l[0].y} ${n(f)}`;
1508
+ c.push(`<path d="${p}"
1509
1509
  fill="none"
1510
1510
  stroke="${e.color}"
1511
1511
  stroke-width="${z.value.style.chart.lines.strokeWidth}"
1512
1512
  stroke-linecap="round" />`);
1513
1513
  }), c.join("");
1514
1514
  }
1515
- let s = Ji.value.min, c = Ji.value.max, u = Math.abs(s), d = c + u || 1, f = (t) => Math.max(0, Math.min(e, t)), m = (t) => f(e - e * (((t ?? 0) + u) / d)), h = [];
1515
+ let s = Yi.value.min, c = Yi.value.max, l = Math.abs(s), u = c + l || 1, f = (t) => Math.max(0, Math.min(e, t)), p = (t) => f(e - e * (((t ?? 0) + l) / u)), h = [];
1516
1516
  if (r.length) {
1517
1517
  let e = Array(a).fill(0), t = Array(a).fill(0);
1518
1518
  r.forEach((r) => {
@@ -1521,22 +1521,22 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
1521
1521
  let r = i?.[n] ?? 0;
1522
1522
  r >= 0 ? (c[n] = e[n], e[n] += r, s[n] = e[n]) : (c[n] = t[n], t[n] += r, s[n] = t[n]);
1523
1523
  }
1524
- let u = s.map(m), d = c.map(m), f = o.map((e, t) => ({
1524
+ let l = s.map(p), u = c.map(p), f = o.map((e, t) => ({
1525
1525
  x: e,
1526
- y: u[t]
1526
+ y: l[t]
1527
1527
  })), g = o.map((e, t) => ({
1528
1528
  x: e,
1529
- y: d[t]
1530
- })), _ = l(f), ee = l([...g].reverse()), te = p(f), ne = p([...g].reverse()), v = g[g.length - 1];
1529
+ y: u[t]
1530
+ })), _ = d(f), v = d([...g].reverse()), ee = m(f), te = m([...g].reverse()), y = g[g.length - 1];
1531
1531
  if (z.value.style.chart.lines.useArea) {
1532
- let e = z.value.style.chart.lines.smooth ? `M${f[0].x},${f[0].y} ${n(_)} L${v.x},${v.y} ${n(ee)} Z` : `M${f[0].x},${f[0].y} ${n(te)} L${v.x},${v.y} ${n(ne)} Z`;
1532
+ let e = z.value.style.chart.lines.smooth ? `M${f[0].x},${f[0].y} ${n(_)} L${y.x},${y.y} ${n(v)} Z` : `M${f[0].x},${f[0].y} ${n(ee)} L${y.x},${y.y} ${n(te)} Z`;
1533
1533
  h.push(`<path d="${e}"
1534
- fill="${Qt.pattern ? `url(#pattern_${I.value}_${r.absoluteIndex})` : (z.value.style.chart.lines.gradient.show, r.color)}"
1534
+ fill="${$t.pattern ? `url(#pattern_${I.value}_${r.absoluteIndex})` : (z.value.style.chart.lines.gradient.show, r.color)}"
1535
1535
  opacity="${z.value.style.chart.lines.areaOpacity}"
1536
1536
  stroke="none" />`);
1537
1537
  }
1538
- let re = z.value.style.chart.lines.smooth ? `M${f[0].x},${f[0].y} ${n(_)}` : `M${f[0].x},${f[0].y} ${n(te)}`;
1539
- h.push(`<path d="${re}"
1538
+ let ne = z.value.style.chart.lines.smooth ? `M${f[0].x},${f[0].y} ${n(_)}` : `M${f[0].x},${f[0].y} ${n(ee)}`;
1539
+ h.push(`<path d="${ne}"
1540
1540
  fill="none"
1541
1541
  stroke="${r.color}"
1542
1542
  stroke-width="${z.value.style.chart.lines.strokeWidth}"
@@ -1544,10 +1544,10 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
1544
1544
  });
1545
1545
  }
1546
1546
  return i.length && i.forEach((e) => {
1547
- let t = (Array.isArray(e.fullSeries) ? e.fullSeries : e.series).map(m), r = o.map((e, n) => ({
1547
+ let t = (Array.isArray(e.fullSeries) ? e.fullSeries : e.series).map(p), r = o.map((e, n) => ({
1548
1548
  x: e,
1549
1549
  y: t[n]
1550
- })), i = l(r), a = p(r), s = z.value.style.chart.lines.smooth ? `M${r[0].x},${r[0].y} ${n(i)}` : `M${r[0].x},${r[0].y} ${n(a)}`;
1550
+ })), i = d(r), a = m(r), s = z.value.style.chart.lines.smooth ? `M${r[0].x},${r[0].y} ${n(i)}` : `M${r[0].x},${r[0].y} ${n(a)}`;
1551
1551
  h.push(`<path d="${s}"
1552
1552
  fill="none"
1553
1553
  stroke="${e.color}"
@@ -1555,14 +1555,14 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
1555
1555
  stroke-linecap="round" />`);
1556
1556
  }), h.join("");
1557
1557
  }
1558
- function Xi(e, t) {
1558
+ function Zi(e, t) {
1559
1559
  let n = z.value.style.chart.lines, r = n.dataLabels;
1560
- return n.showDistributedPercentage && n.distributed ? Yn.value ? t === 0 ? !r.hideEmptyPercentages : Math.abs(t) * 100 >= r.hideUnderPercentage : !r.hideEmptyPercentages || Math.abs(t) > 0 : Yn.value ? (Jn.value && ar.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(e) > Zi.value * r.hideUnderPercentage / 100) : Jn.value ? Math.abs(e) >= r.hideUnderValue : !r.hideEmptyValues || e !== 0;
1560
+ return n.showDistributedPercentage && n.distributed ? Zn.value ? t === 0 ? !r.hideEmptyPercentages : Math.abs(t) * 100 >= r.hideUnderPercentage : !r.hideEmptyPercentages || Math.abs(t) > 0 : Zn.value ? (Xn.value && sr.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(e) > Qi.value * r.hideUnderPercentage / 100) : Xn.value ? Math.abs(e) >= r.hideUnderValue : !r.hideEmptyValues || e !== 0;
1561
1561
  }
1562
- let Zi = b(() => Math.max(...Y.value.flatMap((e) => e.series)));
1563
- function Qi(e, t, n, r, i) {
1562
+ let Qi = x(() => Math.max(...Y.value.flatMap((e) => e.series)));
1563
+ function $i(e, t, n, r, i) {
1564
1564
  let a = i === -1 && e >= 0 ? -e : e;
1565
- return v(z.value.style.chart.lines.dataLabels.formatter, a, h({
1565
+ return y(z.value.style.chart.lines.dataLabels.formatter, a, h({
1566
1566
  p: z.value.style.chart.lines.dataLabels.prefix,
1567
1567
  v: a,
1568
1568
  s: z.value.style.chart.lines.dataLabels.suffix,
@@ -1573,8 +1573,8 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
1573
1573
  datapointIndex: r
1574
1574
  });
1575
1575
  }
1576
- function $i(e, t, n, r) {
1577
- return v(z.value.style.chart.lines.dataLabels.formatter, e, h({
1576
+ function ea(e, t, n, r) {
1577
+ return y(z.value.style.chart.lines.dataLabels.formatter, e, h({
1578
1578
  v: isNaN(e) ? 0 : e,
1579
1579
  s: "%",
1580
1580
  r: z.value.style.chart.lines.dataLabels.rounding
@@ -1584,16 +1584,16 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
1584
1584
  datapointIndex: r
1585
1585
  });
1586
1586
  }
1587
- function ea({ seriesIndex: e, datapoint: t }) {
1588
- let n = q.value.start + e;
1589
- $t("selectX", {
1587
+ function ta({ seriesIndex: e, datapoint: t }) {
1588
+ let n = K.value.start + e;
1589
+ en("selectX", {
1590
1590
  dataset: t,
1591
1591
  index: n,
1592
1592
  indexLabel: z.value.style.chart.grid.x.timeLabels.values[n]
1593
1593
  });
1594
1594
  }
1595
- async function ta() {
1596
- if ($t("copyAlt", {
1595
+ async function na() {
1596
+ if (en("copyAlt", {
1597
1597
  config: z.value,
1598
1598
  dataset: Y.value
1599
1599
  }), !z.value.userOptions.callbacks.altCopy) {
@@ -1605,23 +1605,23 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
1605
1605
  dataset: Y.value
1606
1606
  }));
1607
1607
  }
1608
- let na = k(!1);
1609
- function ra() {
1610
- R.value = null, na.value = !0;
1611
- }
1608
+ let ra = k(!1);
1612
1609
  function ia() {
1613
- R.value = null, kn.value = "pointer", nn.value = !1, $.value = null, $t("selectX", {
1610
+ R.value = null, ra.value = !0;
1611
+ }
1612
+ function aa() {
1613
+ R.value = null, An.value = "pointer", rn.value = !1, $.value = null, en("selectX", {
1614
1614
  index: null,
1615
1615
  indexLabel: null,
1616
1616
  dataset: null
1617
- }), na.value = !1;
1617
+ }), ra.value = !1;
1618
1618
  }
1619
- function aa(e) {
1620
- if (!V.value || Fn.value || document.activeElement !== V.value || Or.value || !Z.value) return;
1619
+ function oa(e) {
1620
+ if (!Kn.value || In.value || document.activeElement !== Kn.value || Ar.value || !Z.value) return;
1621
1621
  let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
1622
1622
  if (!t && !n && !r && !i) return;
1623
1623
  if (e.preventDefault(), e.stopPropagation(), i) {
1624
- R.value = null, kn.value = "pointer", nn.value = !1, $.value = null, $t("selectX", {
1624
+ R.value = null, An.value = "pointer", rn.value = !1, $.value = null, en("selectX", {
1625
1625
  index: null,
1626
1626
  indexLabel: null,
1627
1627
  dataset: null
@@ -1630,58 +1630,58 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
1630
1630
  }
1631
1631
  if (r) {
1632
1632
  if (R.value === null) return;
1633
- mi(R.value);
1633
+ hi(R.value);
1634
1634
  return;
1635
1635
  }
1636
- let a = R.value, o = si.value, s = a !== null && a >= 0 && a < Z.value, c = o !== null && o >= 0 && o < Z.value;
1637
- s ? n ? (a += 1, a >= Z.value && (a = 0)) : t && (--a, a < 0 && (a = Z.value - 1)) : c ? (a = n ? o + 1 : o - 1, a >= Z.value && (a = 0), a < 0 && (a = Z.value - 1)) : a = n ? 0 : Z.value - 1, R.value = a, oa(a), yi(!0, a, "keyboard");
1636
+ let a = R.value, o = ci.value, s = a !== null && a >= 0 && a < Z.value, c = o !== null && o >= 0 && o < Z.value;
1637
+ s ? n ? (a += 1, a >= Z.value && (a = 0)) : t && (--a, a < 0 && (a = Z.value - 1)) : c ? (a = n ? o + 1 : o - 1, a >= Z.value && (a = 0), a < 0 && (a = Z.value - 1)) : a = n ? 0 : Z.value - 1, R.value = a, sa(a), bi(!0, a, "keyboard");
1638
1638
  }
1639
- function oa(e) {
1640
- if (!Number.isFinite(e) || !V.value) return;
1641
- let t = W.value.left + e * ui.value, n = W.value.top + W.value.height / 2, r = i(t, n, V.value);
1642
- r && (On.value = r);
1639
+ function sa(e) {
1640
+ if (!Number.isFinite(e) || !Kn.value) return;
1641
+ let t = U.value.left + e * di.value, n = U.value.top + U.value.height / 2, r = oe(t, n, Kn.value);
1642
+ r && (kn.value = r);
1643
1643
  }
1644
- let sa = b(() => ({
1645
- headers: Ai.value?.colNames ?? [],
1646
- rows: Ai.value?.body ?? []
1644
+ let ca = x(() => ({
1645
+ headers: ji.value?.colNames ?? [],
1646
+ rows: ji.value?.body ?? []
1647
1647
  }));
1648
- return je({
1649
- getData: Gi,
1650
- getImage: Ri,
1651
- generatePdf: Qn,
1652
- generateCsv: ki,
1653
- generateImage: $n,
1654
- generateSvg: Ii,
1655
- hideSeries: Di,
1656
- showSeries: Ei,
1657
- toggleTable: Hi,
1658
- toggleLabels: Ui,
1659
- toggleTooltip: Wi,
1660
- toggleAnnotator: In,
1661
- toggleFullscreen: Vi,
1662
- copyAlt: ta
1663
- }), (t, r) => (O(), C("div", {
1648
+ return Ae({
1649
+ getData: Ki,
1650
+ getImage: zi,
1651
+ generatePdf: er,
1652
+ generateCsv: Ai,
1653
+ generateImage: tr,
1654
+ generateSvg: Li,
1655
+ hideSeries: Oi,
1656
+ showSeries: Di,
1657
+ toggleTable: Ui,
1658
+ toggleLabels: Wi,
1659
+ toggleTooltip: Gi,
1660
+ toggleAnnotator: Ln,
1661
+ toggleFullscreen: Hi,
1662
+ copyAlt: na
1663
+ }), (t, r) => (O(), w("div", {
1664
1664
  id: `stackline_${I.value}`,
1665
1665
  ref_key: "stacklineChart",
1666
- ref: tn,
1667
- class: E({
1666
+ ref: nn,
1667
+ class: Je({
1668
1668
  "vue-data-ui-component": !0,
1669
1669
  "vue-ui-stackline": !0,
1670
- "vue-data-ui-wrapper-fullscreen": un.value
1670
+ "vue-data-ui-wrapper-fullscreen": dn.value
1671
1671
  }),
1672
1672
  style: Ye(`background:${z.value.style.chart.backgroundColor};color:${z.value.style.chart.color};font-family:${z.value.style.fontFamily}; position: relative; ${z.value.responsive ? "height: 100%" : ""}`),
1673
- onMouseenter: Gn,
1674
- onMouseleave: Kn
1673
+ onMouseenter: qn,
1674
+ onMouseleave: Jn
1675
1675
  }, [
1676
- w("div", {
1676
+ T("div", {
1677
1677
  id: `chart-instructions-${I.value}`,
1678
1678
  class: "sr-only"
1679
- }, [w("p", null, M(z.value.a11y.translations.keyboardNavigation), 1)], 8, ot),
1680
- sa.value?.rows?.length ? (O(), x(Le, {
1679
+ }, [T("p", null, M(z.value.a11y.translations.keyboardNavigation), 1)], 8, ot),
1680
+ ca.value?.rows?.length ? (O(), S(Ie, {
1681
1681
  key: 0,
1682
1682
  uid: I.value,
1683
- head: sa.value.headers,
1684
- body: sa.value.rows,
1683
+ head: ca.value.headers,
1684
+ body: ca.value.rows,
1685
1685
  notice: z.value.a11y.translations.tableAvailable,
1686
1686
  caption: z.value.a11y.translations.tableCaption
1687
1687
  }, null, 8, [
@@ -1690,22 +1690,22 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
1690
1690
  "body",
1691
1691
  "notice",
1692
1692
  "caption"
1693
- ])) : S("", !0),
1694
- z.value.userOptions.buttons.annotator ? (O(), x(N(Gt), {
1693
+ ])) : C("", !0),
1694
+ z.value.userOptions.buttons.annotator ? (O(), S(N(Kt), {
1695
1695
  key: 1,
1696
- svgRef: N(V),
1696
+ svgRef: N(Kn),
1697
1697
  backgroundColor: z.value.style.chart.backgroundColor,
1698
1698
  color: z.value.style.chart.color,
1699
- active: Fn.value,
1699
+ active: In.value,
1700
1700
  isCursorPointer: B.value,
1701
- onClose: In
1701
+ onClose: Ln
1702
1702
  }, {
1703
1703
  "annotator-action-close": P(() => [j(t.$slots, "annotator-action-close", {}, void 0, !0)]),
1704
- "annotator-action-color": P(({ color: e }) => [j(t.$slots, "annotator-action-color", D(T({ color: e })), void 0, !0)]),
1705
- "annotator-action-draw": P(({ mode: e }) => [j(t.$slots, "annotator-action-draw", D(T({ mode: e })), void 0, !0)]),
1706
- "annotator-action-undo": P(({ disabled: e }) => [j(t.$slots, "annotator-action-undo", D(T({ disabled: e })), void 0, !0)]),
1707
- "annotator-action-redo": P(({ disabled: e }) => [j(t.$slots, "annotator-action-redo", D(T({ disabled: e })), void 0, !0)]),
1708
- "annotator-action-delete": P(({ disabled: e }) => [j(t.$slots, "annotator-action-delete", D(T({ disabled: e })), void 0, !0)]),
1704
+ "annotator-action-color": P(({ color: e }) => [j(t.$slots, "annotator-action-color", D(E({ color: e })), void 0, !0)]),
1705
+ "annotator-action-draw": P(({ mode: e }) => [j(t.$slots, "annotator-action-draw", D(E({ mode: e })), void 0, !0)]),
1706
+ "annotator-action-undo": P(({ disabled: e }) => [j(t.$slots, "annotator-action-undo", D(E({ disabled: e })), void 0, !0)]),
1707
+ "annotator-action-redo": P(({ disabled: e }) => [j(t.$slots, "annotator-action-redo", D(E({ disabled: e })), void 0, !0)]),
1708
+ "annotator-action-delete": P(({ disabled: e }) => [j(t.$slots, "annotator-action-delete", D(E({ disabled: e })), void 0, !0)]),
1709
1709
  _: 3
1710
1710
  }, 8, [
1711
1711
  "svgRef",
@@ -1713,22 +1713,22 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
1713
1713
  "color",
1714
1714
  "active",
1715
1715
  "isCursorPointer"
1716
- ])) : S("", !0),
1716
+ ])) : C("", !0),
1717
1717
  j(t.$slots, "userConfig", {}, void 0, !0),
1718
- er.value ? (O(), C("div", {
1718
+ nr.value ? (O(), w("div", {
1719
1719
  key: 2,
1720
1720
  ref_key: "noTitle",
1721
- ref: cn,
1721
+ ref: ln,
1722
1722
  class: "vue-data-ui-no-title-space",
1723
1723
  style: "height:36px; width: 100%;background:transparent"
1724
- }, null, 512)) : S("", !0),
1725
- z.value.style.chart.title.text ? (O(), C("div", {
1724
+ }, null, 512)) : C("", !0),
1725
+ z.value.style.chart.title.text ? (O(), w("div", {
1726
1726
  key: 3,
1727
1727
  ref_key: "chartTitle",
1728
- ref: an,
1728
+ ref: on,
1729
1729
  style: "width:100%;background:transparent;"
1730
- }, [(O(), x(ke, {
1731
- key: `title_${fn.value}`,
1730
+ }, [(O(), S(Oe, {
1731
+ key: `title_${pn.value}`,
1732
1732
  config: {
1733
1733
  title: {
1734
1734
  cy: "stackline-title",
@@ -1739,16 +1739,16 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
1739
1739
  ...z.value.style.chart.title.subtitle
1740
1740
  }
1741
1741
  }
1742
- }, null, 8, ["config"]))], 512)) : S("", !0),
1743
- w("div", { id: `legend-top-${I.value}` }, null, 8, st),
1744
- z.value.userOptions.show && en.value && (N(Wn) || N(Hn)) ? (O(), x(N(Kt), {
1742
+ }, null, 8, ["config"]))], 512)) : C("", !0),
1743
+ T("div", { id: `legend-top-${I.value}` }, null, 8, st),
1744
+ z.value.userOptions.show && tn.value && (N(Gn) || N(Un)) ? (O(), S(N(qt), {
1745
1745
  ref_key: "userOptionsRef",
1746
- ref: _n,
1747
- key: `user_option_${rn.value}`,
1746
+ ref: vn,
1747
+ key: `user_option_${an.value}`,
1748
1748
  backgroundColor: z.value.style.chart.backgroundColor,
1749
1749
  color: z.value.style.chart.color,
1750
- isPrinting: N(Xn),
1751
- isImaging: N(Zn),
1750
+ isPrinting: N(Qn),
1751
+ isImaging: N($n),
1752
1752
  uid: I.value,
1753
1753
  hasTooltip: z.value.style.chart.tooltip.show && z.value.userOptions.buttons.tooltip,
1754
1754
  hasPdf: z.value.userOptions.buttons.pdf,
@@ -1759,32 +1759,32 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
1759
1759
  hasLabel: z.value.userOptions.buttons.labels,
1760
1760
  hasFullscreen: z.value.userOptions.buttons.fullscreen,
1761
1761
  hasAltCopy: z.value.userOptions.buttons.altCopy,
1762
- isFullscreen: un.value,
1763
- chartElement: tn.value,
1762
+ isFullscreen: dn.value,
1763
+ chartElement: nn.value,
1764
1764
  position: z.value.userOptions.position,
1765
- isTooltip: H.value.showTooltip,
1765
+ isTooltip: V.value.showTooltip,
1766
1766
  titles: { ...z.value.userOptions.buttonTitles },
1767
1767
  hasAnnotator: z.value.userOptions.buttons.annotator,
1768
- isAnnotation: Fn.value,
1768
+ isAnnotation: In.value,
1769
1769
  callbacks: z.value.userOptions.callbacks,
1770
1770
  printScale: z.value.userOptions.print.scale,
1771
1771
  tableDialog: z.value.table.useDialog,
1772
1772
  isCursorPointer: B.value,
1773
- onToggleFullscreen: Vi,
1774
- onGeneratePdf: N(Qn),
1775
- onGenerateCsv: ki,
1776
- onGenerateImage: N(Li),
1777
- onGenerateSvg: N(Ii),
1778
- onToggleTable: Hi,
1779
- onToggleLabels: Ui,
1780
- onToggleTooltip: Wi,
1781
- onToggleAnnotator: In,
1782
- onCopyAlt: ta,
1783
- style: Ye({ visibility: N(Wn) ? N(Hn) ? "visible" : "hidden" : "visible" })
1784
- }, Ue({ _: 2 }, [
1773
+ onToggleFullscreen: Hi,
1774
+ onGeneratePdf: N(er),
1775
+ onGenerateCsv: Ai,
1776
+ onGenerateImage: N(Ri),
1777
+ onGenerateSvg: N(Li),
1778
+ onToggleTable: Ui,
1779
+ onToggleLabels: Wi,
1780
+ onToggleTooltip: Gi,
1781
+ onToggleAnnotator: Ln,
1782
+ onCopyAlt: na,
1783
+ style: Ye({ visibility: N(Gn) ? N(Un) ? "visible" : "hidden" : "visible" })
1784
+ }, He({ _: 2 }, [
1785
1785
  t.$slots.menuIcon ? {
1786
1786
  name: "menuIcon",
1787
- fn: P(({ isOpen: e, color: n }) => [j(t.$slots, "menuIcon", D(T({
1787
+ fn: P(({ isOpen: e, color: n }) => [j(t.$slots, "menuIcon", D(E({
1788
1788
  isOpen: e,
1789
1789
  color: n
1790
1790
  })), void 0, !0)]),
@@ -1827,7 +1827,7 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
1827
1827
  } : void 0,
1828
1828
  t.$slots.optionFullscreen ? {
1829
1829
  name: "optionFullscreen",
1830
- fn: P(({ toggleFullscreen: e, isFullscreen: n }) => [j(t.$slots, "optionFullscreen", D(T({
1830
+ fn: P(({ toggleFullscreen: e, isFullscreen: n }) => [j(t.$slots, "optionFullscreen", D(E({
1831
1831
  toggleFullscreen: e,
1832
1832
  isFullscreen: n
1833
1833
  })), void 0, !0)]),
@@ -1835,7 +1835,7 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
1835
1835
  } : void 0,
1836
1836
  t.$slots.optionAnnotator ? {
1837
1837
  name: "optionAnnotator",
1838
- fn: P(({ toggleAnnotator: e, isAnnotator: n }) => [j(t.$slots, "optionAnnotator", D(T({
1838
+ fn: P(({ toggleAnnotator: e, isAnnotator: n }) => [j(t.$slots, "optionAnnotator", D(E({
1839
1839
  toggleAnnotator: e,
1840
1840
  isAnnotator: n
1841
1841
  })), void 0, !0)]),
@@ -1843,7 +1843,7 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
1843
1843
  } : void 0,
1844
1844
  t.$slots.optionAltCopy ? {
1845
1845
  name: "optionAltCopy",
1846
- fn: P(({ altCopy: e }) => [j(t.$slots, "optionAltCopy", D(T({ altCopy: e })), void 0, !0)]),
1846
+ fn: P(({ altCopy: e }) => [j(t.$slots, "optionAltCopy", D(E({ altCopy: e })), void 0, !0)]),
1847
1847
  key: "10"
1848
1848
  } : void 0,
1849
1849
  t.$slots["custom-menu-before"] ? {
@@ -1856,45 +1856,45 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
1856
1856
  fn: P(() => [j(t.$slots, "custom-menu-after", {}, void 0, !0)]),
1857
1857
  key: "12"
1858
1858
  } : void 0
1859
- ]), 1032, /* @__PURE__ */ "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.onGenerateImage.onGenerateSvg.style".split("."))) : S("", !0),
1860
- w("div", ct, [(O(), C("svg", {
1859
+ ]), 1032, /* @__PURE__ */ "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.onGenerateImage.onGenerateSvg.style".split("."))) : C("", !0),
1860
+ T("div", ct, [(O(), w("svg", {
1861
1861
  ref_key: "svgRef",
1862
- ref: V,
1862
+ ref: Kn,
1863
1863
  "aria-describedby": `chart-instructions-${I.value}`,
1864
- xmlns: N(se),
1865
- viewBox: `0 0 ${W.value.chartWidth <= 0 ? 10 : W.value.chartWidth} ${W.value.chartHeight <= 0 ? 10 : W.value.chartHeight}`,
1866
- class: E({
1867
- "vue-data-ui-loading": N(zn),
1868
- "vue-data-ui-fullscreen--on": un.value,
1869
- "vue-data-ui-fulscreen--off": !un.value,
1870
- "vue-data-ui-no-transition": !N(Ln)
1864
+ xmlns: N(ce),
1865
+ viewBox: `0 0 ${U.value.chartWidth <= 0 ? 10 : U.value.chartWidth} ${U.value.chartHeight <= 0 ? 10 : U.value.chartHeight}`,
1866
+ class: Je({
1867
+ "vue-data-ui-loading": N(Bn),
1868
+ "vue-data-ui-fullscreen--on": dn.value,
1869
+ "vue-data-ui-fulscreen--off": !dn.value,
1870
+ "vue-data-ui-no-transition": !N(Rn)
1871
1871
  }),
1872
1872
  style: Ye(`max-width:100%;overflow:visible;background:transparent;color:${z.value.style.chart.color}`),
1873
1873
  role: "img",
1874
1874
  "aria-live": "polite",
1875
1875
  tabindex: "0",
1876
1876
  preserveAspectRatio: "xMidYMid",
1877
- onMousemove: fi,
1878
- onMouseleave: hi,
1879
- onClick: pi,
1880
- onFocus: ra,
1881
- onBlur: ia,
1882
- onKeydown: aa
1877
+ onMousemove: pi,
1878
+ onMouseleave: gi,
1879
+ onClick: mi,
1880
+ onFocus: ia,
1881
+ onBlur: aa,
1882
+ onKeydown: oa
1883
1883
  }, [
1884
- Ge(N(qt)),
1885
- (O(!0), C(y, null, A(gr.value, (e) => (O(), C(y, null, [t.$slots.pattern ? (O(), C("defs", ut, [j(t.$slots, "pattern", qe({ ref_for: !0 }, {
1884
+ We(N(Jt)),
1885
+ (O(!0), w(b, null, A(vr.value, (e) => (O(), w(b, null, [t.$slots.pattern ? (O(), w("defs", ut, [j(t.$slots, "pattern", Ke({ ref_for: !0 }, {
1886
1886
  seriesIndex: e.absoluteIndex,
1887
1887
  patternId: `pattern_${I.value}_${e.absoluteIndex}`
1888
- }), void 0, !0)])) : S("", !0)], 64))), 256)),
1889
- t.$slots["chart-background"] ? (O(), C("foreignObject", {
1888
+ }), void 0, !0)])) : C("", !0)], 64))), 256)),
1889
+ t.$slots["chart-background"] ? (O(), w("foreignObject", {
1890
1890
  key: 0,
1891
1891
  x: X.value.left,
1892
- y: W.value.top,
1892
+ y: U.value.top,
1893
1893
  width: X.value.width,
1894
- height: W.value.height,
1894
+ height: U.value.height,
1895
1895
  style: { pointerEvents: "none" }
1896
- }, [j(t.$slots, "chart-background", {}, void 0, !0)], 8, dt)) : S("", !0),
1897
- z.value.style.chart.lines.gradient.show ? (O(), C("defs", ft, [(O(!0), C(y, null, A(Y.value, (e, t) => (O(), x(Pe, {
1896
+ }, [j(t.$slots, "chart-background", {}, void 0, !0)], 8, dt)) : C("", !0),
1897
+ z.value.style.chart.lines.gradient.show ? (O(), w("defs", ft, [(O(!0), w(b, null, A(Y.value, (e, t) => (O(), S(Ne, {
1898
1898
  t: "linear",
1899
1899
  id: `gradient_${e.id}`,
1900
1900
  key: `gradient_${e.id}_${t}`,
@@ -1908,11 +1908,11 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
1908
1908
  1
1909
1909
  ], [
1910
1910
  "100%",
1911
- N(c)(e.color, z.value.style.chart.lines.gradient.intensity / 100),
1911
+ N(n)(e.color, z.value.style.chart.lines.gradient.intensity / 100),
1912
1912
  1
1913
1913
  ]]
1914
- }, null, 8, ["id", "stops"]))), 128))])) : S("", !0),
1915
- z.value.style.chart.grid.x.showHorizontalLines ? (O(!0), C(y, { key: 2 }, A(Lr.value, (e, t) => (O(), C("line", {
1914
+ }, null, 8, ["id", "stops"]))), 128))])) : C("", !0),
1915
+ z.value.style.chart.grid.x.showHorizontalLines ? (O(!0), w(b, { key: 2 }, A(zr.value, (e, t) => (O(), w("line", {
1916
1916
  x1: X.value.left,
1917
1917
  x2: X.value.right,
1918
1918
  y1: e.y,
@@ -1921,61 +1921,61 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
1921
1921
  "stroke-width": z.value.style.chart.grid.x.linesThickness,
1922
1922
  "stroke-dasharray": z.value.style.chart.grid.x.linesStrokeDasharray,
1923
1923
  "stroke-linecap": "round"
1924
- }, null, 8, pt))), 256)) : S("", !0),
1925
- z.value.style.chart.grid.y.showVerticalLines ? (O(!0), C(y, { key: 3 }, A(q.value.end - q.value.start, (e, t) => (O(), C("line", {
1924
+ }, null, 8, pt))), 256)) : C("", !0),
1925
+ z.value.style.chart.grid.y.showVerticalLines ? (O(!0), w(b, { key: 3 }, A(K.value.end - K.value.start, (e, t) => (O(), w("line", {
1926
1926
  x1: Q(t),
1927
1927
  x2: Q(t),
1928
- y1: W.value.top,
1929
- y2: W.value.bottom,
1928
+ y1: U.value.top,
1929
+ y2: U.value.bottom,
1930
1930
  stroke: z.value.style.chart.grid.y.linesColor,
1931
1931
  "stroke-width": z.value.style.chart.grid.y.linesThickness,
1932
1932
  "stroke-dasharray": z.value.style.chart.grid.y.linesStrokeDasharray,
1933
1933
  "stroke-linecap": "round"
1934
- }, null, 8, mt))), 256)) : S("", !0),
1935
- z.value.style.chart.grid.x.showAxis ? (O(), C("line", {
1934
+ }, null, 8, mt))), 256)) : C("", !0),
1935
+ z.value.style.chart.grid.x.showAxis ? (O(), w("line", {
1936
1936
  key: 4,
1937
1937
  x1: X.value.left,
1938
1938
  x2: X.value.right,
1939
- y1: W.value.bottom,
1940
- y2: W.value.bottom,
1939
+ y1: U.value.bottom,
1940
+ y2: U.value.bottom,
1941
1941
  stroke: z.value.style.chart.grid.x.axisColor,
1942
1942
  "stroke-width": z.value.style.chart.grid.x.axisThickness,
1943
1943
  "stroke-linecap": "round",
1944
1944
  "stroke-linejoin": "round"
1945
- }, null, 8, ht)) : S("", !0),
1946
- z.value.style.chart.grid.y.showAxis && !z.value.style.chart.lines.distributed ? (O(), C("line", {
1945
+ }, null, 8, ht)) : C("", !0),
1946
+ z.value.style.chart.grid.y.showAxis && !z.value.style.chart.lines.distributed ? (O(), w("line", {
1947
1947
  key: 5,
1948
- x1: sr.value ? X.value.right : X.value.left,
1949
- x2: sr.value ? X.value.right : X.value.left,
1950
- y1: W.value.top,
1951
- y2: W.value.bottom,
1948
+ x1: lr.value ? X.value.right : X.value.left,
1949
+ x2: lr.value ? X.value.right : X.value.left,
1950
+ y1: U.value.top,
1951
+ y2: U.value.bottom,
1952
1952
  stroke: z.value.style.chart.grid.y.axisColor,
1953
1953
  "stroke-width": z.value.style.chart.grid.y.axisThickness,
1954
1954
  "stroke-linecap": "round",
1955
1955
  "stroke-linejoin": "round"
1956
- }, null, 8, gt)) : S("", !0),
1957
- z.value.style.chart.grid.x.axisName.show && z.value.style.chart.grid.x.axisName.text ? (O(), C("text", {
1956
+ }, null, 8, gt)) : C("", !0),
1957
+ z.value.style.chart.grid.x.axisName.show && z.value.style.chart.grid.x.axisName.text ? (O(), w("text", {
1958
1958
  key: 6,
1959
1959
  ref_key: "xAxisLabel",
1960
- ref: yn,
1961
- x: W.value.left + W.value.width / 2,
1962
- y: W.value.chartHeight - 3,
1960
+ ref: bn,
1961
+ x: U.value.left + U.value.width / 2,
1962
+ y: U.value.chartHeight - 3,
1963
1963
  "font-size": z.value.style.chart.grid.x.axisName.fontSize,
1964
1964
  fill: z.value.style.chart.grid.x.axisName.color,
1965
1965
  "font-weight": z.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
1966
1966
  "text-anchor": "middle"
1967
- }, M(z.value.style.chart.grid.x.axisName.text), 9, _t)) : S("", !0),
1968
- z.value.style.chart.grid.y.axisName.show && z.value.style.chart.grid.y.axisName.text ? (O(), C("text", {
1967
+ }, M(z.value.style.chart.grid.x.axisName.text), 9, _t)) : C("", !0),
1968
+ z.value.style.chart.grid.y.axisName.show && z.value.style.chart.grid.y.axisName.text ? (O(), w("text", {
1969
1969
  key: 7,
1970
1970
  ref_key: "yAxisLabel",
1971
- ref: bn,
1972
- transform: `translate(${sr.value ? W.value.chartWidth - z.value.style.chart.grid.y.axisName.fontSize / 2 - z.value.style.chart.grid.y.axisName.offsetX : z.value.style.chart.grid.y.axisName.fontSize + z.value.style.chart.grid.y.axisName.offsetX}, ${W.value.top + W.value.height / 2}) rotate(-90)`,
1971
+ ref: xn,
1972
+ transform: `translate(${lr.value ? U.value.chartWidth - z.value.style.chart.grid.y.axisName.fontSize / 2 - z.value.style.chart.grid.y.axisName.offsetX : z.value.style.chart.grid.y.axisName.fontSize + z.value.style.chart.grid.y.axisName.offsetX}, ${U.value.top + U.value.height / 2}) rotate(-90)`,
1973
1973
  "font-size": z.value.style.chart.grid.y.axisName.fontSize,
1974
1974
  fill: z.value.style.chart.grid.y.axisName.color,
1975
1975
  "font-weight": z.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
1976
1976
  "text-anchor": "middle"
1977
- }, M(z.value.style.chart.grid.y.axisName.text), 9, vt)) : S("", !0),
1978
- z.value.style.chart.grid.frame.show ? (O(), C("rect", {
1977
+ }, M(z.value.style.chart.grid.y.axisName.text), 9, vt)) : C("", !0),
1978
+ z.value.style.chart.grid.frame.show ? (O(), w("rect", {
1979
1979
  key: 8,
1980
1980
  style: {
1981
1981
  pointerEvents: "none",
@@ -1983,72 +1983,72 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
1983
1983
  animation: "none !important"
1984
1984
  },
1985
1985
  x: X.value.left,
1986
- y: W.value.top,
1986
+ y: U.value.top,
1987
1987
  width: X.value.width,
1988
- height: W.value.height,
1988
+ height: U.value.height,
1989
1989
  fill: "transparent",
1990
1990
  stroke: z.value.style.chart.grid.frame.stroke,
1991
1991
  "stroke-width": z.value.style.chart.grid.frame.strokeWidth,
1992
1992
  "stroke-linecap": z.value.style.chart.grid.frame.strokeLinecap,
1993
1993
  "stroke-linejoin": z.value.style.chart.grid.frame.strokeLinejoin,
1994
1994
  "stroke-dasharray": z.value.style.chart.grid.frame.strokeDasharray
1995
- }, null, 8, yt)) : S("", !0),
1996
- (O(!0), C(y, null, A(Y.value, (e) => (O(), C(y, null, [z.value.style.chart.lines.useArea && !e.standalone ? (O(), C("path", {
1995
+ }, null, 8, yt)) : C("", !0),
1996
+ (O(!0), w(b, null, A(Y.value, (e) => (O(), w(b, null, [z.value.style.chart.lines.useArea && !e.standalone ? (O(), w("path", {
1997
1997
  key: 0,
1998
1998
  d: z.value.style.chart.lines.smooth ? e.smoothArea : e.straightArea,
1999
1999
  fill: t.$slots.pattern ? `url(#pattern_${I.value}_${e.absoluteIndex})` : z.value.style.chart.lines.gradient.show ? `url(#gradient_${e.id})` : e.color,
2000
2000
  opacity: z.value.style.chart.lines.areaOpacity,
2001
- class: E({ "vue-data-ui-transition": N(Ln) })
2002
- }, null, 10, bt)) : S("", !0)], 64))), 256)),
2003
- (O(!0), C(y, null, A(Y.value, (e) => (O(), C("path", {
2001
+ class: Je({ "vue-data-ui-transition": N(Rn) })
2002
+ }, null, 10, bt)) : C("", !0)], 64))), 256)),
2003
+ (O(!0), w(b, null, A(Y.value, (e) => (O(), w("path", {
2004
2004
  d: z.value.style.chart.lines.smooth ? e.smoothPath : e.straightPath,
2005
2005
  stroke: z.value.style.chart.lines.path.useSerieColor ? e.color : z.value.style.chart.lines.path.stroke,
2006
2006
  "stroke-width": z.value.style.chart.lines.strokeWidth,
2007
2007
  fill: "none",
2008
2008
  "stroke-linecap": "round",
2009
- class: E({ "vue-data-ui-transition": N(Ln) })
2009
+ class: Je({ "vue-data-ui-transition": N(Rn) })
2010
2010
  }, null, 10, xt))), 256)),
2011
- z.value.style.chart.grid.y.axisLabels.show && !z.value.style.chart.lines.distributed ? (O(), C("g", {
2011
+ z.value.style.chart.grid.y.axisLabels.show && !z.value.style.chart.lines.distributed ? (O(), w("g", {
2012
2012
  key: 9,
2013
2013
  ref_key: "scaleLabels",
2014
- ref: xn
2015
- }, [(O(!0), C(y, null, A(Lr.value, (e, t) => (O(), C("line", {
2014
+ ref: Sn
2015
+ }, [(O(!0), w(b, null, A(zr.value, (e, t) => (O(), w("line", {
2016
2016
  key: `ytick_${t}`,
2017
- class: E({ "vue-data-ui-transition": N(Ln) }),
2018
- x1: sr.value ? X.value.right : X.value.left,
2019
- x2: sr.value ? X.value.right + 6 : X.value.left - 6,
2017
+ class: Je({ "vue-data-ui-transition": N(Rn) }),
2018
+ x1: lr.value ? X.value.right : X.value.left,
2019
+ x2: lr.value ? X.value.right + 6 : X.value.left - 6,
2020
2020
  y1: e.y,
2021
2021
  y2: e.y,
2022
2022
  stroke: z.value.style.chart.grid.x.axisColor,
2023
2023
  "stroke-width": 1
2024
- }, null, 10, St))), 128)), (O(!0), C(y, null, A(Lr.value, (e, t) => (O(), C("text", {
2025
- class: E({ "vue-data-ui-transition": N(Ln) }),
2024
+ }, null, 10, St))), 128)), (O(!0), w(b, null, A(zr.value, (e, t) => (O(), w("text", {
2025
+ class: Je({ "vue-data-ui-transition": N(Rn) }),
2026
2026
  transform: `translate(${e.x}, ${e.y + z.value.style.chart.grid.y.axisLabels.fontSize / 3})`,
2027
2027
  "font-size": z.value.style.chart.grid.y.axisLabels.fontSize,
2028
2028
  "font-weight": z.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
2029
2029
  fill: z.value.style.chart.grid.y.axisLabels.color,
2030
- "text-anchor": sr.value ? "start" : "end"
2031
- }, M(N(v)(z.value.style.chart.grid.y.axisLabels.formatter, e.value, N(h)({
2030
+ "text-anchor": lr.value ? "start" : "end"
2031
+ }, M(N(y)(z.value.style.chart.grid.y.axisLabels.formatter, e.value, N(h)({
2032
2032
  p: z.value.style.chart.lines.dataLabels.prefix,
2033
2033
  v: e.value,
2034
2034
  s: z.value.style.chart.lines.dataLabels.suffix,
2035
2035
  r: z.value.style.chart.grid.y.axisLabels.rounding
2036
- }), { datapoint: e })), 11, Ct))), 256))], 512)) : S("", !0),
2037
- z.value.style.chart.grid.x.timeLabels.show ? (O(), C("g", {
2036
+ }), { datapoint: e })), 11, Ct))), 256))], 512)) : C("", !0),
2037
+ z.value.style.chart.grid.x.timeLabels.show ? (O(), w("g", {
2038
2038
  key: 10,
2039
2039
  ref_key: "timeLabelsEls",
2040
- ref: Sn
2041
- }, [t.$slots["time-label"] ? (O(), C("g", wt, [(O(!0), C(y, null, A(Ur.value, (e, n) => (O(), C("g", null, [j(t.$slots, "time-label", qe({ ref_for: !0 }, {
2042
- x: W.value.left + Er.value * n + Er.value / 2,
2043
- y: W.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY,
2040
+ ref: Cn
2041
+ }, [t.$slots["time-label"] ? (O(), w("g", wt, [(O(!0), w(b, null, A(Wr.value, (e, n) => (O(), w("g", null, [j(t.$slots, "time-label", Ke({ ref_for: !0 }, {
2042
+ x: U.value.left + Or.value * n + Or.value / 2,
2043
+ y: U.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY,
2044
2044
  fontSize: z.value.style.chart.grid.x.timeLabels.fontSize,
2045
2045
  fill: z.value.style.chart.grid.x.timeLabels.color,
2046
- transform: `translate(${W.value.left + Er.value * n + Er.value / 2}, ${W.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${z.value.style.chart.grid.x.timeLabels.rotation})`,
2046
+ transform: `translate(${U.value.left + Or.value * n + Or.value / 2}, ${U.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${z.value.style.chart.grid.x.timeLabels.rotation})`,
2047
2047
  absoluteIndex: e.absoluteIndex,
2048
2048
  content: e.text,
2049
2049
  textAnchor: z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
2050
2050
  show: !0
2051
- }), void 0, !0)]))), 256))])) : (O(), C("g", Tt, [(O(!0), C(y, null, A(Ur.value, (e, n) => (O(), C("g", null, [String(e.text).includes("\n") ? (O(), C("text", {
2051
+ }), void 0, !0)]))), 256))])) : (O(), w("g", Tt, [(O(!0), w(b, null, A(Wr.value, (e, n) => (O(), w("g", null, [String(e.text).includes("\n") ? (O(), w("text", {
2052
2052
  key: n + "-multi",
2053
2053
  "text-anchor": z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
2054
2054
  "font-size": z.value.style.chart.grid.x.timeLabels.fontSize,
@@ -2056,7 +2056,7 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
2056
2056
  transform: `
2057
2057
  translate(
2058
2058
  ${Q(n)},
2059
- ${W.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY}
2059
+ ${U.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY}
2060
2060
  ),
2061
2061
  rotate(${z.value.style.chart.grid.x.timeLabels.rotation})
2062
2062
  `,
@@ -2068,34 +2068,34 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
2068
2068
  x: 0,
2069
2069
  y: 0
2070
2070
  }),
2071
- onClick: () => bi(e, n)
2072
- }, null, 12, Dt)) : (O(), C("text", {
2071
+ onClick: () => xi(e, n)
2072
+ }, null, 12, Dt)) : (O(), w("text", {
2073
2073
  class: "vue-data-ui-time-label",
2074
2074
  key: n,
2075
2075
  "text-anchor": z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
2076
2076
  "font-size": z.value.style.chart.grid.x.timeLabels.fontSize,
2077
2077
  "font-weight": z.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
2078
2078
  fill: z.value.style.chart.grid.x.timeLabels.color,
2079
- transform: `translate(${Q(n)}, ${W.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${z.value.style.chart.grid.x.timeLabels.rotation})`,
2079
+ transform: `translate(${Q(n)}, ${U.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${z.value.style.chart.grid.x.timeLabels.rotation})`,
2080
2080
  style: Ye({ cursor: B.value ? "pointer" : "default" }),
2081
- onClick: () => bi(e, n)
2082
- }, M(e.text), 13, Et))]))), 256))]))], 512)) : S("", !0),
2083
- (vn.value || ![null, void 0].includes($.value)) && !z.value.style.chart.highlighter.useLine ? (O(!0), C(y, { key: 11 }, A(q.value.end - q.value.start, (e, t) => (O(), C("g", { key: `tooltip_trap_highlighter_${t}` }, [w("rect", {
2084
- x: di(t).x,
2085
- y: W.value.top,
2086
- height: W.value.height,
2087
- width: di(t).width,
2088
- fill: [Pn.value, $.value].includes(t) ? N(n)(z.value.style.chart.highlighter.color, z.value.style.chart.highlighter.opacity) : "transparent",
2081
+ onClick: () => xi(e, n)
2082
+ }, M(e.text), 13, Et))]))), 256))]))], 512)) : C("", !0),
2083
+ (yn.value || ![null, void 0].includes($.value)) && !z.value.style.chart.highlighter.useLine ? (O(!0), w(b, { key: 11 }, A(K.value.end - K.value.start, (e, t) => (O(), w("g", { key: `tooltip_trap_highlighter_${t}` }, [T("rect", {
2084
+ x: fi(t).x,
2085
+ y: U.value.top,
2086
+ height: U.value.height,
2087
+ width: fi(t).width,
2088
+ fill: [Fn.value, $.value].includes(t) ? N(a)(z.value.style.chart.highlighter.color, z.value.style.chart.highlighter.opacity) : "transparent",
2089
2089
  style: {
2090
2090
  transition: "none !important",
2091
2091
  animation: "none !important"
2092
2092
  }
2093
- }, null, 8, Ot)]))), 128)) : S("", !0),
2094
- (vn.value || ![null, void 0].includes($.value)) && z.value.style.chart.highlighter.useLine ? (O(), C(y, { key: 12 }, [![null, void 0].includes($.value) || ![null, void 0].includes(Pn.value) ? (O(), C("g", kt, [w("line", {
2095
- x1: Q(($.value ?? Pn.value) || 0),
2096
- x2: Q(($.value ?? Pn.value) || 0),
2097
- y1: N(ie)(W.value.top),
2098
- y2: N(ie)(W.value.bottom),
2093
+ }, null, 8, Ot)]))), 128)) : C("", !0),
2094
+ (yn.value || ![null, void 0].includes($.value)) && z.value.style.chart.highlighter.useLine ? (O(), w(b, { key: 12 }, [![null, void 0].includes($.value) || ![null, void 0].includes(Fn.value) ? (O(), w("g", kt, [T("line", {
2095
+ x1: Q(($.value ?? Fn.value) || 0),
2096
+ x2: Q(($.value ?? Fn.value) || 0),
2097
+ y1: N(se)(U.value.top),
2098
+ y2: N(se)(U.value.bottom),
2099
2099
  stroke: z.value.style.chart.highlighter.color,
2100
2100
  "stroke-width": z.value.style.chart.highlighter.lineWidth,
2101
2101
  "stroke-dasharray": z.value.style.chart.highlighter.lineDasharray,
@@ -2105,8 +2105,8 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
2105
2105
  animation: "none !important",
2106
2106
  "pointer-events": "none"
2107
2107
  }
2108
- }, null, 8, At)])) : S("", !0)], 64)) : S("", !0),
2109
- (O(!0), C(y, null, A(Y.value, (e) => (O(), C(y, { key: `shp_sel_${e.id}` }, [vn.value && q.value.end - q.value.start > z.value.style.chart.lines.dot.hideAboveMaxSerieLength ? (O(), C("g", jt, [$.value == null ? S("", !0) : (O(), C(y, { key: 0 }, [e.rel.includes($.value) && e.fullSeries?.[q.value.start + $.value] != null && !Number.isNaN(e.fullSeries?.[q.value.start + $.value]) ? (O(), x(Ae, {
2108
+ }, null, 8, At)])) : C("", !0)], 64)) : C("", !0),
2109
+ (O(!0), w(b, null, A(Y.value, (e) => (O(), w(b, { key: `shp_sel_${e.id}` }, [yn.value && K.value.end - K.value.start > z.value.style.chart.lines.dot.hideAboveMaxSerieLength ? (O(), w("g", jt, [$.value == null ? C("", !0) : (O(), w(b, { key: 0 }, [e.rel.includes($.value) && e.fullSeries?.[K.value.start + $.value] != null && !Number.isNaN(e.fullSeries?.[K.value.start + $.value]) ? (O(), S(ke, {
2110
2110
  key: 0,
2111
2111
  shape: [
2112
2112
  "triangle",
@@ -2118,14 +2118,14 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
2118
2118
  ].includes(e.shape) ? e.shape : "circle",
2119
2119
  color: z.value.style.chart.lines.dot.useSerieColor ? e.color : z.value.style.chart.lines.dot.fill,
2120
2120
  plot: {
2121
- x: N(_)(e.points[e.rel.indexOf($.value)].x),
2122
- y: N(_)(e.points[e.rel.indexOf($.value)].y)
2121
+ x: N(v)(e.points[e.rel.indexOf($.value)].x),
2122
+ y: N(v)(e.points[e.rel.indexOf($.value)].y)
2123
2123
  },
2124
2124
  radius: z.value.style.chart.lines.dot.radius * 1.3,
2125
2125
  stroke: z.value.style.chart.lines.dot.useSerieColor ? z.value.style.chart.lines.dot.stroke : e.color,
2126
2126
  strokeWidth: z.value.style.chart.lines.dot.strokeWidth,
2127
- still: N(zn),
2128
- class: E({ "vue-data-ui-transition": N(Ln) })
2127
+ still: N(Bn),
2128
+ class: Je({ "vue-data-ui-transition": N(Rn) })
2129
2129
  }, null, 8, [
2130
2130
  "shape",
2131
2131
  "color",
@@ -2135,8 +2135,8 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
2135
2135
  "strokeWidth",
2136
2136
  "still",
2137
2137
  "class"
2138
- ])) : S("", !0)], 64))])) : S("", !0)], 64))), 128)),
2139
- (O(!0), C(y, null, A(Y.value, (e) => (O(), C(y, { key: `shp_${e.id}` }, [q.value.end - q.value.start < z.value.style.chart.lines.dot.hideAboveMaxSerieLength ? (O(!0), C(y, { key: 0 }, A(e.points, (t, n) => (O(), C("g", { key: `shp_${e.id}_${q.value.start + n}` }, [e.fullSeries?.[q.value.start + e.rel[n]] != null && !Number.isNaN(e.fullSeries?.[q.value.start + e.rel[n]]) ? (O(), x(Ae, {
2138
+ ])) : C("", !0)], 64))])) : C("", !0)], 64))), 128)),
2139
+ (O(!0), w(b, null, A(Y.value, (e) => (O(), w(b, { key: `shp_${e.id}` }, [K.value.end - K.value.start < z.value.style.chart.lines.dot.hideAboveMaxSerieLength ? (O(!0), w(b, { key: 0 }, A(e.points, (t, n) => (O(), w("g", { key: `shp_${e.id}_${K.value.start + n}` }, [e.fullSeries?.[K.value.start + e.rel[n]] != null && !Number.isNaN(e.fullSeries?.[K.value.start + e.rel[n]]) ? (O(), S(ke, {
2140
2140
  key: 0,
2141
2141
  shape: [
2142
2142
  "triangle",
@@ -2151,11 +2151,11 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
2151
2151
  x: t.x,
2152
2152
  y: t.y
2153
2153
  },
2154
- radius: vn.value && $.value === e.rel[n] ? z.value.style.chart.lines.dot.radius * 1.3 : z.value.style.chart.lines.dot.radius,
2154
+ radius: yn.value && $.value === e.rel[n] ? z.value.style.chart.lines.dot.radius * 1.3 : z.value.style.chart.lines.dot.radius,
2155
2155
  stroke: z.value.style.chart.lines.dot.useSerieColor ? z.value.style.chart.lines.dot.stroke : e.color,
2156
2156
  strokeWidth: z.value.style.chart.lines.dot.strokeWidth,
2157
- still: N(zn),
2158
- class: E({ "vue-data-ui-transition": N(Ln) })
2157
+ still: N(Bn),
2158
+ class: Je({ "vue-data-ui-transition": N(Rn) })
2159
2159
  }, null, 8, [
2160
2160
  "shape",
2161
2161
  "color",
@@ -2165,80 +2165,80 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
2165
2165
  "strokeWidth",
2166
2166
  "still",
2167
2167
  "class"
2168
- ])) : S("", !0)]))), 128)) : S("", !0)], 64))), 128)),
2169
- H.value.dataLabels.show && z.value.style.chart.lines.dataLabels.hideAboveMaxSerieLength > q.value.end - q.value.start ? (O(), C(y, { key: 13 }, [(O(!0), C(y, null, A(Y.value, (e, t) => (O(), C("g", { key: `dl_${e.id}` }, [(O(!0), C(y, null, A(e.points, (n, r) => (O(), C(y, { key: `dp_${e.id}_${q.value.start + r}` }, [Xi(e.series[r], e.proportions[r]) ? (O(), C("text", {
2168
+ ])) : C("", !0)]))), 128)) : C("", !0)], 64))), 128)),
2169
+ V.value.dataLabels.show && z.value.style.chart.lines.dataLabels.hideAboveMaxSerieLength > K.value.end - K.value.start ? (O(), w(b, { key: 13 }, [(O(!0), w(b, null, A(Y.value, (e, t) => (O(), w("g", { key: `dl_${e.id}` }, [(O(!0), w(b, null, A(e.points, (n, r) => (O(), w(b, { key: `dp_${e.id}_${K.value.start + r}` }, [Zi(e.series[r], e.proportions[r]) ? (O(), w("text", {
2170
2170
  key: 0,
2171
- class: E({ "vue-data-ui-transition": N(Ln) }),
2171
+ class: Je({ "vue-data-ui-transition": N(Rn) }),
2172
2172
  transform: `translate(${n.x}, ${n.y + (e.series[r] >= 0 ? -z.value.style.chart.lines.dataLabels.fontSize / 2 + z.value.style.chart.lines.dataLabels.offsetY : z.value.style.chart.lines.dataLabels.fontSize * 1.2 - z.value.style.chart.lines.dataLabels.offsetY)})`,
2173
2173
  "font-size": z.value.style.chart.lines.dataLabels.fontSize,
2174
2174
  fill: z.value.style.chart.lines.dataLabels.color,
2175
2175
  "font-weight": z.value.style.chart.lines.dataLabels.bold ? "bold" : "normal",
2176
2176
  "text-anchor": "middle"
2177
- }, M(z.value.style.chart.lines.showDistributedPercentage && z.value.style.chart.lines.distributed ? $i(e.proportions[r] * 100, e, t, e.rel[r]) : Qi(e.series[r], e, t, e.rel[r], e.signedSeries[r])), 11, Mt)) : S("", !0)], 64))), 128))]))), 128)), z.value.style.chart.lines.totalValues.show && Y.value.length > 1 ? (O(), C("g", {
2177
+ }, M(z.value.style.chart.lines.showDistributedPercentage && z.value.style.chart.lines.distributed ? ea(e.proportions[r] * 100, e, t, e.rel[r]) : $i(e.series[r], e, t, e.rel[r], e.signedSeries[r])), 11, Mt)) : C("", !0)], 64))), 128))]))), 128)), z.value.style.chart.lines.totalValues.show && Y.value.length > 1 ? (O(), w("g", {
2178
2178
  key: 0,
2179
2179
  ref_key: "sumTop",
2180
- ref: Cn
2181
- }, [(O(!0), C(y, null, A(Pr.value, (e, t) => (O(), C(y, { key: `total_l_${t + q.value.start}` }, [!z.value.style.chart.lines.dataLabels.hideEmptyValues || e.value !== 0 ? (O(), C("text", {
2180
+ ref: wn
2181
+ }, [(O(!0), w(b, null, A(Ir.value, (e, t) => (O(), w(b, { key: `total_l_${t + K.value.start}` }, [!z.value.style.chart.lines.dataLabels.hideEmptyValues || e.value !== 0 ? (O(), w("text", {
2182
2182
  key: 0,
2183
- class: E({ "vue-data-ui-transition": N(Ln) }),
2184
- transform: `translate(${Q(t)}, ${Ir(t)})`,
2183
+ class: Je({ "vue-data-ui-transition": N(Rn) }),
2184
+ transform: `translate(${Q(t)}, ${Rr(t)})`,
2185
2185
  "text-anchor": "middle",
2186
2186
  "font-size": z.value.style.chart.lines.totalValues.fontSize,
2187
2187
  "font-weight": z.value.style.chart.lines.totalValues.bold ? "bold" : "normal",
2188
2188
  fill: z.value.style.chart.lines.totalValues.color
2189
- }, M(Qi(e.value, e, t, t, e.sign)), 11, Nt)) : S("", !0)], 64))), 128))], 512)) : S("", !0)], 64)) : S("", !0),
2190
- br.value ? (O(), C("rect", qe({ key: 14 }, hr.value, {
2191
- "data-start": q.value.start,
2192
- "data-end": q.value.end
2193
- }), null, 16, Pt)) : S("", !0),
2189
+ }, M($i(e.value, e, t, t, e.sign)), 11, Nt)) : C("", !0)], 64))), 128))], 512)) : C("", !0)], 64)) : C("", !0),
2190
+ Sr.value ? (O(), w("rect", Ke({ key: 14 }, _r.value, {
2191
+ "data-start": K.value.start,
2192
+ "data-end": K.value.end
2193
+ }), null, 16, Pt)) : C("", !0),
2194
2194
  j(t.$slots, "svg", { svg: {
2195
- drawingArea: W.value,
2195
+ drawingArea: U.value,
2196
2196
  data: Y.value,
2197
- isPrintingImg: N(Xn) || N(Zn) || N(Pi),
2198
- isPrintingSvg: N(Fi)
2197
+ isPrintingImg: N(Qn) || N($n) || N(Fi),
2198
+ isPrintingSvg: N(Ii)
2199
2199
  } }, void 0, !0)
2200
- ], 46, lt)), t.$slots.hint ? (O(), C("div", Ft, [j(t.$slots, "hint", D(T({
2200
+ ], 46, lt)), t.$slots.hint ? (O(), w("div", Ft, [j(t.$slots, "hint", D(E({
2201
2201
  hint: z.value.a11y.translations.keyboardNavigation,
2202
- isVisible: na.value
2203
- })), void 0, !0)])) : S("", !0)]),
2204
- t.$slots.watermark ? (O(), C("div", It, [j(t.$slots, "watermark", D(T({ isPrinting: N(Xn) || N(Zn) || N(Pi) || N(Fi) })), void 0, !0)])) : S("", !0),
2205
- hn.value && (z.value.style.chart.legend.show || t.$slots.legend) ? (O(), x(He, {
2202
+ isVisible: ra.value
2203
+ })), void 0, !0)])) : C("", !0)]),
2204
+ t.$slots.watermark ? (O(), w("div", It, [j(t.$slots, "watermark", D(E({ isPrinting: N(Qn) || N($n) || N(Fi) || N(Ii) })), void 0, !0)])) : C("", !0),
2205
+ gn.value && (z.value.style.chart.legend.show || t.$slots.legend) ? (O(), S(Ve, {
2206
2206
  key: 6,
2207
2207
  to: z.value.style.chart.legend.position === "top" ? `#legend-top-${I.value}` : `#legend-bottom-${I.value}`
2208
- }, [w("div", {
2208
+ }, [T("div", {
2209
2209
  ref_key: "chartLegend",
2210
- ref: on
2211
- }, [j(t.$slots, "legend", { legend: Ci.value }, () => [z.value.style.chart.legend.show ? (O(), x(Be, {
2210
+ ref: sn
2211
+ }, [j(t.$slots, "legend", { legend: wi.value }, () => [z.value.style.chart.legend.show ? (O(), S(ze, {
2212
2212
  key: 0,
2213
- legendSet: Ci.value,
2214
- config: wi.value,
2213
+ legendSet: wi.value,
2214
+ config: Ti.value,
2215
2215
  isCursorPointer: B.value,
2216
2216
  onClickMarker: r[0] ||= ({ legend: e }) => e.segregate()
2217
- }, Ue({
2218
- item: P(({ legend: e }) => [N(zn) ? S("", !0) : (O(), C("div", {
2217
+ }, He({
2218
+ item: P(({ legend: e }) => [N(Bn) ? C("", !0) : (O(), w("div", {
2219
2219
  key: 0,
2220
2220
  onClick: (t) => e.segregate(),
2221
2221
  style: Ye(`opacity:${L.value.includes(e.id) ? .5 : 1}`)
2222
2222
  }, M(e.name), 13, Lt))]),
2223
- legendToggle: P(() => [Ci.value.length > 2 && z.value.style.chart.legend.selectAllToggle.show && !N(zn) ? (O(), x(Ie, {
2223
+ legendToggle: P(() => [wi.value.length > 2 && z.value.style.chart.legend.selectAllToggle.show && !N(Bn) ? (O(), S(Fe, {
2224
2224
  key: 0,
2225
2225
  backgroundColor: z.value.style.chart.legend.selectAllToggle.backgroundColor,
2226
2226
  color: z.value.style.chart.legend.selectAllToggle.color,
2227
2227
  fontSize: z.value.style.chart.legend.fontSize,
2228
2228
  checked: L.value.length > 0,
2229
2229
  isCursorPointer: B.value,
2230
- onToggle: xi
2230
+ onToggle: Si
2231
2231
  }, null, 8, [
2232
2232
  "backgroundColor",
2233
2233
  "color",
2234
2234
  "fontSize",
2235
2235
  "checked",
2236
2236
  "isCursorPointer"
2237
- ])) : S("", !0)]),
2237
+ ])) : C("", !0)]),
2238
2238
  _: 2
2239
2239
  }, [t.$slots.pattern ? {
2240
2240
  name: "legend-pattern",
2241
- fn: P(({ legend: e, index: t }) => [Ge(Ae, {
2241
+ fn: P(({ legend: e, index: t }) => [We(ke, {
2242
2242
  shape: e.shape,
2243
2243
  radius: 30,
2244
2244
  stroke: "none",
@@ -2253,24 +2253,28 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
2253
2253
  "legendSet",
2254
2254
  "config",
2255
2255
  "isCursorPointer"
2256
- ])) : S("", !0)], !0)], 512)], 8, ["to"])) : S("", !0),
2257
- en.value && z.value.userOptions.buttons.table ? (O(), x(Qe(zi.value.component), qe({ key: 7 }, zi.value.props, {
2256
+ ])) : C("", !0)], !0)], 512)], 8, ["to"])) : C("", !0),
2257
+ tn.value && z.value.userOptions.buttons.table ? (O(), S(Qe(Bi.value.component), Ke({ key: 7 }, Bi.value.props, {
2258
2258
  ref_key: "tableUnit",
2259
- ref: gn,
2260
- onClose: Bi
2261
- }), Ue({
2262
- content: P(() => [Ge(N(Wt), {
2263
- colNames: Ai.value.colNames,
2264
- head: Ai.value.head,
2265
- body: Ai.value.body,
2266
- config: Ai.value.config,
2267
- title: z.value.table.useDialog ? "" : zi.value.title,
2259
+ ref: _n,
2260
+ onClose: Vi
2261
+ }), He({
2262
+ content: P(() => [We(N(Gt), {
2263
+ colNames: ji.value.colNames,
2264
+ head: ji.value.head,
2265
+ body: ji.value.body,
2266
+ config: ji.value.config,
2267
+ title: z.value.table.useDialog ? "" : Bi.value.title,
2268
2268
  withCloseButton: !z.value.table.useDialog,
2269
2269
  isCursorPointer: B.value,
2270
- onClose: Bi
2270
+ onClose: Vi
2271
2271
  }, {
2272
- th: P(({ th: e }) => [w("div", { innerHTML: e }, null, 8, Rt)]),
2273
- td: P(({ td: e }) => [We(M(isNaN(Number(e)) ? e : N(h)({
2272
+ th: P(({ th: e }) => [e === "__SUM__" ? (O(), w("div", Rt, [We(N(Ut), {
2273
+ name: "sigma",
2274
+ stroke: ji.value.config.th.color,
2275
+ size: 16
2276
+ }, null, 8, ["stroke"])])) : (O(), w("div", zt, M(e), 1))]),
2277
+ td: P(({ td: e }) => [Ue(M(isNaN(Number(e)) ? e : N(h)({
2274
2278
  p: z.value.style.chart.lines.dataLabels.prefix,
2275
2279
  v: e,
2276
2280
  s: z.value.style.chart.lines.dataLabels.suffix,
@@ -2289,45 +2293,45 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
2289
2293
  _: 2
2290
2294
  }, [z.value.table.useDialog ? {
2291
2295
  name: "title",
2292
- fn: P(() => [We(M(zi.value.title), 1)]),
2296
+ fn: P(() => [Ue(M(Bi.value.title), 1)]),
2293
2297
  key: "0"
2294
2298
  } : void 0, z.value.table.useDialog ? {
2295
2299
  name: "actions",
2296
- fn: P(() => [w("button", {
2300
+ fn: P(() => [T("button", {
2297
2301
  tabindex: "0",
2298
2302
  class: "vue-ui-user-options-button",
2299
- onClick: r[1] ||= (e) => ki(z.value.userOptions.callbacks.csv),
2303
+ onClick: r[1] ||= (e) => Ai(z.value.userOptions.callbacks.csv),
2300
2304
  style: Ye({ cursor: B.value ? "pointer" : "default" })
2301
- }, [Ge(N(Ht), {
2305
+ }, [We(N(Ut), {
2302
2306
  name: "fileCsv",
2303
- stroke: zi.value.props.color
2307
+ stroke: Bi.value.props.color
2304
2308
  }, null, 8, ["stroke"])], 4)]),
2305
2309
  key: "1"
2306
- } : void 0]), 1040)) : S("", !0),
2307
- z.value.style.chart.zoom.show && en.value && Qr.value && K.value > 6 ? (O(), x(Fe, {
2310
+ } : void 0]), 1040)) : C("", !0),
2311
+ z.value.style.chart.zoom.show && tn.value && $r.value && G.value > 6 ? (O(), S(Pe, {
2308
2312
  key: 8,
2309
2313
  ref_key: "chartSlicer",
2310
- ref: sn,
2314
+ ref: cn,
2311
2315
  "data-dom-to-png-ignore-layout": "",
2312
- allMinimaps: Ar.value,
2316
+ allMinimaps: Mr.value,
2313
2317
  background: z.value.style.chart.zoom.color,
2314
2318
  borderColor: z.value.style.chart.backgroundColor,
2315
2319
  customFormat: z.value.style.chart.zoom.customFormat,
2316
2320
  cutNullValues: !1,
2317
2321
  enableRangeHandles: z.value.style.chart.zoom.enableRangeHandles,
2318
2322
  enableSelectionDrag: z.value.style.chart.zoom.enableSelectionDrag,
2319
- end: q.value.end,
2323
+ end: K.value.end,
2320
2324
  focusOnDrag: z.value.style.chart.zoom.focusOnDrag,
2321
2325
  focusRangeRatio: z.value.style.chart.zoom.focusRangeRatio,
2322
2326
  fontSize: z.value.style.chart.zoom.fontSize,
2323
2327
  immediate: !z.value.style.chart.zoom.preview.enable,
2324
2328
  inputColor: z.value.style.chart.zoom.color,
2325
- isPreview: br.value,
2326
- labelLeft: z.value.style.chart.grid.x.timeLabels.values[q.value.start] ? Rr.value?.[0]?.text ?? "" : "",
2327
- labelRight: z.value.style.chart.grid.x.timeLabels.values[q.value.end - 1] ? Rr.value?.at(-1)?.text ?? "" : "",
2329
+ isPreview: Sr.value,
2330
+ labelLeft: z.value.style.chart.grid.x.timeLabels.values[K.value.start] ? J.value?.[0]?.text ?? "" : "",
2331
+ labelRight: z.value.style.chart.grid.x.timeLabels.values[K.value.end - 1] ? J.value?.at(-1)?.text ?? "" : "",
2328
2332
  max: Math.max(...e.dataset.map((e) => e.series.length)),
2329
2333
  min: 0,
2330
- minimap: kr.value,
2334
+ minimap: jr.value,
2331
2335
  minimapCompact: z.value.style.chart.zoom.minimap.compact,
2332
2336
  minimapFrameColor: z.value.style.chart.zoom.minimap.frameColor,
2333
2337
  minimapIndicatorColor: z.value.style.chart.zoom.minimap.indicatorColor,
@@ -2336,22 +2340,22 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
2336
2340
  minimapSelectedColorOpacity: z.value.style.chart.zoom.minimap.selectedColorOpacity,
2337
2341
  minimapSelectedIndex: $.value,
2338
2342
  minimapSelectionRadius: 1,
2339
- preciseLabels: qr.value.length ? qr.value : zr.value,
2343
+ preciseLabels: Jr.value.length ? Jr.value : Br.value,
2340
2344
  refreshEndPoint: z.value.style.chart.zoom.endIndex === null ? Math.max(...e.dataset.map((e) => e.series.length)) : z.value.style.chart.zoom.endIndex + 1,
2341
2345
  refreshStartPoint: z.value.style.chart.zoom.startIndex === null ? 0 : z.value.style.chart.zoom.startIndex,
2342
2346
  selectColor: z.value.style.chart.zoom.highlightColor,
2343
- selectedSeries: qi.value,
2347
+ selectedSeries: Ji.value,
2344
2348
  smoothMinimap: !1,
2345
- start: q.value.start,
2349
+ start: K.value.start,
2346
2350
  textColor: z.value.style.chart.color,
2347
- timeLabels: zr.value,
2351
+ timeLabels: Br.value,
2348
2352
  usePreciseLabels: z.value.style.chart.grid.x.timeLabels.datetimeFormatter.enable && !z.value.style.chart.zoom.useDefaultFormat,
2349
- valueEnd: q.value.end,
2350
- valueStart: q.value.start,
2353
+ valueEnd: K.value.end,
2354
+ valueStart: K.value.start,
2351
2355
  verticalHandles: z.value.style.chart.zoom.minimap.verticalHandles,
2352
2356
  maxWidth: z.value.style.chart.zoom.maxWidth,
2353
- minimapLeftInsetRatio: W.value.chartWidth > 0 && z.value.style.chart.zoom.autoFit ? W.value.left / W.value.chartWidth : null,
2354
- minimapRightInsetRatio: W.value.chartWidth > 0 && z.value.style.chart.zoom.autoFit ? (W.value.chartWidth - W.value.right) / W.value.chartWidth : null,
2357
+ minimapLeftInsetRatio: U.value.chartWidth > 0 && z.value.style.chart.zoom.autoFit ? U.value.left / U.value.chartWidth : null,
2358
+ minimapRightInsetRatio: U.value.chartWidth > 0 && z.value.style.chart.zoom.autoFit ? (U.value.chartWidth - U.value.right) / U.value.chartWidth : null,
2355
2359
  isCursorPointer: B.value,
2356
2360
  additionalMinimapHeight: z.value.style.chart.zoom.minimap.additionalHeight,
2357
2361
  handleType: z.value.style.chart.zoom.minimap.handleType,
@@ -2360,25 +2364,25 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
2360
2364
  handleBorderColor: z.value.style.chart.zoom.minimap.handleBorderColor,
2361
2365
  handleFill: z.value.style.chart.zoom.minimap.handleFill,
2362
2366
  handleWidth: z.value.style.chart.zoom.minimap.handleWidth,
2363
- "onUpdate:end": ni,
2364
- "onUpdate:start": ti,
2365
- onTrapMouse: vr,
2366
- onReset: r[2] ||= () => Tr({ force: !0 }),
2367
- onFutureEnd: r[3] ||= (e) => xr("end", e),
2368
- onFutureStart: r[4] ||= (e) => xr("start", e)
2367
+ "onUpdate:end": ri,
2368
+ "onUpdate:start": ni,
2369
+ onTrapMouse: br,
2370
+ onReset: r[2] ||= () => Dr({ force: !0 }),
2371
+ onFutureEnd: r[3] ||= (e) => Cr("end", e),
2372
+ onFutureStart: r[4] ||= (e) => Cr("start", e)
2369
2373
  }, {
2370
- "reset-action": P(({ reset: e }) => [j(t.$slots, "reset-action", D(T({ reset: e })), void 0, !0)]),
2371
- slotMap: P(({ width: e, height: t, unitW: n }) => [w("g", { innerHTML: Yi({
2374
+ "reset-action": P(({ reset: e }) => [j(t.$slots, "reset-action", D(E({ reset: e })), void 0, !0)]),
2375
+ slotMap: P(({ width: e, height: t, unitW: n }) => [T("g", { innerHTML: Xi({
2372
2376
  minimapW: e,
2373
2377
  minimapH: t,
2374
2378
  unitW: n
2375
- }) }, null, 8, zt)]),
2379
+ }) }, null, 8, Bt)]),
2376
2380
  _: 3
2377
- }, 8, /* @__PURE__ */ "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.minimapLeftInsetRatio.minimapRightInsetRatio.isCursorPointer.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth".split("."))) : S("", !0),
2378
- w("div", { id: `legend-bottom-${I.value}` }, null, 8, Bt),
2379
- Ge(N(Vt), {
2381
+ }, 8, /* @__PURE__ */ "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.minimapLeftInsetRatio.minimapRightInsetRatio.isCursorPointer.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth".split("."))) : C("", !0),
2382
+ T("div", { id: `legend-bottom-${I.value}` }, null, 8, Vt),
2383
+ We(N(Ht), {
2380
2384
  teleportTo: z.value.style.chart.tooltip.teleportTo,
2381
- show: H.value.showTooltip && nn.value,
2385
+ show: V.value.showTooltip && rn.value,
2382
2386
  backgroundColor: z.value.style.chart.tooltip.backgroundColor,
2383
2387
  color: z.value.style.chart.tooltip.color,
2384
2388
  fontSize: z.value.style.chart.tooltip.fontSize,
@@ -2389,20 +2393,20 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
2389
2393
  position: z.value.style.chart.tooltip.position,
2390
2394
  offsetX: z.value.style.chart.tooltip.offsetX,
2391
2395
  offsetY: z.value.style.chart.tooltip.offsetY,
2392
- parent: tn.value,
2393
- content: vi.value,
2394
- isFullscreen: un.value,
2396
+ parent: nn.value,
2397
+ content: yi.value,
2398
+ isFullscreen: dn.value,
2395
2399
  isCustom: z.value.style.chart.tooltip.customFormat && typeof z.value.style.chart.tooltip.customFormat == "function",
2396
2400
  smooth: z.value.style.chart.tooltip.smooth,
2397
2401
  backdropFilter: z.value.style.chart.tooltip.backdropFilter,
2398
2402
  smoothForce: z.value.style.chart.tooltip.smoothForce,
2399
2403
  smoothSnapThreshold: z.value.style.chart.tooltip.smoothSnapThreshold,
2400
- isA11yMode: kn.value === "keyboard",
2401
- a11yPosition: On.value
2404
+ isA11yMode: An.value === "keyboard",
2405
+ a11yPosition: kn.value
2402
2406
  }, {
2403
- "tooltip-before": P(() => [j(t.$slots, "tooltip-before", D(T({ ...Xr.value })), void 0, !0)]),
2404
- tooltip: P(() => [j(t.$slots, "tooltip", D(T({ ...Xr.value })), void 0, !0)]),
2405
- "tooltip-after": P(() => [j(t.$slots, "tooltip-after", D(T({ ...Xr.value })), void 0, !0)]),
2407
+ "tooltip-before": P(() => [j(t.$slots, "tooltip-before", D(E({ ...Zr.value })), void 0, !0)]),
2408
+ tooltip: P(() => [j(t.$slots, "tooltip", D(E({ ...Zr.value })), void 0, !0)]),
2409
+ "tooltip-after": P(() => [j(t.$slots, "tooltip-after", D(E({ ...Zr.value })), void 0, !0)]),
2406
2410
  _: 3
2407
2411
  }, 8, [
2408
2412
  "teleportTo",
@@ -2428,15 +2432,15 @@ var it = /* @__PURE__ */ e({ default: () => Vt }), at = ["id"], ot = ["id"], st
2428
2432
  "isA11yMode",
2429
2433
  "a11yPosition"
2430
2434
  ]),
2431
- t.$slots.source ? (O(), C("div", {
2435
+ t.$slots.source ? (O(), w("div", {
2432
2436
  key: 9,
2433
2437
  ref_key: "source",
2434
- ref: ln,
2438
+ ref: un,
2435
2439
  dir: "auto"
2436
- }, [j(t.$slots, "source", {}, void 0, !0)], 512)) : S("", !0),
2437
- j(t.$slots, "skeleton", {}, () => [N(zn) ? (O(), x(xe, { key: 0 })) : S("", !0)], !0)
2440
+ }, [j(t.$slots, "source", {}, void 0, !0)], 512)) : C("", !0),
2441
+ j(t.$slots, "skeleton", {}, () => [N(Bn) ? (O(), S(be, { key: 0 })) : C("", !0)], !0)
2438
2442
  ], 46, at));
2439
2443
  }
2440
- }, [["__scopeId", "data-v-deca57cf"]]);
2444
+ }, [["__scopeId", "data-v-682d61ea"]]);
2441
2445
  //#endregion
2442
- export { it as n, Vt as t };
2446
+ export { it as n, Ht as t };