vue-data-ui 3.17.13 → 3.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (493) hide show
  1. package/README.md +1 -1
  2. package/dist/A11yDataTable-q2-8fSlJ.js +45 -0
  3. package/dist/Arrow-BU2Z7mfz.js +116 -0
  4. package/dist/BaseDraggableDialog-LE75fWYz.js +272 -0
  5. package/dist/BaseIcon-CL6Y7alf.js +499 -0
  6. package/dist/BaseLegendToggle-BvPOFMVZ.js +56 -0
  7. package/dist/BaseScanner-C7dmAref.js +27 -0
  8. package/dist/BaseZoomControls-DSwf4HhS.js +111 -0
  9. package/dist/ColorPicker-BGbMrtup.js +255 -0
  10. package/dist/DataTable-ZG4GX2Zg.js +150 -0
  11. package/dist/Legend-BPb8i4aC.js +114 -0
  12. package/dist/NonSvgPenAndPaper-BT3YMjgo.js +577 -0
  13. package/dist/PackageVersion-B1cPtZ3Q.js +11 -0
  14. package/dist/PenAndPaper-DxBCVZAx.js +461 -0
  15. package/dist/RecursiveCircles-DPpLel6f.js +117 -0
  16. package/dist/RecursiveLabels-DBMJf_to.js +56 -0
  17. package/dist/RecursiveLinks-D06dBL4a.js +78 -0
  18. package/dist/Shape-Dbug7CtK.js +141 -0
  19. package/dist/Slicer-SEdaKYPX.js +1144 -0
  20. package/dist/SlicerPreview-BLlQTUI_.js +1523 -0
  21. package/dist/SparkTooltip-BaONR2nq.js +93 -0
  22. package/dist/Title-ByyzJzpc.js +87 -0
  23. package/dist/Tooltip-V6Z0Ko-1.js +307 -0
  24. package/dist/UserOptions-Gaw1761w.js +1407 -0
  25. package/dist/_plugin-vue_export-helper-Dq1MygBL.js +8 -0
  26. package/dist/canvas-lib-DTaADQOK.js +79 -0
  27. package/dist/components/arrow.js +2 -5
  28. package/dist/components/vue-ui-3d-bar.js +2 -5
  29. package/dist/components/vue-ui-accordion.js +2 -5
  30. package/dist/components/vue-ui-age-pyramid.js +2 -5
  31. package/dist/components/vue-ui-annotator.js +2 -5
  32. package/dist/components/vue-ui-bullet.js +2 -5
  33. package/dist/components/vue-ui-bump.js +2 -5
  34. package/dist/components/vue-ui-candlestick.js +2 -5
  35. package/dist/components/vue-ui-carousel-table.js +2 -5
  36. package/dist/components/vue-ui-chestnut.js +2 -5
  37. package/dist/components/vue-ui-chord.js +2 -5
  38. package/dist/components/vue-ui-circle-pack.js +2 -5
  39. package/dist/components/vue-ui-cursor.js +2 -5
  40. package/dist/components/vue-ui-dag.js +2 -5
  41. package/dist/components/vue-ui-dashboard.js +2 -5
  42. package/dist/components/vue-ui-digits.js +2 -5
  43. package/dist/components/vue-ui-donut-evolution.js +2 -5
  44. package/dist/components/vue-ui-donut.js +2 -5
  45. package/dist/components/vue-ui-dumbbell.js +2 -5
  46. package/dist/components/vue-ui-flow.js +2 -5
  47. package/dist/components/vue-ui-funnel.js +2 -5
  48. package/dist/components/vue-ui-galaxy.js +2 -5
  49. package/dist/components/vue-ui-gauge.js +2 -5
  50. package/dist/components/vue-ui-geo.js +2 -5
  51. package/dist/components/vue-ui-gizmo.js +2 -5
  52. package/dist/components/vue-ui-heatmap.js +2 -5
  53. package/dist/components/vue-ui-history-plot.js +2 -5
  54. package/dist/components/vue-ui-horizontal-bar.js +2 -5
  55. package/dist/components/vue-ui-icon.js +2 -5
  56. package/dist/components/vue-ui-kpi.js +2 -5
  57. package/dist/components/vue-ui-mini-loader.js +2 -5
  58. package/dist/components/vue-ui-molecule.js +2 -5
  59. package/dist/components/vue-ui-mood-radar.js +2 -5
  60. package/dist/components/vue-ui-nested-donuts.js +2 -5
  61. package/dist/components/vue-ui-onion.js +2 -5
  62. package/dist/components/vue-ui-parallel-coordinate-plot.js +2 -5
  63. package/dist/components/vue-ui-pattern-seed.js +2 -5
  64. package/dist/components/vue-ui-pattern.js +2 -5
  65. package/dist/components/vue-ui-quadrant.js +2 -5
  66. package/dist/components/vue-ui-quick-chart.js +2 -5
  67. package/dist/components/vue-ui-radar.js +2 -5
  68. package/dist/components/vue-ui-rating.js +2 -5
  69. package/dist/components/vue-ui-relation-circle.js +2 -5
  70. package/dist/components/vue-ui-ridgeline.js +2 -5
  71. package/dist/components/vue-ui-rings.js +2 -5
  72. package/dist/components/vue-ui-scatter.js +2 -5
  73. package/dist/components/vue-ui-skeleton.js +2 -5
  74. package/dist/components/vue-ui-smiley.js +2 -5
  75. package/dist/components/vue-ui-spark-trend.js +2 -5
  76. package/dist/components/vue-ui-sparkbar.js +2 -5
  77. package/dist/components/vue-ui-sparkgauge.js +2 -5
  78. package/dist/components/vue-ui-sparkhistogram.js +2 -5
  79. package/dist/components/vue-ui-sparkline.js +2 -5
  80. package/dist/components/vue-ui-sparkstackbar.js +2 -5
  81. package/dist/components/vue-ui-stackbar.js +2 -5
  82. package/dist/components/vue-ui-stackline.js +2 -5
  83. package/dist/components/vue-ui-strip-plot.js +2 -5
  84. package/dist/components/vue-ui-table-heatmap.js +2 -5
  85. package/dist/components/vue-ui-table-sparkline.js +2 -5
  86. package/dist/components/vue-ui-table.js +2 -5
  87. package/dist/components/vue-ui-thermometer.js +2 -5
  88. package/dist/components/vue-ui-timer.js +2 -5
  89. package/dist/components/vue-ui-tiremarks.js +2 -5
  90. package/dist/components/vue-ui-treemap.js +2 -5
  91. package/dist/components/vue-ui-vertical-bar.js +2 -5
  92. package/dist/components/vue-ui-waffle.js +2 -5
  93. package/dist/components/vue-ui-wheel.js +2 -5
  94. package/dist/components/vue-ui-word-cloud.js +2 -5
  95. package/dist/components/vue-ui-world.js +2 -5
  96. package/dist/components/vue-ui-xy-canvas.js +2 -5
  97. package/dist/components/vue-ui-xy.js +2 -5
  98. package/dist/dom-to-png-C9UOX1d2.js +237 -0
  99. package/dist/exposedLib-BQjH823l.js +19 -0
  100. package/dist/geoProjections-CQIkC70z.js +146 -0
  101. package/dist/img-NMY-_LiJ.js +74 -0
  102. package/dist/labelUtils-BiSegLOT.js +19 -0
  103. package/dist/lib-B83ZCydz.js +1879 -0
  104. package/dist/patternUtils-B7BWu5bV.js +258 -0
  105. package/dist/pdf-Ey2KFETK.js +90 -0
  106. package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
  107. package/dist/style.css +2 -1
  108. package/dist/types/arrow.d.ts +1 -1
  109. package/dist/types/utils.d.ts +23 -0
  110. package/dist/types/vue-data-ui.d.ts +4766 -630
  111. package/dist/types/vue-ui-3d-bar.d.ts +64 -9
  112. package/dist/types/vue-ui-accordion.d.ts +4 -3
  113. package/dist/types/vue-ui-age-pyramid.d.ts +79 -9
  114. package/dist/types/vue-ui-annotator.d.ts +3 -5
  115. package/dist/types/vue-ui-bullet.d.ts +60 -9
  116. package/dist/types/vue-ui-bump.d.ts +65 -9
  117. package/dist/types/vue-ui-candlestick.d.ts +83 -9
  118. package/dist/types/vue-ui-carousel-table.d.ts +36 -6
  119. package/dist/types/vue-ui-chestnut.d.ts +66 -9
  120. package/dist/types/vue-ui-chord.d.ts +78 -9
  121. package/dist/types/vue-ui-circle-pack.d.ts +86 -9
  122. package/dist/types/vue-ui-cursor.d.ts +4 -2
  123. package/dist/types/vue-ui-dag.d.ts +92 -9
  124. package/dist/types/vue-ui-dashboard.d.ts +43 -6
  125. package/dist/types/vue-ui-digits.d.ts +4 -2
  126. package/dist/types/vue-ui-donut-evolution.d.ts +70 -9
  127. package/dist/types/vue-ui-donut.d.ts +92 -9
  128. package/dist/types/vue-ui-dumbbell.d.ts +65 -9
  129. package/dist/types/vue-ui-flow.d.ts +79 -9
  130. package/dist/types/vue-ui-funnel.d.ts +55 -9
  131. package/dist/types/vue-ui-galaxy.d.ts +83 -9
  132. package/dist/types/vue-ui-gauge.d.ts +64 -9
  133. package/dist/types/vue-ui-geo.d.ts +71 -9
  134. package/dist/types/vue-ui-gizmo.d.ts +17 -6
  135. package/dist/types/vue-ui-heatmap.d.ts +73 -9
  136. package/dist/types/vue-ui-history-plot.d.ts +82 -9
  137. package/dist/types/vue-ui-horizontal-bar.d.ts +84 -9
  138. package/dist/types/vue-ui-icon.d.ts +2 -2
  139. package/dist/types/vue-ui-kpi.d.ts +21 -7
  140. package/dist/types/vue-ui-mini-loader.d.ts +5 -3
  141. package/dist/types/vue-ui-molecule.d.ts +86 -9
  142. package/dist/types/vue-ui-mood-radar.d.ts +66 -9
  143. package/dist/types/vue-ui-nested-donuts.d.ts +80 -9
  144. package/dist/types/vue-ui-onion.d.ts +77 -9
  145. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +92 -9
  146. package/dist/types/vue-ui-pattern-seed.d.ts +1 -1
  147. package/dist/types/vue-ui-pattern.d.ts +2 -2
  148. package/dist/types/vue-ui-quadrant.d.ts +86 -9
  149. package/dist/types/vue-ui-quick-chart.d.ts +79 -9
  150. package/dist/types/vue-ui-radar.d.ts +83 -9
  151. package/dist/types/vue-ui-rating.d.ts +22 -6
  152. package/dist/types/vue-ui-relation-circle.d.ts +66 -9
  153. package/dist/types/vue-ui-ridgeline.d.ts +69 -9
  154. package/dist/types/vue-ui-rings.d.ts +70 -9
  155. package/dist/types/vue-ui-scatter.d.ts +67 -9
  156. package/dist/types/vue-ui-skeleton.d.ts +3 -2
  157. package/dist/types/vue-ui-smiley.d.ts +3 -2
  158. package/dist/types/vue-ui-spark-trend.d.ts +14 -6
  159. package/dist/types/vue-ui-sparkbar.d.ts +27 -6
  160. package/dist/types/vue-ui-sparkgauge.d.ts +20 -6
  161. package/dist/types/vue-ui-sparkhistogram.d.ts +24 -6
  162. package/dist/types/vue-ui-sparkline.d.ts +35 -6
  163. package/dist/types/vue-ui-sparkstackbar.d.ts +35 -6
  164. package/dist/types/vue-ui-stackbar.d.ts +85 -9
  165. package/dist/types/vue-ui-stackline.d.ts +81 -9
  166. package/dist/types/vue-ui-strip-plot.d.ts +66 -9
  167. package/dist/types/vue-ui-table-heatmap.d.ts +52 -6
  168. package/dist/types/vue-ui-table-sparkline.d.ts +30 -6
  169. package/dist/types/vue-ui-table.d.ts +10 -2
  170. package/dist/types/vue-ui-thermometer.d.ts +46 -9
  171. package/dist/types/vue-ui-timer.d.ts +31 -5
  172. package/dist/types/vue-ui-tiremarks.d.ts +46 -9
  173. package/dist/types/vue-ui-treemap.d.ts +73 -9
  174. package/dist/types/vue-ui-vertical-bar.d.ts +2 -2
  175. package/dist/types/vue-ui-waffle.d.ts +72 -9
  176. package/dist/types/vue-ui-wheel.d.ts +46 -9
  177. package/dist/types/vue-ui-word-cloud.d.ts +73 -9
  178. package/dist/types/vue-ui-world.d.ts +68 -9
  179. package/dist/types/vue-ui-xy-canvas.d.ts +75 -9
  180. package/dist/types/vue-ui-xy.d.ts +108 -10
  181. package/dist/useAutoSizeLabelsInsideViewbox-De0rTecW.js +50 -0
  182. package/dist/useChartAccessibility-Do37qcw2.js +12 -0
  183. package/dist/useConfig-KnOLHtlJ.js +7419 -0
  184. package/dist/useFitSvgText-C-MEdAfe.js +63 -0
  185. package/dist/useNestedProp-CcxL1gUU.js +10 -0
  186. package/dist/useObjectBindings-Dc8Rf6Qy.js +189 -0
  187. package/dist/usePanZoom-B-4M_gmY.js +157 -0
  188. package/dist/usePrefersMotion-BywLbIko.js +15 -0
  189. package/dist/usePrinter-CMLF900n.js +49 -0
  190. package/dist/useResponsive-CrAInupd.js +19 -0
  191. package/dist/useStableElementSize-0I1IpHPl.js +77 -0
  192. package/dist/useSvgExport-Dtu973wa.js +755 -0
  193. package/dist/useTableResponsive-DrM1xqII.js +24 -0
  194. package/dist/useThemeCheck-rFK9Zlb_.js +24 -0
  195. package/dist/useTimeLabelCollider-Dm55Emzg.js +57 -0
  196. package/dist/useTimeLabels-C0x7zUXP.js +272 -0
  197. package/dist/useUserOptionState-CjPJPTg2.js +15 -0
  198. package/dist/utils.js +27 -44
  199. package/dist/vClickOutside-CbX_bC9A.js +13 -0
  200. package/dist/vue-data-ui-D1REqS_k.js +274 -0
  201. package/dist/vue-data-ui.js +76 -167
  202. package/dist/vue-ui-3d-bar-vO_kSCd6.js +1747 -0
  203. package/dist/vue-ui-accordion-Cf-jZELj.js +81 -0
  204. package/dist/vue-ui-age-pyramid-DHXhrP_3.js +1226 -0
  205. package/dist/vue-ui-annotator-B0o6czmF.js +2899 -0
  206. package/dist/vue-ui-bullet-C93-cf0H.js +700 -0
  207. package/dist/vue-ui-bump-C_Szk9AZ.js +1239 -0
  208. package/dist/vue-ui-candlestick-6JdMEJKO.js +1802 -0
  209. package/dist/vue-ui-carousel-table-CZ_HK0Iw.js +445 -0
  210. package/dist/vue-ui-chestnut-B8ixU585.js +2000 -0
  211. package/dist/vue-ui-chord-DC5sLapz.js +1381 -0
  212. package/dist/vue-ui-circle-pack-CsmSEwt3.js +1183 -0
  213. package/dist/vue-ui-cursor-B-QODIL3.js +283 -0
  214. package/dist/vue-ui-dag-C9LYfjS_.js +2899 -0
  215. package/dist/vue-ui-dashboard-D-f4ZaLi.js +503 -0
  216. package/dist/vue-ui-digits-CcB3odN7.js +209 -0
  217. package/dist/vue-ui-donut-DR0ngnZC.js +2396 -0
  218. package/dist/vue-ui-donut-evolution-BXpOscCe.js +1490 -0
  219. package/dist/vue-ui-dumbbell-CB_clJWA.js +1517 -0
  220. package/dist/vue-ui-flow-CUiOAEy1.js +1223 -0
  221. package/dist/vue-ui-funnel-BAlGDK0o.js +767 -0
  222. package/dist/vue-ui-galaxy-DbYNfSHb.js +1062 -0
  223. package/dist/vue-ui-gauge-Cie7jykM.js +910 -0
  224. package/dist/vue-ui-geo-Ce_gBRye.js +1504 -0
  225. package/dist/vue-ui-gizmo-B9POi_SN.js +225 -0
  226. package/dist/vue-ui-heatmap-DFfRSbnk.js +1556 -0
  227. package/dist/vue-ui-history-plot-DHp5WFgx.js +1551 -0
  228. package/dist/vue-ui-horizontal-bar-DI4yoARv.js +1669 -0
  229. package/dist/vue-ui-kpi-oUfso4UP.js +96 -0
  230. package/dist/vue-ui-mini-loader-aZMi1_uX.js +125 -0
  231. package/dist/vue-ui-molecule-D72kzel_.js +912 -0
  232. package/dist/vue-ui-mood-radar-Tw2ZFP7Y.js +1138 -0
  233. package/dist/vue-ui-nested-donuts-Bza1LczX.js +1472 -0
  234. package/dist/vue-ui-onion-BOuuib5d.js +1188 -0
  235. package/dist/vue-ui-parallel-coordinate-plot-BuQUq6-o.js +1413 -0
  236. package/dist/vue-ui-pattern-Bj-IPFr2.js +154 -0
  237. package/dist/vue-ui-pattern-seed-abRweCDE.js +61 -0
  238. package/dist/vue-ui-quadrant-zNFIXNt9.js +1966 -0
  239. package/dist/vue-ui-quick-chart-B1a8QVUn.js +2459 -0
  240. package/dist/vue-ui-radar-VFn-YP_2.js +1214 -0
  241. package/dist/vue-ui-rating-Dxgn21FA.js +343 -0
  242. package/dist/vue-ui-relation-circle-B0sZaCgX.js +914 -0
  243. package/dist/vue-ui-ridgeline-BsBAbg5V.js +1612 -0
  244. package/dist/vue-ui-rings-CDwUzMF-.js +1231 -0
  245. package/dist/vue-ui-scatter-Du_b-zM8.js +2380 -0
  246. package/dist/vue-ui-skeleton-BAq6J_6G.js +2556 -0
  247. package/dist/vue-ui-smiley-CoHvkS0c.js +356 -0
  248. package/dist/vue-ui-spark-trend-BmCcJ17C.js +438 -0
  249. package/dist/vue-ui-sparkbar-9z05IMx8.js +393 -0
  250. package/dist/vue-ui-sparkgauge-BlWri9DP.js +255 -0
  251. package/dist/vue-ui-sparkhistogram-CHZTt8d8.js +560 -0
  252. package/dist/vue-ui-sparkline-DirLW9Nd.js +1503 -0
  253. package/dist/vue-ui-sparkstackbar-Dk6cEI2o.js +660 -0
  254. package/dist/vue-ui-stackbar-DNIrGHkt.js +2235 -0
  255. package/dist/vue-ui-stackline-HoWn_ur2.js +2362 -0
  256. package/dist/vue-ui-strip-plot-Bi8u_fLr.js +1328 -0
  257. package/dist/vue-ui-table-XLjOOfdI.js +1338 -0
  258. package/dist/vue-ui-table-heatmap-DvnFiveI.js +334 -0
  259. package/dist/vue-ui-table-sparkline-CSZf8XxP.js +697 -0
  260. package/dist/vue-ui-thermometer-7eUO_7CP.js +753 -0
  261. package/dist/vue-ui-timer-DCbxsREb.js +439 -0
  262. package/dist/vue-ui-tiremarks-p_sfTufv.js +542 -0
  263. package/dist/vue-ui-treemap-BdZOW7TM.js +1575 -0
  264. package/dist/vue-ui-waffle-Bf9dWWCM.js +1350 -0
  265. package/dist/vue-ui-wheel-CZrIiB0K.js +875 -0
  266. package/dist/vue-ui-word-cloud-BeLjxoRe.js +1644 -0
  267. package/dist/vue-ui-world-D9ahzEQ2.js +14252 -0
  268. package/dist/vue-ui-xy-DrvbVuHO.js +4063 -0
  269. package/dist/vue-ui-xy-canvas-DU7vFrQr.js +1774 -0
  270. package/dist/vue_ui_3d_bar-CXKqO5Ej.js +185 -0
  271. package/dist/vue_ui_age_pyramid-BON8QI6X.js +301 -0
  272. package/dist/vue_ui_bullet-CE5sFT7u.js +186 -0
  273. package/dist/vue_ui_bump-frnXaXul.js +201 -0
  274. package/dist/vue_ui_candlestick-sY6UtOop.js +374 -0
  275. package/dist/vue_ui_chestnut-BiUZFv40.js +305 -0
  276. package/dist/vue_ui_chord-DpyR_b9A.js +275 -0
  277. package/dist/vue_ui_circle_pack-DBKz_Fi_.js +130 -0
  278. package/dist/vue_ui_dag-Ci_MOnvd.js +258 -0
  279. package/dist/vue_ui_donut-Cx2_BGcQ.js +358 -0
  280. package/dist/vue_ui_donut_evolution-CAJefrHs.js +717 -0
  281. package/dist/vue_ui_dumbbell-CClzAZTN.js +304 -0
  282. package/dist/vue_ui_flow-CCHO1Lo9.js +238 -0
  283. package/dist/vue_ui_funnel-h8q2mRpC.js +234 -0
  284. package/dist/vue_ui_galaxy-70vtkEBw.js +265 -0
  285. package/dist/vue_ui_gauge-C17CgfzN.js +178 -0
  286. package/dist/vue_ui_geo-C0UbQ0Lc.js +248 -0
  287. package/dist/vue_ui_heatmap-BqPP3J4M.js +319 -0
  288. package/dist/vue_ui_history_plot-C5nytDHh.js +413 -0
  289. package/dist/vue_ui_horizontal_bar-Bqxorkc_.js +341 -0
  290. package/dist/vue_ui_molecule-Dka4JBOp.js +231 -0
  291. package/dist/vue_ui_mood_radar-Dg4ijm53.js +281 -0
  292. package/dist/vue_ui_nested_donuts-BY9cOoHF.js +273 -0
  293. package/dist/vue_ui_onion-DTV9cup-.js +293 -0
  294. package/dist/vue_ui_parallel_coordinate_plot-CNWrDh96.js +278 -0
  295. package/dist/vue_ui_quadrant-3kjYvxpj.js +428 -0
  296. package/dist/vue_ui_quick_chart--VaYQuM4.js +139 -0
  297. package/dist/vue_ui_radar-Dxx9GJmj.js +306 -0
  298. package/dist/vue_ui_relation_circle-Cr0I2SoU.js +98 -0
  299. package/dist/vue_ui_ridgeline-CAtYca4b.js +767 -0
  300. package/dist/vue_ui_rings-DXC1VeX5.js +320 -0
  301. package/dist/vue_ui_scatter-D2S2j0ap.js +479 -0
  302. package/dist/vue_ui_spark_trend-BHMQ6_1p.js +82 -0
  303. package/dist/vue_ui_sparkbar-BR6hbuDE.js +64 -0
  304. package/dist/vue_ui_sparkgauge-xfPRHnMv.js +90 -0
  305. package/dist/vue_ui_sparkhistogram-CJRENZ1C.js +123 -0
  306. package/dist/vue_ui_sparkline-wgk7yO7E.js +151 -0
  307. package/dist/vue_ui_sparkstackbar-C5qZMmAl.js +175 -0
  308. package/dist/vue_ui_stackbar-BW_C3MXw.js +412 -0
  309. package/dist/vue_ui_stackline-DpI2LnjO.js +426 -0
  310. package/dist/vue_ui_strip_plot-8ZelqC5b.js +301 -0
  311. package/dist/vue_ui_table_heatmap-BGUjA0WA.js +80 -0
  312. package/dist/vue_ui_table_sparkline-i0Q-N_we.js +124 -0
  313. package/dist/vue_ui_thermometer-CuN7Gpez.js +123 -0
  314. package/dist/vue_ui_tiremarks-A6UHC0c3.js +122 -0
  315. package/dist/vue_ui_treemap-BQp06q-g.js +328 -0
  316. package/dist/vue_ui_vertical_bar-CJSD1FZS.js +247 -0
  317. package/dist/vue_ui_waffle-C_Ev4l7B.js +292 -0
  318. package/dist/vue_ui_wheel-DdkTPXJU.js +133 -0
  319. package/dist/vue_ui_word_cloud-B1PbsYPc.js +254 -0
  320. package/dist/vue_ui_xy-BYPqfYyx.js +482 -0
  321. package/dist/vue_ui_xy_canvas-CMHGNrLf.js +408 -0
  322. package/package.json +7 -7
  323. package/dist/A11yDataTable-BpmuNomI.js +0 -54
  324. package/dist/Arrow-dSvLFssU.js +0 -101
  325. package/dist/BaseDraggableDialog-Di8Hlru3.js +0 -249
  326. package/dist/BaseIcon-DX0hTWa-.js +0 -476
  327. package/dist/BaseLegendToggle-cMP8M2u0.js +0 -47
  328. package/dist/BaseScanner-C2j3TsSY.js +0 -36
  329. package/dist/BaseZoomControls-CVSC1-SU.js +0 -123
  330. package/dist/ColorPicker-bAxGcXK0.js +0 -271
  331. package/dist/DataTable-cMnb68Ik.js +0 -145
  332. package/dist/Legend-DGN5lY60.js +0 -104
  333. package/dist/NonSvgPenAndPaper-B6E0zEYe.js +0 -573
  334. package/dist/PackageVersion-BfrCAH6_.js +0 -10
  335. package/dist/PenAndPaper-CJDoB5H9.js +0 -527
  336. package/dist/RecursiveCircles-BE6GoMmo.js +0 -101
  337. package/dist/RecursiveLabels-BhQMS9Sm.js +0 -55
  338. package/dist/RecursiveLinks-BDwyYfP-.js +0 -83
  339. package/dist/Shape-CxJ5_Rre.js +0 -116
  340. package/dist/Slicer-D7UcO8sN.js +0 -1145
  341. package/dist/SlicerPreview-D_CgrN_7.js +0 -1580
  342. package/dist/SparkTooltip-D4bM-kfz.js +0 -68
  343. package/dist/Title-BbKoiBk2.js +0 -88
  344. package/dist/Tooltip-Cvt7Fi0Q.js +0 -299
  345. package/dist/UserOptions-DVduN6X7.js +0 -1474
  346. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  347. package/dist/dom-to-png-DGvx6i5V.js +0 -262
  348. package/dist/exposedLib-sJvY1pST.js +0 -22
  349. package/dist/geoProjections-BFq2sOBY.js +0 -162
  350. package/dist/img-CjTQXS0U.js +0 -57
  351. package/dist/labelUtils-DX9oyq3C.js +0 -26
  352. package/dist/lib-DMzrGQHK.js +0 -2477
  353. package/dist/patternUtils-BINhU4Ky.js +0 -615
  354. package/dist/pdf-C4H4o1Cj.js +0 -88
  355. package/dist/useAutoSizeLabelsInsideViewbox-izlGDfwu.js +0 -55
  356. package/dist/useChartAccessibility-cp6XQtqi.js +0 -15
  357. package/dist/useConfig-CG4HT3wS.js +0 -7901
  358. package/dist/useFitSvgText-2crs6Fv5.js +0 -69
  359. package/dist/useNestedProp-DH0BEVVS.js +0 -13
  360. package/dist/useObjectBindings-Dixg-RIe.js +0 -228
  361. package/dist/usePanZoom-BbDhcKWf.js +0 -141
  362. package/dist/usePrefersMotion-Co0nj1eS.js +0 -17
  363. package/dist/usePrinter-C4t8DdQ-.js +0 -51
  364. package/dist/useResponsive-DfdjqQps.js +0 -195
  365. package/dist/useStableElementSize-C48ZVcZQ.js +0 -77
  366. package/dist/useSvgExport-BTG4hVPO.js +0 -870
  367. package/dist/useTableResponsive-BpfiEtzR.js +0 -26
  368. package/dist/useThemeCheck-C9Ccl7U9.js +0 -36
  369. package/dist/useTimeLabelCollider-D3JeJ6Ye.js +0 -86
  370. package/dist/useTimeLabels-Cv0tD9In.js +0 -307
  371. package/dist/useUserOptionState-B7Ej974k.js +0 -19
  372. package/dist/vClickOutside-C6WiFswA.js +0 -13
  373. package/dist/vue-data-ui-D1ZI7Y4l.js +0 -433
  374. package/dist/vue-ui-3d-bar-DEjKYzI5.js +0 -1824
  375. package/dist/vue-ui-accordion-DFtpH_16.js +0 -92
  376. package/dist/vue-ui-age-pyramid-LiC9hTjP.js +0 -1179
  377. package/dist/vue-ui-annotator-DrKnQoHf.js +0 -2991
  378. package/dist/vue-ui-bullet-DdxEINdq.js +0 -769
  379. package/dist/vue-ui-bump-CdgO1V7z.js +0 -1250
  380. package/dist/vue-ui-candlestick-DxJnPwto.js +0 -1775
  381. package/dist/vue-ui-carousel-table-CMefu5TI.js +0 -487
  382. package/dist/vue-ui-chestnut-BnGN72PO.js +0 -2001
  383. package/dist/vue-ui-chord-DWyar45U.js +0 -1457
  384. package/dist/vue-ui-circle-pack-CQ8vF2XH.js +0 -1076
  385. package/dist/vue-ui-cursor-HHOdkmyB.js +0 -260
  386. package/dist/vue-ui-dag-BDWPBElq.js +0 -3209
  387. package/dist/vue-ui-dashboard-Dg_I3X2a.js +0 -627
  388. package/dist/vue-ui-digits-CZmdir8V.js +0 -211
  389. package/dist/vue-ui-donut-BKegKHxj.js +0 -2608
  390. package/dist/vue-ui-donut-evolution-047dE4Lu.js +0 -1578
  391. package/dist/vue-ui-dumbbell-BL4ZMChj.js +0 -1552
  392. package/dist/vue-ui-flow-BAqtyunQ.js +0 -1279
  393. package/dist/vue-ui-funnel-Pl2sEOZs.js +0 -823
  394. package/dist/vue-ui-galaxy-CBF5Wsax.js +0 -1108
  395. package/dist/vue-ui-gauge-COV_S0Vp.js +0 -955
  396. package/dist/vue-ui-geo-CaPXElPf.js +0 -1510
  397. package/dist/vue-ui-gizmo-Csn7up96.js +0 -238
  398. package/dist/vue-ui-heatmap-Cpb0BYLa.js +0 -1694
  399. package/dist/vue-ui-history-plot-ZZEdzFCE.js +0 -1564
  400. package/dist/vue-ui-horizontal-bar-BonPYUZf.js +0 -1735
  401. package/dist/vue-ui-kpi-DoHhSsDK.js +0 -130
  402. package/dist/vue-ui-mini-loader-DOTBVCLE.js +0 -138
  403. package/dist/vue-ui-molecule-mVYnXouV.js +0 -945
  404. package/dist/vue-ui-mood-radar-DPvwnc3z.js +0 -1197
  405. package/dist/vue-ui-nested-donuts-C7E6TXrZ.js +0 -1702
  406. package/dist/vue-ui-onion-BGIlFhGB.js +0 -1207
  407. package/dist/vue-ui-parallel-coordinate-plot-C6G_A9ua.js +0 -1432
  408. package/dist/vue-ui-pattern-mXZW_pvA.js +0 -146
  409. package/dist/vue-ui-pattern-seed-BcNlxb2i.js +0 -36
  410. package/dist/vue-ui-quadrant-CVpIeYOB.js +0 -1918
  411. package/dist/vue-ui-quick-chart-CcV8qn9-.js +0 -2514
  412. package/dist/vue-ui-radar-G4AV1rBo.js +0 -1259
  413. package/dist/vue-ui-rating-CqPlP88P.js +0 -370
  414. package/dist/vue-ui-relation-circle-CkZ8oFVV.js +0 -856
  415. package/dist/vue-ui-ridgeline-CBTyYn6Q.js +0 -1737
  416. package/dist/vue-ui-rings-CSIOqFiP.js +0 -1256
  417. package/dist/vue-ui-scatter-AuC46ufT.js +0 -2345
  418. package/dist/vue-ui-skeleton-YD6rZjY_.js +0 -2475
  419. package/dist/vue-ui-smiley-CY0WFv2j.js +0 -391
  420. package/dist/vue-ui-spark-trend-D8KGIt-R.js +0 -423
  421. package/dist/vue-ui-sparkbar-BjWGJjzN.js +0 -424
  422. package/dist/vue-ui-sparkgauge-Dab5mss7.js +0 -285
  423. package/dist/vue-ui-sparkhistogram-D0rsmiPh.js +0 -559
  424. package/dist/vue-ui-sparkline-BCaauQuX.js +0 -1550
  425. package/dist/vue-ui-sparkstackbar-NT5yD6xA.js +0 -672
  426. package/dist/vue-ui-stackbar-ChBk_A1c.js +0 -2393
  427. package/dist/vue-ui-stackline-Cujamlze.js +0 -2490
  428. package/dist/vue-ui-strip-plot-CGBumG6I.js +0 -1293
  429. package/dist/vue-ui-table-BX2iMku4.js +0 -1726
  430. package/dist/vue-ui-table-heatmap-KXgXYVXm.js +0 -353
  431. package/dist/vue-ui-table-sparkline-C3NWnry0.js +0 -803
  432. package/dist/vue-ui-thermometer-DvdceZB1.js +0 -743
  433. package/dist/vue-ui-timer-XWAbvuAY.js +0 -504
  434. package/dist/vue-ui-tiremarks-B-YI1RlT.js +0 -578
  435. package/dist/vue-ui-treemap-AzorGfmd.js +0 -1757
  436. package/dist/vue-ui-waffle-CKtUvdTE.js +0 -1442
  437. package/dist/vue-ui-wheel-CnsLEArZ.js +0 -908
  438. package/dist/vue-ui-word-cloud-iAme2ihe.js +0 -1644
  439. package/dist/vue-ui-world-D5rrC9rw.js +0 -14452
  440. package/dist/vue-ui-xy-C_Q9chQe.js +0 -4468
  441. package/dist/vue-ui-xy-canvas-DG0299qE.js +0 -2107
  442. package/dist/vue_ui_3d_bar-CL0iX8Qi.js +0 -22
  443. package/dist/vue_ui_age_pyramid-8H8WSL7J.js +0 -22
  444. package/dist/vue_ui_bullet-Ckqieba5.js +0 -22
  445. package/dist/vue_ui_bump-CIht647H.js +0 -22
  446. package/dist/vue_ui_candlestick-BAMn-VGw.js +0 -22
  447. package/dist/vue_ui_chestnut-BloFvDuV.js +0 -22
  448. package/dist/vue_ui_chord-Bc1_ocwK.js +0 -22
  449. package/dist/vue_ui_circle_pack-CLmw8nHe.js +0 -22
  450. package/dist/vue_ui_dag-ZOwuDBZ8.js +0 -22
  451. package/dist/vue_ui_donut-CA4dgV8J.js +0 -22
  452. package/dist/vue_ui_donut_evolution-DFQU-rqE.js +0 -22
  453. package/dist/vue_ui_dumbbell-BCOHDiPk.js +0 -22
  454. package/dist/vue_ui_flow-BErINgox.js +0 -22
  455. package/dist/vue_ui_funnel-yuaMZ-yb.js +0 -22
  456. package/dist/vue_ui_galaxy-D95AN4FT.js +0 -22
  457. package/dist/vue_ui_gauge-BMEuRC4J.js +0 -22
  458. package/dist/vue_ui_geo--kg4VoVX.js +0 -22
  459. package/dist/vue_ui_heatmap-C9u993qE.js +0 -22
  460. package/dist/vue_ui_history_plot-BCKk1CrQ.js +0 -22
  461. package/dist/vue_ui_horizontal_bar-BEagrV0T.js +0 -22
  462. package/dist/vue_ui_molecule-BtvlINUh.js +0 -22
  463. package/dist/vue_ui_mood_radar-BUs6Fdn8.js +0 -22
  464. package/dist/vue_ui_nested_donuts-DvTrWT_C.js +0 -22
  465. package/dist/vue_ui_onion-CxWH9_OZ.js +0 -22
  466. package/dist/vue_ui_parallel_coordinate_plot-DH3cFJ3n.js +0 -22
  467. package/dist/vue_ui_quadrant-DjRs--Uz.js +0 -22
  468. package/dist/vue_ui_quick_chart-DMCjEjPe.js +0 -22
  469. package/dist/vue_ui_radar-DryGBOrz.js +0 -22
  470. package/dist/vue_ui_relation_circle-CCroen7h.js +0 -22
  471. package/dist/vue_ui_ridgeline-j4rVmpEp.js +0 -22
  472. package/dist/vue_ui_rings-CxOrekqA.js +0 -22
  473. package/dist/vue_ui_scatter-Bu1EAy9H.js +0 -22
  474. package/dist/vue_ui_spark_trend-3BjrSprO.js +0 -22
  475. package/dist/vue_ui_sparkbar-BsMzz5Um.js +0 -22
  476. package/dist/vue_ui_sparkgauge-KnjASOZs.js +0 -22
  477. package/dist/vue_ui_sparkhistogram-GBdzIVvS.js +0 -22
  478. package/dist/vue_ui_sparkline-CQ8DJVJx.js +0 -22
  479. package/dist/vue_ui_sparkstackbar-BSexvOuM.js +0 -22
  480. package/dist/vue_ui_stackbar-CuDC4O4b.js +0 -22
  481. package/dist/vue_ui_stackline-QTh-nuxE.js +0 -22
  482. package/dist/vue_ui_strip_plot-B9ypi_F3.js +0 -22
  483. package/dist/vue_ui_table_heatmap-CkvipPVy.js +0 -16
  484. package/dist/vue_ui_table_sparkline-yQdijcyJ.js +0 -22
  485. package/dist/vue_ui_thermometer-BTmjRBH8.js +0 -22
  486. package/dist/vue_ui_tiremarks-DBotWfi8.js +0 -22
  487. package/dist/vue_ui_treemap-D9-AIkT-.js +0 -22
  488. package/dist/vue_ui_vertical_bar-CELc39b8.js +0 -18
  489. package/dist/vue_ui_waffle-M2h-uJQ_.js +0 -22
  490. package/dist/vue_ui_wheel-LqBz3lv4.js +0 -22
  491. package/dist/vue_ui_word_cloud-mKAtBxHR.js +0 -22
  492. package/dist/vue_ui_xy-esktmpg-.js +0 -22
  493. package/dist/vue_ui_xy_canvas-6BBDSowT.js +0 -22
