vue-data-ui 3.22.5 → 3.22.7

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 (185) hide show
  1. package/dist/{Arrow-CgzmXCW_.js → Arrow-DaGI9u-b.js} +1 -1
  2. package/dist/{BaseDraggableDialog-DjzNWkiE.js → BaseDraggableDialog-1wwwdwV2.js} +2 -2
  3. package/dist/{BaseIcon-xBuW2jjI.js → BaseIcon-_-BX7be3.js} +1 -1
  4. package/dist/{BaseLegendToggle-C4Usj0LI.js → BaseLegendToggle-CHnlKalt.js} +1 -1
  5. package/dist/{BaseZoomControls-Cg9o2J-q.js → BaseZoomControls-C9bdZSCj.js} +2 -2
  6. package/dist/{ColorPicker-Usv7badH.js → ColorPicker-TB3KhY3j.js} +2 -2
  7. package/dist/{DataTable-PidUPOit.js → DataTable-CVF7DoZn.js} +2 -2
  8. package/dist/{Legend-DXOzbXb-.js → Legend-kAr7Vqqu.js} +2 -2
  9. package/dist/{NonSvgPenAndPaper-OIs8I25K.js → NonSvgPenAndPaper-CEiv7_gM.js} +3 -3
  10. package/dist/{PackageVersion-CqE8ssFu.js → PackageVersion-Dse0n05o.js} +1 -1
  11. package/dist/{PenAndPaper-ISUbDKXq.js → PenAndPaper-gaV1QPpP.js} +3 -3
  12. package/dist/{Shape-BnF9aMPX.js → Shape-CiQIxyyT.js} +1 -1
  13. package/dist/{Slicer-hEvKOLw3.js → Slicer-6FOtg9py.js} +2 -2
  14. package/dist/{SlicerPreview-BDI-aCXE.js → SlicerPreview-DUywypFu.js} +2 -2
  15. package/dist/{SparkTooltip-DaWSTzfA.js → SparkTooltip-B-qsPj68.js} +1 -1
  16. package/dist/{Title-DDEEO-Nr.js → Title-PiTKr6sp.js} +1 -1
  17. package/dist/{Tooltip-BhKov422.js → Tooltip-B8yYfISA.js} +1 -1
  18. package/dist/{UserOptions-BxT1XHzN.js → UserOptions-BL9VlHop.js} +2 -2
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-history-plot.js +1 -1
  46. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  47. package/dist/components/vue-ui-icon.js +1 -1
  48. package/dist/components/vue-ui-kpi.js +1 -1
  49. package/dist/components/vue-ui-mini-loader.js +1 -1
  50. package/dist/components/vue-ui-molecule.js +1 -1
  51. package/dist/components/vue-ui-mood-radar.js +1 -1
  52. package/dist/components/vue-ui-nested-donuts.js +1 -1
  53. package/dist/components/vue-ui-onion.js +1 -1
  54. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  55. package/dist/components/vue-ui-quadrant.js +1 -1
  56. package/dist/components/vue-ui-quick-chart.js +1 -1
  57. package/dist/components/vue-ui-radar.js +1 -1
  58. package/dist/components/vue-ui-rating.js +1 -1
  59. package/dist/components/vue-ui-relation-circle.js +1 -1
  60. package/dist/components/vue-ui-ridgeline.js +1 -1
  61. package/dist/components/vue-ui-rings.js +1 -1
  62. package/dist/components/vue-ui-scatter.js +1 -1
  63. package/dist/components/vue-ui-skeleton.js +1 -1
  64. package/dist/components/vue-ui-smiley.js +1 -1
  65. package/dist/components/vue-ui-spark-trend.js +1 -1
  66. package/dist/components/vue-ui-sparkbar.js +1 -1
  67. package/dist/components/vue-ui-sparkgauge.js +1 -1
  68. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  69. package/dist/components/vue-ui-sparkline.js +1 -1
  70. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  71. package/dist/components/vue-ui-stackbar.js +1 -1
  72. package/dist/components/vue-ui-stackline.js +1 -1
  73. package/dist/components/vue-ui-strip-plot.js +1 -1
  74. package/dist/components/vue-ui-table-heatmap.js +1 -1
  75. package/dist/components/vue-ui-table-sparkline.js +1 -1
  76. package/dist/components/vue-ui-table.js +1 -1
  77. package/dist/components/vue-ui-thermometer.js +1 -1
  78. package/dist/components/vue-ui-timer.js +1 -1
  79. package/dist/components/vue-ui-tiremarks.js +1 -1
  80. package/dist/components/vue-ui-treemap.js +1 -1
  81. package/dist/components/vue-ui-vertical-bar.js +1 -1
  82. package/dist/components/vue-ui-waffle.js +1 -1
  83. package/dist/components/vue-ui-wheel.js +1 -1
  84. package/dist/components/vue-ui-word-cloud.js +1 -1
  85. package/dist/components/vue-ui-world.js +1 -1
  86. package/dist/components/vue-ui-xy-canvas.js +1 -1
  87. package/dist/components/vue-ui-xy.js +1 -1
  88. package/dist/{dom-to-png-ZOysoMwu.js → dom-to-png-BZjYWNEg.js} +1 -1
  89. package/dist/{exposedLib-C2U48XK7.js → exposedLib-Be0ifkti.js} +1 -1
  90. package/dist/{img-B29J8tV5.js → img-B_abIg0o.js} +1 -1
  91. package/dist/{labelUtils-BFcL_t-A.js → labelUtils-CTDRZdP1.js} +1 -1
  92. package/dist/{lib-CuwHGt1j.js → lib-EAmk-PgA.js} +19 -9
  93. package/dist/{package-YOcaZtwF.js → package-DeMimPej.js} +1 -1
  94. package/dist/{pdf-ymYt9Lee.js → pdf-B6qrdEqB.js} +1 -1
  95. package/dist/{render-common-B80rr2N_.js → render-common-DMai0gHB.js} +22 -22
  96. package/dist/ssr/vue-ui-donut.js +1 -1
  97. package/dist/ssr/vue-ui-xy.js +1 -1
  98. package/dist/ssr.js +2 -2
  99. package/dist/style.css +1 -1
  100. package/dist/types/vue-data-ui.d.ts +13 -0
  101. package/dist/types/vue-ui-treemap.d.ts +3 -0
  102. package/dist/{useAutoSizeLabelsInsideViewbox-DzAZ-MeY.js → useAutoSizeLabelsInsideViewbox-CyOGrdD_.js} +1 -1
  103. package/dist/{useConfig-pVLia3dt.js → useConfig-DYM3f6EI.js} +5 -3
  104. package/dist/{useNestedProp-BjkuFaz1.js → useNestedProp-D8XqxgOU.js} +1 -1
  105. package/dist/{useObjectBindings-C1XuDxFr.js → useObjectBindings-CD31syQb.js} +1 -1
  106. package/dist/{usePrinter-C0wAS8yc.js → usePrinter-DnGzpp6Q.js} +2 -2
  107. package/dist/utils.js +10 -10
  108. package/dist/{vue-data-ui-mqURXOql.js → vue-data-ui-D6qVWloL.js} +68 -68
  109. package/dist/vue-data-ui.js +73 -73
  110. package/dist/{vue-ui-3d-bar-BZ1Slxfu.js → vue-ui-3d-bar-CjNuWXoA.js} +7 -7
  111. package/dist/{vue-ui-accordion-B64IJyPU.js → vue-ui-accordion-Dzz8XhX3.js} +4 -4
  112. package/dist/vue-ui-age-pyramid-CC7Dxli-.js +1238 -0
  113. package/dist/{vue-ui-annotator-CU4CdKMm.js → vue-ui-annotator-DXZumSP8.js} +7 -7
  114. package/dist/{vue-ui-bullet-RGCGF_cO.js → vue-ui-bullet-Dde6FhbR.js} +8 -8
  115. package/dist/{vue-ui-bump-CiUmHi6k.js → vue-ui-bump-C5pni1JV.js} +7 -7
  116. package/dist/{vue-ui-candlestick-BJUk5fMm.js → vue-ui-candlestick-Ctw65O4_.js} +444 -441
  117. package/dist/{vue-ui-carousel-table-BksIDurC.js → vue-ui-carousel-table-BEUvhUH0.js} +5 -5
  118. package/dist/{vue-ui-chestnut-B3OHA5rg.js → vue-ui-chestnut-C3IbAdkQ.js} +6 -6
  119. package/dist/{vue-ui-chord-DETV2viY.js → vue-ui-chord-5eCWG4br.js} +9 -9
  120. package/dist/{vue-ui-circle-pack-DddaioRm.js → vue-ui-circle-pack-Cq4lkmee.js} +7 -7
  121. package/dist/{vue-ui-cursor-D2-hWt_G.js → vue-ui-cursor-DLJcFwRZ.js} +4 -4
  122. package/dist/{vue-ui-dag-Dp7pV6Ps.js → vue-ui-dag-DemsIecS.js} +8 -8
  123. package/dist/{vue-ui-dashboard-D91C5cXo.js → vue-ui-dashboard-DWHD_wNN.js} +70 -70
  124. package/dist/{vue-ui-digits-CMA3U4ZS.js → vue-ui-digits-sIKc85vS.js} +4 -4
  125. package/dist/vue-ui-donut-CLheJPcO.js +2410 -0
  126. package/dist/{vue-ui-donut-DpiS28CQ.js → vue-ui-donut-Dp6GW0dw.js} +91 -91
  127. package/dist/{vue-ui-donut-evolution-2B61hvv2.js → vue-ui-donut-evolution-zmRPpJLj.js} +10 -10
  128. package/dist/{vue-ui-dumbbell-Cmr65TNE.js → vue-ui-dumbbell-bSbgHd0U.js} +8 -8
  129. package/dist/{vue-ui-flow-7Yfsu6AY.js → vue-ui-flow-q_M7O1BK.js} +8 -8
  130. package/dist/{vue-ui-funnel-BLRBDW1a.js → vue-ui-funnel-BEZUEuuh.js} +7 -7
  131. package/dist/vue-ui-galaxy-DCCWmIyH.js +1077 -0
  132. package/dist/{vue-ui-gauge-yo4G5HMt.js → vue-ui-gauge-B1ljgfE1.js} +8 -8
  133. package/dist/{vue-ui-geo-BOHI6oMZ.js → vue-ui-geo-CM59rpnj.js} +8 -8
  134. package/dist/{vue-ui-gizmo-DI-35oK-.js → vue-ui-gizmo-D2RL6IVp.js} +4 -4
  135. package/dist/{vue-ui-heatmap-DBVM90VE.js → vue-ui-heatmap-BX6PQxML.js} +23 -23
  136. package/dist/{vue-ui-history-plot-BiWpOHKE.js → vue-ui-history-plot-DaHAeQph.js} +9 -9
  137. package/dist/{vue-ui-horizontal-bar-XBrvSxtJ.js → vue-ui-horizontal-bar-CTW6l4n3.js} +20 -20
  138. package/dist/{vue-ui-kpi-55wwhSBh.js → vue-ui-kpi-DLbP7lJR.js} +4 -4
  139. package/dist/{vue-ui-mini-loader-nOsOsA2V.js → vue-ui-mini-loader-DPHzHsM7.js} +3 -3
  140. package/dist/{vue-ui-molecule-DB3rmTw1.js → vue-ui-molecule-aD0SMTiX.js} +8 -8
  141. package/dist/{vue-ui-mood-radar-izcbwGOc.js → vue-ui-mood-radar-CCWaPr0P.js} +8 -8
  142. package/dist/{vue-ui-nested-donuts-DRJ1QT2n.js → vue-ui-nested-donuts--BCPWkl7.js} +21 -21
  143. package/dist/{vue-ui-onion-xTZOmmtb.js → vue-ui-onion-s4iMCGAP.js} +17 -17
  144. package/dist/{vue-ui-parallel-coordinate-plot-BxQ7D2_o.js → vue-ui-parallel-coordinate-plot-CfgvpyoC.js} +17 -17
  145. package/dist/{vue-ui-quadrant-BvAmtyAE.js → vue-ui-quadrant-T_UmRAAy.js} +15 -15
  146. package/dist/{vue-ui-quick-chart-CJ1xQgYc.js → vue-ui-quick-chart-D1OWBgQJ.js} +446 -446
  147. package/dist/{vue-ui-radar-C26C6p7e.js → vue-ui-radar-CHjeGOMC.js} +34 -34
  148. package/dist/{vue-ui-rating-CRziryE2.js → vue-ui-rating-Bek8Tgr-.js} +3 -3
  149. package/dist/{vue-ui-relation-circle-Dl1aWFAI.js → vue-ui-relation-circle-DRZGQ_UX.js} +8 -8
  150. package/dist/{vue-ui-ridgeline-BbJa5C-d.js → vue-ui-ridgeline-DIODGiu8.js} +10 -10
  151. package/dist/{vue-ui-rings-CyrvskTi.js → vue-ui-rings-CcdUSXGG.js} +17 -17
  152. package/dist/vue-ui-scatter-CixnqLoi.js +2413 -0
  153. package/dist/{vue-ui-skeleton-C4D0i9ho.js → vue-ui-skeleton-Fmue6DAG.js} +4 -4
  154. package/dist/{vue-ui-smiley-BTvDy8Fm.js → vue-ui-smiley-BVMI5vUy.js} +3 -3
  155. package/dist/{vue-ui-spark-trend-CMb7UI2t.js → vue-ui-spark-trend-DfZeLiWA.js} +4 -4
  156. package/dist/{vue-ui-sparkbar-DEawjWhg.js → vue-ui-sparkbar-Cl1e49sw.js} +4 -4
  157. package/dist/{vue-ui-sparkgauge-mubHGQF_.js → vue-ui-sparkgauge-DDNNBIdf.js} +4 -4
  158. package/dist/{vue-ui-sparkhistogram-D8N-jNBt.js → vue-ui-sparkhistogram-ny_liYa6.js} +5 -5
  159. package/dist/{vue-ui-sparkline-D4p0PS3-.js → vue-ui-sparkline-BNxdO-Bx.js} +44 -44
  160. package/dist/{vue-ui-sparkstackbar-DnrZkIIc.js → vue-ui-sparkstackbar-BfF5-Wg2.js} +5 -5
  161. package/dist/vue-ui-stackbar-B-2Me3d-.js +2332 -0
  162. package/dist/vue-ui-stackline-CdvVPQUM.js +2419 -0
  163. package/dist/{vue-ui-strip-plot-pPiVqFYo.js → vue-ui-strip-plot-CRXPXA5V.js} +16 -16
  164. package/dist/{vue-ui-table-BzqQKuL-.js → vue-ui-table-Dr1dK3d_.js} +6 -6
  165. package/dist/{vue-ui-table-heatmap-D38YSxhJ.js → vue-ui-table-heatmap-D-Qrm3oX.js} +6 -6
  166. package/dist/{vue-ui-table-sparkline-BnavmY2R.js → vue-ui-table-sparkline-C31Q32My.js} +5 -5
  167. package/dist/{vue-ui-thermometer-ePIxpTuE.js → vue-ui-thermometer-BUrtIfuo.js} +8 -8
  168. package/dist/{vue-ui-timer-BQZxD91f.js → vue-ui-timer-B5bkNNHS.js} +6 -6
  169. package/dist/{vue-ui-tiremarks-CDOlCWS8.js → vue-ui-tiremarks-Bn8b-ZSz.js} +7 -7
  170. package/dist/vue-ui-treemap-LMWiicop.js +1713 -0
  171. package/dist/{vue-ui-waffle-BpZrFfUb.js → vue-ui-waffle-B_L3gkky.js} +275 -275
  172. package/dist/{vue-ui-wheel-DRfyK9q9.js → vue-ui-wheel-CeVwXtEX.js} +7 -7
  173. package/dist/{vue-ui-word-cloud-D0JUA9I9.js → vue-ui-word-cloud-D81-qJLw.js} +8 -8
  174. package/dist/{vue-ui-world-Dx-41fUM.js → vue-ui-world-B7npRmTa.js} +8 -8
  175. package/dist/{vue-ui-xy-BLSGO4Lm.js → vue-ui-xy-C2p9H2IX.js} +1498 -1496
  176. package/dist/{vue-ui-xy-DpRqQ09J.js → vue-ui-xy-OhwS0kcZ.js} +86 -86
  177. package/dist/{vue-ui-xy-canvas-CjbjJ70r.js → vue-ui-xy-canvas-DLKDdH35.js} +411 -408
  178. package/package.json +1 -1
  179. package/dist/vue-ui-age-pyramid-uUVFZo8M.js +0 -1238
  180. package/dist/vue-ui-donut-DObpw5zP.js +0 -2410
  181. package/dist/vue-ui-galaxy-B9cxOcoE.js +0 -1077
  182. package/dist/vue-ui-scatter-D9Iw5xlb.js +0 -2413
  183. package/dist/vue-ui-stackbar-BzHSHKqe.js +0 -2329
  184. package/dist/vue-ui-stackline-CWSvsW1n.js +0 -2416
  185. package/dist/vue-ui-treemap-DrZlX_7n.js +0 -1587
