vue-data-ui 3.22.8 → 3.22.10

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