vue-data-ui 3.6.0 → 3.7.1

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 (199) hide show
  1. package/README.md +26 -26
  2. package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DhKIof09.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
  4. package/dist/{BaseIcon-DLFL0M4-.js → BaseIcon-CofSxalQ.js} +1 -1
  5. package/dist/{ColorPicker-CjIJvLdc.js → ColorPicker-e1-OSGlQ.js} +10 -10
  6. package/dist/{DataTable-UCyd_BQI.js → DataTable-CHaOCmsE.js} +2 -2
  7. package/dist/{Legend-D9ZTJKjh.js → Legend-Web3GjlR.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-a2UzZL0y.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
  9. package/dist/{PackageVersion-D_4Hr4S4.js → PackageVersion-C82JCJOX.js} +1 -1
  10. package/dist/{PenAndPaper-BJSMejV9.js → PenAndPaper-HCZQTkqi.js} +20 -20
  11. package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
  12. package/dist/{Slicer-CJfhtoVn.js → Slicer-BFBBG6xv.js} +23 -23
  13. package/dist/{SlicerPreview-wXjV4LWO.js → SlicerPreview-D76aSViW.js} +2 -2
  14. package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
  15. package/dist/{Title-Bb1VWCtR.js → Title-DfFUb9hd.js} +1 -1
  16. package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
  17. package/dist/{UserOptions-BqmUW9Kp.js → UserOptions-B3I-s3Lw.js} +2 -2
  18. package/dist/components/arrow.js +1 -1
  19. package/dist/components/vue-ui-3d-bar.js +3 -3
  20. package/dist/components/vue-ui-accordion.js +1 -1
  21. package/dist/components/vue-ui-age-pyramid.js +3 -3
  22. package/dist/components/vue-ui-annotator.js +1 -1
  23. package/dist/components/vue-ui-bullet.js +3 -3
  24. package/dist/components/vue-ui-candlestick.js +3 -3
  25. package/dist/components/vue-ui-carousel-table.js +1 -1
  26. package/dist/components/vue-ui-chestnut.js +3 -3
  27. package/dist/components/vue-ui-chord.js +3 -3
  28. package/dist/components/vue-ui-circle-pack.js +3 -3
  29. package/dist/components/vue-ui-cursor.js +1 -1
  30. package/dist/components/vue-ui-dashboard.js +1 -1
  31. package/dist/components/vue-ui-digits.js +1 -1
  32. package/dist/components/vue-ui-donut-evolution.js +2 -2
  33. package/dist/components/vue-ui-donut.js +3 -3
  34. package/dist/components/vue-ui-dumbbell.js +3 -3
  35. package/dist/components/vue-ui-flow.js +3 -3
  36. package/dist/components/vue-ui-funnel.js +2 -2
  37. package/dist/components/vue-ui-galaxy.js +1 -1
  38. package/dist/components/vue-ui-gauge.js +1 -1
  39. package/dist/components/vue-ui-gizmo.js +1 -1
  40. package/dist/components/vue-ui-heatmap.js +1 -1
  41. package/dist/components/vue-ui-history-plot.js +3 -3
  42. package/dist/components/vue-ui-horizontal-bar.js +3 -3
  43. package/dist/components/vue-ui-icon.js +1 -1
  44. package/dist/components/vue-ui-kpi.js +1 -1
  45. package/dist/components/vue-ui-mini-loader.js +1 -1
  46. package/dist/components/vue-ui-molecule.js +3 -3
  47. package/dist/components/vue-ui-mood-radar.js +3 -3
  48. package/dist/components/vue-ui-nested-donuts.js +2 -2
  49. package/dist/components/vue-ui-onion.js +3 -3
  50. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  51. package/dist/components/vue-ui-quadrant.js +3 -3
  52. package/dist/components/vue-ui-quick-chart.js +3 -3
  53. package/dist/components/vue-ui-radar.js +3 -3
  54. package/dist/components/vue-ui-rating.js +1 -1
  55. package/dist/components/vue-ui-relation-circle.js +3 -3
  56. package/dist/components/vue-ui-ridgeline.js +3 -3
  57. package/dist/components/vue-ui-rings.js +3 -3
  58. package/dist/components/vue-ui-scatter.js +3 -3
  59. package/dist/components/vue-ui-skeleton.js +1 -1
  60. package/dist/components/vue-ui-smiley.js +1 -1
  61. package/dist/components/vue-ui-spark-trend.js +1 -1
  62. package/dist/components/vue-ui-sparkbar.js +2 -2
  63. package/dist/components/vue-ui-sparkgauge.js +3 -3
  64. package/dist/components/vue-ui-sparkhistogram.js +3 -3
  65. package/dist/components/vue-ui-sparkline.js +3 -3
  66. package/dist/components/vue-ui-sparkstackbar.js +2 -2
  67. package/dist/components/vue-ui-stackbar.js +3 -3
  68. package/dist/components/vue-ui-stackline.js +1 -1
  69. package/dist/components/vue-ui-strip-plot.js +3 -3
  70. package/dist/components/vue-ui-table-heatmap.js +1 -1
  71. package/dist/components/vue-ui-table-sparkline.js +2 -2
  72. package/dist/components/vue-ui-table.js +1 -1
  73. package/dist/components/vue-ui-thermometer.js +3 -3
  74. package/dist/components/vue-ui-timer.js +1 -1
  75. package/dist/components/vue-ui-tiremarks.js +2 -2
  76. package/dist/components/vue-ui-treemap.js +3 -3
  77. package/dist/components/vue-ui-vertical-bar.js +1 -1
  78. package/dist/components/vue-ui-waffle.js +2 -2
  79. package/dist/components/vue-ui-wheel.js +1 -1
  80. package/dist/components/vue-ui-word-cloud.js +3 -3
  81. package/dist/components/vue-ui-world.js +1 -1
  82. package/dist/components/vue-ui-xy-canvas.js +3 -3
  83. package/dist/components/vue-ui-xy.js +3 -3
  84. package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
  85. package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
  86. package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
  87. package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
  88. package/dist/style.css +1 -1
  89. package/dist/types/vue-data-ui.d.ts +2 -0
  90. package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
  91. package/dist/{useNestedProp-CIoDlpHu.js → useNestedProp-CWo6bftQ.js} +1 -1
  92. package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
  93. package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
  94. package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
  95. package/dist/{vue-data-ui-BWuOXu_s.js → vue-data-ui-d-OXgGG3.js} +78 -78
  96. package/dist/vue-data-ui.js +225 -205
  97. package/dist/{vue-ui-3d-bar-BNQAuLqF.js → vue-ui-3d-bar-BLbSbx2V.js} +546 -517
  98. package/dist/{vue-ui-accordion-SSLXLlNz.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
  99. package/dist/vue-ui-age-pyramid-DQ-xc-if.js +960 -0
  100. package/dist/{vue-ui-annotator-34Ld0u5M.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
  101. package/dist/vue-ui-bullet-BvMdxLkK.js +657 -0
  102. package/dist/{vue-ui-candlestick-BcChw-8c.js → vue-ui-candlestick-DIWeygxV.js} +596 -561
  103. package/dist/{vue-ui-carousel-table-Cp_od0lI.js → vue-ui-carousel-table-DM2HJFMH.js} +48 -48
  104. package/dist/{vue-ui-chestnut-DTaIsP72.js → vue-ui-chestnut-DNOG6dqY.js} +534 -505
  105. package/dist/vue-ui-chord-D2wPt2JV.js +1182 -0
  106. package/dist/vue-ui-circle-pack-D_GDv7OV.js +832 -0
  107. package/dist/{vue-ui-cursor-lW-dVs_k.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
  108. package/dist/{vue-ui-dashboard-DIymn9Cx.js → vue-ui-dashboard-BMby447A.js} +140 -140
  109. package/dist/{vue-ui-digits-YHA3fA0j.js → vue-ui-digits-D382I0-w.js} +2 -2
  110. package/dist/{vue-ui-donut-BaDmbWLh.js → vue-ui-donut-BqiNPW3q.js} +634 -602
  111. package/dist/vue-ui-donut-evolution-BL7HtdsP.js +1243 -0
  112. package/dist/vue-ui-dumbbell-BlTDnM8L.js +1258 -0
  113. package/dist/vue-ui-flow-BxIv20FH.js +1026 -0
  114. package/dist/vue-ui-funnel-Tnjg4srR.js +743 -0
  115. package/dist/vue-ui-galaxy-CYDVXdNj.js +837 -0
  116. package/dist/vue-ui-gauge-DAcpazK7.js +864 -0
  117. package/dist/{vue-ui-gizmo-E33_xZte.js → vue-ui-gizmo-Bg2TpPwm.js} +3 -3
  118. package/dist/{vue-ui-heatmap-DJXMvFPp.js → vue-ui-heatmap-BPEE_cLi.js} +501 -466
  119. package/dist/vue-ui-history-plot-BhfbLer8.js +1239 -0
  120. package/dist/{vue-ui-kpi-C-XuLBVQ.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
  121. package/dist/{vue-ui-mini-loader-DawncJvl.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
  122. package/dist/vue-ui-molecule-DnzXYuUi.js +782 -0
  123. package/dist/vue-ui-mood-radar-CXyQEfeM.js +930 -0
  124. package/dist/vue-ui-nested-donuts-Dq8JoU5d.js +1454 -0
  125. package/dist/vue-ui-onion-D0KUHi-Z.js +944 -0
  126. package/dist/vue-ui-parallel-coordinate-plot-DNc2L4Rg.js +1080 -0
  127. package/dist/{vue-ui-quadrant-B2bLWyCm.js → vue-ui-quadrant-Cp8loNVN.js} +510 -481
  128. package/dist/{vue-ui-quick-chart-J_RmCwI_.js → vue-ui-quick-chart-kuTdgAKG.js} +795 -758
  129. package/dist/vue-ui-radar-x2Ry_IGa.js +1013 -0
  130. package/dist/{vue-ui-rating-CBS8zaQd.js → vue-ui-rating-DtzmtJwF.js} +26 -26
  131. package/dist/vue-ui-relation-circle-DbYE9UHq.js +671 -0
  132. package/dist/vue-ui-ridgeline-yaMl8iIE.js +1302 -0
  133. package/dist/vue-ui-rings-BowsO9I8.js +884 -0
  134. package/dist/vue-ui-scatter-C_nz0A4x.js +1619 -0
  135. package/dist/{vue-ui-skeleton-DsrlMELy.js → vue-ui-skeleton-DdXq2gl1.js} +3 -3
  136. package/dist/{vue-ui-smiley-P_8WIBDD.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
  137. package/dist/vue-ui-spark-trend-BLticwHl.js +364 -0
  138. package/dist/vue-ui-sparkbar-DC2sDr9_.js +381 -0
  139. package/dist/vue-ui-sparkgauge-BENUfyuR.js +260 -0
  140. package/dist/vue-ui-sparkhistogram-BY0jsNsc.js +411 -0
  141. package/dist/vue-ui-sparkline-fS36LGCB.js +549 -0
  142. package/dist/vue-ui-sparkstackbar-C59ocU83.js +470 -0
  143. package/dist/vue-ui-stackbar-BtWWtzDp.js +1867 -0
  144. package/dist/vue-ui-stackline-CsGEHOOr.js +1963 -0
  145. package/dist/{vue-ui-strip-plot-CTtivaxm.js → vue-ui-strip-plot-n_rEdwkM.js} +343 -314
  146. package/dist/{vue-ui-table-CHt3AQiq.js → vue-ui-table-Kv2YL5OU.js} +5 -5
  147. package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
  148. package/dist/{vue-ui-table-sparkline-D5MckwMl.js → vue-ui-table-sparkline-B8CCAdco.js} +292 -263
  149. package/dist/vue-ui-thermometer-C1Hr_LrY.js +613 -0
  150. package/dist/{vue-ui-timer-B-Xa6ALH.js → vue-ui-timer-CmnO99_j.js} +25 -25
  151. package/dist/vue-ui-tiremarks-DbZbhw6Q.js +477 -0
  152. package/dist/vue-ui-treemap-BGMpUu5v.js +1359 -0
  153. package/dist/{vue-ui-vertical-bar-D9XQe_ud.js → vue-ui-vertical-bar-CWlGQoB3.js} +520 -485
  154. package/dist/{vue-ui-waffle-Bk98w86A.js → vue-ui-waffle-BVVrMghT.js} +376 -347
  155. package/dist/vue-ui-wheel-B2pFBeKR.js +690 -0
  156. package/dist/vue-ui-word-cloud-BqKSDn2J.js +904 -0
  157. package/dist/{vue-ui-world-xOY__pp8.js → vue-ui-world-glj9mQAg.js} +57 -57
  158. package/dist/vue-ui-xy-BdXV4naK.js +3455 -0
  159. package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
  160. package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
  161. package/package.json +5 -5
  162. package/dist/themes-DH-N_ePR.js +0 -54
  163. package/dist/vue-ui-age-pyramid-DsOlpJBh.js +0 -933
  164. package/dist/vue-ui-bullet-Ci4lO4_W.js +0 -630
  165. package/dist/vue-ui-chord-BKC--Nbq.js +0 -1153
  166. package/dist/vue-ui-circle-pack-B3sfU0Vo.js +0 -803
  167. package/dist/vue-ui-donut-evolution-BqUzmyW2.js +0 -1208
  168. package/dist/vue-ui-dumbbell-CWKTrzsm.js +0 -1231
  169. package/dist/vue-ui-flow-SMbuDPdL.js +0 -991
  170. package/dist/vue-ui-funnel-3fRlMBzq.js +0 -716
  171. package/dist/vue-ui-galaxy-CFZ1xYD5.js +0 -808
  172. package/dist/vue-ui-gauge-DJpbjfpL.js +0 -835
  173. package/dist/vue-ui-history-plot-CvPMx5Lg.js +0 -1204
  174. package/dist/vue-ui-molecule-CasngKZI.js +0 -753
  175. package/dist/vue-ui-mood-radar-DGz2TQi4.js +0 -903
  176. package/dist/vue-ui-nested-donuts-Bjjz2sWG.js +0 -1419
  177. package/dist/vue-ui-onion-DwTIY6i1.js +0 -915
  178. package/dist/vue-ui-parallel-coordinate-plot-DedxvtPN.js +0 -1051
  179. package/dist/vue-ui-radar-D1rz2RnH.js +0 -984
  180. package/dist/vue-ui-relation-circle-DUfRwwo1.js +0 -641
  181. package/dist/vue-ui-ridgeline-DKPWMWRc.js +0 -1273
  182. package/dist/vue-ui-rings-BY0EQGLb.js +0 -855
  183. package/dist/vue-ui-scatter-ky9p5Pgh.js +0 -1590
  184. package/dist/vue-ui-spark-trend-DkJn_3FI.js +0 -337
  185. package/dist/vue-ui-sparkbar-qB1fmgej.js +0 -352
  186. package/dist/vue-ui-sparkgauge-BezFN_Rc.js +0 -233
  187. package/dist/vue-ui-sparkhistogram-DGt5b8FR.js +0 -384
  188. package/dist/vue-ui-sparkline-D7Wx1ejg.js +0 -514
  189. package/dist/vue-ui-sparkstackbar-DtO7-yim.js +0 -441
  190. package/dist/vue-ui-stackbar-Dr48I48D.js +0 -1832
  191. package/dist/vue-ui-stackline-Juns5Yh4.js +0 -1928
  192. package/dist/vue-ui-table-heatmap-Cn-56b5F.js +0 -282
  193. package/dist/vue-ui-thermometer-BOidpwAZ.js +0 -584
  194. package/dist/vue-ui-tiremarks-BsTyVS2P.js +0 -450
  195. package/dist/vue-ui-treemap-BWTaY91B.js +0 -1330
  196. package/dist/vue-ui-wheel-nj73b_Dc.js +0 -663
  197. package/dist/vue-ui-word-cloud-Dcaogr-D.js +0 -875
  198. package/dist/vue-ui-xy-BT67faLv.js +0 -3424
  199. package/dist/vue-ui-xy-canvas-BoB7-4QK.js +0 -1564
@@ -0,0 +1,3455 @@
1
+ import { defineAsyncComponent as Xe, useSlots as er, getCurrentInstance as lr, ref as x, computed as b, onMounted as Zl, toRefs as ar, watch as Ll, watchEffect as Lt, onBeforeUnmount as ka, nextTick as Mt, createElementBlock as n, openBlock as u, normalizeStyle as C, normalizeClass as ll, createBlock as Te, createCommentVNode as h, createElementVNode as p, createVNode as vl, unref as v, withCtx as G, renderSlot as P, normalizeProps as ke, guardReactiveProps as _e, createSlots as Tt, Fragment as d, renderList as w, mergeProps as al, toDisplayString as ae, Teleport as tr, resolveDynamicComponent as or, withDirectives as rr, vModelCheckbox as sr, createTextVNode as zt } from "vue";
2
+ import { c as _a, g as wa, t as ir, j as ur, F as Ml, G as tl, l as It, p as Sa, H as Jl, I as Y, J as Ca, K as nr, L as cr, M as N, y as Ft, z as Ot, A as Bt, B as Nt, N as vr, O as Vt, P as Dt, a as re, Q as dr, x as Pt, R as hr, b as Et, e as Ne, d as Ve, h as ol, s as ze, S as fr, w as Ge, T as Kl, m as Ce, U as gr, V as Ue, W as fe, i as mr, o as Rt, u as br, q as xr, Y as dl } from "./lib-C5BH09_g.js";
3
+ import { t as pr } from "./useResponsive-DfdjqQps.js";
4
+ import { u as yr, a as Tl } from "./useNestedProp-CWo6bftQ.js";
5
+ import { u as kr } from "./usePrinter-DCJzEiS8.js";
6
+ import { u as _r, B as wr } from "./BaseScanner-BgWxam9d.js";
7
+ import { u as Ht, a as Sr, l as Cr } from "./useTimeLabels-C5qMhpbe.js";
8
+ import { u as $r } from "./useSvgExport-DrjCWun4.js";
9
+ import { u as Ar } from "./useThemeCheck-DGJ31Vi5.js";
10
+ import { u as Lr } from "./useTimeLabelCollider-CIsgDrl9.js";
11
+ import Mr from "./img-DUzJeMlr.js";
12
+ import Tr from "./Title-DfFUb9hd.js";
13
+ import { _ as Ql } from "./Shape-DE6X_t31.js";
14
+ import { S as zr } from "./SlicerPreview-D76aSViW.js";
15
+ import Ir from "./vue-ui-accordion-DSdZUn2C.js";
16
+ import { _ as Fr } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
+ const Yt = { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { color: "#4A4A4A", highlightColor: "#9A9A9A", minimap: { selectedColor: "#8A8A8A", lineColor: "#424242", indicatorColor: "#CCCCCC" } }, highlighter: { color: "#CCCCCC" }, timeTag: { backgroundColor: "#2A2A2A", color: "#CCCCCC", circleMarker: { color: "#2A2A2A" } }, grid: { stroke: "#5A5A5A", showVerticalLines: !1, labels: { color: "#CCCCCC", xAxisLabels: { color: "#CCCCCC" } } }, legend: { color: "#CCCCCC" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } }, bar: { border: { stroke: "#1A1A1A" }, labels: { color: "#CCCCCC" }, serieName: { color: "#CCCCCC" } }, line: { labels: { color: "#CCCCCC" } }, plot: { labels: { color: "#CCCCCC" } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, Wt = { chart: { backgroundColor: "#FFF8E1", color: "#424242", zoom: { color: "#5D4037", highlightColor: "#FF8A65", minimap: { selectedColor: "#FF8A65", lineColor: "#424242", indicatorColor: "#FF8A65" } }, highlighter: { color: "#424242" }, timeTag: { backgroundColor: "#424242", color: "#FFF8E1", circleMarker: { color: "#424242" } }, grid: { stroke: "#5D4037", showVerticalLines: !1, labels: { color: "#424242", xAxisLabels: { color: "#424242" }, xAxis: { showBaseline: !1 } } }, legend: { color: "#424242" }, title: { color: "#424242", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" } }, bar: { borderRadius: 2, border: { stroke: "#FFF8E1" }, labels: { color: "#424242" }, serieName: { color: "#424242" } }, line: { labels: { color: "#424242" } }, plot: { labels: { color: "#424242" } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, Xt = { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", zoom: { color: "#5D4037", highlightColor: "#FF8A65", minimap: { selectedColor: "#FF8A65", lineColor: "#FF6B6B", indicatorColor: "#FF8A65" } }, highlighter: { color: "#FFF8E1" }, timeTag: { backgroundColor: "#5D4037", color: "#FFF8E1", circleMarker: { color: "#5D4037" } }, grid: { stroke: "#5D4037", showVerticalLines: !1, labels: { color: "#BDBDBD", xAxisLabels: { color: "#BDBDBD" }, xAxis: { showBaseline: !1 } } }, legend: { color: "#BDBDBD" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" } }, bar: { borderRadius: 2, border: { stroke: "#1E1E1E" }, labels: { color: "#BDBDBD" }, serieName: { color: "#BDBDBD" } }, line: { labels: { color: "#BDBDBD" } }, plot: { labels: { color: "#BDBDBD" } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, Gt = { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", zoom: { color: "#5F6A5F", highlightColor: "#66CC66" }, highlighter: { color: "#66CC66" }, timeTag: { backgroundColor: "#1A1A1A", color: "#66CC66", circleMarker: { color: "#66CC66" } }, grid: { stroke: "#5F6A5F", showVerticalLines: !1, labels: { color: "#99AA99", xAxisLabels: { color: "#99AA99" }, xAxis: { showBaseline: !1 } } }, legend: { color: "#99AA99" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" } }, bar: { borderRadius: 0, border: { stroke: "#66CC66" }, labels: { color: "#AACCAA" }, serieName: { color: "#99CC99" } }, line: { labels: { color: "#AACCAA" } }, plot: { labels: { color: "#AACCAA" } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, Ut = { chart: { backgroundColor: "#fbfafa", color: "#8A9892", zoom: { color: "#E0CFC3", highlightColor: "#8F837A" }, highlighter: { color: "#8F837A" }, timeTag: { backgroundColor: "#fbfafa", color: "#8A9892", circleMarker: { color: "#8A9892" } }, grid: { stroke: "transparent", labels: { show: !1, color: "#99AA99", xAxisLabels: { show: !1, color: "#99AA99" }, zeroLine: { show: !1 }, yAxis: { showBaseline: !1 } } }, legend: { backgroundColor: "#fbfafa", color: "#99AA99" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" } }, bar: { borderRadius: 4, border: { stroke: "#D7E0D2" }, labels: { color: "#8F837A" }, serieName: { color: "#858480" } }, line: { labels: { color: "#8F837A" } }, plot: { labels: { color: "#8F837A" } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, qt = { chart: { backgroundColor: "#f6f6fb", color: "#50606C", zoom: { color: "#92B0AB", highlightColor: "#50606C" }, highlighter: { color: "#7DA9B5" }, timeTag: { backgroundColor: "#f6f6fb", color: "#50606C", circleMarker: { color: "#50606C" } }, grid: { stroke: "#829C98", showVerticalLines: !0, showHorizontalLines: !0, labels: { color: "#50606C", xAxisLabels: { color: "#50606C" } } }, legend: { backgroundColor: "#f6f6fb", color: "#61747E" }, title: { color: "#50606C", subtitle: { color: "#718890" } }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" } }, bar: { borderRadius: 2, border: { stroke: "#404C4D" }, labels: { color: "#50606C" }, serieName: { color: "#61747E" } }, line: { labels: { color: "#50606C" } }, plot: { labels: { color: "#50606C" } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, Zt = {
18
+ default: {},
19
+ dark: Yt,
20
+ celebration: Wt,
21
+ celebrationNight: Xt,
22
+ hack: Gt,
23
+ zen: Ut,
24
+ concrete: qt
25
+ }, $u = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26
+ __proto__: null,
27
+ celebration: Wt,
28
+ celebrationNight: Xt,
29
+ concrete: qt,
30
+ dark: Yt,
31
+ default: Zt,
32
+ hack: Gt,
33
+ zen: Ut
34
+ }, Symbol.toStringTag, { value: "Module" })), Or = ["id"], Br = ["id"], Nr = ["viewBox", "aria-label"], Vr = ["x", "y", "width", "height"], Dr = { key: 1 }, Pr = { class: "vue-ui-xy-grid" }, Er = ["stroke", "x1", "x2", "y1", "y2"], Rr = ["stroke", "x1", "x2", "y1", "y2"], Hr = { key: 1 }, Yr = ["x1", "x2", "y1", "y2", "stroke"], Wr = ["x1", "x2", "y1", "y2", "stroke"], Xr = ["x1", "x2", "y1", "y2", "stroke"], Gr = { key: 3 }, Ur = ["d", "stroke"], qr = { key: 4 }, Zr = ["d", "stroke"], Jr = ["id"], Kr = ["stop-color"], Qr = ["stop-color"], jr = ["stop-color"], es = ["id"], ls = ["stop-color"], as = ["stop-color"], ts = ["stop-color"], os = ["id"], rs = ["stop-color"], ss = ["stop-color"], is = ["id"], us = ["stop-color"], ns = ["stop-color"], cs = ["id"], vs = ["stop-color"], ds = ["stop-color"], hs = ["x", "y", "height", "width", "fill"], fs = ["x", "y", "width"], gs = { key: 0 }, ms = ["x", "y", "height", "width", "fill"], bs = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], xs = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], ps = ["width", "x", "y"], ys = ["stroke", "x1", "x2", "y1", "y2"], ks = { key: 3 }, _s = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ws = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], Ss = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Cs = ["fill", "font-size", "transform"], $s = ["x1", "x2", "y1", "y2", "stroke"], As = ["x", "y", "font-size", "fill"], Ls = ["x1", "x2", "y1", "y2", "stroke"], Ms = ["x", "y", "font-size", "fill"], Ts = ["width", "x", "y"], zs = { style: { width: "100%" } }, Is = ["d", "stroke", "stroke-width", "stroke-dasharray"], Fs = ["d", "stroke", "stroke-width", "stroke-dasharray"], Os = { key: 6 }, Bs = { key: 7 }, Ns = ["d", "fill", "fill-opacity"], Vs = { key: 0 }, Ds = ["d", "fill"], Ps = ["d", "fill"], Es = ["d", "fill"], Rs = ["d", "fill"], Hs = ["d", "stroke", "stroke-width", "stroke-dasharray"], Ys = ["d", "stroke", "stroke-width", "stroke-dasharray"], Ws = ["width", "x", "y"], Xs = { style: { width: "100%" } }, Gs = { key: 8 }, Us = ["x", "y", "font-size", "fill"], qs = ["x", "y", "font-size", "fill", "font-weight"], Zs = { key: 9 }, Js = ["x", "y", "font-size", "fill"], Ks = { key: 10 }, Qs = ["x", "y"], js = ["innerHTML"], ei = ["x", "y"], li = ["innerHTML"], ai = ["x1", "x2", "y1", "y2", "stroke"], ti = { key: 11 }, oi = ["x", "y", "font-size", "fill"], ri = { key: 12 }, si = ["x", "y"], ii = ["innerHTML"], ui = ["x", "y"], ni = ["innerHTML"], ci = ["x1", "x2", "y1", "y2", "stroke"], vi = ["x", "y", "font-size", "fill", "innerHTML"], di = ["x", "y", "font-size", "fill", "innerHTML"], hi = ["x", "y", "font-size", "fill", "innerHTML"], fi = ["x", "y", "font-size", "fill", "innerHTML"], gi = { key: 0 }, mi = ["id"], bi = ["fill", "stroke"], xi = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], pi = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], yi = ["x", "y", "font-size", "fill", "stroke"], ki = ["id"], _i = ["stop-color"], wi = ["stop-color"], Si = ["x", "y", "width", "height", "fill", "onMouseenter"], Ci = ["font-size", "fill", "transform"], $i = ["x", "y", "font-size", "fill"], Ai = ["text-anchor", "font-size", "fill", "transform", "onClick"], Li = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], Mi = { key: 15 }, Ti = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], zi = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ii = ["y", "x", "width", "height", "fill"], Fi = ["id", "x", "y", "font-size", "fill", "text-anchor"], Oi = {
35
+ key: 16,
36
+ style: { "pointer-events": "none" }
37
+ }, Bi = ["x", "y"], Ni = ["innerHTML"], Vi = ["cx", "cy", "r", "fill"], Di = ["data-start", "data-end"], Pi = {
38
+ key: 4,
39
+ class: "vue-data-ui-watermark"
40
+ }, Ei = {
41
+ class: "vue-ui-xy-tag-arrow",
42
+ height: "20",
43
+ viewBox: "0 0 10 20",
44
+ style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
45
+ }, Ri = ["fill"], Hi = ["innerHTML"], Yi = {
46
+ class: "vue-ui-xy-tag-arrow",
47
+ height: "100%",
48
+ viewBox: "0 0 10 20",
49
+ style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
50
+ }, Wi = ["fill"], Xi = ["innerHTML"], Gi = {
51
+ class: "vue-ui-xy-tag-arrow",
52
+ height: "20",
53
+ viewBox: "0 0 10 20",
54
+ style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
55
+ }, Ui = ["fill"], qi = ["innerHTML"], Zi = {
56
+ class: "vue-ui-xy-tag-arrow",
57
+ height: "100%",
58
+ viewBox: "0 0 10 20",
59
+ style: { position: "absolute", left: "100%", top: "50%", transform: "translateY(-50%)" }
60
+ }, Ji = ["fill"], Ki = ["innerHTML"], Qi = ["id"], ji = ["onClick"], eu = {
61
+ key: 0,
62
+ viewBox: "0 0 20 12",
63
+ height: "1em",
64
+ width: "1.43em"
65
+ }, lu = ["stroke", "fill"], au = {
66
+ key: 1,
67
+ viewBox: "0 0 40 40",
68
+ height: "1em",
69
+ width: "1em"
70
+ }, tu = ["fill"], ou = ["fill"], ru = {
71
+ key: 2,
72
+ viewBox: "0 0 12 12",
73
+ height: "1em",
74
+ width: "1em"
75
+ }, su = {
76
+ style: { display: "flex", "flex-direction": "row", gap: "6px", "align-items": "center", "padding-left": "6px" },
77
+ "data-dom-to-png-ignore": ""
78
+ }, iu = ["innerHTML"], uu = {
79
+ __name: "vue-ui-xy",
80
+ props: {
81
+ config: {
82
+ type: Object,
83
+ default() {
84
+ return {};
85
+ }
86
+ },
87
+ dataset: {
88
+ type: Array,
89
+ default() {
90
+ return [];
91
+ }
92
+ },
93
+ selectedXIndex: {
94
+ type: Number,
95
+ default: void 0
96
+ }
97
+ },
98
+ emits: ["selectTimeLabel", "selectX", "selectLegend"],
99
+ setup(jl, { expose: Jt, emit: Kt }) {
100
+ const g = jl, Qt = Xe(() => import("./DataTable-CHaOCmsE.js")), jt = Xe(() => import("./Tooltip-WD0Ros6G.js")), eo = Xe(() => import("./UserOptions-B3I-s3Lw.js")), $a = Xe(() => import("./BaseIcon-CofSxalQ.js")), lo = Xe(() => import("./vue-ui-table-sparkline-B8CCAdco.js").then((a) => a.b)), ao = Xe(() => import("./PackageVersion-C82JCJOX.js")), to = Xe(() => import("./PenAndPaper-HCZQTkqi.js")), oo = Xe(() => import("./BaseDraggableDialog-CRF94NJQ.js")), ea = Kt, Aa = er(), ro = lr(), { vue_ui_xy: hl } = yr(), { isThemeValid: so, warnInvalidTheme: io } = Ar(), Ie = x(null), fl = x(null), Fe = x(null), rl = x(null), gl = x(null), ml = x(null), uo = x(null), la = x(null), aa = x(null), sl = x(null), ta = x(null), oa = x(null), Ee = x(null), ra = x(null), no = x(0), I = x(null), La = x(!0), ve = x(600), ee = x(1e3), zl = x("0 0 1000 600"), co = x({ x: 0, y: 0 }), bl = x({ line: "line", bar: "bar", plot: "plot" }), xl = x(!1), qe = x(!1), Ma = x(!1), Ze = x(null), J = x([]), H = x(_a()), Ta = x(0), za = x(0), Ia = x(0), pl = x(!0), sa = x(0), B = x(null), Fa = x(!1), ia = x(!0), Il = x(!0), se = x(null), De = x({}), Fl = x(null), Oa = x(!1), il = x(null), _ = x(null), vo = b(() => ({
101
+ height: ve.value,
102
+ width: ee.value
103
+ }));
104
+ function Ba(a) {
105
+ return Number.isFinite(a) ? Math.max(0, Math.floor(a)) : 0;
106
+ }
107
+ function ua(a, r, e = 0) {
108
+ return Number.isFinite(a) && Number.isFinite(r) && Math.abs(r) > 1e-9 ? a / r : e;
109
+ }
110
+ const Na = x(!1), y = x({
111
+ xAxis: 18,
112
+ yAxis: 12,
113
+ dataLabels: 20,
114
+ plotLabels: 10
115
+ }), $e = x({ plot: 3, line: 3 });
116
+ Zl(() => {
117
+ Oa.value = !0, g.dataset.length && g.dataset.forEach((a, r) => {
118
+ [null, void 0].includes(a.series) && wa({
119
+ componentName: "VueUiXy",
120
+ type: "datasetSerieAttribute",
121
+ property: "series (number[])",
122
+ index: r,
123
+ debug: yl.value
124
+ });
125
+ });
126
+ });
127
+ function na() {
128
+ if (!Object.keys(g.config || {}).length)
129
+ return hl;
130
+ const a = Tl({
131
+ userConfig: g.config,
132
+ defaultConfig: hl
133
+ });
134
+ g.config && fe(g.config, "chart.highlightArea") && (Array.isArray(g.config.chart.highlightArea) ? a.chart.highlightArea = g.config.chart.highlightArea : a.chart.highlightArea = [g.config.chart.highlightArea]), g.config && fe(g.config, "chart.grid.labels.yAxis.scaleMin") ? a.chart.grid.labels.yAxis.scaleMin = g.config.chart.grid.labels.yAxis.scaleMin : a.chart.grid.labels.yAxis.scaleMin = null, g.config && fe(g.config, "chart.grid.labels.yAxis.scaleMax") ? a.chart.grid.labels.yAxis.scaleMax = g.config.chart.grid.labels.yAxis.scaleMax : a.chart.grid.labels.yAxis.scaleMax = null, g.config && fe(g.config, "chart.zoom.startIndex") ? a.chart.zoom.startIndex = g.config.chart.zoom.startIndex : a.chart.zoom.startIndex = null, g.config && fe(g.config, "chart.zoom.endIndex") ? a.chart.zoom.endIndex = g.config.chart.zoom.endIndex : a.chart.zoom.endIndex = null, g.config && fe(g.config, "chart.grid.labels.yAxis.groupColor") ? a.chart.grid.labels.yAxis.groupColor = g.config.chart.grid.labels.yAxis.groupColor : a.chart.grid.labels.yAxis.groupColor = null, g.config && fe(g.config, "chart.annotations") && Array.isArray(g.config.chart.annotations) && g.config.chart.annotations.length ? a.chart.annotations = g.config.chart.annotations.map((t) => Tl({
135
+ defaultConfig: hl.chart.annotations[0],
136
+ userConfig: t
137
+ })) : a.chart.annotations = [], g.config && fe(g.config, "chart.grid.position") && g.config.chart.grid.position === "start" && g.dataset.length && g.dataset.some((t) => t.type === "bar") && (a.chart.grid.position = "middle", fe(g.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), g.config && fe(g.config, "chart.grid.labels.yAxis.serieNameFormatter") ? a.chart.grid.labels.yAxis.serieNameFormatter = g.config.chart.grid.labels.yAxis.serieNameFormatter : a.chart.grid.labels.yAxis.serieNameFormatter = null, g.config && fe(g.config, "events.datapointEnter") ? a.events.datapointEnter = g.config.events.datapointEnter : a.events.datapointEnter = null, g.config && fe(g.config, "events.datapointLeave") ? a.events.datapointLeave = g.config.events.datapointLeave : a.events.datapointLeave = null, g.config && fe(g.config, "events.datapointClick") ? a.events.datapointClick = g.config.events.datapointClick : a.events.datapointClick = null, g.config && fe(g.config, "chart.highlightArea") && (Array.isArray(g.config.chart.highlightArea) ? a.chart.highlightArea = g.config.chart.highlightArea.map((t) => Va({
138
+ defaultConfig: hl.chart.highlightArea,
139
+ userConfig: t
140
+ })) : a.chart.highlightArea = Va({
141
+ defaultConfig: hl.chart.highlightArea,
142
+ userConfig: g.config.chart.highlightArea
143
+ }));
144
+ const r = a.theme;
145
+ if (!r) return a;
146
+ if (!so.value(a))
147
+ return io(a), a;
148
+ const e = Tl({
149
+ userConfig: Zt[r] || g.config,
150
+ defaultConfig: a
151
+ }), s = Tl({
152
+ userConfig: g.config,
153
+ defaultConfig: e
154
+ });
155
+ return {
156
+ ...s,
157
+ customPalette: s.customPalette.length ? s.customPalette : mr[r] || Sa
158
+ };
159
+ }
160
+ function Va({ defaultConfig: a, userConfig: r }) {
161
+ return Tl({
162
+ defaultConfig: a,
163
+ userConfig: r
164
+ });
165
+ }
166
+ const ca = b({
167
+ get() {
168
+ return !!g.dataset && g.dataset.length;
169
+ },
170
+ set(a) {
171
+ return a;
172
+ }
173
+ }), l = x(na()), f = x({
174
+ dataLabels: { show: !0 },
175
+ showTooltip: !0,
176
+ showTable: !1,
177
+ isStacked: !1,
178
+ useIndividualScale: !1
179
+ });
180
+ function va() {
181
+ Na.value ? (f.value.isStacked = l.value.chart.grid.labels.yAxis.stacked, f.value.useIndividualScale == null && (f.value.useIndividualScale = l.value.chart.grid.labels.yAxis.useIndividualScale)) : (f.value = {
182
+ dataLabels: { show: !0 },
183
+ showTooltip: l.value.chart.tooltip.show === !0,
184
+ showTable: l.value.showTable === !0,
185
+ isStacked: l.value.chart.grid.labels.yAxis.stacked,
186
+ useIndividualScale: l.value.chart.grid.labels.yAxis.useIndividualScale
187
+ }, Na.value = !0);
188
+ }
189
+ const yl = b(() => !!l.value.debug), { loading: ie, FINAL_DATASET: ge, manualLoading: Ol } = _r({
190
+ ...ar(g),
191
+ FINAL_CONFIG: l,
192
+ prepareConfig: na,
193
+ callback: () => {
194
+ Promise.resolve().then(async () => {
195
+ await Pl(), f.value.showTable = l.value.showTable;
196
+ });
197
+ },
198
+ skeletonDataset: [
199
+ {
200
+ name: "",
201
+ series: [0, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 134],
202
+ type: "line",
203
+ smooth: !0,
204
+ color: "#BABABA"
205
+ },
206
+ {
207
+ name: "",
208
+ series: [0, 0.5, 1, 1.5, 2.5, 4, 6.5, 10.5, 17, 27.5, 44.5, 67],
209
+ type: "bar",
210
+ color: "#CACACA"
211
+ }
212
+ ],
213
+ skeletonConfig: ir({
214
+ defaultConfig: l.value,
215
+ userConfig: {
216
+ useCssAnimation: !1,
217
+ showTable: !1,
218
+ chart: {
219
+ annotations: [],
220
+ highlightArea: [],
221
+ backgroundColor: "#99999930",
222
+ grid: {
223
+ stroke: "#6A6A6A",
224
+ labels: {
225
+ show: !1,
226
+ axis: {
227
+ yLabel: "",
228
+ xLabel: ""
229
+ },
230
+ xAxisLabels: { show: !1 },
231
+ yAxis: {
232
+ commonScaleSteps: 10,
233
+ useNiceScale: !0,
234
+ scaleMin: 0,
235
+ scaleMax: 134
236
+ },
237
+ zeroLine: { show: !0 }
238
+ }
239
+ },
240
+ padding: {
241
+ top: 12,
242
+ bottom: 24,
243
+ left: 24,
244
+ right: 24
245
+ },
246
+ userOptions: { show: !1 },
247
+ zoom: {
248
+ show: !1,
249
+ startIndex: null,
250
+ endIndex: null
251
+ }
252
+ },
253
+ bar: {
254
+ serieName: { show: !1 },
255
+ labels: { show: !1 },
256
+ border: {
257
+ useSerieColor: !1,
258
+ stroke: "#999999"
259
+ }
260
+ },
261
+ line: {
262
+ dot: {
263
+ useSerieColor: !1,
264
+ fill: "#8A8A8A"
265
+ },
266
+ labels: { show: !1 }
267
+ }
268
+ }
269
+ })
270
+ });
271
+ function ho(a) {
272
+ const r = /* @__PURE__ */ new WeakMap();
273
+ return (e, ...s) => {
274
+ let t = r.get(e);
275
+ const i = JSON.stringify(s);
276
+ if (t && t.has(i)) return t.get(i);
277
+ const o = a(e, ...s);
278
+ return t || (t = /* @__PURE__ */ new Map(), r.set(e, t)), t.set(i, o), o;
279
+ };
280
+ }
281
+ const fo = ho((a, r) => Ca({ data: a, threshold: r })), Re = (a) => fo(a, l.value.downsample.threshold), Oe = b({
282
+ get: () => Math.max(...ge.value.map((a) => Re(a.series).length)),
283
+ set: (a) => a
284
+ }), m = x({ start: 0, end: Oe.value }), Ae = x({ start: 0, end: Oe.value }), Da = b(() => l.value.chart.zoom.preview.enable && (Ae.value.start !== m.value.start || Ae.value.end !== m.value.end));
285
+ function Pa(a, r) {
286
+ Ae.value[a] = r;
287
+ }
288
+ function ul() {
289
+ const a = Math.max(
290
+ 1,
291
+ ...ge.value.map((s) => Re(s.series).length)
292
+ );
293
+ let r = Math.max(0, Math.min(m.value.start ?? 0, a - 1)), e = Math.max(r + 1, Math.min(m.value.end ?? a, a));
294
+ (!Number.isFinite(r) || !Number.isFinite(e) || e <= r) && (r = 0, e = a), m.value = { start: r, end: e }, Ae.value.start = r, Ae.value.end = e, Fe.value && (Fe.value.setStartValue(r), Fe.value.setEndValue(e));
295
+ }
296
+ const go = b(() => {
297
+ const { left: a, top: r, width: e, height: s } = c.value, t = m.value.start, o = m.value.end - t, L = e / o, M = Ae.value.start - t, F = Ae.value.end - t, S = Math.max(0, Math.min(o, M)), T = Math.max(0, Math.min(o, F));
298
+ return {
299
+ x: a + S * L,
300
+ y: r,
301
+ width: (T - S) * L,
302
+ height: s,
303
+ fill: l.value.chart.zoom.preview.fill,
304
+ stroke: l.value.chart.zoom.preview.stroke,
305
+ "stroke-width": l.value.chart.zoom.preview.strokeWidth,
306
+ "stroke-dasharray": l.value.chart.zoom.preview.strokeDasharray,
307
+ "stroke-linecap": "round",
308
+ "stroke-linejoin": "round",
309
+ style: {
310
+ pointerEvents: "none",
311
+ transition: "none !important",
312
+ animation: "none !important"
313
+ }
314
+ };
315
+ });
316
+ Ll(() => g.selectedXIndex, (a) => {
317
+ if ([null, void 0].includes(g.selectedXIndex)) {
318
+ _.value = null;
319
+ return;
320
+ }
321
+ const r = a - m.value.start;
322
+ r < 0 || a >= m.value.end ? _.value = null : _.value = r ?? null;
323
+ }, { immediate: !0 });
324
+ const { isPrinting: da, isImaging: Ea, generatePdf: Ra, generateImage: Ha } = kr({
325
+ elementId: `vue-ui-xy_${H.value}`,
326
+ fileName: l.value.chart.title.text || "vue-ui-xy",
327
+ options: l.value.chart.userOptions.print
328
+ }), mo = x(!1), Bl = b(() => ur(l.value.customPalette)), Nl = b(() => {
329
+ if (l.value.chart.grid.labels.yAxis.scaleMin !== null)
330
+ return l.value.chart.grid.labels.yAxis.scaleMin;
331
+ const a = Math.min(...Pe.value.filter((r) => !J.value.includes(r.id)).map((r) => Math.min(...r.series)));
332
+ return a > 0 ? 0 : a;
333
+ }), Vl = b(() => {
334
+ if (l.value.chart.grid.labels.yAxis.scaleMax)
335
+ return l.value.chart.grid.labels.yAxis.scaleMax;
336
+ const a = Math.max(...Pe.value.filter((r) => !J.value.includes(r.id)).map((r) => Math.max(...r.series)));
337
+ return Nl.value === a ? a + 1 : a;
338
+ }), Le = b(() => l.value.chart.grid.labels.yAxis.useNiceScale ? Ml(Nl.value, Vl.value < 0 ? 0 : Vl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps) : tl(Nl.value, Vl.value < 0 ? 0 : Vl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps)), kl = b(() => [null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) ? Le.value.min >= 0 ? 0 : Math.abs(Le.value.min) : -Le.value.min), Pe = b(() => La.value ? ge.value.map((a, r) => {
339
+ const e = Re(a.series), s = `uniqueId_${r}`;
340
+ return {
341
+ ...a,
342
+ slotAbsoluteIndex: r,
343
+ series: e.map((t) => Jl(t) ? t : null).slice(m.value.start, m.value.end),
344
+ color: It(a.color ? a.color : Bl.value[r] ? Bl.value[r] : Sa[r]),
345
+ id: s,
346
+ scaleLabel: a.scaleLabel || s
347
+ };
348
+ }) : ge.value), me = b(() => Pe.value.map((a, r) => ({
349
+ absoluteIndex: r,
350
+ ...a,
351
+ series: a.series.map((e) => e + kl.value),
352
+ absoluteValues: a.series,
353
+ segregate: () => Yl(a),
354
+ isSegregated: J.value.includes(a.id)
355
+ }))), we = b(() => Pe.value.map((a, r) => ({
356
+ ...a,
357
+ series: a.series.map((e) => e + kl.value),
358
+ absoluteValues: a.series
359
+ })).filter((a) => !J.value.includes(a.id)));
360
+ function bo() {
361
+ let a = 0;
362
+ ta.value && (a = Array.from(ta.value.querySelectorAll("text")).reduce((t, i) => {
363
+ const o = i.getComputedTextLength();
364
+ return (o > t ? o : t) + l.value.chart.grid.labels.yAxis.scaleValueOffsetX;
365
+ }, 0));
366
+ const r = aa.value ? aa.value.getBoundingClientRect().width + l.value.chart.grid.labels.axis.yLabelOffsetX + y.value.yAxis : 0, e = l.value.chart.grid.labels.yAxis.crosshairSize;
367
+ return a + r + e;
368
+ }
369
+ const ha = x(0), xo = pr((a) => {
370
+ ha.value = a;
371
+ }, 100);
372
+ Lt((a) => {
373
+ const r = sl.value;
374
+ if (!r) return;
375
+ const e = new ResizeObserver((s) => {
376
+ xo(s[0].contentRect.height);
377
+ });
378
+ e.observe(r), a(() => e.disconnect());
379
+ }), ka(() => {
380
+ ha.value = 0;
381
+ });
382
+ const Ya = b(() => {
383
+ let a = 0;
384
+ la.value && (a = la.value.getBBox().height);
385
+ let r = 0;
386
+ return sl.value && (r = ha.value), a + r + y.value.xAxis;
387
+ }), po = b(() => ge.value.some((a) => a.useProgression)), c = b(() => {
388
+ let a = 0;
389
+ const r = 36;
390
+ l.value.chart.grid.labels.show && (f.value.useIndividualScale && !f.value.isStacked ? a = (ge.value.length - J.value.length) * (l.value.chart.grid.labels.yAxis.labelWidth + r) : f.value.useIndividualScale && f.value.isStacked ? a = l.value.chart.grid.labels.yAxis.labelWidth + r : a = bo());
391
+ const e = l.value.chart.labels.fontSize * 1.1, s = po.value ? 24 : 6;
392
+ if (sl.value) {
393
+ const o = sl.value.getBBox().x;
394
+ o < 0 && (a += Math.abs(o));
395
+ }
396
+ const t = ee.value - a - l.value.chart.grid.labels.yAxis.crosshairSize - s - l.value.chart.padding?.left - l.value.chart.padding?.right, i = l.value.chart.grid.position === "middle" ? 0 : t / $.value / 2;
397
+ return {
398
+ top: l.value.chart.padding?.top + e,
399
+ right: ee.value - s - l.value.chart.padding?.right,
400
+ bottom: ve.value - Ya.value - l.value.chart.padding?.bottom - l.value.chart.grid.labels.axis.xLabelOffsetY,
401
+ left: a + l.value.chart.grid.labels.yAxis.crosshairSize - i + l.value.chart.padding?.left,
402
+ height: ve.value - Ya.value - l.value.chart.padding?.top - l.value.chart.padding?.bottom - e - l.value.chart.grid.labels.axis.xLabelOffsetY,
403
+ width: t,
404
+ scaleLabelX: a,
405
+ individualOffsetX: r
406
+ };
407
+ }), yo = b(() => {
408
+ const a = l.value.chart.grid.position === "middle" ? 1 : 0, r = $.value + a, e = Y(c.value?.top), s = Y(c.value?.bottom);
409
+ return Array.from({ length: r }).map((t, i) => {
410
+ const o = c.value.width / $.value * i + c.value?.left + U.value;
411
+ return `M${o},${e} L${o},${s}`;
412
+ }).join(" ");
413
+ }), ko = b(() => {
414
+ if (!l.value.chart.grid.labels.xAxis.showCrosshairs) return "";
415
+ const a = c.value.width / $.value, r = l.value.chart.grid.labels.xAxis.crosshairSize, e = l.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero;
416
+ return ma.value.map((s, t) => {
417
+ if (!s || !s.text) return null;
418
+ const i = c.value?.left + a * t + a / 2, o = e ? ue.value - (ue.value === c.value?.bottom ? 0 : r / 2) : c.value?.bottom, L = e ? ue.value + r / (ue.value === c.value?.bottom ? 1 : 2) : c.value?.bottom + r;
419
+ return `M${i},${o} L${i},${L}`;
420
+ }).filter(Boolean).join(" ");
421
+ });
422
+ function Wa() {
423
+ return !!ro?.vnode.props?.onSelectTimeLabel;
424
+ }
425
+ function _o(a, r, e) {
426
+ if (!Fl.value) {
427
+ const s = document.createElement("canvas");
428
+ Fl.value = s.getContext("2d");
429
+ }
430
+ return Fl.value.font = `normal ${a}px sans-serif`, Fl.value;
431
+ }
432
+ function Xa() {
433
+ const a = Ie.value.querySelectorAll(".vue-ui-xy-tag");
434
+ a.length && Array.from(a).forEach((r) => r.style.opacity = "0");
435
+ }
436
+ function Dl(a, r, e, s, t) {
437
+ e && (De.value[`${a}_${r}_${s}_${t}`] = e);
438
+ }
439
+ const Ga = x(!1);
440
+ async function Ua(a = !1) {
441
+ await Mt(), Ga.value = a, Fa.value && (Il.value = a);
442
+ }
443
+ function fa() {
444
+ xl.value = !xl.value;
445
+ }
446
+ const de = b(() => {
447
+ const a = Math.max(...ge.value.map((r) => Ca({ data: r.series, threshold: l.value.downsample.threshold }).length));
448
+ return Ht({
449
+ values: l.value.chart.grid.labels.xAxisLabels.values,
450
+ maxDatapoints: a,
451
+ formatter: l.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
452
+ start: m.value.start,
453
+ end: m.value.end
454
+ });
455
+ }), ga = b(() => {
456
+ const a = Math.max(...ge.value.map((r) => Ca({ data: r.series, threshold: l.value.downsample.threshold }).length));
457
+ return Ht({
458
+ values: l.value.chart.grid.labels.xAxisLabels.values,
459
+ maxDatapoints: a,
460
+ formatter: l.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
461
+ start: 0,
462
+ end: Oe.value
463
+ });
464
+ }), wo = b(() => {
465
+ const a = l.value.chart.grid.labels.xAxisLabels.modulo;
466
+ return de.value.length ? Math.min(a, [...new Set(de.value.map((r) => r.text))].length) : a;
467
+ }), ma = b(() => {
468
+ const a = l.value.chart.grid.labels.xAxisLabels, r = de.value || [], e = ga.value || [], s = m.value.start ?? 0, t = _.value, i = $.value, o = r.map((M) => M?.text ?? ""), L = e.map((M) => M?.text ?? "");
469
+ return nr(
470
+ !!a.showOnlyFirstAndLast,
471
+ !!a.showOnlyAtModulo,
472
+ Math.max(1, wo.value || 1),
473
+ o,
474
+ L,
475
+ s,
476
+ t,
477
+ i
478
+ );
479
+ });
480
+ function qa(a, r) {
481
+ const e = we.value.map((s) => ({
482
+ shape: s.shape || null,
483
+ name: s.name,
484
+ color: s.color,
485
+ type: s.type,
486
+ value: s.absoluteValues.find((t, i) => i === r),
487
+ comments: s.comments || [],
488
+ prefix: s.prefix || l.value.chart.labels.prefix,
489
+ suffix: s.suffix || l.value.chart.labels.suffix
490
+ }));
491
+ ea("selectTimeLabel", {
492
+ datapoint: e,
493
+ absoluteIndex: a.absoluteIndex,
494
+ label: a.text
495
+ });
496
+ }
497
+ const $ = b(() => {
498
+ const a = Ba((m.value.end ?? 0) - (m.value.start ?? 0));
499
+ return Math.max(1, a);
500
+ });
501
+ function So(a) {
502
+ B.value = a;
503
+ }
504
+ function Za() {
505
+ f.value.isStacked = !f.value.isStacked, f.value.isStacked ? f.value.useIndividualScale = !0 : f.value.useIndividualScale = l.value.chart.grid.labels.yAxis.useIndividualScale;
506
+ }
507
+ function ba(a) {
508
+ yl.value && a.autoScaling && (l.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${a.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), l.value.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${a.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
509
+ }
510
+ function Co(a, r) {
511
+ const e = Ba(a), s = Array(e).fill(0);
512
+ for (let t = 0; t < r.length && t < e; t += 1) s[t] = r[t] ?? 0;
513
+ return s;
514
+ }
515
+ function Ja(a) {
516
+ const r = Math.max(...ge.value.map((e) => Re(e.series).length));
517
+ return a > r ? r : a < 0 || l.value.chart.zoom.startIndex !== null && a < l.value.chart.zoom.startIndex ? l.value.chart.zoom.startIndex !== null ? l.value.chart.zoom.startIndex + 1 : 1 : a;
518
+ }
519
+ const _l = x(!1), Ka = x(!1);
520
+ function Pl() {
521
+ if (!_l.value) {
522
+ _l.value = !0;
523
+ try {
524
+ const { startIndex: a, endIndex: r } = l.value.chart.zoom, e = Math.max(...ge.value.map((i) => Re(i.series).length)), s = a ?? 0, t = r != null ? Math.min(Ja(r + 1), e) : e;
525
+ El.value = !0, m.value.start = s, m.value.end = t, Ae.value.start = s, Ae.value.end = t, ul(), Ka.value = !0;
526
+ } finally {
527
+ queueMicrotask(() => {
528
+ El.value = !1;
529
+ }), _l.value = !1;
530
+ }
531
+ }
532
+ }
533
+ const El = x(!1);
534
+ function $o(a) {
535
+ _l.value || El.value || a !== m.value.start && (m.value.start = a, Ae.value.start = a, ul());
536
+ }
537
+ function Ao(a) {
538
+ if (_l.value || El.value) return;
539
+ const r = Ja(a);
540
+ r !== m.value.end && (m.value.end = r, Ae.value.end = r, ul());
541
+ }
542
+ async function Lo() {
543
+ await Pl();
544
+ }
545
+ function be(a) {
546
+ return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(a);
547
+ }
548
+ const Qa = b(() => Le.value.max + kl.value);
549
+ function Je(a) {
550
+ return a / (be(Qa.value) ? Qa.value : 1);
551
+ }
552
+ const ue = b(() => isNaN(Je(kl.value)) ? c.value?.bottom : c.value?.bottom - c.value.height * Je(kl.value));
553
+ function ja(a) {
554
+ const r = ![null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) && l.value.chart.grid.labels.yAxis.scaleMin > 0 && Nl.value >= 0 ? c.value?.bottom : ue.value;
555
+ return a.value >= 0 ? N(r - a.y <= 0 ? 1e-5 : r - a.y) : N(a.y - ue.value <= 0 ? 1e-5 : a.y - ue.value);
556
+ }
557
+ function et(a) {
558
+ return a.value >= 0 ? N(a.zeroPosition - a.y <= 0 ? 1e-5 : a.zeroPosition - a.y) : N(a.y - a.zeroPosition <= 0 ? 1e-5 : a.zeroPosition - a.y);
559
+ }
560
+ const Z = b(() => {
561
+ const a = Math.max(1, $.value), r = Math.max(1, c.value.width), e = Math.max(1, Pe.value.filter((s) => s.type === "bar" && !J.value.includes(s.id)).length);
562
+ return {
563
+ bar: ua(r, a * e, 1),
564
+ plot: ua(r, a, 1),
565
+ line: ua(r, a, 1)
566
+ };
567
+ });
568
+ function He() {
569
+ return f.value.useIndividualScale && f.value.isStacked ? Z.value.line - c.value.width / $.value * 0.1 : Z.value.bar;
570
+ }
571
+ function Rl(a) {
572
+ return f.value.useIndividualScale && f.value.isStacked ? a.x + c.value.width / $.value * 0.05 : a.x + Z.value.bar / 2;
573
+ }
574
+ function lt(a) {
575
+ return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(ue.value) ? c?.bottom.value : ue.value;
576
+ }
577
+ function at(a) {
578
+ return a.value >= 0 ? a.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(a.zeroPosition) ? 0 : a.zeroPosition;
579
+ }
580
+ const wl = x(null);
581
+ function tt(a) {
582
+ const r = se.value;
583
+ if (!r) return null;
584
+ if (r.createSVGPoint && r.getScreenCTM) {
585
+ const T = r.createSVGPoint();
586
+ T.x = a.clientX, T.y = a.clientY;
587
+ const W = r.getScreenCTM();
588
+ if (W) {
589
+ const k = T.matrixTransform(W.inverse());
590
+ return { x: k.x, y: k.y, ok: !0 };
591
+ }
592
+ }
593
+ const e = r.getBoundingClientRect(), s = r.viewBox?.baseVal || { x: 0, y: 0, width: e.width, height: e.height }, t = Math.min(e.width / s.width, e.height / s.height), i = s.width * t, o = s.height * t, L = (e.width - i) / 2, M = (e.height - o) / 2, F = (a.clientX - e?.left - L) / t + s.x, S = (a.clientY - e?.top - M) / t + s.y;
594
+ return { x: F, y: S, ok: !0 };
595
+ }
596
+ let Ke = 0;
597
+ function Mo(a) {
598
+ xl.value || (Ke && cancelAnimationFrame(Ke), Ke = requestAnimationFrame(() => {
599
+ Ke = 0;
600
+ const r = tt(a);
601
+ if (!r || !se.value) {
602
+ Hl();
603
+ return;
604
+ }
605
+ const { left: e, right: s, top: t, bottom: i, width: o } = c.value;
606
+ if (r.x < e || r.x > s || r.y < t || r.y > i) {
607
+ Hl();
608
+ return;
609
+ }
610
+ const L = r.x - e, M = o / $.value, F = Math.floor(L / M);
611
+ F >= 0 && F < $.value ? wl.value !== F && (wl.value = F, mt(!0, F)) : Hl();
612
+ }));
613
+ }
614
+ function Hl() {
615
+ Ke && (cancelAnimationFrame(Ke), Ke = 0), wl.value = null, mt(!1, null);
616
+ }
617
+ function ot(a) {
618
+ const r = tt(a);
619
+ if (r && se.value) {
620
+ const { left: e, right: s, top: t, bottom: i, width: o } = c.value;
621
+ if (r.x >= e && r.x <= s && r.y >= t && r.y <= i) {
622
+ const L = o / Math.max(1, $.value), M = Math.floor((r.x - e) / L);
623
+ if (M >= 0 && M < $.value) {
624
+ rt(M);
625
+ return;
626
+ }
627
+ }
628
+ }
629
+ wl.value != null && rt(wl.value);
630
+ }
631
+ function rt(a) {
632
+ const r = we.value.map((e) => ({
633
+ name: e.name,
634
+ value: [null, void 0, NaN].includes(e.absoluteValues[a]) ? null : e.absoluteValues[a],
635
+ color: e.color,
636
+ type: e.type
637
+ }));
638
+ ea(
639
+ "selectX",
640
+ {
641
+ dataset: r,
642
+ index: a,
643
+ indexLabel: l.value.chart.grid.labels.xAxisLabels.values[a]
644
+ }
645
+ ), l.value.events.datapointClick && l.value.events.datapointClick({ datapoint: r, seriesIndex: a + m.value.start });
646
+ }
647
+ function To() {
648
+ return me.value.map((a) => ({
649
+ values: a.absoluteValues,
650
+ color: a.color,
651
+ name: a.name,
652
+ type: a.type
653
+ }));
654
+ }
655
+ async function zo({ scale: a = 2 } = {}) {
656
+ if (!Ie.value) return;
657
+ const { width: r, height: e } = Ie.value.getBoundingClientRect(), s = r / e, { imageUri: t, base64: i } = await Mr({ domElement: Ie.value, base64: !0, img: !0, scale: a });
658
+ return {
659
+ imageUri: t,
660
+ base64: i,
661
+ title: l.value.chart.title.text,
662
+ width: r,
663
+ height: e,
664
+ aspectRatio: s
665
+ };
666
+ }
667
+ function Yl(a) {
668
+ if (J.value.includes(a.id))
669
+ J.value = J.value.filter((r) => r !== a.id);
670
+ else {
671
+ if (J.value.length + 1 === Pe.value.length) return;
672
+ J.value.push(a.id);
673
+ }
674
+ ea("selectLegend", we.value.map((r) => ({
675
+ name: r.name,
676
+ values: r.absoluteValues,
677
+ color: r.color,
678
+ type: r.type
679
+ }))), sa.value += 1;
680
+ }
681
+ function st(a) {
682
+ if (!me.value.length)
683
+ return l.value.debug && console.warn("VueUiXy - There are no series to show."), null;
684
+ const r = me.value.find((e) => e.name === a);
685
+ return r || (l.value.debug && console.warn(`VueUiXy - Series name not found "${a}"`), null);
686
+ }
687
+ function Io(a) {
688
+ const r = st(a);
689
+ r !== null && J.value.includes(r.id) && Yl({ id: r.id });
690
+ }
691
+ function Fo(a) {
692
+ const r = st(a);
693
+ r !== null && (J.value.includes(r.id) || Yl({ id: r.id }));
694
+ }
695
+ const Oo = b(() => {
696
+ const a = l.value.chart.title.text || "Chart visualization", r = l.value.chart.title.subtitle.text || "";
697
+ return `${a}. ${r}`;
698
+ }), it = b(() => ({
699
+ linePlot: $.value > l.value.line.dot.hideAboveMaxSerieLength
700
+ })), Bo = b(() => l.value.chart.userOptions.show && (!l.value.chart.title.show || !l.value.chart.title.text)), No = b(() => {
701
+ if (Array.isArray(l.value.chart.highlightArea))
702
+ return l.value.chart.highlightArea.map((r) => {
703
+ const e = Math.min(r.to, Oe.value - 1);
704
+ return {
705
+ ...r,
706
+ span: r.from === e ? 1 : e < r.from ? 0 : e - r.from + 1
707
+ };
708
+ });
709
+ const a = {
710
+ ...l.value.chart.highlightArea,
711
+ to: Math.min(l.value.chart.highlightArea.to, Oe.value - 1)
712
+ };
713
+ return [{ ...a, span: a.from === a.to ? 1 : a.to < a.from ? 0 : a.to - a.from + 1 }];
714
+ }), ut = b(() => La.value ? ge.value.map((a, r) => ({
715
+ ...a,
716
+ series: Re(a.series),
717
+ id: `uniqueId_${r}`,
718
+ color: It(a.color ? a.color : Bl.value[r] ? Bl.value[r] : Sa[r])
719
+ })) : ge.value), Vo = b(() => we.value.map((a) => {
720
+ const r = a.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
721
+ return {
722
+ id: a.id,
723
+ name: a.name,
724
+ color: a.color,
725
+ values: Co($.value, r)
726
+ };
727
+ })), Do = b(() => ({
728
+ responsiveBreakpoint: l.value.table.responsiveBreakpoint,
729
+ roundingValues: l.value.table.rounding,
730
+ showAverage: !1,
731
+ showMedian: !1,
732
+ showTotal: !1,
733
+ fontFamily: l.value.chart.fontFamily,
734
+ prefix: l.value.chart.labels.prefix,
735
+ suffix: l.value.chart.labels.suffix,
736
+ colNames: de.value.map((a, r) => l.value.table.useDefaultTimeFormat ? a.text : nl.value(r + m.value.start, l.value.table.timeFormat)),
737
+ thead: {
738
+ backgroundColor: l.value.table.th.backgroundColor,
739
+ color: l.value.table.th.color,
740
+ outline: l.value.table.th.outline
741
+ },
742
+ tbody: {
743
+ backgroundColor: l.value.table.td.backgroundColor,
744
+ color: l.value.table.td.color,
745
+ outline: l.value.table.td.outline
746
+ },
747
+ userOptions: {
748
+ show: !1
749
+ },
750
+ sparkline: {
751
+ animation: { show: !1 }
752
+ }
753
+ })), U = b(() => l.value.chart.grid.position === "middle" ? 0 : c.value.width / $.value / 2), Qe = b(() => cr(me.value.filter((a) => !J.value.includes(a.id)))), A = b(() => {
754
+ const a = Object.groupBy(Qe.value, (e) => e.scaleLabel), r = {};
755
+ for (const [e, s] of Object.entries(a)) {
756
+ const t = s.flatMap((i) => i.absoluteValues);
757
+ r[e] = {
758
+ min: Math.min(...t) || 0,
759
+ max: Math.max(...t) || 1,
760
+ groupId: `scale_group_${_a()}`
761
+ };
762
+ }
763
+ return r;
764
+ }), Po = b(() => {
765
+ const a = Pe.value.filter((r) => r.type === "bar").filter((r) => !J.value.includes(r.id)).length;
766
+ return c.value.width / $.value / a - Wl.value * a;
767
+ }), Wl = b(() => Z.value.line * l.value.bar.periodGap), Xl = b(() => Math.max(1e-5, He() - (f.value.useIndividualScale && f.value.isStacked ? 0 : Wl.value))), Gl = b(() => Xl.value * Math.min(Math.abs(l.value.bar.innerGap), 0.95)), Eo = b(() => {
768
+ if (!l.value.chart.zoom.minimap.show) return [];
769
+ const a = ut.value.filter((t) => !J.value.includes(t.id)), r = Math.max(...a.map((t) => t.series.length)), e = [];
770
+ for (let t = 0; t < r; t += 1)
771
+ e.push(a.map((i) => i.series[t] || 0).reduce((i, o) => (i || 0) + (o || 0), 0));
772
+ const s = Math.min(...e);
773
+ return e.map((t) => t + (s < 0 ? Math.abs(s) : 0));
774
+ }), Ro = b(() => l.value.chart.zoom.minimap.show ? ut.value.map((r) => ({
775
+ ...r,
776
+ isVisible: !J.value.includes(r.id)
777
+ })) : []), je = b(() => we.value.map((a) => ({
778
+ slotAbsoluteIndex: a.slotAbsoluteIndex,
779
+ shape: a.shape || null,
780
+ name: a.name,
781
+ color: a.color,
782
+ type: a.type,
783
+ value: a.absoluteValues.find((r, e) => e === _.value),
784
+ comments: a.comments || [],
785
+ prefix: a.prefix || l.value.chart.labels.prefix,
786
+ suffix: a.suffix || l.value.chart.labels.suffix
787
+ }))), nt = b(() => Le.value.ticks.map((a) => ({
788
+ y: a >= 0 ? ue.value - c.value.height * Je(a) : ue.value + c.value.height * Je(Math.abs(a)),
789
+ value: a,
790
+ prefix: l.value.chart.labels.prefix,
791
+ suffix: l.value.chart.labels.suffix
792
+ }))), ct = b(() => {
793
+ const a = l.value.chart.annotations;
794
+ if (!a || !Array.isArray(a) || a.every((S) => !S.show)) return [];
795
+ const r = a.filter(
796
+ (S) => S.show && (S.yAxis.yTop != null || S.yAxis.yBottom != null)
797
+ );
798
+ if (!r.length) return [];
799
+ const { left: e, right: s } = c.value, t = ue.value, i = c.value.height, o = Le.value.min, M = Le.value.max - o, F = (S) => {
800
+ const T = (S - 0) / M;
801
+ return t - T * i;
802
+ };
803
+ return r.map((S) => {
804
+ const { yAxis: { yTop: T, yBottom: W, label: k } } = S, V = T != null && W != null && T !== W, z = T == null ? null : F(T), le = W == null ? null : F(W), ne = _o(k.fontSize);
805
+ ne.font = `${k.fontSize}px sans-serif`;
806
+ const q = ne.measureText(k.text).width, Se = k.fontSize, Be = (k.position === "start" ? e + k.padding?.left : s - k.padding?.right) + k.offsetX, pe = (z != null && le != null ? Math.min(z, le) : z ?? le) - k.fontSize / 3 + k.offsetY - k.padding?.top;
807
+ let E;
808
+ k.textAnchor === "middle" ? E = Be - q / 2 - k.padding?.left : k.textAnchor === "end" ? E = Be - q - k.padding?.right : E = Be - k.padding?.left;
809
+ const R = pe - Se * 0.75 - k.padding?.top;
810
+ return {
811
+ show: ![z, le, R].includes(NaN),
812
+ id: `annotation_y_${_a()}`,
813
+ hasArea: V,
814
+ areaHeight: V ? Math.abs(z - le) : 0,
815
+ yTop: z,
816
+ yBottom: le,
817
+ config: S.yAxis,
818
+ x1: e,
819
+ x2: s,
820
+ _text: { x: Be, y: pe },
821
+ _box: {
822
+ x: E,
823
+ y: R,
824
+ width: q + k.padding?.left + k.padding?.right,
825
+ height: Se + k.padding?.top + k.padding?.bottom,
826
+ fill: k.backgroundColor,
827
+ stroke: k.border.stroke,
828
+ rx: k.border.rx,
829
+ ry: k.border.ry,
830
+ strokeWidth: k.border.strokeWidth
831
+ }
832
+ };
833
+ });
834
+ });
835
+ function vt(a, r) {
836
+ const e = a[r - 1], s = a[r + 1];
837
+ let t = !!e && !!s && e.value == null && s.value == null || !e && !!s && s.value == null || !!e && !s && e.value == null;
838
+ return be(a[r].value) && t && l.value.line.cutNullValues;
839
+ }
840
+ const Me = b(() => {
841
+ const a = Qe.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), r = a.length, e = l.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? e * (r - 1) : 0, i = c.value.height - t;
842
+ return a.filter((o) => o.type === "bar").map((o, L) => {
843
+ ba(o);
844
+ const M = A.value[o.scaleLabel].min, F = A.value[o.scaleLabel].max;
845
+ o.absoluteValues.filter((D) => ![null, void 0].includes(D)).map((D) => (D - M) / (F - M));
846
+ const S = {
847
+ valueMin: M,
848
+ valueMax: F < 0 ? 0 : F
849
+ }, T = {
850
+ max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
851
+ min: o.scaleMin || Math.min(...o.absoluteValues.filter((D) => ![void 0, null].includes(D))) > 0 ? 0 : Math.min(...o.absoluteValues.filter((D) => ![null, void 0].includes(D)))
852
+ }, W = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, V = l.value.chart.grid.labels.yAxis.useNiceScale ? Ml(T.min, T.max === T.min ? T.max * k : T.max, W) : tl(T.min, T.max === T.min ? T.max * k : T.max, W), z = l.value.chart.grid.labels.yAxis.useNiceScale ? Ml(S.valueMin, S.valueMax === S.valueMin ? S.valueMax * k : S.valueMax, W) : tl(S.valueMin, S.valueMax === S.valueMin ? S.valueMax * k : S.valueMax, W), le = V.min >= 0 ? 0 : Math.abs(V.min), ne = 0, q = V.max + le, Se = z.max + Math.abs(ne), Be = o.stackIndex, cl = r - 1 - Be, pe = s ? 1 - o.cumulatedStackRatio : 0, E = s ? i * pe + e * cl : 0, R = s ? i * o.stackRatio : c.value.height, K = c.value?.bottom - E - R * le / q, ye = c.value?.bottom - E - R * ne / Se, ce = me.value.filter((D) => D.type === "bar").filter((D) => !J.value.includes(D.id)).length, $l = o.series.map((D, j) => {
853
+ const We = f.value.useIndividualScale ? (o.absoluteValues[j] + le) / q : Je(D), el = f.value.useIndividualScale && f.value.isStacked ? c.value?.left + c.value.width / $.value * j : c.value?.left + Z.value.bar * L + Z.value.bar * j * ce - Po.value / 2 - L * Wl.value;
854
+ return {
855
+ yOffset: N(E),
856
+ individualHeight: N(R),
857
+ x: N(el),
858
+ y: c.value?.bottom - E - R * We,
859
+ value: o.absoluteValues[j],
860
+ zeroPosition: N(K),
861
+ individualMax: N(q),
862
+ comment: o.comments && o.comments.slice(m.value.start, m.value.end)[j] || ""
863
+ };
864
+ }), he = o.absoluteValues.map((D) => z.min >= 0 ? (D - Math.abs(z.min)) / (z.max - Math.abs(z.min)) : (D + Math.abs(z.min)) / (z.max + Math.abs(z.min))), Ye = o.series.map((D, j) => {
865
+ const We = f.value.useIndividualScale && f.value.isStacked ? c.value?.left + c.value.width / $.value * j : c.value?.left - Z.value.bar / 2 + Z.value.bar * L + Z.value.bar * j * me.value.filter((el) => el.type === "bar").filter((el) => !J.value.includes(el.id)).length;
866
+ return {
867
+ yOffset: N(E),
868
+ individualHeight: N(R),
869
+ x: N(We),
870
+ y: N(c.value?.bottom - N(E) - (N(R) * he[j] || 0)),
871
+ value: o.absoluteValues[j],
872
+ zeroPosition: N(K),
873
+ individualMax: N(q),
874
+ comment: o.comments && o.comments.slice(m.value.start, m.value.end)[j] || ""
875
+ };
876
+ }), X = V.ticks.map((D) => ({
877
+ y: D >= 0 ? K - R * (D / q) : K + R * Math.abs(D) / q,
878
+ value: D,
879
+ prefix: o.prefix || l.value.chart.labels.prefix,
880
+ suffix: o.suffix || l.value.chart.labels.suffix,
881
+ datapoint: o
882
+ })), Q = z.ticks.map((D) => {
883
+ const j = (D - z.min) / (z.max - z.min);
884
+ return {
885
+ y: D >= 0 ? ye - R * j : ye + R * j,
886
+ value: D,
887
+ prefix: o.prefix || l.value.chart.labels.prefix,
888
+ suffix: o.suffix || l.value.chart.labels.suffix,
889
+ datapoint: o
890
+ };
891
+ });
892
+ return A.value[o.scaleLabel].name = o.name, A.value[o.scaleLabel].groupName = o.scaleLabel, A.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, A.value[o.scaleLabel].color = o.color, A.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Q : X, A.value[o.scaleLabel].zeroPosition = o.autoScaling ? ye : K, A.value[o.scaleLabel].individualMax = o.autoScaling ? Se : q, A.value[o.scaleLabel].scaleLabel = o.scaleLabel, A.value[o.scaleLabel].id = o.id, A.value[o.scaleLabel].yOffset = E, A.value[o.scaleLabel].individualHeight = R, A.value[o.scaleLabel].autoScaleYLabels = Q, A.value[o.scaleLabel].unique = Qe.value.filter((D) => D.scaleLabel === o.scaleLabel).length === 1, {
893
+ ...o,
894
+ yOffset: E,
895
+ autoScaleYLabels: Q,
896
+ individualHeight: R,
897
+ scaleYLabels: o.autoScaling ? Q : X,
898
+ individualScale: o.autoScaling ? z : V,
899
+ individualMax: o.autoScaling ? Se : q,
900
+ zeroPosition: o.autoScaling ? ye : K,
901
+ plots: o.autoScaling ? Ye : $l,
902
+ groupId: A.value[o.scaleLabel].groupId
903
+ };
904
+ });
905
+ }), te = b(() => {
906
+ const a = Qe.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), r = a.length, e = l.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? e * (r - 1) : 0, i = c.value.height - t;
907
+ return a.filter((o) => o.type === "line").map((o, L) => {
908
+ ba(o);
909
+ const M = A.value[o.scaleLabel].min, F = A.value[o.scaleLabel].max;
910
+ o.absoluteValues.filter((O) => ![null, void 0].includes(O)).map((O) => (O - M) / (F - M));
911
+ const S = {
912
+ valueMin: M,
913
+ valueMax: F
914
+ }, T = {
915
+ max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
916
+ min: o.scaleMin || (Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues))
917
+ }, W = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, V = l.value.chart.grid.labels.yAxis.useNiceScale ? Ml(T.min, T.max === T.min ? T.max * k : T.max, W) : tl(T.min, T.max === T.min ? T.max * k : T.max, W), z = l.value.chart.grid.labels.yAxis.useNiceScale ? Ml(S.valueMin, S.valueMax === S.valueMin ? S.valueMax * k : S.valueMax, W) : tl(S.valueMin, S.valueMax === S.valueMin ? S.valueMax * k : S.valueMax, W), le = V.min >= 0 ? 0 : Math.abs(V.min), ne = 0, q = V.max + Math.abs(le), Se = z.max + Math.abs(ne), Be = o.stackIndex, cl = r - 1 - Be, pe = s ? 1 - o.cumulatedStackRatio : 0, E = s ? i * pe + e * cl : 0, R = s ? i * o.stackRatio : c.value.height, K = c.value?.bottom - E - R * le / q, ye = c.value?.bottom - E - R * ne / Se, ce = o.series.map((O, oe) => {
918
+ const jo = f.value.useIndividualScale ? (o.absoluteValues[oe] + Math.abs(le)) / q : Je(O);
919
+ return {
920
+ x: N(c.value?.left + Z.value.line / 2 + Z.value.line * oe),
921
+ y: N(c.value?.bottom - E - R * jo),
922
+ value: o.absoluteValues[oe],
923
+ comment: o.comments && o.comments.slice(m.value.start, m.value.end)[oe] || ""
924
+ };
925
+ }), $l = o.absoluteValues.map((O) => z.min >= 0 ? (O - Math.abs(z.min)) / (z.max - Math.abs(z.min)) : (O + Math.abs(z.min)) / (z.max + Math.abs(z.min))), he = o.series.map((O, oe) => [void 0, null].includes(o.absoluteValues[oe]) ? {
926
+ x: N(c.value?.left + Z.value.line / 2 + Z.value.line * oe),
927
+ y: K,
928
+ value: o.absoluteValues[oe],
929
+ comment: o.comments && o.comments.slice(m.value.start, m.value.end)[oe] || ""
930
+ } : {
931
+ x: N(c.value?.left + Z.value.line / 2 + Z.value.line * oe),
932
+ y: N(c.value?.bottom - E - (R * $l[oe] || 0)),
933
+ value: o.absoluteValues[oe],
934
+ comment: o.comments && o.comments.slice(m.value.start, m.value.end)[oe] || ""
935
+ }), Ye = l.value.line.cutNullValues ? Ft(ce) : Ot(ce.filter((O) => O.value !== null)), X = l.value.line.cutNullValues ? Ft(he) : Ot(he.filter((O) => O.value !== null)), Q = l.value.line.cutNullValues ? Bt(ce) : Nt(ce.filter((O) => O.value !== null)), D = l.value.line.cutNullValues ? Bt(he) : Nt(he.filter((O) => O.value !== null)), j = V.ticks.map((O) => ({
936
+ y: O >= 0 ? K - R * (O / q) : K + R * Math.abs(O) / q,
937
+ value: O,
938
+ prefix: o.prefix || l.value.chart.labels.prefix,
939
+ suffix: o.suffix || l.value.chart.labels.suffix,
940
+ datapoint: o
941
+ })), We = z.ticks.map((O) => {
942
+ const oe = (O - z.min) / (z.max - z.min);
943
+ return {
944
+ y: O >= 0 ? ye - R * oe : ye + R * oe,
945
+ value: O,
946
+ prefix: o.prefix || l.value.chart.labels.prefix,
947
+ suffix: o.suffix || l.value.chart.labels.suffix,
948
+ datapoint: o
949
+ };
950
+ });
951
+ A.value[o.scaleLabel].name = o.name, A.value[o.scaleLabel].groupName = o.scaleLabel, A.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, A.value[o.scaleLabel].color = o.color, A.value[o.scaleLabel].scaleYLabels = o.autoScaling ? We : j, A.value[o.scaleLabel].zeroPosition = o.autoScaling ? ye : K, A.value[o.scaleLabel].individualMax = o.autoScaling ? Se : q, A.value[o.scaleLabel].scaleLabel = o.scaleLabel, A.value[o.scaleLabel].id = o.id, A.value[o.scaleLabel].yOffset = E, A.value[o.scaleLabel].individualHeight = R, A.value[o.scaleLabel].autoScaleYLabels = We, A.value[o.scaleLabel].unique = Qe.value.filter((O) => O.scaleLabel === o.scaleLabel).length === 1;
952
+ const el = f.value.useIndividualScale ? o.autoScaling ? ye : K : ue.value, Al = Math.max(Math.max(o.autoScaling ? ye : j.at(-1) ? j.at(-1).y : 0, c.value?.top), el);
953
+ return {
954
+ ...o,
955
+ yOffset: E,
956
+ autoScaleYLabels: We,
957
+ individualHeight: R,
958
+ scaleYLabels: o.autoScaling ? We : j,
959
+ individualScale: o.autoScaling ? z : V,
960
+ individualMax: o.autoScaling ? Se : q,
961
+ zeroPosition: o.autoScaling ? ye : K,
962
+ curve: o.autoScaling ? X : Ye,
963
+ plots: o.autoScaling ? he : ce,
964
+ area: o.useArea ? f.value.useIndividualScale ? l.value.line.cutNullValues ? Vt(
965
+ o.autoScaling ? he : ce,
966
+ Al
967
+ ) : Dt(
968
+ o.autoScaling ? he.filter((O) => O.value !== null) : ce.filter((O) => O.value !== null),
969
+ Al
970
+ ) : l.value.line.cutNullValues ? Vt(ce, Al) : Dt(ce.filter((O) => O.value !== null), Al) : "",
971
+ curveAreas: o.useArea ? vr(
972
+ o.autoScaling ? l.value.line.cutNullValues ? he : he.filter((O) => O.value !== null) : l.value.line.cutNullValues ? ce : ce.filter((O) => O.value !== null),
973
+ Al,
974
+ l.value.line.cutNullValues
975
+ ) : [],
976
+ straight: o.autoScaling ? D : Q,
977
+ groupId: A.value[o.scaleLabel].groupId
978
+ };
979
+ });
980
+ }), xe = b(() => {
981
+ const a = Qe.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), r = a.length, e = l.value.chart.grid.labels.yAxis.gap, s = f.value.isStacked, t = s ? e * (r - 1) : 0, i = c.value.height - t;
982
+ return a.filter((o) => o.type === "plot").map((o) => {
983
+ ba(o);
984
+ const L = A.value[o.scaleLabel].min, M = A.value[o.scaleLabel].max;
985
+ o.absoluteValues.filter((X) => ![null, void 0].includes(X)).map((X) => (X - L) / (M - L));
986
+ const F = {
987
+ valueMin: L,
988
+ valueMax: M
989
+ }, S = {
990
+ max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
991
+ min: o.scaleMin || Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues)
992
+ }, T = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, W = 1.0000001, k = tl(S.min, S.max === S.min ? S.max * W : S.max, T), V = tl(F.valueMin, F.valueMax === F.valueMin ? F.valueMax * W : F.valueMax, T), z = k.min >= 0 ? 0 : Math.abs(k.min), le = 0, ne = k.max + z, q = V.max + Math.abs(le), Se = o.stackIndex, Be = r - 1 - Se, cl = s ? 1 - o.cumulatedStackRatio : 0, pe = s ? i * cl + e * Be : 0, E = s ? i * o.stackRatio : c.value.height, R = c.value?.bottom - pe - E * z / ne, K = c.value?.bottom - pe - E * le / q, ye = o.series.map((X, Q) => {
993
+ const D = f.value.useIndividualScale ? (o.absoluteValues[Q] + Math.abs(z)) / ne : Je(X);
994
+ return {
995
+ x: N(c.value?.left + Z.value.plot / 2 + Z.value.plot * Q),
996
+ y: N(c.value?.bottom - pe - E * D),
997
+ value: o.absoluteValues[Q],
998
+ comment: o.comments && o.comments.slice(m.value.start, m.value.end)[Q] || ""
999
+ };
1000
+ }), ce = o.absoluteValues.map((X) => V.min >= 0 ? (X - Math.abs(V.min)) / (V.max - Math.abs(V.min)) : (X + Math.abs(V.min)) / (V.max + Math.abs(V.min))), $l = o.series.map((X, Q) => ({
1001
+ x: N(c.value?.left + Z.value.plot / 2 + Z.value.plot * Q),
1002
+ y: N(c.value?.bottom - pe - (E * ce[Q] || 0)),
1003
+ value: o.absoluteValues[Q],
1004
+ comment: o.comments && o.comments.slice(m.value.start, m.value.end)[Q] || ""
1005
+ })), he = k.ticks.map((X) => ({
1006
+ y: X >= 0 ? R - E * (X / ne) : R + E * Math.abs(X) / ne,
1007
+ value: X,
1008
+ prefix: o.prefix || l.value.chart.labels.prefix,
1009
+ suffix: o.suffix || l.value.chart.labels.suffix,
1010
+ datapoint: o
1011
+ })), Ye = V.ticks.map((X) => {
1012
+ const Q = (X - V.min) / (V.max - V.min);
1013
+ return {
1014
+ y: X >= 0 ? K - E * Q : K + E * Q,
1015
+ value: X,
1016
+ prefix: o.prefix || l.value.chart.labels.prefix,
1017
+ suffix: o.suffix || l.value.chart.labels.suffix,
1018
+ datapoint: o
1019
+ };
1020
+ });
1021
+ return A.value[o.scaleLabel].name = o.name, A.value[o.scaleLabel].groupName = o.scaleLabel, A.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, A.value[o.scaleLabel].color = o.color, A.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Ye : he, A.value[o.scaleLabel].zeroPosition = o.autoScaling ? K : R, A.value[o.scaleLabel].individualMax = o.autoScaling ? q : ne, A.value[o.scaleLabel].scaleLabel = o.scaleLabel, A.value[o.scaleLabel].id = o.id, A.value[o.scaleLabel].yOffset = pe, A.value[o.scaleLabel].individualHeight = E, A.value[o.scaleLabel].autoScaleYLabels = Ye, A.value[o.scaleLabel].unique = Qe.value.filter((X) => X.scaleLabel === o.scaleLabel).length === 1, {
1022
+ ...o,
1023
+ yOffset: pe,
1024
+ autoScaleYLabels: Ye,
1025
+ individualHeight: E,
1026
+ scaleYLabels: o.autoScaling ? Ye : he,
1027
+ individualScale: o.autoScaling ? V : k,
1028
+ individualMax: o.autoScaling ? q : ne,
1029
+ zeroPosition: o.autoScaling ? K : R,
1030
+ plots: o.autoScaling ? $l : ye,
1031
+ groupId: A.value[o.scaleLabel].groupId
1032
+ };
1033
+ });
1034
+ }), Sl = b(() => {
1035
+ const a = te.value.map((i) => ({
1036
+ name: i.name,
1037
+ color: i.color,
1038
+ scale: i.individualScale,
1039
+ scaleYLabels: i.scaleYLabels,
1040
+ zero: i.zeroPosition,
1041
+ max: i.individualMax,
1042
+ scaleLabel: i.scaleLabel || "",
1043
+ id: i.id,
1044
+ yOffset: i.yOffset || 0,
1045
+ individualHeight: i.individualHeight || c.value.height,
1046
+ autoScaleYLabels: i.autoScaleYLabels
1047
+ })), r = Me.value.map((i) => ({
1048
+ name: i.name,
1049
+ color: i.color,
1050
+ scale: i.individualScale,
1051
+ scaleYLabels: i.scaleYLabels,
1052
+ zero: i.zeroPosition,
1053
+ max: i.individualMax,
1054
+ scaleLabel: i.scaleLabel || "",
1055
+ id: i.id,
1056
+ yOffset: i.yOffset || 0,
1057
+ individualHeight: i.individualHeight || c.value.height
1058
+ })), e = xe.value.map((i) => ({
1059
+ name: i.name,
1060
+ color: i.color,
1061
+ scale: i.individualScale,
1062
+ scaleYLabels: i.scaleYLabels,
1063
+ // FIX
1064
+ zero: i.zeroPosition,
1065
+ max: i.individualMax,
1066
+ scaleLabel: i.scaleLabel || "",
1067
+ id: i.id,
1068
+ yOffset: i.yOffset || 0,
1069
+ individualHeight: i.individualHeight || c.value.height
1070
+ })), s = f.value.useIndividualScale && !f.value.isStacked ? Object.values(A.value) : [...a, ...r, ...e], t = s.flatMap((i) => i).length;
1071
+ return s.flatMap((i, o) => {
1072
+ let L = 0;
1073
+ L = f.value.isStacked ? c.value?.left : c.value?.left / t * (o + 1);
1074
+ const M = f.value.useIndividualScale && !f.value.isStacked ? i.unique ? i.name : i.groupName : i.name;
1075
+ return {
1076
+ unique: i.unique,
1077
+ id: i.id,
1078
+ groupId: i.groupId,
1079
+ scaleLabel: i.scaleLabel,
1080
+ name: re(
1081
+ l.value.chart.grid.labels.yAxis.serieNameFormatter,
1082
+ M,
1083
+ M,
1084
+ i
1085
+ ),
1086
+ color: f.value.useIndividualScale && !f.value.isStacked ? i.unique ? i.color : i.groupColor : i.color,
1087
+ scale: i.scale,
1088
+ yOffset: i.yOffset,
1089
+ individualHeight: i.individualHeight,
1090
+ x: L,
1091
+ yLabels: i.scaleYLabels || i.scale.ticks.map((F) => ({
1092
+ y: F >= 0 ? i.zero - i.individualHeight * (F / i.max) : i.zero + i.individualHeight * Math.abs(F) / i.max,
1093
+ value: F
1094
+ }))
1095
+ };
1096
+ });
1097
+ }), dt = b(() => {
1098
+ const a = l.value.line.interLine || {}, r = a.pairs || [], e = a.colors || [];
1099
+ if (!r.length) return [];
1100
+ const s = [];
1101
+ return r.forEach((t, i) => {
1102
+ const [o, L] = Array.isArray(t) ? t : [t.a, t.b];
1103
+ if (!o || !L) return;
1104
+ const M = te.value.find((k) => k.name === o), F = te.value.find((k) => k.name === L);
1105
+ if (!M || !F || M.type !== "line" || F.type !== "line") return;
1106
+ const S = e?.[i]?.[0] ?? M.color, T = e?.[i]?.[1] ?? F.color;
1107
+ dr({
1108
+ lineA: M.plots,
1109
+ lineB: F.plots,
1110
+ smoothA: !!M.smooth,
1111
+ smoothB: !!F.smooth,
1112
+ colorLineA: S,
1113
+ colorLineB: T,
1114
+ sampleStepPx: 2,
1115
+ cutNullValues: l.value.line.cutNullValues
1116
+ }).forEach((k, V) => {
1117
+ s.push({ ...k, key: `inter_${o}_${L}_${i}_${V}` });
1118
+ });
1119
+ }), s;
1120
+ }), ht = b(() => ({
1121
+ datapoint: je.value,
1122
+ seriesIndex: _.value,
1123
+ series: me.value,
1124
+ bars: Me.value,
1125
+ lines: te.value,
1126
+ plots: xe.value,
1127
+ config: l.value
1128
+ })), nl = b(() => {
1129
+ const a = l.value.chart.grid.labels.xAxisLabels.datetimeFormatter, r = Sr({
1130
+ useUTC: a.useUTC,
1131
+ locale: Cr[a.locale] || { months: [], shortMonths: [], days: [], shortDays: [] },
1132
+ januaryAsYear: a.januaryAsYear
1133
+ });
1134
+ return (e, s) => {
1135
+ const i = l.value.chart.grid.labels.xAxisLabels.values?.[e];
1136
+ return i == null ? "" : r.formatDate(new Date(i), s);
1137
+ };
1138
+ }), ft = b(() => (l.value.chart.grid.labels.xAxisLabels.values || []).map((r, e) => ({
1139
+ text: nl.value(e, l.value.chart.zoom.timeFormat),
1140
+ absoluteIndex: e
1141
+ }))), Ho = b(() => {
1142
+ let a = "", r = je.value.map((t) => t.value).filter((t) => Jl(t) && t !== null).reduce((t, i) => Math.abs(t) + Math.abs(i), 0);
1143
+ const e = de.value[_.value], s = l.value.chart.tooltip.customFormat;
1144
+ if (Pt(s) && hr(() => s({
1145
+ absoluteIndex: _.value + m.value.start,
1146
+ seriesIndex: _.value,
1147
+ datapoint: je.value,
1148
+ series: me.value,
1149
+ bars: Me.value,
1150
+ lines: te.value,
1151
+ plots: xe.value,
1152
+ config: l.value
1153
+ })))
1154
+ return s({
1155
+ absoluteIndex: _.value + m.value.start,
1156
+ seriesIndex: _.value,
1157
+ datapoint: je.value,
1158
+ series: me.value,
1159
+ bars: Me.value,
1160
+ lines: te.value,
1161
+ plots: xe.value,
1162
+ config: l.value
1163
+ });
1164
+ if (e && e.text && l.value.chart.tooltip.showTimeLabel) {
1165
+ const t = nl.value(_.value + m.value.start, l.value.chart.tooltip.timeFormat);
1166
+ a += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${l.value.chart.tooltip.borderColor}; width:100%">${l.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !l.value.chart.tooltip.useDefaultTimeFormat ? t : e.text}</div>`;
1167
+ }
1168
+ return je.value.forEach((t) => {
1169
+ if (Jl(t.value)) {
1170
+ let i = "", o = "";
1171
+ switch (bl.value[t.type]) {
1172
+ case "bar":
1173
+ i = `<svg viewBox="0 0 40 40" height="14" width="14">${Aa.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${t.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${Aa.pattern ? `url(#pattern_${H.value}_${t.slotAbsoluteIndex}` : t.color}" /></svg>`;
1174
+ break;
1175
+ case "line":
1176
+ !t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" />` : t.shape === "triangle" ? o = `<path d="${Ne({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "square" ? o = `<path d="${Ne({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "diamond" ? o = `<path d="${Ne({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "pentagon" ? o = `<path d="${Ne({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "hexagon" ? o = `<path d="${Ne({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "star" && (o = `<polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" points="${Et({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), i = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${t.color}" />${o}</svg>`;
1177
+ break;
1178
+ case "plot":
1179
+ if (!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape)) {
1180
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${t.color}" /></svg>`;
1181
+ break;
1182
+ }
1183
+ if (t.shape === "star") {
1184
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${t.color}" points="${Et({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
1185
+ break;
1186
+ }
1187
+ if (t.shape === "triangle") {
1188
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1189
+ break;
1190
+ }
1191
+ if (t.shape === "square") {
1192
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1193
+ break;
1194
+ }
1195
+ if (t.shape === "diamond") {
1196
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1197
+ break;
1198
+ }
1199
+ if (t.shape === "pentagon") {
1200
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1201
+ break;
1202
+ }
1203
+ if (t.shape === "hexagon") {
1204
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${Ne({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${t.color}" stroke="${l.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1205
+ break;
1206
+ }
1207
+ }
1208
+ a += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${i}</div> ${t.name}: <b>${l.value.chart.tooltip.showValue ? re(
1209
+ t.type === "line" ? l.value.line.labels.formatter : t.type === "bar" ? l.value.bar.labels.formatter : l.value.plot.labels.formatter,
1210
+ t.value,
1211
+ Ve({
1212
+ p: t.prefix,
1213
+ v: t.value,
1214
+ s: t.suffix,
1215
+ r: l.value.chart.tooltip.roundingValue
1216
+ }),
1217
+ { datapoint: t }
1218
+ ) : ""}</b> ${l.value.chart.tooltip.showPercentage ? `(${Ve({
1219
+ v: N(Math.abs(t.value) / r * 100),
1220
+ s: "%",
1221
+ r: l.value.chart.tooltip.roundingPercentage
1222
+ })})` : ""}</div>`, l.value.chart.comments.showInTooltip && t.comments.length && t.comments.slice(m.value.start, m.value.end)[_.value] && (a += `<div class="vue-data-ui-tooltip-comment" style="background:${t.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${t.color}">${t.comments.slice(m.value.start, m.value.end)[_.value]}</div>`);
1223
+ }
1224
+ }), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${l.value.chart.tooltip.color}">${a}</div>`;
1225
+ }), gt = b(() => {
1226
+ if (Pe.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
1227
+ const a = we.value.map((e) => ({
1228
+ label: e.name,
1229
+ color: e.color,
1230
+ type: e.type
1231
+ })), r = [];
1232
+ return de.value.forEach((e, s) => {
1233
+ const t = l.value.table.useDefaultTimeFormat ? [e.text] : [nl.value(s + m.value.start, l.value.table.timeFormat)];
1234
+ we.value.forEach((i) => {
1235
+ t.push(be(i.absoluteValues[s]) ? Number(i.absoluteValues[s].toFixed(l.value.table.rounding)) : "");
1236
+ }), r.push(t);
1237
+ }), { head: a, body: r };
1238
+ }), Ul = b(() => {
1239
+ const a = l.value.table.showSum;
1240
+ let r = [""].concat(we.value.map((i) => i.name));
1241
+ a && (r = r.concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>'));
1242
+ let e = [];
1243
+ for (let i = 0; i < $.value; i += 1) {
1244
+ const o = we.value.map((L) => L.absoluteValues[i] ?? 0).reduce((L, M) => L + M, 0);
1245
+ e.push(
1246
+ [
1247
+ l.value.table.useDefaultTimeFormat ? de.value[i].text ?? "-" : nl.value(i + m.value.start, l.value.table.timeFormat)
1248
+ ].concat(we.value.map(
1249
+ (L) => re(
1250
+ L.type === "line" ? l.value.line.labels.formatter : L.type === "bar" ? l.value.bar.labels.formatter : l.value.plot.labels.formatter,
1251
+ L.absoluteValues[i] ?? 0,
1252
+ Ve({
1253
+ p: L.prefix || l.value.chart.labels.prefix,
1254
+ v: L.absoluteValues[i] ?? 0,
1255
+ s: L.suffix || l.value.chart.labels.suffix,
1256
+ r: l.value.table.rounding
1257
+ })
1258
+ )
1259
+ )).concat(a ? (o ?? 0).toFixed(l.value.table.rounding) : [])
1260
+ );
1261
+ }
1262
+ const s = {
1263
+ th: {
1264
+ backgroundColor: l.value.table.th.backgroundColor,
1265
+ color: l.value.table.th.color,
1266
+ outline: l.value.table.th.outline
1267
+ },
1268
+ td: {
1269
+ backgroundColor: l.value.table.td.backgroundColor,
1270
+ color: l.value.table.td.color,
1271
+ outline: l.value.table.td.outline
1272
+ },
1273
+ breakpoint: l.value.table.responsiveBreakpoint
1274
+ }, t = [l.value.table.columnNames.period].concat(we.value.map((i) => i.name)).concat(l.value.table.columnNames.total);
1275
+ return { head: r, body: e, config: s, colNames: t };
1276
+ });
1277
+ function xa(a = null) {
1278
+ const r = [[l.value.chart.title.text], [l.value.chart.title.subtitle.text], [""]], e = ["", ...gt.value.head.map((o) => o.label)], s = gt.value.body, t = r.concat([e]).concat(s), i = br(t);
1279
+ a ? a(i) : xr({ csvContent: i, title: l.value.chart.title.text || "vue-ui-xy" });
1280
+ }
1281
+ function mt(a, r = null) {
1282
+ Ma.value = a;
1283
+ const e = we.value.map((s) => ({
1284
+ name: s.name,
1285
+ value: [null, void 0, NaN].includes(s.absoluteValues[r]) ? null : s.absoluteValues[r],
1286
+ color: s.color,
1287
+ type: s.type
1288
+ }));
1289
+ a ? (_.value = r, l.value.events.datapointEnter && l.value.events.datapointEnter({ datapoint: e, seriesIndex: r + m.value.start })) : (_.value = null, l.value.events.datapointLeave && l.value.events.datapointLeave({ datapoint: e, seriesIndex: r + m.value.start }));
1290
+ }
1291
+ function bt() {
1292
+ f.value.showTable = !f.value.showTable;
1293
+ }
1294
+ function xt() {
1295
+ f.value.dataLabels.show = !f.value.dataLabels.show;
1296
+ }
1297
+ function pt() {
1298
+ f.value.showTooltip = !f.value.showTooltip;
1299
+ }
1300
+ function yt(a) {
1301
+ qe.value = a, Ta.value += 1;
1302
+ }
1303
+ function kt() {
1304
+ if (!l.value.responsiveProportionalSizing) {
1305
+ y.value.dataLabels = l.value.chart.grid.labels.fontSize, y.value.yAxis = l.value.chart.grid.labels.axis.fontSize, y.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, y.value.plotLabels = l.value.chart.labels.fontSize, $e.value.plot = l.value.plot.radius, $e.value.line = l.value.line.radius;
1306
+ return;
1307
+ }
1308
+ y.value.dataLabels = dl({
1309
+ relator: ve.value,
1310
+ adjuster: 400,
1311
+ source: l.value.chart.grid.labels.fontSize,
1312
+ threshold: 10,
1313
+ fallback: 10
1314
+ }), y.value.yAxis = dl({
1315
+ relator: ee.value,
1316
+ adjuster: 1e3,
1317
+ source: l.value.chart.grid.labels.axis.fontSize,
1318
+ threshold: 10,
1319
+ fallback: 10
1320
+ }), y.value.xAxis = dl({
1321
+ relator: ee.value,
1322
+ adjuster: 1e3,
1323
+ source: l.value.chart.grid.labels.xAxisLabels.fontSize,
1324
+ threshold: 10,
1325
+ fallback: 10
1326
+ }), y.value.plotLabels = dl({
1327
+ relator: ee.value,
1328
+ adjuster: 800,
1329
+ source: l.value.chart.labels.fontSize,
1330
+ threshold: 10,
1331
+ fallback: 10
1332
+ }), $e.value.plot = dl({
1333
+ relator: ee.value,
1334
+ adjuster: 800,
1335
+ source: l.value.plot.radius,
1336
+ threshold: 1,
1337
+ fallback: 1
1338
+ }), $e.value.line = dl({
1339
+ relator: ee.value,
1340
+ adjuster: 800,
1341
+ source: l.value.line.radius,
1342
+ threshold: 1,
1343
+ fallback: 1
1344
+ });
1345
+ }
1346
+ function pa() {
1347
+ Rt(g.dataset) ? (wa({
1348
+ componentName: "VueUiXy",
1349
+ type: "dataset",
1350
+ debug: yl.value
1351
+ }), Ol.value = !0) : g.dataset.forEach((r, e) => {
1352
+ [null, void 0].includes(r.name) && (wa({
1353
+ componentName: "VueUiXy",
1354
+ type: "datasetSerieAttribute",
1355
+ property: "name (string)",
1356
+ index: e,
1357
+ debug: yl.value
1358
+ }), Ol.value = !0);
1359
+ }), yl.value && g.dataset.forEach((r) => {
1360
+ r.series.forEach((e, s) => {
1361
+ Jl(e) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
1362
+ -----> The serie '${r.name}' contains the value '${e}' at index ${s}.
1363
+ '${e}' was converted to null to allow the chart to display.`);
1364
+ });
1365
+ }), Rt(g.dataset) || (Ol.value = l.value.loading), Fa.value = l.value.chart.userOptions.showOnChartHover, ia.value = l.value.chart.userOptions.keepStateOnChartLeave, Il.value = !l.value.chart.userOptions.showOnChartHover, va();
1366
+ const a = 12;
1367
+ if (l.value.responsive) {
1368
+ const e = Ie.value.parentNode;
1369
+ Ee.value && (Ee.value.unobserve(ra.value), Ee.value.disconnect());
1370
+ const { height: s, width: t } = e.getBoundingClientRect();
1371
+ let i = null, o = 0;
1372
+ l.value.chart.title.show && fl.value && (i = fl.value, o = i.getBoundingClientRect().height);
1373
+ let L = null, M = 0;
1374
+ l.value.chart.zoom.show && Oe.value > 6 && ca.value && Fe.value && Fe.value.$el && (L = Fe.value.$el, M = L.getBoundingClientRect().height);
1375
+ let F = null, S = 0;
1376
+ l.value.chart.legend.show && rl.value && (F = rl.value, S = F.getBoundingClientRect().height);
1377
+ let T = 0;
1378
+ gl.value && (T = gl.value.getBoundingClientRect().height);
1379
+ let W = 0;
1380
+ ml.value && (W = ml.value.getBoundingClientRect().height), ve.value = s - o - S - M - T - W - a, ee.value = t, zl.value = `0 0 ${ee.value < 0 ? 10 : ee.value} ${ve.value < 0 ? 10 : ve.value}`, kt();
1381
+ const k = new ResizeObserver((V) => {
1382
+ for (const z of V)
1383
+ l.value.chart.title.show && fl.value ? o = fl.value.getBoundingClientRect().height : o = 0, Fe.value && Fe.value.$el ? M = Fe.value.$el.getBoundingClientRect().height : M = 0, rl.value ? S = rl.value.getBoundingClientRect().height : S = 0, gl.value ? T = gl.value.getBoundingClientRect().height : T = 0, ml.value ? W = ml.value.getBoundingClientRect().height : W = 0, requestAnimationFrame(() => {
1384
+ ve.value = z.contentRect.height - o - S - M - T - W - a, ee.value = z.contentBoxSize[0].inlineSize, zl.value = `0 0 ${ee.value < 0 ? 10 : ee.value} ${ve.value < 0 ? 10 : ve.value}`, kt();
1385
+ });
1386
+ });
1387
+ Ee.value = k, ra.value = e, k.observe(e);
1388
+ } else
1389
+ ve.value = l.value.chart.height, ee.value = l.value.chart.width, y.value.dataLabels = l.value.chart.grid.labels.fontSize, y.value.yAxis = l.value.chart.grid.labels.axis.fontSize, y.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, y.value.plotLabels = l.value.chart.labels.fontSize, $e.value.plot = l.value.plot.radius, $e.value.line = l.value.line.radius, zl.value = `0 0 ${ee.value} ${ve.value}`;
1390
+ }
1391
+ function _t(a) {
1392
+ co.value = {
1393
+ x: a.clientX,
1394
+ y: a.clientY
1395
+ };
1396
+ }
1397
+ Zl(() => {
1398
+ pa(), Pl(), document.addEventListener("mousemove", _t, { passive: !0 }), document.addEventListener("scroll", Xa, { passive: !0 });
1399
+ }), ka(() => {
1400
+ document.removeEventListener("scroll", Xa, { passive: !0 }), document.removeEventListener("mousemove", _t, { passive: !0 }), Ee.value && (Ee.value.unobserve(ra.value), Ee.value.disconnect(), Ee.value = null);
1401
+ }), Lr({
1402
+ timeLabelsEls: sl,
1403
+ timeLabels: de,
1404
+ slicer: m,
1405
+ configRef: l,
1406
+ rotationPath: ["chart", "grid", "labels", "xAxisLabels", "rotation"],
1407
+ autoRotatePath: ["chart", "grid", "labels", "xAxisLabels", "autoRotate", "enable"],
1408
+ isAutoSize: mo,
1409
+ height: ve,
1410
+ width: ee,
1411
+ rotation: l.value.chart.grid.labels.xAxisLabels.autoRotate.angle
1412
+ });
1413
+ const ql = x(!1), wt = x(null), St = x(200), Yo = b(
1414
+ () => _.value ?? B.value ?? 0
1415
+ );
1416
+ function Wo() {
1417
+ const a = Math.ceil(St.value || 200);
1418
+ return Math.min(Math.max(a, 1), 200);
1419
+ }
1420
+ function Xo() {
1421
+ const a = Wo(), r = 200, e = Math.max(1, $.value), s = c.value.width / e, i = c.value?.left + Yo.value * s + s / 2 - a / 2 - (r - a) / 2, o = c.value?.left - (r - a) / 2, L = c.value?.right - (r + a) / 2, M = Math.max(o, Math.min(i, L));
1422
+ return N(M);
1423
+ }
1424
+ Zl(() => {
1425
+ let a = null, r = null;
1426
+ const e = (i) => {
1427
+ cancelAnimationFrame(r), r = requestAnimationFrame(() => {
1428
+ St.value = Math.min(Math.max(Math.ceil(i || 0), 1), 200);
1429
+ });
1430
+ }, s = new ResizeObserver((i) => {
1431
+ let o = i.find((L) => L.target === a) || i[0];
1432
+ o && e(o.contentRect.width || 200);
1433
+ }), t = Lt((i) => {
1434
+ const o = wt.value;
1435
+ a && a !== o && (s.unobserve(a), a = null), o && o !== a && (Mt(() => {
1436
+ o.offsetParent !== null && e(o.offsetWidth || o.getBoundingClientRect().width || 200);
1437
+ }), s.observe(o), a = o), i(() => {
1438
+ a && (s.unobserve(a), a = null);
1439
+ });
1440
+ });
1441
+ ka(() => {
1442
+ try {
1443
+ a && s.unobserve(a), s.disconnect(), t();
1444
+ } catch {
1445
+ }
1446
+ });
1447
+ });
1448
+ const Go = b(() => {
1449
+ if ([null, void 0].includes(_.value) && [null, void 0].includes(B.value)) return "";
1450
+ const a = (_.value != null ? _.value : 0) || (B.value != null ? B.value : 0), r = l.value.chart.timeTag.customFormat;
1451
+ if (ql.value = !1, Pt(r))
1452
+ try {
1453
+ const e = r({
1454
+ absoluteIndex: a + m.value.start,
1455
+ seriesIndex: a,
1456
+ datapoint: je.value,
1457
+ bars: Me.value,
1458
+ lines: te.value,
1459
+ plots: xe.value,
1460
+ config: l.value
1461
+ });
1462
+ if (typeof e == "string")
1463
+ return ql.value = !0, e;
1464
+ } catch {
1465
+ console.warn("Custom format cannot be applied on timeTag."), ql.value = !1;
1466
+ }
1467
+ if (!ql.value)
1468
+ return [null, void 0].includes(de.value[a]) ? "" : l.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !l.value.chart.timeTag.useDefaultFormat ? nl.value(a + m.value.start, l.value.chart.timeTag.timeFormat) : de.value[a].text;
1469
+ });
1470
+ Ll(() => g.dataset, (a) => {
1471
+ Array.isArray(a) && a.length > 0 && (Ol.value = !1), Oe.value = Math.max(...ge.value.map((r) => Re(r.series).length)), m.value = {
1472
+ start: 0,
1473
+ end: Oe.value
1474
+ }, no.value += 1, sa.value += 1, ul();
1475
+ }, { deep: !0 }), Ll(() => g.config, (a) => {
1476
+ ie.value || (l.value = na()), pa(), Ia.value += 1, za.value += 1, va(), ul();
1477
+ }, { deep: !0 });
1478
+ const ya = x(!1);
1479
+ function Ct() {
1480
+ const a = Ie.value?.parentNode;
1481
+ if (!a) {
1482
+ ya.value = !1;
1483
+ return;
1484
+ }
1485
+ const r = a.getBoundingClientRect();
1486
+ ya.value = r.width > 2 && r.height > 2;
1487
+ }
1488
+ Zl(() => {
1489
+ Ct();
1490
+ const a = new ResizeObserver(() => {
1491
+ Ct(), ya.value && (pa(), ul(), Pl());
1492
+ });
1493
+ Ie.value?.parentNode && a.observe(Ie.value.parentNode);
1494
+ }), Ll(l, () => {
1495
+ va();
1496
+ }, { immediate: !0 });
1497
+ const Cl = b(() => {
1498
+ const a = l.value.table.useDialog && !l.value.showTable, r = f.value.showTable;
1499
+ return {
1500
+ component: a ? oo : Ir,
1501
+ title: `${l.value.chart.title.text}${l.value.chart.title.subtitle.text ? `: ${l.value.chart.title.subtitle.text}` : ""}`,
1502
+ props: a ? {
1503
+ backgroundColor: l.value.table.th.backgroundColor,
1504
+ color: l.value.table.th.color,
1505
+ headerColor: l.value.table.th.color,
1506
+ headerBg: l.value.table.th.backgroundColor,
1507
+ isFullscreen: qe.value,
1508
+ fullscreenParent: Ie.value,
1509
+ forcedWidth: Math.min(800, window.innerWidth * 0.8)
1510
+ } : {
1511
+ hideDetails: !0,
1512
+ config: {
1513
+ open: r,
1514
+ maxHeight: 1e4,
1515
+ body: {
1516
+ backgroundColor: l.value.chart.backgroundColor,
1517
+ color: l.value.chart.color
1518
+ },
1519
+ head: {
1520
+ backgroundColor: l.value.chart.backgroundColor,
1521
+ color: l.value.chart.color
1522
+ }
1523
+ }
1524
+ }
1525
+ };
1526
+ });
1527
+ Ll(() => f.value.showTable, (a) => {
1528
+ l.value.showTable || (a && l.value.table.useDialog && il.value ? il.value.open() : il.value && il.value.close && il.value.close());
1529
+ });
1530
+ function $t() {
1531
+ f.value.showTable = !1, oa.value && oa.value.setTableIconState(!1);
1532
+ }
1533
+ const Uo = b(() => me.value.map((a) => ({
1534
+ shape: a.type === "bar" ? "square" : a.shape ?? "circle",
1535
+ color: a.color,
1536
+ name: a.name
1537
+ }))), qo = b(() => l.value.chart.backgroundColor), Zo = b(() => l.value.chart.legend), Jo = b(() => l.value.chart.title), { exportSvg: Ko, getSvg: Qo } = $r({
1538
+ svg: se,
1539
+ title: Jo,
1540
+ legend: Zo,
1541
+ legendItems: Uo,
1542
+ backgroundColor: qo
1543
+ });
1544
+ async function At({ isCb: a }) {
1545
+ if (a) {
1546
+ const { blob: r, url: e, text: s, dataUrl: t } = await Qo();
1547
+ l.value.chart.userOptions.callbacks.svg({ blob: r, url: e, text: s, dataUrl: t });
1548
+ } else
1549
+ Ko();
1550
+ }
1551
+ return Jt({
1552
+ getData: To,
1553
+ getImage: zo,
1554
+ generatePdf: Ra,
1555
+ generateImage: Ha,
1556
+ generateSvg: At,
1557
+ generateCsv: xa,
1558
+ hideSeries: Fo,
1559
+ showSeries: Io,
1560
+ toggleStack: Za,
1561
+ toggleTable: bt,
1562
+ toggleLabels: xt,
1563
+ toggleTooltip: pt,
1564
+ toggleAnnotator: fa,
1565
+ toggleFullscreen: yt
1566
+ }), (a, r) => (u(), n("div", {
1567
+ id: `vue-ui-xy_${H.value}`,
1568
+ class: ll(`vue-data-ui-component vue-ui-xy ${qe.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${l.value.useCssAnimation ? "" : "vue-ui-dna"}`),
1569
+ ref_key: "chart",
1570
+ ref: Ie,
1571
+ style: C(`background:${l.value.chart.backgroundColor}; color:${l.value.chart.color};width:100%;font-family:${l.value.chart.fontFamily};${l.value.responsive ? "height: 100%" : ""}`),
1572
+ onMouseenter: r[6] || (r[6] = () => Ua(!0)),
1573
+ onMouseleave: r[7] || (r[7] = () => Ua(!1)),
1574
+ onClick: ot
1575
+ }, [
1576
+ l.value.chart.userOptions.buttons.annotator && se.value ? (u(), Te(v(to), {
1577
+ key: 0,
1578
+ svgRef: se.value,
1579
+ backgroundColor: l.value.chart.backgroundColor,
1580
+ color: l.value.chart.color,
1581
+ active: xl.value,
1582
+ onClose: fa
1583
+ }, {
1584
+ "annotator-action-close": G(() => [
1585
+ P(a.$slots, "annotator-action-close", {}, void 0, !0)
1586
+ ]),
1587
+ "annotator-action-color": G(({ color: e }) => [
1588
+ P(a.$slots, "annotator-action-color", ke(_e({ color: e })), void 0, !0)
1589
+ ]),
1590
+ "annotator-action-draw": G(({ mode: e }) => [
1591
+ P(a.$slots, "annotator-action-draw", ke(_e({ mode: e })), void 0, !0)
1592
+ ]),
1593
+ "annotator-action-undo": G(({ disabled: e }) => [
1594
+ P(a.$slots, "annotator-action-undo", ke(_e({ disabled: e })), void 0, !0)
1595
+ ]),
1596
+ "annotator-action-redo": G(({ disabled: e }) => [
1597
+ P(a.$slots, "annotator-action-redo", ke(_e({ disabled: e })), void 0, !0)
1598
+ ]),
1599
+ "annotator-action-delete": G(({ disabled: e }) => [
1600
+ P(a.$slots, "annotator-action-delete", ke(_e({ disabled: e })), void 0, !0)
1601
+ ]),
1602
+ _: 3
1603
+ }, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
1604
+ Bo.value ? (u(), n("div", {
1605
+ key: 1,
1606
+ ref_key: "noTitle",
1607
+ ref: ml,
1608
+ class: "vue-data-ui-no-title-space",
1609
+ style: "height:36px; width: 100%; background:transparent"
1610
+ }, null, 512)) : h("", !0),
1611
+ l.value.chart.title.show ? (u(), n("div", {
1612
+ key: 2,
1613
+ ref_key: "chartTitle",
1614
+ ref: fl,
1615
+ class: "vue-ui-xy-title",
1616
+ style: C(`font-family:${l.value.chart.fontFamily}`)
1617
+ }, [
1618
+ (u(), Te(Tr, {
1619
+ key: `title_${Ia.value}`,
1620
+ config: {
1621
+ title: {
1622
+ cy: "xy-div-title",
1623
+ ...l.value.chart.title
1624
+ },
1625
+ subtitle: {
1626
+ cy: "xy-div-subtitle",
1627
+ ...l.value.chart.title.subtitle
1628
+ }
1629
+ }
1630
+ }, null, 8, ["config"]))
1631
+ ], 4)) : h("", !0),
1632
+ p("div", {
1633
+ id: `legend-top-${H.value}`
1634
+ }, null, 8, Br),
1635
+ l.value.chart.userOptions.show && (ia.value || Il.value) ? (u(), Te(v(eo), {
1636
+ ref_key: "userOptionsRef",
1637
+ ref: oa,
1638
+ key: `user_options_${Ta.value}`,
1639
+ backgroundColor: l.value.chart.backgroundColor,
1640
+ color: l.value.chart.color,
1641
+ isPrinting: v(da),
1642
+ isImaging: v(Ea),
1643
+ uid: H.value,
1644
+ hasTooltip: l.value.chart.userOptions.buttons.tooltip && l.value.chart.tooltip.show,
1645
+ hasPdf: l.value.chart.userOptions.buttons.pdf,
1646
+ hasXls: l.value.chart.userOptions.buttons.csv,
1647
+ hasImg: l.value.chart.userOptions.buttons.img,
1648
+ hasSvg: l.value.chart.userOptions.buttons.svg,
1649
+ hasLabel: l.value.chart.userOptions.buttons.labels,
1650
+ hasTable: l.value.chart.userOptions.buttons.table,
1651
+ hasStack: jl.dataset.length > 1 && l.value.chart.userOptions.buttons.stack,
1652
+ hasFullscreen: l.value.chart.userOptions.buttons.fullscreen,
1653
+ isStacked: f.value.isStacked,
1654
+ isFullscreen: qe.value,
1655
+ chartElement: a.$refs.chart,
1656
+ position: l.value.chart.userOptions.position,
1657
+ isTooltip: f.value.showTooltip,
1658
+ titles: { ...l.value.chart.userOptions.buttonTitles },
1659
+ hasAnnotator: l.value.chart.userOptions.buttons.annotator,
1660
+ isAnnotation: xl.value,
1661
+ callbacks: l.value.chart.userOptions.callbacks,
1662
+ tableDialog: l.value.table.useDialog,
1663
+ printScale: l.value.chart.userOptions.print.scale,
1664
+ onToggleFullscreen: yt,
1665
+ onGeneratePdf: v(Ra),
1666
+ onGenerateCsv: xa,
1667
+ onGenerateImage: v(Ha),
1668
+ onGenerateSvg: At,
1669
+ onToggleTable: bt,
1670
+ onToggleLabels: xt,
1671
+ onToggleStack: Za,
1672
+ onToggleTooltip: pt,
1673
+ onToggleAnnotator: fa,
1674
+ style: C({
1675
+ visibility: ia.value ? Il.value ? "visible" : "hidden" : "visible"
1676
+ })
1677
+ }, Tt({ _: 2 }, [
1678
+ a.$slots.menuIcon ? {
1679
+ name: "menuIcon",
1680
+ fn: G(({ isOpen: e, color: s }) => [
1681
+ P(a.$slots, "menuIcon", ke(_e({ isOpen: e, color: s })), void 0, !0)
1682
+ ]),
1683
+ key: "0"
1684
+ } : void 0,
1685
+ a.$slots.optionTooltip ? {
1686
+ name: "optionTooltip",
1687
+ fn: G(() => [
1688
+ P(a.$slots, "optionTooltip", {}, void 0, !0)
1689
+ ]),
1690
+ key: "1"
1691
+ } : void 0,
1692
+ a.$slots.optionPdf ? {
1693
+ name: "optionPdf",
1694
+ fn: G(() => [
1695
+ P(a.$slots, "optionPdf", {}, void 0, !0)
1696
+ ]),
1697
+ key: "2"
1698
+ } : void 0,
1699
+ a.$slots.optionCsv ? {
1700
+ name: "optionCsv",
1701
+ fn: G(() => [
1702
+ P(a.$slots, "optionCsv", {}, void 0, !0)
1703
+ ]),
1704
+ key: "3"
1705
+ } : void 0,
1706
+ a.$slots.optionImg ? {
1707
+ name: "optionImg",
1708
+ fn: G(() => [
1709
+ P(a.$slots, "optionImg", {}, void 0, !0)
1710
+ ]),
1711
+ key: "4"
1712
+ } : void 0,
1713
+ a.$slots.optionSvg ? {
1714
+ name: "optionSvg",
1715
+ fn: G(() => [
1716
+ P(a.$slots, "optionSvg", {}, void 0, !0)
1717
+ ]),
1718
+ key: "5"
1719
+ } : void 0,
1720
+ a.$slots.optionTable ? {
1721
+ name: "optionTable",
1722
+ fn: G(() => [
1723
+ P(a.$slots, "optionTable", {}, void 0, !0)
1724
+ ]),
1725
+ key: "6"
1726
+ } : void 0,
1727
+ a.$slots.optionLabels ? {
1728
+ name: "optionLabels",
1729
+ fn: G(() => [
1730
+ P(a.$slots, "optionLabels", {}, void 0, !0)
1731
+ ]),
1732
+ key: "7"
1733
+ } : void 0,
1734
+ a.$slots.optionStack ? {
1735
+ name: "optionStack",
1736
+ fn: G(({ isStack: e }) => [
1737
+ P(a.$slots, "optionStack", ke(_e({ isStack: e })), void 0, !0)
1738
+ ]),
1739
+ key: "8"
1740
+ } : void 0,
1741
+ a.$slots.optionFullscreen ? {
1742
+ name: "optionFullscreen",
1743
+ fn: G(({ toggleFullscreen: e, isFullscreen: s }) => [
1744
+ P(a.$slots, "optionFullscreen", ke(_e({ toggleFullscreen: e, isFullscreen: s })), void 0, !0)
1745
+ ]),
1746
+ key: "9"
1747
+ } : void 0,
1748
+ a.$slots.optionAnnotator ? {
1749
+ name: "optionAnnotator",
1750
+ fn: G(({ toggleAnnotator: e, isAnnotator: s }) => [
1751
+ P(a.$slots, "optionAnnotator", ke(_e({ toggleAnnotator: e, isAnnotator: s })), void 0, !0)
1752
+ ]),
1753
+ key: "10"
1754
+ } : void 0
1755
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "tableDialog", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
1756
+ (u(), n("svg", {
1757
+ ref_key: "svgRef",
1758
+ ref: se,
1759
+ xmlns: "http://www.w3.org/2000/svg",
1760
+ class: ll([{ "vue-data-ui-fullscreen--on": qe.value, "vue-data-ui-fulscreen--off": !qe.value }, "vue-ui-xy-svg vue-data-ui-svg"]),
1761
+ width: "100%",
1762
+ viewBox: zl.value,
1763
+ style: C({
1764
+ background: "transparent",
1765
+ color: l.value.chart.color,
1766
+ fontFamily: l.value.chart.fontFamily
1767
+ }),
1768
+ "aria-label": Oo.value,
1769
+ role: "img",
1770
+ "aria-live": "polite",
1771
+ preserveAspectRatio: "xMidYMid",
1772
+ onMousemove: Mo,
1773
+ onMouseleave: Hl,
1774
+ onClick: ot
1775
+ }, [
1776
+ p("g", {
1777
+ ref_key: "G",
1778
+ ref: uo,
1779
+ class: "vue-data-ui-g"
1780
+ }, [
1781
+ vl(v(ao)),
1782
+ a.$slots["chart-background"] ? (u(), n("foreignObject", {
1783
+ key: 0,
1784
+ x: c.value?.left + U.value < 0 ? 0 : c.value?.left + U.value,
1785
+ y: c.value?.top,
1786
+ width: c.value.width - (l.value.chart.grid.position === "middle" ? 0 : c.value.width / $.value) < 0 ? 0 : c.value.width - (l.value.chart.grid.position === "middle" ? 0 : c.value.width / $.value),
1787
+ height: c.value.height < 0 ? 0 : c.value.height,
1788
+ style: {
1789
+ pointerEvents: "none"
1790
+ }
1791
+ }, [
1792
+ P(a.$slots, "chart-background", {}, void 0, !0)
1793
+ ], 8, Vr)) : h("", !0),
1794
+ $.value > 0 ? (u(), n("g", Dr, [
1795
+ p("g", Pr, [
1796
+ l.value.chart.grid.labels.xAxis.showBaseline ? (u(), n("line", {
1797
+ key: 0,
1798
+ stroke: l.value.chart.grid.stroke,
1799
+ "stroke-width": "1",
1800
+ x1: c.value?.left + U.value,
1801
+ x2: c.value?.right - U.value,
1802
+ y1: v(Y)(c.value?.bottom),
1803
+ y2: v(Y)(c.value?.bottom),
1804
+ "stroke-linecap": "round",
1805
+ style: { animation: "none !important" }
1806
+ }, null, 8, Er)) : h("", !0),
1807
+ f.value.useIndividualScale ? l.value.chart.grid.showHorizontalLines ? (u(!0), n(d, { key: 2 }, w(Sl.value, (e) => (u(), n("g", null, [
1808
+ e.id === I.value && e.yLabels.length ? (u(!0), n(d, { key: 0 }, w(e.yLabels, (s) => (u(), n("line", {
1809
+ x1: c.value?.left + U.value,
1810
+ x2: c.value?.right - U.value,
1811
+ y1: v(Y)(s.y),
1812
+ y2: v(Y)(s.y),
1813
+ stroke: e.color,
1814
+ "stroke-width": 0.5,
1815
+ "stroke-linecap": "round",
1816
+ style: { animation: "none !important" }
1817
+ }, null, 8, Wr))), 256)) : e.yLabels.length ? (u(!0), n(d, { key: 1 }, w(e.yLabels, (s) => (u(), n("line", {
1818
+ x1: c.value?.left + U.value,
1819
+ x2: c.value?.right - U.value,
1820
+ y1: v(Y)(s.y),
1821
+ y2: v(Y)(s.y),
1822
+ stroke: l.value.chart.grid.stroke,
1823
+ "stroke-width": 0.5,
1824
+ "stroke-linecap": "round",
1825
+ style: { animation: "none !important" }
1826
+ }, null, 8, Xr))), 256)) : h("", !0)
1827
+ ]))), 256)) : h("", !0) : (u(), n(d, { key: 1 }, [
1828
+ l.value.chart.grid.labels.yAxis.showBaseline ? (u(), n("line", {
1829
+ key: 0,
1830
+ stroke: l.value.chart.grid.stroke,
1831
+ "stroke-width": "1",
1832
+ x1: c.value?.left + U.value,
1833
+ x2: c.value?.left + U.value,
1834
+ y1: v(Y)(c.value?.top),
1835
+ y2: v(Y)(c.value?.bottom),
1836
+ "stroke-linecap": "round",
1837
+ style: { animation: "none !important" }
1838
+ }, null, 8, Rr)) : h("", !0),
1839
+ l.value.chart.grid.showHorizontalLines ? (u(), n("g", Hr, [
1840
+ (u(!0), n(d, null, w(nt.value, (e) => (u(), n("line", {
1841
+ x1: c.value?.left + U.value,
1842
+ x2: c.value?.right,
1843
+ y1: v(Y)(e.y),
1844
+ y2: v(Y)(e.y),
1845
+ stroke: l.value.chart.grid.stroke,
1846
+ "stroke-width": 0.5,
1847
+ "stroke-linecap": "round",
1848
+ style: { animation: "none !important" }
1849
+ }, null, 8, Yr))), 256))
1850
+ ])) : h("", !0)
1851
+ ], 64)),
1852
+ l.value.chart.grid.showVerticalLines ? (u(), n("g", Gr, [
1853
+ p("path", {
1854
+ d: yo.value,
1855
+ "stroke-width": 0.5,
1856
+ stroke: l.value.chart.grid.stroke,
1857
+ "stroke-linecap": "round",
1858
+ style: { animation: "none !important" }
1859
+ }, null, 8, Ur)
1860
+ ])) : h("", !0),
1861
+ l.value.chart.grid.labels.xAxisLabels.show ? (u(), n("g", qr, [
1862
+ p("path", {
1863
+ d: ko.value,
1864
+ stroke: l.value.chart.grid.stroke,
1865
+ "stroke-width": 1,
1866
+ "stroke-linecap": "round",
1867
+ style: { animation: "none !important" }
1868
+ }, null, 8, Zr)
1869
+ ])) : h("", !0)
1870
+ ]),
1871
+ (u(!0), n(d, null, w(Me.value, (e, s) => (u(), n("defs", {
1872
+ key: `def_rect_${s}`
1873
+ }, [
1874
+ a.$slots["bar-gradient"] ? P(a.$slots, "bar-gradient", al({
1875
+ key: 0,
1876
+ ref_for: !0
1877
+ }, { series: e, positiveId: `rectGradient_pos_${s}_${H.value}`, negativeId: `rectGradient_neg_${s}_${H.value}` }), void 0, !0) : (u(), n(d, { key: 1 }, [
1878
+ p("linearGradient", {
1879
+ id: `rectGradient_pos_${s}_${H.value}`,
1880
+ x2: "0%",
1881
+ y2: "100%"
1882
+ }, [
1883
+ p("stop", {
1884
+ offset: "0%",
1885
+ "stop-color": e.color
1886
+ }, null, 8, Kr),
1887
+ p("stop", {
1888
+ offset: "62%",
1889
+ "stop-color": `${v(ol)(e.color, 0.02)}`
1890
+ }, null, 8, Qr),
1891
+ p("stop", {
1892
+ offset: "100%",
1893
+ "stop-color": `${v(ol)(e.color, 0.05)}`
1894
+ }, null, 8, jr)
1895
+ ], 8, Jr),
1896
+ p("linearGradient", {
1897
+ id: `rectGradient_neg_${s}_${H.value}`,
1898
+ x2: "0%",
1899
+ y2: "100%"
1900
+ }, [
1901
+ p("stop", {
1902
+ offset: "0%",
1903
+ "stop-color": `${v(ol)(e.color, 0.05)}`
1904
+ }, null, 8, ls),
1905
+ p("stop", {
1906
+ offset: "38%",
1907
+ "stop-color": `${v(ol)(e.color, 0.02)}`
1908
+ }, null, 8, as),
1909
+ p("stop", {
1910
+ offset: "100%",
1911
+ "stop-color": e.color
1912
+ }, null, 8, ts)
1913
+ ], 8, es)
1914
+ ], 64))
1915
+ ]))), 128)),
1916
+ (u(!0), n(d, null, w(xe.value, (e, s) => (u(), n("defs", {
1917
+ key: `def_plot_${s}`
1918
+ }, [
1919
+ p("radialGradient", {
1920
+ id: `plotGradient_${s}_${H.value}`,
1921
+ cx: "50%",
1922
+ cy: "50%",
1923
+ r: "50%",
1924
+ fx: "50%",
1925
+ fy: "50%"
1926
+ }, [
1927
+ p("stop", {
1928
+ offset: "0%",
1929
+ "stop-color": `${v(ol)(e.color, 0.05)}`
1930
+ }, null, 8, rs),
1931
+ p("stop", {
1932
+ offset: "100%",
1933
+ "stop-color": e.color
1934
+ }, null, 8, ss)
1935
+ ], 8, os)
1936
+ ]))), 128)),
1937
+ (u(!0), n(d, null, w(te.value, (e, s) => (u(), n("defs", {
1938
+ key: `def_line_${e.id}`
1939
+ }, [
1940
+ p("radialGradient", {
1941
+ id: `lineGradient_${s}_${H.value}`,
1942
+ cx: "50%",
1943
+ cy: "50%",
1944
+ r: "50%",
1945
+ fx: "50%",
1946
+ fy: "50%"
1947
+ }, [
1948
+ p("stop", {
1949
+ offset: "0%",
1950
+ "stop-color": `${v(ol)(e.color, 0.05)}`
1951
+ }, null, 8, us),
1952
+ p("stop", {
1953
+ offset: "100%",
1954
+ "stop-color": e.color
1955
+ }, null, 8, ns)
1956
+ ], 8, is),
1957
+ a.$slots["area-gradient"] ? P(a.$slots, "area-gradient", al({
1958
+ key: 0,
1959
+ ref_for: !0
1960
+ }, { series: e, id: `areaGradient_${s}_${H.value}` }), void 0, !0) : (u(), n("linearGradient", {
1961
+ key: 1,
1962
+ id: `areaGradient_${s}_${H.value}`,
1963
+ x1: "0%",
1964
+ x2: "100%",
1965
+ y1: "0%",
1966
+ y2: "0%"
1967
+ }, [
1968
+ p("stop", {
1969
+ offset: "0%",
1970
+ "stop-color": `${v(ze)(v(ol)(e.color, 0.03), l.value.line.area.opacity)}`
1971
+ }, null, 8, vs),
1972
+ p("stop", {
1973
+ offset: "100%",
1974
+ "stop-color": `${v(ze)(e.color, l.value.line.area.opacity)}`
1975
+ }, null, 8, ds)
1976
+ ], 8, cs))
1977
+ ]))), 128)),
1978
+ (u(!0), n(d, null, w(No.value, (e) => (u(), n("g", null, [
1979
+ e.show ? (u(), n(d, { key: 0 }, [
1980
+ (u(!0), n(d, null, w(e.span, (s, t) => (u(), n("g", null, [
1981
+ p("rect", {
1982
+ style: C({
1983
+ transition: "none",
1984
+ opacity: e.from + t >= m.value.start && e.from + t <= m.value.end - 1 ? 1 : 0
1985
+ }),
1986
+ x: c.value?.left + c.value.width / $.value * (e.from + t - m.value.start),
1987
+ y: c.value?.top,
1988
+ height: c.value.height < 0 ? 10 : c.value.height,
1989
+ width: c.value.width / $.value < 0 ? 1e-5 : c.value.width / $.value,
1990
+ fill: v(ze)(e.color, e.opacity)
1991
+ }, null, 12, hs)
1992
+ ]))), 256)),
1993
+ (u(!0), n(d, null, w(e.span, (s, t) => (u(), n("g", null, [
1994
+ e.caption.text && t === 0 ? (u(), n("foreignObject", {
1995
+ key: 0,
1996
+ x: c.value?.left + c.value.width / $.value * (e.from + t - m.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - c.value.width / $.value * e.span / 2),
1997
+ y: c.value?.top + e.caption.offsetY,
1998
+ style: C({
1999
+ overflow: "visible",
2000
+ opacity: e.to >= m.value.start && e.from < m.value.end ? 1 : 0
2001
+ }),
2002
+ height: "1",
2003
+ width: e.caption.width === "auto" ? c.value.width / $.value * e.span : e.caption.width
2004
+ }, [
2005
+ p("div", {
2006
+ style: C(`padding:${e.caption.padding}px;text-align:${e.caption.textAlign};font-size:${e.caption.fontSize}px;color:${e.caption.color};font-weight:${e.caption.bold ? "bold" : "normal"}`)
2007
+ }, ae(e.caption.text), 5)
2008
+ ], 12, fs)) : h("", !0)
2009
+ ]))), 256))
2010
+ ], 64)) : h("", !0)
2011
+ ]))), 256)),
2012
+ Ga.value ? (u(), n("g", gs, [
2013
+ (u(!0), n(d, null, w($.value, (e, s) => (u(), n("g", {
2014
+ key: `tooltip_trap_highlighter_${s}`
2015
+ }, [
2016
+ p("rect", {
2017
+ x: c.value?.left + c.value.width / $.value * s,
2018
+ y: c.value?.top,
2019
+ height: c.value.height < 0 ? 10 : c.value.height,
2020
+ width: c.value.width / $.value < 0 ? 1e-5 : c.value.width / $.value,
2021
+ fill: [B.value, _.value, Ze.value].includes(s) ? v(ze)(l.value.chart.highlighter.color, l.value.chart.highlighter.opacity) : "transparent",
2022
+ style: { transition: "none !important", animation: "none !important" }
2023
+ }, null, 8, ms)
2024
+ ]))), 128))
2025
+ ])) : h("", !0),
2026
+ Me.value.length ? (u(!0), n(d, { key: 1 }, w(Me.value, (e, s) => (u(), n("g", {
2027
+ key: `serie_bar_${e.id}`,
2028
+ class: ll(`serie_bar_${s}`),
2029
+ style: C(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2030
+ }, [
2031
+ (u(!0), n(d, null, w(e.plots, (t, i) => (u(), n("g", {
2032
+ key: `bar_plot_${s}_${i}`
2033
+ }, [
2034
+ be(t.value) ? (u(), n("rect", {
2035
+ key: 0,
2036
+ x: Rl(t) + Gl.value / 2,
2037
+ y: f.value.useIndividualScale ? at(t) : lt(t),
2038
+ height: f.value.useIndividualScale ? Math.abs(et(t)) : Math.abs(ja(t)),
2039
+ width: Xl.value - Gl.value,
2040
+ rx: l.value.bar.borderRadius,
2041
+ fill: l.value.bar.useGradient ? t.value >= 0 ? `url(#rectGradient_pos_${s}_${H.value})` : `url(#rectGradient_neg_${s}_${H.value})` : e.color,
2042
+ stroke: l.value.bar.border.useSerieColor ? e.color : l.value.bar.border.stroke,
2043
+ "stroke-width": l.value.bar.border.strokeWidth,
2044
+ style: C({
2045
+ transition: v(ie) || !l.value.bar.showTransition ? void 0 : `all ${l.value.bar.transitionDurationMs}ms ease-in-out`
2046
+ })
2047
+ }, null, 12, bs)) : h("", !0),
2048
+ be(t.value) && a.$slots.pattern ? (u(), n("rect", {
2049
+ key: 1,
2050
+ x: Rl(t) - Gl.value / 2,
2051
+ y: f.value.useIndividualScale ? at(t) : lt(t),
2052
+ height: f.value.useIndividualScale ? Math.abs(et(t)) : Math.abs(ja(t)),
2053
+ width: Xl.value - Gl.value,
2054
+ rx: l.value.bar.borderRadius,
2055
+ fill: `url(#pattern_${H.value}_${e.slotAbsoluteIndex})`,
2056
+ stroke: l.value.bar.border.useSerieColor ? e.color : l.value.bar.border.stroke,
2057
+ "stroke-width": l.value.bar.border.strokeWidth,
2058
+ style: C({ transition: v(ie) || !l.value.bar.showTransition ? void 0 : `all ${l.value.bar.transitionDurationMs}ms ease-in-out` })
2059
+ }, null, 12, xs)) : h("", !0),
2060
+ t.comment && l.value.chart.comments.show ? (u(), n("foreignObject", {
2061
+ key: 2,
2062
+ style: { overflow: "visible" },
2063
+ height: "12",
2064
+ width: Xl.value / 2 + l.value.chart.comments.width,
2065
+ x: Rl(t) - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
2066
+ y: v(N)(t.y) + l.value.chart.comments.offsetY + 6
2067
+ }, [
2068
+ P(a.$slots, "plot-comment", {
2069
+ plot: { ...t, color: e.color, seriesIndex: s, datapointIndex: i }
2070
+ }, void 0, !0)
2071
+ ], 8, ps)) : h("", !0)
2072
+ ]))), 128))
2073
+ ], 6))), 128)) : h("", !0),
2074
+ !f.value.useIndividualScale && l.value.chart.grid.labels.zeroLine.show ? (u(), n("line", {
2075
+ key: 2,
2076
+ stroke: l.value.chart.grid.stroke,
2077
+ "stroke-width": "1",
2078
+ x1: c.value?.left + U.value,
2079
+ x2: c.value?.right,
2080
+ y1: v(Y)(ue.value),
2081
+ y2: v(Y)(ue.value),
2082
+ "stroke-linecap": "round",
2083
+ style: { animation: "none !important" }
2084
+ }, null, 8, ys)) : h("", !0),
2085
+ l.value.chart.highlighter.useLine && (![null, void 0].includes(_.value) || ![null, void 0].includes(B.value)) ? (u(), n("g", ks, [
2086
+ p("line", {
2087
+ x1: c.value?.left + c.value.width / $.value * ((_.value !== null ? _.value : 0) || (B.value !== null ? B.value : 0)) + c.value.width / $.value / 2,
2088
+ x2: c.value?.left + c.value.width / $.value * ((_.value !== null ? _.value : 0) || (B.value !== null ? B.value : 0)) + c.value.width / $.value / 2,
2089
+ y1: v(Y)(c.value?.top),
2090
+ y2: v(Y)(c.value?.bottom),
2091
+ stroke: l.value.chart.highlighter.color,
2092
+ "stroke-width": l.value.chart.highlighter.lineWidth,
2093
+ "stroke-dasharray": l.value.chart.highlighter.lineDasharray,
2094
+ "stroke-linecap": "round",
2095
+ style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
2096
+ }, null, 8, _s)
2097
+ ])) : h("", !0),
2098
+ l.value.chart.grid.frame.show ? (u(), n("rect", {
2099
+ key: 4,
2100
+ style: { pointerEvents: "none", transition: "none", animation: "none !important" },
2101
+ x: c.value?.left + U.value < 0 ? 0 : c.value?.left + U.value,
2102
+ y: c.value?.top,
2103
+ width: c.value.width - (l.value.chart.grid.position === "middle" ? 0 : c.value.width / $.value) < 0 ? 0 : c.value.width - (l.value.chart.grid.position === "middle" ? 0 : c.value.width / $.value),
2104
+ height: c.value.height < 0 ? 0 : c.value.height,
2105
+ fill: "transparent",
2106
+ stroke: l.value.chart.grid.frame.stroke,
2107
+ "stroke-width": l.value.chart.grid.frame.strokeWidth,
2108
+ "stroke-linecap": l.value.chart.grid.frame.strokeLinecap,
2109
+ "stroke-linejoin": l.value.chart.grid.frame.strokeLinejoin,
2110
+ "stroke-dasharray": l.value.chart.grid.frame.strokeDasharray
2111
+ }, null, 8, ws)) : h("", !0),
2112
+ l.value.chart.grid.labels.show ? (u(), n("g", {
2113
+ key: 5,
2114
+ ref_key: "scaleLabels",
2115
+ ref: ta
2116
+ }, [
2117
+ f.value.useIndividualScale ? (u(), n(d, { key: 0 }, [
2118
+ (u(!0), n(d, null, w(Sl.value, (e) => (u(), n("g", null, [
2119
+ p("line", {
2120
+ x1: e.x + U.value - c.value.individualOffsetX,
2121
+ x2: e.x + U.value - c.value.individualOffsetX,
2122
+ y1: f.value.isStacked ? v(Y)(c.value?.bottom - e.yOffset - e.individualHeight) : v(Y)(c.value?.top),
2123
+ y2: f.value.isStacked ? v(Y)(c.value?.bottom - e.yOffset) : v(Y)(c.value?.bottom),
2124
+ stroke: e.color,
2125
+ "stroke-width": l.value.chart.grid.stroke,
2126
+ "stroke-linecap": "round",
2127
+ style: C(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
2128
+ }, null, 12, Ss)
2129
+ ]))), 256)),
2130
+ (u(!0), n(d, null, w(Sl.value, (e) => (u(), n("g", {
2131
+ style: C(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
2132
+ }, [
2133
+ p("text", {
2134
+ fill: e.color,
2135
+ "font-size": y.value.dataLabels * 0.8,
2136
+ "text-anchor": "middle",
2137
+ transform: `translate(${e.x - y.value.dataLabels * 0.8 / 2 + U.value}, ${f.value.isStacked ? c.value?.bottom - e.yOffset - e.individualHeight / 2 : c.value?.top + c.value.height / 2}) rotate(-90)`
2138
+ }, ae(e.name) + " " + ae(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `-
2139
+ ${e.scaleLabel}` : ""), 9, Cs),
2140
+ (u(!0), n(d, null, w(e.yLabels, (s, t) => (u(), n(d, null, [
2141
+ l.value.chart.grid.labels.yAxis.showCrosshairs ? (u(), n("line", {
2142
+ key: 0,
2143
+ x1: e.x + 3 + U.value - l.value.chart.grid.labels.yAxis.crosshairSize - c.value.individualOffsetX,
2144
+ x2: e.x + U.value - c.value.individualOffsetX,
2145
+ y1: v(Y)(s.y),
2146
+ y2: v(Y)(s.y),
2147
+ stroke: e.color,
2148
+ "stroke-width": 1,
2149
+ "stroke-linecap": "round",
2150
+ style: { animation: "none !important" }
2151
+ }, null, 8, $s)) : h("", !0)
2152
+ ], 64))), 256)),
2153
+ (u(!0), n(d, null, w(e.yLabels, (s, t) => (u(), n("text", {
2154
+ x: e.x - 5 + U.value - c.value.individualOffsetX,
2155
+ y: v(Y)(s.y) + y.value.dataLabels / 3,
2156
+ "font-size": y.value.dataLabels,
2157
+ "text-anchor": "end",
2158
+ fill: e.color
2159
+ }, ae(v(re)(
2160
+ l.value.chart.grid.labels.yAxis.formatter,
2161
+ s.value,
2162
+ v(Ve)({
2163
+ p: s.prefix,
2164
+ v: s.value,
2165
+ s: s.suffix,
2166
+ r: l.value.chart.grid.labels.yAxis.rounding
2167
+ }),
2168
+ { datapoint: s.datapoint, seriesIndex: t }
2169
+ )), 9, As))), 256))
2170
+ ], 4))), 256))
2171
+ ], 64)) : (u(!0), n(d, { key: 1 }, w(nt.value, (e, s) => (u(), n("g", {
2172
+ key: `yLabel_${s}`
2173
+ }, [
2174
+ be(e) && e.value >= Le.value.min && e.value <= Le.value.max && l.value.chart.grid.labels.yAxis.showCrosshairs ? (u(), n("line", {
2175
+ key: 0,
2176
+ x1: c.value?.left + U.value,
2177
+ x2: c.value?.left + U.value - l.value.chart.grid.labels.yAxis.crosshairSize,
2178
+ y1: v(Y)(e.y),
2179
+ y2: v(Y)(e.y),
2180
+ stroke: l.value.chart.grid.stroke,
2181
+ "stroke-width": "1",
2182
+ "stroke-linecap": "round",
2183
+ style: { animation: "none !important" }
2184
+ }, null, 8, Ls)) : h("", !0),
2185
+ e.value >= Le.value.min && e.value <= Le.value.max ? (u(), n("text", {
2186
+ key: 1,
2187
+ x: c.value.scaleLabelX - l.value.chart.grid.labels.yAxis.crosshairSize,
2188
+ y: v(N)(e.y + y.value.dataLabels / 3),
2189
+ "font-size": y.value.dataLabels,
2190
+ "text-anchor": "end",
2191
+ fill: l.value.chart.grid.labels.color
2192
+ }, ae(be(e.value) ? v(re)(
2193
+ l.value.chart.grid.labels.yAxis.formatter,
2194
+ e.value,
2195
+ v(Ve)({
2196
+ p: e.prefix,
2197
+ v: e.value,
2198
+ s: e.suffix,
2199
+ r: l.value.chart.grid.labels.yAxis.rounding
2200
+ })
2201
+ ) : ""), 9, Ms)) : h("", !0)
2202
+ ]))), 128))
2203
+ ], 512)) : h("", !0),
2204
+ (u(!0), n(d, null, w(xe.value, (e, s) => (u(), n("g", {
2205
+ key: `serie_plot_${e.id}`,
2206
+ class: ll(`serie_plot_${s}`),
2207
+ style: C(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2208
+ }, [
2209
+ (u(!0), n(d, null, w(e.plots, (t, i) => (u(), n("g", {
2210
+ key: `circle_plot_${s}_${i}`
2211
+ }, [
2212
+ t && be(t.value) ? (u(), Te(Ql, {
2213
+ key: 0,
2214
+ shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
2215
+ color: l.value.plot.useGradient ? `url(#plotGradient_${s}_${H.value})` : l.value.plot.dot.useSerieColor ? e.color : l.value.plot.dot.fill,
2216
+ plot: { x: v(N)(t.x), y: v(N)(t.y) },
2217
+ radius: _.value !== null && _.value === i || B.value !== null && B.value === i ? ($e.value.plot || 6) * 1.5 : $e.value.plot || 6,
2218
+ stroke: l.value.plot.dot.useSerieColor ? l.value.chart.backgroundColor : e.color,
2219
+ strokeWidth: l.value.plot.dot.strokeWidth,
2220
+ transition: v(ie) || !l.value.plot.showTransition || _.value !== null && _.value === i || B.value !== null && B.value === i ? void 0 : `all ${l.value.plot.transitionDurationMs}ms ease-in-out`
2221
+ }, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : h("", !0),
2222
+ t.comment && l.value.chart.comments.show ? (u(), n("foreignObject", {
2223
+ key: 1,
2224
+ style: { overflow: "visible" },
2225
+ height: "12",
2226
+ width: l.value.chart.comments.width,
2227
+ x: t.x - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
2228
+ y: t.y + l.value.chart.comments.offsetY + 6
2229
+ }, [
2230
+ p("div", zs, [
2231
+ P(a.$slots, "plot-comment", {
2232
+ plot: { ...t, color: e.color, seriesIndex: s, datapointIndex: i }
2233
+ }, void 0, !0)
2234
+ ])
2235
+ ], 8, Ts)) : h("", !0)
2236
+ ]))), 128))
2237
+ ], 6))), 128)),
2238
+ (u(!0), n(d, null, w(te.value, (e, s) => (u(), n("g", {
2239
+ key: `serie_line_${e.id}`,
2240
+ class: ll(`serie_line_${s}`),
2241
+ style: C(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2242
+ }, [
2243
+ e.smooth && e.plots.length > 1 && e.curve ? (u(), n("path", {
2244
+ key: 0,
2245
+ d: `M${e.curve}`,
2246
+ stroke: l.value.chart.backgroundColor,
2247
+ "stroke-width": l.value.line.strokeWidth + 1,
2248
+ "stroke-dasharray": e.dashed ? l.value.line.strokeWidth * 2 : 0,
2249
+ fill: "none",
2250
+ style: C({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
2251
+ }, null, 12, Is)) : e.plots.length > 1 && e.straight ? (u(), n("path", {
2252
+ key: 1,
2253
+ d: `M${e.straight}`,
2254
+ stroke: l.value.chart.backgroundColor,
2255
+ "stroke-width": l.value.line.strokeWidth + 1,
2256
+ "stroke-dasharray": e.dashed ? l.value.line.strokeWidth * 2 : 0,
2257
+ fill: "none",
2258
+ "stroke-linecap": "round",
2259
+ "stroke-linejoin": "round",
2260
+ style: C({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
2261
+ }, null, 12, Fs)) : h("", !0)
2262
+ ], 6))), 128)),
2263
+ a.$slots.pattern ? (u(), n("defs", Os, [
2264
+ (u(!0), n(d, null, w(Pe.value, (e, s) => P(a.$slots, "pattern", al({
2265
+ key: `serie_pattern_slot_${e.id}`
2266
+ }, { ref_for: !0 }, { ...e, seriesIndex: e.slotAbsoluteIndex, patternId: `pattern_${H.value}_${s}` }), void 0, !0)), 128))
2267
+ ])) : h("", !0),
2268
+ dt.value.length && !f.value.isStacked ? (u(), n("g", Bs, [
2269
+ (u(!0), n(d, null, w(dt.value, (e) => (u(), n("path", {
2270
+ key: e.key,
2271
+ d: e.d,
2272
+ fill: e.color,
2273
+ "fill-opacity": l.value.line.interLine.fillOpacity,
2274
+ stroke: "none",
2275
+ "pointer-events": "none",
2276
+ style: C({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
2277
+ }, null, 12, Ns))), 128))
2278
+ ])) : h("", !0),
2279
+ (u(!0), n(d, null, w(te.value, (e, s) => (u(), n("g", {
2280
+ key: `serie_line_above_${e.id}`,
2281
+ class: ll(`serie_line_${s}`),
2282
+ style: C(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2283
+ }, [
2284
+ e.useArea && e.plots.length > 1 ? (u(), n("g", Vs, [
2285
+ e.smooth ? (u(!0), n(d, { key: 0 }, w(e.curveAreas, (t, i) => (u(), n(d, { key: i }, [
2286
+ t ? (u(), n("path", {
2287
+ key: 0,
2288
+ d: t,
2289
+ fill: l.value.line.area.useGradient ? `url(#areaGradient_${s}_${H.value})` : v(ze)(e.color, l.value.line.area.opacity),
2290
+ style: C({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
2291
+ }, null, 12, Ds)) : h("", !0),
2292
+ a.$slots.pattern && t ? (u(), n("path", {
2293
+ key: 1,
2294
+ d: t,
2295
+ fill: `url(#pattern_${H.value}_${e.slotAbsoluteIndex})`,
2296
+ style: C({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
2297
+ }, null, 12, Ps)) : h("", !0)
2298
+ ], 64))), 128)) : (u(!0), n(d, { key: 1 }, w(e.area.split(";"), (t, i) => (u(), n(d, { key: i }, [
2299
+ t ? (u(), n("path", {
2300
+ key: 0,
2301
+ d: `M${t}Z`,
2302
+ fill: l.value.line.area.useGradient ? `url(#areaGradient_${s}_${H.value})` : v(ze)(e.color, l.value.line.area.opacity),
2303
+ style: C({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
2304
+ }, null, 12, Es)) : h("", !0),
2305
+ a.$slots.pattern && t ? (u(), n("path", {
2306
+ key: 1,
2307
+ d: `M${t}Z`,
2308
+ fill: `url(#pattern_${H.value}_${e.slotAbsoluteIndex})`,
2309
+ style: C({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
2310
+ }, null, 12, Rs)) : h("", !0)
2311
+ ], 64))), 128))
2312
+ ])) : h("", !0),
2313
+ e.smooth && e.plots.length > 1 && e.curve ? (u(), n("path", {
2314
+ key: 1,
2315
+ d: `M${e.curve}`,
2316
+ stroke: e.color,
2317
+ "stroke-width": l.value.line.strokeWidth,
2318
+ "stroke-dasharray": e.dashed ? l.value.line.strokeWidth * 2 : 0,
2319
+ fill: "none",
2320
+ "stroke-linecap": "round",
2321
+ style: C({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
2322
+ }, null, 12, Hs)) : e.plots.length > 1 && e.straight ? (u(), n("path", {
2323
+ key: 2,
2324
+ d: `M${e.straight}`,
2325
+ stroke: e.color,
2326
+ "stroke-width": l.value.line.strokeWidth,
2327
+ "stroke-dasharray": e.dashed ? l.value.line.strokeWidth * 2 : 0,
2328
+ fill: "none",
2329
+ "stroke-linecap": "round",
2330
+ "stroke-linejoin": "round",
2331
+ style: C({ transition: v(ie) || !l.value.line.showTransition ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out` })
2332
+ }, null, 12, Ys)) : h("", !0),
2333
+ (u(!0), n(d, null, w(e.plots, (t, i) => (u(), n(d, {
2334
+ key: `circle_line_${s}_${i}`
2335
+ }, [
2336
+ !it.value.linePlot && t && be(t.value) || it.value.linePlot && t && be(t.value) && (_.value !== null && _.value === i || B.value !== null && B.value === i) || vt(e.plots, i) ? (u(), Te(Ql, {
2337
+ key: 0,
2338
+ shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
2339
+ color: l.value.line.useGradient ? `url(#lineGradient_${s}_${H.value})` : l.value.line.dot.useSerieColor ? e.color : l.value.line.dot.fill,
2340
+ plot: { x: v(N)(t.x), y: v(N)(t.y) },
2341
+ radius: _.value !== null && _.value === i || B.value !== null && B.value === i ? ($e.value.line || 6) * 1.5 : (vt(e.plots, i), $e.value.line || 6),
2342
+ stroke: l.value.line.dot.useSerieColor ? l.value.chart.backgroundColor : e.color,
2343
+ strokeWidth: l.value.line.dot.strokeWidth,
2344
+ transition: v(ie) || !l.value.line.showTransition || _.value !== null && _.value === i || B.value !== null && B.value === i ? void 0 : `all ${l.value.line.transitionDurationMs}ms ease-in-out`
2345
+ }, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : h("", !0),
2346
+ t.comment && l.value.chart.comments.show ? (u(), n("foreignObject", {
2347
+ key: 1,
2348
+ style: { overflow: "visible" },
2349
+ height: "12",
2350
+ width: l.value.chart.comments.width,
2351
+ x: t.x - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
2352
+ y: t.y + l.value.chart.comments.offsetY + 6
2353
+ }, [
2354
+ p("div", Xs, [
2355
+ P(a.$slots, "plot-comment", {
2356
+ plot: { ...t, color: e.color, seriesIndex: s, datapointIndex: i }
2357
+ }, void 0, !0)
2358
+ ])
2359
+ ], 8, Ws)) : h("", !0)
2360
+ ], 64))), 128))
2361
+ ], 6))), 128)),
2362
+ (l.value.bar.labels.show || l.value.bar.serieName.show) && f.value.dataLabels.show ? (u(), n("g", Gs, [
2363
+ (u(!0), n(d, null, w(Me.value, (e, s) => (u(), n(d, {
2364
+ key: `xLabel_bar_${e.id}`
2365
+ }, [
2366
+ (u(!0), n(d, null, w(e.plots, (t, i) => (u(), n(d, {
2367
+ key: `xLabel_bar_${s}_${i}`
2368
+ }, [
2369
+ t && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === i || B.value !== null && B.value === i) && l.value.bar.labels.show ? (u(), n("text", {
2370
+ key: 0,
2371
+ x: f.value.useIndividualScale && f.value.isStacked ? t.x + Z.value.line / 2 : Rl(t) + He() / 2 - Wl.value / 2,
2372
+ y: v(N)(t.y) + (t.value >= 0 ? l.value.bar.labels.offsetY : -l.value.bar.labels.offsetY * 3),
2373
+ "text-anchor": "middle",
2374
+ "font-size": y.value.plotLabels,
2375
+ fill: l.value.bar.labels.color,
2376
+ style: C(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2377
+ }, ae(be(t.value) ? v(re)(
2378
+ l.value.bar.labels.formatter,
2379
+ t.value,
2380
+ v(Ve)({
2381
+ p: e.prefix || l.value.chart.labels.prefix,
2382
+ v: t.value,
2383
+ s: e.suffix || l.value.chart.labels.suffix,
2384
+ r: l.value.bar.labels.rounding
2385
+ }),
2386
+ {
2387
+ datapoint: t,
2388
+ serie: e
2389
+ }
2390
+ ) : ""), 13, Us)) : h("", !0),
2391
+ t && l.value.bar.serieName.show ? (u(), n("text", {
2392
+ key: 1,
2393
+ x: f.value.useIndividualScale && f.value.isStacked ? t.x + Z.value.line / 2 : t.x + He() * 1.1,
2394
+ y: t.y + (t.value > 0 ? l.value.bar.serieName.offsetY : -l.value.bar.serieName.offsetY * 3),
2395
+ "text-anchor": "middle",
2396
+ "font-size": y.value.plotLabels,
2397
+ fill: l.value.bar.serieName.useSerieColor ? e.color : l.value.bar.serieName.color,
2398
+ "font-weight": l.value.bar.serieName.bold ? "bold" : "normal",
2399
+ style: C(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2400
+ }, ae(l.value.bar.serieName.useAbbreviation ? v(fr)({
2401
+ source: e.name,
2402
+ length: l.value.bar.serieName.abbreviationSize
2403
+ }) : e.name), 13, qs)) : h("", !0)
2404
+ ], 64))), 128))
2405
+ ], 64))), 128))
2406
+ ])) : h("", !0),
2407
+ l.value.plot.labels.show && f.value.dataLabels.show ? (u(), n("g", Zs, [
2408
+ (u(!0), n(d, null, w(xe.value, (e, s) => (u(), n(d, {
2409
+ key: `xLabel_plot_${e.id}`
2410
+ }, [
2411
+ (u(!0), n(d, null, w(e.plots, (t, i) => (u(), n(d, {
2412
+ key: `xLabel_plot_${s}_${i}`
2413
+ }, [
2414
+ t && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === i || B.value !== null && B.value === i ? (u(), n("text", {
2415
+ key: 0,
2416
+ x: t.x,
2417
+ y: t.y + l.value.plot.labels.offsetY,
2418
+ "text-anchor": "middle",
2419
+ "font-size": y.value.plotLabels,
2420
+ fill: l.value.plot.labels.color,
2421
+ style: C(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2422
+ }, ae(be(t.value) ? v(re)(
2423
+ l.value.plot.labels.formatter,
2424
+ t.value,
2425
+ v(Ve)({
2426
+ p: e.prefix || l.value.chart.labels.prefix,
2427
+ v: t.value,
2428
+ s: e.suffix || l.value.chart.labels.suffix,
2429
+ r: l.value.plot.labels.rounding
2430
+ }),
2431
+ {
2432
+ datapoint: t,
2433
+ serie: e
2434
+ }
2435
+ ) : ""), 13, Js)) : h("", !0)
2436
+ ], 64))), 128))
2437
+ ], 64))), 128))
2438
+ ])) : (u(), n("g", Ks, [
2439
+ (u(!0), n(d, null, w(xe.value, (e, s) => (u(), n(d, {
2440
+ key: `xLabel_plot_${e.id}`
2441
+ }, [
2442
+ (u(!0), n(d, null, w(e.plots, (t, i) => (u(), n(d, {
2443
+ key: `xLabel_plot_${s}_${i}`
2444
+ }, [
2445
+ l.value.plot.tag.followValue ? (u(), n(d, { key: 1 }, [
2446
+ [B.value, _.value, Ze.value].includes(i) && e.useTag ? (u(), n("line", {
2447
+ key: 0,
2448
+ class: "vue-ui-xy-tag-plot",
2449
+ x1: c.value?.left,
2450
+ x2: c.value?.right,
2451
+ y1: t.y,
2452
+ y2: t.y,
2453
+ "stroke-width": 1,
2454
+ "stroke-linecap": "round",
2455
+ "stroke-dasharray": "2",
2456
+ stroke: e.color
2457
+ }, null, 8, ai)) : h("", !0)
2458
+ ], 64)) : (u(), n(d, { key: 0 }, [
2459
+ t && i === 0 && e.useTag && e.useTag === "start" ? (u(), n("foreignObject", {
2460
+ key: 0,
2461
+ x: t.x,
2462
+ y: t.y - 20,
2463
+ height: 24,
2464
+ width: "150",
2465
+ style: C(`overflow: visible; opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2466
+ }, [
2467
+ p("div", {
2468
+ style: C(`padding: 3px; background:${v(ze)(e.color, 80)};color:${v(Ge)(e.color)};width:fit-content;font-size:${y.value.plotLabels}px;border-radius: 2px;`),
2469
+ innerHTML: v(re)(
2470
+ l.value.plot.tag.formatter,
2471
+ t.value,
2472
+ e.name,
2473
+ {
2474
+ datapoint: t,
2475
+ seriesIndex: i,
2476
+ serieName: e.name
2477
+ }
2478
+ )
2479
+ }, null, 12, js)
2480
+ ], 12, Qs)) : h("", !0),
2481
+ t && i === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (u(), n("foreignObject", {
2482
+ key: 1,
2483
+ x: t.x - e.name.length * (y.value.plotLabels / 2),
2484
+ y: t.y - 20,
2485
+ height: 24,
2486
+ width: "150",
2487
+ style: C(`overflow: visible; opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2488
+ }, [
2489
+ p("div", {
2490
+ style: C(`padding: 3px; background:${v(ze)(e.color, 80)};color:${v(Ge)(e.color)};width:fit-content;font-size:${y.value.plotLabels}px;border-radius: 2px;`),
2491
+ innerHTML: v(re)(
2492
+ l.value.plot.tag.formatter,
2493
+ t.value,
2494
+ e.name,
2495
+ {
2496
+ datapoint: t,
2497
+ seriesIndex: i,
2498
+ serieName: e.name
2499
+ }
2500
+ )
2501
+ }, null, 12, li)
2502
+ ], 12, ei)) : h("", !0)
2503
+ ], 64))
2504
+ ], 64))), 128))
2505
+ ], 64))), 128))
2506
+ ])),
2507
+ l.value.line.labels.show && f.value.dataLabels.show ? (u(), n("g", ti, [
2508
+ (u(!0), n(d, null, w(te.value, (e, s) => (u(), n(d, {
2509
+ key: `xLabel_line_${e.id}`
2510
+ }, [
2511
+ (u(!0), n(d, null, w(e.plots, (t, i) => (u(), n(d, {
2512
+ key: `xLabel_line_${s}_${i}`
2513
+ }, [
2514
+ t && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === i || B.value !== null && B.value === i ? (u(), n("text", {
2515
+ key: 0,
2516
+ x: t.x,
2517
+ y: t.y + (t.value >= 0 ? l.value.line.labels.offsetY : -l.value.line.labels.offsetY * 3),
2518
+ "text-anchor": "middle",
2519
+ "font-size": y.value.plotLabels,
2520
+ fill: l.value.line.labels.color,
2521
+ style: C(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2522
+ }, ae(be(t.value) ? v(re)(
2523
+ l.value.line.labels.formatter,
2524
+ t.value,
2525
+ v(Ve)({
2526
+ p: e.prefix || l.value.chart.labels.prefix,
2527
+ v: t.value,
2528
+ s: e.suffix || l.value.chart.labels.suffix,
2529
+ r: l.value.line.labels.rounding
2530
+ }),
2531
+ {
2532
+ datapoint: t,
2533
+ serie: e
2534
+ }
2535
+ ) : ""), 13, oi)) : h("", !0)
2536
+ ], 64))), 128))
2537
+ ], 64))), 128))
2538
+ ])) : (u(), n("g", ri, [
2539
+ (u(!0), n(d, null, w(te.value, (e, s) => (u(), n(d, {
2540
+ key: `xLabel_line_${e.id}`
2541
+ }, [
2542
+ (u(!0), n(d, null, w(e.plots, (t, i) => (u(), n(d, {
2543
+ key: `xLabel_line_${s}_${i}`
2544
+ }, [
2545
+ l.value.line.tag.followValue ? (u(), n(d, { key: 1 }, [
2546
+ [B.value, _.value, Ze.value].includes(i) && e.useTag ? (u(), n("line", {
2547
+ key: 0,
2548
+ class: "vue-ui-xy-tag-line",
2549
+ x1: c.value?.left,
2550
+ x2: c.value?.right,
2551
+ y1: t.y,
2552
+ y2: t.y,
2553
+ "stroke-width": 1,
2554
+ "stroke-linecap": "round",
2555
+ "stroke-dasharray": "2",
2556
+ stroke: e.color
2557
+ }, null, 8, ci)) : h("", !0)
2558
+ ], 64)) : (u(), n(d, { key: 0 }, [
2559
+ t && i === 0 && e.useTag && e.useTag === "start" ? (u(), n("foreignObject", {
2560
+ key: 0,
2561
+ x: t.x,
2562
+ y: t.y - 20,
2563
+ height: 24,
2564
+ width: "150",
2565
+ style: C(`overflow: visible; opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2566
+ }, [
2567
+ p("div", {
2568
+ style: C(`padding: 3px; background:${v(ze)(e.color, 80)};color:${v(Ge)(e.color)};width:fit-content;font-size:${y.value.plotLabels}px;border-radius: 2px;`),
2569
+ innerHTML: v(re)(
2570
+ l.value.line.tag.formatter,
2571
+ t.value,
2572
+ e.name,
2573
+ {
2574
+ datapoint: t,
2575
+ seriesIndex: i,
2576
+ serieName: e.name
2577
+ }
2578
+ )
2579
+ }, null, 12, ii)
2580
+ ], 12, si)) : h("", !0),
2581
+ t && i === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (u(), n("foreignObject", {
2582
+ key: 1,
2583
+ x: t.x,
2584
+ y: t.y - 20,
2585
+ height: 24,
2586
+ width: "150",
2587
+ style: C(`overflow: visible; opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2588
+ }, [
2589
+ p("div", {
2590
+ style: C(`padding: 3px; background:${v(ze)(e.color, 80)};color:${v(Ge)(e.color)};width:fit-content;font-size:${y.value.plotLabels}px;border-radius: 2px;`),
2591
+ innerHTML: v(re)(
2592
+ l.value.line.tag.formatter,
2593
+ t.value,
2594
+ e.name,
2595
+ {
2596
+ datapoint: t,
2597
+ seriesIndex: i,
2598
+ serieName: e.name
2599
+ }
2600
+ )
2601
+ }, null, 12, ni)
2602
+ ], 12, ui)) : h("", !0)
2603
+ ], 64))
2604
+ ], 64))), 128))
2605
+ ], 64))), 128))
2606
+ ])),
2607
+ (u(!0), n(d, null, w(te.value, (e, s) => (u(), n(d, {
2608
+ key: `xLabel_line_${e.id}`
2609
+ }, [
2610
+ (u(!0), n(d, null, w(e.plots, (t, i) => (u(), n(d, {
2611
+ key: `xLabel_line_${s}_${i}`
2612
+ }, [
2613
+ t && i === 0 && e.showSerieName && e.showSerieName === "start" ? (u(), n("text", {
2614
+ key: 0,
2615
+ x: t.x - y.value.plotLabels,
2616
+ y: t.y,
2617
+ "font-size": y.value.plotLabels,
2618
+ "text-anchor": "end",
2619
+ fill: e.color,
2620
+ innerHTML: v(Kl)({
2621
+ content: e.name,
2622
+ fontSize: y.value.plotLabels,
2623
+ fill: e.color,
2624
+ x: t.x - y.value.plotLabels,
2625
+ y: t.y,
2626
+ maxWords: 2
2627
+ }),
2628
+ style: C(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2629
+ }, null, 12, vi)) : h("", !0),
2630
+ t && i === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (u(), n("text", {
2631
+ key: 1,
2632
+ x: t.x + y.value.plotLabels,
2633
+ y: t.y,
2634
+ "font-size": y.value.plotLabels,
2635
+ "text-anchor": "start",
2636
+ fill: e.color,
2637
+ innerHTML: v(Kl)({
2638
+ content: e.name,
2639
+ fontSize: y.value.plotLabels,
2640
+ fill: e.color,
2641
+ x: t.x + y.value.plotLabels,
2642
+ y: t.y,
2643
+ maxWords: 2
2644
+ }),
2645
+ style: C(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2646
+ }, null, 12, di)) : h("", !0)
2647
+ ], 64))), 128))
2648
+ ], 64))), 128)),
2649
+ (u(!0), n(d, null, w(xe.value, (e, s) => (u(), n(d, {
2650
+ key: `xLabel_plot_${e.id}`
2651
+ }, [
2652
+ (u(!0), n(d, null, w(e.plots, (t, i) => (u(), n(d, {
2653
+ key: `xLabel_plot_${s}_${i}`
2654
+ }, [
2655
+ t && i === 0 && e.showSerieName && e.showSerieName === "start" ? (u(), n("text", {
2656
+ key: 0,
2657
+ x: t.x - y.value.plotLabels,
2658
+ y: t.y,
2659
+ "font-size": y.value.plotLabels,
2660
+ "text-anchor": "end",
2661
+ fill: e.color,
2662
+ innerHTML: v(Kl)({
2663
+ content: e.name,
2664
+ fontSize: y.value.plotLabels,
2665
+ fill: e.color,
2666
+ x: t.x - y.value.plotLabels,
2667
+ y: t.y,
2668
+ maxWords: 2
2669
+ }),
2670
+ style: C(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2671
+ }, null, 12, hi)) : h("", !0),
2672
+ t && i === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (u(), n("text", {
2673
+ key: 1,
2674
+ x: t.x + y.value.plotLabels,
2675
+ y: t.y,
2676
+ "font-size": y.value.plotLabels,
2677
+ "text-anchor": "start",
2678
+ fill: e.color,
2679
+ innerHTML: v(Kl)({
2680
+ content: e.name,
2681
+ fontSize: y.value.plotLabels,
2682
+ fill: e.color,
2683
+ x: t.x + y.value.plotLabels,
2684
+ y: t.y,
2685
+ maxWords: 2
2686
+ }),
2687
+ style: C(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
2688
+ }, null, 12, fi)) : h("", !0)
2689
+ ], 64))), 128))
2690
+ ], 64))), 128)),
2691
+ (u(!0), n(d, null, w([...xe.value, ...te.value, ...Me.value], (e, s) => (u(), n(d, {
2692
+ key: `progression-${s}`
2693
+ }, [
2694
+ Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(v(Ce)(e.plots).trend) ? (u(), n("g", gi, [
2695
+ p("defs", null, [
2696
+ p("marker", {
2697
+ id: `progression_arrow_${s}`,
2698
+ markerWidth: "9",
2699
+ markerHeight: "9",
2700
+ viewBox: "-1 -1 9 9",
2701
+ markerUnits: "userSpaceOnUse",
2702
+ refX: "7",
2703
+ refY: 7 / 2,
2704
+ orient: "auto",
2705
+ overflow: "visible"
2706
+ }, [
2707
+ p("polygon", {
2708
+ points: "0,0 7,3.5 0,7",
2709
+ fill: e.color,
2710
+ stroke: l.value.chart.backgroundColor,
2711
+ "stroke-width": "1",
2712
+ "stroke-linejoin": "round"
2713
+ }, null, 8, bi)
2714
+ ], 8, mi)
2715
+ ]),
2716
+ e.plots.length > 1 ? (u(), n("line", {
2717
+ key: 0,
2718
+ x1: v(Ce)(e.plots).x1 + (e.type === "bar" ? He() : 0),
2719
+ x2: v(Ce)(e.plots).x2 + (e.type === "bar" ? He() : 0),
2720
+ y1: v(Y)(v(Ce)(e.plots).y1),
2721
+ y2: v(Y)(v(Ce)(e.plots).y2),
2722
+ "stroke-width": 1,
2723
+ stroke: l.value.chart.backgroundColor,
2724
+ "stroke-dasharray": 2,
2725
+ "stroke-linecap": "round",
2726
+ "stroke-linejoin": "round",
2727
+ "marker-end": `url(#progression_arrow_${s})`
2728
+ }, null, 8, xi)) : h("", !0),
2729
+ e.plots.length > 1 ? (u(), n("line", {
2730
+ key: 1,
2731
+ x1: v(Ce)(e.plots).x1 + (e.type === "bar" ? He() : 0),
2732
+ x2: v(Ce)(e.plots).x2 + (e.type === "bar" ? He() : 0),
2733
+ y1: v(Y)(v(Ce)(e.plots).y1),
2734
+ y2: v(Y)(v(Ce)(e.plots).y2),
2735
+ "stroke-width": 1,
2736
+ stroke: e.color,
2737
+ "stroke-dasharray": 2,
2738
+ "stroke-linecap": "round",
2739
+ "stroke-linejoin": "round",
2740
+ "marker-end": `url(#progression_arrow_${s})`
2741
+ }, null, 8, pi)) : h("", !0),
2742
+ e.plots.length > 1 ? (u(), n("text", {
2743
+ key: 2,
2744
+ "text-anchor": "middle",
2745
+ x: v(Ce)(e.plots).x2 + (e.type === "bar" ? He() : 0),
2746
+ y: v(Ce)(e.plots).y2 - 12,
2747
+ "font-size": y.value.plotLabels,
2748
+ fill: e.color,
2749
+ stroke: l.value.chart.backgroundColor,
2750
+ "stroke-width": 4,
2751
+ "stroke-linecap": "round",
2752
+ "stroke-linejoin": "round",
2753
+ "paint-order": "stroke fill"
2754
+ }, ae(v(Ve)({
2755
+ v: v(Ce)(e.plots).trend * 100,
2756
+ s: "%",
2757
+ r: 2
2758
+ })), 9, yi)) : h("", !0)
2759
+ ])) : h("", !0)
2760
+ ], 64))), 128)),
2761
+ f.value.useIndividualScale && !f.value.isStacked ? (u(), n(d, { key: 13 }, [
2762
+ p("defs", null, [
2763
+ (u(!0), n(d, null, w(Sl.value, (e, s) => (u(), n("linearGradient", {
2764
+ id: `individual_scale_gradient_${H.value}_${s}`,
2765
+ x1: "0%",
2766
+ x2: "100%",
2767
+ y1: "0%",
2768
+ y2: "0%"
2769
+ }, [
2770
+ p("stop", {
2771
+ offset: "0%",
2772
+ "stop-color": l.value.chart.backgroundColor,
2773
+ "stop-opacity": "0"
2774
+ }, null, 8, _i),
2775
+ p("stop", {
2776
+ offset: "100%",
2777
+ "stop-color": e.color,
2778
+ "stop-opacity": "0.2"
2779
+ }, null, 8, wi)
2780
+ ], 8, ki))), 256))
2781
+ ]),
2782
+ (u(!0), n(d, null, w(Sl.value, (e, s) => (u(), n("rect", {
2783
+ x: e.x - l.value.chart.grid.labels.yAxis.labelWidth + U.value - c.value.individualOffsetX,
2784
+ y: c.value?.top,
2785
+ width: l.value.chart.grid.labels.yAxis.labelWidth + c.value.individualOffsetX,
2786
+ height: c.value.height < 0 ? 10 : c.value.height,
2787
+ fill: I.value === e.groupId ? `url(#individual_scale_gradient_${H.value}_${s})` : "transparent",
2788
+ onMouseenter: (t) => I.value = e.groupId,
2789
+ onMouseleave: r[0] || (r[0] = (t) => I.value = null)
2790
+ }, null, 40, Si))), 256))
2791
+ ], 64)) : h("", !0),
2792
+ p("g", null, [
2793
+ l.value.chart.grid.labels.axis.yLabel && !f.value.useIndividualScale ? (u(), n("text", {
2794
+ key: 0,
2795
+ ref_key: "yAxisLabel",
2796
+ ref: aa,
2797
+ "font-size": y.value.yAxis,
2798
+ fill: l.value.chart.grid.labels.color,
2799
+ transform: `translate(${l.value.chart.grid.labels.axis.fontSize}, ${c.value?.top + c.value.height / 2}) rotate(-90)`,
2800
+ "text-anchor": "middle",
2801
+ style: { transition: "none" }
2802
+ }, ae(l.value.chart.grid.labels.axis.yLabel), 9, Ci)) : h("", !0),
2803
+ l.value.chart.grid.labels.axis.xLabel ? (u(), n("text", {
2804
+ key: 1,
2805
+ ref_key: "xAxisLabel",
2806
+ ref: la,
2807
+ "text-anchor": "middle",
2808
+ x: ee.value / 2,
2809
+ y: ve.value - 3,
2810
+ "font-size": y.value.yAxis,
2811
+ fill: l.value.chart.grid.labels.color
2812
+ }, ae(l.value.chart.grid.labels.axis.xLabel), 9, $i)) : h("", !0)
2813
+ ]),
2814
+ l.value.chart.grid.labels.xAxisLabels.show ? (u(), n("g", {
2815
+ key: 14,
2816
+ ref_key: "timeLabelsEls",
2817
+ ref: sl
2818
+ }, [
2819
+ a.$slots["time-label"] ? (u(!0), n(d, { key: 0 }, w(ma.value, (e, s) => P(a.$slots, "time-label", al({
2820
+ key: `time_label_${e.id}`,
2821
+ ref_for: !0
2822
+ }, {
2823
+ x: c.value?.left + c.value.width / $.value * s + c.value.width / $.value / 2,
2824
+ y: c.value?.bottom,
2825
+ fontSize: y.value.xAxis,
2826
+ fill: l.value.chart.grid.labels.xAxisLabels.color,
2827
+ transform: `translate(${c.value?.left + c.value.width / $.value * s + c.value.width / $.value / 2}, ${c.value?.bottom + y.value.xAxis * 1.3 + l.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
2828
+ absoluteIndex: e.absoluteIndex,
2829
+ content: e.text,
2830
+ textAnchor: l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
2831
+ show: e && e.text
2832
+ }), void 0, !0)), 128)) : (u(!0), n(d, { key: 1 }, w(ma.value, (e, s) => (u(), n("g", {
2833
+ key: `time_label_${s}`
2834
+ }, [
2835
+ e && e.text ? (u(), n(d, { key: 0 }, [
2836
+ String(e.text).includes(`
2837
+ `) ? (u(), n("text", {
2838
+ key: 1,
2839
+ class: "vue-data-ui-time-label",
2840
+ "text-anchor": l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
2841
+ "font-size": y.value.xAxis,
2842
+ fill: l.value.chart.grid.labels.xAxisLabels.color,
2843
+ transform: `translate(${c.value?.left + c.value.width / $.value * s + c.value.width / $.value / 2}, ${c.value?.bottom + y.value.xAxis * 1.5}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
2844
+ style: C({
2845
+ cursor: Wa() ? "pointer" : "default"
2846
+ }),
2847
+ innerHTML: v(gr)({
2848
+ content: String(e.text),
2849
+ fontSize: y.value.xAxis,
2850
+ fill: l.value.chart.grid.labels.xAxisLabels.color,
2851
+ x: 0,
2852
+ y: 0
2853
+ }),
2854
+ onClick: () => qa(e, s)
2855
+ }, null, 12, Li)) : (u(), n("text", {
2856
+ key: 0,
2857
+ class: "vue-data-ui-time-label",
2858
+ "text-anchor": l.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : l.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
2859
+ "font-size": y.value.xAxis,
2860
+ fill: l.value.chart.grid.labels.xAxisLabels.color,
2861
+ transform: `translate(${c.value?.left + c.value.width / $.value * s + c.value.width / $.value / 2}, ${c.value?.bottom + y.value.xAxis * 1.5}), rotate(${l.value.chart.grid.labels.xAxisLabels.rotation})`,
2862
+ style: C({
2863
+ cursor: Wa() ? "pointer" : "default"
2864
+ }),
2865
+ onClick: () => qa(e, s)
2866
+ }, ae(e.text || ""), 13, Ai))
2867
+ ], 64)) : h("", !0)
2868
+ ]))), 128))
2869
+ ], 512)) : h("", !0),
2870
+ ct.value.length && !f.value.isStacked ? (u(), n("g", Mi, [
2871
+ (u(!0), n(d, null, w(ct.value, (e) => (u(), n("g", {
2872
+ key: e.uid
2873
+ }, [
2874
+ e.yTop && e.show && isFinite(e.yTop) ? (u(), n("line", {
2875
+ key: 0,
2876
+ x1: e.x1,
2877
+ y1: e.yTop,
2878
+ x2: e.x2,
2879
+ y2: e.yTop,
2880
+ stroke: e.config.line.stroke,
2881
+ "stroke-width": e.config.line.strokeWidth,
2882
+ "stroke-dasharray": e.config.line.strokeDasharray,
2883
+ "stroke-linecap": "round",
2884
+ style: { animation: "none !important" }
2885
+ }, null, 8, Ti)) : h("", !0),
2886
+ e.yBottom && e.show && isFinite(e.yBottom) ? (u(), n("line", {
2887
+ key: 1,
2888
+ x1: e.x1,
2889
+ y1: e.yBottom,
2890
+ x2: e.x2,
2891
+ y2: e.yBottom,
2892
+ stroke: e.config.line.stroke,
2893
+ "stroke-width": e.config.line.strokeWidth,
2894
+ "stroke-dasharray": e.config.line.strokeDasharray,
2895
+ "stroke-linecap": "round",
2896
+ style: { animation: "none !important" }
2897
+ }, null, 8, zi)) : h("", !0),
2898
+ e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (u(), n("rect", {
2899
+ key: 2,
2900
+ y: Math.min(e.yTop, e.yBottom),
2901
+ x: e.x1,
2902
+ width: c.value.width,
2903
+ height: v(N)(e.areaHeight, 0),
2904
+ fill: v(ze)(e.config.area.fill, e.config.area.opacity),
2905
+ style: { animation: "none !important" }
2906
+ }, null, 8, Ii)) : h("", !0),
2907
+ e.config.label.text && e.show && isFinite(e._box.y) ? (u(), n("rect", al({
2908
+ key: 3,
2909
+ class: "vue-ui-xy-annotation-label-box"
2910
+ }, { ref_for: !0 }, e._box, { style: { animation: "none !important", transition: "none !important" } }), null, 16)) : h("", !0),
2911
+ e.config.label.text && e.show && isFinite(e._text.y) ? (u(), n("text", {
2912
+ key: 4,
2913
+ id: e.id,
2914
+ class: "vue-ui-xy-annotation-label",
2915
+ x: e._text.x,
2916
+ y: e._text.y,
2917
+ "font-size": e.config.label.fontSize,
2918
+ fill: e.config.label.color,
2919
+ "text-anchor": e.config.label.textAnchor
2920
+ }, ae(e.config.label.text), 9, Fi)) : h("", !0)
2921
+ ]))), 128))
2922
+ ])) : h("", !0),
2923
+ l.value.chart.timeTag.show && (![null, void 0].includes(_.value) || ![null, void 0].includes(B.value)) ? (u(), n("g", Oi, [
2924
+ (u(), n("foreignObject", {
2925
+ x: Xo(),
2926
+ y: c.value?.bottom,
2927
+ width: "200",
2928
+ height: "40",
2929
+ style: { overflow: "visible !important" }
2930
+ }, [
2931
+ p("div", {
2932
+ ref_key: "timeTagEl",
2933
+ ref: wt,
2934
+ class: "vue-ui-xy-time-tag",
2935
+ style: C(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${l.value.chart.timeTag.backgroundColor};color:${l.value.chart.timeTag.color};font-size:${l.value.chart.timeTag.fontSize}px`),
2936
+ innerHTML: Go.value
2937
+ }, null, 12, Ni)
2938
+ ], 8, Bi)),
2939
+ p("circle", {
2940
+ cx: c.value?.left + c.value.width / $.value * ((_.value !== null ? _.value : 0) || (B.value !== null ? B.value : 0)) + c.value.width / $.value / 2,
2941
+ cy: c.value?.bottom,
2942
+ r: l.value.chart.timeTag.circleMarker.radius,
2943
+ fill: l.value.chart.timeTag.circleMarker.color
2944
+ }, null, 8, Vi)
2945
+ ])) : h("", !0)
2946
+ ])) : h("", !0),
2947
+ Da.value ? (u(), n("rect", al({ key: 2 }, go.value, {
2948
+ "data-start": m.value.start,
2949
+ "data-end": m.value.end
2950
+ }), null, 16, Di)) : h("", !0),
2951
+ P(a.$slots, "svg", {
2952
+ svg: {
2953
+ ...vo.value,
2954
+ data: [...te.value, ...Me.value, ...xe.value],
2955
+ drawingArea: c.value
2956
+ }
2957
+ }, void 0, !0)
2958
+ ], 512)
2959
+ ], 46, Nr)),
2960
+ a.$slots.watermark ? (u(), n("div", Pi, [
2961
+ P(a.$slots, "watermark", ke(_e({ isPrinting: v(da) || v(Ea) })), void 0, !0)
2962
+ ])) : h("", !0),
2963
+ (u(!0), n(d, null, w(te.value, (e, s) => (u(), n(d, {
2964
+ key: `tag_line_${e.id}`
2965
+ }, [
2966
+ (u(!0), n(d, null, w(e.plots, (t, i) => (u(), n(d, {
2967
+ key: `tag_line_${s}_${i}`
2968
+ }, [
2969
+ [B.value, _.value, Ze.value].includes(i) && e.useTag && e.useTag === "end" && l.value.line.tag.followValue ? (u(), n("div", {
2970
+ key: 0,
2971
+ ref_for: !0,
2972
+ ref: (o) => Dl(s, i, o, "right", "line"),
2973
+ class: "vue-ui-xy-tag",
2974
+ "data-tag": "right",
2975
+ style: C({
2976
+ position: "fixed",
2977
+ top: v(Ue)({
2978
+ svgElement: se.value,
2979
+ x: c.value?.right + l.value.line.tag.fontSize / 1.5,
2980
+ y: t.y,
2981
+ element: De.value[`${s}_${i}_right_line`],
2982
+ position: "right"
2983
+ })?.top + "px",
2984
+ left: v(Ue)({
2985
+ svgElement: se.value,
2986
+ x: c.value?.right + l.value.line.tag.fontSize / 1.5,
2987
+ y: t.y,
2988
+ element: De.value[`${s}_${i}_right_line`],
2989
+ position: "right"
2990
+ })?.left + "px",
2991
+ height: "fit-content",
2992
+ width: "fit-content",
2993
+ background: e.color,
2994
+ color: v(Ge)(e.color),
2995
+ padding: "0 6px",
2996
+ fontSize: l.value.line.tag.fontSize + "px",
2997
+ opacity: 1
2998
+ })
2999
+ }, [
3000
+ (u(), n("svg", Ei, [
3001
+ p("path", {
3002
+ d: "M 0,10 10,0 10,20 Z",
3003
+ fill: e.color,
3004
+ stroke: "none"
3005
+ }, null, 8, Ri)
3006
+ ])),
3007
+ p("div", {
3008
+ class: "vue-ui-xy-tag-content",
3009
+ innerHTML: v(re)(
3010
+ l.value.line.tag.formatter,
3011
+ t.value,
3012
+ e.name,
3013
+ {
3014
+ datapoint: t,
3015
+ seriesIndex: i,
3016
+ serieName: e.name
3017
+ }
3018
+ )
3019
+ }, null, 8, Hi)
3020
+ ], 4)) : h("", !0),
3021
+ [B.value, _.value, Ze.value].includes(i) && e.useTag && e.useTag === "start" && l.value.line.tag.followValue ? (u(), n("div", {
3022
+ key: 1,
3023
+ ref_for: !0,
3024
+ ref: (o) => Dl(s, i, o, "left", "line"),
3025
+ class: "vue-ui-xy-tag",
3026
+ "data-tag": "left",
3027
+ style: C({
3028
+ position: "fixed",
3029
+ top: v(Ue)({
3030
+ svgElement: se.value,
3031
+ x: c.value?.left - l.value.line.tag.fontSize / 1.5,
3032
+ y: t.y,
3033
+ element: De.value[`${s}_${i}_left_line`],
3034
+ position: "left"
3035
+ })?.top + "px",
3036
+ left: v(Ue)({
3037
+ svgElement: se.value,
3038
+ x: c.value?.left - l.value.line.tag.fontSize / 1.5,
3039
+ y: t.y,
3040
+ element: De.value[`${s}_${i}_left_line`],
3041
+ position: "left"
3042
+ })?.left + "px",
3043
+ height: "fit-content",
3044
+ width: "fit-content",
3045
+ background: e.color,
3046
+ color: v(Ge)(e.color),
3047
+ padding: "0 6px",
3048
+ fontSize: l.value.line.tag.fontSize + "px",
3049
+ opacity: 1
3050
+ })
3051
+ }, [
3052
+ (u(), n("svg", Yi, [
3053
+ p("path", {
3054
+ d: "M 0,0 10,10 0,20 Z",
3055
+ fill: e.color,
3056
+ stroke: "none"
3057
+ }, null, 8, Wi)
3058
+ ])),
3059
+ p("div", {
3060
+ class: "vue-ui-xy-tag-content",
3061
+ innerHTML: v(re)(
3062
+ l.value.line.tag.formatter,
3063
+ t.value,
3064
+ e.name,
3065
+ {
3066
+ datapoint: t,
3067
+ seriesIndex: i,
3068
+ serieName: e.name
3069
+ }
3070
+ )
3071
+ }, null, 8, Xi)
3072
+ ], 4)) : h("", !0)
3073
+ ], 64))), 128))
3074
+ ], 64))), 128)),
3075
+ (u(!0), n(d, null, w(xe.value, (e, s) => (u(), n(d, {
3076
+ key: `tag_plot_${e.id}`
3077
+ }, [
3078
+ (u(!0), n(d, null, w(e.plots, (t, i) => (u(), n(d, {
3079
+ key: `tag_plot_${s}_${i}`
3080
+ }, [
3081
+ [B.value, _.value, Ze.value].includes(i) && e.useTag && e.useTag === "end" && l.value.plot.tag.followValue ? (u(), n("div", {
3082
+ key: 0,
3083
+ ref_for: !0,
3084
+ ref: (o) => Dl(s, i, o, "right", "plot"),
3085
+ class: "vue-ui-xy-tag",
3086
+ "data-tag": "right",
3087
+ style: C({
3088
+ position: "fixed",
3089
+ top: v(Ue)({
3090
+ svgElement: se.value,
3091
+ x: c.value?.right + l.value.plot.tag.fontSize / 1.5,
3092
+ y: t.y,
3093
+ element: De.value[`${s}_${i}_right_plot`],
3094
+ position: "right"
3095
+ })?.top + "px",
3096
+ left: v(Ue)({
3097
+ svgElement: se.value,
3098
+ x: c.value?.right + l.value.plot.tag.fontSize / 1.5,
3099
+ y: t.y,
3100
+ element: De.value[`${s}_${i}_right_plot`],
3101
+ position: "right"
3102
+ })?.left + "px",
3103
+ height: "fit-content",
3104
+ width: "fit-content",
3105
+ background: e.color,
3106
+ color: v(Ge)(e.color),
3107
+ padding: "0 6px",
3108
+ fontSize: l.value.plot.tag.fontSize + "px",
3109
+ opacity: 1
3110
+ })
3111
+ }, [
3112
+ (u(), n("svg", Gi, [
3113
+ p("path", {
3114
+ d: "M 0,10 10,0 10,20 Z",
3115
+ fill: e.color,
3116
+ stroke: "none"
3117
+ }, null, 8, Ui)
3118
+ ])),
3119
+ p("div", {
3120
+ class: "vue-ui-xy-tag-content",
3121
+ innerHTML: v(re)(
3122
+ l.value.plot.tag.formatter,
3123
+ t.value,
3124
+ e.name,
3125
+ {
3126
+ datapoint: t,
3127
+ seriesIndex: i,
3128
+ serieName: e.name
3129
+ }
3130
+ )
3131
+ }, null, 8, qi)
3132
+ ], 4)) : h("", !0),
3133
+ [B.value, _.value, Ze.value].includes(i) && e.useTag && e.useTag === "start" && l.value.plot.tag.followValue ? (u(), n("div", {
3134
+ key: 1,
3135
+ ref_for: !0,
3136
+ ref: (o) => Dl(s, i, o, "left", "plot"),
3137
+ class: "vue-ui-xy-tag",
3138
+ "data-tag": "left",
3139
+ style: C({
3140
+ position: "fixed",
3141
+ top: v(Ue)({
3142
+ svgElement: se.value,
3143
+ x: c.value?.left - l.value.plot.tag.fontSize / 1.5,
3144
+ y: t.y,
3145
+ element: De.value[`${s}_${i}_left_plot`],
3146
+ position: "left"
3147
+ })?.top + "px",
3148
+ left: v(Ue)({
3149
+ svgElement: se.value,
3150
+ x: c.value?.left - l.value.plot.tag.fontSize / 1.5,
3151
+ y: t.y,
3152
+ element: De.value[`${s}_${i}_left_plot`],
3153
+ position: "left"
3154
+ })?.left + "px",
3155
+ height: "fit-content",
3156
+ width: "fit-content",
3157
+ background: e.color,
3158
+ color: v(Ge)(e.color),
3159
+ padding: "0 6px",
3160
+ fontSize: l.value.plot.tag.fontSize + "px",
3161
+ opacity: 1
3162
+ })
3163
+ }, [
3164
+ (u(), n("svg", Zi, [
3165
+ p("path", {
3166
+ d: "M 0,0 10,10 0,20 Z",
3167
+ fill: e.color,
3168
+ stroke: "none"
3169
+ }, null, 8, Ji)
3170
+ ])),
3171
+ p("div", {
3172
+ class: "vue-ui-xy-tag-content",
3173
+ innerHTML: v(re)(
3174
+ l.value.plot.tag.formatter,
3175
+ t.value,
3176
+ e.name,
3177
+ {
3178
+ datapoint: t,
3179
+ seriesIndex: i,
3180
+ serieName: e.name
3181
+ }
3182
+ )
3183
+ }, null, 8, Ki)
3184
+ ], 4)) : h("", !0)
3185
+ ], 64))), 128))
3186
+ ], 64))), 128)),
3187
+ l.value.chart.zoom.show && Oe.value > 6 && ca.value && Ka.value ? (u(), Te(zr, {
3188
+ key: 5,
3189
+ ref_key: "chartSlicer",
3190
+ ref: Fe,
3191
+ allMinimaps: Ro.value,
3192
+ background: l.value.chart.zoom.color,
3193
+ borderColor: l.value.chart.backgroundColor,
3194
+ customFormat: l.value.chart.zoom.customFormat,
3195
+ cutNullValues: l.value.line.cutNullValues,
3196
+ enableRangeHandles: l.value.chart.zoom.enableRangeHandles,
3197
+ enableSelectionDrag: l.value.chart.zoom.enableSelectionDrag,
3198
+ end: m.value.end,
3199
+ focusOnDrag: l.value.chart.zoom.focusOnDrag,
3200
+ focusRangeRatio: l.value.chart.zoom.focusRangeRatio,
3201
+ fontSize: l.value.chart.zoom.fontSize,
3202
+ useResetSlot: l.value.chart.zoom.useResetSlot,
3203
+ immediate: !l.value.chart.zoom.preview.enable,
3204
+ inputColor: l.value.chart.zoom.color,
3205
+ isPreview: Da.value,
3206
+ labelLeft: de.value[0] ? de.value[0].text : "",
3207
+ labelRight: de.value.at(-1) ? de.value.at(-1).text : "",
3208
+ max: Oe.value,
3209
+ min: 0,
3210
+ minimap: Eo.value,
3211
+ minimapCompact: l.value.chart.zoom.minimap.compact,
3212
+ minimapFrameColor: l.value.chart.zoom.minimap.frameColor,
3213
+ minimapIndicatorColor: l.value.chart.zoom.minimap.indicatorColor,
3214
+ minimapLineColor: l.value.chart.zoom.minimap.lineColor,
3215
+ minimapMerged: l.value.chart.zoom.minimap.merged,
3216
+ minimapSelectedColor: l.value.chart.zoom.minimap.selectedColor,
3217
+ minimapSelectedColorOpacity: l.value.chart.zoom.minimap.selectedColorOpacity,
3218
+ minimapSelectedIndex: _.value,
3219
+ minimapSelectionRadius: l.value.chart.zoom.minimap.selectionRadius,
3220
+ preciseLabels: ft.value.length ? ft.value : ga.value,
3221
+ refreshEndPoint: l.value.chart.zoom.endIndex !== null ? l.value.chart.zoom.endIndex + 1 : Math.max(...jl.dataset.map((e) => Re(e.series).length)),
3222
+ refreshStartPoint: l.value.chart.zoom.startIndex !== null ? l.value.chart.zoom.startIndex : 0,
3223
+ selectColor: l.value.chart.zoom.highlightColor,
3224
+ selectedSeries: je.value,
3225
+ smoothMinimap: l.value.chart.zoom.minimap.smooth,
3226
+ start: m.value.start,
3227
+ textColor: l.value.chart.color,
3228
+ timeLabels: ga.value,
3229
+ usePreciseLabels: l.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !l.value.chart.zoom.useDefaultFormat,
3230
+ valueEnd: m.value.end,
3231
+ valueStart: m.value.start,
3232
+ verticalHandles: l.value.chart.zoom.minimap.verticalHandles,
3233
+ onFutureEnd: r[1] || (r[1] = (e) => Pa("end", e)),
3234
+ onFutureStart: r[2] || (r[2] = (e) => Pa("start", e)),
3235
+ onReset: Lo,
3236
+ onTrapMouse: So,
3237
+ "onUpdate:end": Ao,
3238
+ "onUpdate:start": $o
3239
+ }, {
3240
+ "reset-action": G(({ reset: e }) => [
3241
+ P(a.$slots, "reset-action", ke(_e({ reset: e })), void 0, !0)
3242
+ ]),
3243
+ _: 3
3244
+ }, 8, ["allMinimaps", "background", "borderColor", "customFormat", "cutNullValues", "enableRangeHandles", "enableSelectionDrag", "end", "focusOnDrag", "focusRangeRatio", "fontSize", "useResetSlot", "immediate", "inputColor", "isPreview", "labelLeft", "labelRight", "max", "minimap", "minimapCompact", "minimapFrameColor", "minimapIndicatorColor", "minimapLineColor", "minimapMerged", "minimapSelectedColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapSelectionRadius", "preciseLabels", "refreshEndPoint", "refreshStartPoint", "selectColor", "selectedSeries", "smoothMinimap", "start", "textColor", "timeLabels", "usePreciseLabels", "valueEnd", "valueStart", "verticalHandles"])) : h("", !0),
3245
+ p("div", {
3246
+ id: `legend-bottom-${H.value}`
3247
+ }, null, 8, Qi),
3248
+ Oa.value ? (u(), Te(tr, {
3249
+ key: 6,
3250
+ to: l.value.chart.legend.position === "top" ? `#legend-top-${H.value}` : `#legend-bottom-${H.value}`
3251
+ }, [
3252
+ l.value.chart.legend.show ? (u(), n("div", {
3253
+ key: 0,
3254
+ ref_key: "chartLegend",
3255
+ ref: rl,
3256
+ class: "vue-ui-xy-legend",
3257
+ style: C({
3258
+ fontSize: `var(--legend-font-size, ${l.value.chart.legend.fontSize ?? 14}px)`
3259
+ })
3260
+ }, [
3261
+ (u(!0), n(d, null, w(me.value, (e, s) => (u(), n("div", {
3262
+ key: `div_legend_item_${s}`,
3263
+ onClick: (t) => Yl(e),
3264
+ class: ll({ "vue-ui-xy-legend-item-alone": me.value.length === 1, "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": J.value.includes(e.id) })
3265
+ }, [
3266
+ bl.value[e.type] === "line" ? (u(), n("svg", eu, [
3267
+ p("rect", {
3268
+ x: "0",
3269
+ y: "7.5",
3270
+ rx: "1.5",
3271
+ stroke: l.value.chart.backgroundColor,
3272
+ "stroke-width": 0.5,
3273
+ height: "3",
3274
+ width: "20",
3275
+ fill: e.color
3276
+ }, null, 8, lu),
3277
+ vl(Ql, {
3278
+ plot: { x: 10, y: 9 },
3279
+ radius: 4,
3280
+ color: e.color,
3281
+ shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
3282
+ stroke: l.value.chart.backgroundColor,
3283
+ strokeWidth: 0.5
3284
+ }, null, 8, ["color", "shape", "stroke"])
3285
+ ])) : bl.value[e.type] === "bar" ? (u(), n("svg", au, [
3286
+ bl.value[e.type] === "bar" && a.$slots.pattern ? (u(), n("rect", {
3287
+ key: 0,
3288
+ x: "4",
3289
+ y: "4",
3290
+ rx: "1",
3291
+ height: "32",
3292
+ width: "32",
3293
+ stroke: "none",
3294
+ fill: e.color
3295
+ }, null, 8, tu)) : h("", !0),
3296
+ bl.value[e.type] === "bar" ? (u(), n("rect", {
3297
+ key: 1,
3298
+ x: "4",
3299
+ y: "4",
3300
+ rx: "1",
3301
+ height: "32",
3302
+ width: "32",
3303
+ stroke: "none",
3304
+ fill: a.$slots.pattern ? `url(#pattern_${H.value}_${e.slotAbsoluteIndex})` : e.color
3305
+ }, null, 8, ou)) : h("", !0)
3306
+ ])) : (u(), n("svg", ru, [
3307
+ vl(Ql, {
3308
+ plot: { x: 6, y: 6 },
3309
+ radius: 5,
3310
+ color: e.color,
3311
+ shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle"
3312
+ }, null, 8, ["color", "shape"])
3313
+ ])),
3314
+ p("span", {
3315
+ style: C(`color:${l.value.chart.legend.color}`)
3316
+ }, ae(e.name), 5)
3317
+ ], 10, ji))), 128))
3318
+ ], 4)) : (u(), n("div", {
3319
+ key: 1,
3320
+ ref_key: "chartLegend",
3321
+ ref: rl
3322
+ }, [
3323
+ P(a.$slots, "legend", { legend: me.value }, void 0, !0)
3324
+ ], 512))
3325
+ ], 8, ["to"])) : h("", !0),
3326
+ a.$slots.source ? (u(), n("div", {
3327
+ key: 7,
3328
+ ref_key: "source",
3329
+ ref: gl,
3330
+ dir: "auto"
3331
+ }, [
3332
+ P(a.$slots, "source", {}, void 0, !0)
3333
+ ], 512)) : h("", !0),
3334
+ vl(v(jt), {
3335
+ show: f.value.showTooltip && Ma.value,
3336
+ backgroundColor: l.value.chart.tooltip.backgroundColor,
3337
+ color: l.value.chart.tooltip.color,
3338
+ fontSize: l.value.chart.tooltip.fontSize,
3339
+ borderRadius: l.value.chart.tooltip.borderRadius,
3340
+ borderColor: l.value.chart.tooltip.borderColor,
3341
+ borderWidth: l.value.chart.tooltip.borderWidth,
3342
+ backgroundOpacity: l.value.chart.tooltip.backgroundOpacity,
3343
+ position: l.value.chart.tooltip.position,
3344
+ offsetY: l.value.chart.tooltip.offsetY,
3345
+ parent: a.$refs.chart,
3346
+ content: Ho.value,
3347
+ isFullscreen: qe.value,
3348
+ isCustom: l.value.chart.tooltip.customFormat && typeof l.value.chart.tooltip.customFormat == "function",
3349
+ smooth: l.value.chart.tooltip.smooth,
3350
+ backdropFilter: l.value.chart.tooltip.backdropFilter,
3351
+ smoothForce: l.value.chart.tooltip.smoothForce,
3352
+ smoothSnapThreshold: l.value.chart.tooltip.smoothSnapThreshold
3353
+ }, {
3354
+ "tooltip-before": G(() => [
3355
+ P(a.$slots, "tooltip-before", ke(_e({ ...ht.value })), void 0, !0)
3356
+ ]),
3357
+ "tooltip-after": G(() => [
3358
+ P(a.$slots, "tooltip-after", ke(_e({ ...ht.value })), void 0, !0)
3359
+ ]),
3360
+ _: 3
3361
+ }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
3362
+ ca.value && l.value.chart.userOptions.buttons.table ? (u(), Te(or(Cl.value.component), al({ key: 8 }, Cl.value.props, {
3363
+ ref_key: "tableUnit",
3364
+ ref: il,
3365
+ onClose: $t
3366
+ }), Tt({
3367
+ content: G(() => [
3368
+ p("div", {
3369
+ style: C(`${v(da) || l.value.table.useDialog ? "" : "max-height:400px"};${l.value.table.useDialog ? "height: fit-content; " : ""};overflow:auto;width:100%;${l.value.table.useDialog ? "" : "margin-top:48px"}`)
3370
+ }, [
3371
+ p("div", su, [
3372
+ rr(p("input", {
3373
+ type: "checkbox",
3374
+ "onUpdate:modelValue": r[4] || (r[4] = (e) => pl.value = e)
3375
+ }, null, 512), [
3376
+ [sr, pl.value]
3377
+ ]),
3378
+ p("div", {
3379
+ onClick: r[5] || (r[5] = (e) => pl.value = !pl.value),
3380
+ style: { cursor: "pointer" }
3381
+ }, [
3382
+ vl(v($a), {
3383
+ name: "chartLine",
3384
+ size: 20,
3385
+ stroke: l.value.chart.color
3386
+ }, null, 8, ["stroke"])
3387
+ ])
3388
+ ]),
3389
+ pl.value ? (u(), Te(v(lo), {
3390
+ key: `sparkline_${sa.value}`,
3391
+ dataset: Vo.value,
3392
+ config: Do.value
3393
+ }, null, 8, ["dataset", "config"])) : (u(), Te(v(Qt), {
3394
+ key: `table_${za.value}`,
3395
+ colNames: Ul.value.colNames,
3396
+ head: Ul.value.head,
3397
+ body: Ul.value.body,
3398
+ config: Ul.value.config,
3399
+ title: l.value.table.useDialog ? "" : Cl.value.title,
3400
+ withCloseButton: !l.value.table.useDialog,
3401
+ onClose: $t
3402
+ }, {
3403
+ th: G(({ th: e }) => [
3404
+ p("div", { innerHTML: e }, null, 8, iu)
3405
+ ]),
3406
+ td: G(({ td: e }) => [
3407
+ zt(ae(isNaN(Number(e)) ? e : v(Ve)({
3408
+ p: l.value.chart.labels.prefix,
3409
+ v: e,
3410
+ s: l.value.chart.labels.suffix,
3411
+ r: l.value.table.rounding
3412
+ })), 1)
3413
+ ]),
3414
+ _: 1
3415
+ }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
3416
+ ], 4)
3417
+ ]),
3418
+ _: 2
3419
+ }, [
3420
+ l.value.table.useDialog ? {
3421
+ name: "title",
3422
+ fn: G(() => [
3423
+ zt(ae(Cl.value.title), 1)
3424
+ ]),
3425
+ key: "0"
3426
+ } : void 0,
3427
+ l.value.table.useDialog ? {
3428
+ name: "actions",
3429
+ fn: G(() => [
3430
+ p("button", {
3431
+ tabindex: "0",
3432
+ class: "vue-ui-user-options-button",
3433
+ onClick: r[3] || (r[3] = (e) => xa(l.value.chart.userOptions.callbacks.csv))
3434
+ }, [
3435
+ vl(v($a), {
3436
+ name: "excel",
3437
+ stroke: Cl.value.props.color
3438
+ }, null, 8, ["stroke"])
3439
+ ])
3440
+ ]),
3441
+ key: "1"
3442
+ } : void 0
3443
+ ]), 1040)) : h("", !0),
3444
+ v(ie) ? (u(), Te(wr, { key: 9 })) : h("", !0)
3445
+ ], 46, Or));
3446
+ }
3447
+ }, nu = /* @__PURE__ */ Fr(uu, [["__scopeId", "data-v-0e7e21dd"]]), Au = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3448
+ __proto__: null,
3449
+ default: nu
3450
+ }, Symbol.toStringTag, { value: "Module" }));
3451
+ export {
3452
+ nu as V,
3453
+ Au as a,
3454
+ $u as v
3455
+ };