@@ -0,0 +1,4063 @@
1
+ import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
2
+ import { At as t, B as n, D as r, F as i, G as a, H as o, I as s, It as c, J as l, L as u, Lt as ee, M as te, Mt as d, O as f, Ot as p, P as m, R as ne, Rt as re, S as ie, St as ae, T as oe, Tt as se, X as ce, _t as le, a as h, c as ue, dt as g, et as _, g as de, h as fe, i as v, j as pe, jt as me, k as he, l as ge, mt as _e, n as ve, nt as ye, pt as be, r as xe, s as Se, v as y, w as Ce, x as we, y as Te, z as Ee, zt as De } from "./lib-B83ZCydz.js";
3
+ import { n as Oe, r as ke, t as Ae } from "./useTimeLabels-C0x7zUXP.js";
4
+ import { t as je } from "./useConfig-KnOLHtlJ.js";
5
+ import { t as Me } from "./usePrinter-CMLF900n.js";
6
+ import { n as Ne, t as Pe } from "./BaseScanner-C7dmAref.js";
7
+ import { t as Fe } from "./useSvgExport-Dtu973wa.js";
8
+ import { t as Ie } from "./useNestedProp-CcxL1gUU.js";
9
+ import { t as Le } from "./useThemeCheck-rFK9Zlb_.js";
10
+ import { t as Re } from "./useStableElementSize-0I1IpHPl.js";
11
+ import { t as ze } from "./useTimeLabelCollider-Dm55Emzg.js";
12
+ import { t as Be } from "./img-NMY-_LiJ.js";
13
+ import { n as Ve } from "./Title-ByyzJzpc.js";
14
+ import { t as He } from "./vue_ui_xy-BYPqfYyx.js";
15
+ import { t as Ue } from "./Shape-Dbug7CtK.js";
16
+ import { t as We } from "./_plugin-vue_export-helper-Dq1MygBL.js";
17
+ import { t as Ge } from "./SlicerPreview-BLlQTUI_.js";
18
+ import { t as Ke } from "./vue-ui-accordion-Cf-jZELj.js";
19
+ import { t as qe } from "./BaseLegendToggle-BvPOFMVZ.js";
20
+ import { t as Je } from "./A11yDataTable-q2-8fSlJ.js";
21
+ import { Fragment as b, Teleport as Ye, computed as x, createBlock as Xe, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createSlots as Ze, createTextVNode as Qe, createVNode as $e, defineAsyncComponent as et, getCurrentInstance as tt, guardReactiveProps as T, mergeProps as nt, nextTick as rt, normalizeClass as it, normalizeProps as E, normalizeStyle as D, onBeforeUnmount as at, onMounted as ot, openBlock as O, ref as k, renderList as A, renderSlot as j, resolveDynamicComponent as st, shallowRef as ct, toDisplayString as M, toRefs as lt, unref as N, useSlots as ut, vModelCheckbox as dt, watch as ft, watchEffect as pt, withCtx as P, withDirectives as mt } from "vue";
22
+ //#region src/components/vue-ui-xy.vue
23
+ var ht = /* @__PURE__ */ e({ default: () => F }), gt = ["id"], _t = ["id"], vt = ["id"], yt = { style: { position: "relative" } }, bt = [
24
+ "viewBox",
25
+ "aria-label",
26
+ "aria-describedby"
27
+ ], xt = [
28
+ "x",
29
+ "y",
30
+ "width",
31
+ "height"
32
+ ], St = { key: 1 }, Ct = { class: "vue-ui-xy-grid" }, wt = [
33
+ "stroke",
34
+ "x1",
35
+ "x2",
36
+ "y1",
37
+ "y2"
38
+ ], Tt = [
39
+ "stroke",
40
+ "x1",
41
+ "x2",
42
+ "y1",
43
+ "y2"
44
+ ], Et = { key: 1 }, Dt = [
45
+ "x1",
46
+ "x2",
47
+ "y1",
48
+ "y2",
49
+ "stroke"
50
+ ], Ot = [
51
+ "x1",
52
+ "x2",
53
+ "y1",
54
+ "y2",
55
+ "stroke"
56
+ ], kt = [
57
+ "x1",
58
+ "x2",
59
+ "y1",
60
+ "y2",
61
+ "stroke"
62
+ ], At = { key: 3 }, jt = ["d", "stroke"], Mt = { key: 4 }, Nt = ["d", "stroke"], Pt = ["id"], Ft = ["stop-color"], It = ["stop-color"], Lt = ["stop-color"], Rt = ["id"], zt = ["stop-color"], Bt = ["stop-color"], Vt = ["stop-color"], Ht = ["id"], Ut = ["stop-color"], Wt = ["stop-color"], Gt = ["id"], Kt = ["stop-color"], qt = ["stop-color"], Jt = ["id"], Yt = ["stop-color"], Xt = ["stop-color"], Zt = { key: 0 }, Qt = ["id"], $t = ["stop-color", "offset"], en = [
63
+ "x",
64
+ "y",
65
+ "height",
66
+ "width",
67
+ "fill"
68
+ ], tn = [
69
+ "x",
70
+ "y",
71
+ "width"
72
+ ], nn = { key: 0 }, rn = [
73
+ "x",
74
+ "y",
75
+ "height",
76
+ "width",
77
+ "fill"
78
+ ], an = [
79
+ "x",
80
+ "y",
81
+ "height",
82
+ "width",
83
+ "rx",
84
+ "fill",
85
+ "stroke",
86
+ "stroke-width"
87
+ ], on = [
88
+ "x",
89
+ "y",
90
+ "height",
91
+ "width",
92
+ "rx",
93
+ "fill",
94
+ "stroke",
95
+ "stroke-width"
96
+ ], sn = [
97
+ "width",
98
+ "x",
99
+ "y"
100
+ ], cn = [
101
+ "stroke",
102
+ "x1",
103
+ "x2",
104
+ "y1",
105
+ "y2"
106
+ ], ln = { key: 3 }, un = [
107
+ "x1",
108
+ "x2",
109
+ "y1",
110
+ "y2",
111
+ "stroke",
112
+ "stroke-width",
113
+ "stroke-dasharray"
114
+ ], dn = [
115
+ "x",
116
+ "y",
117
+ "width",
118
+ "height",
119
+ "stroke",
120
+ "stroke-width",
121
+ "stroke-linecap",
122
+ "stroke-linejoin",
123
+ "stroke-dasharray"
124
+ ], fn = [
125
+ "x1",
126
+ "x2",
127
+ "y1",
128
+ "y2",
129
+ "stroke",
130
+ "stroke-width"
131
+ ], pn = [
132
+ "fill",
133
+ "font-size",
134
+ "transform"
135
+ ], mn = [
136
+ "x1",
137
+ "x2",
138
+ "y1",
139
+ "y2",
140
+ "stroke"
141
+ ], hn = [
142
+ "x",
143
+ "y",
144
+ "font-size",
145
+ "fill"
146
+ ], gn = [
147
+ "x1",
148
+ "x2",
149
+ "y1",
150
+ "y2",
151
+ "stroke"
152
+ ], _n = [
153
+ "x",
154
+ "y",
155
+ "font-size",
156
+ "fill"
157
+ ], vn = [
158
+ "width",
159
+ "x",
160
+ "y"
161
+ ], yn = { style: { width: "100%" } }, bn = [
162
+ "d",
163
+ "stroke",
164
+ "stroke-width",
165
+ "stroke-dasharray"
166
+ ], xn = [
167
+ "d",
168
+ "stroke",
169
+ "stroke-width",
170
+ "stroke-dasharray"
171
+ ], Sn = { key: 6 }, Cn = { key: 7 }, wn = [
172
+ "d",
173
+ "fill",
174
+ "fill-opacity"
175
+ ], Tn = { key: 0 }, En = ["d", "fill"], Dn = ["d", "fill"], On = ["d", "fill"], kn = ["d", "fill"], An = [
176
+ "d",
177
+ "stroke",
178
+ "stroke-width",
179
+ "stroke-dasharray"
180
+ ], jn = [
181
+ "d",
182
+ "stroke",
183
+ "stroke-width",
184
+ "stroke-dasharray"
185
+ ], Mn = [
186
+ "d",
187
+ "stroke",
188
+ "stroke-width",
189
+ "stroke-dasharray"
190
+ ], Nn = [
191
+ "d",
192
+ "stroke",
193
+ "stroke-width",
194
+ "stroke-dasharray"
195
+ ], Pn = [
196
+ "width",
197
+ "x",
198
+ "y"
199
+ ], Fn = { style: { width: "100%" } }, In = { key: 8 }, Ln = [
200
+ "x",
201
+ "y",
202
+ "font-size",
203
+ "fill"
204
+ ], Rn = [
205
+ "x",
206
+ "y",
207
+ "font-size",
208
+ "fill",
209
+ "font-weight"
210
+ ], zn = { key: 9 }, Bn = [
211
+ "x",
212
+ "y",
213
+ "font-size",
214
+ "fill"
215
+ ], Vn = { key: 10 }, Hn = ["x", "y"], Un = ["innerHTML"], Wn = ["x", "y"], Gn = ["innerHTML"], Kn = [
216
+ "x1",
217
+ "x2",
218
+ "y1",
219
+ "y2",
220
+ "stroke"
221
+ ], qn = { key: 11 }, Jn = [
222
+ "x",
223
+ "y",
224
+ "font-size",
225
+ "fill"
226
+ ], Yn = { key: 12 }, Xn = ["x", "y"], Zn = ["innerHTML"], Qn = ["x", "y"], $n = ["innerHTML"], er = [
227
+ "x1",
228
+ "x2",
229
+ "y1",
230
+ "y2",
231
+ "stroke"
232
+ ], tr = [
233
+ "x",
234
+ "y",
235
+ "font-size",
236
+ "fill",
237
+ "innerHTML"
238
+ ], nr = [
239
+ "x",
240
+ "y",
241
+ "font-size",
242
+ "fill",
243
+ "innerHTML"
244
+ ], rr = [
245
+ "x",
246
+ "y",
247
+ "font-size",
248
+ "fill",
249
+ "innerHTML"
250
+ ], ir = [
251
+ "x",
252
+ "y",
253
+ "font-size",
254
+ "fill",
255
+ "innerHTML"
256
+ ], ar = { key: 0 }, or = ["id"], sr = ["fill", "stroke"], cr = [
257
+ "x1",
258
+ "x2",
259
+ "y1",
260
+ "y2",
261
+ "stroke",
262
+ "marker-end"
263
+ ], lr = [
264
+ "x1",
265
+ "x2",
266
+ "y1",
267
+ "y2",
268
+ "stroke",
269
+ "marker-end"
270
+ ], ur = [
271
+ "x",
272
+ "y",
273
+ "font-size",
274
+ "fill",
275
+ "stroke"
276
+ ], dr = ["id"], fr = ["stop-color"], pr = ["stop-color"], mr = [
277
+ "x",
278
+ "y",
279
+ "width",
280
+ "height",
281
+ "fill",
282
+ "onMouseenter"
283
+ ], hr = [
284
+ "font-size",
285
+ "fill",
286
+ "transform"
287
+ ], gr = [
288
+ "x",
289
+ "y",
290
+ "font-size",
291
+ "fill"
292
+ ], _r = [
293
+ "text-anchor",
294
+ "font-size",
295
+ "fill",
296
+ "transform",
297
+ "onClick"
298
+ ], vr = [
299
+ "text-anchor",
300
+ "font-size",
301
+ "fill",
302
+ "transform",
303
+ "innerHTML",
304
+ "onClick"
305
+ ], yr = { key: 15 }, br = [
306
+ "x1",
307
+ "y1",
308
+ "x2",
309
+ "y2",
310
+ "stroke",
311
+ "stroke-width",
312
+ "stroke-dasharray"
313
+ ], xr = [
314
+ "x1",
315
+ "y1",
316
+ "x2",
317
+ "y2",
318
+ "stroke",
319
+ "stroke-width",
320
+ "stroke-dasharray"
321
+ ], Sr = [
322
+ "y",
323
+ "x",
324
+ "width",
325
+ "height",
326
+ "fill"
327
+ ], Cr = [
328
+ "id",
329
+ "x",
330
+ "y",
331
+ "font-size",
332
+ "fill",
333
+ "text-anchor"
334
+ ], wr = {
335
+ key: 16,
336
+ style: { "pointer-events": "none" }
337
+ }, Tr = ["x", "y"], Er = ["innerHTML"], Dr = [
338
+ "cx",
339
+ "cy",
340
+ "r",
341
+ "fill"
342
+ ], Or = ["data-start", "data-end"], kr = {
343
+ key: 0,
344
+ style: {
345
+ position: "absolute",
346
+ top: "100%",
347
+ left: "0",
348
+ width: "100%"
349
+ },
350
+ "data-dom-to-png-ignore": "",
351
+ "aria-hidden": "true"
352
+ }, Ar = {
353
+ key: 5,
354
+ class: "vue-data-ui-watermark"
355
+ }, jr = {
356
+ class: "vue-ui-xy-tag-arrow",
357
+ height: "20",
358
+ viewBox: "0 0 10 20",
359
+ style: {
360
+ position: "absolute",
361
+ right: "100%",
362
+ top: "50%",
363
+ transform: "translateY(-50%)"
364
+ }
365
+ }, Mr = ["fill"], Nr = ["innerHTML"], Pr = {
366
+ class: "vue-ui-xy-tag-arrow",
367
+ height: "100%",
368
+ viewBox: "0 0 10 20",
369
+ style: {
370
+ position: "absolute",
371
+ left: "100%",
372
+ top: "50%",
373
+ transform: "translateY(-50%)"
374
+ }
375
+ }, Fr = ["fill"], Ir = ["innerHTML"], Lr = {
376
+ class: "vue-ui-xy-tag-arrow",
377
+ height: "20",
378
+ viewBox: "0 0 10 20",
379
+ style: {
380
+ position: "absolute",
381
+ right: "100%",
382
+ top: "50%",
383
+ transform: "translateY(-50%)"
384
+ }
385
+ }, Rr = ["fill"], zr = ["innerHTML"], Br = {
386
+ class: "vue-ui-xy-tag-arrow",
387
+ height: "100%",
388
+ viewBox: "0 0 10 20",
389
+ style: {
390
+ position: "absolute",
391
+ left: "100%",
392
+ top: "50%",
393
+ transform: "translateY(-50%)"
394
+ }
395
+ }, Vr = ["fill"], Hr = ["innerHTML"], Ur = ["id"], Wr = ["onClick", "onKeydown"], Gr = {
396
+ key: 0,
397
+ viewBox: "0 0 20 12",
398
+ height: "1em",
399
+ width: "1.43em",
400
+ "aria-hidden": "true"
401
+ }, Kr = ["stroke", "fill"], qr = {
402
+ key: 1,
403
+ viewBox: "0 0 40 40",
404
+ height: "1em",
405
+ width: "1em",
406
+ "aria-hidden": "true"
407
+ }, Jr = ["fill"], Yr = ["fill"], Xr = {
408
+ key: 2,
409
+ viewBox: "0 0 12 12",
410
+ height: "1em",
411
+ width: "1em",
412
+ "aria-hidden": "true"
413
+ }, Zr = {
414
+ style: {
415
+ display: "flex",
416
+ "flex-direction": "row",
417
+ gap: "6px",
418
+ "align-items": "center",
419
+ "padding-left": "6px"
420
+ },
421
+ "data-dom-to-png-ignore": ""
422
+ }, Qr = ["innerHTML"], F = /* @__PURE__ */ We({
423
+ __name: "vue-ui-xy",
424
+ props: {
425
+ config: {
426
+ type: Object,
427
+ default() {
428
+ return {};
429
+ }
430
+ },
431
+ dataset: {
432
+ type: Array,
433
+ default() {
434
+ return [];
435
+ }
436
+ },
437
+ selectedXIndex: {
438
+ type: Number,
439
+ default: void 0
440
+ }
441
+ },
442
+ emits: [
443
+ "selectTimeLabel",
444
+ "selectX",
445
+ "selectLegend",
446
+ "zoomStart",
447
+ "zoomEnd",
448
+ "zoomReset",
449
+ "copyAlt"
450
+ ],
451
+ setup(e, { expose: We, emit: ht }) {
452
+ let F = e, $r = et(() => import("./DataTable-ZG4GX2Zg.js")), ei = et(() => import("./Tooltip-V6Z0Ko-1.js")), ti = et(() => import("./UserOptions-Gaw1761w.js").then((e) => e.n)), ni = et(() => import("./BaseIcon-CL6Y7alf.js").then((e) => e.n)), ri = et(() => import("./vue-ui-table-sparkline-CSZf8XxP.js").then((e) => e.n)), ii = et(() => import("./PackageVersion-B1cPtZ3Q.js").then((e) => e.t)), ai = et(() => import("./PenAndPaper-DxBCVZAx.js").then((e) => e.t)), oi = et(() => import("./BaseDraggableDialog-LE75fWYz.js").then((e) => e.n)), si = ht, ci = ut(), li = tt(), { vue_ui_xy: ui } = je(), { isThemeValid: di, warnInvalidTheme: fi } = Le(), pi = k(null), mi = k(null), hi = k(null), gi = k(null), _i = k(null), vi = k(null), yi = k(null), bi = k(null), xi = k(null), Si = k(null), Ci = k(null), wi = k(null), Ti = k(null), Ei = k(null), Di = k(0), I = k(null), Oi = k(!0), ki = k(600), L = k(1e3), Ai = k("0 0 1000 600"), ji = k({
453
+ x: 0,
454
+ y: 0
455
+ }), Mi = k({
456
+ line: "line",
457
+ bar: "bar",
458
+ plot: "plot"
459
+ }), Ni = k(!1), Pi = k(!1), Fi = k(!1), Ii = k(null), R = k([]), z = k(o()), Li = k(0), Ri = k(0), zi = k(0), Bi = k(!0), Vi = k(0), B = k(null), Hi = k(!1), Ui = k(!0), Wi = k(!0), V = k(null), Gi = k({}), Ki = k(null), qi = k(!1), Ji = k(null), Yi = k(!1), Xi = k(!1), H = k(null), Zi = k(null), Qi = k({
460
+ x: 0,
461
+ y: 0
462
+ }), $i = ct(null), ea = k(!1), ta = k(0), na = k(0), ra = Re({
463
+ elementRef: $i,
464
+ minimumWidth: 2,
465
+ minimumHeight: 2,
466
+ stableFramesRequired: 2,
467
+ once: !1,
468
+ onSizeAccepted: () => {
469
+ oa();
470
+ }
471
+ });
472
+ function ia() {
473
+ $i.value = pi.value?.parentNode ?? null;
474
+ }
475
+ function aa() {
476
+ return new Promise((e) => {
477
+ requestAnimationFrame(() => {
478
+ requestAnimationFrame(e);
479
+ });
480
+ });
481
+ }
482
+ async function oa() {
483
+ let e = ++na.value;
484
+ ea.value = !1, await rt(), await aa(), await aa(), e === na.value && (ta.value += 1, ea.value = !0);
485
+ }
486
+ let sa = x(() => ({
487
+ height: ki.value,
488
+ width: L.value
489
+ }));
490
+ function ca(e) {
491
+ return Number.isFinite(e) ? Math.max(0, Math.floor(e)) : 0;
492
+ }
493
+ function la(e, t, n = 0) {
494
+ return Number.isFinite(e) && Number.isFinite(t) && Math.abs(t) > 1e-9 ? e / t : n;
495
+ }
496
+ let ua = k(!1), U = k({
497
+ xAxis: 18,
498
+ yAxis: 12,
499
+ dataLabels: 20,
500
+ plotLabels: 10
501
+ }), da = k({
502
+ plot: 3,
503
+ line: 3
504
+ });
505
+ ot(() => {
506
+ qi.value = !0, F.dataset.length && F.dataset.forEach((e, t) => {
507
+ [null, void 0].includes(e.series) && ce({
508
+ componentName: "VueUiXy",
509
+ type: "datasetSerieAttribute",
510
+ property: "series (number[])",
511
+ index: t,
512
+ debug: _a.value
513
+ });
514
+ }), ia(), ra.start(), oa();
515
+ });
516
+ function fa() {
517
+ if (!Object.keys(F.config || {}).length) return ui;
518
+ let e = Ie({
519
+ userConfig: F.config,
520
+ defaultConfig: ui
521
+ });
522
+ F.config && g(F.config, "chart.highlightArea") && (Array.isArray(F.config.chart.highlightArea) ? e.chart.highlightArea = F.config.chart.highlightArea : e.chart.highlightArea = [F.config.chart.highlightArea]), F.config && g(F.config, "chart.annotations") && Array.isArray(F.config.chart.annotations) && F.config.chart.annotations.length ? e.chart.annotations = F.config.chart.annotations.map((e) => Ie({
523
+ defaultConfig: ui.chart.annotations[0],
524
+ userConfig: e
525
+ })) : e.chart.annotations = [], F.config && g(F.config, "chart.grid.position") && F.config.chart.grid.position === "start" && F.dataset.length && F.dataset.some((e) => e.type === "bar") && (e.chart.grid.position = "middle", g(F.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), F.config && g(F.config, "chart.highlightArea") && (Array.isArray(F.config.chart.highlightArea) ? e.chart.highlightArea = F.config.chart.highlightArea.map((e) => pa({
526
+ defaultConfig: ui.chart.highlightArea,
527
+ userConfig: e
528
+ })) : e.chart.highlightArea = pa({
529
+ defaultConfig: ui.chart.highlightArea,
530
+ userConfig: F.config.chart.highlightArea
531
+ }));
532
+ let t = e.theme;
533
+ if (!t) return e;
534
+ if (!di.value(e)) return fi(e), e;
535
+ let n = Ie({
536
+ userConfig: He[t] || F.config,
537
+ defaultConfig: e
538
+ }), r = Ie({
539
+ userConfig: F.config,
540
+ defaultConfig: n
541
+ });
542
+ return {
543
+ ...r,
544
+ customPalette: r.customPalette.length ? r.customPalette : ee[t] || se
545
+ };
546
+ }
547
+ function pa({ defaultConfig: e, userConfig: t }) {
548
+ return Ie({
549
+ defaultConfig: e,
550
+ userConfig: t
551
+ });
552
+ }
553
+ let ma = x({
554
+ get() {
555
+ return !!F.dataset && F.dataset.length;
556
+ },
557
+ set(e) {
558
+ return e;
559
+ }
560
+ }), W = k(fa()), ha = x(() => W.value.chart.userOptions.useCursorPointer), G = k({
561
+ dataLabels: { show: !0 },
562
+ showTooltip: !0,
563
+ showTable: !1,
564
+ isStacked: !1,
565
+ useIndividualScale: !1
566
+ });
567
+ function ga() {
568
+ ua.value ? (G.value.showTooltip = W.value.chart.tooltip.show === !0, G.value.isStacked = W.value.chart.grid.labels.yAxis.stacked, G.value.useIndividualScale ?? (G.value.useIndividualScale = W.value.chart.grid.labels.yAxis.useIndividualScale)) : (G.value = {
569
+ dataLabels: { show: !0 },
570
+ showTooltip: W.value.chart.tooltip.show === !0,
571
+ showTable: W.value.showTable === !0,
572
+ isStacked: W.value.chart.grid.labels.yAxis.stacked,
573
+ useIndividualScale: W.value.chart.grid.labels.yAxis.useIndividualScale
574
+ }, ua.value = !0);
575
+ }
576
+ let _a = x(() => !!W.value.debug), va = x(() => De({
577
+ defaultConfig: {
578
+ useCssAnimation: !1,
579
+ showTable: !1,
580
+ chart: {
581
+ annotations: [],
582
+ highlightArea: [],
583
+ backgroundColor: "#99999930",
584
+ grid: {
585
+ stroke: "#6A6A6A",
586
+ labels: {
587
+ show: !1,
588
+ axis: {
589
+ yLabel: "",
590
+ xLabel: ""
591
+ },
592
+ xAxisLabels: { show: !1 },
593
+ yAxis: {
594
+ commonScaleSteps: 10,
595
+ useNiceScale: !0,
596
+ scaleMin: 0,
597
+ scaleMax: 134
598
+ },
599
+ zeroLine: { show: !0 }
600
+ }
601
+ },
602
+ padding: {
603
+ top: 12,
604
+ bottom: 24,
605
+ left: 24,
606
+ right: 24
607
+ },
608
+ userOptions: { show: !1 },
609
+ zoom: {
610
+ show: !1,
611
+ startIndex: null,
612
+ endIndex: null
613
+ }
614
+ },
615
+ bar: {
616
+ serieName: { show: !1 },
617
+ labels: { show: !1 },
618
+ border: {
619
+ useSerieColor: !1,
620
+ stroke: "#999999"
621
+ }
622
+ },
623
+ line: {
624
+ dot: {
625
+ useSerieColor: !1,
626
+ fill: "#8A8A8A"
627
+ },
628
+ labels: { show: !1 }
629
+ }
630
+ },
631
+ userConfig: W.value.skeletonConfig ?? {}
632
+ })), ya = x(() => F.config?.skeletonDataset ?? [{
633
+ name: "",
634
+ series: [
635
+ 0,
636
+ 1,
637
+ 2,
638
+ 3,
639
+ 5,
640
+ 8,
641
+ 13,
642
+ 21,
643
+ 34,
644
+ 55,
645
+ 89,
646
+ 134
647
+ ],
648
+ type: "line",
649
+ smooth: !0,
650
+ color: "#BABABA"
651
+ }, {
652
+ name: "",
653
+ series: [
654
+ 0,
655
+ .5,
656
+ 1,
657
+ 1.5,
658
+ 2.5,
659
+ 4,
660
+ 6.5,
661
+ 10.5,
662
+ 17,
663
+ 27.5,
664
+ 44.5,
665
+ 67
666
+ ],
667
+ type: "bar",
668
+ color: "#CACACA"
669
+ }]), { loading: ba, FINAL_DATASET: xa, manualLoading: Sa } = Ne({
670
+ ...lt(F),
671
+ FINAL_CONFIG: W,
672
+ prepareConfig: fa,
673
+ callback: () => {
674
+ Promise.resolve().then(async () => {
675
+ await jo(), G.value.showTable = W.value.showTable;
676
+ });
677
+ },
678
+ skeletonDataset: ya.value,
679
+ skeletonConfig: De({
680
+ defaultConfig: W.value,
681
+ userConfig: va.value
682
+ })
683
+ });
684
+ function Ca(e) {
685
+ let t = /* @__PURE__ */ new WeakMap();
686
+ return (n, ...r) => {
687
+ let i = t.get(n), a = JSON.stringify(r);
688
+ if (i && i.has(a)) return i.get(a);
689
+ let o = e(n, ...r);
690
+ return i || (i = /* @__PURE__ */ new Map(), t.set(n, i)), i.set(a, o), o;
691
+ };
692
+ }
693
+ let wa = Ca((e, t) => le({
694
+ data: e,
695
+ threshold: t
696
+ })), Ta = (e) => wa(e, W.value.downsample.threshold), Ea = x({
697
+ get: () => Math.max(...xa.value.map((e) => Ta(e.series).length)),
698
+ set: (e) => e
699
+ }), K = k({
700
+ start: 0,
701
+ end: Ea.value
702
+ }), Da = k({
703
+ start: 0,
704
+ end: Ea.value
705
+ }), Oa = x(() => W.value.chart.zoom.preview.enable && (Da.value.start !== K.value.start || Da.value.end !== K.value.end));
706
+ function ka(e, t) {
707
+ Da.value[e] = t;
708
+ }
709
+ function Aa() {
710
+ let e = Math.max(1, ...xa.value.map((e) => Ta(e.series).length)), t = Math.max(0, Math.min(K.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(K.value.end ?? e, e));
711
+ (!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), K.value = {
712
+ start: t,
713
+ end: n
714
+ }, Da.value.start = t, Da.value.end = n, hi.value && (hi.value.setStartValue(t), hi.value.setEndValue(n));
715
+ }
716
+ let ja = x(() => {
717
+ let { left: e, top: t, width: n, height: r } = q.value, i = K.value.start, a = K.value.end - i, o = n / a, s = Da.value.start - i, c = Da.value.end - i, l = Math.max(0, Math.min(a, s)), u = Math.max(0, Math.min(a, c));
718
+ return {
719
+ x: e + l * o,
720
+ y: t,
721
+ width: (u - l) * o,
722
+ height: r,
723
+ fill: W.value.chart.zoom.preview.fill,
724
+ stroke: W.value.chart.zoom.preview.stroke,
725
+ "stroke-width": W.value.chart.zoom.preview.strokeWidth,
726
+ "stroke-dasharray": W.value.chart.zoom.preview.strokeDasharray,
727
+ "stroke-linecap": "round",
728
+ "stroke-linejoin": "round",
729
+ style: {
730
+ pointerEvents: "none",
731
+ transition: "none !important",
732
+ animation: "none !important"
733
+ }
734
+ };
735
+ });
736
+ ft(() => F.selectedXIndex, (e) => {
737
+ if ([null, void 0].includes(F.selectedXIndex)) {
738
+ H.value = null;
739
+ return;
740
+ }
741
+ let t = e - K.value.start;
742
+ t < 0 || e >= K.value.end ? H.value = null : H.value = t ?? null;
743
+ }, { immediate: !0 });
744
+ let { isPrinting: Ma, isImaging: Na, generatePdf: Pa, generateImage: Fa } = Me({
745
+ elementId: `vue-ui-xy_${z.value}`,
746
+ fileName: W.value.chart.title.text || "vue-ui-xy",
747
+ options: W.value.chart.userOptions.print
748
+ }), Ia = k(!1), La = x(() => we(W.value.customPalette)), Ra = x(() => {
749
+ let e = W.value.chart.grid.labels.yAxis.scaleMin;
750
+ if (e == null) return null;
751
+ let t = Number(e);
752
+ return Number.isFinite(t) ? t : null;
753
+ }), za = x(() => Ra.value === null ? zo.value : q.value.bottom), Ba = x(() => {
754
+ let e = W.value.chart.grid.labels.yAxis.scaleMax;
755
+ if (e == null) return null;
756
+ let t = Number(e);
757
+ return Number.isFinite(t) ? t : null;
758
+ }), Va = x(() => Ra.value !== null || Ba.value !== null), Ha = x(() => {
759
+ let e = Ja.value.filter((e) => !R.value.includes(e.id)).flatMap((e) => Array.isArray(e.series) ? e.series : []).filter(Number.isFinite);
760
+ return e.length ? {
761
+ min: Math.min(...e),
762
+ max: Math.max(...e)
763
+ } : {
764
+ min: 0,
765
+ max: 1
766
+ };
767
+ });
768
+ function Ua(e, t) {
769
+ let n = Number.isFinite(e) ? e : 0, r = Number.isFinite(t) ? t : 1;
770
+ return n === r ? r = n + 1 : n > r && ([n, r] = [r, n]), {
771
+ min: n,
772
+ max: r
773
+ };
774
+ }
775
+ let Wa = x(() => {
776
+ let { min: e, max: t } = Ha.value;
777
+ if (!Va.value) {
778
+ let t = e;
779
+ return t > 0 ? 0 : t;
780
+ }
781
+ let n = Ra.value === null ? e > 0 ? 0 : e : Ra.value, r = Ba.value === null ? t : Ba.value;
782
+ return Ua(e < n ? e : n, t > r ? t : r).min;
783
+ }), Ga = x(() => {
784
+ let { min: e, max: t } = Ha.value;
785
+ if (!Va.value) {
786
+ let e = t;
787
+ return Wa.value === e ? e + 1 : e;
788
+ }
789
+ let n = Ra.value === null ? e > 0 ? 0 : e : Ra.value, r = Ba.value === null ? t : Ba.value;
790
+ return Ua(e < n ? e : n, t > r ? t : r).max;
791
+ }), Ka = x(() => W.value.chart.grid.labels.yAxis.useNiceScale ? fe(Wa.value, Ga.value < 0 ? 0 : Ga.value, W.value.chart.grid.labels.yAxis.commonScaleSteps) : de(Wa.value, Ga.value < 0 ? 0 : Ga.value, W.value.chart.grid.labels.yAxis.commonScaleSteps)), qa = x(() => [null, void 0].includes(W.value.chart.grid.labels.yAxis.scaleMin) ? Ka.value.min >= 0 ? 0 : Math.abs(Ka.value.min) : -Ka.value.min), Ja = x(() => Oi.value ? xa.value.map((e, t) => {
792
+ let n = Ta(e.series), r = `uniqueId_${t}`;
793
+ return {
794
+ ...e,
795
+ slotAbsoluteIndex: t,
796
+ series: n.map((e) => _e(e) ? e : null).slice(K.value.start, K.value.end),
797
+ color: Te(e.color ? e.color : La.value[t] ? La.value[t] : se[t]),
798
+ id: r,
799
+ scaleLabel: e.scaleLabel || r
800
+ };
801
+ }) : xa.value), Ya = x(() => Ja.value.map((e, t) => ({
802
+ absoluteIndex: t,
803
+ ...e,
804
+ series: e.series.map((e) => e + qa.value),
805
+ absoluteValues: e.series,
806
+ segregate: () => rs(e),
807
+ isSegregated: R.value.includes(e.id)
808
+ }))), Xa = x(() => Ja.value.map((e, t) => ({
809
+ ...e,
810
+ series: e.series.map((e) => e + qa.value),
811
+ absoluteValues: e.series
812
+ })).filter((e) => !R.value.includes(e.id))), Za = x(() => R.value.length === Ya.value.length);
813
+ function Qa() {
814
+ let e = 0;
815
+ Ci.value && (e = Array.from(Ci.value.querySelectorAll("text")).reduce((e, t) => {
816
+ let n = t.getComputedTextLength();
817
+ return (n > e ? n : e) + W.value.chart.grid.labels.yAxis.scaleValueOffsetX;
818
+ }, 0));
819
+ let t = xi.value ? xi.value.getBoundingClientRect().width + W.value.chart.grid.labels.axis.yLabelOffsetX + U.value.yAxis : 0, n = W.value.chart.grid.labels.yAxis.crosshairSize;
820
+ return e + t + n;
821
+ }
822
+ let $a = k(0), eo = k(0);
823
+ function to() {
824
+ let e = Si.value;
825
+ if (!e) {
826
+ $a.value = 0, eo.value = 0;
827
+ return;
828
+ }
829
+ try {
830
+ let t = e.getBBox();
831
+ $a.value = t?.height ?? 0, eo.value = t?.x ?? 0;
832
+ } catch {
833
+ $a.value = 0, eo.value = 0;
834
+ }
835
+ }
836
+ let no = x(() => {
837
+ let e = 0;
838
+ if (bi.value) try {
839
+ e = bi.value.getBBox().height || 0;
840
+ } catch {
841
+ e = 0;
842
+ }
843
+ return e + $a.value + U.value.xAxis;
844
+ }), ro = x(() => xa.value.some((e) => e.useProgression)), q = x(() => {
845
+ ta.value;
846
+ let e = 0;
847
+ W.value.chart.grid.labels.show && (e = G.value.useIndividualScale && !G.value.isStacked ? (xa.value.length - R.value.length) * (W.value.chart.grid.labels.yAxis.labelWidth + 36) : G.value.useIndividualScale && G.value.isStacked ? W.value.chart.grid.labels.yAxis.labelWidth + 36 : Qa());
848
+ let t = W.value.chart.labels.fontSize * 1.1, n = ro.value ? 24 : 6;
849
+ Si.value && eo.value < 0 && (e += Math.abs(eo.value));
850
+ let r = L.value - e - W.value.chart.grid.labels.yAxis.crosshairSize - n - W.value.chart.padding?.left - W.value.chart.padding?.right, i = W.value.chart.grid.position === "middle" ? 0 : r / Y.value / 2;
851
+ return {
852
+ top: W.value.chart.padding?.top + t,
853
+ right: L.value - n - W.value.chart.padding?.right,
854
+ bottom: ki.value - no.value - W.value.chart.padding?.bottom - W.value.chart.grid.labels.axis.xLabelOffsetY,
855
+ left: e + W.value.chart.grid.labels.yAxis.crosshairSize - i + W.value.chart.padding?.left,
856
+ height: ki.value - no.value - W.value.chart.padding?.top - W.value.chart.padding?.bottom - t - W.value.chart.grid.labels.axis.xLabelOffsetY,
857
+ width: r,
858
+ scaleLabelX: e,
859
+ individualOffsetX: 36
860
+ };
861
+ }), io = x(() => {
862
+ let e = +(W.value.chart.grid.position === "middle"), t = Y.value + e, n = _(q.value?.top), r = _(q.value?.bottom);
863
+ return Array.from({ length: t }).map((e, t) => {
864
+ let i = q.value.width / Y.value * t + q.value?.left + Z.value;
865
+ return `M${i},${n} L${i},${r}`;
866
+ }).join(" ");
867
+ }), ao = x(() => {
868
+ if (!W.value.chart.grid.labels.xAxis.showCrosshairs) return "";
869
+ let e = q.value.width / Y.value, t = W.value.chart.grid.labels.xAxis.crosshairSize, n = W.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero;
870
+ return vo.value.map((r, i) => {
871
+ if (!r || !r.text) return null;
872
+ let a = q.value?.left + e * i + e / 2;
873
+ return `M${a},${n ? zo.value - (zo.value === q.value?.bottom ? 0 : t / 2) : q.value?.bottom} L${a},${n ? zo.value + t / (zo.value === q.value?.bottom ? 1 : 2) : q.value?.bottom + t}`;
874
+ }).filter(Boolean).join(" ");
875
+ });
876
+ function oo() {
877
+ return !!li?.vnode.props?.onSelectTimeLabel;
878
+ }
879
+ function so(e, t, n) {
880
+ return Ki.value ||= document.createElement("canvas").getContext("2d"), Ki.value.font = `${n || "normal"} ${e}px ${t || "sans-serif"}`, Ki.value;
881
+ }
882
+ function co() {
883
+ let e = pi.value.querySelectorAll(".vue-ui-xy-tag");
884
+ e.length && Array.from(e).forEach((e) => e.style.opacity = "0");
885
+ }
886
+ function lo(e, t, n, r, i) {
887
+ n && (Gi.value[`${e}_${t}_${r}_${i}`] = n);
888
+ }
889
+ let uo = k(!1);
890
+ async function fo(e = !1) {
891
+ await rt(), uo.value = e, Hi.value && (Wi.value = e);
892
+ }
893
+ function po() {
894
+ Ni.value = !Ni.value;
895
+ }
896
+ let J = k([]), mo = k([]), ho = 0;
897
+ pt(() => {
898
+ let e = ++ho;
899
+ (async () => {
900
+ let t = Math.max(...xa.value.map((e) => le({
901
+ data: e.series,
902
+ threshold: W.value.downsample.threshold
903
+ }).length)), n = await Ae({
904
+ values: W.value.chart.grid.labels.xAxisLabels.values,
905
+ maxDatapoints: t,
906
+ formatter: W.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
907
+ start: K.value.start,
908
+ end: K.value.end
909
+ });
910
+ e === ho && (J.value = n);
911
+ })();
912
+ });
913
+ let go = 0;
914
+ pt(() => {
915
+ let e = ++go;
916
+ (async () => {
917
+ let t = Math.max(...xa.value.map((e) => le({
918
+ data: e.series,
919
+ threshold: W.value.downsample.threshold
920
+ }).length)), n = await Ae({
921
+ values: W.value.chart.grid.labels.xAxisLabels.values,
922
+ maxDatapoints: t,
923
+ formatter: W.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
924
+ start: 0,
925
+ end: Ea.value
926
+ });
927
+ e === go && (mo.value = n);
928
+ })();
929
+ });
930
+ let _o = x(() => {
931
+ let e = W.value.chart.grid.labels.xAxisLabels.modulo;
932
+ return J.value.length ? Math.min(e, [...new Set(J.value.map((e) => e.text))].length) : e;
933
+ }), vo = x(() => {
934
+ let e = W.value.chart.grid.labels.xAxisLabels, t = J.value || [], n = mo.value || [], r = K.value.start ?? 0, i = H.value, a = Y.value, o = t.map((e) => e?.text ?? ""), s = n.map((e) => e?.text ?? "");
935
+ return Se(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, _o.value || 1), o, s, r, i, a);
936
+ }), yo = x(() => (vo.value || []).map((e) => e?.text ?? "").join("|"));
937
+ ot(() => {
938
+ requestAnimationFrame(() => {
939
+ to();
940
+ }), ft([
941
+ () => yo.value,
942
+ () => W.value.chart.grid.labels.xAxisLabels.rotation,
943
+ () => U.value.xAxis,
944
+ () => L.value,
945
+ () => ki.value
946
+ ], async () => {
947
+ await rt(), requestAnimationFrame(() => {
948
+ to();
949
+ });
950
+ }, { flush: "post" });
951
+ }), at(() => {
952
+ $a.value = 0, eo.value = 0, ra.stop();
953
+ });
954
+ function bo(e, t) {
955
+ si("selectTimeLabel", {
956
+ datapoint: Xa.value.map((e) => ({
957
+ shape: e.shape ?? e.type === "bar" ? "square" : "circle",
958
+ name: e.name,
959
+ color: e.color,
960
+ type: e.type,
961
+ value: e.absoluteValues.find((e, n) => n === t),
962
+ comments: e.comments || [],
963
+ prefix: e.prefix || W.value.chart.labels.prefix,
964
+ suffix: e.suffix || W.value.chart.labels.suffix
965
+ })),
966
+ absoluteIndex: e.absoluteIndex,
967
+ label: e.text
968
+ });
969
+ }
970
+ let Y = x(() => {
971
+ let e = ca((K.value.end ?? 0) - (K.value.start ?? 0));
972
+ return Math.max(1, e);
973
+ });
974
+ function xo(e) {
975
+ B.value = e;
976
+ }
977
+ function So() {
978
+ G.value.isStacked = !G.value.isStacked, G.value.isStacked ? G.value.useIndividualScale = !0 : G.value.useIndividualScale = W.value.chart.grid.labels.yAxis.useIndividualScale;
979
+ }
980
+ function Co(e) {
981
+ _a.value && e.autoScaling && (W.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${e.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), W.value.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${e.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
982
+ }
983
+ function wo(e, t) {
984
+ let n = ca(e), r = Array(n).fill(0);
985
+ for (let e = 0; e < t.length && e < n; e += 1) r[e] = t[e] ?? 0;
986
+ return r;
987
+ }
988
+ function To(e) {
989
+ let t = Math.max(...xa.value.map((e) => Ta(e.series).length));
990
+ return e > t ? t : e < 0 || W.value.chart.zoom.startIndex !== null && e < W.value.chart.zoom.startIndex ? W.value.chart.zoom.startIndex === null ? 1 : W.value.chart.zoom.startIndex + 1 : e;
991
+ }
992
+ let Eo = k(!1), Do = k(!1), Oo = k(0), ko = k(0);
993
+ function Ao(e, t) {
994
+ let n = Number(e), r = Number(t);
995
+ return !Number.isFinite(n) || !Number.isFinite(r) ? !1 : !Object.is(n, r);
996
+ }
997
+ function jo() {
998
+ if (!Eo.value) {
999
+ Eo.value = !0;
1000
+ try {
1001
+ let { startIndex: e, endIndex: t } = W.value.chart.zoom, n = Math.max(...xa.value.map((e) => Ta(e.series).length));
1002
+ Oo.value = 0, ko.value = n;
1003
+ let r = e ?? 0, i = t == null ? n : Math.min(To(t + 1), n);
1004
+ Mo.value = !0, K.value.start = r, K.value.end = i, Da.value.start = r, Da.value.end = i, Aa(), Do.value = !0;
1005
+ } finally {
1006
+ queueMicrotask(() => {
1007
+ Mo.value = !1;
1008
+ }), Eo.value = !1;
1009
+ }
1010
+ }
1011
+ }
1012
+ let Mo = k(!1);
1013
+ function No(e) {
1014
+ if (Eo.value || Mo.value) return;
1015
+ let t = Number(e);
1016
+ si("zoomStart", {
1017
+ index: t,
1018
+ isZoom: Ao(t, Oo.value)
1019
+ }), Number.isFinite(t) && t !== K.value.start && (K.value.start = t, Da.value.start = t, Aa());
1020
+ }
1021
+ function Po(e) {
1022
+ if (Eo.value || Mo.value) return;
1023
+ let t = To(e);
1024
+ si("zoomEnd", {
1025
+ index: t,
1026
+ isZoom: Ao(t, ko.value)
1027
+ }), t !== K.value.end && (K.value.end = t, Da.value.end = t, Aa());
1028
+ }
1029
+ async function Fo() {
1030
+ await jo(), si("zoomReset");
1031
+ }
1032
+ function Io(e) {
1033
+ return ![
1034
+ null,
1035
+ void 0,
1036
+ NaN,
1037
+ Infinity,
1038
+ -Infinity
1039
+ ].includes(e);
1040
+ }
1041
+ let Lo = x(() => Ka.value.max + qa.value);
1042
+ function Ro(e) {
1043
+ return e / (Io(Lo.value) ? Lo.value : 1);
1044
+ }
1045
+ let zo = x(() => isNaN(Ro(qa.value)) ? q.value?.bottom : q.value?.bottom - q.value.height * Ro(qa.value));
1046
+ function Bo(e) {
1047
+ let t = ![null, void 0].includes(W.value.chart.grid.labels.yAxis.scaleMin) && W.value.chart.grid.labels.yAxis.scaleMin > 0 && Wa.value >= 0 ? q.value?.bottom : zo.value;
1048
+ return e.value >= 0 ? y(t - e.y <= 0 ? 1e-5 : t - e.y) : y(e.y - zo.value <= 0 ? 1e-5 : e.y - zo.value);
1049
+ }
1050
+ function Vo(e) {
1051
+ return e.value >= 0 ? y(e.zeroPosition - e.y <= 0 ? 1e-5 : e.zeroPosition - e.y) : y(e.y - e.zeroPosition <= 0 ? 1e-5 : e.zeroPosition - e.y);
1052
+ }
1053
+ let X = x(() => {
1054
+ let e = Math.max(1, Y.value), t = Math.max(1, q.value.width);
1055
+ return {
1056
+ bar: la(t, e * Math.max(1, Ja.value.filter((e) => e.type === "bar" && !R.value.includes(e.id)).length), 1),
1057
+ plot: la(t, e, 1),
1058
+ line: la(t, e, 1)
1059
+ };
1060
+ });
1061
+ function Ho() {
1062
+ return G.value.useIndividualScale && G.value.isStacked ? X.value.line - q.value.width / Y.value * .1 : X.value.bar;
1063
+ }
1064
+ function Uo(e) {
1065
+ return G.value.useIndividualScale && G.value.isStacked ? e.x + q.value.width / Y.value * .05 : e.x + X.value.bar / 2;
1066
+ }
1067
+ function Wo(e) {
1068
+ return e.value >= 0 ? e.y : [
1069
+ null,
1070
+ void 0,
1071
+ NaN,
1072
+ Infinity,
1073
+ -Infinity
1074
+ ].includes(zo.value) ? q?.bottom.value : zo.value;
1075
+ }
1076
+ function Go(e) {
1077
+ return e.value >= 0 ? e.y : [
1078
+ null,
1079
+ void 0,
1080
+ NaN,
1081
+ Infinity,
1082
+ -Infinity
1083
+ ].includes(e.zeroPosition) ? 0 : e.zeroPosition;
1084
+ }
1085
+ let Ko = k(null);
1086
+ function qo(e) {
1087
+ let t = V.value;
1088
+ if (!t) return null;
1089
+ if (t.createSVGPoint && t.getScreenCTM) {
1090
+ let n = t.createSVGPoint();
1091
+ n.x = e.clientX, n.y = e.clientY;
1092
+ let r = t.getScreenCTM();
1093
+ if (r) {
1094
+ let e = n.matrixTransform(r.inverse());
1095
+ return {
1096
+ x: e.x,
1097
+ y: e.y,
1098
+ ok: !0
1099
+ };
1100
+ }
1101
+ }
1102
+ let n = t.getBoundingClientRect(), r = t.viewBox?.baseVal || {
1103
+ x: 0,
1104
+ y: 0,
1105
+ width: n.width,
1106
+ height: n.height
1107
+ }, i = Math.min(n.width / r.width, n.height / r.height), a = r.width * i, o = r.height * i, s = (n.width - a) / 2, c = (n.height - o) / 2;
1108
+ return {
1109
+ x: (e.clientX - n?.left - s) / i + r.x,
1110
+ y: (e.clientY - n?.top - c) / i + r.y,
1111
+ ok: !0
1112
+ };
1113
+ }
1114
+ let Jo = 0;
1115
+ function Yo(e) {
1116
+ Zi.value = null, !Ni.value && (Jo && cancelAnimationFrame(Jo), Jo = requestAnimationFrame(() => {
1117
+ Jo = 0;
1118
+ let t = qo(e);
1119
+ if (!t || !V.value) {
1120
+ Xo();
1121
+ return;
1122
+ }
1123
+ let { left: n, right: r, top: i, bottom: a, width: o } = q.value;
1124
+ if (t.x < n || t.x > r || t.y < i || t.y > a) {
1125
+ Xo();
1126
+ return;
1127
+ }
1128
+ let s = t.x - n, c = o / Y.value, l = Math.floor(s / c);
1129
+ l >= 0 && l < Y.value ? Ko.value !== l && (Ko.value = l, Bs(!0, l)) : Xo();
1130
+ }));
1131
+ }
1132
+ function Xo() {
1133
+ Jo &&= (cancelAnimationFrame(Jo), 0), Ko.value = null, Bs(!1, null);
1134
+ }
1135
+ function Zo(e) {
1136
+ let t = qo(e);
1137
+ if (t && V.value) {
1138
+ let { left: e, right: n, top: r, bottom: i, width: a } = q.value;
1139
+ if (t.x >= e && t.x <= n && t.y >= r && t.y <= i) {
1140
+ let n = a / Math.max(1, Y.value), r = Math.floor((t.x - e) / n);
1141
+ if (r >= 0 && r < Y.value) {
1142
+ Qo(r);
1143
+ return;
1144
+ }
1145
+ }
1146
+ }
1147
+ Ko.value != null && Qo(Ko.value);
1148
+ }
1149
+ function Qo(e) {
1150
+ let t = Xa.value.map((t) => ({
1151
+ name: t.name,
1152
+ value: [
1153
+ null,
1154
+ void 0,
1155
+ NaN
1156
+ ].includes(t.absoluteValues[e]) ? null : t.absoluteValues[e],
1157
+ color: t.color,
1158
+ type: t.type
1159
+ }));
1160
+ si("selectX", {
1161
+ dataset: t,
1162
+ index: e,
1163
+ indexLabel: W.value.chart.grid.labels.xAxisLabels.values[e]
1164
+ }), W.value.events.datapointClick && W.value.events.datapointClick({
1165
+ datapoint: t,
1166
+ seriesIndex: e + K.value.start
1167
+ });
1168
+ }
1169
+ function $o() {
1170
+ return Ya.value.map((e) => ({
1171
+ values: e.absoluteValues,
1172
+ color: e.color,
1173
+ name: e.name,
1174
+ type: e.type
1175
+ }));
1176
+ }
1177
+ async function es({ scale: e = 2 } = {}) {
1178
+ if (!pi.value) return;
1179
+ let { width: t, height: n } = pi.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Be({
1180
+ domElement: pi.value,
1181
+ base64: !0,
1182
+ img: !0,
1183
+ scale: e
1184
+ });
1185
+ return {
1186
+ imageUri: i,
1187
+ base64: a,
1188
+ title: W.value.chart.title.text,
1189
+ width: t,
1190
+ height: n,
1191
+ aspectRatio: r
1192
+ };
1193
+ }
1194
+ function ts() {
1195
+ R.value.length ? R.value = [] : Ya.value.forEach((e) => {
1196
+ R.value.push(e.id);
1197
+ });
1198
+ }
1199
+ function ns(e, t) {
1200
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), rs(t));
1201
+ }
1202
+ function rs(e) {
1203
+ if (R.value.includes(e.id)) R.value = R.value.filter((t) => t !== e.id);
1204
+ else {
1205
+ if (R.value.length + 1 === Ja.value.length) return;
1206
+ R.value.push(e.id);
1207
+ }
1208
+ si("selectLegend", Xa.value.map((e) => ({
1209
+ name: e.name,
1210
+ values: e.absoluteValues,
1211
+ color: e.color,
1212
+ type: e.type
1213
+ }))), Vi.value += 1;
1214
+ }
1215
+ function is(e) {
1216
+ return Ya.value.length ? Ya.value.find((t) => t.name === e) || (W.value.debug && console.warn(`VueUiXy - Series name not found "${e}"`), null) : (W.value.debug && console.warn("VueUiXy - There are no series to show."), null);
1217
+ }
1218
+ function as(e) {
1219
+ let t = is(e);
1220
+ t !== null && R.value.includes(t.id) && rs({ id: t.id });
1221
+ }
1222
+ function os(e) {
1223
+ let t = is(e);
1224
+ t !== null && (R.value.includes(t.id) || rs({ id: t.id }));
1225
+ }
1226
+ let ss = x(() => `${W.value.chart.title.text || "Chart visualization"}. ${W.value.chart.title.subtitle.text || ""}`), cs = x(() => ({ linePlot: Y.value > W.value.line.dot.hideAboveMaxSerieLength })), ls = x(() => W.value.chart.userOptions.show && (!W.value.chart.title.show || !W.value.chart.title.text)), us = x(() => {
1227
+ if (Array.isArray(W.value.chart.highlightArea)) return W.value.chart.highlightArea.map((e) => {
1228
+ let t = Math.min(e.to, Ea.value - 1);
1229
+ return {
1230
+ ...e,
1231
+ span: e.from === t ? 1 : t < e.from ? 0 : t - e.from + 1
1232
+ };
1233
+ });
1234
+ let e = {
1235
+ ...W.value.chart.highlightArea,
1236
+ to: Math.min(W.value.chart.highlightArea.to, Ea.value - 1)
1237
+ };
1238
+ return [{
1239
+ ...e,
1240
+ span: e.from === e.to ? 1 : e.to < e.from ? 0 : e.to - e.from + 1
1241
+ }];
1242
+ }), ds = x(() => Oi.value ? xa.value.map((e, t) => ({
1243
+ ...e,
1244
+ series: Ta(e.series),
1245
+ id: `uniqueId_${t}`,
1246
+ color: Te(e.color ? e.color : La.value[t] ? La.value[t] : se[t])
1247
+ })) : xa.value), fs = x(() => Xa.value.map((e) => {
1248
+ let t = e.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
1249
+ return {
1250
+ id: e.id,
1251
+ name: e.name,
1252
+ color: e.color,
1253
+ values: wo(Y.value, t)
1254
+ };
1255
+ })), ps = x(() => ({
1256
+ responsiveBreakpoint: W.value.table.responsiveBreakpoint,
1257
+ roundingValues: W.value.table.rounding,
1258
+ showAverage: !1,
1259
+ showMedian: !1,
1260
+ showTotal: !1,
1261
+ fontFamily: W.value.chart.fontFamily,
1262
+ prefix: W.value.chart.labels.prefix,
1263
+ suffix: W.value.chart.labels.suffix,
1264
+ colNames: J.value.map((e, t) => W.value.table.useDefaultTimeFormat ? e.text : Ps.value(t + K.value.start, W.value.table.timeFormat)),
1265
+ thead: {
1266
+ backgroundColor: W.value.table.th.backgroundColor,
1267
+ color: W.value.table.th.color,
1268
+ outline: W.value.table.th.outline
1269
+ },
1270
+ tbody: {
1271
+ backgroundColor: W.value.table.td.backgroundColor,
1272
+ color: W.value.table.td.color,
1273
+ outline: W.value.table.td.outline
1274
+ },
1275
+ userOptions: { show: !1 },
1276
+ sparkline: { animation: { show: !1 } }
1277
+ })), Z = x(() => W.value.chart.grid.position === "middle" ? 0 : q.value.width / Y.value / 2), ms = x(() => h(Ya.value.filter((e) => !R.value.includes(e.id))));
1278
+ function hs(e, t) {
1279
+ let n = Object.create(null);
1280
+ for (let r = 0; r < e.length; r += 1) {
1281
+ let i = e[r], a = String(t(i));
1282
+ n[a] || (n[a] = []), n[a].push(i);
1283
+ }
1284
+ return n;
1285
+ }
1286
+ let Q = x(() => {
1287
+ let e = hs(ms.value, (e) => e.scaleLabel), t = {};
1288
+ for (let [n, r] of Object.entries(e)) {
1289
+ let e = r.flatMap((e) => e.absoluteValues);
1290
+ t[n] = {
1291
+ min: Math.min(...e) || 0,
1292
+ max: Math.max(...e) || 1,
1293
+ groupId: `scale_group_${o()}`
1294
+ };
1295
+ }
1296
+ return t;
1297
+ }), gs = x(() => {
1298
+ let e = Ja.value.filter((e) => e.type === "bar").filter((e) => !R.value.includes(e.id)).length;
1299
+ return q.value.width / Y.value / e - _s.value * e;
1300
+ }), _s = x(() => X.value.line * W.value.bar.periodGap), vs = x(() => Math.max(1e-5, Ho() - (G.value.useIndividualScale && G.value.isStacked ? 0 : _s.value))), ys = x(() => vs.value * Math.min(Math.abs(W.value.bar.innerGap), .95)), bs = x(() => {
1301
+ if (!W.value.chart.zoom.minimap.show) return [];
1302
+ let e = ds.value.filter((e) => !R.value.includes(e.id)), t = Math.max(...e.map((e) => e.series.length)), n = [];
1303
+ for (let r = 0; r < t; r += 1) n.push(e.map((e) => e.series[r] || 0).reduce((e, t) => (e || 0) + (t || 0), 0));
1304
+ let r = Math.min(...n);
1305
+ return n.map((e) => e + (r < 0 ? Math.abs(r) : 0));
1306
+ }), xs = x(() => W.value.chart.zoom.minimap.show ? ds.value.map((e) => ({
1307
+ ...e,
1308
+ isVisible: !R.value.includes(e.id)
1309
+ })) : []), Ss = x(() => Xa.value.map((e) => ({
1310
+ slotAbsoluteIndex: e.slotAbsoluteIndex,
1311
+ shape: e.shape || e.type === "bar" ? "square" : "circle",
1312
+ name: e.name,
1313
+ color: e.color,
1314
+ type: e.type,
1315
+ value: e.absoluteValues.find((e, t) => t === H.value),
1316
+ comments: e.comments || [],
1317
+ prefix: e.prefix || W.value.chart.labels.prefix,
1318
+ suffix: e.suffix || W.value.chart.labels.suffix
1319
+ }))), Cs = x(() => Ka.value.ticks.map((e) => ({
1320
+ y: e >= 0 ? zo.value - q.value.height * Ro(e) : zo.value + q.value.height * Ro(Math.abs(e)),
1321
+ value: e,
1322
+ prefix: W.value.chart.labels.prefix,
1323
+ suffix: W.value.chart.labels.suffix
1324
+ }))), ws = x(() => {
1325
+ let e = W.value.chart.annotations;
1326
+ if (!e || !Array.isArray(e) || e.every((e) => !e.show)) return [];
1327
+ let t = e.filter((e) => e.show && (e.yAxis.yTop != null || e.yAxis.yBottom != null));
1328
+ if (!t.length) return [];
1329
+ let { left: n, right: r } = q.value, i = zo.value, a = q.value.height, s = Ka.value.min, c = Ka.value.max - s, l = (e) => i - (e - 0) / c * a;
1330
+ return t.map((e) => {
1331
+ let { yAxis: { yTop: t, yBottom: i, label: a } } = e, s = t != null && i != null && t !== i, c = t == null ? null : l(t), u = i == null ? null : l(i), ee = so(a.fontSize);
1332
+ ee.font = `${a.fontSize}px sans-serif`;
1333
+ let te = ee.measureText(a.text).width, d = a.fontSize, f = (a.position === "start" ? n + a.padding?.left : r - a.padding?.right) + a.offsetX, p = (c != null && u != null ? Math.min(c, u) : c ?? u) - a.fontSize / 3 + a.offsetY - a.padding?.top, m;
1334
+ m = a.textAnchor === "middle" ? f - te / 2 - a.padding?.left : a.textAnchor === "end" ? f - te - a.padding?.right : f - a.padding?.left;
1335
+ let ne = p - d * .75 - a.padding?.top;
1336
+ return {
1337
+ show: ![
1338
+ c,
1339
+ u,
1340
+ ne
1341
+ ].includes(NaN),
1342
+ id: `annotation_y_${o()}`,
1343
+ hasArea: s,
1344
+ areaHeight: s ? Math.abs(c - u) : 0,
1345
+ yTop: c,
1346
+ yBottom: u,
1347
+ config: e.yAxis,
1348
+ x1: n,
1349
+ x2: r,
1350
+ _text: {
1351
+ x: f,
1352
+ y: p
1353
+ },
1354
+ _box: {
1355
+ x: m,
1356
+ y: ne,
1357
+ width: te + a.padding?.left + a.padding?.right,
1358
+ height: d + a.padding?.top + a.padding?.bottom,
1359
+ fill: a.backgroundColor,
1360
+ stroke: a.border.stroke,
1361
+ rx: a.border.rx,
1362
+ ry: a.border.ry,
1363
+ strokeWidth: a.border.strokeWidth
1364
+ }
1365
+ };
1366
+ });
1367
+ });
1368
+ function Ts(e, t) {
1369
+ let n = e[t - 1], r = e[t + 1], i = !!n && !!r && n.value == null && r.value == null || !n && !!r && r.value == null || !!n && !r && n.value == null;
1370
+ return Io(e[t].value) && i && W.value.line.cutNullValues;
1371
+ }
1372
+ function Es({ datapoint: e, totalSeries: t, gap: n, usableHeight: r, autoScaleValueMin: i, autoScaleValueMax: a, individualExtremes: o, forceExactScale: s = !1 }) {
1373
+ let c = e.scaleSteps || W.value.chart.grid.labels.yAxis.commonScaleSteps, l = 1.0000001, u = s || !W.value.chart.grid.labels.yAxis.useNiceScale ? de : fe, ee = o.max === o.min ? o.max * l : o.max, te = a === i ? a * l : a, d = u(o.min, ee, c), f = u(i, te, c), p = d.min >= 0 ? 0 : Math.abs(d.min), m = d.max + Math.abs(p), ne = f.max + 0, re = e.stackIndex, ie = t - 1 - re, ae = G.value.isStacked ? 1 - e.cumulatedStackRatio : 0, oe = G.value.isStacked ? r * ae + n * ie : 0, se = G.value.isStacked ? r * e.stackRatio : q.value.height;
1374
+ return {
1375
+ scaleSteps: c,
1376
+ individualScale: d,
1377
+ autoScaleSteps: f,
1378
+ individualZero: p,
1379
+ autoScaleZero: 0,
1380
+ individualMax: m,
1381
+ autoScaleMax: ne,
1382
+ yOffset: oe,
1383
+ individualHeight: se,
1384
+ zeroPosition: q.value?.bottom - oe - se * p / m,
1385
+ autoScaleZeroPosition: q.value?.bottom - oe - se * 0 / ne
1386
+ };
1387
+ }
1388
+ let Ds = x(() => {
1389
+ let e = ms.value.filter((e) => [
1390
+ "bar",
1391
+ "line",
1392
+ "plot"
1393
+ ].includes(e.type)), t = e.length, n = W.value.chart.grid.labels.yAxis.gap, r = G.value.isStacked ? n * (t - 1) : 0, i = q.value.height - r;
1394
+ return e.filter((e) => e.type === "bar").map((e, r) => {
1395
+ Co(e);
1396
+ let a = Q.value[e.scaleLabel].min, o = Q.value[e.scaleLabel].max, s = {
1397
+ ratios: e.absoluteValues.filter((e) => ![null, void 0].includes(e)).map((e) => (e - a) / (o - a)),
1398
+ valueMin: a,
1399
+ valueMax: o < 0 ? 0 : o
1400
+ }, c = {
1401
+ max: e.scaleMax || Math.max(...e.absoluteValues) || 1,
1402
+ min: e.scaleMin || Math.min(...e.absoluteValues.filter((e) => ![void 0, null].includes(e))) > 0 ? 0 : Math.min(...e.absoluteValues.filter((e) => ![null, void 0].includes(e)))
1403
+ }, { individualScale: l, autoScaleSteps: u, individualZero: ee, individualMax: te, autoScaleMax: d, yOffset: f, individualHeight: p, zeroPosition: m, autoScaleZeroPosition: ne } = Es({
1404
+ datapoint: e,
1405
+ totalSeries: t,
1406
+ gap: n,
1407
+ usableHeight: i,
1408
+ autoScaleValueMin: s.valueMin,
1409
+ autoScaleValueMax: s.valueMax,
1410
+ individualExtremes: c
1411
+ }), re = Ya.value.filter((e) => e.type === "bar").filter((e) => !R.value.includes(e.id)).length, ie = e.series.map((t, n) => {
1412
+ let i = G.value.useIndividualScale ? (e.absoluteValues[n] + ee) / te : Ro(t), a = G.value.useIndividualScale && G.value.isStacked ? q.value?.left + q.value.width / Y.value * n : q.value?.left + X.value.bar * r + X.value.bar * n * re - gs.value / 2 - r * _s.value;
1413
+ return {
1414
+ yOffset: y(f),
1415
+ individualHeight: y(p),
1416
+ x: y(a),
1417
+ y: q.value?.bottom - f - p * i,
1418
+ value: e.absoluteValues[n],
1419
+ zeroPosition: y(m),
1420
+ individualMax: y(te),
1421
+ comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
1422
+ };
1423
+ }), ae = e.absoluteValues.map((e) => u.min >= 0 ? (e - Math.abs(u.min)) / (u.max - Math.abs(u.min)) : (e + Math.abs(u.min)) / (u.max + Math.abs(u.min))), oe = e.series.map((t, n) => {
1424
+ let i = G.value.useIndividualScale && G.value.isStacked ? q.value?.left + q.value.width / Y.value * n : q.value?.left - X.value.bar / 2 + X.value.bar * r + X.value.bar * n * Ya.value.filter((e) => e.type === "bar").filter((e) => !R.value.includes(e.id)).length;
1425
+ return {
1426
+ yOffset: y(f),
1427
+ individualHeight: y(p),
1428
+ x: y(i),
1429
+ y: y(q.value?.bottom - y(f) - (y(p) * ae[n] || 0)),
1430
+ value: e.absoluteValues[n],
1431
+ zeroPosition: y(m),
1432
+ individualMax: y(te),
1433
+ comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
1434
+ };
1435
+ }), se = l.ticks.map((t) => ({
1436
+ y: t >= 0 ? m - t / te * p : m + p * Math.abs(t) / te,
1437
+ value: t,
1438
+ prefix: e.prefix || W.value.chart.labels.prefix,
1439
+ suffix: e.suffix || W.value.chart.labels.suffix,
1440
+ datapoint: e
1441
+ })), ce = u.ticks.map((t) => {
1442
+ let n = (t - u.min) / (u.max - u.min);
1443
+ return {
1444
+ y: t >= 0 ? ne - p * n : ne + p * n,
1445
+ value: t,
1446
+ prefix: e.prefix || W.value.chart.labels.prefix,
1447
+ suffix: e.suffix || W.value.chart.labels.suffix,
1448
+ datapoint: e
1449
+ };
1450
+ });
1451
+ return Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = W.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ? ce : se, Q.value[e.scaleLabel].zeroPosition = e.autoScaling ? ne : m, Q.value[e.scaleLabel].individualMax = e.autoScaling ? d : te, Q.value[e.scaleLabel].scaleLabel = e.scaleLabel, Q.value[e.scaleLabel].id = e.id, Q.value[e.scaleLabel].yOffset = f, Q.value[e.scaleLabel].individualHeight = p, Q.value[e.scaleLabel].autoScaleYLabels = ce, Q.value[e.scaleLabel].unique = ms.value.filter((t) => t.scaleLabel === e.scaleLabel).length === 1, {
1452
+ ...e,
1453
+ yOffset: f,
1454
+ autoScaleYLabels: ce,
1455
+ individualHeight: p,
1456
+ scaleYLabels: e.autoScaling ? ce : se,
1457
+ individualScale: e.autoScaling ? u : l,
1458
+ individualMax: e.autoScaling ? d : te,
1459
+ zeroPosition: e.autoScaling ? ne : m,
1460
+ plots: e.autoScaling ? oe : ie,
1461
+ groupId: Q.value[e.scaleLabel].groupId
1462
+ };
1463
+ });
1464
+ }), $ = x(() => {
1465
+ let e = ms.value.filter((e) => [
1466
+ "bar",
1467
+ "line",
1468
+ "plot"
1469
+ ].includes(e.type)), t = e.length, n = W.value.chart.grid.labels.yAxis.gap, r = G.value.isStacked ? n * (t - 1) : 0, a = q.value.height - r;
1470
+ return e.filter((e) => e.type === "line").map((e, r) => {
1471
+ Co(e);
1472
+ let o = Q.value[e.scaleLabel].min, c = Q.value[e.scaleLabel].max, l = {
1473
+ ratios: e.absoluteValues.filter((e) => ![null, void 0].includes(e)).map((e) => (e - o) / (c - o)),
1474
+ valueMin: o,
1475
+ valueMax: c
1476
+ }, ee = {
1477
+ max: e.scaleMax || Math.max(...e.absoluteValues) || 1,
1478
+ min: e.scaleMin || (Math.min(...e.absoluteValues) > 0 ? 0 : Math.min(...e.absoluteValues))
1479
+ }, { individualScale: d, autoScaleSteps: p, individualZero: m, individualMax: re, autoScaleMax: ie, yOffset: ae, individualHeight: se, zeroPosition: ce, autoScaleZeroPosition: le } = Es({
1480
+ datapoint: e,
1481
+ totalSeries: t,
1482
+ gap: n,
1483
+ usableHeight: a,
1484
+ autoScaleValueMin: l.valueMin,
1485
+ autoScaleValueMax: l.valueMax,
1486
+ individualExtremes: ee
1487
+ }), h = e.series.map((t, n) => {
1488
+ let r = G.value.useIndividualScale ? (e.absoluteValues[n] + Math.abs(m)) / re : Ro(t);
1489
+ return {
1490
+ x: y(q.value?.left + X.value.line / 2 + X.value.line * n),
1491
+ y: y(q.value?.bottom - ae - se * r),
1492
+ value: e.absoluteValues[n],
1493
+ comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
1494
+ };
1495
+ }), ue = e.absoluteValues.map((e) => p.min >= 0 ? (e - Math.abs(p.min)) / (p.max - Math.abs(p.min)) : (e + Math.abs(p.min)) / (p.max + Math.abs(p.min))), g = e.series.map((t, n) => [void 0, null].includes(e.absoluteValues[n]) ? {
1496
+ x: y(q.value?.left + X.value.line / 2 + X.value.line * n),
1497
+ y: ce,
1498
+ value: e.absoluteValues[n],
1499
+ comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
1500
+ } : {
1501
+ x: y(q.value?.left + X.value.line / 2 + X.value.line * n),
1502
+ y: y(q.value?.bottom - ae - (se * ue[n] || 0)),
1503
+ value: e.absoluteValues[n],
1504
+ comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
1505
+ }), _ = e.dashIndices && Array.isArray(e.dashIndices) && e?.dashIndices?.length > 0, de = W.value.line.cutNullValues ? pe(h) : he(h.filter((e) => e.value !== null)), fe = W.value.line.cutNullValues ? pe(g) : he(g.filter((e) => e.value !== null)), v = W.value.line.cutNullValues ? u(h) : s(h.filter((e) => e.value !== null)), me = W.value.line.cutNullValues ? u(g) : s(g.filter((e) => e.value !== null)), ge = i(W.value.line.cutNullValues ? h : h.filter((e) => e.value !== null)), _e = i(W.value.line.cutNullValues ? g : g.filter((e) => e.value !== null)), ve = _ ? ne(W.value.line.cutNullValues ? h : h.filter((e) => e.value !== null), e.dashIndices.map((e) => e - K.value.start)) : [], ye = _ ? te(W.value.line.cutNullValues ? h : h.filter((e) => e.value !== null), e.dashIndices.map((e) => e - K.value.start)) : [], be = d.ticks.map((t) => ({
1506
+ y: t >= 0 ? ce - t / re * se : ce + se * Math.abs(t) / re,
1507
+ value: t,
1508
+ prefix: e.prefix || W.value.chart.labels.prefix,
1509
+ suffix: e.suffix || W.value.chart.labels.suffix,
1510
+ datapoint: e
1511
+ })), xe = p.ticks.map((t) => {
1512
+ let n = (t - p.min) / (p.max - p.min);
1513
+ return {
1514
+ y: t >= 0 ? le - se * n : le + se * n,
1515
+ value: t,
1516
+ prefix: e.prefix || W.value.chart.labels.prefix,
1517
+ suffix: e.suffix || W.value.chart.labels.suffix,
1518
+ datapoint: e
1519
+ };
1520
+ });
1521
+ Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = W.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ? xe : be, Q.value[e.scaleLabel].zeroPosition = e.autoScaling ? le : ce, Q.value[e.scaleLabel].individualMax = e.autoScaling ? ie : re, Q.value[e.scaleLabel].scaleLabel = e.scaleLabel, Q.value[e.scaleLabel].id = e.id, Q.value[e.scaleLabel].yOffset = ae, Q.value[e.scaleLabel].individualHeight = se, Q.value[e.scaleLabel].autoScaleYLabels = xe, Q.value[e.scaleLabel].unique = ms.value.filter((t) => t.scaleLabel === e.scaleLabel).length === 1;
1522
+ let Se = G.value.useIndividualScale ? e.autoScaling ? le : ce : za.value, we = Math.max(Math.max(e.autoScaling ? le : be.at(-1) ? be.at(-1).y : 0, q.value?.top), Se), Ee = e.autoScaling ? g : h, De = W.value.line.cutNullValues ? Ee : Ee.filter((e) => e.value !== null);
1523
+ return {
1524
+ ...e,
1525
+ temperatureColors: e.temperatureColors ? e.temperatureColors.map((e) => Te(e)) : null,
1526
+ yOffset: ae,
1527
+ autoScaleYLabels: xe,
1528
+ individualHeight: se,
1529
+ scaleYLabels: e.autoScaling ? xe : be,
1530
+ individualScale: e.autoScaling ? p : d,
1531
+ individualMax: e.autoScaling ? ie : re,
1532
+ zeroPosition: e.autoScaling ? le : ce,
1533
+ curve: e.useStepper ? e.autoScaling ? _e : ge : e.autoScaling ? fe : de,
1534
+ plots: e.autoScaling ? g : h,
1535
+ dashedStraight: ve,
1536
+ dashedSmooth: ye,
1537
+ hasDashedSegments: _,
1538
+ area: e.useArea ? e.useStepper ? i(De, we) : G.value.useIndividualScale ? W.value.line.cutNullValues ? oe(e.autoScaling ? g : h, we) : Ce(e.autoScaling ? g.filter((e) => e.value !== null) : h.filter((e) => e.value !== null), we) : W.value.line.cutNullValues ? oe(h, we) : Ce(h.filter((e) => e.value !== null), we) : "",
1539
+ curveAreas: e.useArea ? e.useStepper ? i(De, we).split(";").filter(Boolean).map((e) => `M${e}Z`) : f(e.autoScaling ? W.value.line.cutNullValues ? g : g.filter((e) => e.value !== null) : W.value.line.cutNullValues ? h : h.filter((e) => e.value !== null), we, W.value.line.cutNullValues) : [],
1540
+ straight: e.useStepper ? e.autoScaling ? _e : ge : e.autoScaling ? me : v,
1541
+ groupId: Q.value[e.scaleLabel].groupId
1542
+ };
1543
+ });
1544
+ }), Os = x(() => {
1545
+ let e = ms.value.filter((e) => [
1546
+ "bar",
1547
+ "line",
1548
+ "plot"
1549
+ ].includes(e.type)), t = e.length, n = W.value.chart.grid.labels.yAxis.gap, r = G.value.isStacked ? n * (t - 1) : 0, i = q.value.height - r;
1550
+ return e.filter((e) => e.type === "plot").map((e) => {
1551
+ Co(e);
1552
+ let r = Q.value[e.scaleLabel].min, a = Q.value[e.scaleLabel].max, o = {
1553
+ ratios: e.absoluteValues.filter((e) => ![null, void 0].includes(e)).map((e) => (e - r) / (a - r)),
1554
+ valueMin: r,
1555
+ valueMax: a
1556
+ }, s = {
1557
+ max: e.scaleMax || Math.max(...e.absoluteValues) || 1,
1558
+ min: e.scaleMin || Math.min(...e.absoluteValues) > 0 ? 0 : Math.min(...e.absoluteValues)
1559
+ }, { individualScale: c, autoScaleSteps: l, individualZero: u, individualMax: ee, autoScaleMax: te, yOffset: d, individualHeight: f, zeroPosition: p, autoScaleZeroPosition: m } = Es({
1560
+ datapoint: e,
1561
+ totalSeries: t,
1562
+ gap: n,
1563
+ usableHeight: i,
1564
+ autoScaleValueMin: o.valueMin,
1565
+ autoScaleValueMax: o.valueMax,
1566
+ individualExtremes: s,
1567
+ forceExactScale: !0
1568
+ }), ne = e.series.map((t, n) => {
1569
+ let r = G.value.useIndividualScale ? (e.absoluteValues[n] + Math.abs(u)) / ee : Ro(t);
1570
+ return {
1571
+ x: y(q.value?.left + X.value.plot / 2 + X.value.plot * n),
1572
+ y: y(q.value?.bottom - d - f * r),
1573
+ value: e.absoluteValues[n],
1574
+ comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
1575
+ };
1576
+ }), re = e.absoluteValues.map((e) => l.min >= 0 ? (e - Math.abs(l.min)) / (l.max - Math.abs(l.min)) : (e + Math.abs(l.min)) / (l.max + Math.abs(l.min))), ie = e.series.map((t, n) => ({
1577
+ x: y(q.value?.left + X.value.plot / 2 + X.value.plot * n),
1578
+ y: y(q.value?.bottom - d - (f * re[n] || 0)),
1579
+ value: e.absoluteValues[n],
1580
+ comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
1581
+ })), ae = c.ticks.map((t) => ({
1582
+ y: t >= 0 ? p - t / ee * f : p + f * Math.abs(t) / ee,
1583
+ value: t,
1584
+ prefix: e.prefix || W.value.chart.labels.prefix,
1585
+ suffix: e.suffix || W.value.chart.labels.suffix,
1586
+ datapoint: e
1587
+ })), oe = l.ticks.map((t) => {
1588
+ let n = (t - l.min) / (l.max - l.min);
1589
+ return {
1590
+ y: t >= 0 ? m - f * n : m + f * n,
1591
+ value: t,
1592
+ prefix: e.prefix || W.value.chart.labels.prefix,
1593
+ suffix: e.suffix || W.value.chart.labels.suffix,
1594
+ datapoint: e
1595
+ };
1596
+ });
1597
+ return Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = W.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ? oe : ae, Q.value[e.scaleLabel].zeroPosition = e.autoScaling ? m : p, Q.value[e.scaleLabel].individualMax = e.autoScaling ? te : ee, Q.value[e.scaleLabel].scaleLabel = e.scaleLabel, Q.value[e.scaleLabel].id = e.id, Q.value[e.scaleLabel].yOffset = d, Q.value[e.scaleLabel].individualHeight = f, Q.value[e.scaleLabel].autoScaleYLabels = oe, Q.value[e.scaleLabel].unique = ms.value.filter((t) => t.scaleLabel === e.scaleLabel).length === 1, {
1598
+ ...e,
1599
+ yOffset: d,
1600
+ autoScaleYLabels: oe,
1601
+ individualHeight: f,
1602
+ scaleYLabels: e.autoScaling ? oe : ae,
1603
+ individualScale: e.autoScaling ? l : c,
1604
+ individualMax: e.autoScaling ? te : ee,
1605
+ zeroPosition: e.autoScaling ? m : p,
1606
+ plots: e.autoScaling ? ie : ne,
1607
+ groupId: Q.value[e.scaleLabel].groupId
1608
+ };
1609
+ });
1610
+ }), ks = x(() => {
1611
+ let e = $.value.map((e) => ({
1612
+ name: e.name,
1613
+ color: e.color,
1614
+ scale: e.individualScale,
1615
+ scaleYLabels: e.scaleYLabels,
1616
+ zero: e.zeroPosition,
1617
+ max: e.individualMax,
1618
+ scaleLabel: e.scaleLabel || "",
1619
+ id: e.id,
1620
+ yOffset: e.yOffset || 0,
1621
+ individualHeight: e.individualHeight || q.value.height,
1622
+ autoScaleYLabels: e.autoScaleYLabels
1623
+ })), t = Ds.value.map((e) => ({
1624
+ name: e.name,
1625
+ color: e.color,
1626
+ scale: e.individualScale,
1627
+ scaleYLabels: e.scaleYLabels,
1628
+ zero: e.zeroPosition,
1629
+ max: e.individualMax,
1630
+ scaleLabel: e.scaleLabel || "",
1631
+ id: e.id,
1632
+ yOffset: e.yOffset || 0,
1633
+ individualHeight: e.individualHeight || q.value.height
1634
+ })), n = Os.value.map((e) => ({
1635
+ name: e.name,
1636
+ color: e.color,
1637
+ scale: e.individualScale,
1638
+ scaleYLabels: e.scaleYLabels,
1639
+ zero: e.zeroPosition,
1640
+ max: e.individualMax,
1641
+ scaleLabel: e.scaleLabel || "",
1642
+ id: e.id,
1643
+ yOffset: e.yOffset || 0,
1644
+ individualHeight: e.individualHeight || q.value.height
1645
+ })), r = G.value.useIndividualScale && !G.value.isStacked ? Object.values(Q.value) : [
1646
+ ...e,
1647
+ ...t,
1648
+ ...n
1649
+ ], i = r.flatMap((e) => e).length;
1650
+ return r.flatMap((e, t) => {
1651
+ let n = 0;
1652
+ n = G.value.isStacked ? q.value?.left : q.value?.left / i * (t + 1);
1653
+ let r = G.value.useIndividualScale && !G.value.isStacked ? e.unique ? e.name : e.groupName : e.name;
1654
+ return {
1655
+ unique: e.unique,
1656
+ id: e.id,
1657
+ groupId: e.groupId,
1658
+ scaleLabel: e.scaleLabel,
1659
+ name: v(W.value.chart.grid.labels.yAxis.serieNameFormatter, r, r, e),
1660
+ color: G.value.useIndividualScale && !G.value.isStacked ? e.unique ? e.color : e.groupColor : e.color,
1661
+ scale: e.scale,
1662
+ yOffset: e.yOffset,
1663
+ individualHeight: e.individualHeight,
1664
+ x: n,
1665
+ yLabels: e.scaleYLabels || e.scale.ticks.map((t) => ({
1666
+ y: t >= 0 ? e.zero - e.individualHeight * (t / e.max) : e.zero + e.individualHeight * Math.abs(t) / e.max,
1667
+ value: t
1668
+ }))
1669
+ };
1670
+ });
1671
+ }), As = x(() => {
1672
+ let e = W.value.line.interLine || {}, t = e.pairs || [], n = e.colors || [];
1673
+ if (!t.length) return [];
1674
+ let r = [];
1675
+ return t.forEach((e, t) => {
1676
+ let [i, a] = Array.isArray(e) ? e : [e.a, e.b];
1677
+ if (!i || !a) return;
1678
+ let o = $.value.find((e) => e.name === i), s = $.value.find((e) => e.name === a);
1679
+ if (!o || !s || o.type !== "line" || s.type !== "line") return;
1680
+ let c = n?.[t]?.[0] ?? o.color, l = n?.[t]?.[1] ?? s.color;
1681
+ ue({
1682
+ lineA: o.plots,
1683
+ lineB: s.plots,
1684
+ smoothA: !!o.smooth,
1685
+ smoothB: !!s.smooth,
1686
+ colorLineA: c,
1687
+ colorLineB: l,
1688
+ sampleStepPx: 2,
1689
+ cutNullValues: W.value.line.cutNullValues
1690
+ }).forEach((e, n) => {
1691
+ r.push({
1692
+ ...e,
1693
+ key: `inter_${i}_${a}_${t}_${n}`
1694
+ });
1695
+ });
1696
+ }), r;
1697
+ }), js = x(() => ({
1698
+ timeLabel: J.value[H.value],
1699
+ datapoint: Ss.value,
1700
+ seriesIndex: H.value,
1701
+ series: Ya.value,
1702
+ bars: Ds.value,
1703
+ lines: $.value,
1704
+ plots: Os.value,
1705
+ config: W.value
1706
+ })), Ms = k({
1707
+ months: [],
1708
+ shortMonths: [],
1709
+ days: [],
1710
+ shortDays: []
1711
+ }), Ns = 0;
1712
+ pt(() => {
1713
+ let e = ++Ns, t = W.value.chart.grid.labels.xAxisLabels.datetimeFormatter;
1714
+ (async () => {
1715
+ let n = await ke(t.locale).catch(() => ke("en"));
1716
+ e === Ns && (Ms.value = n.data);
1717
+ })();
1718
+ });
1719
+ let Ps = x(() => {
1720
+ let e = W.value.chart.grid.labels.xAxisLabels.datetimeFormatter, t = Oe({
1721
+ useUTC: e.useUTC,
1722
+ locale: Ms.value,
1723
+ januaryAsYear: e.januaryAsYear
1724
+ });
1725
+ return (e, n) => {
1726
+ let r = W.value.chart.grid.labels.xAxisLabels.values?.[e];
1727
+ return r == null ? "" : t.formatDate(new Date(r), n);
1728
+ };
1729
+ }), Fs = x(() => (W.value.chart.grid.labels.xAxisLabels.values || []).map((e, t) => ({
1730
+ text: Ps.value(t, W.value.chart.zoom.timeFormat),
1731
+ absoluteIndex: t
1732
+ }))), Is = x(() => {
1733
+ let e = "", t = Ss.value.map((e) => e.value).filter((e) => _e(e) && e !== null).reduce((e, t) => Math.abs(e) + Math.abs(t), 0), n = J.value[H.value], i = W.value.chart.tooltip.customFormat;
1734
+ if (be(i) && ye(() => i({
1735
+ absoluteIndex: H.value + K.value.start,
1736
+ seriesIndex: H.value,
1737
+ datapoint: Ss.value,
1738
+ series: Ya.value,
1739
+ bars: Ds.value,
1740
+ lines: $.value,
1741
+ plots: Os.value,
1742
+ config: W.value,
1743
+ dateLabel: n
1744
+ }))) return i({
1745
+ absoluteIndex: H.value + K.value.start,
1746
+ seriesIndex: H.value,
1747
+ datapoint: Ss.value,
1748
+ series: Ya.value,
1749
+ bars: Ds.value,
1750
+ lines: $.value,
1751
+ plots: Os.value,
1752
+ config: W.value,
1753
+ dateLabel: n
1754
+ });
1755
+ if (n && n.text && W.value.chart.tooltip.showTimeLabel) {
1756
+ let t = Ps.value(H.value + K.value.start, W.value.chart.tooltip.timeFormat);
1757
+ e += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${W.value.chart.tooltip.borderColor}; width:100%">${W.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !W.value.chart.tooltip.useDefaultTimeFormat ? t : n.text}</div>`;
1758
+ }
1759
+ return Ss.value.forEach((n) => {
1760
+ if (_e(n.value)) {
1761
+ let i = "", o = "";
1762
+ switch (Mi.value[n.type]) {
1763
+ case "bar":
1764
+ i = `<svg viewBox="0 0 40 40" height="14" width="14">${ci.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${n.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${ci.pattern ? `url(#pattern_${z.value}_${n.slotAbsoluteIndex}` : n.color}" /></svg>`;
1765
+ break;
1766
+ case "line":
1767
+ !n.shape || ![
1768
+ "star",
1769
+ "triangle",
1770
+ "square",
1771
+ "diamond",
1772
+ "pentagon",
1773
+ "hexagon"
1774
+ ].includes(n.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${W.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${n.color}" />` : n.shape === "triangle" ? o = `<path d="${r({
1775
+ plot: {
1776
+ x: 10,
1777
+ y: 8
1778
+ },
1779
+ radius: 4,
1780
+ sides: 3,
1781
+ rotation: .52
1782
+ }).path}" fill="${n.color}" stroke="${W.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : n.shape === "square" ? o = `<path d="${r({
1783
+ plot: {
1784
+ x: 10,
1785
+ y: 8
1786
+ },
1787
+ radius: 4,
1788
+ sides: 4,
1789
+ rotation: .8
1790
+ }).path}" fill="${n.color}" stroke="${W.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : n.shape === "diamond" ? o = `<path d="${r({
1791
+ plot: {
1792
+ x: 10,
1793
+ y: 8
1794
+ },
1795
+ radius: 4,
1796
+ sides: 4,
1797
+ rotation: 0
1798
+ }).path}" fill="${n.color}" stroke="${W.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : n.shape === "pentagon" ? o = `<path d="${r({
1799
+ plot: {
1800
+ x: 10,
1801
+ y: 8
1802
+ },
1803
+ radius: 4,
1804
+ sides: 5,
1805
+ rotation: .95
1806
+ }).path}" fill="${n.color}" stroke="${W.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : n.shape === "hexagon" ? o = `<path d="${r({
1807
+ plot: {
1808
+ x: 10,
1809
+ y: 8
1810
+ },
1811
+ radius: 4,
1812
+ sides: 6,
1813
+ rotation: 0
1814
+ }).path}" fill="${n.color}" stroke="${W.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : n.shape === "star" && (o = `<polygon stroke="${W.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${n.color}" points="${m({
1815
+ plot: {
1816
+ x: 10,
1817
+ y: 8
1818
+ },
1819
+ radius: 4
1820
+ })}" />`), i = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${W.value.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${n.color}" />${o}</svg>`;
1821
+ break;
1822
+ case "plot":
1823
+ if (!n.shape || ![
1824
+ "star",
1825
+ "triangle",
1826
+ "square",
1827
+ "diamond",
1828
+ "pentagon",
1829
+ "hexagon"
1830
+ ].includes(n.shape)) {
1831
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${W.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${n.color}" /></svg>`;
1832
+ break;
1833
+ }
1834
+ if (n.shape === "star") {
1835
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${W.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${n.color}" points="${m({
1836
+ plot: {
1837
+ x: 6,
1838
+ y: 6
1839
+ },
1840
+ radius: 5
1841
+ })}" /></svg>`;
1842
+ break;
1843
+ }
1844
+ if (n.shape === "triangle") {
1845
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${r({
1846
+ plot: {
1847
+ x: 6,
1848
+ y: 6
1849
+ },
1850
+ radius: 6,
1851
+ sides: 3,
1852
+ rotation: .52
1853
+ }).path}" fill="${n.color}" stroke="${W.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1854
+ break;
1855
+ }
1856
+ if (n.shape === "square") {
1857
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${r({
1858
+ plot: {
1859
+ x: 6,
1860
+ y: 6
1861
+ },
1862
+ radius: 6,
1863
+ sides: 4,
1864
+ rotation: .8
1865
+ }).path}" fill="${n.color}" stroke="${W.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1866
+ break;
1867
+ }
1868
+ if (n.shape === "diamond") {
1869
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${r({
1870
+ plot: {
1871
+ x: 6,
1872
+ y: 6
1873
+ },
1874
+ radius: 5,
1875
+ sides: 4,
1876
+ rotation: 0
1877
+ }).path}" fill="${n.color}" stroke="${W.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1878
+ break;
1879
+ }
1880
+ if (n.shape === "pentagon") {
1881
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${r({
1882
+ plot: {
1883
+ x: 6,
1884
+ y: 6
1885
+ },
1886
+ radius: 5,
1887
+ sides: 5,
1888
+ rotation: .95
1889
+ }).path}" fill="${n.color}" stroke="${W.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1890
+ break;
1891
+ }
1892
+ if (n.shape === "hexagon") {
1893
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${r({
1894
+ plot: {
1895
+ x: 6,
1896
+ y: 6
1897
+ },
1898
+ radius: 5,
1899
+ sides: 6,
1900
+ rotation: 0
1901
+ }).path}" fill="${n.color}" stroke="${W.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1902
+ break;
1903
+ }
1904
+ default: break;
1905
+ }
1906
+ e += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${i}</div> ${n.name}: <b>${W.value.chart.tooltip.showValue ? v(n.type === "line" ? W.value.line.labels.formatter : n.type === "bar" ? W.value.bar.labels.formatter : W.value.plot.labels.formatter, n.value, a({
1907
+ p: n.prefix,
1908
+ v: n.value,
1909
+ s: n.suffix,
1910
+ r: W.value.chart.tooltip.roundingValue
1911
+ }), { datapoint: n }) : ""}</b> ${W.value.chart.tooltip.showPercentage ? `(${a({
1912
+ v: y(Math.abs(n.value) / t * 100),
1913
+ s: "%",
1914
+ r: W.value.chart.tooltip.roundingPercentage
1915
+ })})` : ""}</div>`, W.value.chart.comments.showInTooltip && n.comments.length && n.comments.slice(K.value.start, K.value.end)[H.value] && (e += `<div class="vue-data-ui-tooltip-comment" style="background:${n.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${n.color}">${n.comments.slice(K.value.start, K.value.end)[H.value]}</div>`);
1916
+ }
1917
+ }), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${W.value.chart.tooltip.color}">${e}</div>`;
1918
+ }), Ls = x(() => {
1919
+ if (Ja.value.length === 0) return {
1920
+ head: [],
1921
+ body: [],
1922
+ config: {},
1923
+ columnNames: []
1924
+ };
1925
+ let e = Xa.value.map((e) => ({
1926
+ label: e.name,
1927
+ color: e.color,
1928
+ type: e.type
1929
+ })), t = [];
1930
+ return J.value.forEach((e, n) => {
1931
+ let r = W.value.table.useDefaultTimeFormat ? [e.text] : [Ps.value(n + K.value.start, W.value.table.timeFormat)];
1932
+ Xa.value.forEach((e) => {
1933
+ r.push(Io(e.absoluteValues[n]) ? Number(e.absoluteValues[n].toFixed(W.value.table.rounding)) : "");
1934
+ }), t.push(r);
1935
+ }), {
1936
+ head: e,
1937
+ body: t
1938
+ };
1939
+ }), Rs = x(() => {
1940
+ let e = W.value.table.showSum, t = [""].concat(Xa.value.map((e) => e.name));
1941
+ e && (t = t.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>"));
1942
+ let n = [];
1943
+ for (let t = 0; t < Y.value; t += 1) {
1944
+ let r = Xa.value.map((e) => e.absoluteValues[t] ?? 0).reduce((e, t) => e + t, 0);
1945
+ n.push([W.value.table.useDefaultTimeFormat ? J.value[t]?.text ?? "-" : Ps.value(t + K.value.start, W.value.table.timeFormat)].concat(Xa.value.map((e) => v(e.type === "line" ? W.value.line.labels.formatter : e.type === "bar" ? W.value.bar.labels.formatter : W.value.plot.labels.formatter, e.absoluteValues[t] ?? 0, a({
1946
+ p: e.prefix || W.value.chart.labels.prefix,
1947
+ v: e.absoluteValues[t] ?? 0,
1948
+ s: e.suffix || W.value.chart.labels.suffix,
1949
+ r: W.value.table.rounding
1950
+ }))), e ? (r ?? 0).toFixed(W.value.table.rounding) : []));
1951
+ }
1952
+ let r = {
1953
+ th: {
1954
+ backgroundColor: W.value.table.th.backgroundColor,
1955
+ color: W.value.table.th.color,
1956
+ outline: W.value.table.th.outline
1957
+ },
1958
+ td: {
1959
+ backgroundColor: W.value.table.td.backgroundColor,
1960
+ color: W.value.table.td.color,
1961
+ outline: W.value.table.td.outline
1962
+ },
1963
+ breakpoint: W.value.table.responsiveBreakpoint
1964
+ }, i = [W.value.table.columnNames.period].concat(Xa.value.map((e) => e.name), W.value.table.columnNames.total);
1965
+ return {
1966
+ head: t,
1967
+ body: n,
1968
+ config: r,
1969
+ colNames: i
1970
+ };
1971
+ });
1972
+ function zs(e = null) {
1973
+ let t = [
1974
+ [W.value.chart.title.text],
1975
+ [W.value.chart.title.subtitle.text],
1976
+ [""]
1977
+ ], n = ["", ...Ls.value.head.map((e) => e.label)], r = Ls.value.body, i = ie(t.concat([n]).concat(r));
1978
+ e ? e(i) : l({
1979
+ csvContent: i,
1980
+ title: W.value.chart.title.text || "vue-ui-xy"
1981
+ });
1982
+ }
1983
+ function Bs(e, t = null) {
1984
+ if (Za.value) return;
1985
+ Fi.value = e;
1986
+ let n = Xa.value.map((e) => ({
1987
+ name: e.name,
1988
+ value: [
1989
+ null,
1990
+ void 0,
1991
+ NaN
1992
+ ].includes(e.absoluteValues[t]) ? null : e.absoluteValues[t],
1993
+ color: e.color,
1994
+ type: e.type
1995
+ }));
1996
+ e ? (H.value = t, W.value.events.datapointEnter && W.value.events.datapointEnter({
1997
+ datapoint: n,
1998
+ seriesIndex: t + K.value.start
1999
+ })) : (H.value = null, W.value.events.datapointLeave && W.value.events.datapointLeave({
2000
+ datapoint: n,
2001
+ seriesIndex: t + K.value.start
2002
+ }));
2003
+ }
2004
+ function Vs() {
2005
+ G.value.showTable = !G.value.showTable;
2006
+ }
2007
+ function Hs() {
2008
+ G.value.dataLabels.show = !G.value.dataLabels.show;
2009
+ }
2010
+ function Us() {
2011
+ G.value.showTooltip = !G.value.showTooltip;
2012
+ }
2013
+ function Ws(e) {
2014
+ Pi.value = e, Li.value += 1;
2015
+ }
2016
+ function Gs() {
2017
+ if (!W.value.responsiveProportionalSizing) {
2018
+ U.value.dataLabels = W.value.chart.grid.labels.fontSize, U.value.yAxis = W.value.chart.grid.labels.axis.fontSize, U.value.xAxis = W.value.chart.grid.labels.xAxisLabels.fontSize, U.value.plotLabels = W.value.chart.labels.fontSize, da.value.plot = W.value.plot.radius, da.value.line = W.value.line.radius;
2019
+ return;
2020
+ }
2021
+ U.value.dataLabels = re({
2022
+ relator: ki.value,
2023
+ adjuster: 400,
2024
+ source: W.value.chart.grid.labels.fontSize,
2025
+ threshold: 10,
2026
+ fallback: 10
2027
+ }), U.value.yAxis = re({
2028
+ relator: L.value,
2029
+ adjuster: 1e3,
2030
+ source: W.value.chart.grid.labels.axis.fontSize,
2031
+ threshold: 10,
2032
+ fallback: 10
2033
+ }), U.value.xAxis = re({
2034
+ relator: L.value,
2035
+ adjuster: 1e3,
2036
+ source: W.value.chart.grid.labels.xAxisLabels.fontSize,
2037
+ threshold: 10,
2038
+ fallback: 10
2039
+ }), U.value.plotLabels = re({
2040
+ relator: L.value,
2041
+ adjuster: 800,
2042
+ source: W.value.chart.labels.fontSize,
2043
+ threshold: 10,
2044
+ fallback: 10
2045
+ }), da.value.plot = re({
2046
+ relator: L.value,
2047
+ adjuster: 800,
2048
+ source: W.value.plot.radius,
2049
+ threshold: 1,
2050
+ fallback: 1
2051
+ }), da.value.line = re({
2052
+ relator: L.value,
2053
+ adjuster: 800,
2054
+ source: W.value.line.radius,
2055
+ threshold: 1,
2056
+ fallback: 1
2057
+ });
2058
+ }
2059
+ function Ks() {
2060
+ if (ae(F.dataset) ? (ce({
2061
+ componentName: "VueUiXy",
2062
+ type: "dataset",
2063
+ debug: _a.value
2064
+ }), Sa.value = !0) : F.dataset.forEach((e, t) => {
2065
+ [null, void 0].includes(e.name) && (ce({
2066
+ componentName: "VueUiXy",
2067
+ type: "datasetSerieAttribute",
2068
+ property: "name (string)",
2069
+ index: t,
2070
+ debug: _a.value
2071
+ }), Sa.value = !0);
2072
+ }), _a.value && F.dataset.forEach((e) => {
2073
+ e.series.forEach((t, n) => {
2074
+ _e(t) || console.warn(`VueUiXy has detected an unsafe value in your dataset:\n-----> The serie '${e.name}' contains the value '${t}' at index ${n}.\n'${t}' was converted to null to allow the chart to display.`);
2075
+ });
2076
+ }), ae(F.dataset) || (Sa.value = W.value.loading), Hi.value = W.value.chart.userOptions.showOnChartHover, Ui.value = W.value.chart.userOptions.keepStateOnChartLeave, Wi.value = !W.value.chart.userOptions.showOnChartHover, ga(), W.value.responsive) {
2077
+ let e = pi.value.parentNode;
2078
+ Ti.value && (Ti.value.unobserve(Ei.value), Ti.value.disconnect());
2079
+ let { height: t, width: n } = e.getBoundingClientRect(), r = null, i = 0;
2080
+ W.value.chart.title.show && mi.value && (r = mi.value, i = r.getBoundingClientRect().height);
2081
+ let a = null, o = 0;
2082
+ W.value.chart.zoom.show && Ea.value > 6 && ma.value && hi.value && hi.value.$el && (a = hi.value.$el, o = a.getBoundingClientRect().height);
2083
+ let s = null, c = 0;
2084
+ W.value.chart.legend.show && gi.value && (s = gi.value, c = s.getBoundingClientRect().height);
2085
+ let l = 0;
2086
+ _i.value && (l = _i.value.getBoundingClientRect().height);
2087
+ let u = 0;
2088
+ vi.value && (u = vi.value.getBoundingClientRect().height), ki.value = t - i - c - o - l - u - 12, L.value = n, Ai.value = `0 0 ${L.value < 0 ? 10 : L.value} ${ki.value < 0 ? 10 : ki.value}`, Gs();
2089
+ let ee = new ResizeObserver((e) => {
2090
+ for (let t of e) i = W.value.chart.title.show && mi.value ? mi.value.getBoundingClientRect().height : 0, o = hi.value && hi.value.$el ? hi.value.$el.getBoundingClientRect().height : 0, c = gi.value ? gi.value.getBoundingClientRect().height : 0, l = _i.value ? _i.value.getBoundingClientRect().height : 0, u = vi.value ? vi.value.getBoundingClientRect().height : 0, requestAnimationFrame(() => {
2091
+ ki.value = t.contentRect.height - i - c - o - l - u - 12, L.value = t.contentBoxSize[0].inlineSize ?? t.contentRect.width, Ai.value = `0 0 ${L.value < 0 ? 10 : L.value} ${ki.value < 0 ? 10 : ki.value}`, Gs(), ia(), oa();
2092
+ });
2093
+ });
2094
+ Ti.value = ee, Ei.value = e, ee.observe(e);
2095
+ } else ki.value = W.value.chart.height, L.value = W.value.chart.width, U.value.dataLabels = W.value.chart.grid.labels.fontSize, U.value.yAxis = W.value.chart.grid.labels.axis.fontSize, U.value.xAxis = W.value.chart.grid.labels.xAxisLabels.fontSize, U.value.plotLabels = W.value.chart.labels.fontSize, da.value.plot = W.value.plot.radius, da.value.line = W.value.line.radius, Ai.value = `0 0 ${L.value} ${ki.value}`;
2096
+ ia(), oa();
2097
+ }
2098
+ function qs(e) {
2099
+ ji.value = {
2100
+ x: e.clientX,
2101
+ y: e.clientY
2102
+ };
2103
+ }
2104
+ ot(() => {
2105
+ Ks(), jo(), document.addEventListener("mousemove", qs, { passive: !0 }), document.addEventListener("scroll", co, { passive: !0 });
2106
+ }), at(() => {
2107
+ document.removeEventListener("scroll", co, { passive: !0 }), document.removeEventListener("mousemove", qs, { passive: !0 }), Ti.value &&= (Ti.value.unobserve(Ei.value), Ti.value.disconnect(), null);
2108
+ }), ze({
2109
+ timeLabelsEls: Si,
2110
+ timeLabels: J,
2111
+ slicer: K,
2112
+ configRef: W,
2113
+ rotationPath: [
2114
+ "chart",
2115
+ "grid",
2116
+ "labels",
2117
+ "xAxisLabels",
2118
+ "rotation"
2119
+ ],
2120
+ autoRotatePath: [
2121
+ "chart",
2122
+ "grid",
2123
+ "labels",
2124
+ "xAxisLabels",
2125
+ "autoRotate",
2126
+ "enable"
2127
+ ],
2128
+ isAutoSize: Ia,
2129
+ height: ki,
2130
+ width: L,
2131
+ rotation: W.value.chart.grid.labels.xAxisLabels.autoRotate.angle
2132
+ });
2133
+ let Js = k(!1), Ys = k(null), Xs = k(200), Zs = x(() => H.value ?? B.value ?? 0);
2134
+ function Qs() {
2135
+ let e = Math.ceil(Xs.value || 200);
2136
+ return Math.min(Math.max(e, 1), 200);
2137
+ }
2138
+ function $s() {
2139
+ let e = Qs(), t = Math.max(1, Y.value), n = q.value.width / t, r = q.value?.left + Zs.value * n + n / 2 - e / 2 - (200 - e) / 2, i = q.value?.left - (200 - e) / 2, a = q.value?.right - (200 + e) / 2;
2140
+ return y(Math.max(i, Math.min(r, a)));
2141
+ }
2142
+ ot(() => {
2143
+ let e = null, t = null, n = (e) => {
2144
+ cancelAnimationFrame(t), t = requestAnimationFrame(() => {
2145
+ Xs.value = Math.min(Math.max(Math.ceil(e || 0), 1), 200);
2146
+ });
2147
+ }, r = new ResizeObserver((t) => {
2148
+ let r = t.find((t) => t.target === e) || t[0];
2149
+ r && n(r.contentRect.width || 200);
2150
+ }), i = pt((t) => {
2151
+ let i = Ys.value;
2152
+ e && e !== i && (r.unobserve(e), e = null), i && i !== e && (rt(() => {
2153
+ i.offsetParent !== null && n(i.offsetWidth || i.getBoundingClientRect().width || 200);
2154
+ }), r.observe(i), e = i), t(() => {
2155
+ e &&= (r.unobserve(e), null);
2156
+ });
2157
+ });
2158
+ at(() => {
2159
+ try {
2160
+ e && r.unobserve(e), r.disconnect(), i();
2161
+ } catch {}
2162
+ });
2163
+ });
2164
+ let ec = x(() => {
2165
+ if ([null, void 0].includes(H.value) && [null, void 0].includes(B.value)) return "";
2166
+ let e = (H.value == null ? 0 : H.value) || (B.value == null ? 0 : B.value), t = W.value.chart.timeTag.customFormat;
2167
+ if (Js.value = !1, be(t)) try {
2168
+ let n = t({
2169
+ absoluteIndex: e + K.value.start,
2170
+ seriesIndex: e,
2171
+ datapoint: Ss.value,
2172
+ bars: Ds.value,
2173
+ lines: $.value,
2174
+ plots: Os.value,
2175
+ config: W.value
2176
+ });
2177
+ if (typeof n == "string") return Js.value = !0, n;
2178
+ } catch {
2179
+ console.warn("Custom format cannot be applied on timeTag."), Js.value = !1;
2180
+ }
2181
+ if (!Js.value) return [null, void 0].includes(J.value[e]) ? "" : W.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !W.value.chart.timeTag.useDefaultFormat ? Ps.value(e + K.value.start, W.value.chart.timeTag.timeFormat) : J.value[e].text;
2182
+ });
2183
+ ft(() => F.dataset, (e) => {
2184
+ Array.isArray(e) && e.length > 0 && (Sa.value = !1), Ea.value = Math.max(...xa.value.map((e) => Ta(e.series).length)), K.value = {
2185
+ start: 0,
2186
+ end: Ea.value
2187
+ }, Di.value += 1, Vi.value += 1, ia(), oa(), Aa();
2188
+ }, { deep: !0 }), ft(() => F.config, (e) => {
2189
+ ba.value || (W.value = fa()), Ks(), zi.value += 1, Ri.value += 1, ga(), ia(), oa(), Aa();
2190
+ }, { deep: !0 });
2191
+ let tc = k(!1);
2192
+ function nc() {
2193
+ let e = pi.value?.parentNode;
2194
+ if (!e) {
2195
+ tc.value = !1;
2196
+ return;
2197
+ }
2198
+ let t = e.getBoundingClientRect();
2199
+ tc.value = t.width > 2 && t.height > 2;
2200
+ }
2201
+ ot(() => {
2202
+ nc();
2203
+ let e = new ResizeObserver(() => {
2204
+ nc(), tc.value && (Ks(), Aa(), jo());
2205
+ });
2206
+ pi.value?.parentNode && e.observe(pi.value.parentNode);
2207
+ }), ft(W, () => {
2208
+ ga();
2209
+ }, { immediate: !0 });
2210
+ let rc = x(() => {
2211
+ let e = W.value.table.useDialog && !W.value.showTable, t = G.value.showTable;
2212
+ return {
2213
+ component: e ? oi : Ke,
2214
+ title: `${W.value.chart.title.text}${W.value.chart.title.subtitle.text ? `: ${W.value.chart.title.subtitle.text}` : ""}`,
2215
+ props: e ? {
2216
+ backgroundColor: W.value.table.th.backgroundColor,
2217
+ color: W.value.table.th.color,
2218
+ headerColor: W.value.table.th.color,
2219
+ headerBg: W.value.table.th.backgroundColor,
2220
+ isFullscreen: Pi.value,
2221
+ fullscreenParent: pi.value,
2222
+ forcedWidth: Math.min(800, window.innerWidth * .8)
2223
+ } : {
2224
+ hideDetails: !0,
2225
+ config: {
2226
+ open: t,
2227
+ maxHeight: 1e4,
2228
+ body: {
2229
+ backgroundColor: W.value.chart.backgroundColor,
2230
+ color: W.value.chart.color
2231
+ },
2232
+ head: {
2233
+ backgroundColor: W.value.chart.backgroundColor,
2234
+ color: W.value.chart.color
2235
+ }
2236
+ }
2237
+ }
2238
+ };
2239
+ });
2240
+ ft(() => G.value.showTable, (e) => {
2241
+ W.value.showTable || (e && W.value.table.useDialog && Ji.value ? Ji.value.open() : Ji.value && Ji.value.close && Ji.value.close());
2242
+ });
2243
+ function ic() {
2244
+ G.value.showTable = !1, wi.value && wi.value.setTableIconState(!1);
2245
+ }
2246
+ let ac = x(() => Ya.value.map((e) => ({
2247
+ shape: e.type === "bar" ? "square" : e.shape ?? "circle",
2248
+ color: e.color,
2249
+ name: e.name
2250
+ }))), oc = x(() => W.value.chart.backgroundColor), sc = x(() => W.value.chart.legend), { exportSvg: cc, getSvg: lc } = Fe({
2251
+ svg: V,
2252
+ title: x(() => W.value.chart.title),
2253
+ legend: sc,
2254
+ legendItems: ac,
2255
+ backgroundColor: oc
2256
+ });
2257
+ async function uc({ isCb: e }) {
2258
+ Xi.value = !0, await rt();
2259
+ try {
2260
+ if (e) {
2261
+ let { blob: e, url: t, text: n, dataUrl: r } = await lc();
2262
+ await Promise.resolve(W.value.chart.userOptions.callbacks.svg({
2263
+ blob: e,
2264
+ url: t,
2265
+ text: n,
2266
+ dataUrl: r
2267
+ }));
2268
+ } else await Promise.resolve(cc());
2269
+ } finally {
2270
+ Xi.value = !1;
2271
+ }
2272
+ }
2273
+ function dc(e) {
2274
+ if (e?.stage === "start") {
2275
+ Yi.value = !0;
2276
+ return;
2277
+ }
2278
+ if (e?.stage === "end") {
2279
+ Yi.value = !1;
2280
+ return;
2281
+ }
2282
+ Fa();
2283
+ }
2284
+ async function fc() {
2285
+ if (si("copyAlt", {
2286
+ config: {
2287
+ ...W.value,
2288
+ formattedDates: J.value
2289
+ },
2290
+ dataset: {
2291
+ lines: $.value,
2292
+ bars: Ds.value,
2293
+ plots: Os.value
2294
+ }
2295
+ }), !W.value.chart.userOptions.callbacks.altCopy) {
2296
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
2297
+ return;
2298
+ }
2299
+ await Promise.resolve(W.value.chart.userOptions.callbacks.altCopy({
2300
+ config: {
2301
+ ...W.value,
2302
+ formattedDates: J.value
2303
+ },
2304
+ dataset: {
2305
+ lines: $.value,
2306
+ bars: Ds.value,
2307
+ plots: Os.value
2308
+ }
2309
+ }));
2310
+ }
2311
+ let pc = k(!1);
2312
+ function mc() {
2313
+ K.value.end > K.value.start && (Zi.value = null), uo.value = !0, pc.value = !0;
2314
+ }
2315
+ function hc() {
2316
+ Zi.value = null, Xo(), pc.value = !1, uo.value = !1;
2317
+ }
2318
+ function gc(e) {
2319
+ if (!V.value || Ni.value || document.activeElement !== V.value) return;
2320
+ let t = e.key === "ArrowLeft", n = e.key === "ArrowRight";
2321
+ if (!t && !n || !K.value.end && K.value.end !== 0) return;
2322
+ let r = K.value.end - K.value.start;
2323
+ if (r <= 0) return;
2324
+ e.preventDefault(), e.stopPropagation();
2325
+ let i = Zi.value, a = Ko.value;
2326
+ i !== null && i >= 0 && i < r ? n ? (i += 1, i >= r && (i = 0)) : t && (--i, i < 0 && (i = r - 1)) : a !== null && a >= 0 && a < r ? (i = n ? a + 1 : a - 1, i >= r && (i = 0), i < 0 && (i = r - 1)) : i = n ? 0 : r - 1, Zi.value = i, _c(i), Bs(!0, i);
2327
+ }
2328
+ function _c(e) {
2329
+ let t = K.value.end - K.value.start;
2330
+ if (t <= 0) return;
2331
+ let n = q.value.width / t, r = c(q.value.left + n * e + n / 2, q.value.top + q.value.height / 2, V.value);
2332
+ r && (Qi.value = r);
2333
+ }
2334
+ let vc = x(() => {
2335
+ if (!Rs.value) return null;
2336
+ let e = W.value.table.showSum, t = [W.value.table.columnNames.period].concat(Xa.value.map((e) => e.name));
2337
+ e && (t = t.concat(W.value.table.columnNames.total));
2338
+ let n = Rs.value.body.slice(K.value.start, K.value.end);
2339
+ return {
2340
+ headers: t,
2341
+ rows: n
2342
+ };
2343
+ });
2344
+ return We({
2345
+ getData: $o,
2346
+ getImage: es,
2347
+ generatePdf: Pa,
2348
+ generateImage: Fa,
2349
+ generateSvg: uc,
2350
+ generateCsv: zs,
2351
+ hideSeries: os,
2352
+ showSeries: as,
2353
+ toggleStack: So,
2354
+ toggleTable: Vs,
2355
+ toggleLabels: Hs,
2356
+ toggleTooltip: Us,
2357
+ toggleAnnotator: po,
2358
+ toggleFullscreen: Ws,
2359
+ copyAlt: fc
2360
+ }), (r, i) => (O(), C("div", {
2361
+ id: `vue-ui-xy_${z.value}`,
2362
+ class: it(`vue-data-ui-component vue-ui-xy ${Pi.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${W.value.useCssAnimation ? "" : "vue-ui-dna"}`),
2363
+ ref_key: "chart",
2364
+ ref: pi,
2365
+ style: D(`background:${W.value.chart.backgroundColor}; color:${W.value.chart.color};width:100%;font-family:${W.value.chart.fontFamily};${W.value.responsive ? "height: 100%" : ""}`),
2366
+ onMouseenter: i[6] ||= () => fo(!0),
2367
+ onMouseleave: i[7] ||= () => fo(!1),
2368
+ onClick: Zo
2369
+ }, [
2370
+ w("div", {
2371
+ id: `chart-instructions-${z.value}`,
2372
+ class: "sr-only"
2373
+ }, [w("p", null, M(W.value.a11y.translations.keyboardNavigation), 1)], 8, _t),
2374
+ vc.value?.rows?.length ? (O(), Xe(Je, {
2375
+ key: 0,
2376
+ uid: z.value,
2377
+ head: vc.value.headers,
2378
+ body: vc.value.rows,
2379
+ notice: W.value.a11y.translations.tableAvailable,
2380
+ caption: W.value.a11y.translations.tableCaption
2381
+ }, null, 8, [
2382
+ "uid",
2383
+ "head",
2384
+ "body",
2385
+ "notice",
2386
+ "caption"
2387
+ ])) : S("", !0),
2388
+ W.value.chart.userOptions.buttons.annotator && V.value ? (O(), Xe(N(ai), {
2389
+ key: 1,
2390
+ svgRef: V.value,
2391
+ backgroundColor: W.value.chart.backgroundColor,
2392
+ color: W.value.chart.color,
2393
+ active: Ni.value,
2394
+ isCursorPointer: ha.value,
2395
+ onClose: po
2396
+ }, {
2397
+ "annotator-action-close": P(() => [j(r.$slots, "annotator-action-close", {}, void 0, !0)]),
2398
+ "annotator-action-color": P(({ color: e }) => [j(r.$slots, "annotator-action-color", E(T({ color: e })), void 0, !0)]),
2399
+ "annotator-action-draw": P(({ mode: e }) => [j(r.$slots, "annotator-action-draw", E(T({ mode: e })), void 0, !0)]),
2400
+ "annotator-action-undo": P(({ disabled: e }) => [j(r.$slots, "annotator-action-undo", E(T({ disabled: e })), void 0, !0)]),
2401
+ "annotator-action-redo": P(({ disabled: e }) => [j(r.$slots, "annotator-action-redo", E(T({ disabled: e })), void 0, !0)]),
2402
+ "annotator-action-delete": P(({ disabled: e }) => [j(r.$slots, "annotator-action-delete", E(T({ disabled: e })), void 0, !0)]),
2403
+ _: 3
2404
+ }, 8, [
2405
+ "svgRef",
2406
+ "backgroundColor",
2407
+ "color",
2408
+ "active",
2409
+ "isCursorPointer"
2410
+ ])) : S("", !0),
2411
+ ls.value ? (O(), C("div", {
2412
+ key: 2,
2413
+ ref_key: "noTitle",
2414
+ ref: vi,
2415
+ class: "vue-data-ui-no-title-space",
2416
+ style: "height:36px; width: 100%; background:transparent"
2417
+ }, null, 512)) : S("", !0),
2418
+ W.value.chart.title.show ? (O(), C("div", {
2419
+ key: 3,
2420
+ ref_key: "chartTitle",
2421
+ ref: mi,
2422
+ class: "vue-ui-xy-title",
2423
+ style: D(`font-family:${W.value.chart.fontFamily}`)
2424
+ }, [(O(), Xe(Ve, {
2425
+ key: `title_${zi.value}`,
2426
+ config: {
2427
+ title: {
2428
+ cy: "xy-div-title",
2429
+ ...W.value.chart.title
2430
+ },
2431
+ subtitle: {
2432
+ cy: "xy-div-subtitle",
2433
+ ...W.value.chart.title.subtitle
2434
+ }
2435
+ }
2436
+ }, null, 8, ["config"]))], 4)) : S("", !0),
2437
+ w("div", { id: `legend-top-${z.value}` }, null, 8, vt),
2438
+ W.value.chart.userOptions.show && (Ui.value || Wi.value) ? (O(), Xe(N(ti), {
2439
+ ref_key: "userOptionsRef",
2440
+ ref: wi,
2441
+ key: `user_options_${Li.value}`,
2442
+ backgroundColor: W.value.chart.backgroundColor,
2443
+ color: W.value.chart.color,
2444
+ isPrinting: N(Ma),
2445
+ isImaging: N(Na),
2446
+ uid: z.value,
2447
+ hasTooltip: W.value.chart.userOptions.buttons.tooltip && W.value.chart.tooltip.show,
2448
+ hasPdf: W.value.chart.userOptions.buttons.pdf,
2449
+ hasXls: W.value.chart.userOptions.buttons.csv,
2450
+ hasImg: W.value.chart.userOptions.buttons.img,
2451
+ hasSvg: W.value.chart.userOptions.buttons.svg,
2452
+ hasLabel: W.value.chart.userOptions.buttons.labels,
2453
+ hasTable: W.value.chart.userOptions.buttons.table,
2454
+ hasStack: e.dataset.length > 1 && W.value.chart.userOptions.buttons.stack,
2455
+ hasFullscreen: W.value.chart.userOptions.buttons.fullscreen,
2456
+ hasAltCopy: W.value.chart.userOptions.buttons.altCopy,
2457
+ isStacked: G.value.isStacked,
2458
+ isFullscreen: Pi.value,
2459
+ chartElement: r.$refs.chart,
2460
+ position: W.value.chart.userOptions.position,
2461
+ isTooltip: G.value.showTooltip,
2462
+ titles: { ...W.value.chart.userOptions.buttonTitles },
2463
+ hasAnnotator: W.value.chart.userOptions.buttons.annotator,
2464
+ isAnnotation: Ni.value,
2465
+ callbacks: W.value.chart.userOptions.callbacks,
2466
+ tableDialog: W.value.table.useDialog,
2467
+ printScale: W.value.chart.userOptions.print.scale,
2468
+ isCursorPointer: ha.value,
2469
+ onToggleFullscreen: Ws,
2470
+ onGeneratePdf: N(Pa),
2471
+ onGenerateCsv: zs,
2472
+ onGenerateImage: dc,
2473
+ onGenerateSvg: uc,
2474
+ onToggleTable: Vs,
2475
+ onToggleLabels: Hs,
2476
+ onToggleStack: So,
2477
+ onToggleTooltip: Us,
2478
+ onToggleAnnotator: po,
2479
+ onCopyAlt: fc,
2480
+ style: D({ visibility: Ui.value ? Wi.value ? "visible" : "hidden" : "visible" })
2481
+ }, Ze({ _: 2 }, [
2482
+ r.$slots.menuIcon ? {
2483
+ name: "menuIcon",
2484
+ fn: P(({ isOpen: e, color: t }) => [j(r.$slots, "menuIcon", E(T({
2485
+ isOpen: e,
2486
+ color: t
2487
+ })), void 0, !0)]),
2488
+ key: "0"
2489
+ } : void 0,
2490
+ r.$slots.optionTooltip ? {
2491
+ name: "optionTooltip",
2492
+ fn: P(() => [j(r.$slots, "optionTooltip", {}, void 0, !0)]),
2493
+ key: "1"
2494
+ } : void 0,
2495
+ r.$slots.optionPdf ? {
2496
+ name: "optionPdf",
2497
+ fn: P(() => [j(r.$slots, "optionPdf", {}, void 0, !0)]),
2498
+ key: "2"
2499
+ } : void 0,
2500
+ r.$slots.optionCsv ? {
2501
+ name: "optionCsv",
2502
+ fn: P(() => [j(r.$slots, "optionCsv", {}, void 0, !0)]),
2503
+ key: "3"
2504
+ } : void 0,
2505
+ r.$slots.optionImg ? {
2506
+ name: "optionImg",
2507
+ fn: P(() => [j(r.$slots, "optionImg", {}, void 0, !0)]),
2508
+ key: "4"
2509
+ } : void 0,
2510
+ r.$slots.optionSvg ? {
2511
+ name: "optionSvg",
2512
+ fn: P(() => [j(r.$slots, "optionSvg", {}, void 0, !0)]),
2513
+ key: "5"
2514
+ } : void 0,
2515
+ r.$slots.optionTable ? {
2516
+ name: "optionTable",
2517
+ fn: P(() => [j(r.$slots, "optionTable", {}, void 0, !0)]),
2518
+ key: "6"
2519
+ } : void 0,
2520
+ r.$slots.optionLabels ? {
2521
+ name: "optionLabels",
2522
+ fn: P(() => [j(r.$slots, "optionLabels", {}, void 0, !0)]),
2523
+ key: "7"
2524
+ } : void 0,
2525
+ r.$slots.optionStack ? {
2526
+ name: "optionStack",
2527
+ fn: P(({ isStack: e }) => [j(r.$slots, "optionStack", E(T({ isStack: e })), void 0, !0)]),
2528
+ key: "8"
2529
+ } : void 0,
2530
+ r.$slots.optionFullscreen ? {
2531
+ name: "optionFullscreen",
2532
+ fn: P(({ toggleFullscreen: e, isFullscreen: t }) => [j(r.$slots, "optionFullscreen", E(T({
2533
+ toggleFullscreen: e,
2534
+ isFullscreen: t
2535
+ })), void 0, !0)]),
2536
+ key: "9"
2537
+ } : void 0,
2538
+ r.$slots.optionAnnotator ? {
2539
+ name: "optionAnnotator",
2540
+ fn: P(({ toggleAnnotator: e, isAnnotator: t }) => [j(r.$slots, "optionAnnotator", E(T({
2541
+ toggleAnnotator: e,
2542
+ isAnnotator: t
2543
+ })), void 0, !0)]),
2544
+ key: "10"
2545
+ } : void 0,
2546
+ r.$slots.optionAltCopy ? {
2547
+ name: "optionAltCopy",
2548
+ fn: P(({ altCopy: e }) => [j(r.$slots, "optionAltCopy", E(T({ altCopy: e })), void 0, !0)]),
2549
+ key: "11"
2550
+ } : void 0
2551
+ ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasLabel.hasTable.hasStack.hasFullscreen.hasAltCopy.isStacked.isFullscreen.chartElement.position.isTooltip.titles.hasAnnotator.isAnnotation.callbacks.tableDialog.printScale.isCursorPointer.onGeneratePdf.style".split("."))) : S("", !0),
2552
+ w("div", yt, [(O(), C("svg", {
2553
+ ref_key: "svgRef",
2554
+ ref: V,
2555
+ xmlns: "http://www.w3.org/2000/svg",
2556
+ class: it([{
2557
+ "vue-data-ui-fullscreen--on": Pi.value,
2558
+ "vue-data-ui-fulscreen--off": !Pi.value
2559
+ }, "vue-ui-xy-svg vue-data-ui-svg"]),
2560
+ width: "100%",
2561
+ viewBox: Ai.value,
2562
+ style: D({
2563
+ background: "transparent",
2564
+ color: W.value.chart.color,
2565
+ fontFamily: W.value.chart.fontFamily
2566
+ }),
2567
+ "aria-label": ss.value,
2568
+ "aria-describedby": `chart-instructions-${z.value}`,
2569
+ "aria-live": "polite",
2570
+ role: "img",
2571
+ tabindex: "0",
2572
+ preserveAspectRatio: "xMidYMid",
2573
+ onMousemove: Yo,
2574
+ onMouseleave: Xo,
2575
+ onClick: Zo,
2576
+ onFocus: mc,
2577
+ onBlur: hc,
2578
+ onKeydown: gc
2579
+ }, [w("g", {
2580
+ ref_key: "G",
2581
+ ref: yi,
2582
+ class: "vue-data-ui-g"
2583
+ }, [
2584
+ $e(N(ii)),
2585
+ r.$slots["chart-background"] ? (O(), C("foreignObject", {
2586
+ key: 0,
2587
+ x: q.value?.left + Z.value < 0 ? 0 : q.value?.left + Z.value,
2588
+ y: q.value?.top,
2589
+ width: q.value.width - (W.value.chart.grid.position === "middle" ? 0 : q.value.width / Y.value) < 0 ? 0 : q.value.width - (W.value.chart.grid.position === "middle" ? 0 : q.value.width / Y.value),
2590
+ height: q.value.height < 0 ? 0 : q.value.height,
2591
+ style: { pointerEvents: "none" }
2592
+ }, [j(r.$slots, "chart-background", {}, void 0, !0)], 8, xt)) : S("", !0),
2593
+ Y.value > 0 ? (O(), C("g", St, [
2594
+ w("g", Ct, [
2595
+ W.value.chart.grid.labels.xAxis.showBaseline ? (O(), C("line", {
2596
+ key: 0,
2597
+ stroke: W.value.chart.grid.stroke,
2598
+ "stroke-width": "1",
2599
+ x1: q.value?.left + Z.value,
2600
+ x2: q.value?.right - Z.value,
2601
+ y1: N(_)(q.value?.bottom),
2602
+ y2: N(_)(q.value?.bottom),
2603
+ "stroke-linecap": "round",
2604
+ style: { animation: "none !important" }
2605
+ }, null, 8, wt)) : S("", !0),
2606
+ G.value.useIndividualScale ? W.value.chart.grid.showHorizontalLines ? (O(!0), C(b, { key: 2 }, A(ks.value, (e) => (O(), C("g", null, [e.id === I.value && e.yLabels.length ? (O(!0), C(b, { key: 0 }, A(e.yLabels, (t) => (O(), C("line", {
2607
+ x1: q.value?.left + Z.value,
2608
+ x2: q.value?.right - Z.value,
2609
+ y1: N(_)(t.y),
2610
+ y2: N(_)(t.y),
2611
+ stroke: e.color,
2612
+ "stroke-width": .5,
2613
+ "stroke-linecap": "round",
2614
+ style: { animation: "none !important" }
2615
+ }, null, 8, Ot))), 256)) : e.yLabels.length ? (O(!0), C(b, { key: 1 }, A(e.yLabels, (e) => (O(), C("line", {
2616
+ x1: q.value?.left + Z.value,
2617
+ x2: q.value?.right - Z.value,
2618
+ y1: N(_)(e.y),
2619
+ y2: N(_)(e.y),
2620
+ stroke: W.value.chart.grid.stroke,
2621
+ "stroke-width": .5,
2622
+ "stroke-linecap": "round",
2623
+ style: { animation: "none !important" }
2624
+ }, null, 8, kt))), 256)) : S("", !0)]))), 256)) : S("", !0) : (O(), C(b, { key: 1 }, [W.value.chart.grid.labels.yAxis.showBaseline ? (O(), C("line", {
2625
+ key: 0,
2626
+ stroke: W.value.chart.grid.stroke,
2627
+ "stroke-width": "1",
2628
+ x1: q.value?.left + Z.value,
2629
+ x2: q.value?.left + Z.value,
2630
+ y1: N(_)(q.value?.top),
2631
+ y2: N(_)(q.value?.bottom),
2632
+ "stroke-linecap": "round",
2633
+ style: { animation: "none !important" }
2634
+ }, null, 8, Tt)) : S("", !0), W.value.chart.grid.showHorizontalLines ? (O(), C("g", Et, [(O(!0), C(b, null, A(Cs.value, (e) => (O(), C("line", {
2635
+ x1: q.value?.left + Z.value,
2636
+ x2: q.value?.right,
2637
+ y1: N(_)(e.y),
2638
+ y2: N(_)(e.y),
2639
+ stroke: W.value.chart.grid.stroke,
2640
+ "stroke-width": .5,
2641
+ "stroke-linecap": "round",
2642
+ style: { animation: "none !important" }
2643
+ }, null, 8, Dt))), 256))])) : S("", !0)], 64)),
2644
+ W.value.chart.grid.showVerticalLines ? (O(), C("g", At, [w("path", {
2645
+ d: io.value,
2646
+ "stroke-width": .5,
2647
+ stroke: W.value.chart.grid.stroke,
2648
+ "stroke-linecap": "round",
2649
+ style: { animation: "none !important" }
2650
+ }, null, 8, jt)])) : S("", !0),
2651
+ W.value.chart.grid.labels.xAxisLabels.show ? (O(), C("g", Mt, [w("path", {
2652
+ d: ao.value,
2653
+ stroke: W.value.chart.grid.stroke,
2654
+ "stroke-width": 1,
2655
+ "stroke-linecap": "round",
2656
+ style: { animation: "none !important" }
2657
+ }, null, 8, Nt)])) : S("", !0)
2658
+ ]),
2659
+ (O(!0), C(b, null, A(Ds.value, (e, t) => (O(), C("defs", { key: `def_rect_${t}` }, [r.$slots["bar-gradient"] ? j(r.$slots, "bar-gradient", nt({
2660
+ key: 0,
2661
+ ref_for: !0
2662
+ }, {
2663
+ series: e,
2664
+ positiveId: `rectGradient_pos_${t}_${z.value}`,
2665
+ negativeId: `rectGradient_neg_${t}_${z.value}`
2666
+ }), void 0, !0) : (O(), C(b, { key: 1 }, [w("linearGradient", {
2667
+ id: `rectGradient_pos_${t}_${z.value}`,
2668
+ x2: "0%",
2669
+ y2: "100%"
2670
+ }, [
2671
+ w("stop", {
2672
+ offset: "0%",
2673
+ "stop-color": e.color
2674
+ }, null, 8, Ft),
2675
+ w("stop", {
2676
+ offset: "62%",
2677
+ "stop-color": `${N(d)(e.color, .02)}`
2678
+ }, null, 8, It),
2679
+ w("stop", {
2680
+ offset: "100%",
2681
+ "stop-color": `${N(d)(e.color, .05)}`
2682
+ }, null, 8, Lt)
2683
+ ], 8, Pt), w("linearGradient", {
2684
+ id: `rectGradient_neg_${t}_${z.value}`,
2685
+ x2: "0%",
2686
+ y2: "100%"
2687
+ }, [
2688
+ w("stop", {
2689
+ offset: "0%",
2690
+ "stop-color": `${N(d)(e.color, .05)}`
2691
+ }, null, 8, zt),
2692
+ w("stop", {
2693
+ offset: "38%",
2694
+ "stop-color": `${N(d)(e.color, .02)}`
2695
+ }, null, 8, Bt),
2696
+ w("stop", {
2697
+ offset: "100%",
2698
+ "stop-color": e.color
2699
+ }, null, 8, Vt)
2700
+ ], 8, Rt)], 64))]))), 128)),
2701
+ (O(!0), C(b, null, A(Os.value, (e, t) => (O(), C("defs", { key: `def_plot_${t}` }, [w("radialGradient", {
2702
+ id: `plotGradient_${t}_${z.value}`,
2703
+ cx: "50%",
2704
+ cy: "50%",
2705
+ r: "50%",
2706
+ fx: "50%",
2707
+ fy: "50%"
2708
+ }, [w("stop", {
2709
+ offset: "0%",
2710
+ "stop-color": `${N(d)(e.color, .05)}`
2711
+ }, null, 8, Ut), w("stop", {
2712
+ offset: "100%",
2713
+ "stop-color": e.color
2714
+ }, null, 8, Wt)], 8, Ht)]))), 128)),
2715
+ (O(!0), C(b, null, A($.value, (e, n) => (O(), C(b, { key: `def_line_${e.id}` }, [w("defs", null, [w("radialGradient", {
2716
+ id: `lineGradient_${n}_${z.value}`,
2717
+ cx: "50%",
2718
+ cy: "50%",
2719
+ r: "50%",
2720
+ fx: "50%",
2721
+ fy: "50%"
2722
+ }, [w("stop", {
2723
+ offset: "0%",
2724
+ "stop-color": `${N(d)(e.color, .05)}`
2725
+ }, null, 8, Kt), w("stop", {
2726
+ offset: "100%",
2727
+ "stop-color": e.color
2728
+ }, null, 8, qt)], 8, Gt), r.$slots["area-gradient"] ? j(r.$slots, "area-gradient", nt({
2729
+ key: 0,
2730
+ ref_for: !0
2731
+ }, {
2732
+ series: e,
2733
+ id: `areaGradient_${n}_${z.value}`
2734
+ }), void 0, !0) : (O(), C("linearGradient", {
2735
+ key: 1,
2736
+ id: `areaGradient_${n}_${z.value}`,
2737
+ x1: "0%",
2738
+ x2: "100%",
2739
+ y1: "0%",
2740
+ y2: "0%"
2741
+ }, [w("stop", {
2742
+ offset: "0%",
2743
+ "stop-color": `${N(me)(N(d)(e.color, .03), W.value.line.area.opacity)}`
2744
+ }, null, 8, Yt), w("stop", {
2745
+ offset: "100%",
2746
+ "stop-color": `${N(me)(e.color, W.value.line.area.opacity)}`
2747
+ }, null, 8, Xt)], 8, Jt))]), e.temperatureColors ? (O(), C("defs", Zt, [w("linearGradient", {
2748
+ id: `temperature_grad_line_${n}_${z.value}`,
2749
+ gradientTransform: "rotate(90)"
2750
+ }, [(O(!0), C(b, null, A(e.temperatureColors, (r, i) => (O(), C("stop", {
2751
+ key: `temperature_grad_stop_${n}_${i}_${z.value}`,
2752
+ "stop-color": r,
2753
+ offset: N(t)(i, e.temperatureColors.length)
2754
+ }, null, 8, $t))), 128))], 8, Qt)])) : S("", !0)], 64))), 128)),
2755
+ (O(!0), C(b, null, A(us.value, (e) => (O(), C("g", null, [e.show ? (O(), C(b, { key: 0 }, [(O(!0), C(b, null, A(e.span, (t, n) => (O(), C("g", null, [w("rect", {
2756
+ style: D({
2757
+ transition: "none",
2758
+ opacity: +(e.from + n >= K.value.start && e.from + n <= K.value.end - 1)
2759
+ }),
2760
+ x: q.value?.left + q.value.width / Y.value * (e.from + n - K.value.start),
2761
+ y: q.value?.top,
2762
+ height: q.value.height < 0 ? 10 : q.value.height,
2763
+ width: q.value.width / Y.value < 0 ? 1e-5 : q.value.width / Y.value,
2764
+ fill: N(me)(e.color, e.opacity)
2765
+ }, null, 12, en)]))), 256)), (O(!0), C(b, null, A(e.span, (t, n) => (O(), C("g", null, [e.caption.text && n === 0 ? (O(), C("foreignObject", {
2766
+ key: 0,
2767
+ x: q.value?.left + q.value.width / Y.value * (e.from + n - K.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - q.value.width / Y.value * e.span / 2),
2768
+ y: q.value?.top + e.caption.offsetY,
2769
+ style: D({
2770
+ overflow: "visible",
2771
+ opacity: +(e.to >= K.value.start && e.from < K.value.end)
2772
+ }),
2773
+ height: "1",
2774
+ width: e.caption.width === "auto" ? q.value.width / Y.value * e.span : e.caption.width
2775
+ }, [w("div", { style: D(`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"}`) }, M(e.caption.text), 5)], 12, tn)) : S("", !0)]))), 256))], 64)) : S("", !0)]))), 256)),
2776
+ uo.value ? (O(), C("g", nn, [(O(!0), C(b, null, A(Y.value, (e, t) => (O(), C("g", { key: `tooltip_trap_highlighter_${t}` }, [w("rect", {
2777
+ x: q.value?.left + q.value.width / Y.value * t,
2778
+ y: q.value?.top,
2779
+ height: q.value.height < 0 ? 10 : q.value.height,
2780
+ width: q.value.width / Y.value < 0 ? 1e-5 : q.value.width / Y.value,
2781
+ fill: [
2782
+ B.value,
2783
+ H.value,
2784
+ Ii.value
2785
+ ].includes(t) ? N(me)(W.value.chart.highlighter.color, W.value.chart.highlighter.opacity) : "transparent",
2786
+ style: {
2787
+ transition: "none !important",
2788
+ animation: "none !important"
2789
+ }
2790
+ }, null, 8, rn)]))), 128))])) : S("", !0),
2791
+ Ds.value.length ? (O(!0), C(b, { key: 1 }, A(Ds.value, (e, t) => (O(), C("g", {
2792
+ key: `serie_bar_${e.id}`,
2793
+ class: it(`serie_bar_${t}`),
2794
+ style: D(`opacity:${I.value ? I.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
2795
+ }, [(O(!0), C(b, null, A(e.plots, (n, i) => (O(), C("g", { key: `bar_plot_${t}_${i}` }, [
2796
+ Io(n.value) ? (O(), C("rect", {
2797
+ key: 0,
2798
+ x: Uo(n) + ys.value / 2,
2799
+ y: G.value.useIndividualScale ? Go(n) : Wo(n),
2800
+ height: G.value.useIndividualScale ? Math.abs(Vo(n)) : Math.abs(Bo(n)),
2801
+ width: vs.value - ys.value,
2802
+ rx: W.value.bar.borderRadius,
2803
+ fill: W.value.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${t}_${z.value})` : `url(#rectGradient_neg_${t}_${z.value})` : e.color,
2804
+ stroke: W.value.bar.border.useSerieColor ? e.color : W.value.bar.border.stroke,
2805
+ "stroke-width": W.value.bar.border.strokeWidth,
2806
+ style: D({ transition: N(ba) || !W.value.bar.showTransition ? void 0 : `all ${W.value.bar.transitionDurationMs}ms ease-in-out` })
2807
+ }, null, 12, an)) : S("", !0),
2808
+ Io(n.value) && r.$slots.pattern ? (O(), C("rect", {
2809
+ key: 1,
2810
+ x: Uo(n) - ys.value / 2,
2811
+ y: G.value.useIndividualScale ? Go(n) : Wo(n),
2812
+ height: G.value.useIndividualScale ? Math.abs(Vo(n)) : Math.abs(Bo(n)),
2813
+ width: vs.value - ys.value,
2814
+ rx: W.value.bar.borderRadius,
2815
+ fill: `url(#pattern_${z.value}_${e.slotAbsoluteIndex})`,
2816
+ stroke: W.value.bar.border.useSerieColor ? e.color : W.value.bar.border.stroke,
2817
+ "stroke-width": W.value.bar.border.strokeWidth,
2818
+ style: D({ transition: N(ba) || !W.value.bar.showTransition ? void 0 : `all ${W.value.bar.transitionDurationMs}ms ease-in-out` })
2819
+ }, null, 12, on)) : S("", !0),
2820
+ n.comment && W.value.chart.comments.show ? (O(), C("foreignObject", {
2821
+ key: 2,
2822
+ style: { overflow: "visible" },
2823
+ height: "12",
2824
+ width: vs.value + W.value.chart.comments.width,
2825
+ x: Uo(n) - W.value.chart.comments.width / 2 + W.value.chart.comments.offsetX,
2826
+ y: N(y)(n.y) + W.value.chart.comments.offsetY + 6
2827
+ }, [j(r.$slots, "plot-comment", { plot: {
2828
+ ...n,
2829
+ color: e.color,
2830
+ seriesIndex: t,
2831
+ datapointIndex: i
2832
+ } }, void 0, !0)], 8, sn)) : S("", !0)
2833
+ ]))), 128))], 6))), 128)) : S("", !0),
2834
+ !G.value.useIndividualScale && W.value.chart.grid.labels.zeroLine.show ? (O(), C("line", {
2835
+ key: 2,
2836
+ stroke: W.value.chart.grid.stroke,
2837
+ "stroke-width": "1",
2838
+ x1: q.value?.left + Z.value,
2839
+ x2: q.value?.right,
2840
+ y1: N(_)(zo.value),
2841
+ y2: N(_)(zo.value),
2842
+ "stroke-linecap": "round",
2843
+ style: { animation: "none !important" }
2844
+ }, null, 8, cn)) : S("", !0),
2845
+ W.value.chart.highlighter.useLine && (![null, void 0].includes(H.value) || ![null, void 0].includes(B.value)) ? (O(), C("g", ln, [w("line", {
2846
+ x1: q.value?.left + q.value.width / Y.value * ((H.value === null ? 0 : H.value) || (B.value === null ? 0 : B.value)) + q.value.width / Y.value / 2,
2847
+ x2: q.value?.left + q.value.width / Y.value * ((H.value === null ? 0 : H.value) || (B.value === null ? 0 : B.value)) + q.value.width / Y.value / 2,
2848
+ y1: N(_)(q.value?.top),
2849
+ y2: N(_)(q.value?.bottom),
2850
+ stroke: W.value.chart.highlighter.color,
2851
+ "stroke-width": W.value.chart.highlighter.lineWidth,
2852
+ "stroke-dasharray": W.value.chart.highlighter.lineDasharray,
2853
+ "stroke-linecap": "round",
2854
+ style: {
2855
+ transition: "none !important",
2856
+ animation: "none !important",
2857
+ "pointer-events": "none"
2858
+ }
2859
+ }, null, 8, un)])) : S("", !0),
2860
+ W.value.chart.grid.frame.show ? (O(), C("rect", {
2861
+ key: 4,
2862
+ style: {
2863
+ pointerEvents: "none",
2864
+ transition: "none",
2865
+ animation: "none !important"
2866
+ },
2867
+ x: q.value?.left + Z.value < 0 ? 0 : q.value?.left + Z.value,
2868
+ y: q.value?.top,
2869
+ width: q.value.width - (W.value.chart.grid.position === "middle" ? 0 : q.value.width / Y.value) < 0 ? 0 : q.value.width - (W.value.chart.grid.position === "middle" ? 0 : q.value.width / Y.value),
2870
+ height: q.value.height < 0 ? 0 : q.value.height,
2871
+ fill: "transparent",
2872
+ stroke: W.value.chart.grid.frame.stroke,
2873
+ "stroke-width": W.value.chart.grid.frame.strokeWidth,
2874
+ "stroke-linecap": W.value.chart.grid.frame.strokeLinecap,
2875
+ "stroke-linejoin": W.value.chart.grid.frame.strokeLinejoin,
2876
+ "stroke-dasharray": W.value.chart.grid.frame.strokeDasharray
2877
+ }, null, 8, dn)) : S("", !0),
2878
+ W.value.chart.grid.labels.show ? (O(), C("g", {
2879
+ key: 5,
2880
+ ref_key: "scaleLabels",
2881
+ ref: Ci
2882
+ }, [G.value.useIndividualScale ? (O(), C(b, { key: 0 }, [(O(!0), C(b, null, A(ks.value, (e) => (O(), C("g", null, [w("line", {
2883
+ x1: e.x + Z.value - q.value.individualOffsetX,
2884
+ x2: e.x + Z.value - q.value.individualOffsetX,
2885
+ y1: G.value.isStacked ? N(_)(q.value?.bottom - e.yOffset - e.individualHeight) : N(_)(q.value?.top),
2886
+ y2: G.value.isStacked ? N(_)(q.value?.bottom - e.yOffset) : N(_)(q.value?.bottom),
2887
+ stroke: e.color,
2888
+ "stroke-width": W.value.chart.grid.stroke,
2889
+ "stroke-linecap": "round",
2890
+ style: D(`opacity:${I.value ? I.value === e.groupId ? 1 : .3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
2891
+ }, null, 12, fn)]))), 256)), (O(!0), C(b, null, A(ks.value, (e) => (O(), C("g", { style: D(`opacity:${I.value ? I.value === e.groupId ? 1 : .3 : 1};transition:opacity 0.2s ease-in-out`) }, [
2892
+ w("text", {
2893
+ fill: e.color,
2894
+ "font-size": U.value.dataLabels * .8,
2895
+ "text-anchor": "middle",
2896
+ transform: `translate(${e.x - U.value.dataLabels * .8 / 2 + Z.value}, ${G.value.isStacked ? q.value?.bottom - e.yOffset - e.individualHeight / 2 : q.value?.top + q.value.height / 2}) rotate(-90)`
2897
+ }, M(e.name) + " " + M(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `-
2898
+ ${e.scaleLabel}` : ""), 9, pn),
2899
+ (O(!0), C(b, null, A(e.yLabels, (t, n) => (O(), C(b, null, [W.value.chart.grid.labels.yAxis.showCrosshairs ? (O(), C("line", {
2900
+ key: 0,
2901
+ x1: e.x + 3 + Z.value - W.value.chart.grid.labels.yAxis.crosshairSize - q.value.individualOffsetX,
2902
+ x2: e.x + Z.value - q.value.individualOffsetX,
2903
+ y1: N(_)(t.y),
2904
+ y2: N(_)(t.y),
2905
+ stroke: e.color,
2906
+ "stroke-width": 1,
2907
+ "stroke-linecap": "round",
2908
+ style: { animation: "none !important" }
2909
+ }, null, 8, mn)) : S("", !0)], 64))), 256)),
2910
+ (O(!0), C(b, null, A(e.yLabels, (t, n) => (O(), C("text", {
2911
+ x: e.x - 5 + Z.value - q.value.individualOffsetX,
2912
+ y: N(_)(t.y) + U.value.dataLabels / 3,
2913
+ "font-size": U.value.dataLabels,
2914
+ "text-anchor": "end",
2915
+ fill: e.color
2916
+ }, M(N(v)(W.value.chart.grid.labels.yAxis.formatter, t.value, N(a)({
2917
+ p: t.prefix,
2918
+ v: t.value,
2919
+ s: t.suffix,
2920
+ r: W.value.chart.grid.labels.yAxis.rounding
2921
+ }), {
2922
+ datapoint: t.datapoint,
2923
+ seriesIndex: n
2924
+ })), 9, hn))), 256))
2925
+ ], 4))), 256))], 64)) : (O(!0), C(b, { key: 1 }, A(Cs.value, (e, t) => (O(), C("g", { key: `yLabel_${t}` }, [Io(e) && e.value >= Ka.value.min && e.value <= Ka.value.max && W.value.chart.grid.labels.yAxis.showCrosshairs ? (O(), C("line", {
2926
+ key: 0,
2927
+ x1: q.value?.left + Z.value,
2928
+ x2: q.value?.left + Z.value - W.value.chart.grid.labels.yAxis.crosshairSize,
2929
+ y1: N(_)(e.y),
2930
+ y2: N(_)(e.y),
2931
+ stroke: W.value.chart.grid.stroke,
2932
+ "stroke-width": "1",
2933
+ "stroke-linecap": "round",
2934
+ style: { animation: "none !important" }
2935
+ }, null, 8, gn)) : S("", !0), e.value >= Ka.value.min && e.value <= Ka.value.max ? (O(), C("text", {
2936
+ key: 1,
2937
+ x: q.value.scaleLabelX - W.value.chart.grid.labels.yAxis.crosshairSize,
2938
+ y: N(y)(e.y + U.value.dataLabels / 3),
2939
+ "font-size": U.value.dataLabels,
2940
+ "text-anchor": "end",
2941
+ fill: W.value.chart.grid.labels.color
2942
+ }, M(Io(e.value) ? N(v)(W.value.chart.grid.labels.yAxis.formatter, e.value, N(a)({
2943
+ p: e.prefix,
2944
+ v: e.value,
2945
+ s: e.suffix,
2946
+ r: W.value.chart.grid.labels.yAxis.rounding
2947
+ })) : ""), 9, _n)) : S("", !0)]))), 128))], 512)) : S("", !0),
2948
+ (O(!0), C(b, null, A(Os.value, (e, t) => (O(), C("g", {
2949
+ key: `serie_plot_${e.id}`,
2950
+ class: it(`serie_plot_${t}`),
2951
+ style: D(`opacity:${I.value ? I.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
2952
+ }, [(O(!0), C(b, null, A(e.plots, (n, i) => (O(), C("g", { key: `circle_plot_${t}_${i}` }, [n && Io(n.value) ? (O(), Xe(Ue, {
2953
+ key: 0,
2954
+ shape: [
2955
+ "triangle",
2956
+ "square",
2957
+ "diamond",
2958
+ "pentagon",
2959
+ "hexagon",
2960
+ "star"
2961
+ ].includes(e.shape) ? e.shape : "circle",
2962
+ color: W.value.plot.useGradient ? `url(#plotGradient_${t}_${z.value})` : W.value.plot.dot.useSerieColor ? e.color : W.value.plot.dot.fill,
2963
+ plot: {
2964
+ x: N(y)(n.x),
2965
+ y: N(y)(n.y)
2966
+ },
2967
+ radius: H.value !== null && H.value === i || B.value !== null && B.value === i ? (da.value.plot || 6) * 1.5 : da.value.plot || 6,
2968
+ stroke: W.value.plot.dot.useSerieColor ? W.value.chart.backgroundColor : e.color,
2969
+ strokeWidth: W.value.plot.dot.strokeWidth,
2970
+ transition: N(ba) || !W.value.plot.showTransition || H.value !== null && H.value === i || B.value !== null && B.value === i ? void 0 : `all ${W.value.plot.transitionDurationMs}ms ease-in-out`
2971
+ }, null, 8, [
2972
+ "shape",
2973
+ "color",
2974
+ "plot",
2975
+ "radius",
2976
+ "stroke",
2977
+ "strokeWidth",
2978
+ "transition"
2979
+ ])) : S("", !0), n.comment && W.value.chart.comments.show ? (O(), C("foreignObject", {
2980
+ key: 1,
2981
+ style: { overflow: "visible" },
2982
+ height: "12",
2983
+ width: W.value.chart.comments.width,
2984
+ x: n.x - W.value.chart.comments.width / 2 + W.value.chart.comments.offsetX,
2985
+ y: n.y + W.value.chart.comments.offsetY + 6
2986
+ }, [w("div", yn, [j(r.$slots, "plot-comment", { plot: {
2987
+ ...n,
2988
+ color: e.color,
2989
+ seriesIndex: t,
2990
+ datapointIndex: i
2991
+ } }, void 0, !0)])], 8, vn)) : S("", !0)]))), 128))], 6))), 128)),
2992
+ (O(!0), C(b, null, A($.value, (e, t) => (O(), C("g", {
2993
+ key: `serie_line_${e.id}`,
2994
+ class: it(`serie_line_${t}`),
2995
+ style: D(`opacity:${I.value ? I.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
2996
+ }, [e.smooth && e.plots.length > 1 && e.curve ? (O(), C("path", {
2997
+ key: 0,
2998
+ d: `M${e.curve}`,
2999
+ stroke: W.value.chart.backgroundColor,
3000
+ "stroke-width": W.value.line.strokeWidth + 1,
3001
+ "stroke-dasharray": e.dashed ? W.value.line.strokeWidth * 2 : 0,
3002
+ fill: "none",
3003
+ style: D({ transition: N(ba) || !W.value.line.showTransition ? void 0 : `all ${W.value.line.transitionDurationMs}ms ease-in-out` })
3004
+ }, null, 12, bn)) : e.plots.length > 1 && e.straight ? (O(), C("path", {
3005
+ key: 1,
3006
+ d: `M${e.straight}`,
3007
+ stroke: W.value.chart.backgroundColor,
3008
+ "stroke-width": W.value.line.strokeWidth + 1,
3009
+ "stroke-dasharray": e.dashed ? W.value.line.strokeWidth * 2 : 0,
3010
+ fill: "none",
3011
+ "stroke-linecap": "round",
3012
+ "stroke-linejoin": "round",
3013
+ style: D({ transition: N(ba) || !W.value.line.showTransition ? void 0 : `all ${W.value.line.transitionDurationMs}ms ease-in-out` })
3014
+ }, null, 12, xn)) : S("", !0)], 6))), 128)),
3015
+ r.$slots.pattern ? (O(), C("defs", Sn, [(O(!0), C(b, null, A(Ja.value, (e, t) => j(r.$slots, "pattern", nt({ key: `serie_pattern_slot_${e.id}` }, { ref_for: !0 }, {
3016
+ ...e,
3017
+ seriesIndex: e.slotAbsoluteIndex,
3018
+ patternId: `pattern_${z.value}_${t}`
3019
+ }), void 0, !0)), 128))])) : S("", !0),
3020
+ As.value.length && !G.value.isStacked ? (O(), C("g", Cn, [(O(!0), C(b, null, A(As.value, (e) => (O(), C("path", {
3021
+ key: e.key,
3022
+ d: e.d,
3023
+ fill: e.color,
3024
+ "fill-opacity": W.value.line.interLine.fillOpacity,
3025
+ stroke: "none",
3026
+ "pointer-events": "none",
3027
+ style: D({ transition: N(ba) || !W.value.line.showTransition ? void 0 : `all ${W.value.line.transitionDurationMs}ms ease-in-out` })
3028
+ }, null, 12, wn))), 128))])) : S("", !0),
3029
+ (O(!0), C(b, null, A($.value, (e, t) => (O(), C("g", {
3030
+ key: `serie_line_above_${e.id}`,
3031
+ class: it(`serie_line_${t}`),
3032
+ style: D(`opacity:${I.value ? I.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3033
+ }, [
3034
+ e.useArea && e.plots.length > 1 ? (O(), C("g", Tn, [e.smooth ? (O(!0), C(b, { key: 0 }, A(e.curveAreas, (n, i) => (O(), C(b, { key: i }, [n ? (O(), C("path", {
3035
+ key: 0,
3036
+ d: n,
3037
+ fill: W.value.line.area.useGradient ? `url(#areaGradient_${t}_${z.value})` : N(me)(e.color, W.value.line.area.opacity),
3038
+ style: D({ transition: N(ba) || !W.value.line.showTransition ? void 0 : `all ${W.value.line.transitionDurationMs}ms ease-in-out` })
3039
+ }, null, 12, En)) : S("", !0), r.$slots.pattern && n ? (O(), C("path", {
3040
+ key: 1,
3041
+ d: n,
3042
+ fill: `url(#pattern_${z.value}_${e.slotAbsoluteIndex})`,
3043
+ style: D({ transition: N(ba) || !W.value.line.showTransition ? void 0 : `all ${W.value.line.transitionDurationMs}ms ease-in-out` })
3044
+ }, null, 12, Dn)) : S("", !0)], 64))), 128)) : (O(!0), C(b, { key: 1 }, A(e.area.split(";"), (n, i) => (O(), C(b, { key: i }, [n ? (O(), C("path", {
3045
+ key: 0,
3046
+ d: `M${n}Z`,
3047
+ fill: W.value.line.area.useGradient ? `url(#areaGradient_${t}_${z.value})` : N(me)(e.color, W.value.line.area.opacity),
3048
+ style: D({ transition: N(ba) || !W.value.line.showTransition ? void 0 : `all ${W.value.line.transitionDurationMs}ms ease-in-out` })
3049
+ }, null, 12, On)) : S("", !0), r.$slots.pattern && n ? (O(), C("path", {
3050
+ key: 1,
3051
+ d: `M${n}Z`,
3052
+ fill: `url(#pattern_${z.value}_${e.slotAbsoluteIndex})`,
3053
+ style: D({ transition: N(ba) || !W.value.line.showTransition ? void 0 : `all ${W.value.line.transitionDurationMs}ms ease-in-out` })
3054
+ }, null, 12, kn)) : S("", !0)], 64))), 128))])) : S("", !0),
3055
+ !e.hasDashedSegments && e.smooth && e.plots.length > 1 && e.curve ? (O(), C("path", {
3056
+ key: 1,
3057
+ d: `M${e.curve}`,
3058
+ stroke: e.temperatureColors ? `url(#temperature_grad_line_${t}_${z.value})` : e.color,
3059
+ "stroke-width": W.value.line.strokeWidth,
3060
+ "stroke-dasharray": e.dashed ? W.value.line.strokeWidth * 2 : 0,
3061
+ fill: "none",
3062
+ "stroke-linecap": "round",
3063
+ style: D({ transition: N(ba) || !W.value.line.showTransition ? void 0 : `all ${W.value.line.transitionDurationMs}ms ease-in-out` })
3064
+ }, null, 12, An)) : e.hasDashedSegments ? (O(), C(b, { key: 2 }, [e.smooth ? (O(!0), C(b, { key: 0 }, A(e.dashedSmooth, (n) => (O(), C("path", {
3065
+ key: n.path,
3066
+ fill: "none",
3067
+ "stroke-linecap": "round",
3068
+ "stroke-linejoin": "round",
3069
+ d: `M ${n.path}`,
3070
+ stroke: e.temperatureColors ? `url(#temperature_grad_line_${t}_${z.value})` : e.color,
3071
+ "stroke-width": W.value.line.strokeWidth,
3072
+ "stroke-dasharray": n.dashed ? W.value.line.strokeWidth * 2 : 0
3073
+ }, null, 8, jn))), 128)) : (O(!0), C(b, { key: 1 }, A(e.dashedStraight, (n) => (O(), C("path", {
3074
+ key: n.path,
3075
+ fill: "none",
3076
+ "stroke-linecap": "round",
3077
+ "stroke-linejoin": "round",
3078
+ d: `M ${n.path}`,
3079
+ stroke: e.temperatureColors ? `url(#temperature_grad_line_${t}_${z.value})` : e.color,
3080
+ "stroke-width": W.value.line.strokeWidth,
3081
+ "stroke-dasharray": n.dashed ? W.value.line.strokeWidth * 2 : 0
3082
+ }, null, 8, Mn))), 128))], 64)) : e.plots.length > 1 && e.straight ? (O(), C("path", {
3083
+ key: 3,
3084
+ d: `M${e.straight}`,
3085
+ stroke: e.temperatureColors ? `url(#temperature_grad_line_${t}_${z.value})` : e.color,
3086
+ "stroke-width": W.value.line.strokeWidth,
3087
+ "stroke-dasharray": e.dashed ? W.value.line.strokeWidth * 2 : 0,
3088
+ fill: "none",
3089
+ "stroke-linecap": "round",
3090
+ "stroke-linejoin": "round",
3091
+ style: D({ transition: N(ba) || !W.value.line.showTransition ? void 0 : `all ${W.value.line.transitionDurationMs}ms ease-in-out` })
3092
+ }, null, 12, Nn)) : S("", !0),
3093
+ (O(!0), C(b, null, A(e.plots, (n, i) => (O(), C(b, { key: `circle_line_${t}_${i}` }, [!cs.value.linePlot && n && Io(n.value) || cs.value.linePlot && n && Io(n.value) && (H.value !== null && H.value === i || B.value !== null && B.value === i) || Ts(e.plots, i) ? (O(), Xe(Ue, {
3094
+ key: 0,
3095
+ shape: [
3096
+ "triangle",
3097
+ "square",
3098
+ "diamond",
3099
+ "pentagon",
3100
+ "hexagon",
3101
+ "star"
3102
+ ].includes(e.shape) ? e.shape : "circle",
3103
+ color: W.value.line.useGradient ? `url(#lineGradient_${t}_${z.value})` : W.value.line.dot.useSerieColor ? e.color : W.value.line.dot.fill,
3104
+ plot: {
3105
+ x: N(y)(n.x),
3106
+ y: N(y)(n.y)
3107
+ },
3108
+ radius: H.value !== null && H.value === i || B.value !== null && B.value === i ? (da.value.line || 6) * 1.5 : (Ts(e.plots, i), da.value.line || 6),
3109
+ stroke: W.value.line.dot.useSerieColor ? W.value.chart.backgroundColor : e.color,
3110
+ strokeWidth: W.value.line.dot.strokeWidth,
3111
+ transition: N(ba) || !W.value.line.showTransition || H.value !== null && H.value === i || B.value !== null && B.value === i ? void 0 : `all ${W.value.line.transitionDurationMs}ms ease-in-out`
3112
+ }, null, 8, [
3113
+ "shape",
3114
+ "color",
3115
+ "plot",
3116
+ "radius",
3117
+ "stroke",
3118
+ "strokeWidth",
3119
+ "transition"
3120
+ ])) : S("", !0), n.comment && W.value.chart.comments.show ? (O(), C("foreignObject", {
3121
+ key: 1,
3122
+ style: { overflow: "visible" },
3123
+ height: "12",
3124
+ width: W.value.chart.comments.width,
3125
+ x: n.x - W.value.chart.comments.width / 2 + W.value.chart.comments.offsetX,
3126
+ y: n.y + W.value.chart.comments.offsetY + 6
3127
+ }, [w("div", Fn, [j(r.$slots, "plot-comment", { plot: {
3128
+ ...n,
3129
+ color: e.color,
3130
+ seriesIndex: t,
3131
+ datapointIndex: i
3132
+ } }, void 0, !0)])], 8, Pn)) : S("", !0)], 64))), 128))
3133
+ ], 6))), 128)),
3134
+ (W.value.bar.labels.show || W.value.bar.serieName.show) && G.value.dataLabels.show ? (O(), C("g", In, [(O(!0), C(b, null, A(Ds.value, (e, t) => (O(), C(b, { key: `xLabel_bar_${e.id}` }, [(O(!0), C(b, null, A(e.plots, (n, r) => (O(), C(b, { key: `xLabel_bar_${t}_${r}` }, [n && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || H.value !== null && H.value === r || B.value !== null && B.value === r) && W.value.bar.labels.show ? (O(), C("text", {
3135
+ key: 0,
3136
+ x: G.value.useIndividualScale && G.value.isStacked ? n.x + X.value.line / 2 : Uo(n) + Ho() / 2 - _s.value / 2,
3137
+ y: N(y)(n.y) + (n.value >= 0 ? W.value.bar.labels.offsetY : -W.value.bar.labels.offsetY * 3),
3138
+ "text-anchor": "middle",
3139
+ "font-size": U.value.plotLabels,
3140
+ fill: W.value.bar.labels.color,
3141
+ style: D(`opacity:${I.value ? I.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3142
+ }, M(Io(n.value) ? N(v)(W.value.bar.labels.formatter, n.value, N(a)({
3143
+ p: e.prefix || W.value.chart.labels.prefix,
3144
+ v: n.value,
3145
+ s: e.suffix || W.value.chart.labels.suffix,
3146
+ r: W.value.bar.labels.rounding
3147
+ }), {
3148
+ datapoint: n,
3149
+ serie: e
3150
+ }) : ""), 13, Ln)) : S("", !0), n && W.value.bar.serieName.show ? (O(), C("text", {
3151
+ key: 1,
3152
+ x: G.value.useIndividualScale && G.value.isStacked ? n.x + X.value.line / 2 : n.x + Ho() * 1.1,
3153
+ y: n.y + (n.value > 0 ? W.value.bar.serieName.offsetY : -W.value.bar.serieName.offsetY * 3),
3154
+ "text-anchor": "middle",
3155
+ "font-size": U.value.plotLabels,
3156
+ fill: W.value.bar.serieName.useSerieColor ? e.color : W.value.bar.serieName.color,
3157
+ "font-weight": W.value.bar.serieName.bold ? "bold" : "normal",
3158
+ style: D(`opacity:${I.value ? I.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3159
+ }, M(W.value.bar.serieName.useAbbreviation ? N(ve)({
3160
+ source: e.name,
3161
+ length: W.value.bar.serieName.abbreviationSize
3162
+ }) : e.name), 13, Rn)) : S("", !0)], 64))), 128))], 64))), 128))])) : S("", !0),
3163
+ W.value.plot.labels.show && G.value.dataLabels.show ? (O(), C("g", zn, [(O(!0), C(b, null, A(Os.value, (e, t) => (O(), C(b, { key: `xLabel_plot_${e.id}` }, [(O(!0), C(b, null, A(e.plots, (n, r) => (O(), C(b, { key: `xLabel_plot_${t}_${r}` }, [n && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || H.value !== null && H.value === r || B.value !== null && B.value === r ? (O(), C("text", {
3164
+ key: 0,
3165
+ x: n.x,
3166
+ y: n.y + W.value.plot.labels.offsetY,
3167
+ "text-anchor": "middle",
3168
+ "font-size": U.value.plotLabels,
3169
+ fill: W.value.plot.labels.color,
3170
+ style: D(`opacity:${I.value ? I.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3171
+ }, M(Io(n.value) ? N(v)(W.value.plot.labels.formatter, n.value, N(a)({
3172
+ p: e.prefix || W.value.chart.labels.prefix,
3173
+ v: n.value,
3174
+ s: e.suffix || W.value.chart.labels.suffix,
3175
+ r: W.value.plot.labels.rounding
3176
+ }), {
3177
+ datapoint: n,
3178
+ serie: e
3179
+ }) : ""), 13, Bn)) : S("", !0)], 64))), 128))], 64))), 128))])) : (O(), C("g", Vn, [(O(!0), C(b, null, A(Os.value, (e, t) => (O(), C(b, { key: `xLabel_plot_${e.id}` }, [(O(!0), C(b, null, A(e.plots, (n, r) => (O(), C(b, { key: `xLabel_plot_${t}_${r}` }, [W.value.plot.tag.followValue ? (O(), C(b, { key: 1 }, [[
3180
+ B.value,
3181
+ H.value,
3182
+ Ii.value
3183
+ ].includes(r) && e.useTag ? (O(), C("line", {
3184
+ key: 0,
3185
+ class: "vue-ui-xy-tag-plot",
3186
+ x1: q.value?.left,
3187
+ x2: q.value?.right,
3188
+ y1: n.y,
3189
+ y2: n.y,
3190
+ "stroke-width": 1,
3191
+ "stroke-linecap": "round",
3192
+ "stroke-dasharray": "2",
3193
+ stroke: e.color
3194
+ }, null, 8, Kn)) : S("", !0)], 64)) : (O(), C(b, { key: 0 }, [n && r === 0 && e.useTag && e.useTag === "start" ? (O(), C("foreignObject", {
3195
+ key: 0,
3196
+ x: n.x,
3197
+ y: n.y - 20,
3198
+ height: 24,
3199
+ width: "150",
3200
+ style: D(`overflow: visible; opacity:${I.value ? I.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3201
+ }, [w("div", {
3202
+ style: D(`padding: 3px; background:${N(me)(e.color, 80)};color:${N(xe)(e.color)};width:fit-content;font-size:${U.value.plotLabels}px;border-radius: 2px;`),
3203
+ innerHTML: N(v)(W.value.plot.tag.formatter, n.value, e.name, {
3204
+ datapoint: n,
3205
+ seriesIndex: r,
3206
+ serieName: e.name
3207
+ })
3208
+ }, null, 12, Un)], 12, Hn)) : S("", !0), n && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (O(), C("foreignObject", {
3209
+ key: 1,
3210
+ x: n.x - e.name.length * (U.value.plotLabels / 2),
3211
+ y: n.y - 20,
3212
+ height: 24,
3213
+ width: "150",
3214
+ style: D(`overflow: visible; opacity:${I.value ? I.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3215
+ }, [w("div", {
3216
+ style: D(`padding: 3px; background:${N(me)(e.color, 80)};color:${N(xe)(e.color)};width:fit-content;font-size:${U.value.plotLabels}px;border-radius: 2px;`),
3217
+ innerHTML: N(v)(W.value.plot.tag.formatter, n.value, e.name, {
3218
+ datapoint: n,
3219
+ seriesIndex: r,
3220
+ serieName: e.name
3221
+ })
3222
+ }, null, 12, Gn)], 12, Wn)) : S("", !0)], 64))], 64))), 128))], 64))), 128))])),
3223
+ W.value.line.labels.show && G.value.dataLabels.show ? (O(), C("g", qn, [(O(!0), C(b, null, A($.value, (e, t) => (O(), C(b, { key: `xLabel_line_${e.id}` }, [(O(!0), C(b, null, A(e.plots, (n, r) => (O(), C(b, { key: `xLabel_line_${t}_${r}` }, [n && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || H.value !== null && H.value === r || B.value !== null && B.value === r ? (O(), C("text", {
3224
+ key: 0,
3225
+ x: n.x,
3226
+ y: n.y + (n.value >= 0 ? W.value.line.labels.offsetY : -W.value.line.labels.offsetY * 3),
3227
+ "text-anchor": "middle",
3228
+ "font-size": U.value.plotLabels,
3229
+ fill: W.value.line.labels.color,
3230
+ style: D(`opacity:${I.value ? I.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3231
+ }, M(Io(n.value) ? N(v)(W.value.line.labels.formatter, n.value, N(a)({
3232
+ p: e.prefix || W.value.chart.labels.prefix,
3233
+ v: n.value,
3234
+ s: e.suffix || W.value.chart.labels.suffix,
3235
+ r: W.value.line.labels.rounding
3236
+ }), {
3237
+ datapoint: n,
3238
+ serie: e
3239
+ }) : ""), 13, Jn)) : S("", !0)], 64))), 128))], 64))), 128))])) : (O(), C("g", Yn, [(O(!0), C(b, null, A($.value, (e, t) => (O(), C(b, { key: `xLabel_line_${e.id}` }, [(O(!0), C(b, null, A(e.plots, (n, r) => (O(), C(b, { key: `xLabel_line_${t}_${r}` }, [W.value.line.tag.followValue ? (O(), C(b, { key: 1 }, [[
3240
+ B.value,
3241
+ H.value,
3242
+ Ii.value
3243
+ ].includes(r) && e.useTag ? (O(), C("line", {
3244
+ key: 0,
3245
+ class: "vue-ui-xy-tag-line",
3246
+ x1: q.value?.left,
3247
+ x2: q.value?.right,
3248
+ y1: n.y,
3249
+ y2: n.y,
3250
+ "stroke-width": 1,
3251
+ "stroke-linecap": "round",
3252
+ "stroke-dasharray": "2",
3253
+ stroke: e.color
3254
+ }, null, 8, er)) : S("", !0)], 64)) : (O(), C(b, { key: 0 }, [n && r === 0 && e.useTag && e.useTag === "start" ? (O(), C("foreignObject", {
3255
+ key: 0,
3256
+ x: n.x,
3257
+ y: n.y - 20,
3258
+ height: 24,
3259
+ width: "150",
3260
+ style: D(`overflow: visible; opacity:${I.value ? I.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3261
+ }, [w("div", {
3262
+ style: D(`padding: 3px; background:${N(me)(e.color, 80)};color:${N(xe)(e.color)};width:fit-content;font-size:${U.value.plotLabels}px;border-radius: 2px;`),
3263
+ innerHTML: N(v)(W.value.line.tag.formatter, n.value, e.name, {
3264
+ datapoint: n,
3265
+ seriesIndex: r,
3266
+ serieName: e.name
3267
+ })
3268
+ }, null, 12, Zn)], 12, Xn)) : S("", !0), n && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (O(), C("foreignObject", {
3269
+ key: 1,
3270
+ x: n.x,
3271
+ y: n.y - 20,
3272
+ height: 24,
3273
+ width: "150",
3274
+ style: D(`overflow: visible; opacity:${I.value ? I.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3275
+ }, [w("div", {
3276
+ style: D(`padding: 3px; background:${N(me)(e.color, 80)};color:${N(xe)(e.color)};width:fit-content;font-size:${U.value.plotLabels}px;border-radius: 2px;`),
3277
+ innerHTML: N(v)(W.value.line.tag.formatter, n.value, e.name, {
3278
+ datapoint: n,
3279
+ seriesIndex: r,
3280
+ serieName: e.name
3281
+ })
3282
+ }, null, 12, $n)], 12, Qn)) : S("", !0)], 64))], 64))), 128))], 64))), 128))])),
3283
+ (O(!0), C(b, null, A($.value, (e, t) => (O(), C(b, { key: `xLabel_line_${e.id}` }, [(O(!0), C(b, null, A(e.plots, (n, r) => (O(), C(b, { key: `xLabel_line_${t}_${r}` }, [n && r === 0 && e.showSerieName && e.showSerieName === "start" ? (O(), C("text", {
3284
+ key: 0,
3285
+ x: n.x - U.value.plotLabels,
3286
+ y: n.y,
3287
+ "font-size": U.value.plotLabels,
3288
+ "text-anchor": "end",
3289
+ fill: e.color,
3290
+ innerHTML: N(Ee)({
3291
+ content: e.name,
3292
+ fontSize: U.value.plotLabels,
3293
+ fill: e.color,
3294
+ x: n.x - U.value.plotLabels,
3295
+ y: n.y,
3296
+ maxWords: 2
3297
+ }),
3298
+ style: D(`opacity:${I.value ? I.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3299
+ }, null, 12, tr)) : S("", !0), n && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (O(), C("text", {
3300
+ key: 1,
3301
+ x: n.x + U.value.plotLabels,
3302
+ y: n.y,
3303
+ "font-size": U.value.plotLabels,
3304
+ "text-anchor": "start",
3305
+ fill: e.color,
3306
+ innerHTML: N(Ee)({
3307
+ content: e.name,
3308
+ fontSize: U.value.plotLabels,
3309
+ fill: e.color,
3310
+ x: n.x + U.value.plotLabels,
3311
+ y: n.y,
3312
+ maxWords: 2
3313
+ }),
3314
+ style: D(`opacity:${I.value ? I.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3315
+ }, null, 12, nr)) : S("", !0)], 64))), 128))], 64))), 128)),
3316
+ (O(!0), C(b, null, A(Os.value, (e, t) => (O(), C(b, { key: `xLabel_plot_${e.id}` }, [(O(!0), C(b, null, A(e.plots, (n, r) => (O(), C(b, { key: `xLabel_plot_${t}_${r}` }, [n && r === 0 && e.showSerieName && e.showSerieName === "start" ? (O(), C("text", {
3317
+ key: 0,
3318
+ x: n.x - U.value.plotLabels,
3319
+ y: n.y,
3320
+ "font-size": U.value.plotLabels,
3321
+ "text-anchor": "end",
3322
+ fill: e.color,
3323
+ innerHTML: N(Ee)({
3324
+ content: e.name,
3325
+ fontSize: U.value.plotLabels,
3326
+ fill: e.color,
3327
+ x: n.x - U.value.plotLabels,
3328
+ y: n.y,
3329
+ maxWords: 2
3330
+ }),
3331
+ style: D(`opacity:${I.value ? I.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3332
+ }, null, 12, rr)) : S("", !0), n && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (O(), C("text", {
3333
+ key: 1,
3334
+ x: n.x + U.value.plotLabels,
3335
+ y: n.y,
3336
+ "font-size": U.value.plotLabels,
3337
+ "text-anchor": "start",
3338
+ fill: e.color,
3339
+ innerHTML: N(Ee)({
3340
+ content: e.name,
3341
+ fontSize: U.value.plotLabels,
3342
+ fill: e.color,
3343
+ x: n.x + U.value.plotLabels,
3344
+ y: n.y,
3345
+ maxWords: 2
3346
+ }),
3347
+ style: D(`opacity:${I.value ? I.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3348
+ }, null, 12, ir)) : S("", !0)], 64))), 128))], 64))), 128)),
3349
+ (O(!0), C(b, null, A([
3350
+ ...Os.value,
3351
+ ...$.value,
3352
+ ...Ds.value
3353
+ ], (e, t) => (O(), C(b, { key: `progression-${t}` }, [Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(N(ge)(e.plots).trend) ? (O(), C("g", ar, [
3354
+ w("defs", null, [w("marker", {
3355
+ id: `progression_arrow_${t}`,
3356
+ markerWidth: "9",
3357
+ markerHeight: "9",
3358
+ viewBox: "-1 -1 9 9",
3359
+ markerUnits: "userSpaceOnUse",
3360
+ refX: "7",
3361
+ refY: 7 / 2,
3362
+ orient: "auto",
3363
+ overflow: "visible"
3364
+ }, [w("polygon", {
3365
+ points: "0,0 7,3.5 0,7",
3366
+ fill: e.color,
3367
+ stroke: W.value.chart.backgroundColor,
3368
+ "stroke-width": "1",
3369
+ "stroke-linejoin": "round"
3370
+ }, null, 8, sr)], 8, or)]),
3371
+ e.plots.length > 1 ? (O(), C("line", {
3372
+ key: 0,
3373
+ x1: N(ge)(e.plots).x1 + (e.type === "bar" ? Ho() : 0),
3374
+ x2: N(ge)(e.plots).x2 + (e.type === "bar" ? Ho() : 0),
3375
+ y1: N(_)(N(ge)(e.plots).y1),
3376
+ y2: N(_)(N(ge)(e.plots).y2),
3377
+ "stroke-width": 1,
3378
+ stroke: W.value.chart.backgroundColor,
3379
+ "stroke-dasharray": 2,
3380
+ "stroke-linecap": "round",
3381
+ "stroke-linejoin": "round",
3382
+ "marker-end": `url(#progression_arrow_${t})`
3383
+ }, null, 8, cr)) : S("", !0),
3384
+ e.plots.length > 1 ? (O(), C("line", {
3385
+ key: 1,
3386
+ x1: N(ge)(e.plots).x1 + (e.type === "bar" ? Ho() : 0),
3387
+ x2: N(ge)(e.plots).x2 + (e.type === "bar" ? Ho() : 0),
3388
+ y1: N(_)(N(ge)(e.plots).y1),
3389
+ y2: N(_)(N(ge)(e.plots).y2),
3390
+ "stroke-width": 1,
3391
+ stroke: e.color,
3392
+ "stroke-dasharray": 2,
3393
+ "stroke-linecap": "round",
3394
+ "stroke-linejoin": "round",
3395
+ "marker-end": `url(#progression_arrow_${t})`
3396
+ }, null, 8, lr)) : S("", !0),
3397
+ e.plots.length > 1 ? (O(), C("text", {
3398
+ key: 2,
3399
+ "text-anchor": "middle",
3400
+ x: N(ge)(e.plots).x2 + (e.type === "bar" ? Ho() : 0),
3401
+ y: N(ge)(e.plots).y2 - 12,
3402
+ "font-size": U.value.plotLabels,
3403
+ fill: e.color,
3404
+ stroke: W.value.chart.backgroundColor,
3405
+ "stroke-width": 4,
3406
+ "stroke-linecap": "round",
3407
+ "stroke-linejoin": "round",
3408
+ "paint-order": "stroke fill"
3409
+ }, M(N(a)({
3410
+ v: N(ge)(e.plots).trend * 100,
3411
+ s: "%",
3412
+ r: 2
3413
+ })), 9, ur)) : S("", !0)
3414
+ ])) : S("", !0)], 64))), 128)),
3415
+ G.value.useIndividualScale && !G.value.isStacked ? (O(), C(b, { key: 13 }, [w("defs", null, [(O(!0), C(b, null, A(ks.value, (e, t) => (O(), C("linearGradient", {
3416
+ id: `individual_scale_gradient_${z.value}_${t}`,
3417
+ x1: "0%",
3418
+ x2: "100%",
3419
+ y1: "0%",
3420
+ y2: "0%"
3421
+ }, [w("stop", {
3422
+ offset: "0%",
3423
+ "stop-color": W.value.chart.backgroundColor,
3424
+ "stop-opacity": "0"
3425
+ }, null, 8, fr), w("stop", {
3426
+ offset: "100%",
3427
+ "stop-color": e.color,
3428
+ "stop-opacity": "0.2"
3429
+ }, null, 8, pr)], 8, dr))), 256))]), (O(!0), C(b, null, A(ks.value, (e, t) => (O(), C("rect", {
3430
+ x: e.x - W.value.chart.grid.labels.yAxis.labelWidth + Z.value - q.value.individualOffsetX,
3431
+ y: q.value?.top,
3432
+ width: W.value.chart.grid.labels.yAxis.labelWidth + q.value.individualOffsetX,
3433
+ height: q.value.height < 0 ? 10 : q.value.height,
3434
+ fill: I.value === e.groupId ? `url(#individual_scale_gradient_${z.value}_${t})` : "transparent",
3435
+ onMouseenter: (t) => I.value = e.groupId,
3436
+ onMouseleave: i[0] ||= (e) => I.value = null
3437
+ }, null, 40, mr))), 256))], 64)) : S("", !0),
3438
+ w("g", null, [W.value.chart.grid.labels.axis.yLabel && !G.value.useIndividualScale ? (O(), C("text", {
3439
+ key: 0,
3440
+ ref_key: "yAxisLabel",
3441
+ ref: xi,
3442
+ "font-size": U.value.yAxis,
3443
+ fill: W.value.chart.grid.labels.color,
3444
+ transform: `translate(${W.value.chart.grid.labels.axis.fontSize}, ${q.value?.top + q.value.height / 2}) rotate(-90)`,
3445
+ "text-anchor": "middle",
3446
+ style: { transition: "none" }
3447
+ }, M(W.value.chart.grid.labels.axis.yLabel), 9, hr)) : S("", !0), W.value.chart.grid.labels.axis.xLabel ? (O(), C("text", {
3448
+ key: 1,
3449
+ ref_key: "xAxisLabel",
3450
+ ref: bi,
3451
+ "text-anchor": "middle",
3452
+ x: L.value / 2,
3453
+ y: ki.value - 3,
3454
+ "font-size": U.value.yAxis,
3455
+ fill: W.value.chart.grid.labels.color
3456
+ }, M(W.value.chart.grid.labels.axis.xLabel), 9, gr)) : S("", !0)]),
3457
+ W.value.chart.grid.labels.xAxisLabels.show ? (O(), C("g", {
3458
+ key: 14,
3459
+ ref_key: "timeLabelsEls",
3460
+ ref: Si
3461
+ }, [r.$slots["time-label"] ? (O(!0), C(b, { key: 0 }, A(vo.value, (e, t) => j(r.$slots, "time-label", nt({
3462
+ key: `time_label_${e.id}`,
3463
+ ref_for: !0
3464
+ }, {
3465
+ x: q.value?.left + q.value.width / Y.value * t + q.value.width / Y.value / 2,
3466
+ y: q.value?.bottom,
3467
+ fontSize: U.value.xAxis,
3468
+ fill: W.value.chart.grid.labels.xAxisLabels.color,
3469
+ transform: `translate(${q.value?.left + q.value.width / Y.value * t + q.value.width / Y.value / 2}, ${q.value?.bottom + U.value.xAxis * 1.3 + W.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${W.value.chart.grid.labels.xAxisLabels.rotation})`,
3470
+ absoluteIndex: e.absoluteIndex,
3471
+ content: e.text,
3472
+ textAnchor: W.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : W.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
3473
+ show: e && e.text
3474
+ }), void 0, !0)), 128)) : (O(!0), C(b, { key: 1 }, A(vo.value, (e, t) => (O(), C("g", { key: `time_label_${t}` }, [e && e.text ? (O(), C(b, { key: 0 }, [String(e.text).includes("\n") ? (O(), C("text", {
3475
+ key: 1,
3476
+ class: "vue-data-ui-time-label",
3477
+ "text-anchor": W.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : W.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
3478
+ "font-size": U.value.xAxis,
3479
+ fill: W.value.chart.grid.labels.xAxisLabels.color,
3480
+ transform: `translate(${q.value?.left + q.value.width / Y.value * t + q.value.width / Y.value / 2}, ${q.value?.bottom + U.value.xAxis * 1.5}), rotate(${W.value.chart.grid.labels.xAxisLabels.rotation})`,
3481
+ style: D({ cursor: oo() && ha.value ? "pointer" : "default" }),
3482
+ innerHTML: N(n)({
3483
+ content: String(e.text),
3484
+ fontSize: U.value.xAxis,
3485
+ fill: W.value.chart.grid.labels.xAxisLabels.color,
3486
+ x: 0,
3487
+ y: 0
3488
+ }),
3489
+ onClick: () => bo(e, t)
3490
+ }, null, 12, vr)) : (O(), C("text", {
3491
+ key: 0,
3492
+ class: "vue-data-ui-time-label",
3493
+ "text-anchor": W.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : W.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
3494
+ "font-size": U.value.xAxis,
3495
+ fill: W.value.chart.grid.labels.xAxisLabels.color,
3496
+ transform: `translate(${q.value?.left + q.value.width / Y.value * t + q.value.width / Y.value / 2}, ${q.value?.bottom + U.value.xAxis * 1.5}), rotate(${W.value.chart.grid.labels.xAxisLabels.rotation})`,
3497
+ style: D({ cursor: oo() && ha.value ? "pointer" : "default" }),
3498
+ onClick: () => bo(e, t)
3499
+ }, M(e.text || ""), 13, _r))], 64)) : S("", !0)]))), 128))], 512)) : S("", !0),
3500
+ ws.value.length && !G.value.isStacked ? (O(), C("g", yr, [(O(!0), C(b, null, A(ws.value, (e) => (O(), C("g", { key: e.uid }, [
3501
+ e.yTop && e.show && isFinite(e.yTop) ? (O(), C("line", {
3502
+ key: 0,
3503
+ x1: e.x1,
3504
+ y1: e.yTop,
3505
+ x2: e.x2,
3506
+ y2: e.yTop,
3507
+ stroke: e.config.line.stroke,
3508
+ "stroke-width": e.config.line.strokeWidth,
3509
+ "stroke-dasharray": e.config.line.strokeDasharray,
3510
+ "stroke-linecap": "round",
3511
+ style: { animation: "none !important" }
3512
+ }, null, 8, br)) : S("", !0),
3513
+ e.yBottom && e.show && isFinite(e.yBottom) ? (O(), C("line", {
3514
+ key: 1,
3515
+ x1: e.x1,
3516
+ y1: e.yBottom,
3517
+ x2: e.x2,
3518
+ y2: e.yBottom,
3519
+ stroke: e.config.line.stroke,
3520
+ "stroke-width": e.config.line.strokeWidth,
3521
+ "stroke-dasharray": e.config.line.strokeDasharray,
3522
+ "stroke-linecap": "round",
3523
+ style: { animation: "none !important" }
3524
+ }, null, 8, xr)) : S("", !0),
3525
+ e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (O(), C("rect", {
3526
+ key: 2,
3527
+ y: Math.min(e.yTop, e.yBottom),
3528
+ x: e.x1,
3529
+ width: q.value.width,
3530
+ height: N(y)(e.areaHeight, 0),
3531
+ fill: N(me)(e.config.area.fill, e.config.area.opacity),
3532
+ style: { animation: "none !important" }
3533
+ }, null, 8, Sr)) : S("", !0),
3534
+ e.config.label.text && e.show && isFinite(e._box.y) ? (O(), C("rect", nt({
3535
+ key: 3,
3536
+ class: "vue-ui-xy-annotation-label-box"
3537
+ }, { ref_for: !0 }, e._box, { style: {
3538
+ animation: "none !important",
3539
+ transition: "none !important"
3540
+ } }), null, 16)) : S("", !0),
3541
+ e.config.label.text && e.show && isFinite(e._text.y) ? (O(), C("text", {
3542
+ key: 4,
3543
+ id: e.id,
3544
+ class: "vue-ui-xy-annotation-label",
3545
+ x: e._text.x,
3546
+ y: e._text.y,
3547
+ "font-size": e.config.label.fontSize,
3548
+ fill: e.config.label.color,
3549
+ "text-anchor": e.config.label.textAnchor
3550
+ }, M(e.config.label.text), 9, Cr)) : S("", !0)
3551
+ ]))), 128))])) : S("", !0),
3552
+ W.value.chart.timeTag.show && (![null, void 0].includes(H.value) || ![null, void 0].includes(B.value)) ? (O(), C("g", wr, [(O(), C("foreignObject", {
3553
+ x: $s(),
3554
+ y: q.value?.bottom,
3555
+ width: "200",
3556
+ height: "40",
3557
+ style: { overflow: "visible !important" }
3558
+ }, [w("div", {
3559
+ ref_key: "timeTagEl",
3560
+ ref: Ys,
3561
+ class: "vue-ui-xy-time-tag",
3562
+ style: D(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${W.value.chart.timeTag.backgroundColor};color:${W.value.chart.timeTag.color};font-size:${W.value.chart.timeTag.fontSize}px`),
3563
+ innerHTML: ec.value
3564
+ }, null, 12, Er)], 8, Tr)), w("circle", {
3565
+ cx: q.value?.left + q.value.width / Y.value * ((H.value === null ? 0 : H.value) || (B.value === null ? 0 : B.value)) + q.value.width / Y.value / 2,
3566
+ cy: q.value?.bottom,
3567
+ r: W.value.chart.timeTag.circleMarker.radius,
3568
+ fill: W.value.chart.timeTag.circleMarker.color
3569
+ }, null, 8, Dr)])) : S("", !0)
3570
+ ])) : S("", !0),
3571
+ Oa.value ? (O(), C("rect", nt({ key: 2 }, ja.value, {
3572
+ "data-start": K.value.start,
3573
+ "data-end": K.value.end
3574
+ }), null, 16, Or)) : S("", !0),
3575
+ j(r.$slots, "svg", { svg: {
3576
+ ...sa.value,
3577
+ isPrintingImg: N(Ma) || N(Na) || Yi.value,
3578
+ isPrintingSvg: Xi.value,
3579
+ data: [
3580
+ ...$.value,
3581
+ ...Ds.value,
3582
+ ...Os.value
3583
+ ],
3584
+ drawingArea: q.value
3585
+ } }, void 0, !0)
3586
+ ], 512)], 46, bt)), r.$slots.hint ? (O(), C("div", kr, [j(r.$slots, "hint", E(T({
3587
+ hint: W.value.a11y.translations.keyboardNavigation,
3588
+ isVisible: pc.value
3589
+ })), void 0, !0)])) : S("", !0)]),
3590
+ r.$slots.watermark ? (O(), C("div", Ar, [j(r.$slots, "watermark", E(T({ isPrinting: N(Ma) || N(Na) || Yi.value || Xi.value })), void 0, !0)])) : S("", !0),
3591
+ (O(!0), C(b, null, A($.value, (e, t) => (O(), C(b, { key: `tag_line_${e.id}` }, [(O(!0), C(b, null, A(e.plots, (n, r) => (O(), C(b, { key: `tag_line_${t}_${r}` }, [[
3592
+ B.value,
3593
+ H.value,
3594
+ Ii.value
3595
+ ].includes(r) && e.useTag && e.useTag === "end" && W.value.line.tag.followValue ? (O(), C("div", {
3596
+ key: 0,
3597
+ ref_for: !0,
3598
+ ref: (e) => lo(t, r, e, "right", "line"),
3599
+ class: "vue-ui-xy-tag",
3600
+ "data-tag": "right",
3601
+ style: D({
3602
+ position: "fixed",
3603
+ top: N(p)({
3604
+ svgElement: V.value,
3605
+ x: q.value?.right + W.value.line.tag.fontSize / 1.5,
3606
+ y: n.y,
3607
+ element: Gi.value[`${t}_${r}_right_line`],
3608
+ position: "right"
3609
+ })?.top + "px",
3610
+ left: N(p)({
3611
+ svgElement: V.value,
3612
+ x: q.value?.right + W.value.line.tag.fontSize / 1.5,
3613
+ y: n.y,
3614
+ element: Gi.value[`${t}_${r}_right_line`],
3615
+ position: "right"
3616
+ })?.left + "px",
3617
+ height: "fit-content",
3618
+ width: "fit-content",
3619
+ background: e.color,
3620
+ color: N(xe)(e.color),
3621
+ padding: "0 6px",
3622
+ fontSize: W.value.line.tag.fontSize + "px",
3623
+ opacity: 1
3624
+ })
3625
+ }, [(O(), C("svg", jr, [w("path", {
3626
+ d: "M 0,10 10,0 10,20 Z",
3627
+ fill: e.color,
3628
+ stroke: "none"
3629
+ }, null, 8, Mr)])), w("div", {
3630
+ class: "vue-ui-xy-tag-content",
3631
+ innerHTML: N(v)(W.value.line.tag.formatter, n.value, e.name, {
3632
+ datapoint: n,
3633
+ seriesIndex: r,
3634
+ serieName: e.name
3635
+ })
3636
+ }, null, 8, Nr)], 4)) : S("", !0), [
3637
+ B.value,
3638
+ H.value,
3639
+ Ii.value
3640
+ ].includes(r) && e.useTag && e.useTag === "start" && W.value.line.tag.followValue ? (O(), C("div", {
3641
+ key: 1,
3642
+ ref_for: !0,
3643
+ ref: (e) => lo(t, r, e, "left", "line"),
3644
+ class: "vue-ui-xy-tag",
3645
+ "data-tag": "left",
3646
+ style: D({
3647
+ position: "fixed",
3648
+ top: N(p)({
3649
+ svgElement: V.value,
3650
+ x: q.value?.left - W.value.line.tag.fontSize / 1.5,
3651
+ y: n.y,
3652
+ element: Gi.value[`${t}_${r}_left_line`],
3653
+ position: "left"
3654
+ })?.top + "px",
3655
+ left: N(p)({
3656
+ svgElement: V.value,
3657
+ x: q.value?.left - W.value.line.tag.fontSize / 1.5,
3658
+ y: n.y,
3659
+ element: Gi.value[`${t}_${r}_left_line`],
3660
+ position: "left"
3661
+ })?.left + "px",
3662
+ height: "fit-content",
3663
+ width: "fit-content",
3664
+ background: e.color,
3665
+ color: N(xe)(e.color),
3666
+ padding: "0 6px",
3667
+ fontSize: W.value.line.tag.fontSize + "px",
3668
+ opacity: 1
3669
+ })
3670
+ }, [(O(), C("svg", Pr, [w("path", {
3671
+ d: "M 0,0 10,10 0,20 Z",
3672
+ fill: e.color,
3673
+ stroke: "none"
3674
+ }, null, 8, Fr)])), w("div", {
3675
+ class: "vue-ui-xy-tag-content",
3676
+ innerHTML: N(v)(W.value.line.tag.formatter, n.value, e.name, {
3677
+ datapoint: n,
3678
+ seriesIndex: r,
3679
+ serieName: e.name
3680
+ })
3681
+ }, null, 8, Ir)], 4)) : S("", !0)], 64))), 128))], 64))), 128)),
3682
+ (O(!0), C(b, null, A(Os.value, (e, t) => (O(), C(b, { key: `tag_plot_${e.id}` }, [(O(!0), C(b, null, A(e.plots, (n, r) => (O(), C(b, { key: `tag_plot_${t}_${r}` }, [[
3683
+ B.value,
3684
+ H.value,
3685
+ Ii.value
3686
+ ].includes(r) && e.useTag && e.useTag === "end" && W.value.plot.tag.followValue ? (O(), C("div", {
3687
+ key: 0,
3688
+ ref_for: !0,
3689
+ ref: (e) => lo(t, r, e, "right", "plot"),
3690
+ class: "vue-ui-xy-tag",
3691
+ "data-tag": "right",
3692
+ style: D({
3693
+ position: "fixed",
3694
+ top: N(p)({
3695
+ svgElement: V.value,
3696
+ x: q.value?.right + W.value.plot.tag.fontSize / 1.5,
3697
+ y: n.y,
3698
+ element: Gi.value[`${t}_${r}_right_plot`],
3699
+ position: "right"
3700
+ })?.top + "px",
3701
+ left: N(p)({
3702
+ svgElement: V.value,
3703
+ x: q.value?.right + W.value.plot.tag.fontSize / 1.5,
3704
+ y: n.y,
3705
+ element: Gi.value[`${t}_${r}_right_plot`],
3706
+ position: "right"
3707
+ })?.left + "px",
3708
+ height: "fit-content",
3709
+ width: "fit-content",
3710
+ background: e.color,
3711
+ color: N(xe)(e.color),
3712
+ padding: "0 6px",
3713
+ fontSize: W.value.plot.tag.fontSize + "px",
3714
+ opacity: 1
3715
+ })
3716
+ }, [(O(), C("svg", Lr, [w("path", {
3717
+ d: "M 0,10 10,0 10,20 Z",
3718
+ fill: e.color,
3719
+ stroke: "none"
3720
+ }, null, 8, Rr)])), w("div", {
3721
+ class: "vue-ui-xy-tag-content",
3722
+ innerHTML: N(v)(W.value.plot.tag.formatter, n.value, e.name, {
3723
+ datapoint: n,
3724
+ seriesIndex: r,
3725
+ serieName: e.name
3726
+ })
3727
+ }, null, 8, zr)], 4)) : S("", !0), [
3728
+ B.value,
3729
+ H.value,
3730
+ Ii.value
3731
+ ].includes(r) && e.useTag && e.useTag === "start" && W.value.plot.tag.followValue ? (O(), C("div", {
3732
+ key: 1,
3733
+ ref_for: !0,
3734
+ ref: (e) => lo(t, r, e, "left", "plot"),
3735
+ class: "vue-ui-xy-tag",
3736
+ "data-tag": "left",
3737
+ style: D({
3738
+ position: "fixed",
3739
+ top: N(p)({
3740
+ svgElement: V.value,
3741
+ x: q.value?.left - W.value.plot.tag.fontSize / 1.5,
3742
+ y: n.y,
3743
+ element: Gi.value[`${t}_${r}_left_plot`],
3744
+ position: "left"
3745
+ })?.top + "px",
3746
+ left: N(p)({
3747
+ svgElement: V.value,
3748
+ x: q.value?.left - W.value.plot.tag.fontSize / 1.5,
3749
+ y: n.y,
3750
+ element: Gi.value[`${t}_${r}_left_plot`],
3751
+ position: "left"
3752
+ })?.left + "px",
3753
+ height: "fit-content",
3754
+ width: "fit-content",
3755
+ background: e.color,
3756
+ color: N(xe)(e.color),
3757
+ padding: "0 6px",
3758
+ fontSize: W.value.plot.tag.fontSize + "px",
3759
+ opacity: 1
3760
+ })
3761
+ }, [(O(), C("svg", Br, [w("path", {
3762
+ d: "M 0,0 10,10 0,20 Z",
3763
+ fill: e.color,
3764
+ stroke: "none"
3765
+ }, null, 8, Vr)])), w("div", {
3766
+ class: "vue-ui-xy-tag-content",
3767
+ innerHTML: N(v)(W.value.plot.tag.formatter, n.value, e.name, {
3768
+ datapoint: n,
3769
+ seriesIndex: r,
3770
+ serieName: e.name
3771
+ })
3772
+ }, null, 8, Hr)], 4)) : S("", !0)], 64))), 128))], 64))), 128)),
3773
+ W.value.chart.zoom.show && Ea.value > 6 && ma.value && Do.value ? (O(), Xe(Ge, {
3774
+ key: 6,
3775
+ ref_key: "chartSlicer",
3776
+ ref: hi,
3777
+ uuid: z.value,
3778
+ allMinimaps: xs.value,
3779
+ background: W.value.chart.zoom.color,
3780
+ borderColor: W.value.chart.backgroundColor,
3781
+ customFormat: W.value.chart.zoom.customFormat,
3782
+ cutNullValues: W.value.line.cutNullValues,
3783
+ enableRangeHandles: W.value.chart.zoom.enableRangeHandles,
3784
+ enableSelectionDrag: W.value.chart.zoom.enableSelectionDrag,
3785
+ end: K.value.end,
3786
+ focusOnDrag: W.value.chart.zoom.focusOnDrag,
3787
+ focusRangeRatio: W.value.chart.zoom.focusRangeRatio,
3788
+ fontSize: W.value.chart.zoom.fontSize,
3789
+ useResetSlot: W.value.chart.zoom.useResetSlot,
3790
+ immediate: !W.value.chart.zoom.preview.enable,
3791
+ inputColor: W.value.chart.zoom.color,
3792
+ isPreview: Oa.value,
3793
+ labelLeft: J.value[0] ? J.value[0].text : "",
3794
+ labelRight: J.value.at(-1) ? J.value.at(-1).text : "",
3795
+ max: Ea.value,
3796
+ min: 0,
3797
+ minimap: bs.value,
3798
+ minimapCompact: W.value.chart.zoom.minimap.compact,
3799
+ minimapFrameColor: W.value.chart.zoom.minimap.frameColor,
3800
+ minimapIndicatorColor: W.value.chart.zoom.minimap.indicatorColor,
3801
+ minimapLineColor: W.value.chart.zoom.minimap.lineColor,
3802
+ minimapMerged: W.value.chart.zoom.minimap.merged,
3803
+ minimapSelectedColor: W.value.chart.zoom.minimap.selectedColor,
3804
+ minimapSelectedColorOpacity: W.value.chart.zoom.minimap.selectedColorOpacity,
3805
+ minimapSelectedIndex: H.value,
3806
+ minimapSelectionRadius: W.value.chart.zoom.minimap.selectionRadius,
3807
+ preciseLabels: Fs.value.length ? Fs.value : mo.value,
3808
+ refreshEndPoint: W.value.chart.zoom.endIndex === null ? Math.max(...e.dataset.map((e) => Ta(e.series).length)) : W.value.chart.zoom.endIndex + 1,
3809
+ refreshStartPoint: W.value.chart.zoom.startIndex === null ? 0 : W.value.chart.zoom.startIndex,
3810
+ selectColor: W.value.chart.zoom.highlightColor,
3811
+ selectedSeries: Ss.value,
3812
+ smoothMinimap: W.value.chart.zoom.minimap.smooth,
3813
+ start: K.value.start,
3814
+ textColor: W.value.chart.color,
3815
+ timeLabels: mo.value,
3816
+ usePreciseLabels: W.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !W.value.chart.zoom.useDefaultFormat,
3817
+ valueEnd: K.value.end,
3818
+ valueStart: K.value.start,
3819
+ verticalHandles: W.value.chart.zoom.minimap.verticalHandles,
3820
+ minScale: W.value.chart.grid.labels.yAxis.scaleMin,
3821
+ maxScale: W.value.chart.grid.labels.yAxis.scaleMax,
3822
+ maxWidth: W.value.chart.zoom.maxWidth,
3823
+ additionalMinimapHeight: W.value.chart.zoom.minimap.additionalHeight,
3824
+ handleType: W.value.chart.zoom.minimap.handleType,
3825
+ handleIconColor: W.value.chart.zoom.minimap.handleIconColor,
3826
+ handleBorderWidth: W.value.chart.zoom.minimap.handleBorderWidth,
3827
+ handleBorderColor: W.value.chart.zoom.minimap.handleBorderColor,
3828
+ handleFill: W.value.chart.zoom.minimap.handleFill,
3829
+ handleWidth: W.value.chart.zoom.minimap.handleWidth,
3830
+ isCursorPointer: ha.value,
3831
+ onFutureEnd: i[1] ||= (e) => ka("end", e),
3832
+ onFutureStart: i[2] ||= (e) => ka("start", e),
3833
+ onReset: Fo,
3834
+ onTrapMouse: xo,
3835
+ "onUpdate:end": Po,
3836
+ "onUpdate:start": No
3837
+ }, {
3838
+ "reset-action": P(({ reset: e }) => [j(r.$slots, "reset-action", E(T({ reset: e })), void 0, !0)]),
3839
+ _: 3
3840
+ }, 8, /* @__PURE__ */ "uuid.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.minScale.maxScale.maxWidth.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth.isCursorPointer".split("."))) : S("", !0),
3841
+ w("div", { id: `legend-bottom-${z.value}` }, null, 8, Ur),
3842
+ qi.value && (W.value.chart.legend.show || r.$slots.legend) ? (O(), Xe(Ye, {
3843
+ key: 7,
3844
+ to: W.value.chart.legend.position === "top" ? `#legend-top-${z.value}` : `#legend-bottom-${z.value}`
3845
+ }, [w("div", {
3846
+ ref_key: "chartLegend",
3847
+ ref: gi
3848
+ }, [j(r.$slots, "legend", { legend: Ya.value }, () => [W.value.chart.legend.show ? (O(), C("div", {
3849
+ key: 0,
3850
+ class: "vue-ui-xy-legend",
3851
+ style: D({ fontSize: `var(--legend-font-size, ${W.value.chart.legend.fontSize ?? 14}px)` })
3852
+ }, [W.value.chart.legend.selectAllToggle.show && Ya.value.length > 2 && !N(ba) ? (O(), Xe(qe, {
3853
+ key: 0,
3854
+ backgroundColor: W.value.chart.legend.selectAllToggle.backgroundColor,
3855
+ color: W.value.chart.legend.selectAllToggle.color,
3856
+ fontSize: W.value.chart.legend.fontSize,
3857
+ checked: R.value.length > 0,
3858
+ onToggle: ts
3859
+ }, null, 8, [
3860
+ "backgroundColor",
3861
+ "color",
3862
+ "fontSize",
3863
+ "checked"
3864
+ ])) : S("", !0), (O(!0), C(b, null, A(Ya.value, (e, t) => (O(), C("div", {
3865
+ key: `div_legend_item_${t}`,
3866
+ onClick: (t) => rs(e),
3867
+ onKeydown: (t) => ns(t, e),
3868
+ role: "button",
3869
+ tabindex: "0",
3870
+ class: it({
3871
+ "vue-ui-xy-legend-item-alone": Ya.value.length === 1,
3872
+ "vue-ui-xy-legend-item": !0,
3873
+ "vue-ui-xy-legend-item-segregated": R.value.includes(e.id)
3874
+ }),
3875
+ style: D({ cursor: ha.value ? "pointer" : "default" })
3876
+ }, [Mi.value[e.type] === "line" ? (O(), C("svg", Gr, [w("rect", {
3877
+ x: "0",
3878
+ y: "7.5",
3879
+ rx: "1.5",
3880
+ stroke: W.value.chart.backgroundColor,
3881
+ "stroke-width": .5,
3882
+ height: "3",
3883
+ width: "20",
3884
+ fill: e.color
3885
+ }, null, 8, Kr), $e(Ue, {
3886
+ plot: {
3887
+ x: 10,
3888
+ y: 9
3889
+ },
3890
+ radius: 4,
3891
+ color: e.color,
3892
+ shape: [
3893
+ "triangle",
3894
+ "square",
3895
+ "diamond",
3896
+ "pentagon",
3897
+ "hexagon",
3898
+ "star"
3899
+ ].includes(e.shape) ? e.shape : "circle",
3900
+ stroke: W.value.chart.backgroundColor,
3901
+ strokeWidth: .5
3902
+ }, null, 8, [
3903
+ "color",
3904
+ "shape",
3905
+ "stroke"
3906
+ ])])) : Mi.value[e.type] === "bar" ? (O(), C("svg", qr, [Mi.value[e.type] === "bar" && r.$slots.pattern ? (O(), C("rect", {
3907
+ key: 0,
3908
+ x: "4",
3909
+ y: "4",
3910
+ rx: "1",
3911
+ height: "32",
3912
+ width: "32",
3913
+ stroke: "none",
3914
+ fill: e.color
3915
+ }, null, 8, Jr)) : S("", !0), Mi.value[e.type] === "bar" ? (O(), C("rect", {
3916
+ key: 1,
3917
+ x: "4",
3918
+ y: "4",
3919
+ rx: "1",
3920
+ height: "32",
3921
+ width: "32",
3922
+ stroke: "none",
3923
+ fill: r.$slots.pattern ? `url(#pattern_${z.value}_${e.slotAbsoluteIndex})` : e.color
3924
+ }, null, 8, Yr)) : S("", !0)])) : (O(), C("svg", Xr, [$e(Ue, {
3925
+ plot: {
3926
+ x: 6,
3927
+ y: 6
3928
+ },
3929
+ radius: 5,
3930
+ color: e.color,
3931
+ shape: [
3932
+ "triangle",
3933
+ "square",
3934
+ "diamond",
3935
+ "pentagon",
3936
+ "hexagon",
3937
+ "star"
3938
+ ].includes(e.shape) ? e.shape : "circle"
3939
+ }, null, 8, ["color", "shape"])])), w("span", { style: D(`color:${W.value.chart.legend.color}`) }, M(e.name), 5)], 46, Wr))), 128))], 4)) : S("", !0)], !0)], 512)], 8, ["to"])) : S("", !0),
3940
+ r.$slots.source ? (O(), C("div", {
3941
+ key: 8,
3942
+ ref_key: "source",
3943
+ ref: _i,
3944
+ dir: "auto"
3945
+ }, [j(r.$slots, "source", {}, void 0, !0)], 512)) : S("", !0),
3946
+ $e(N(ei), {
3947
+ teleportTo: W.value.chart.tooltip.teleportTo,
3948
+ show: G.value.showTooltip && Fi.value,
3949
+ backgroundColor: W.value.chart.tooltip.backgroundColor,
3950
+ color: W.value.chart.tooltip.color,
3951
+ fontSize: W.value.chart.tooltip.fontSize,
3952
+ borderRadius: W.value.chart.tooltip.borderRadius,
3953
+ borderColor: W.value.chart.tooltip.borderColor,
3954
+ borderWidth: W.value.chart.tooltip.borderWidth,
3955
+ backgroundOpacity: W.value.chart.tooltip.backgroundOpacity,
3956
+ position: W.value.chart.tooltip.position,
3957
+ offsetY: W.value.chart.tooltip.offsetY,
3958
+ parent: r.$refs.chart,
3959
+ content: Is.value,
3960
+ isFullscreen: Pi.value,
3961
+ isCustom: W.value.chart.tooltip.customFormat && typeof W.value.chart.tooltip.customFormat == "function",
3962
+ smooth: W.value.chart.tooltip.smooth,
3963
+ backdropFilter: W.value.chart.tooltip.backdropFilter,
3964
+ smoothForce: W.value.chart.tooltip.smoothForce,
3965
+ smoothSnapThreshold: W.value.chart.tooltip.smoothSnapThreshold,
3966
+ isA11yMode: Zi.value != null,
3967
+ a11yPosition: Qi.value
3968
+ }, {
3969
+ "tooltip-before": P(() => [j(r.$slots, "tooltip-before", E(T({ ...js.value })), void 0, !0)]),
3970
+ tooltip: P(() => [j(r.$slots, "tooltip", E(T({ ...js.value })), void 0, !0)]),
3971
+ "tooltip-after": P(() => [j(r.$slots, "tooltip-after", E(T({ ...js.value })), void 0, !0)]),
3972
+ _: 3
3973
+ }, 8, [
3974
+ "teleportTo",
3975
+ "show",
3976
+ "backgroundColor",
3977
+ "color",
3978
+ "fontSize",
3979
+ "borderRadius",
3980
+ "borderColor",
3981
+ "borderWidth",
3982
+ "backgroundOpacity",
3983
+ "position",
3984
+ "offsetY",
3985
+ "parent",
3986
+ "content",
3987
+ "isFullscreen",
3988
+ "isCustom",
3989
+ "smooth",
3990
+ "backdropFilter",
3991
+ "smoothForce",
3992
+ "smoothSnapThreshold",
3993
+ "isA11yMode",
3994
+ "a11yPosition"
3995
+ ]),
3996
+ ma.value && W.value.chart.userOptions.buttons.table ? (O(), Xe(st(rc.value.component), nt({ key: 9 }, rc.value.props, {
3997
+ ref_key: "tableUnit",
3998
+ ref: Ji,
3999
+ onClose: ic
4000
+ }), Ze({
4001
+ content: P(() => [w("div", { style: D(`${N(Ma) || W.value.table.useDialog ? "" : "max-height:400px"};${W.value.table.useDialog ? "height: fit-content; " : ""};overflow:auto;width:100%;${W.value.table.useDialog ? "" : "margin-top:48px"}`) }, [w("div", Zr, [mt(w("input", {
4002
+ type: "checkbox",
4003
+ "onUpdate:modelValue": i[4] ||= (e) => Bi.value = e
4004
+ }, null, 512), [[dt, Bi.value]]), w("div", {
4005
+ onClick: i[5] ||= (e) => Bi.value = !Bi.value,
4006
+ style: D({ cursor: ha.value ? "pointer" : "default" })
4007
+ }, [$e(N(ni), {
4008
+ name: "chartLine",
4009
+ size: 20,
4010
+ stroke: W.value.chart.color
4011
+ }, null, 8, ["stroke"])], 4)]), Bi.value ? (O(), Xe(N(ri), {
4012
+ key: `sparkline_${Vi.value}`,
4013
+ dataset: fs.value,
4014
+ config: ps.value
4015
+ }, null, 8, ["dataset", "config"])) : (O(), Xe(N($r), {
4016
+ key: `table_${Ri.value}`,
4017
+ colNames: Rs.value.colNames,
4018
+ head: Rs.value.head,
4019
+ body: Rs.value.body,
4020
+ config: Rs.value.config,
4021
+ title: W.value.table.useDialog ? "" : rc.value.title,
4022
+ withCloseButton: !W.value.table.useDialog,
4023
+ onClose: ic
4024
+ }, {
4025
+ th: P(({ th: e }) => [w("div", { innerHTML: e }, null, 8, Qr)]),
4026
+ td: P(({ td: e }) => [Qe(M(isNaN(Number(e)) ? e : N(a)({
4027
+ p: W.value.chart.labels.prefix,
4028
+ v: e,
4029
+ s: W.value.chart.labels.suffix,
4030
+ r: W.value.table.rounding
4031
+ })), 1)]),
4032
+ _: 1
4033
+ }, 8, [
4034
+ "colNames",
4035
+ "head",
4036
+ "body",
4037
+ "config",
4038
+ "title",
4039
+ "withCloseButton"
4040
+ ]))], 4)]),
4041
+ _: 2
4042
+ }, [W.value.table.useDialog ? {
4043
+ name: "title",
4044
+ fn: P(() => [Qe(M(rc.value.title), 1)]),
4045
+ key: "0"
4046
+ } : void 0, W.value.table.useDialog ? {
4047
+ name: "actions",
4048
+ fn: P(() => [w("button", {
4049
+ tabindex: "0",
4050
+ class: "vue-ui-user-options-button",
4051
+ onClick: i[3] ||= (e) => zs(W.value.chart.userOptions.callbacks.csv)
4052
+ }, [$e(N(ni), {
4053
+ name: "fileCsv",
4054
+ stroke: rc.value.props.color
4055
+ }, null, 8, ["stroke"])])]),
4056
+ key: "1"
4057
+ } : void 0]), 1040)) : S("", !0),
4058
+ j(r.$slots, "skeleton", {}, () => [N(ba) ? (O(), Xe(Pe, { key: 0 })) : S("", !0)], !0)
4059
+ ], 46, gt));
4060
+ }
4061
+ }, [["__scopeId", "data-v-f63e75b2"]]);
4062
+ //#endregion
4063
+ export { ht as n, F as t };