@@ -0,0 +1,2419 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { Gt as t, Ht as n, I as r, Lt as i, Ot as a, Q as o, R as s, S as c, Tt as l, Ut as u, Vt as d, W as f, X as p, at as m, b as h, ct as g, g as _, h as ee, i as te, j as ne, jt as v, k as re, q as ie, rt as ae, s as oe, t as se, ut as ce, v as le, vt as ue, w as de, yt as fe } from "./lib-EAmk-PgA.js";
3
+ import { n as pe, r as me, t as he } from "./useTimeLabels-BmBRv27Y.js";
4
+ import { t as ge } from "./useConfig-DYM3f6EI.js";
5
+ import { t as _e } from "./usePrinter-DnGzpp6Q.js";
6
+ import { n as ve, t as ye } from "./BaseScanner-DZvpgOjM.js";
7
+ import { t as be } from "./useSvgExport-SVIsDot8.js";
8
+ import { t as xe } from "./useNestedProp-D8XqxgOU.js";
9
+ import { t as Se } from "./useThemeCheck-C43Tcqmk.js";
10
+ import { t as Ce } from "./useStableElementSize-C7KADDKj.js";
11
+ import { t as we } from "./useTimeLabelCollider-AEcY4Ioe.js";
12
+ import { t as Te } from "./img-B_abIg0o.js";
13
+ import { n as Ee } from "./Title-PiTKr6sp.js";
14
+ import { t as De } from "./Shape-CiQIxyyT.js";
15
+ import { t as Oe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
16
+ import { c as ke } from "./canvas-lib-BOP_HS11.js";
17
+ import { t as Ae } from "./useResponsive-BfnK0KxU.js";
18
+ import { t as je } from "./SlicerPreview-DUywypFu.js";
19
+ import { t as Me } from "./BaseLegendToggle-CHnlKalt.js";
20
+ import { t as Ne } from "./A11yDataTable-DdRsVULz.js";
21
+ import { t as Pe } from "./useUserOptionState-DK-_1ddE.js";
22
+ import { t as Fe } from "./useChartAccessibility-DYqac8yF.js";
23
+ import { t as Ie } from "./Legend-kAr7Vqqu.js";
24
+ import { t as Le } from "./vue_ui_stackline-DQqKPA9z.js";
25
+ import { Fragment as y, Teleport as Re, computed as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createSlots as ze, createTextVNode as Be, createVNode as Ve, defineAsyncComponent as He, guardReactiveProps as T, mergeProps as Ue, nextTick as We, normalizeClass as Ge, normalizeProps as E, normalizeStyle as Ke, onBeforeUnmount as qe, onMounted as Je, openBlock as D, ref as O, renderList as k, renderSlot as A, resolveDynamicComponent as Ye, shallowRef as Xe, toDisplayString as j, toRefs as Ze, unref as M, useSlots as Qe, watch as $e, watchEffect as et, withCtx as N } from "vue";
26
+ //#region src/components/vue-ui-stackline.vue
27
+ var tt = /* @__PURE__ */ e({ default: () => Vt }), nt = ["id"], rt = ["id"], it = ["id"], at = { style: { position: "relative" } }, ot = [
28
+ "aria-describedby",
29
+ "xmlns",
30
+ "viewBox"
31
+ ], st = { key: 0 }, ct = [
32
+ "x",
33
+ "y",
34
+ "width",
35
+ "height"
36
+ ], lt = { key: 1 }, ut = ["id"], dt = ["stop-color"], ft = ["stop-color"], pt = [
37
+ "x1",
38
+ "x2",
39
+ "y1",
40
+ "y2",
41
+ "stroke",
42
+ "stroke-width",
43
+ "stroke-dasharray"
44
+ ], mt = [
45
+ "x1",
46
+ "x2",
47
+ "y1",
48
+ "y2",
49
+ "stroke",
50
+ "stroke-width",
51
+ "stroke-dasharray"
52
+ ], ht = [
53
+ "x1",
54
+ "x2",
55
+ "y1",
56
+ "y2",
57
+ "stroke",
58
+ "stroke-width"
59
+ ], gt = [
60
+ "x1",
61
+ "x2",
62
+ "y1",
63
+ "y2",
64
+ "stroke",
65
+ "stroke-width"
66
+ ], _t = [
67
+ "x",
68
+ "y",
69
+ "font-size",
70
+ "fill",
71
+ "font-weight"
72
+ ], vt = [
73
+ "transform",
74
+ "font-size",
75
+ "fill",
76
+ "font-weight"
77
+ ], yt = [
78
+ "x",
79
+ "y",
80
+ "width",
81
+ "height",
82
+ "stroke",
83
+ "stroke-width",
84
+ "stroke-linecap",
85
+ "stroke-linejoin",
86
+ "stroke-dasharray"
87
+ ], bt = [
88
+ "d",
89
+ "fill",
90
+ "opacity"
91
+ ], xt = [
92
+ "d",
93
+ "stroke",
94
+ "stroke-width"
95
+ ], St = [
96
+ "x1",
97
+ "x2",
98
+ "y1",
99
+ "y2",
100
+ "stroke"
101
+ ], Ct = [
102
+ "x",
103
+ "y",
104
+ "font-size",
105
+ "font-weight",
106
+ "fill",
107
+ "text-anchor"
108
+ ], wt = { key: 0 }, Tt = { key: 1 }, Et = [
109
+ "text-anchor",
110
+ "font-size",
111
+ "font-weight",
112
+ "fill",
113
+ "transform",
114
+ "onClick"
115
+ ], Dt = [
116
+ "text-anchor",
117
+ "font-size",
118
+ "fill",
119
+ "transform",
120
+ "innerHTML",
121
+ "onClick"
122
+ ], Ot = [
123
+ "x",
124
+ "y",
125
+ "height",
126
+ "width",
127
+ "fill"
128
+ ], kt = { key: 0 }, At = [
129
+ "x1",
130
+ "x2",
131
+ "y1",
132
+ "y2",
133
+ "stroke",
134
+ "stroke-width",
135
+ "stroke-dasharray"
136
+ ], jt = { key: 0 }, Mt = [
137
+ "x",
138
+ "y",
139
+ "font-size",
140
+ "fill",
141
+ "font-weight"
142
+ ], Nt = [
143
+ "x",
144
+ "y",
145
+ "font-size",
146
+ "font-weight",
147
+ "fill"
148
+ ], Pt = ["data-start", "data-end"], Ft = {
149
+ key: 0,
150
+ style: {
151
+ position: "absolute",
152
+ top: "100%",
153
+ left: "0",
154
+ width: "100%"
155
+ },
156
+ "data-dom-to-png-ignore": "",
157
+ "aria-hidden": "true"
158
+ }, It = {
159
+ key: 5,
160
+ class: "vue-data-ui-watermark"
161
+ }, Lt = ["onClick"], Rt = ["innerHTML"], zt = ["innerHTML"], Bt = ["id"], Vt = /*#__PURE__*/ Oe({
162
+ __name: "vue-ui-stackline",
163
+ props: {
164
+ config: {
165
+ type: Object,
166
+ default() {
167
+ return {};
168
+ }
169
+ },
170
+ dataset: {
171
+ type: Array,
172
+ default() {
173
+ return [];
174
+ }
175
+ },
176
+ selectedXIndex: {
177
+ type: Number,
178
+ default: void 0
179
+ }
180
+ },
181
+ emits: [
182
+ "selectDatapoint",
183
+ "selectLegend",
184
+ "selectTimeLabel",
185
+ "selectX",
186
+ "copyAlt"
187
+ ],
188
+ setup(e, { expose: Oe, emit: tt }) {
189
+ let Vt = He(() => import("./Tooltip-B8yYfISA.js")), Ht = He(() => import("./BaseIcon-_-BX7be3.js").then((e) => e.n)), Ut = He(() => import("./vue-ui-accordion-Dzz8XhX3.js").then((e) => e.n)), Wt = He(() => import("./DataTable-CVF7DoZn.js")), Gt = He(() => import("./PenAndPaper-gaV1QPpP.js").then((e) => e.t)), Kt = He(() => import("./UserOptions-BL9VlHop.js").then((e) => e.n)), qt = He(() => import("./PackageVersion-Dse0n05o.js").then((e) => e.t)), Jt = He(() => import("./BaseDraggableDialog-1wwwdwV2.js").then((e) => e.n)), { vue_ui_stackline: Yt } = ge(), { isThemeValid: Xt, warnInvalidTheme: Zt } = Se(), Qt = Qe(), P = e, F = tt, $t = b({
190
+ get() {
191
+ return !!P.dataset && P.dataset.length;
192
+ },
193
+ set(e) {
194
+ return e;
195
+ }
196
+ }), en = O(null), I = O(f()), tn = O(!1), L = O([]), nn = O(0), rn = O(null), an = O(null), on = O(null), sn = O(null), cn = O(null), ln = O(!1), un = O(!1), dn = O(0), fn = O(0), pn = O(0), mn = O(!1), hn = O(null), gn = O(null), _n = O(!1), vn = O(!1), yn = O(!1), bn = O(null), xn = O(null), Sn = O(null), Cn = O(null), wn = O(null), Tn = Xe(null), En = O(!1), Dn = O(0), On = O(0), kn = O(null), An = O({
197
+ x: 0,
198
+ y: 0
199
+ }), jn = O("pointer"), Mn = Ce({
200
+ elementRef: Tn,
201
+ minimumWidth: 2,
202
+ minimumHeight: 2,
203
+ stableFramesRequired: 2,
204
+ once: !1,
205
+ onSizeAccepted: () => {
206
+ Fn();
207
+ }
208
+ });
209
+ function Nn() {
210
+ Tn.value = en.value?.parentNode ?? null;
211
+ }
212
+ function Pn() {
213
+ return new Promise((e) => {
214
+ requestAnimationFrame(() => {
215
+ requestAnimationFrame(e);
216
+ });
217
+ });
218
+ }
219
+ async function Fn() {
220
+ let e = ++On.value;
221
+ En.value = !1, await We(), await Pn(), await Pn(), e === On.value && (Dn.value += 1, En.value = !0);
222
+ }
223
+ let In = O(null), Ln = O(!1);
224
+ function Rn() {
225
+ Ln.value = !Ln.value;
226
+ }
227
+ Je(() => {
228
+ Nn(), Mn.start(), mn.value = !0, or(), Fn();
229
+ });
230
+ let R = O(qn()), z = b(() => R.value.userOptions.useCursorPointer), zn = b(() => t({
231
+ defaultConfig: {
232
+ userOptions: { show: !1 },
233
+ useCssAnimation: !1,
234
+ table: { show: !1 },
235
+ tooltip: { show: !1 },
236
+ style: { chart: {
237
+ backgroundColor: "#99999930",
238
+ lines: {
239
+ totalValues: { show: !1 },
240
+ dataLabels: { show: !1 }
241
+ },
242
+ grid: {
243
+ frame: { stroke: "#6A6A6A" },
244
+ scale: {
245
+ scaleMin: 0,
246
+ scaleMax: 144
247
+ },
248
+ x: {
249
+ axisColor: "#6A6A6A",
250
+ linesColor: "#6A6A6A",
251
+ axisName: { show: !1 },
252
+ timeLabels: { show: !1 }
253
+ },
254
+ y: {
255
+ axisColor: "#6A6A6A",
256
+ linesColor: "#6A6A6A",
257
+ axisName: { show: !1 },
258
+ axisLabels: { show: !1 }
259
+ }
260
+ },
261
+ legend: { backgroundColor: "transparent" },
262
+ padding: {
263
+ left: 24,
264
+ right: 24,
265
+ bottom: 12
266
+ },
267
+ zoom: {
268
+ show: !1,
269
+ startIndex: null,
270
+ endIndex: null,
271
+ keepState: !1
272
+ }
273
+ } }
274
+ },
275
+ userConfig: R.value.skeletonConfig ?? {}
276
+ })), { loading: B, FINAL_DATASET: Bn, manualLoading: Vn } = ve({
277
+ ...Ze(P),
278
+ FINAL_CONFIG: R,
279
+ prepareConfig: qn,
280
+ callback: () => {
281
+ Promise.resolve().then(async () => {
282
+ (!R.value.style.chart.zoom.keepState || !Qr.value || q.value.start === 0 && q.value.end === 0) && await ei();
283
+ });
284
+ },
285
+ skeletonDataset: P.config?.skeletonDataset ?? [{
286
+ name: "",
287
+ series: [
288
+ 3,
289
+ 2,
290
+ 1,
291
+ 5,
292
+ 13,
293
+ 21,
294
+ 8,
295
+ 89,
296
+ 34,
297
+ 55
298
+ ],
299
+ color: "#8A8A8A"
300
+ }, {
301
+ name: "",
302
+ series: [
303
+ 1,
304
+ 2,
305
+ 3,
306
+ 5,
307
+ 8,
308
+ 13,
309
+ 21,
310
+ 34,
311
+ 55,
312
+ 89
313
+ ],
314
+ color: "#CACACA"
315
+ }],
316
+ skeletonConfig: t({
317
+ defaultConfig: R.value,
318
+ userConfig: zn.value
319
+ })
320
+ }), { userOptionsVisible: Hn, setUserOptionsVisibility: Un, keepUserOptionState: Wn } = Pe({ config: R.value }), { svgRef: V } = Fe({ config: R.value.style.chart.title });
321
+ function Gn() {
322
+ _n.value = !0, Un(!0);
323
+ }
324
+ function Kn() {
325
+ Un(!1), _n.value = !1, kn.value = null, jn.value = "pointer", tn.value = !1, $.value = null, F("selectX", {
326
+ index: null,
327
+ indexLabel: null,
328
+ dataset: null
329
+ });
330
+ }
331
+ function qn() {
332
+ let e = xe({
333
+ userConfig: P.config,
334
+ defaultConfig: Yt
335
+ }), t = {}, n = e.theme;
336
+ if (n) if (!Xt.value(e)) Zt(e), t = e;
337
+ else {
338
+ let r = xe({
339
+ userConfig: Le[n] || P.config,
340
+ defaultConfig: e
341
+ });
342
+ t = {
343
+ ...xe({
344
+ userConfig: P.config,
345
+ defaultConfig: r
346
+ }),
347
+ customPalette: e.customPalette.length ? e.customPalette : u[n] || v
348
+ };
349
+ }
350
+ else t = e;
351
+ return t;
352
+ }
353
+ let Jn = b(() => R.value.style.chart.lines.dataLabels.hideUnderValue !== null), Yn = b(() => R.value.style.chart.lines.dataLabels.hideUnderPercentage !== null);
354
+ $e(() => P.config, (e) => {
355
+ B.value || (R.value = qn()), Hn.value = !R.value.userOptions.showOnChartHover, or({ resetSlicer: !R.value.style.chart.zoom.keepState }), dn.value += 1, fn.value += 1, pn.value += 1, H.value.dataLabels.show = R.value.style.chart.lines.dataLabels.show, H.value.showTable = R.value.table.show, H.value.showTooltip = R.value.style.chart.tooltip.show, U.value.width = R.value.style.chart.width, U.value.height = R.value.style.chart.height, U.value.paddingRatio = {
356
+ top: R.value.style.chart.padding.top / R.value.style.chart.height,
357
+ right: R.value.style.chart.padding.right / R.value.style.chart.width,
358
+ bottom: R.value.style.chart.padding.bottom / R.value.style.chart.height,
359
+ left: R.value.style.chart.padding.left / R.value.style.chart.width
360
+ }, Nn(), Fn(), !R.value.style.chart.zoom.keepState || !Qr.value || q.value.start === 0 && q.value.end === 0 ? ei() : Sr();
361
+ }, { deep: !0 }), $e(() => P.dataset, (e) => {
362
+ Array.isArray(e) && e.length > 0 && (Vn.value = !1), R.value.style.chart.zoom.keepState ? Sr() : Tr(), Nn(), Fn();
363
+ }, { deep: !0 });
364
+ let H = O({
365
+ dataLabels: { show: R.value.style.chart.lines.dataLabels.show },
366
+ showTable: R.value.table.show,
367
+ showTooltip: R.value.style.chart.tooltip.show
368
+ });
369
+ $e(R, () => {
370
+ H.value = {
371
+ dataLabels: { show: R.value.style.chart.lines.dataLabels.show },
372
+ showTable: R.value.table.show,
373
+ showTooltip: R.value.style.chart.tooltip.show
374
+ };
375
+ }, { immediate: !0 });
376
+ let { isPrinting: Xn, isImaging: Zn, generatePdf: Qn, generateImage: $n } = _e({
377
+ elementId: `stackline_${I.value}`,
378
+ fileName: R.value.style.chart.title.text || "vue-ui-stackline",
379
+ options: R.value.userOptions.print
380
+ }), er = b(() => R.value.userOptions.show && !R.value.style.chart.title.text), U = O({
381
+ width: R.value.style.chart.width,
382
+ height: R.value.style.chart.height,
383
+ paddingRatio: {
384
+ top: R.value.style.chart.padding.top / R.value.style.chart.height,
385
+ right: R.value.style.chart.padding.right / R.value.style.chart.width,
386
+ bottom: R.value.style.chart.padding.bottom / R.value.style.chart.height,
387
+ left: R.value.style.chart.padding.left / R.value.style.chart.width
388
+ }
389
+ }), tr = b(() => c(R.value.customPalette)), nr = Xe(null), rr = Xe(null), ir = O(null), ar = b(() => !!R.value.debug);
390
+ function or({ resetSlicer: e = !0 } = {}) {
391
+ if (a(P.dataset) ? (o({
392
+ componentName: "VueUiStackline",
393
+ type: "dataset",
394
+ debug: ar.value
395
+ }), Vn.value = !0) : P.dataset.forEach((e, t) => {
396
+ ce({
397
+ datasetObject: e,
398
+ requiredAttributes: ["name", "series"]
399
+ }).forEach((e) => {
400
+ $t.value = !1, o({
401
+ componentName: "VueUiStackline",
402
+ type: "datasetSerieAttribute",
403
+ property: e,
404
+ index: t,
405
+ debug: ar.value
406
+ }), Vn.value = !0;
407
+ });
408
+ }), a(P.dataset) || (Vn.value = R.value.loading), setTimeout(() => {
409
+ un.value = !0;
410
+ }, 10), R.value.responsive) {
411
+ let e = ke(() => {
412
+ un.value = !1;
413
+ let { width: e, height: t } = Ae({
414
+ chart: en.value,
415
+ noTitle: sn.value,
416
+ title: R.value.style.chart.title.text ? rn.value : null,
417
+ legend: R.value.style.chart.legend.show ? an.value : null,
418
+ slicer: R.value.style.chart.zoom.show && K.value > 6 ? on.value.$el : null,
419
+ source: cn.value
420
+ });
421
+ requestAnimationFrame(() => {
422
+ U.value.width = e, U.value.height = t - 12, clearTimeout(ir.value), ir.value = setTimeout(() => {
423
+ un.value = !0;
424
+ }, 10);
425
+ });
426
+ });
427
+ nr.value && (rr.value && nr.value.unobserve(rr.value), nr.value.disconnect()), nr.value = new ResizeObserver(e), rr.value = en.value.parentNode, nr.value.observe(rr.value);
428
+ }
429
+ e && ei();
430
+ }
431
+ qe(() => {
432
+ Mn.stop(), nr.value && (rr.value && nr.value.unobserve(rr.value), nr.value.disconnect());
433
+ });
434
+ let sr = b(() => R.value.style.chart.grid.y.position === "right");
435
+ function cr() {
436
+ let e = 0;
437
+ Sn.value && (e = Array.from(Sn.value.querySelectorAll("text")).reduce((e, t) => {
438
+ let n = t.getComputedTextLength();
439
+ return n > e ? n : e;
440
+ }, 0));
441
+ let t = xn.value ? xn.value.getBoundingClientRect().width + R.value.style.chart.grid.y.axisName.fontSize + R.value.style.chart.grid.y.axisName.offsetX : 0;
442
+ return {
443
+ left: sr.value ? 0 : e + t,
444
+ right: sr.value ? e + t : 0,
445
+ scaleLabelsWidth: e,
446
+ yAxisLabelWidth: t
447
+ };
448
+ }
449
+ let lr = O(0), ur = O(0), dr = O(0);
450
+ function fr() {
451
+ let e = Cn.value;
452
+ if (!e) {
453
+ ur.value = 0;
454
+ return;
455
+ }
456
+ try {
457
+ let t = e.getBBox();
458
+ ur.value = Number.isFinite(t?.height) ? t.height : 0;
459
+ } catch {
460
+ ur.value = 0;
461
+ }
462
+ }
463
+ function pr() {
464
+ dr.value && cancelAnimationFrame(dr.value), dr.value = requestAnimationFrame(() => {
465
+ requestAnimationFrame(() => {
466
+ fr();
467
+ });
468
+ });
469
+ }
470
+ qe(() => {
471
+ dr.value && cancelAnimationFrame(dr.value), ur.value = 0, lr.value = 0;
472
+ });
473
+ let mr = b(() => {
474
+ let e = 0;
475
+ if (bn.value) try {
476
+ e = bn.value.getBBox().height;
477
+ } catch {
478
+ e = 0;
479
+ }
480
+ let t = R.value.style.chart.grid.x.timeLabels.show ? ur.value : 0;
481
+ return e + t;
482
+ }), W = b(() => {
483
+ Dn.value;
484
+ let { height: e, width: t } = U.value, { right: n } = U.value.paddingRatio, r = R.value.style.chart.lines.totalValues.show && P.dataset && P.dataset.length > 1 ? R.value.style.chart.lines.totalValues.fontSize * 1.3 : 0, i = 0, a = 0, o = 0, s = 0;
485
+ if (R.value.style.chart.grid.y.axisLabels.show) {
486
+ let e = cr();
487
+ i = e.left, a = e.right, o = e.scaleLabelsWidth, s = e.yAxisLabelWidth;
488
+ }
489
+ let c = R.value.style.chart.padding.top + r, l = t - t * n - lr.value - a, u = e - R.value.style.chart.padding.bottom - mr.value - r, d = R.value.style.chart.padding.left + i, f = t - d - t * n - lr.value - a, p = e - c - R.value.style.chart.padding.bottom - mr.value - r;
490
+ return {
491
+ chartHeight: Math.max(0, e),
492
+ chartWidth: Math.max(0, t),
493
+ top: c,
494
+ right: Math.max(0, l),
495
+ bottom: Math.max(0, u),
496
+ left: Math.max(0, d),
497
+ width: Math.max(0, f),
498
+ height: Math.max(0, p),
499
+ offsetLeftAxis: i,
500
+ offsetRightAxis: a,
501
+ scaleLabelsWidth: o,
502
+ yAxisLabelWidth: s
503
+ };
504
+ }), hr = b(() => {
505
+ 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 = {
506
+ fill: R.value.style.chart.zoom.preview.fill,
507
+ stroke: R.value.style.chart.zoom.preview.stroke,
508
+ "stroke-width": R.value.style.chart.zoom.preview.strokeWidth,
509
+ "stroke-dasharray": R.value.style.chart.zoom.preview.strokeDasharray,
510
+ "stroke-linecap": "round",
511
+ "stroke-linejoin": "round",
512
+ style: {
513
+ pointerEvents: "none",
514
+ transition: "none !important",
515
+ animation: "none !important"
516
+ }
517
+ }, d = n / o;
518
+ return {
519
+ x: e + s * d,
520
+ y: t,
521
+ width: l * d,
522
+ height: r,
523
+ ...u
524
+ };
525
+ }), G = b(() => Bn.value.map((e, t) => {
526
+ let n = `stackline_serie_${t}`, r = h(e.color) || tr.value[t] || v[t] || v[t % v.length];
527
+ return {
528
+ ...e,
529
+ shape: e.shape || "circle",
530
+ standalone: !!e.standalone,
531
+ series: JSON.parse(JSON.stringify(e.series)).map((e) => R.value.style.chart.lines.distributed ? Math.abs(e) : e),
532
+ seriesSource: e.series,
533
+ signedSeries: e.series.map((e) => e >= 0 ? 1 : -1),
534
+ absoluteIndex: t,
535
+ id: n,
536
+ color: r
537
+ };
538
+ })), 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(() => {
539
+ let e = Math.max(...G.value.filter((e) => !L.value.includes(e.id)).map((e) => e.series.length));
540
+ return isFinite(e) ? e : Math.max(...G.value.map((e) => e.series.length));
541
+ });
542
+ function vr(e) {
543
+ In.value = e;
544
+ }
545
+ let q = O({
546
+ start: 0,
547
+ end: Math.max(...Bn.value.map((e) => e.series.length))
548
+ }), J = O({
549
+ start: 0,
550
+ end: Math.max(...Bn.value.map((e) => e.series.length))
551
+ });
552
+ function yr(e) {
553
+ return (q.value.start ?? 0) + (e ?? 0);
554
+ }
555
+ let br = b(() => R.value.style.chart.zoom.preview.enable && (J.value.start !== q.value.start || J.value.end !== q.value.end));
556
+ function xr(e, t) {
557
+ J.value[e] = t;
558
+ }
559
+ function Sr() {
560
+ 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));
561
+ (!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, on.value && (on.value.setStartValue(t), on.value.setEndValue(n));
562
+ }
563
+ let Cr = O(null);
564
+ function wr() {
565
+ return new Promise((e) => requestAnimationFrame(() => requestAnimationFrame(() => e())));
566
+ }
567
+ qe(() => {
568
+ Cr.value && cancelAnimationFrame(Cr.value);
569
+ });
570
+ async function Tr({ force: e = !1 } = {}) {
571
+ if (R.value.style.chart.zoom.keepState && !e && Qr.value && !(q.value.start === 0 && q.value.end === 0)) {
572
+ Sr();
573
+ return;
574
+ }
575
+ ei(), await We(), Cr.value && cancelAnimationFrame(Cr.value), Cr.value = requestAnimationFrame(async () => {
576
+ await wr(), ei();
577
+ });
578
+ }
579
+ let Er = b(() => Math.max(0, W.value.width / (q.value.end - q.value.start))), Dr = b(() => d(gr.value.map((e) => ({
580
+ ...e,
581
+ series: e.series.map((e) => e ?? 0)
582
+ }))).slice(q.value.start, q.value.end)), Or = b(() => L.value.length === G.value.length), kr = b(() => {
583
+ if (!R.value.style.chart.zoom.minimap.show) return [];
584
+ let e = G.value.filter((e) => Or.value ? !0 : !L.value.includes(e.id) && !e.standalone);
585
+ if (e.length) return d(e.map((e) => ({
586
+ ...e,
587
+ series: (e.series || []).map((e) => e ?? 0)
588
+ })));
589
+ let t = _r.value;
590
+ if (!t.length) return [];
591
+ let n = Math.max(...t.map((e) => e.series.length || 0));
592
+ return Array.from({ length: n }, (e, n) => t.reduce((e, t) => e + Math.abs(t.series[n] ?? 0), 0));
593
+ }), Ar = b(() => {
594
+ if (!R.value.style.chart.zoom.minimap.show) return [];
595
+ let e = G.value.filter((e) => Or.value ? !0 : !L.value.includes(e.id) && !e.standalone), t = _r.value, n = e.length ? [{
596
+ name: "",
597
+ series: kr.value,
598
+ color: "#000000",
599
+ isVisible: !0
600
+ }] : [], r = t.map((e) => ({
601
+ name: e.name || "",
602
+ series: (e.series || []).map((e) => e ?? 0),
603
+ color: e.color,
604
+ isVisible: !0
605
+ }));
606
+ return n.concat(r);
607
+ }), jr = b(() => d(gr.value.filter((e) => !L.value.includes(e.id)).map((e) => ({
608
+ ...e,
609
+ series: e.series.map((t, n) => {
610
+ let r = t ?? 0;
611
+ return e.signedSeries[n] === -1 && r >= 0 ? -r : r;
612
+ })
613
+ }))).slice(q.value.start, q.value.end)), Mr = b(() => {
614
+ let e = gr.value.filter((e) => !L.value.includes(e.id));
615
+ return {
616
+ positive: d(e.map((e) => ({
617
+ ...e,
618
+ series: e.series.slice(q.value.start, q.value.end).map((e) => (e ?? 0) >= 0 ? e ?? 0 : 0)
619
+ }))),
620
+ negative: d(e.map((e) => ({
621
+ ...e,
622
+ series: e.series.slice(q.value.start, q.value.end).map((e) => (e ?? 0) < 0 ? e ?? 0 : 0)
623
+ })))
624
+ };
625
+ }), Nr = b(() => {
626
+ let e = Math.max(0, q.value.end - q.value.start), t = Array(e).fill(0), n = Array(e).fill(0);
627
+ return _r.value.forEach((r) => {
628
+ for (let i = 0; i < e; i += 1) {
629
+ let e = r.series[q.value.start + i] ?? 0;
630
+ e > 0 && (t[i] = Math.max(t[i], e)), e < 0 && (n[i] = Math.min(n[i], e));
631
+ }
632
+ }), {
633
+ positive: t,
634
+ negative: n
635
+ };
636
+ }), Pr = b(() => jr.value.map((e, t) => ({
637
+ value: e,
638
+ sign: e >= 0 ? 1 : -1
639
+ })));
640
+ function Fr() {
641
+ return { y0: Lr.value?.[0]?.zero ?? W.value.bottom };
642
+ }
643
+ function Ir(e) {
644
+ let { y0: t } = Fr(), n = R.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 - R.value.style.chart.lines.totalValues.fontSize * 1.3), W.value.bottom + R.value.style.chart.lines.totalValues.fontSize * 2);
645
+ if ((Pr.value?.[e]?.value ?? 0) >= 0 || R.value.style.chart.lines.distributed) {
646
+ let n = Infinity;
647
+ for (let t of Y.value || []) {
648
+ let r = t?.series?.[e], i = t?.topY?.[e];
649
+ (r ?? 0) > 0 && Number.isFinite(i) && i < n && (n = i);
650
+ }
651
+ return i((Number.isFinite(n) ? n : t) - r - R.value.style.chart.lines.totalValues.offsetY);
652
+ } else {
653
+ let a = -Infinity;
654
+ for (let t of Y.value || []) {
655
+ let n = t?.series?.[e], r = t?.topY?.[e];
656
+ (n ?? 0) < 0 && Number.isFinite(r) && r > a && (a = r);
657
+ }
658
+ return i((Number.isFinite(a) ? a : t) + r + n.fontSize * .7 + R.value.style.chart.lines.totalValues.offsetY);
659
+ }
660
+ }
661
+ let Lr = b(() => {
662
+ 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 = [
663
+ -Infinity,
664
+ Infinity,
665
+ NaN,
666
+ void 0,
667
+ null
668
+ ].includes(a) ? 0 : a, s = R.value.style.chart.grid.scale.scaleMin, c = R.value.style.chart.grid.scale.scaleMax, l = !R.value.style.chart.lines.distributed && (s !== null || c !== null), u = s !== null && !R.value.style.chart.lines.distributed ? s : o > 0 ? 0 : o, d = c !== null && !R.value.style.chart.lines.distributed ? c : i < 0 ? 0 : i, f = l ? _(u, d, R.value.style.chart.grid.scale.ticks) : ee(u, d, R.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], te = W.value.bottom - W.value.height * (p / h);
669
+ return g.map((e) => {
670
+ let t = Number(e) || 0;
671
+ return {
672
+ zero: te,
673
+ y: W.value.bottom - W.value.height * ((t + p) / h),
674
+ x: sr.value ? X.value.right + 8 : X.value.left - 8,
675
+ value: t
676
+ };
677
+ });
678
+ }), Rr = O([]), zr = O([]), Br = 0;
679
+ et(() => {
680
+ let e = ++Br;
681
+ (async () => {
682
+ let t = await he({
683
+ values: R.value.style.chart.grid.x.timeLabels.values,
684
+ maxDatapoints: K.value,
685
+ formatter: R.value.style.chart.grid.x.timeLabels.datetimeFormatter,
686
+ start: q.value.start,
687
+ end: q.value.end
688
+ });
689
+ e === Br && (Rr.value = t);
690
+ })();
691
+ });
692
+ let Vr = 0;
693
+ et(() => {
694
+ let e = ++Vr;
695
+ (async () => {
696
+ let t = await he({
697
+ values: R.value.style.chart.grid.x.timeLabels.values,
698
+ maxDatapoints: K.value,
699
+ formatter: R.value.style.chart.grid.x.timeLabels.datetimeFormatter,
700
+ start: 0,
701
+ end: K.value
702
+ });
703
+ e === Vr && (zr.value = t);
704
+ })();
705
+ });
706
+ let Hr = b(() => {
707
+ let e = R.value.style.chart.grid.x.timeLabels.modulo;
708
+ return Rr.value.length ? Math.min(e, [...new Set(Rr.value.map((e) => e.text))].length) : e;
709
+ }), Ur = b(() => {
710
+ let e = R.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 ?? "");
711
+ return oe(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, Hr.value || 1), o, s, r, i, a);
712
+ });
713
+ et(() => {
714
+ R.value.style.chart.grid.x.timeLabels.show, R.value.style.chart.grid.x.timeLabels.fontSize, R.value.style.chart.grid.x.timeLabels.rotation, R.value.style.chart.grid.x.timeLabels.offsetY, (Ur.value || []).map((e) => e?.text ?? "").join("|"), U.value.width, U.value.height, Cn.value, bn.value, pr();
715
+ }, { flush: "post" });
716
+ let Wr = O({
717
+ months: [],
718
+ shortMonths: [],
719
+ days: [],
720
+ shortDays: []
721
+ }), Gr = 0;
722
+ et(() => {
723
+ let e = ++Gr, t = R.value.style.chart.grid.x.timeLabels.datetimeFormatter;
724
+ (async () => {
725
+ let n = await me(t.locale).catch(() => me("en"));
726
+ e === Gr && (Wr.value = n.data);
727
+ })();
728
+ });
729
+ let Kr = b(() => {
730
+ let e = R.value.style.chart.grid.x.timeLabels.datetimeFormatter, t = pe({
731
+ useUTC: e.useUTC,
732
+ locale: Wr.value,
733
+ januaryAsYear: e.januaryAsYear
734
+ });
735
+ return (e, n) => {
736
+ let r = R.value.style.chart.grid.x.timeLabels.values?.[e];
737
+ return r == null ? "" : t.formatDate(new Date(r), n);
738
+ };
739
+ }), qr = b(() => (R.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
740
+ text: Kr.value(t, R.value.style.chart.zoom.timeFormat),
741
+ absoluteIndex: t
742
+ }))), Jr = b(() => (R.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
743
+ text: Kr.value(t, R.value.style.chart.tooltip.timeFormat),
744
+ absoluteIndex: t
745
+ }))), Yr = b(() => {
746
+ if (!$t.value && !B.value) return [];
747
+ 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 } = !R.value.style.chart.lines.distributed && (R.value.style.chart.grid.scale.scaleMax !== null || R.value.style.chart.grid.scale.scaleMin !== null) ? _(R.value.style.chart.grid.scale.scaleMin === null ? u > 0 ? 0 : u : R.value.style.chart.grid.scale.scaleMin, R.value.style.chart.grid.scale.scaleMax === null ? l < 0 ? 0 : l : R.value.style.chart.grid.scale.scaleMax, R.value.style.chart.grid.scale.ticks) : ee(R.value.style.chart.grid.scale.scaleMin === null ? u > 0 ? 0 : u : R.value.style.chart.grid.scale.scaleMin, R.value.style.chart.grid.scale.scaleMax === null ? l < 0 ? 0 : l : R.value.style.chart.grid.scale.scaleMax, R.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 ? W.value.left + W.value.width / 2 : W.value.left + e / (i - 1) * W.value.width;
748
+ return G.value.filter((e) => !L.value.includes(e.id)).map((r) => {
749
+ let a = [], o = [], s = [], c = Array(i).fill(null), l = Array(i).fill(null);
750
+ for (let u = 0; u < i; u += 1) {
751
+ let i = n + u, d = r.series?.[i], f = r.signedSeries?.[i], g = d == null || Number.isNaN(d) ? 0 : d, _ = r.standalone ? g / p : R.value.style.chart.lines.distributed ? g / (Dr.value[u] || 1) : g / p;
752
+ if (g >= 0) {
753
+ let n = e * Math.abs(_);
754
+ if (r.standalone) c[u] = t, l[u] = t - n;
755
+ else {
756
+ let e = m[u], r = e + n;
757
+ c[u] = t - e, l[u] = t - r, m[u] = r;
758
+ }
759
+ } else {
760
+ let n = e * Math.abs(_);
761
+ if (r.standalone) c[u] = t, l[u] = t + n;
762
+ else {
763
+ let e = h[u], r = e + n;
764
+ c[u] = t + e, l[u] = t + r, h[u] = r;
765
+ }
766
+ }
767
+ a.push(u), o.push(g), s.push(f ?? (g >= 0 ? 1 : -1));
768
+ }
769
+ let u = a.map((e) => ({
770
+ x: g(e),
771
+ y: l[e]
772
+ })), d = u.map((e) => e.x), f = o.reduce((e, t) => e + Math.abs(t || 0), 0), _ = f === 0 ? 1 : f, ee = o.map((e, t) => {
773
+ if (R.value.style.chart.lines.distributed && !r.standalone) {
774
+ let n = a[t], r = Dr.value[n] || 1;
775
+ return (e || 0) / r;
776
+ }
777
+ return (e || 0) / _;
778
+ });
779
+ return {
780
+ ...r,
781
+ x: d,
782
+ points: u,
783
+ baseY: a.map((e) => c[e]),
784
+ topY: a.map((e) => l[e]),
785
+ series: o,
786
+ signedSeries: s,
787
+ proportions: ee,
788
+ rel: a,
789
+ fullSeries: Array.isArray(r.fullSeries) ? r.fullSeries : r.series
790
+ };
791
+ });
792
+ }), Y = b(() => {
793
+ 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), c = !R.value.style.chart.lines.distributed && (R.value.style.chart.grid.scale.scaleMax !== null || R.value.style.chart.grid.scale.scaleMin !== null) ? _(R.value.style.chart.grid.scale.scaleMin === null ? o > 0 ? 0 : o : R.value.style.chart.grid.scale.scaleMin, R.value.style.chart.grid.scale.scaleMax === null ? a < 0 ? 0 : a : R.value.style.chart.grid.scale.scaleMax, R.value.style.chart.grid.scale.ticks) : ee(R.value.style.chart.grid.scale.scaleMin === null ? o > 0 ? 0 : o : R.value.style.chart.grid.scale.scaleMin, R.value.style.chart.grid.scale.scaleMax === null ? a < 0 ? 0 : a : R.value.style.chart.grid.scale.scaleMax, R.value.style.chart.grid.scale.ticks), l = Number(c.min) || 0, u = Number(c.max) || 0, d = Math.abs(l), f = u + d || 1, p = (e) => {
794
+ if (R.value.style.chart.lines.distributed) {
795
+ let t = Math.max(0, Math.min(1, e));
796
+ return minimapH - minimapH * t;
797
+ }
798
+ return clampY(minimapH - minimapH * (((e ?? 0) + d) / f));
799
+ };
800
+ return Yr.value.map((t) => {
801
+ let n = t.x.length, r = Array.isArray(t.fullSeries) ? t.fullSeries : t.series, i = ({ left: e = 0, unitW: t }) => {
802
+ let n = r.length;
803
+ return !Number.isFinite(t) || t <= 0 || n <= 0 ? [] : n === 1 ? [e + t * .5] : r.map((n, r) => e + r * t);
804
+ }, a = ({ minimapH: e }) => !Number.isFinite(e) || e <= 0 ? [] : r.map((t) => p(t || 0, e)), o = ({ minimapH: e }) => {
805
+ if (!Number.isFinite(e) || e <= 0) return [];
806
+ let t = p(0, e);
807
+ return r.map(() => t);
808
+ };
809
+ if (n === 0) return {
810
+ ...t,
811
+ points: [],
812
+ smoothPath: "",
813
+ straightPath: "",
814
+ smoothArea: "",
815
+ straightArea: "",
816
+ xMinimap: i,
817
+ yMinimap: a,
818
+ yMinimapBase: o
819
+ };
820
+ let c = t.x.map((e, n) => ({
821
+ x: e,
822
+ y: t.topY[n]
823
+ })), l = t.x.map((e, n) => ({
824
+ x: e,
825
+ y: t.baseY[n]
826
+ })), u = n >= 2 ? ne(c) : `M${c[0].x},${c[0].y}`, d = n >= 2 ? s(c) : `M${c[0].x},${c[0].y}`, f = n >= 2 ? `M${e(u)}` : u, m = n >= 2 ? `M${e(d)}` : d, h = "", g = "";
827
+ if (R.value.style.chart.lines.useArea && n >= 2) {
828
+ let t = ne([...l].reverse()), n = s([...l].reverse()), r = l[l.length - 1];
829
+ h = `M${c[0].x},${c[0].y} ${e(u)} L${r.x},${r.y} ${e(t)} Z`, g = `M${c[0].x},${c[0].y} ${e(d)} L${r.x},${r.y} ${e(n)} Z`;
830
+ }
831
+ return {
832
+ ...t,
833
+ points: c,
834
+ smoothPath: f,
835
+ straightPath: m,
836
+ smoothArea: h,
837
+ straightArea: g,
838
+ xMinimap: i,
839
+ yMinimap: a,
840
+ yMinimapBase: o
841
+ };
842
+ });
843
+ }), Xr = b(() => $.value === null || $.value === void 0 ? null : {
844
+ timeLabel: mi($.value),
845
+ absoluteIndex: $.value + q.value.start,
846
+ seriesIndex: $.value,
847
+ datapoint: pi.value,
848
+ series: Y.value,
849
+ config: R.value
850
+ }), Zr = O(!1), Qr = O(!1);
851
+ function $r(e) {
852
+ let t = K.value;
853
+ return e > t ? t : e < 0 || e < q.value.start ? R.value.style.chart.zoom.startIndex === null ? 1 : q.value.start + 1 : e;
854
+ }
855
+ function ei() {
856
+ if (!Zr.value) {
857
+ Zr.value = !0;
858
+ try {
859
+ let { startIndex: e, endIndex: t, keepState: n } = R.value.style.chart.zoom, r = n ? Math.max(0, K.value) : K.value;
860
+ if (n && r <= 0) return;
861
+ let i = e ?? 0, a = t == null ? r : Math.min($r(t + 1), r);
862
+ ri.value = !0, q.value.start = i, q.value.end = a, J.value.start = i, J.value.end = a, Sr(), Qr.value = !0;
863
+ } finally {
864
+ queueMicrotask(() => {
865
+ ri.value = !1;
866
+ }), Zr.value = !1;
867
+ }
868
+ }
869
+ }
870
+ function ti(e) {
871
+ Zr.value || ri.value || e !== q.value.start && (q.value.start = e, J.value.start = e, Sr());
872
+ }
873
+ function ni(e) {
874
+ if (Zr.value || ri.value) return;
875
+ let t = $r(e);
876
+ t !== q.value.end && (q.value.end = t, J.value.end = t, Sr());
877
+ }
878
+ let X = b(() => ({
879
+ left: W.value.left,
880
+ right: W.value.right,
881
+ width: W.value.width
882
+ }));
883
+ $e([
884
+ b(() => {
885
+ let e = R.value.style.chart.grid.y.axisLabels, { prefix: t, suffix: n } = R.value.style.chart.lines.dataLabels;
886
+ return Lr.value.map((r) => String(te(e.formatter, r.value, ie({
887
+ p: t,
888
+ v: r.value,
889
+ s: n,
890
+ r: e.rounding
891
+ }), { datapoint: r }) ?? "")).join("|");
892
+ }),
893
+ () => R.value.style.chart.grid.y.axisLabels.show,
894
+ () => R.value.style.chart.grid.y.axisLabels.fontSize,
895
+ () => R.value.style.chart.grid.y.axisLabels.bold,
896
+ () => R.value.style.chart.grid.y.position
897
+ ], () => {
898
+ R.value.style.chart.grid.y.axisLabels.show && Fn();
899
+ }, { flush: "post" });
900
+ let ri = O(!1);
901
+ we({
902
+ timeLabelsEls: Cn,
903
+ timeLabels: Rr,
904
+ slicer: q,
905
+ configRef: R,
906
+ rotationPath: [
907
+ "style",
908
+ "chart",
909
+ "grid",
910
+ "x",
911
+ "timeLabels",
912
+ "rotation"
913
+ ],
914
+ autoRotatePath: [
915
+ "style",
916
+ "chart",
917
+ "grid",
918
+ "x",
919
+ "timeLabels",
920
+ "autoRotate",
921
+ "enable"
922
+ ],
923
+ isAutoSize: !1,
924
+ width: b(() => U.value.width),
925
+ height: b(() => U.value.height),
926
+ rotation: R.value.style.chart.grid.x.timeLabels.autoRotate.angle
927
+ });
928
+ let ii = O(null);
929
+ function ai(e) {
930
+ let t = V.value;
931
+ if (!t) return null;
932
+ if (t.createSVGPoint && t.getScreenCTM) {
933
+ let n = t.createSVGPoint();
934
+ n.x = e.clientX, n.y = e.clientY;
935
+ let r = t.getScreenCTM();
936
+ if (r) {
937
+ let e = n.matrixTransform(r.inverse());
938
+ return {
939
+ x: e.x,
940
+ y: e.y,
941
+ ok: !0
942
+ };
943
+ }
944
+ }
945
+ let n = t.getBoundingClientRect(), r = t.viewBox?.baseVal || {
946
+ x: 0,
947
+ y: 0,
948
+ width: n.width,
949
+ height: n.height
950
+ }, i = Math.min(n.width / r.width, n.height / r.height), a = r.width * i, o = r.height * i, s = (n.width - a) / 2, c = (n.height - o) / 2;
951
+ return {
952
+ x: (e.clientX - n.left - s) / i + r.x,
953
+ y: (e.clientY - n.top - c) / i + r.y,
954
+ ok: !0
955
+ };
956
+ }
957
+ let oi = 0, Z = b(() => Math.max(1, q.value.end - q.value.start)), si = b(() => Z.value > 1 ? W.value.width / (Z.value - 1) : 0);
958
+ function Q(e) {
959
+ return Z.value <= 1 ? W.value.left + W.value.width / 2 : W.value.left + e * si.value;
960
+ }
961
+ function ci(e) {
962
+ if (Z.value <= 1) return {
963
+ x: W.value.left,
964
+ width: W.value.width
965
+ };
966
+ 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;
967
+ return {
968
+ x: t,
969
+ width: Math.max(0, n - t)
970
+ };
971
+ }
972
+ function li(e) {
973
+ Ln.value || (oi && cancelAnimationFrame(oi), oi = requestAnimationFrame(() => {
974
+ oi = 0;
975
+ let t = ai(e);
976
+ if (!t || !V.value) {
977
+ fi();
978
+ return;
979
+ }
980
+ let { left: n, right: r, top: i, bottom: a } = W.value;
981
+ if (t.x < n || t.x > r || t.y < i || t.y > a) {
982
+ fi();
983
+ return;
984
+ }
985
+ let o = 0;
986
+ if (Z.value > 1) {
987
+ let e = (t.x - n) / si.value;
988
+ o = Math.round(e);
989
+ } else o = 0;
990
+ o < 0 && (o = 0), o > Z.value - 1 && (o = Z.value - 1), ii.value !== o && (ii.value = o, gi(!0, o));
991
+ }));
992
+ }
993
+ function ui(e) {
994
+ let t = ai(e);
995
+ if (!t || !V.value) return;
996
+ let { left: n, right: r, top: i, bottom: a } = W.value;
997
+ if (t.x < n || t.x > r || t.y < i || t.y > a) return;
998
+ let o = 0;
999
+ if (Z.value > 1) {
1000
+ let e = (t.x - n) / si.value;
1001
+ o = Math.round(e);
1002
+ } else o = 0;
1003
+ o < 0 && (o = 0), o > Z.value - 1 && (o = Z.value - 1), Yi({
1004
+ seriesIndex: o,
1005
+ datapoint: Vi(o)
1006
+ }), di(o);
1007
+ }
1008
+ function di(e) {
1009
+ let t = JSON.parse(JSON.stringify(Y.value)).map((t) => ({
1010
+ name: t.name,
1011
+ value: t.series[e] === 0 ? 0 : t.series[e] || null,
1012
+ proportion: t.proportions[e] || null,
1013
+ color: t.color,
1014
+ id: t.id
1015
+ }));
1016
+ R.value.events.datapointClick && R.value.events.datapointClick({
1017
+ datapoint: t,
1018
+ seriesIndex: e + q.value.start
1019
+ }), F("selectDatapoint", {
1020
+ datapoint: t,
1021
+ period: Rr.value[e]
1022
+ });
1023
+ }
1024
+ $e(() => [
1025
+ q.value.start,
1026
+ q.value.end,
1027
+ Y.value.length
1028
+ ], () => {
1029
+ let e = Z.value;
1030
+ if ($.value != null) {
1031
+ if (e <= 0) {
1032
+ $.value = null;
1033
+ return;
1034
+ }
1035
+ $.value < 0 && ($.value = 0), $.value > e - 1 && ($.value = e - 1);
1036
+ }
1037
+ });
1038
+ function fi() {
1039
+ oi &&= (cancelAnimationFrame(oi), 0), ii.value = null, gi(!1, null);
1040
+ }
1041
+ let $ = O(null), pi = b(() => {
1042
+ let e = $.value, t = e == null ? null : yr(e);
1043
+ return Y.value.map((n) => ({
1044
+ slotAbsoluteIndex: n.absoluteIndex,
1045
+ shape: n.shape || "circle",
1046
+ name: n.name,
1047
+ color: n.color,
1048
+ value: e == null ? null : n.series.find((t, n) => n === e),
1049
+ sourceValue: t == null ? null : n.seriesSource?.[t],
1050
+ comments: n.comments || [],
1051
+ id: n.id,
1052
+ standalone: !!n.standalone
1053
+ }));
1054
+ });
1055
+ function mi(e) {
1056
+ if (e == null || !R.value.style.chart.tooltip.showTimeLabel) return null;
1057
+ let t = Rr.value?.[e]?.text || null, n = Jr.value?.[e]?.text || null, r = zr.value?.[e]?.text || null;
1058
+ return R.value.style.chart.tooltip.useDefaultTimeFormat ? t : n || r;
1059
+ }
1060
+ let hi = b(() => {
1061
+ let e = R.value.style.chart.tooltip.customFormat, t = [...pi.value].reverse(), n = t.filter((e) => !e.standalone), i = t.filter((e) => e.standalone), a = n.map((e) => e.value).filter((e) => fe(e) && e !== null).reduce((e, t) => Math.abs(e) + Math.abs(t), 0);
1062
+ if (ue(e) && m(() => e({
1063
+ absoluteIndex: $.value + q.value.start,
1064
+ seriesIndex: $.value,
1065
+ datapoint: pi.value,
1066
+ series: G.value,
1067
+ config: R.value
1068
+ }))) return e({
1069
+ absoluteIndex: $.value + q.value.start,
1070
+ seriesIndex: $.value,
1071
+ datapoint: pi.value,
1072
+ series: G.value,
1073
+ config: R.value
1074
+ });
1075
+ let { showValue: o, showTotal: s, totalTranslation: c, showPercentage: l, borderColor: u, roundingValue: d, roundingPercentage: f } = R.value.style.chart.tooltip, p = (e) => !e.shape || ![
1076
+ "star",
1077
+ "triangle",
1078
+ "square",
1079
+ "diamond",
1080
+ "pentagon",
1081
+ "hexagon"
1082
+ ].includes(e.shape) ? `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${R.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="${R.value.style.chart.tooltip.backgroundColor}" stroke-width="1" fill="${e.color}" points="${r({
1083
+ plot: {
1084
+ x: 6,
1085
+ y: 6
1086
+ },
1087
+ radius: 5
1088
+ })}" /></svg>` : e.shape === "triangle" ? `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><path d="${re({
1089
+ plot: {
1090
+ x: 6,
1091
+ y: 6
1092
+ },
1093
+ radius: 6,
1094
+ sides: 3,
1095
+ rotation: .52
1096
+ }).path}" fill="${e.color}" stroke="${R.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : e.shape === "square" ? `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${re({
1097
+ plot: {
1098
+ x: 6,
1099
+ y: 6
1100
+ },
1101
+ radius: 6,
1102
+ sides: 4,
1103
+ rotation: .8
1104
+ }).path}" fill="${e.color}" stroke="${R.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="${re({
1105
+ plot: {
1106
+ x: 6,
1107
+ y: 6
1108
+ },
1109
+ radius: 5,
1110
+ sides: 4,
1111
+ rotation: 0
1112
+ }).path}" fill="${e.color}" stroke="${R.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="${re({
1113
+ plot: {
1114
+ x: 6,
1115
+ y: 6
1116
+ },
1117
+ radius: 5,
1118
+ sides: 5,
1119
+ rotation: .95
1120
+ }).path}" fill="${e.color}" stroke="${R.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><path d="${re({
1121
+ plot: {
1122
+ x: 6,
1123
+ y: 6
1124
+ },
1125
+ radius: 5,
1126
+ sides: 6,
1127
+ rotation: 0
1128
+ }).path}" fill="${e.color}" stroke="${R.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`, h = (e, t) => {
1129
+ let n = t ? ie({
1130
+ v: isNaN((e.value ?? 0) / (a || 1)) ? 0 : Math.abs(e.value ?? 0) / (a || 1) * 100,
1131
+ s: "%",
1132
+ r: f
1133
+ }) : "", r = o && t ? "(" : "", i = o && t ? ")" : "";
1134
+ return `
1135
+ <div style="display:flex;flex-direction:row;align-items:center;gap:4px">
1136
+ <div style="width:20px;height:20px;display:flex;align-items:center;justify-content:center;">${p(e)}</div>
1137
+ ${e.name}${o || t ? ":" : ""}
1138
+ ${o ? te(R.value.style.chart.lines.dataLabels.formatter, e.sourceValue, ie({
1139
+ p: R.value.style.chart.lines.dataLabels.prefix,
1140
+ v: e.sourceValue,
1141
+ s: R.value.style.chart.lines.dataLabels.suffix,
1142
+ r: d
1143
+ }, { datapoint: e })) : ""} ${r}${n}${i}
1144
+ </div>
1145
+ `;
1146
+ }, g = "", _ = mi($.value);
1147
+ return _ && (g += `<div style="width:100%;text-align:center;border-bottom:1px solid ${u};padding-bottom:6px;margin-bottom:3px;">${_}</div>`), s && n.length > 1 && (g += `<div class="vue-data-ui-tooltip-total" style="display:flex;flex-direction:row;align-items:center;gap:4px">
1148
+ <span>${c}:</span>
1149
+ <span>${te(R.value.style.chart.lines.dataLabels.formatter, ae(a), ie({
1150
+ p: R.value.style.chart.lines.dataLabels.prefix,
1151
+ v: ae(a),
1152
+ s: R.value.style.chart.lines.dataLabels.suffix,
1153
+ r: d
1154
+ }), { datapoint: {
1155
+ name: c,
1156
+ value: ae(a)
1157
+ } })}</span>
1158
+ </div>`), n.forEach((e) => {
1159
+ g += h(e, l);
1160
+ }), i.length && (g += `<div style="border-top:1px solid ${gr.value.length ? u : "transparent"}; margin:${gr.value.length ? "6px 0" : "0"};"></div>`, i.forEach((e) => {
1161
+ g += h(e, !1);
1162
+ })), `<div>${g}</div>`;
1163
+ });
1164
+ function gi(e, t = null, n = "pointer") {
1165
+ if (Or.value) return;
1166
+ jn.value = n, tn.value = e;
1167
+ let r = Y.value.map((e) => ({
1168
+ name: e.name,
1169
+ value: [
1170
+ null,
1171
+ void 0,
1172
+ NaN
1173
+ ].includes(e.series[t]) ? null : e.series[t],
1174
+ color: e.color
1175
+ }));
1176
+ e ? (kn.value = t, $.value = t, Yi({
1177
+ seriesIndex: t,
1178
+ datapoint: r
1179
+ }), R.value.events.datapointEnter && R.value.events.datapointEnter({
1180
+ datapoint: r,
1181
+ seriesIndex: t + q.value.start
1182
+ })) : (kn.value = null, $.value = null, F("selectX", {
1183
+ index: null,
1184
+ indexLabel: null,
1185
+ dataset: null
1186
+ }), R.value.events.datapointLeave && R.value.events.datapointLeave({
1187
+ datapoint: r,
1188
+ seriesIndex: t + q.value.start
1189
+ }));
1190
+ }
1191
+ function _i(e, t) {
1192
+ F("selectTimeLabel", {
1193
+ datapoint: JSON.parse(JSON.stringify(Y.value)).map((e) => ({
1194
+ name: e.name,
1195
+ value: e.series[t] === 0 ? 0 : (e.signedSeries[t] === -1 && e.series[t] >= 0 ? -e.series[t] : e.series[t]) || null,
1196
+ proportion: e.proportions[t] || null,
1197
+ color: e.color,
1198
+ id: e.id
1199
+ })),
1200
+ absoluteIndex: e.absoluteIndex,
1201
+ label: e.text
1202
+ });
1203
+ }
1204
+ function vi() {
1205
+ L.value.length ? L.value = [] : bi.value.forEach((e) => {
1206
+ L.value.push(e.id);
1207
+ }), F("selectLegend", Y.value);
1208
+ }
1209
+ function yi(e) {
1210
+ if (L.value.includes(e.id)) L.value = L.value.filter((t) => t !== e.id);
1211
+ else {
1212
+ if (L.value.length === G.value.length - 1) return;
1213
+ L.value.push(e.id);
1214
+ }
1215
+ F("selectLegend", Y.value);
1216
+ }
1217
+ let bi = b(() => G.value.map((e) => ({
1218
+ ...e,
1219
+ opacity: L.value.includes(e.id) ? .5 : 1,
1220
+ segregate: () => yi(e),
1221
+ isSegregated: L.value.includes(e.id)
1222
+ }))), xi = b(() => ({
1223
+ cy: "stackline-legend",
1224
+ backgroundColor: R.value.style.chart.legend.backgroundColor,
1225
+ color: R.value.style.chart.legend.color,
1226
+ fontSize: R.value.style.chart.legend.fontSize,
1227
+ paddingBottom: 12,
1228
+ fontWeight: R.value.style.chart.legend.bold ? "bold" : ""
1229
+ }));
1230
+ function Si(e) {
1231
+ return G.value.length ? G.value.find((t) => t.name === e) || (R.value.debug && console.warn(`VueUiStackline - Series name not found "${e}"`), null) : (R.value.debug && console.warn("VueUiStackline - There are no series to show."), null);
1232
+ }
1233
+ function Ci(e) {
1234
+ let t = Si(e);
1235
+ t !== null && L.value.includes(t.id) && yi({ id: t.id });
1236
+ }
1237
+ function wi(e) {
1238
+ let t = Si(e);
1239
+ t !== null && (L.value.includes(t.id) || yi({ id: t.id }));
1240
+ }
1241
+ let Ti = b(() => {
1242
+ if (Y.value.length === 0) return {
1243
+ head: [],
1244
+ body: [],
1245
+ config: {},
1246
+ columnNames: []
1247
+ };
1248
+ let e = Y.value.map(({ name: e, color: t }) => ({
1249
+ label: e,
1250
+ color: t
1251
+ })), t = [];
1252
+ return Ur.value.forEach((e) => {
1253
+ let n = e.absoluteIndex, r = [R.value.style.chart.grid.x.timeLabels.values?.[n] ? e.text : n + 1];
1254
+ G.value.forEach((e) => {
1255
+ let t = e.series?.[n], i = Number((t ?? 0).toFixed(R.value.table.td.roundingValue));
1256
+ r.push(i);
1257
+ }), t.push(r);
1258
+ }), {
1259
+ head: e,
1260
+ body: t
1261
+ };
1262
+ });
1263
+ function Ei(e = null) {
1264
+ let t = [
1265
+ [R.value.style.chart.title.text],
1266
+ [R.value.style.chart.title.subtitle.text],
1267
+ [""]
1268
+ ], n = ["", ...Ti.value.head.map((e) => e.label)], r = Ti.value.body, i = de(t.concat([n]).concat(r));
1269
+ e ? e(i) : p({
1270
+ csvContent: i,
1271
+ title: R.value.style.chart.title.text || "vue-ui-stackline"
1272
+ });
1273
+ }
1274
+ let Di = b(() => {
1275
+ 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);
1276
+ for (let e = 0; e < n; e += 1) {
1277
+ let n = yr(e), r = R.value.style.chart.grid.x.timeLabels.values?.[n] ? Rr.value?.[e]?.text ?? n + 1 : n + 1, i = Y.value.map((t) => {
1278
+ let n = t.series?.[e] ?? 0;
1279
+ return Number(n.toFixed(R.value.table.td.roundingValue));
1280
+ }), a = Y.value.filter((e) => !e.standalone).map((t) => t.series?.[e] ?? 0).reduce((e, t) => e + t, 0);
1281
+ t.push([r].concat(i, Number(a.toFixed(R.value.table.td.roundingValue))));
1282
+ }
1283
+ return {
1284
+ head: e,
1285
+ body: t,
1286
+ config: {
1287
+ th: {
1288
+ backgroundColor: R.value.table.th.backgroundColor,
1289
+ color: R.value.table.th.color,
1290
+ outline: R.value.table.th.outline
1291
+ },
1292
+ td: {
1293
+ backgroundColor: R.value.table.td.backgroundColor,
1294
+ color: R.value.table.td.color,
1295
+ outline: R.value.table.td.outline
1296
+ },
1297
+ breakpoint: R.value.table.responsiveBreakpoint
1298
+ },
1299
+ colNames: [R.value.table.columnNames.period].concat(Y.value.map((e) => e.name), R.value.table.columnNames.total)
1300
+ };
1301
+ }), Oi = b(() => R.value.style.chart.backgroundColor), ki = b(() => R.value.style.chart.legend), { exportSvg: Ai, getSvg: ji } = be({
1302
+ svg: V,
1303
+ title: b(() => R.value.style.chart.title),
1304
+ legend: ki,
1305
+ legendItems: bi,
1306
+ backgroundColor: Oi
1307
+ });
1308
+ async function Mi({ isCb: e }) {
1309
+ yn.value = !0, await We();
1310
+ try {
1311
+ if (e) {
1312
+ let { blob: e, url: t, text: n, dataUrl: r } = await ji();
1313
+ await Promise.resolve(R.value.userOptions.callbacks.svg({
1314
+ blob: e,
1315
+ url: t,
1316
+ text: n,
1317
+ dataUrl: r
1318
+ }));
1319
+ } else await Promise.resolve(Ai());
1320
+ } finally {
1321
+ yn.value = !1;
1322
+ }
1323
+ }
1324
+ async function Ni({ scale: e = 2 } = {}) {
1325
+ if (!en.value) return;
1326
+ let { imageUri: t, base64: n } = await Te({
1327
+ domElement: en.value,
1328
+ base64: !0,
1329
+ img: !0,
1330
+ scale: e
1331
+ }), r = en.value.getBoundingClientRect(), i = {
1332
+ width: r.width,
1333
+ height: r.height,
1334
+ aspectRatio: r.height ? r.width / r.height : 0
1335
+ }, a = await g(t, e) ?? i;
1336
+ return {
1337
+ imageUri: t,
1338
+ base64: n,
1339
+ title: R.value.style.chart.title.text,
1340
+ ...a
1341
+ };
1342
+ }
1343
+ let Pi = b(() => {
1344
+ let e = R.value.table.useDialog && !R.value.table.show, t = H.value.showTable;
1345
+ return {
1346
+ component: e ? Jt : Ut,
1347
+ title: `${R.value.style.chart.title.text}${R.value.style.chart.title.subtitle.text ? `: ${R.value.style.chart.title.subtitle.text}` : ""}`,
1348
+ props: e ? {
1349
+ backgroundColor: R.value.table.th.backgroundColor,
1350
+ color: R.value.table.th.color,
1351
+ headerColor: R.value.table.th.color,
1352
+ headerBg: R.value.table.th.backgroundColor,
1353
+ isFullscreen: ln.value,
1354
+ fullscreenParent: en.value,
1355
+ forcedWidth: Math.min(800, window.innerWidth * .8),
1356
+ isCursorPointer: z.value
1357
+ } : {
1358
+ hideDetails: !0,
1359
+ config: {
1360
+ open: t,
1361
+ maxHeight: 1e4,
1362
+ body: {
1363
+ backgroundColor: R.value.style.chart.backgroundColor,
1364
+ color: R.value.style.chart.color
1365
+ },
1366
+ head: {
1367
+ backgroundColor: R.value.style.chart.backgroundColor,
1368
+ color: R.value.style.chart.color
1369
+ }
1370
+ }
1371
+ }
1372
+ };
1373
+ });
1374
+ $e(() => H.value.showTable, (e) => {
1375
+ R.value.table.show || (e && R.value.table.useDialog && hn.value ? hn.value.open() : "close" in hn.value && hn.value.close());
1376
+ });
1377
+ function Fi() {
1378
+ H.value.showTable = !1, gn.value && gn.value.setTableIconState(!1);
1379
+ }
1380
+ function Ii(e) {
1381
+ ln.value = e, nn.value += 1;
1382
+ }
1383
+ function Li() {
1384
+ H.value.showTable = !H.value.showTable;
1385
+ }
1386
+ function Ri() {
1387
+ H.value.dataLabels.show = !H.value.dataLabels.show;
1388
+ }
1389
+ function zi() {
1390
+ H.value.showTooltip = !H.value.showTooltip;
1391
+ }
1392
+ function Bi() {
1393
+ return Y.value;
1394
+ }
1395
+ function Vi(e) {
1396
+ let t = e ?? 0, n = yr(t);
1397
+ return JSON.parse(JSON.stringify(Y.value)).map((e) => {
1398
+ let r = e.series[t], i = e.signedSeries?.[t], a = r === 0 ? 0 : (i === -1 && r >= 0 ? -r : r) || null;
1399
+ return {
1400
+ name: e.name,
1401
+ absoluteIndex: e.absoluteIndex,
1402
+ value: a,
1403
+ proportion: e.proportions?.[t] || null,
1404
+ color: e.color,
1405
+ id: e.id,
1406
+ timeLabel: zr.value?.[n] || null
1407
+ };
1408
+ });
1409
+ }
1410
+ let Hi = b(() => Array(K.value).fill(0).map((e, t) => Vi(t)));
1411
+ $e(() => P.selectedXIndex, (e) => {
1412
+ if ([null, void 0].includes(P.selectedXIndex)) {
1413
+ $.value = null;
1414
+ return;
1415
+ }
1416
+ let t = e - q.value.start;
1417
+ t < 0 || e >= q.value.end ? $.value = null : $.value = t ?? null;
1418
+ }, { immediate: !0 });
1419
+ let Ui = b(() => {
1420
+ if (R.value.style.chart.lines.distributed) return {
1421
+ min: -1,
1422
+ max: 1
1423
+ };
1424
+ 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);
1425
+ e.forEach((e) => {
1426
+ for (let t = 0; t < n; t += 1) {
1427
+ let n = e.series[t] ?? 0;
1428
+ n >= 0 ? r[t] += n : i[t] += n;
1429
+ }
1430
+ });
1431
+ let a = Array(n).fill(0), o = Array(n).fill(0);
1432
+ t.forEach((e) => {
1433
+ for (let t = 0; t < n; t += 1) {
1434
+ let n = e.series[t] ?? 0;
1435
+ n > 0 && (a[t] = Math.max(a[t], n)), n < 0 && (o[t] = Math.min(o[t], n));
1436
+ }
1437
+ });
1438
+ let s = Math.max(0, ...r, ...a), c = Math.min(0, ...i, ...o), l = R.value.style.chart.grid.scale.scaleMin, u = R.value.style.chart.grid.scale.scaleMax, d = R.value.style.chart.grid.scale.ticks, f = !R.value.style.chart.lines.distributed && (l !== null || u !== null) ? _(l === null ? c > 0 ? 0 : c : l, u === null ? s < 0 ? 0 : s : u, d) : ee(l === null ? c > 0 ? 0 : c : l, u === null ? s < 0 ? 0 : s : u, d);
1439
+ return {
1440
+ min: Number(f.min) || 0,
1441
+ max: Number(f.max) || 0
1442
+ };
1443
+ });
1444
+ function Wi({ minimapH: e, unitW: t }) {
1445
+ let n = (e) => typeof e == "string" ? e.replace(/^M\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*,?\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*/i, "").trim() : "";
1446
+ if (!Number.isFinite(e) || e <= 0 || !Number.isFinite(t) || t <= 0) return "";
1447
+ 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));
1448
+ if (a <= 0) return "";
1449
+ let o = a === 1 ? [t * .5] : Array.from({ length: a }, (e, n) => n * t);
1450
+ if (R.value.style.chart.lines.distributed) {
1451
+ let t = Array.from({ length: a }, (e, t) => {
1452
+ let n = 0;
1453
+ return r.forEach((e) => {
1454
+ let r = (Array.isArray(e.fullSeries) ? e.fullSeries : e.series)?.[t];
1455
+ r != null && !Number.isNaN(r) && (n += Math.abs(r));
1456
+ }), n || 1;
1457
+ }), c = (t) => e - e * Math.max(0, Math.min(1, t || 0)), l = [], u = Array(a).fill(0);
1458
+ return r.forEach((e) => {
1459
+ let r = Array.isArray(e.fullSeries) ? e.fullSeries : e.series, i = Array(a), d = Array(a);
1460
+ for (let e = 0; e < a; e += 1) {
1461
+ let n = r?.[e], a = n == null || Number.isNaN(n) ? 0 : Math.abs(n) / t[e];
1462
+ d[e] = u[e], u[e] += a, i[e] = u[e];
1463
+ }
1464
+ let f = i.map(c), p = d.map(c), m = o.map((e, t) => ({
1465
+ x: e,
1466
+ y: f[t]
1467
+ })), h = o.map((e, t) => ({
1468
+ x: e,
1469
+ y: p[t]
1470
+ })), g = ne(m), _ = ne([...h].reverse()), ee = s(m), te = s([...h].reverse()), v = h[h.length - 1];
1471
+ if (R.value.style.chart.lines.useArea) {
1472
+ let t = R.value.style.chart.lines.smooth ? `M${m[0].x},${m[0].y} ${n(g)} L${v.x},${v.y} ${n(_)} Z` : `M${m[0].x},${m[0].y} ${n(ee)} L${v.x},${v.y} ${n(te)} Z`;
1473
+ l.push(`<path d="${t}"
1474
+ fill="${Qt.pattern ? `url(#pattern_${I.value}_${e.absoluteIndex})` : (R.value.style.chart.lines.gradient.show, e.color)}"
1475
+ opacity="${R.value.style.chart.lines.areaOpacity}"
1476
+ stroke="none" />`);
1477
+ }
1478
+ let re = R.value.style.chart.lines.smooth ? `M${m[0].x},${m[0].y} ${n(g)}` : `M${m[0].x},${m[0].y} ${n(ee)}`;
1479
+ l.push(`<path d="${re}"
1480
+ fill="none"
1481
+ stroke="${e.color}"
1482
+ stroke-width="${R.value.style.chart.lines.strokeWidth}"
1483
+ stroke-linecap="round" />`);
1484
+ }), i.length && i.forEach((e) => {
1485
+ let r = Array.isArray(e.fullSeries) ? e.fullSeries : e.series, i = Array.from({ length: a }, (e, n) => c(Math.abs(r?.[n] ?? 0) / t[n])), u = o.map((e, t) => ({
1486
+ x: e,
1487
+ y: i[t]
1488
+ })), d = ne(u), f = s(u), p = R.value.style.chart.lines.smooth ? `M${u[0].x},${u[0].y} ${n(d)}` : `M${u[0].x},${u[0].y} ${n(f)}`;
1489
+ l.push(`<path d="${p}"
1490
+ fill="none"
1491
+ stroke="${e.color}"
1492
+ stroke-width="${R.value.style.chart.lines.strokeWidth}"
1493
+ stroke-linecap="round" />`);
1494
+ }), l.join("");
1495
+ }
1496
+ let c = Ui.value.min, l = Ui.value.max, u = Math.abs(c), d = l + u || 1, f = (t) => Math.max(0, Math.min(e, t)), p = (t) => f(e - e * (((t ?? 0) + u) / d)), m = [];
1497
+ if (r.length) {
1498
+ let e = Array(a).fill(0), t = Array(a).fill(0);
1499
+ r.forEach((r) => {
1500
+ let i = Array.isArray(r.fullSeries) ? r.fullSeries : r.series, c = Array(a), l = Array(a);
1501
+ for (let n = 0; n < a; n += 1) {
1502
+ let r = i?.[n] ?? 0;
1503
+ r >= 0 ? (l[n] = e[n], e[n] += r, c[n] = e[n]) : (l[n] = t[n], t[n] += r, c[n] = t[n]);
1504
+ }
1505
+ let u = c.map(p), d = l.map(p), f = o.map((e, t) => ({
1506
+ x: e,
1507
+ y: u[t]
1508
+ })), h = o.map((e, t) => ({
1509
+ x: e,
1510
+ y: d[t]
1511
+ })), g = ne(f), _ = ne([...h].reverse()), ee = s(f), te = s([...h].reverse()), v = h[h.length - 1];
1512
+ if (R.value.style.chart.lines.useArea) {
1513
+ let e = R.value.style.chart.lines.smooth ? `M${f[0].x},${f[0].y} ${n(g)} L${v.x},${v.y} ${n(_)} Z` : `M${f[0].x},${f[0].y} ${n(ee)} L${v.x},${v.y} ${n(te)} Z`;
1514
+ m.push(`<path d="${e}"
1515
+ fill="${Qt.pattern ? `url(#pattern_${I.value}_${r.absoluteIndex})` : (R.value.style.chart.lines.gradient.show, r.color)}"
1516
+ opacity="${R.value.style.chart.lines.areaOpacity}"
1517
+ stroke="none" />`);
1518
+ }
1519
+ let re = R.value.style.chart.lines.smooth ? `M${f[0].x},${f[0].y} ${n(g)}` : `M${f[0].x},${f[0].y} ${n(ee)}`;
1520
+ m.push(`<path d="${re}"
1521
+ fill="none"
1522
+ stroke="${r.color}"
1523
+ stroke-width="${R.value.style.chart.lines.strokeWidth}"
1524
+ stroke-linecap="round" />`);
1525
+ });
1526
+ }
1527
+ return i.length && i.forEach((e) => {
1528
+ let t = (Array.isArray(e.fullSeries) ? e.fullSeries : e.series).map(p), r = o.map((e, n) => ({
1529
+ x: e,
1530
+ y: t[n]
1531
+ })), i = ne(r), a = s(r), c = R.value.style.chart.lines.smooth ? `M${r[0].x},${r[0].y} ${n(i)}` : `M${r[0].x},${r[0].y} ${n(a)}`;
1532
+ m.push(`<path d="${c}"
1533
+ fill="none"
1534
+ stroke="${e.color}"
1535
+ stroke-width="${R.value.style.chart.lines.strokeWidth}"
1536
+ stroke-linecap="round" />`);
1537
+ }), m.join("");
1538
+ }
1539
+ function Gi(e, t) {
1540
+ let n = R.value.style.chart.lines, r = n.dataLabels;
1541
+ return n.showDistributedPercentage && n.distributed ? Yn.value ? t === 0 ? !r.hideEmptyPercentages : Math.abs(t) * 100 >= r.hideUnderPercentage : r.hideEmptyPercentages ? Math.abs(t) > 0 : !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) > Ki.value * r.hideUnderPercentage / 100) : Jn.value ? Math.abs(e) >= r.hideUnderValue : r.hideEmptyValues ? e !== 0 : !0;
1542
+ }
1543
+ let Ki = b(() => Math.max(...Y.value.flatMap((e) => e.series)));
1544
+ function qi(e, t, n, r, i) {
1545
+ let a = i === -1 && e >= 0 ? -e : e;
1546
+ return te(R.value.style.chart.lines.dataLabels.formatter, a, ie({
1547
+ p: R.value.style.chart.lines.dataLabels.prefix,
1548
+ v: a,
1549
+ s: R.value.style.chart.lines.dataLabels.suffix,
1550
+ r: R.value.style.chart.lines.dataLabels.rounding
1551
+ }), {
1552
+ datapoint: t,
1553
+ seriesIndex: n,
1554
+ datapointIndex: r
1555
+ });
1556
+ }
1557
+ function Ji(e, t, n, r) {
1558
+ return te(R.value.style.chart.lines.dataLabels.formatter, e, ie({
1559
+ v: isNaN(e) ? 0 : e,
1560
+ s: "%",
1561
+ r: R.value.style.chart.lines.dataLabels.rounding
1562
+ }), {
1563
+ datapoint: t,
1564
+ seriesIndex: n,
1565
+ datapointIndex: r
1566
+ });
1567
+ }
1568
+ function Yi({ seriesIndex: e, datapoint: t }) {
1569
+ let n = q.value.start + e;
1570
+ F("selectX", {
1571
+ dataset: t,
1572
+ index: n,
1573
+ indexLabel: R.value.style.chart.grid.x.timeLabels.values[n]
1574
+ });
1575
+ }
1576
+ function Xi(e) {
1577
+ if (e?.stage === "start") {
1578
+ vn.value = !0;
1579
+ return;
1580
+ }
1581
+ if (e?.stage === "end") {
1582
+ vn.value = !1;
1583
+ return;
1584
+ }
1585
+ $n();
1586
+ }
1587
+ async function Zi() {
1588
+ if (F("copyAlt", {
1589
+ config: R.value,
1590
+ dataset: Y.value
1591
+ }), !R.value.userOptions.callbacks.altCopy) {
1592
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
1593
+ return;
1594
+ }
1595
+ await Promise.resolve(R.value.userOptions.callbacks.altCopy({
1596
+ config: R.value,
1597
+ dataset: Y.value
1598
+ }));
1599
+ }
1600
+ let Qi = O(!1);
1601
+ function $i() {
1602
+ kn.value = null, Qi.value = !0;
1603
+ }
1604
+ function ea() {
1605
+ kn.value = null, jn.value = "pointer", tn.value = !1, $.value = null, F("selectX", {
1606
+ index: null,
1607
+ indexLabel: null,
1608
+ dataset: null
1609
+ }), Qi.value = !1;
1610
+ }
1611
+ function ta(e) {
1612
+ if (!V.value || Ln.value || document.activeElement !== V.value || Or.value || !Z.value) return;
1613
+ let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
1614
+ if (!t && !n && !r && !i) return;
1615
+ if (e.preventDefault(), e.stopPropagation(), i) {
1616
+ kn.value = null, jn.value = "pointer", tn.value = !1, $.value = null, F("selectX", {
1617
+ index: null,
1618
+ indexLabel: null,
1619
+ dataset: null
1620
+ });
1621
+ return;
1622
+ }
1623
+ if (r) {
1624
+ if (kn.value === null) return;
1625
+ di(kn.value);
1626
+ return;
1627
+ }
1628
+ let a = kn.value, o = ii.value, s = a !== null && a >= 0 && a < Z.value, c = o !== null && o >= 0 && o < Z.value;
1629
+ 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, kn.value = a, na(a), gi(!0, a, "keyboard");
1630
+ }
1631
+ function na(e) {
1632
+ if (!Number.isFinite(e) || !V.value) return;
1633
+ let t = n(W.value.left + e * si.value, W.value.top + W.value.height / 2, V.value);
1634
+ t && (An.value = t);
1635
+ }
1636
+ let ra = b(() => ({
1637
+ headers: Di.value?.colNames ?? [],
1638
+ rows: Di.value?.body ?? []
1639
+ }));
1640
+ return Oe({
1641
+ getData: Bi,
1642
+ getImage: Ni,
1643
+ generatePdf: Qn,
1644
+ generateCsv: Ei,
1645
+ generateImage: $n,
1646
+ generateSvg: Mi,
1647
+ hideSeries: wi,
1648
+ showSeries: Ci,
1649
+ toggleTable: Li,
1650
+ toggleLabels: Ri,
1651
+ toggleTooltip: zi,
1652
+ toggleAnnotator: Rn,
1653
+ toggleFullscreen: Ii,
1654
+ copyAlt: Zi
1655
+ }), (t, n) => (D(), C("div", {
1656
+ id: `stackline_${I.value}`,
1657
+ ref_key: "stacklineChart",
1658
+ ref: en,
1659
+ class: Ge({
1660
+ "vue-data-ui-component": !0,
1661
+ "vue-ui-stackline": !0,
1662
+ "vue-data-ui-wrapper-fullscreen": ln.value
1663
+ }),
1664
+ style: Ke(`background:${R.value.style.chart.backgroundColor};color:${R.value.style.chart.color};font-family:${R.value.style.fontFamily}; position: relative; ${R.value.responsive ? "height: 100%" : ""}`),
1665
+ onMouseenter: Gn,
1666
+ onMouseleave: Kn
1667
+ }, [
1668
+ w("div", {
1669
+ id: `chart-instructions-${I.value}`,
1670
+ class: "sr-only"
1671
+ }, [w("p", null, j(R.value.a11y.translations.keyboardNavigation), 1)], 8, rt),
1672
+ ra.value?.rows?.length ? (D(), x(Ne, {
1673
+ key: 0,
1674
+ uid: I.value,
1675
+ head: ra.value.headers,
1676
+ body: ra.value.rows,
1677
+ notice: R.value.a11y.translations.tableAvailable,
1678
+ caption: R.value.a11y.translations.tableCaption
1679
+ }, null, 8, [
1680
+ "uid",
1681
+ "head",
1682
+ "body",
1683
+ "notice",
1684
+ "caption"
1685
+ ])) : S("", !0),
1686
+ R.value.userOptions.buttons.annotator ? (D(), x(M(Gt), {
1687
+ key: 1,
1688
+ svgRef: M(V),
1689
+ backgroundColor: R.value.style.chart.backgroundColor,
1690
+ color: R.value.style.chart.color,
1691
+ active: Ln.value,
1692
+ isCursorPointer: z.value,
1693
+ onClose: Rn
1694
+ }, {
1695
+ "annotator-action-close": N(() => [A(t.$slots, "annotator-action-close", {}, void 0, !0)]),
1696
+ "annotator-action-color": N(({ color: e }) => [A(t.$slots, "annotator-action-color", E(T({ color: e })), void 0, !0)]),
1697
+ "annotator-action-draw": N(({ mode: e }) => [A(t.$slots, "annotator-action-draw", E(T({ mode: e })), void 0, !0)]),
1698
+ "annotator-action-undo": N(({ disabled: e }) => [A(t.$slots, "annotator-action-undo", E(T({ disabled: e })), void 0, !0)]),
1699
+ "annotator-action-redo": N(({ disabled: e }) => [A(t.$slots, "annotator-action-redo", E(T({ disabled: e })), void 0, !0)]),
1700
+ "annotator-action-delete": N(({ disabled: e }) => [A(t.$slots, "annotator-action-delete", E(T({ disabled: e })), void 0, !0)]),
1701
+ _: 3
1702
+ }, 8, [
1703
+ "svgRef",
1704
+ "backgroundColor",
1705
+ "color",
1706
+ "active",
1707
+ "isCursorPointer"
1708
+ ])) : S("", !0),
1709
+ A(t.$slots, "userConfig", {}, void 0, !0),
1710
+ er.value ? (D(), C("div", {
1711
+ key: 2,
1712
+ ref_key: "noTitle",
1713
+ ref: sn,
1714
+ class: "vue-data-ui-no-title-space",
1715
+ style: "height:36px; width: 100%;background:transparent"
1716
+ }, null, 512)) : S("", !0),
1717
+ R.value.style.chart.title.text ? (D(), C("div", {
1718
+ key: 3,
1719
+ ref_key: "chartTitle",
1720
+ ref: rn,
1721
+ style: "width:100%;background:transparent;"
1722
+ }, [(D(), x(Ee, {
1723
+ key: `title_${dn.value}`,
1724
+ config: {
1725
+ title: {
1726
+ cy: "stackline-title",
1727
+ ...R.value.style.chart.title
1728
+ },
1729
+ subtitle: {
1730
+ cy: "stackline-subtitle",
1731
+ ...R.value.style.chart.title.subtitle
1732
+ }
1733
+ }
1734
+ }, null, 8, ["config"]))], 512)) : S("", !0),
1735
+ w("div", { id: `legend-top-${I.value}` }, null, 8, it),
1736
+ R.value.userOptions.show && $t.value && (M(Wn) || M(Hn)) ? (D(), x(M(Kt), {
1737
+ ref_key: "userOptionsRef",
1738
+ ref: gn,
1739
+ key: `user_option_${nn.value}`,
1740
+ backgroundColor: R.value.style.chart.backgroundColor,
1741
+ color: R.value.style.chart.color,
1742
+ isPrinting: M(Xn),
1743
+ isImaging: M(Zn),
1744
+ uid: I.value,
1745
+ hasTooltip: R.value.style.chart.tooltip.show && R.value.userOptions.buttons.tooltip,
1746
+ hasPdf: R.value.userOptions.buttons.pdf,
1747
+ hasImg: R.value.userOptions.buttons.img,
1748
+ hasSvg: R.value.userOptions.buttons.svg,
1749
+ hasXls: R.value.userOptions.buttons.csv,
1750
+ hasTable: R.value.userOptions.buttons.table,
1751
+ hasLabel: R.value.userOptions.buttons.labels,
1752
+ hasFullscreen: R.value.userOptions.buttons.fullscreen,
1753
+ hasAltCopy: R.value.userOptions.buttons.altCopy,
1754
+ isFullscreen: ln.value,
1755
+ chartElement: en.value,
1756
+ position: R.value.userOptions.position,
1757
+ isTooltip: H.value.showTooltip,
1758
+ titles: { ...R.value.userOptions.buttonTitles },
1759
+ hasAnnotator: R.value.userOptions.buttons.annotator,
1760
+ isAnnotation: Ln.value,
1761
+ callbacks: R.value.userOptions.callbacks,
1762
+ printScale: R.value.userOptions.print.scale,
1763
+ tableDialog: R.value.table.useDialog,
1764
+ isCursorPointer: z.value,
1765
+ onToggleFullscreen: Ii,
1766
+ onGeneratePdf: M(Qn),
1767
+ onGenerateCsv: Ei,
1768
+ onGenerateImage: Xi,
1769
+ onGenerateSvg: Mi,
1770
+ onToggleTable: Li,
1771
+ onToggleLabels: Ri,
1772
+ onToggleTooltip: zi,
1773
+ onToggleAnnotator: Rn,
1774
+ onCopyAlt: Zi,
1775
+ style: Ke({ visibility: M(Wn) ? M(Hn) ? "visible" : "hidden" : "visible" })
1776
+ }, ze({ _: 2 }, [
1777
+ t.$slots.menuIcon ? {
1778
+ name: "menuIcon",
1779
+ fn: N(({ isOpen: e, color: n }) => [A(t.$slots, "menuIcon", E(T({
1780
+ isOpen: e,
1781
+ color: n
1782
+ })), void 0, !0)]),
1783
+ key: "0"
1784
+ } : void 0,
1785
+ t.$slots.optionTooltip ? {
1786
+ name: "optionTooltip",
1787
+ fn: N(() => [A(t.$slots, "optionTooltip", {}, void 0, !0)]),
1788
+ key: "1"
1789
+ } : void 0,
1790
+ t.$slots.optionPdf ? {
1791
+ name: "optionPdf",
1792
+ fn: N(() => [A(t.$slots, "optionPdf", {}, void 0, !0)]),
1793
+ key: "2"
1794
+ } : void 0,
1795
+ t.$slots.optionCsv ? {
1796
+ name: "optionCsv",
1797
+ fn: N(() => [A(t.$slots, "optionCsv", {}, void 0, !0)]),
1798
+ key: "3"
1799
+ } : void 0,
1800
+ t.$slots.optionImg ? {
1801
+ name: "optionImg",
1802
+ fn: N(() => [A(t.$slots, "optionImg", {}, void 0, !0)]),
1803
+ key: "4"
1804
+ } : void 0,
1805
+ t.$slots.optionSvg ? {
1806
+ name: "optionSvg",
1807
+ fn: N(() => [A(t.$slots, "optionSvg", {}, void 0, !0)]),
1808
+ key: "5"
1809
+ } : void 0,
1810
+ t.$slots.optionTable ? {
1811
+ name: "optionTable",
1812
+ fn: N(() => [A(t.$slots, "optionTable", {}, void 0, !0)]),
1813
+ key: "6"
1814
+ } : void 0,
1815
+ t.$slots.optionLabels ? {
1816
+ name: "optionLabels",
1817
+ fn: N(() => [A(t.$slots, "optionLabels", {}, void 0, !0)]),
1818
+ key: "7"
1819
+ } : void 0,
1820
+ t.$slots.optionFullscreen ? {
1821
+ name: "optionFullscreen",
1822
+ fn: N(({ toggleFullscreen: e, isFullscreen: n }) => [A(t.$slots, "optionFullscreen", E(T({
1823
+ toggleFullscreen: e,
1824
+ isFullscreen: n
1825
+ })), void 0, !0)]),
1826
+ key: "8"
1827
+ } : void 0,
1828
+ t.$slots.optionAnnotator ? {
1829
+ name: "optionAnnotator",
1830
+ fn: N(({ toggleAnnotator: e, isAnnotator: n }) => [A(t.$slots, "optionAnnotator", E(T({
1831
+ toggleAnnotator: e,
1832
+ isAnnotator: n
1833
+ })), void 0, !0)]),
1834
+ key: "9"
1835
+ } : void 0,
1836
+ t.$slots.optionAltCopy ? {
1837
+ name: "optionAltCopy",
1838
+ fn: N(({ altCopy: e }) => [A(t.$slots, "optionAltCopy", E(T({ altCopy: e })), void 0, !0)]),
1839
+ key: "10"
1840
+ } : void 0,
1841
+ t.$slots["custom-menu-before"] ? {
1842
+ name: "custom-menu-before",
1843
+ fn: N(() => [A(t.$slots, "custom-menu-before", {}, void 0, !0)]),
1844
+ key: "11"
1845
+ } : void 0,
1846
+ t.$slots["custom-menu-after"] ? {
1847
+ name: "custom-menu-after",
1848
+ fn: N(() => [A(t.$slots, "custom-menu-after", {}, void 0, !0)]),
1849
+ key: "12"
1850
+ } : void 0
1851
+ ]), 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.style".split("."))) : S("", !0),
1852
+ w("div", at, [(D(), C("svg", {
1853
+ ref_key: "svgRef",
1854
+ ref: V,
1855
+ "aria-describedby": `chart-instructions-${I.value}`,
1856
+ xmlns: M(se),
1857
+ viewBox: `0 0 ${W.value.chartWidth <= 0 ? 10 : W.value.chartWidth} ${W.value.chartHeight <= 0 ? 10 : W.value.chartHeight}`,
1858
+ class: Ge({
1859
+ "vue-data-ui-loading": M(B),
1860
+ "no-transition": !R.value.useCssAnimation
1861
+ }),
1862
+ style: Ke(`max-width:100%;overflow:visible;background:transparent;color:${R.value.style.chart.color}`),
1863
+ role: "img",
1864
+ "aria-live": "polite",
1865
+ tabindex: "0",
1866
+ preserveAspectRatio: "xMidYMid",
1867
+ onMousemove: li,
1868
+ onMouseleave: fi,
1869
+ onClick: ui,
1870
+ onFocus: $i,
1871
+ onBlur: ea,
1872
+ onKeydown: ta
1873
+ }, [
1874
+ Ve(M(qt)),
1875
+ (D(!0), C(y, null, k(gr.value, (e) => (D(), C(y, null, [t.$slots.pattern ? (D(), C("defs", st, [A(t.$slots, "pattern", Ue({ ref_for: !0 }, {
1876
+ seriesIndex: e.absoluteIndex,
1877
+ patternId: `pattern_${I.value}_${e.absoluteIndex}`
1878
+ }), void 0, !0)])) : S("", !0)], 64))), 256)),
1879
+ t.$slots["chart-background"] ? (D(), C("foreignObject", {
1880
+ key: 0,
1881
+ x: X.value.left,
1882
+ y: W.value.top,
1883
+ width: X.value.width,
1884
+ height: W.value.height,
1885
+ style: { pointerEvents: "none" }
1886
+ }, [A(t.$slots, "chart-background", {}, void 0, !0)], 8, ct)) : S("", !0),
1887
+ R.value.style.chart.lines.gradient.show ? (D(), C("defs", lt, [(D(!0), C(y, null, k(Y.value, (e, t) => (D(), C("linearGradient", {
1888
+ id: `gradient_${e.id}`,
1889
+ x1: "0%",
1890
+ y1: "0%",
1891
+ x2: "0%",
1892
+ y2: "100%"
1893
+ }, [w("stop", {
1894
+ offset: "0%",
1895
+ "stop-color": e.color
1896
+ }, null, 8, dt), w("stop", {
1897
+ offset: "100%",
1898
+ "stop-color": M(l)(e.color, R.value.style.chart.lines.gradient.intensity / 100)
1899
+ }, null, 8, ft)], 8, ut))), 256))])) : S("", !0),
1900
+ R.value.style.chart.grid.x.showHorizontalLines ? (D(!0), C(y, { key: 2 }, k(Lr.value, (e, t) => (D(), C("line", {
1901
+ x1: X.value.left,
1902
+ x2: X.value.right,
1903
+ y1: e.y,
1904
+ y2: e.y,
1905
+ stroke: R.value.style.chart.grid.x.linesColor,
1906
+ "stroke-width": R.value.style.chart.grid.x.linesThickness,
1907
+ "stroke-dasharray": R.value.style.chart.grid.x.linesStrokeDasharray,
1908
+ "stroke-linecap": "round"
1909
+ }, null, 8, pt))), 256)) : S("", !0),
1910
+ R.value.style.chart.grid.y.showVerticalLines ? (D(!0), C(y, { key: 3 }, k(q.value.end - q.value.start, (e, t) => (D(), C("line", {
1911
+ x1: Q(t),
1912
+ x2: Q(t),
1913
+ y1: W.value.top,
1914
+ y2: W.value.bottom,
1915
+ stroke: R.value.style.chart.grid.y.linesColor,
1916
+ "stroke-width": R.value.style.chart.grid.y.linesThickness,
1917
+ "stroke-dasharray": R.value.style.chart.grid.y.linesStrokeDasharray,
1918
+ "stroke-linecap": "round"
1919
+ }, null, 8, mt))), 256)) : S("", !0),
1920
+ R.value.style.chart.grid.x.showAxis ? (D(), C("line", {
1921
+ key: 4,
1922
+ x1: X.value.left,
1923
+ x2: X.value.right,
1924
+ y1: W.value.bottom,
1925
+ y2: W.value.bottom,
1926
+ stroke: R.value.style.chart.grid.x.axisColor,
1927
+ "stroke-width": R.value.style.chart.grid.x.axisThickness,
1928
+ "stroke-linecap": "round",
1929
+ "stroke-linejoin": "round"
1930
+ }, null, 8, ht)) : S("", !0),
1931
+ R.value.style.chart.grid.y.showAxis && !R.value.style.chart.lines.distributed ? (D(), C("line", {
1932
+ key: 5,
1933
+ x1: sr.value ? X.value.right : X.value.left,
1934
+ x2: sr.value ? X.value.right : X.value.left,
1935
+ y1: W.value.top,
1936
+ y2: W.value.bottom,
1937
+ stroke: R.value.style.chart.grid.y.axisColor,
1938
+ "stroke-width": R.value.style.chart.grid.y.axisThickness,
1939
+ "stroke-linecap": "round",
1940
+ "stroke-linejoin": "round"
1941
+ }, null, 8, gt)) : S("", !0),
1942
+ R.value.style.chart.grid.x.axisName.show && R.value.style.chart.grid.x.axisName.text ? (D(), C("text", {
1943
+ key: 6,
1944
+ ref_key: "xAxisLabel",
1945
+ ref: bn,
1946
+ x: W.value.left + W.value.width / 2,
1947
+ y: W.value.chartHeight - 3,
1948
+ "font-size": R.value.style.chart.grid.x.axisName.fontSize,
1949
+ fill: R.value.style.chart.grid.x.axisName.color,
1950
+ "font-weight": R.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
1951
+ "text-anchor": "middle"
1952
+ }, j(R.value.style.chart.grid.x.axisName.text), 9, _t)) : S("", !0),
1953
+ R.value.style.chart.grid.y.axisName.show && R.value.style.chart.grid.y.axisName.text ? (D(), C("text", {
1954
+ key: 7,
1955
+ ref_key: "yAxisLabel",
1956
+ ref: xn,
1957
+ transform: `translate(${sr.value ? W.value.chartWidth - R.value.style.chart.grid.y.axisName.fontSize / 2 - R.value.style.chart.grid.y.axisName.offsetX : R.value.style.chart.grid.y.axisName.fontSize + R.value.style.chart.grid.y.axisName.offsetX}, ${W.value.top + W.value.height / 2}) rotate(-90)`,
1958
+ "font-size": R.value.style.chart.grid.y.axisName.fontSize,
1959
+ fill: R.value.style.chart.grid.y.axisName.color,
1960
+ "font-weight": R.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
1961
+ "text-anchor": "middle"
1962
+ }, j(R.value.style.chart.grid.y.axisName.text), 9, vt)) : S("", !0),
1963
+ R.value.style.chart.grid.frame.show ? (D(), C("rect", {
1964
+ key: 8,
1965
+ style: {
1966
+ pointerEvents: "none",
1967
+ transition: "none",
1968
+ animation: "none !important"
1969
+ },
1970
+ x: X.value.left,
1971
+ y: W.value.top,
1972
+ width: X.value.width,
1973
+ height: W.value.height,
1974
+ fill: "transparent",
1975
+ stroke: R.value.style.chart.grid.frame.stroke,
1976
+ "stroke-width": R.value.style.chart.grid.frame.strokeWidth,
1977
+ "stroke-linecap": R.value.style.chart.grid.frame.strokeLinecap,
1978
+ "stroke-linejoin": R.value.style.chart.grid.frame.strokeLinejoin,
1979
+ "stroke-dasharray": R.value.style.chart.grid.frame.strokeDasharray
1980
+ }, null, 8, yt)) : S("", !0),
1981
+ (D(!0), C(y, null, k(Y.value, (e) => (D(), C(y, null, [R.value.style.chart.lines.useArea && !e.standalone ? (D(), C("path", {
1982
+ key: 0,
1983
+ d: R.value.style.chart.lines.smooth ? e.smoothArea : e.straightArea,
1984
+ fill: t.$slots.pattern ? `url(#pattern_${I.value}_${e.absoluteIndex})` : R.value.style.chart.lines.gradient.show ? `url(#gradient_${e.id})` : e.color,
1985
+ opacity: R.value.style.chart.lines.areaOpacity,
1986
+ style: Ke({ transition: M(B) || !R.value.useCssAnimation ? void 0 : "all 0.3s ease-in-out" })
1987
+ }, null, 12, bt)) : S("", !0)], 64))), 256)),
1988
+ (D(!0), C(y, null, k(Y.value, (e) => (D(), C("path", {
1989
+ d: R.value.style.chart.lines.smooth ? e.smoothPath : e.straightPath,
1990
+ stroke: R.value.style.chart.lines.path.useSerieColor ? e.color : R.value.style.chart.lines.path.stroke,
1991
+ "stroke-width": R.value.style.chart.lines.strokeWidth,
1992
+ fill: "none",
1993
+ "stroke-linecap": "round",
1994
+ style: Ke({ transition: M(B) || !R.value.useCssAnimation ? void 0 : "all 0.3s ease-in-out" })
1995
+ }, null, 12, xt))), 256)),
1996
+ R.value.style.chart.grid.y.axisLabels.show && !R.value.style.chart.lines.distributed ? (D(), C("g", {
1997
+ key: 9,
1998
+ ref_key: "scaleLabels",
1999
+ ref: Sn
2000
+ }, [(D(!0), C(y, null, k(Lr.value, (e, t) => (D(), C("line", {
2001
+ x1: sr.value ? X.value.right : X.value.left,
2002
+ x2: sr.value ? X.value.right + 6 : X.value.left - 6,
2003
+ y1: e.y,
2004
+ y2: e.y,
2005
+ stroke: R.value.style.chart.grid.x.axisColor,
2006
+ "stroke-width": 1
2007
+ }, null, 8, St))), 256)), (D(!0), C(y, null, k(Lr.value, (e, t) => (D(), C("text", {
2008
+ x: e.x,
2009
+ y: e.y + R.value.style.chart.grid.y.axisLabels.fontSize / 3,
2010
+ "font-size": R.value.style.chart.grid.y.axisLabels.fontSize,
2011
+ "font-weight": R.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
2012
+ fill: R.value.style.chart.grid.y.axisLabels.color,
2013
+ "text-anchor": sr.value ? "start" : "end"
2014
+ }, j(M(te)(R.value.style.chart.grid.y.axisLabels.formatter, e.value, M(ie)({
2015
+ p: R.value.style.chart.lines.dataLabels.prefix,
2016
+ v: e.value,
2017
+ s: R.value.style.chart.lines.dataLabels.suffix,
2018
+ r: R.value.style.chart.grid.y.axisLabels.rounding
2019
+ }), { datapoint: e })), 9, Ct))), 256))], 512)) : S("", !0),
2020
+ R.value.style.chart.grid.x.timeLabels.show ? (D(), C("g", {
2021
+ key: 10,
2022
+ ref_key: "timeLabelsEls",
2023
+ ref: Cn
2024
+ }, [t.$slots["time-label"] ? (D(), C("g", wt, [(D(!0), C(y, null, k(Ur.value, (e, n) => (D(), C("g", null, [A(t.$slots, "time-label", Ue({ ref_for: !0 }, {
2025
+ x: W.value.left + Er.value * n + Er.value / 2,
2026
+ y: W.value.bottom + R.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + R.value.style.chart.grid.x.timeLabels.offsetY,
2027
+ fontSize: R.value.style.chart.grid.x.timeLabels.fontSize,
2028
+ fill: R.value.style.chart.grid.x.timeLabels.color,
2029
+ transform: `translate(${W.value.left + Er.value * n + Er.value / 2}, ${W.value.bottom + R.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + R.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${R.value.style.chart.grid.x.timeLabels.rotation})`,
2030
+ absoluteIndex: e.absoluteIndex,
2031
+ content: e.text,
2032
+ textAnchor: R.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : R.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
2033
+ show: !0
2034
+ }), void 0, !0)]))), 256))])) : (D(), C("g", Tt, [(D(!0), C(y, null, k(Ur.value, (e, n) => (D(), C("g", null, [String(e.text).includes("\n") ? (D(), C("text", {
2035
+ key: n + "-multi",
2036
+ "text-anchor": R.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : R.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
2037
+ "font-size": R.value.style.chart.grid.x.timeLabels.fontSize,
2038
+ fill: R.value.style.chart.grid.x.timeLabels.color,
2039
+ transform: `
2040
+ translate(
2041
+ ${Q(n)},
2042
+ ${W.value.bottom + R.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + R.value.style.chart.grid.x.timeLabels.offsetY}
2043
+ ),
2044
+ rotate(${R.value.style.chart.grid.x.timeLabels.rotation})
2045
+ `,
2046
+ style: Ke({ cursor: z.value ? "pointer" : "default" }),
2047
+ innerHTML: t.createTSpansFromLineBreaksOnX({
2048
+ content: String(e.text),
2049
+ fontSize: R.value.style.chart.grid.x.timeLabels.fontSize,
2050
+ fill: R.value.style.chart.grid.x.timeLabels.color,
2051
+ x: 0,
2052
+ y: 0
2053
+ }),
2054
+ onClick: () => _i(e, n)
2055
+ }, null, 12, Dt)) : (D(), C("text", {
2056
+ class: "vue-data-ui-time-label",
2057
+ key: n,
2058
+ "text-anchor": R.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : R.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
2059
+ "font-size": R.value.style.chart.grid.x.timeLabels.fontSize,
2060
+ "font-weight": R.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
2061
+ fill: R.value.style.chart.grid.x.timeLabels.color,
2062
+ transform: `translate(${Q(n)}, ${W.value.bottom + R.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + R.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${R.value.style.chart.grid.x.timeLabels.rotation})`,
2063
+ style: Ke({ cursor: z.value ? "pointer" : "default" }),
2064
+ onClick: () => _i(e, n)
2065
+ }, j(e.text), 13, Et))]))), 256))]))], 512)) : S("", !0),
2066
+ (_n.value || ![null, void 0].includes($.value)) && !R.value.style.chart.highlighter.useLine ? (D(!0), C(y, { key: 11 }, k(q.value.end - q.value.start, (e, t) => (D(), C("g", { key: `tooltip_trap_highlighter_${t}` }, [w("rect", {
2067
+ x: ci(t).x,
2068
+ y: W.value.top,
2069
+ height: W.value.height,
2070
+ width: ci(t).width,
2071
+ fill: [In.value, $.value].includes(t) ? M(i)(R.value.style.chart.highlighter.color, R.value.style.chart.highlighter.opacity) : "transparent",
2072
+ style: {
2073
+ transition: "none !important",
2074
+ animation: "none !important"
2075
+ }
2076
+ }, null, 8, Ot)]))), 128)) : S("", !0),
2077
+ (_n.value || ![null, void 0].includes($.value)) && R.value.style.chart.highlighter.useLine ? (D(), C(y, { key: 12 }, [![null, void 0].includes($.value) || ![null, void 0].includes(In.value) ? (D(), C("g", kt, [w("line", {
2078
+ x1: Q(($.value ?? In.value) || 0),
2079
+ x2: Q(($.value ?? In.value) || 0),
2080
+ y1: M(ae)(W.value.top),
2081
+ y2: M(ae)(W.value.bottom),
2082
+ stroke: R.value.style.chart.highlighter.color,
2083
+ "stroke-width": R.value.style.chart.highlighter.lineWidth,
2084
+ "stroke-dasharray": R.value.style.chart.highlighter.lineDasharray,
2085
+ "stroke-linecap": "round",
2086
+ style: {
2087
+ transition: "none !important",
2088
+ animation: "none !important",
2089
+ "pointer-events": "none"
2090
+ }
2091
+ }, null, 8, At)])) : S("", !0)], 64)) : S("", !0),
2092
+ (D(!0), C(y, null, k(Y.value, (e) => (D(), C(y, null, [_n.value && q.value.end - q.value.start > R.value.style.chart.lines.dot.hideAboveMaxSerieLength ? (D(), C("g", jt, [$.value == null ? S("", !0) : (D(), C(y, { key: 0 }, [e.rel.includes($.value) && e.fullSeries?.[q.value.start + $.value] != null && !Number.isNaN(e.fullSeries?.[q.value.start + $.value]) ? (D(), x(De, {
2093
+ key: 0,
2094
+ shape: [
2095
+ "triangle",
2096
+ "square",
2097
+ "diamond",
2098
+ "pentagon",
2099
+ "hexagon",
2100
+ "star"
2101
+ ].includes(e.shape) ? e.shape : "circle",
2102
+ color: R.value.style.chart.lines.dot.useSerieColor ? e.color : R.value.style.chart.lines.dot.fill,
2103
+ plot: {
2104
+ x: M(le)(e.points[e.rel.indexOf($.value)].x),
2105
+ y: M(le)(e.points[e.rel.indexOf($.value)].y)
2106
+ },
2107
+ radius: R.value.style.chart.lines.dot.radius * 1.3,
2108
+ stroke: R.value.style.chart.lines.dot.useSerieColor ? R.value.style.chart.lines.dot.stroke : e.color,
2109
+ strokeWidth: R.value.style.chart.lines.dot.strokeWidth,
2110
+ transition: M(B) ? void 0 : `all ${R.value.style.chart.lines.transitionDurationMs}ms ease-in-out`
2111
+ }, null, 8, [
2112
+ "shape",
2113
+ "color",
2114
+ "plot",
2115
+ "radius",
2116
+ "stroke",
2117
+ "strokeWidth",
2118
+ "transition"
2119
+ ])) : S("", !0)], 64))])) : S("", !0)], 64))), 256)),
2120
+ (D(!0), C(y, null, k(Y.value, (e) => (D(), C(y, null, [q.value.end - q.value.start < R.value.style.chart.lines.dot.hideAboveMaxSerieLength ? (D(!0), C(y, { key: 0 }, k(e.points, (t, n) => (D(), C("g", { key: n }, [e.fullSeries?.[q.value.start + e.rel[n]] != null && !Number.isNaN(e.fullSeries?.[q.value.start + e.rel[n]]) ? (D(), x(De, {
2121
+ key: 0,
2122
+ shape: [
2123
+ "triangle",
2124
+ "square",
2125
+ "diamond",
2126
+ "pentagon",
2127
+ "hexagon",
2128
+ "star"
2129
+ ].includes(e.shape) ? e.shape : "circle",
2130
+ color: R.value.style.chart.lines.dot.useSerieColor ? e.color : R.value.style.chart.lines.dot.fill,
2131
+ plot: {
2132
+ x: t.x,
2133
+ y: t.y
2134
+ },
2135
+ radius: _n.value && $.value === e.rel[n] ? R.value.style.chart.lines.dot.radius * 1.3 : R.value.style.chart.lines.dot.radius,
2136
+ stroke: R.value.style.chart.lines.dot.useSerieColor ? R.value.style.chart.lines.dot.stroke : e.color,
2137
+ strokeWidth: R.value.style.chart.lines.dot.strokeWidth,
2138
+ transition: M(B) ? void 0 : `all ${R.value.style.chart.lines.transitionDurationMs}ms ease-in-out`
2139
+ }, null, 8, [
2140
+ "shape",
2141
+ "color",
2142
+ "plot",
2143
+ "radius",
2144
+ "stroke",
2145
+ "strokeWidth",
2146
+ "transition"
2147
+ ])) : S("", !0)]))), 128)) : S("", !0)], 64))), 256)),
2148
+ H.value.dataLabels.show && R.value.style.chart.lines.dataLabels.hideAboveMaxSerieLength > q.value.end - q.value.start ? (D(), C(y, { key: 13 }, [(D(!0), C(y, null, k(Y.value, (e, t) => (D(), C("g", { key: t }, [(D(!0), C(y, null, k(e.points, (n, r) => (D(), C(y, { key: r }, [Gi(e.series[r], e.proportions[r]) ? (D(), C("text", {
2149
+ key: 0,
2150
+ x: n.x,
2151
+ y: n.y + (e.series[r] >= 0 ? -R.value.style.chart.lines.dataLabels.fontSize / 2 + R.value.style.chart.lines.dataLabels.offsetY : R.value.style.chart.lines.dataLabels.fontSize * 1.2 - R.value.style.chart.lines.dataLabels.offsetY),
2152
+ "font-size": R.value.style.chart.lines.dataLabels.fontSize,
2153
+ fill: R.value.style.chart.lines.dataLabels.color,
2154
+ "font-weight": R.value.style.chart.lines.dataLabels.bold ? "bold" : "normal",
2155
+ "text-anchor": "middle"
2156
+ }, j(R.value.style.chart.lines.showDistributedPercentage && R.value.style.chart.lines.distributed ? Ji(e.proportions[r] * 100, e, t, e.rel[r]) : qi(e.series[r], e, t, e.rel[r], e.signedSeries[r])), 9, Mt)) : S("", !0)], 64))), 128))]))), 128)), R.value.style.chart.lines.totalValues.show && Y.value.length > 1 ? (D(), C("g", {
2157
+ key: 0,
2158
+ ref_key: "sumTop",
2159
+ ref: wn
2160
+ }, [(D(!0), C(y, null, k(Pr.value, (e, t) => (D(), C(y, null, [!R.value.style.chart.lines.dataLabels.hideEmptyValues || e.value !== 0 ? (D(), C("text", {
2161
+ key: 0,
2162
+ x: Q(t),
2163
+ y: Ir(t),
2164
+ "text-anchor": "middle",
2165
+ "font-size": R.value.style.chart.lines.totalValues.fontSize,
2166
+ "font-weight": R.value.style.chart.lines.totalValues.bold ? "bold" : "normal",
2167
+ fill: R.value.style.chart.lines.totalValues.color
2168
+ }, j(qi(e.value, e, t, t, e.sign)), 9, Nt)) : S("", !0)], 64))), 256))], 512)) : S("", !0)], 64)) : S("", !0),
2169
+ br.value ? (D(), C("rect", Ue({ key: 14 }, hr.value, {
2170
+ "data-start": q.value.start,
2171
+ "data-end": q.value.end
2172
+ }), null, 16, Pt)) : S("", !0),
2173
+ A(t.$slots, "svg", { svg: {
2174
+ drawingArea: W.value,
2175
+ data: Y.value,
2176
+ isPrintingImg: M(Xn) || M(Zn) || vn.value,
2177
+ isPrintingSvg: yn.value
2178
+ } }, void 0, !0)
2179
+ ], 46, ot)), t.$slots.hint ? (D(), C("div", Ft, [A(t.$slots, "hint", E(T({
2180
+ hint: R.value.a11y.translations.keyboardNavigation,
2181
+ isVisible: Qi.value
2182
+ })), void 0, !0)])) : S("", !0)]),
2183
+ t.$slots.watermark ? (D(), C("div", It, [A(t.$slots, "watermark", E(T({ isPrinting: M(Xn) || M(Zn) || vn.value || yn.value })), void 0, !0)])) : S("", !0),
2184
+ mn.value && (R.value.style.chart.legend.show || t.$slots.legend) ? (D(), x(Re, {
2185
+ key: 6,
2186
+ to: R.value.style.chart.legend.position === "top" ? `#legend-top-${I.value}` : `#legend-bottom-${I.value}`
2187
+ }, [w("div", {
2188
+ ref_key: "chartLegend",
2189
+ ref: an
2190
+ }, [A(t.$slots, "legend", { legend: bi.value }, () => [R.value.style.chart.legend.show ? (D(), x(Ie, {
2191
+ key: 0,
2192
+ legendSet: bi.value,
2193
+ config: xi.value,
2194
+ isCursorPointer: z.value,
2195
+ onClickMarker: n[0] ||= ({ legend: e }) => e.segregate()
2196
+ }, ze({
2197
+ item: N(({ legend: e }) => [M(B) ? S("", !0) : (D(), C("div", {
2198
+ key: 0,
2199
+ onClick: (t) => e.segregate(),
2200
+ style: Ke(`opacity:${L.value.includes(e.id) ? .5 : 1}`)
2201
+ }, j(e.name), 13, Lt))]),
2202
+ legendToggle: N(() => [bi.value.length > 2 && R.value.style.chart.legend.selectAllToggle.show && !M(B) ? (D(), x(Me, {
2203
+ key: 0,
2204
+ backgroundColor: R.value.style.chart.legend.selectAllToggle.backgroundColor,
2205
+ color: R.value.style.chart.legend.selectAllToggle.color,
2206
+ fontSize: R.value.style.chart.legend.fontSize,
2207
+ checked: L.value.length > 0,
2208
+ isCursorPointer: z.value,
2209
+ onToggle: vi
2210
+ }, null, 8, [
2211
+ "backgroundColor",
2212
+ "color",
2213
+ "fontSize",
2214
+ "checked",
2215
+ "isCursorPointer"
2216
+ ])) : S("", !0)]),
2217
+ _: 2
2218
+ }, [t.$slots.pattern ? {
2219
+ name: "legend-pattern",
2220
+ fn: N(({ legend: e, index: t }) => [Ve(De, {
2221
+ shape: e.shape,
2222
+ radius: 30,
2223
+ stroke: "none",
2224
+ plot: {
2225
+ x: 30,
2226
+ y: 30
2227
+ },
2228
+ fill: `url(#pattern_${I.value}_${t})`
2229
+ }, null, 8, ["shape", "fill"])]),
2230
+ key: "0"
2231
+ } : void 0]), 1032, [
2232
+ "legendSet",
2233
+ "config",
2234
+ "isCursorPointer"
2235
+ ])) : S("", !0)], !0)], 512)], 8, ["to"])) : S("", !0),
2236
+ $t.value && R.value.userOptions.buttons.table ? (D(), x(Ye(Pi.value.component), Ue({ key: 7 }, Pi.value.props, {
2237
+ ref_key: "tableUnit",
2238
+ ref: hn,
2239
+ onClose: Fi
2240
+ }), ze({
2241
+ content: N(() => [Ve(M(Wt), {
2242
+ colNames: Di.value.colNames,
2243
+ head: Di.value.head,
2244
+ body: Di.value.body,
2245
+ config: Di.value.config,
2246
+ title: R.value.table.useDialog ? "" : Pi.value.title,
2247
+ withCloseButton: !R.value.table.useDialog,
2248
+ isCursorPointer: z.value,
2249
+ onClose: Fi
2250
+ }, {
2251
+ th: N(({ th: e }) => [w("div", { innerHTML: e }, null, 8, Rt)]),
2252
+ td: N(({ td: e }) => [Be(j(isNaN(Number(e)) ? e : M(ie)({
2253
+ p: R.value.style.chart.lines.dataLabels.prefix,
2254
+ v: e,
2255
+ s: R.value.style.chart.lines.dataLabels.suffix,
2256
+ r: R.value.table.td.roundingValue
2257
+ })), 1)]),
2258
+ _: 1
2259
+ }, 8, [
2260
+ "colNames",
2261
+ "head",
2262
+ "body",
2263
+ "config",
2264
+ "title",
2265
+ "withCloseButton",
2266
+ "isCursorPointer"
2267
+ ])]),
2268
+ _: 2
2269
+ }, [R.value.table.useDialog ? {
2270
+ name: "title",
2271
+ fn: N(() => [Be(j(Pi.value.title), 1)]),
2272
+ key: "0"
2273
+ } : void 0, R.value.table.useDialog ? {
2274
+ name: "actions",
2275
+ fn: N(() => [w("button", {
2276
+ tabindex: "0",
2277
+ class: "vue-ui-user-options-button",
2278
+ onClick: n[1] ||= (e) => Ei(R.value.userOptions.callbacks.csv),
2279
+ style: Ke({ cursor: z.value ? "pointer" : "default" })
2280
+ }, [Ve(M(Ht), {
2281
+ name: "fileCsv",
2282
+ stroke: Pi.value.props.color
2283
+ }, null, 8, ["stroke"])], 4)]),
2284
+ key: "1"
2285
+ } : void 0]), 1040)) : S("", !0),
2286
+ R.value.style.chart.zoom.show && $t.value && Qr.value && K.value > 6 ? (D(), x(je, {
2287
+ key: 8,
2288
+ ref_key: "chartSlicer",
2289
+ ref: on,
2290
+ "data-dom-to-png-ignore-layout": "",
2291
+ allMinimaps: Ar.value,
2292
+ background: R.value.style.chart.zoom.color,
2293
+ borderColor: R.value.style.chart.backgroundColor,
2294
+ customFormat: R.value.style.chart.zoom.customFormat,
2295
+ cutNullValues: !1,
2296
+ enableRangeHandles: R.value.style.chart.zoom.enableRangeHandles,
2297
+ enableSelectionDrag: R.value.style.chart.zoom.enableSelectionDrag,
2298
+ end: q.value.end,
2299
+ focusOnDrag: R.value.style.chart.zoom.focusOnDrag,
2300
+ focusRangeRatio: R.value.style.chart.zoom.focusRangeRatio,
2301
+ fontSize: R.value.style.chart.zoom.fontSize,
2302
+ immediate: !R.value.style.chart.zoom.preview.enable,
2303
+ inputColor: R.value.style.chart.zoom.color,
2304
+ isPreview: br.value,
2305
+ labelLeft: R.value.style.chart.grid.x.timeLabels.values[q.value.start] ? Rr.value?.[0]?.text ?? "" : "",
2306
+ labelRight: R.value.style.chart.grid.x.timeLabels.values[q.value.end - 1] ? Rr.value?.at(-1)?.text ?? "" : "",
2307
+ max: Math.max(...e.dataset.map((e) => e.series.length)),
2308
+ min: 0,
2309
+ minimap: kr.value,
2310
+ minimapCompact: R.value.style.chart.zoom.minimap.compact,
2311
+ minimapFrameColor: R.value.style.chart.zoom.minimap.frameColor,
2312
+ minimapIndicatorColor: R.value.style.chart.zoom.minimap.indicatorColor,
2313
+ minimapMerged: !1,
2314
+ minimapSelectedColor: R.value.style.chart.zoom.minimap.selectedColor,
2315
+ minimapSelectedColorOpacity: R.value.style.chart.zoom.minimap.selectedColorOpacity,
2316
+ minimapSelectedIndex: $.value,
2317
+ minimapSelectionRadius: 1,
2318
+ preciseLabels: qr.value.length ? qr.value : zr.value,
2319
+ refreshEndPoint: R.value.style.chart.zoom.endIndex === null ? Math.max(...e.dataset.map((e) => e.series.length)) : R.value.style.chart.zoom.endIndex + 1,
2320
+ refreshStartPoint: R.value.style.chart.zoom.startIndex === null ? 0 : R.value.style.chart.zoom.startIndex,
2321
+ selectColor: R.value.style.chart.zoom.highlightColor,
2322
+ selectedSeries: Hi.value,
2323
+ smoothMinimap: !1,
2324
+ start: q.value.start,
2325
+ textColor: R.value.style.chart.color,
2326
+ timeLabels: zr.value,
2327
+ usePreciseLabels: R.value.style.chart.grid.x.timeLabels.datetimeFormatter.enable && !R.value.style.chart.zoom.useDefaultFormat,
2328
+ valueEnd: q.value.end,
2329
+ valueStart: q.value.start,
2330
+ verticalHandles: R.value.style.chart.zoom.minimap.verticalHandles,
2331
+ maxWidth: R.value.style.chart.zoom.maxWidth,
2332
+ isCursorPointer: z.value,
2333
+ additionalMinimapHeight: R.value.style.chart.zoom.minimap.additionalHeight,
2334
+ handleType: R.value.style.chart.zoom.minimap.handleType,
2335
+ handleIconColor: R.value.style.chart.zoom.minimap.handleIconColor,
2336
+ handleBorderWidth: R.value.style.chart.zoom.minimap.handleBorderWidth,
2337
+ handleBorderColor: R.value.style.chart.zoom.minimap.handleBorderColor,
2338
+ handleFill: R.value.style.chart.zoom.minimap.handleFill,
2339
+ handleWidth: R.value.style.chart.zoom.minimap.handleWidth,
2340
+ "onUpdate:end": ni,
2341
+ "onUpdate:start": ti,
2342
+ onTrapMouse: vr,
2343
+ onReset: n[2] ||= () => Tr({ force: !0 }),
2344
+ onFutureEnd: n[3] ||= (e) => xr("end", e),
2345
+ onFutureStart: n[4] ||= (e) => xr("start", e)
2346
+ }, {
2347
+ "reset-action": N(({ reset: e }) => [A(t.$slots, "reset-action", E(T({ reset: e })), void 0, !0)]),
2348
+ slotMap: N(({ width: e, height: t, unitW: n }) => [w("g", { innerHTML: Wi({
2349
+ minimapW: e,
2350
+ minimapH: t,
2351
+ unitW: n
2352
+ }) }, null, 8, zt)]),
2353
+ _: 3
2354
+ }, 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.isCursorPointer.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth".split("."))) : S("", !0),
2355
+ w("div", { id: `legend-bottom-${I.value}` }, null, 8, Bt),
2356
+ Ve(M(Vt), {
2357
+ teleportTo: R.value.style.chart.tooltip.teleportTo,
2358
+ show: H.value.showTooltip && tn.value,
2359
+ backgroundColor: R.value.style.chart.tooltip.backgroundColor,
2360
+ color: R.value.style.chart.tooltip.color,
2361
+ fontSize: R.value.style.chart.tooltip.fontSize,
2362
+ borderRadius: R.value.style.chart.tooltip.borderRadius,
2363
+ borderColor: R.value.style.chart.tooltip.borderColor,
2364
+ borderWidth: R.value.style.chart.tooltip.borderWidth,
2365
+ backgroundOpacity: R.value.style.chart.tooltip.backgroundOpacity,
2366
+ position: R.value.style.chart.tooltip.position,
2367
+ offsetX: R.value.style.chart.tooltip.offsetX,
2368
+ offsetY: R.value.style.chart.tooltip.offsetY,
2369
+ parent: en.value,
2370
+ content: hi.value,
2371
+ isFullscreen: ln.value,
2372
+ isCustom: R.value.style.chart.tooltip.customFormat && typeof R.value.style.chart.tooltip.customFormat == "function",
2373
+ smooth: R.value.style.chart.tooltip.smooth,
2374
+ backdropFilter: R.value.style.chart.tooltip.backdropFilter,
2375
+ smoothForce: R.value.style.chart.tooltip.smoothForce,
2376
+ smoothSnapThreshold: R.value.style.chart.tooltip.smoothSnapThreshold,
2377
+ isA11yMode: jn.value === "keyboard",
2378
+ a11yPosition: An.value
2379
+ }, {
2380
+ "tooltip-before": N(() => [A(t.$slots, "tooltip-before", E(T({ ...Xr.value })), void 0, !0)]),
2381
+ tooltip: N(() => [A(t.$slots, "tooltip", E(T({ ...Xr.value })), void 0, !0)]),
2382
+ "tooltip-after": N(() => [A(t.$slots, "tooltip-after", E(T({ ...Xr.value })), void 0, !0)]),
2383
+ _: 3
2384
+ }, 8, [
2385
+ "teleportTo",
2386
+ "show",
2387
+ "backgroundColor",
2388
+ "color",
2389
+ "fontSize",
2390
+ "borderRadius",
2391
+ "borderColor",
2392
+ "borderWidth",
2393
+ "backgroundOpacity",
2394
+ "position",
2395
+ "offsetX",
2396
+ "offsetY",
2397
+ "parent",
2398
+ "content",
2399
+ "isFullscreen",
2400
+ "isCustom",
2401
+ "smooth",
2402
+ "backdropFilter",
2403
+ "smoothForce",
2404
+ "smoothSnapThreshold",
2405
+ "isA11yMode",
2406
+ "a11yPosition"
2407
+ ]),
2408
+ t.$slots.source ? (D(), C("div", {
2409
+ key: 9,
2410
+ ref_key: "source",
2411
+ ref: cn,
2412
+ dir: "auto"
2413
+ }, [A(t.$slots, "source", {}, void 0, !0)], 512)) : S("", !0),
2414
+ A(t.$slots, "skeleton", {}, () => [M(B) ? (D(), x(ye, { key: 0 })) : S("", !0)], !0)
2415
+ ], 46, nt));
2416
+ }
2417
+ }, [["__scopeId", "data-v-016aa3b5"]]);
2418
+ //#endregion
2419
+ export { tt as n, Vt as t };