vue-data-ui 2.10.7 → 2.10.8

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 (169) hide show
  1. package/README.md +2 -2
  2. package/dist/{Arrow-CB6EKr1I.cjs → Arrow-NnfTvwbg.cjs} +1 -1
  3. package/dist/{Arrow-CZUwKF2D.js → Arrow-aCcBx0NS.js} +1 -1
  4. package/dist/{BaseIcon-Bzv6qbPZ.js → BaseIcon-DTt4YbQE.js} +1 -1
  5. package/dist/{BaseIcon-BkA9Q34x.cjs → BaseIcon-DmfPEj6j.cjs} +1 -1
  6. package/dist/{ColorPicker-C_UcScy-.js → ColorPicker-DrovFYIL.js} +3 -3
  7. package/dist/{ColorPicker-CSWIZQFG.cjs → ColorPicker-DsEujcIN.cjs} +1 -1
  8. package/dist/{DataTable-BhwIv7c6.js → DataTable-CX-Ynkp4.js} +2 -2
  9. package/dist/{DataTable-BmSWykCq.cjs → DataTable-zSU-0X__.cjs} +1 -1
  10. package/dist/{Legend-CubpFiQC.js → Legend-BTvPguV6.js} +2 -2
  11. package/dist/{Legend-CMib9jhR.cjs → Legend-DFQ4iWI3.cjs} +1 -1
  12. package/dist/{PackageVersion-DmKsiZge.js → PackageVersion-CkUbRQrt.js} +1 -1
  13. package/dist/{PackageVersion-9kqlnk5q.cjs → PackageVersion-DxR-fKLM.cjs} +1 -1
  14. package/dist/{PenAndPaper-Dgf1a1MW.js → PenAndPaper-Br3OdauM.js} +3 -3
  15. package/dist/{PenAndPaper-CfWPwfS1.cjs → PenAndPaper-CG9o3ymS.cjs} +1 -1
  16. package/dist/{Shape-DVn1gKjR.cjs → Shape-D9l3WJGO.cjs} +1 -1
  17. package/dist/{Shape-BUW7OeOM.js → Shape-Y1FgLdPz.js} +1 -1
  18. package/dist/{Slicer-ud5drJRz.cjs → Slicer-B7FJCuCB.cjs} +1 -1
  19. package/dist/{Slicer-jB5tCct6.js → Slicer-C2GR76As.js} +2 -2
  20. package/dist/{Title-EjA2nkhd.cjs → Title-CEZO2hzQ.cjs} +1 -1
  21. package/dist/{Title-BDdzEGgo.js → Title-tlFeM12I.js} +1 -1
  22. package/dist/{Tooltip-Cdkz2ese.js → Tooltip-BCtHh3BT.js} +1 -1
  23. package/dist/{Tooltip-Dr2CQpGZ.cjs → Tooltip-BZa-QzER.cjs} +1 -1
  24. package/dist/documentation/installation.md +1 -1
  25. package/dist/{dom-to-png-0ag5uZSL.js → dom-to-png-CjxHTZgX.js} +1 -1
  26. package/dist/{dom-to-png-DfWDULgW.cjs → dom-to-png-fAhFmKHV.cjs} +1 -1
  27. package/dist/{img-BFXiOvkr.cjs → img-Ds_hWTTu.cjs} +1 -1
  28. package/dist/{img-DB4eqtiV.js → img-w_iFTYRY.js} +1 -1
  29. package/dist/{index-Co_0CzhC.js → index-Co5UfCMK.js} +9 -2
  30. package/dist/index-Dy2-pNb6.cjs +9 -0
  31. package/dist/{pdf-DUrwlnsH.js → pdf-BfkOvZWw.js} +1 -1
  32. package/dist/{pdf-D_ScD9oB.cjs → pdf-CCdcXY_7.cjs} +1 -1
  33. package/dist/style.css +1 -1
  34. package/dist/types/vue-data-ui.d.cts +5 -0
  35. package/dist/types/vue-data-ui.d.ts +5 -0
  36. package/dist/{useNestedProp-DqI_VUcm.js → useNestedProp-C22WP03t.js} +1 -1
  37. package/dist/{useNestedProp-DjOgO33z.cjs → useNestedProp-DQ8Jt3-Y.cjs} +1 -1
  38. package/dist/{usePrinter-CynLTaVl.cjs → usePrinter-BQEYwy4a.cjs} +1 -1
  39. package/dist/{usePrinter-BV6TePSm.js → usePrinter-D_wgo-7k.js} +3 -3
  40. package/dist/{vue-data-ui-D0yLIHBU.js → vue-data-ui-C18HDIa2.js} +62 -62
  41. package/dist/{vue-data-ui-BTfYQKf1.cjs → vue-data-ui-zmg06AF1.cjs} +1 -1
  42. package/dist/vue-data-ui.cjs +1 -1
  43. package/dist/vue-data-ui.js +1 -1
  44. package/dist/{vue-ui-3d-bar-cz81vDyE.cjs → vue-ui-3d-bar-C_gJuhTV.cjs} +1 -1
  45. package/dist/{vue-ui-3d-bar-c10gAuCo.js → vue-ui-3d-bar-SB6p5amV.js} +9 -9
  46. package/dist/{vue-ui-accordion-DMCnTtx0.js → vue-ui-accordion-CfB_jW1X.js} +3 -3
  47. package/dist/{vue-ui-accordion-BrbibtJK.cjs → vue-ui-accordion-dVGUWjXH.cjs} +1 -1
  48. package/dist/{vue-ui-age-pyramid-VrC5Ul6m.cjs → vue-ui-age-pyramid-DZ_ajGY_.cjs} +1 -1
  49. package/dist/{vue-ui-age-pyramid-qvsOA8yi.js → vue-ui-age-pyramid-G8ggvkGU.js} +10 -10
  50. package/dist/{vue-ui-annotator-DYHa8k6K.cjs → vue-ui-annotator-BkZat_7T.cjs} +1 -1
  51. package/dist/{vue-ui-annotator-Difg_FB4.js → vue-ui-annotator-DeoWv4A3.js} +2 -2
  52. package/dist/{vue-ui-bullet-D9jQThZ5.js → vue-ui-bullet-CvjS0_Pz.js} +8 -8
  53. package/dist/{vue-ui-bullet-Ck8VFaeu.cjs → vue-ui-bullet-D9jaszdm.cjs} +1 -1
  54. package/dist/{vue-ui-candlestick-Dsd_ba5D.cjs → vue-ui-candlestick-gnsNiFI3.cjs} +1 -1
  55. package/dist/{vue-ui-candlestick-CkGKxPxw.js → vue-ui-candlestick-xBYW3oOn.js} +11 -11
  56. package/dist/{vue-ui-carousel-table-CR-iVMMe.js → vue-ui-carousel-table-BKQIWhzt.js} +4 -4
  57. package/dist/{vue-ui-carousel-table-46CpWaYv.cjs → vue-ui-carousel-table-DNW8HJNv.cjs} +1 -1
  58. package/dist/{vue-ui-chestnut-C9hkjAMP.js → vue-ui-chestnut-C5RprHfl.js} +8 -8
  59. package/dist/{vue-ui-chestnut-DpZW075x.cjs → vue-ui-chestnut-D9UKh8la.cjs} +1 -1
  60. package/dist/{vue-ui-circle-pack-DCiIAJrq.js → vue-ui-circle-pack-Cx4gGG1K.js} +9 -9
  61. package/dist/{vue-ui-circle-pack-5_vQ6vaC.cjs → vue-ui-circle-pack-OTXbeD89.cjs} +1 -1
  62. package/dist/{vue-ui-cursor-DkNjb-zj.cjs → vue-ui-cursor-BuEDX1kV.cjs} +1 -1
  63. package/dist/{vue-ui-cursor-Cts6qtAH.js → vue-ui-cursor-Cdvi-0lD.js} +2 -2
  64. package/dist/{vue-ui-dashboard-DHHIcBg0.cjs → vue-ui-dashboard-BAPaHtqr.cjs} +1 -1
  65. package/dist/{vue-ui-dashboard-Db-_ElsA.js → vue-ui-dashboard-BLHl6FJI.js} +62 -62
  66. package/dist/{vue-ui-digits--pkv7eKf.js → vue-ui-digits-CCAt8_aJ.js} +2 -2
  67. package/dist/{vue-ui-digits-BV--b8cv.cjs → vue-ui-digits-YV4qxb86.cjs} +1 -1
  68. package/dist/{vue-ui-donut-D1OlfgtH.cjs → vue-ui-donut-BvjPFjpd.cjs} +1 -1
  69. package/dist/{vue-ui-donut-BxbbhGmV.js → vue-ui-donut-CNZIha3Z.js} +12 -12
  70. package/dist/{vue-ui-donut-evolution-2mbVNu_w.js → vue-ui-donut-evolution-DNhwy9qU.js} +11 -11
  71. package/dist/{vue-ui-donut-evolution-BetPU8WD.cjs → vue-ui-donut-evolution-Dxx5Psl4.cjs} +1 -1
  72. package/dist/{vue-ui-dumbbell-Brfkbz4H.js → vue-ui-dumbbell-BmRkAtBK.js} +10 -10
  73. package/dist/{vue-ui-dumbbell-B4tWeLVq.cjs → vue-ui-dumbbell-MGMSs7vG.cjs} +1 -1
  74. package/dist/vue-ui-flow-B3t_sNr4.cjs +3 -0
  75. package/dist/vue-ui-flow-CxhJwDZa.js +767 -0
  76. package/dist/{vue-ui-funnel-Bga3R3li.js → vue-ui-funnel-CJHKcUDg.js} +9 -9
  77. package/dist/{vue-ui-funnel-DJIRpxX0.cjs → vue-ui-funnel-twMmn36_.cjs} +1 -1
  78. package/dist/{vue-ui-galaxy-DjpT9A4L.cjs → vue-ui-galaxy-BjBTNZ6j.cjs} +1 -1
  79. package/dist/{vue-ui-galaxy-CtUY6byr.js → vue-ui-galaxy-CDonLoXv.js} +11 -11
  80. package/dist/{vue-ui-gauge-Bob29zui.js → vue-ui-gauge-C7L0uVvx.js} +7 -7
  81. package/dist/{vue-ui-gauge-ByLQRCM5.cjs → vue-ui-gauge-DXadxMZn.cjs} +1 -1
  82. package/dist/{vue-ui-gizmo-Dj1TLLb1.js → vue-ui-gizmo-C9JuTLL-.js} +3 -3
  83. package/dist/{vue-ui-gizmo-DBCKjWN0.cjs → vue-ui-gizmo-u7ypeW6n.cjs} +1 -1
  84. package/dist/{vue-ui-heatmap-CAUnlp-o.cjs → vue-ui-heatmap-Cjckqsrg.cjs} +1 -1
  85. package/dist/{vue-ui-heatmap-BYH3bosu.js → vue-ui-heatmap-DaAgigHH.js} +10 -10
  86. package/dist/{vue-ui-history-plot-C1kOJElL.js → vue-ui-history-plot-KoGpnC64.js} +11 -11
  87. package/dist/{vue-ui-history-plot-CbTOgmxa.cjs → vue-ui-history-plot-YLMX8PqM.cjs} +1 -1
  88. package/dist/{vue-ui-kpi-BUoc8QIz.js → vue-ui-kpi-DNUDGlWM.js} +3 -3
  89. package/dist/{vue-ui-kpi-DTWa9I78.cjs → vue-ui-kpi-GZlFX5zg.cjs} +1 -1
  90. package/dist/{vue-ui-mini-loader-CSmFWNXS.js → vue-ui-mini-loader-9YvdM0_A.js} +2 -2
  91. package/dist/{vue-ui-mini-loader-C1awnIuZ.cjs → vue-ui-mini-loader-D1HhmCbC.cjs} +1 -1
  92. package/dist/{vue-ui-molecule-D9kSZQHB.js → vue-ui-molecule-B71fJREj.js} +11 -11
  93. package/dist/{vue-ui-molecule-CgSPoJxN.cjs → vue-ui-molecule-DDsKb9re.cjs} +1 -1
  94. package/dist/{vue-ui-mood-radar-DpQ8EBTg.cjs → vue-ui-mood-radar-BO4yaBxo.cjs} +1 -1
  95. package/dist/{vue-ui-mood-radar-qd5CCM58.js → vue-ui-mood-radar-DH4RYmdT.js} +11 -11
  96. package/dist/{vue-ui-nested-donuts-BP9gsX6T.cjs → vue-ui-nested-donuts-BlxuqLPb.cjs} +1 -1
  97. package/dist/{vue-ui-nested-donuts-OqJPZW8l.js → vue-ui-nested-donuts-bOXvQ01U.js} +11 -11
  98. package/dist/{vue-ui-onion-DYIgsIYr.cjs → vue-ui-onion-BugH4ThJ.cjs} +1 -1
  99. package/dist/{vue-ui-onion-rNOeD9u1.js → vue-ui-onion-D7VhEicc.js} +11 -11
  100. package/dist/{vue-ui-parallel-coordinate-plot-DQd14cew.js → vue-ui-parallel-coordinate-plot-Bc5Yr0Yr.js} +12 -12
  101. package/dist/{vue-ui-parallel-coordinate-plot-CDwhmDGl.cjs → vue-ui-parallel-coordinate-plot-DjTMM1Zt.cjs} +1 -1
  102. package/dist/{vue-ui-quadrant-RRM343kT.cjs → vue-ui-quadrant-Dni5Lkhg.cjs} +1 -1
  103. package/dist/{vue-ui-quadrant-CH856J9A.js → vue-ui-quadrant-PrjG5beo.js} +12 -12
  104. package/dist/{vue-ui-quick-chart-BLq8C-m8.js → vue-ui-quick-chart-C46V8Ffa.js} +9 -9
  105. package/dist/{vue-ui-quick-chart-BXYgI65b.cjs → vue-ui-quick-chart-LuGKbIvU.cjs} +1 -1
  106. package/dist/{vue-ui-radar-BuCYH3tO.js → vue-ui-radar-05pd47HM.js} +12 -12
  107. package/dist/{vue-ui-radar-38OxxA3O.cjs → vue-ui-radar-j2Vgot8p.cjs} +1 -1
  108. package/dist/{vue-ui-rating-D6OL6Aml.js → vue-ui-rating-Bl_q3TYs.js} +2 -2
  109. package/dist/{vue-ui-rating-CiqatGZ_.cjs → vue-ui-rating-ClxiMhPq.cjs} +1 -1
  110. package/dist/{vue-ui-relation-circle-ByhUL4R6.js → vue-ui-relation-circle-Bu5eYbEg.js} +7 -7
  111. package/dist/{vue-ui-relation-circle-DDYGMgUl.cjs → vue-ui-relation-circle-BuoQTWw_.cjs} +1 -1
  112. package/dist/{vue-ui-ridgeline-B5126LSF.js → vue-ui-ridgeline-D4ot7MF8.js} +12 -12
  113. package/dist/{vue-ui-ridgeline-C550XNkk.cjs → vue-ui-ridgeline-ESRn_Q1y.cjs} +1 -1
  114. package/dist/{vue-ui-rings-Dxp4dmO2.cjs → vue-ui-rings-D7o_vleu.cjs} +1 -1
  115. package/dist/{vue-ui-rings-DPXct3je.js → vue-ui-rings-Dyl5VV9I.js} +12 -12
  116. package/dist/{vue-ui-scatter-BWmY2_ij.cjs → vue-ui-scatter-B31kZz0w.cjs} +1 -1
  117. package/dist/{vue-ui-scatter-_DhEpcsw.js → vue-ui-scatter-njuULIsD.js} +12 -12
  118. package/dist/{vue-ui-skeleton-Dzehgcp3.js → vue-ui-skeleton-BSlYUHZA.js} +3 -3
  119. package/dist/{vue-ui-skeleton-DvJP74jb.cjs → vue-ui-skeleton-Db7PiDqL.cjs} +1 -1
  120. package/dist/{vue-ui-smiley-BHd1V1Dv.js → vue-ui-smiley-BmNRkSub.js} +2 -2
  121. package/dist/{vue-ui-smiley-CtDCCsfg.cjs → vue-ui-smiley-CfdbRWq6.cjs} +1 -1
  122. package/dist/{vue-ui-spark-trend-DDX-fjR-.js → vue-ui-spark-trend-B0Xvu1YP.js} +5 -5
  123. package/dist/{vue-ui-spark-trend-DDf1hJwg.cjs → vue-ui-spark-trend-CwtYlUEX.cjs} +1 -1
  124. package/dist/{vue-ui-sparkbar-BT5NEz93.cjs → vue-ui-sparkbar-Xy7idkhv.cjs} +1 -1
  125. package/dist/{vue-ui-sparkbar-BWeY-FcV.js → vue-ui-sparkbar-e2-8wHQH.js} +4 -4
  126. package/dist/{vue-ui-sparkgauge-BQMHbq8E.js → vue-ui-sparkgauge-_cMBBl3V.js} +4 -4
  127. package/dist/{vue-ui-sparkgauge-IYvYlZ57.cjs → vue-ui-sparkgauge-vjcDqzGe.cjs} +1 -1
  128. package/dist/{vue-ui-sparkhistogram-cjsCsNyf.cjs → vue-ui-sparkhistogram-BpD6XxfA.cjs} +1 -1
  129. package/dist/{vue-ui-sparkhistogram-C5EdWvQP.js → vue-ui-sparkhistogram-DUyGQgqZ.js} +5 -5
  130. package/dist/{vue-ui-sparkline-CbKIpwVC.js → vue-ui-sparkline-D1wfG3Yw.js} +4 -4
  131. package/dist/{vue-ui-sparkline-BwZJpAAf.cjs → vue-ui-sparkline-cPPxz94c.cjs} +1 -1
  132. package/dist/{vue-ui-sparkstackbar-COxIfFgm.js → vue-ui-sparkstackbar-BCTx016Z.js} +5 -5
  133. package/dist/{vue-ui-sparkstackbar-BVJU36Jz.cjs → vue-ui-sparkstackbar-iRVpx_xT.cjs} +1 -1
  134. package/dist/{vue-ui-stackbar-Dr5hRx6G.js → vue-ui-stackbar--QKW68d6.js} +13 -13
  135. package/dist/{vue-ui-stackbar-CQ56hps8.cjs → vue-ui-stackbar-DCotybpB.cjs} +1 -1
  136. package/dist/{vue-ui-strip-plot-Mct4OE0A.js → vue-ui-strip-plot-BhLBOV7s.js} +11 -11
  137. package/dist/{vue-ui-strip-plot-B_nfC_fx.cjs → vue-ui-strip-plot-CdceC4jP.cjs} +1 -1
  138. package/dist/{vue-ui-table-DE3wOTyH.cjs → vue-ui-table-Cd9UeZXy.cjs} +1 -1
  139. package/dist/{vue-ui-table-B6LG28n8.js → vue-ui-table-DjDENKmJ.js} +3 -3
  140. package/dist/{vue-ui-table-heatmap-DDOoKybT.js → vue-ui-table-heatmap-CZdiE-l3.js} +4 -4
  141. package/dist/{vue-ui-table-heatmap-DuMRCIbx.cjs → vue-ui-table-heatmap-gbdWhEG_.cjs} +1 -1
  142. package/dist/{vue-ui-table-sparkline-gZWWmkQe.cjs → vue-ui-table-sparkline-BFQ4DQRu.cjs} +1 -1
  143. package/dist/{vue-ui-table-sparkline-D578FuNQ.js → vue-ui-table-sparkline-zGotm14D.js} +5 -5
  144. package/dist/{vue-ui-thermometer-BWHsyYj8.cjs → vue-ui-thermometer-CRhrvWm0.cjs} +1 -1
  145. package/dist/{vue-ui-thermometer-DFbYODrU.js → vue-ui-thermometer-DA3KgSw1.js} +7 -7
  146. package/dist/{vue-ui-timer-s73pZhYM.cjs → vue-ui-timer-DnXYrfrB.cjs} +1 -1
  147. package/dist/{vue-ui-timer-Bi6Q0m_J.js → vue-ui-timer-ult9htF3.js} +5 -5
  148. package/dist/{vue-ui-tiremarks-C68rB2kd.js → vue-ui-tiremarks-CRXtVmEM.js} +7 -7
  149. package/dist/{vue-ui-tiremarks-BcFJOrF8.cjs → vue-ui-tiremarks-Dht-uT9E.cjs} +1 -1
  150. package/dist/{vue-ui-treemap-b5rZtLKn.js → vue-ui-treemap-Ck5tHVnE.js} +12 -12
  151. package/dist/{vue-ui-treemap-B7_kcMng.cjs → vue-ui-treemap-pbhS4FfC.cjs} +1 -1
  152. package/dist/{vue-ui-vertical-bar-Bw42kw9a.cjs → vue-ui-vertical-bar-BZjsolLB.cjs} +1 -1
  153. package/dist/{vue-ui-vertical-bar-DyZ-gfQi.js → vue-ui-vertical-bar-egz76l34.js} +12 -12
  154. package/dist/{vue-ui-waffle-tk3zMyjq.cjs → vue-ui-waffle-C7za7d0u.cjs} +1 -1
  155. package/dist/{vue-ui-waffle-CG05FL_H.js → vue-ui-waffle-CrMkCjJJ.js} +12 -12
  156. package/dist/{vue-ui-wheel-RzXEZFfN.cjs → vue-ui-wheel-DIgPyNrB.cjs} +1 -1
  157. package/dist/{vue-ui-wheel-BTbteaZS.js → vue-ui-wheel-DzMpr4xY.js} +7 -7
  158. package/dist/{vue-ui-word-cloud-CUZ1Mm3Q.cjs → vue-ui-word-cloud-CNqAz548.cjs} +1 -1
  159. package/dist/{vue-ui-word-cloud-BKubtYCS.js → vue-ui-word-cloud-TS3az-LK.js} +10 -10
  160. package/dist/{vue-ui-world-BF0wSEJb.js → vue-ui-world-D3X01xYB.js} +11 -11
  161. package/dist/{vue-ui-world-BPcoReDh.cjs → vue-ui-world-DMdqTY5G.cjs} +1 -1
  162. package/dist/{vue-ui-xy-C8ZEeV9g.cjs → vue-ui-xy-CF87Afh2.cjs} +2 -2
  163. package/dist/{vue-ui-xy-canvas-CJl9RPzv.cjs → vue-ui-xy-canvas-2IL8lPL4.cjs} +1 -1
  164. package/dist/{vue-ui-xy-canvas-CYaJZj3B.js → vue-ui-xy-canvas-BHeV-3t9.js} +12 -12
  165. package/dist/{vue-ui-xy-AgcMweTZ.js → vue-ui-xy-tIBPr8r8.js} +16 -16
  166. package/package.json +1 -1
  167. package/dist/index-BX4v5fiN.cjs +0 -9
  168. package/dist/vue-ui-flow-BSptjAOo.cjs +0 -1
  169. package/dist/vue-ui-flow-BtfK7Ixu.js +0 -655
@@ -1,3 +1,3 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index-BX4v5fiN.cjs"),E=require("./DataTable-BmSWykCq.cjs"),z=require("./Title-EjA2nkhd.cjs"),p=require("./Tooltip-Dr2CQpGZ.cjs"),M=require("./usePrinter-CynLTaVl.cjs"),T=require("./Shape-DVn1gKjR.cjs"),P=require("./BaseIcon-BkA9Q34x.cjs"),R=require("./vue-ui-table-sparkline-gZWWmkQe.cjs"),D=require("./vue-ui-skeleton-DvJP74jb.cjs"),H=require("./Slicer-ud5drJRz.cjs"),W=require("./vue-ui-accordion-BrbibtJK.cjs"),B=require("./useNestedProp-DjOgO33z.cjs"),q=require("./PackageVersion-9kqlnk5q.cjs"),Y=require("./PenAndPaper-CfWPwfS1.cjs"),t=require("vue"),X=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),U=d.createUid(),Z={name:"vue-ui-xy",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},components:{DataTable:E.DataTable,Shape:T._sfc_main,Title:z._sfc_main,Tooltip:p._sfc_main,UserOptions:M.UserOptions,BaseIcon:P.default,TableSparkline:R.default,Skeleton:D.default,Slicer:H.Slicer,Accordion:W.default,PackageVersion:q._sfc_main,PenAndPaper:Y._sfc_main},data(){this.dataset.forEach((h,r)=>{[null,void 0].includes(h.series)&&this.error({componentName:"VueUiXy",type:"datasetSerieAttribute",property:"series (number[])",index:r})});const l=this.config.downsample&&this.config.downsample.threshold?this.config.downsample.threshold:500,s=Math.max(...this.dataset.map(h=>this.largestTriangleThreeBucketsArray({data:h.series,threshold:l}).length)),n={start:0,end:s};return{themePalettes:d.themePalettes,themes:d.themes,slicerStep:0,selectedScale:null,CTX:null,CANVAS:null,opacity:d.opacity,useSafeValues:!0,palette:d.palette,height:600,width:1e3,viewBox:"0 0 1000 600",clientPosition:{x:0,y:0},canvasClientPosition:{x:0,y:0},icons:{line:"line",bar:"bar",plot:"plot"},isAnnotator:!1,isFullscreen:!1,isPrinting:!1,isImaging:!1,isTooltip:!1,mutableConfig:{dataLabels:{show:!0},showTooltip:!0,showTable:!1,isStacked:!1,useIndividualScale:!1},selectedSerieIndex:null,selectedRowIndex:null,segregatedSeries:[],uniqueId:d.createUid(),step:0,tableStep:0,titleStep:0,slicer:n,__to__:null,maxX:s,showSparklineTable:!0,segregateStep:0,sliderId:U,fontSizes:{xAxis:18,yAxis:12,dataLabels:20,plotLabels:10},plotRadii:{plot:3,line:3},selectedMinimapIndex:null,showUserOptionsOnChartHover:!1,keepUserOptionState:!0,userOptionsVisible:!0,svgRef:null,tagRefs:{}}},watch:{dataset:{handler(l,s){this.maxX=Math.max(...this.dataset.map(n=>this.largestTriangleThreeBucketsArray({data:n.series,threshold:this.FINAL_CONFIG.downsample.threshold}).length)),this.slicer={start:0,end:this.maxX},this.slicerStep+=1,this.segregateStep+=1},deep:!0},config:{handler(l,s){this.FINAL_CONFIG=this.prepareConfig(),this.prepareChart(),this.titleStep+=1,this.tableStep+=1,this.mutableConfig={dataLabels:{show:!0},showTooltip:this.FINAL_CONFIG.chart.tooltip.show===!0,showTable:this.FINAL_CONFIG.showTable===!0,isStacked:this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked,useIndividualScale:this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale}},deep:!0}},computed:{chartAriaLabel(){const l=this.FINAL_CONFIG.chart.title.text||"Chart visualization",s=this.FINAL_CONFIG.chart.title.subtitle.text||"";return`${l}. ${s}`},optimize(){return{linePlot:this.maxSeries>this.FINAL_CONFIG.line.dot.hideAboveMaxSerieLength}},hasOptionsNoTitle(){return this.FINAL_CONFIG.chart.userOptions.show&&(!this.FINAL_CONFIG.chart.title.show||!this.FINAL_CONFIG.chart.title.text)},minimap(){if(!this.FINAL_CONFIG.chart.zoom.minimap.show)return[];const l=this.datasetWithIds.filter(r=>!this.segregatedSeries.includes(r.id)),s=Math.max(...l.map(r=>r.series.length)),n=[];for(let r=0;r<s;r+=1)n.push(l.map(e=>e.series[r]||0).reduce((e,F)=>(e||0)+(F||0),0));const h=Math.min(...n);return n.map(r=>r+(h<0?Math.abs(h):0))},customPalette(){return this.convertCustomPalette(this.FINAL_CONFIG.customPalette)},backgroundColor(){return this.FINAL_CONFIG.chart.backgroundColor},slicerColor(){return this.FINAL_CONFIG.chart.zoom.color},allScales(){const l=this.lineSet.map(e=>({name:e.name,color:e.color,scale:e.individualScale,scaleYLabels:e.scaleYLabels,zero:e.zeroPosition,max:e.individualMax,scaleLabel:e.scaleLabel||"",id:e.id,yOffset:e.yOffset||0,individualHeight:e.individualHeight||this.drawingArea.height,autoScaleYLabels:e.autoScaleYLabels})),s=this.barSet.map(e=>({name:e.name,color:e.color,scale:e.individualScale,scaleYLabels:e.scaleYLabels,zero:e.zeroPosition,max:e.individualMax,scaleLabel:e.scaleLabel||"",id:e.id,yOffset:e.yOffset||0,individualHeight:e.individualHeight||this.drawingArea.height})),n=this.plotSet.map(e=>({name:e.name,color:e.color,scale:e.individualScale,scaleYLabels:e.scaleYLabels,zero:e.zeroPosition,max:e.individualMax,scaleLabel:e.scaleLabel||"",id:e.id,yOffset:e.yOffset||0,individualHeight:e.individualHeight||this.drawingArea.height})),h=this.mutableConfig.useIndividualScale&&!this.mutableConfig.isStacked?Object.values(this.scaleGroups):[...l,...s,...n],r=h.flatMap(e=>e).length;return h.flatMap((e,F)=>({unique:e.unique,id:e.id,groupId:e.groupId,scaleLabel:e.scaleLabel,name:this.mutableConfig.useIndividualScale&&!this.mutableConfig.isStacked?e.unique?e.name:e.groupName:e.name,color:this.mutableConfig.useIndividualScale&&!this.mutableConfig.isStacked?e.unique?e.color:e.groupColor:e.color,scale:e.scale,yOffset:e.yOffset,individualHeight:e.individualHeight,x:this.mutableConfig.isStacked?this.drawingArea.left:this.drawingArea.left/r*(F+1),yLabels:e.scaleYLabels||e.scale.ticks.map(m=>({y:m>=0?e.zero-e.individualHeight*(m/e.max):e.zero+e.individualHeight*Math.abs(m)/e.max,value:m}))}))},isDataset(){return!!this.dataset&&this.dataset.length},chartFont(){const l=document.getElementById(`vue-ui-xy_${this.uniqueId}`);return window.getComputedStyle(l,null).getPropertyValue("font-family")},FINAL_CONFIG:{get:function(){return this.prepareConfig()},set:function(l){return l}},hasHighlightArea(){return Array.isArray(this.FINAL_CONFIG.chart.highlightArea)?this.FINAL_CONFIG.chart.highlightArea.some(l=>l.show):this.FINAL_CONFIG.chart.highlightArea&&this.FINAL_CONFIG.chart.highlightArea.show},highlightAreas(){if(Array.isArray(this.FINAL_CONFIG.chart.highlightArea))return this.FINAL_CONFIG.chart.highlightArea.map(s=>({...s,span:s.from===s.to?1:s.to<s.from?0:s.to-s.from+1}));const l=this.FINAL_CONFIG.chart.highlightArea;return[{...l,span:l.from===l.to?1:l.to<l.from?0:l.to-l.from+1}]},xPadding(){return this.FINAL_CONFIG.chart.grid.position==="middle"?0:this.drawingArea.width/this.maxSeries/2},relativeZero(){return[null,void 0].includes(this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin)?this.niceScale.min>=0?0:Math.abs(this.niceScale.min):-this.niceScale.min},absoluteMax(){return this.niceScale.max+this.relativeZero},datasetWithIds(){return this.useSafeValues?this.dataset.map((l,s)=>({...l,series:this.largestTriangleThreeBucketsArray({data:l.series,threshold:this.FINAL_CONFIG.downsample.threshold}),id:`uniqueId_${s}`})):this.dataset},safeDataset(){return this.useSafeValues?this.dataset.map((l,s)=>{const n=this.largestTriangleThreeBucketsArray({data:l.series,threshold:this.FINAL_CONFIG.downsample.threshold}),h=`uniqueId_${s}`;return{...l,slotAbsoluteIndex:s,series:n.map(r=>this.isSafeValue(r)?r:null).slice(this.slicer.start,this.slicer.end),color:this.convertColorToHex(l.color?l.color:this.customPalette[s]?this.customPalette[s]:this.palette[s]),id:h,scaleLabel:l.scaleLabel||h}}):this.dataset},relativeDataset(){return this.safeDataset.map((l,s)=>({...l,series:l.series.map(n=>n+this.relativeZero),absoluteValues:l.series})).filter(l=>!this.segregatedSeries.includes(l.id))},tableSparklineDataset(){return this.relativeDataset.map(l=>{const s=l.absoluteValues.map(n=>[void 0,null].includes(n)?0:n);return{id:l.id,name:l.name,color:l.color,values:this.fillArray(this.maxSeries,s)}})},tableSparklineConfig(){return{responsiveBreakpoint:this.FINAL_CONFIG.table.responsiveBreakpoint,roundingValues:this.FINAL_CONFIG.table.rounding,showAverage:!1,showMedian:!1,showTotal:!1,fontFamily:this.FINAL_CONFIG.chart.fontFamily,prefix:this.FINAL_CONFIG.chart.labels.prefix,suffix:this.FINAL_CONFIG.chart.labels.suffix,colNames:JSON.parse(JSON.stringify(this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values)),thead:{backgroundColor:this.FINAL_CONFIG.table.th.backgroundColor,color:this.FINAL_CONFIG.table.th.color,outline:this.FINAL_CONFIG.table.th.outline},tbody:{backgroundColor:this.FINAL_CONFIG.table.td.backgroundColor,color:this.FINAL_CONFIG.table.td.color,outline:this.FINAL_CONFIG.table.td.outline},userOptions:{show:!1}}},absoluteDataset(){return this.safeDataset.map((l,s)=>({absoluteIndex:s,...l,series:l.series.map(n=>n+this.relativeZero),absoluteValues:l.series,segregate:()=>this.segregate(l),isSegregated:this.segregatedSeries.includes(l.id)}))},activeSeriesLength(){return this.absoluteDataset.length},activeSeriesWithStackRatios(){return this.assignStackRatios(this.absoluteDataset.filter(l=>!this.segregatedSeries.includes(l.id)))},scaleGroups(){const l=Object.groupBy(this.activeSeriesWithStackRatios,n=>n.scaleLabel),s={};for(const[n,h]of Object.entries(l)){const r=h.flatMap(e=>e.absoluteValues);s[n]={min:Math.min(...r)||0,max:Math.max(...r)||1,groupId:`scale_group_${this.createUid()}`}}return s},barSet(){return this.activeSeriesWithStackRatios.filter(l=>l.type==="bar").map((l,s)=>{this.checkAutoScaleError(l);const n=this.scaleGroups[l.scaleLabel].min,h=this.scaleGroups[l.scaleLabel].max;l.absoluteValues.filter(N=>![null,void 0].includes(N)).map(N=>(N-n)/(h-n));const r={valueMin:n,valueMax:h<0?0:h},e={max:l.scaleMax||Math.max(...l.absoluteValues)||1,min:l.scaleMin||Math.min(...l.absoluteValues.filter(N=>![void 0,null].includes(N)))>0?0:Math.min(...l.absoluteValues.filter(N=>![null,void 0].includes(N)))},F=l.scaleSteps||this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,m=1.0000001,u=this.calculateNiceScaleWithExactExtremes(e.min,e.max===e.min?e.max*m:e.max,F),x=this.calculateNiceScaleWithExactExtremes(r.valueMin,r.valueMax===r.valueMin?r.valueMax*m:r.valueMax,F),L=u.min>=0?0:Math.abs(u.min),k=0,C=u.max+L,_=x.max+Math.abs(k),f=this.mutableConfig.isStacked?this.drawingArea.height*(1-l.cumulatedStackRatio):0,b=this.mutableConfig.isStacked?this.drawingArea.height*l.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,y=this.drawingArea.bottom-f-b*L/C,A=this.drawingArea.bottom-f-b*k/_,a=this.absoluteDataset.filter(N=>N.type==="bar").filter(N=>!this.segregatedSeries.includes(N.id)).length,o=l.series.map((N,w)=>{const v=this.mutableConfig.useIndividualScale?(l.absoluteValues[w]+L)/C:this.ratioToMax(N),G=this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?this.drawingArea.left+this.drawingArea.width/this.maxSeries*w:this.drawingArea.left+this.slot.bar*s+this.slot.bar*w*a-this.barSlot/2-s*this.barPeriodGap;return{yOffset:this.checkNaN(f),individualHeight:this.checkNaN(b),x:this.checkNaN(G),y:this.drawingArea.bottom-f-b*v,value:l.absoluteValues[w],zeroPosition:this.checkNaN(y),individualMax:this.checkNaN(C),comment:l.comments&&l.comments.slice(this.slicer.start,this.slicer.end)[w]||""}}),i=l.absoluteValues.map(N=>x.min>=0?(N-Math.abs(x.min))/(x.max-Math.abs(x.min)):(N+Math.abs(x.min))/(x.max+Math.abs(x.min))),c=l.series.map((N,w)=>{const v=this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?this.drawingArea.left+this.drawingArea.width/this.maxSeries*w:this.drawingArea.left-this.slot.bar/2+this.slot.bar*s+this.slot.bar*w*this.absoluteDataset.filter(G=>G.type==="bar").filter(G=>!this.segregatedSeries.includes(G.id)).length;return{yOffset:this.checkNaN(f),individualHeight:this.checkNaN(b),x:this.checkNaN(v),y:this.checkNaN(this.drawingArea.bottom-this.checkNaN(f)-(this.checkNaN(b)*i[w]||0)),value:l.absoluteValues[w],zeroPosition:this.checkNaN(y),individualMax:this.checkNaN(C),comment:l.comments&&l.comments.slice(this.slicer.start,this.slicer.end)[w]||""}}),I=u.ticks.map(N=>({y:N>=0?y-b*(N/C):y+b*Math.abs(N)/C,value:N,prefix:l.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:l.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:l})),S=x.ticks.map(N=>{const w=(N-x.min)/(x.max-x.min);return{y:N>=0?A-b*w:A+b*w,value:N,prefix:l.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:l.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:l}});return this.scaleGroups[l.scaleLabel].name=l.name,this.scaleGroups[l.scaleLabel].groupName=l.scaleLabel,this.scaleGroups[l.scaleLabel].groupColor=this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor||l.color,this.scaleGroups[l.scaleLabel].color=l.color,this.scaleGroups[l.scaleLabel].scaleYLabels=l.autoScaling?S:I,this.scaleGroups[l.scaleLabel].zeroPosition=l.autoScaling?A:y,this.scaleGroups[l.scaleLabel].individualMax=l.autoScaling?_:C,this.scaleGroups[l.scaleLabel].scaleLabel=l.scaleLabel,this.scaleGroups[l.scaleLabel].id=l.id,this.scaleGroups[l.scaleLabel].yOffset=f,this.scaleGroups[l.scaleLabel].individualHeight=b,this.scaleGroups[l.scaleLabel].autoScaleYLabels=S,this.scaleGroups[l.scaleLabel].unique=this.activeSeriesWithStackRatios.filter(N=>N.scaleLabel===l.scaleLabel).length===1,{...l,yOffset:f,autoScaleYLabels:S,individualHeight:b,scaleYLabels:l.autoScaling?S:I,individualScale:l.autoScaling?x:u,individualMax:l.autoScaling?_:C,zeroPosition:l.autoScaling?A:y,plots:l.autoScaling?c:o,groupId:this.scaleGroups[l.scaleLabel].groupId}})},lineSet(){return this.activeSeriesWithStackRatios.filter(l=>l.type==="line").map(l=>{this.checkAutoScaleError(l);const s=this.scaleGroups[l.scaleLabel].min,n=this.scaleGroups[l.scaleLabel].max;l.absoluteValues.filter(g=>![null,void 0].includes(g)).map(g=>(g-s)/(n-s));const h={valueMin:s,valueMax:n},r={max:l.scaleMax||Math.max(...l.absoluteValues)||1,min:l.scaleMin||(Math.min(...l.absoluteValues)>0?0:Math.min(...l.absoluteValues))},e=l.scaleSteps||this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,F=1.0000001,m=this.calculateNiceScaleWithExactExtremes(r.min,r.max===r.min?r.max*F:r.max,e),u=this.calculateNiceScaleWithExactExtremes(h.valueMin,h.valueMax===h.valueMin?h.valueMax*F:h.valueMax,e),x=m.min>=0?0:Math.abs(m.min),L=0,k=m.max+Math.abs(x),C=u.max+Math.abs(L),_=this.mutableConfig.isStacked?this.drawingArea.height*(1-l.cumulatedStackRatio):0,f=this.mutableConfig.isStacked?this.drawingArea.height*l.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,b=this.drawingArea.bottom-_-f*x/k,y=this.drawingArea.bottom-_-f*L/C,A=l.series.map((g,O)=>{const V=this.mutableConfig.useIndividualScale?(l.absoluteValues[O]+Math.abs(x))/k:this.ratioToMax(g);return{x:this.checkNaN(this.drawingArea.left+this.slot.line/2+this.slot.line*O),y:this.checkNaN(this.drawingArea.bottom-_-f*V),value:l.absoluteValues[O],comment:l.comments&&l.comments.slice(this.slicer.start,this.slicer.end)[O]||""}}),a=l.absoluteValues.map(g=>u.min>=0?(g-Math.abs(u.min))/(u.max-Math.abs(u.min)):(g+Math.abs(u.min))/(u.max+Math.abs(u.min))),o=l.series.map((g,O)=>[void 0,null].includes(l.absoluteValues[O])?{x:this.checkNaN(this.drawingArea.left+this.slot.line/2+this.slot.line*O),y:b,value:l.absoluteValues[O],comment:l.comments&&l.comments.slice(this.slicer.start,this.slicer.end)[O]||""}:{x:this.checkNaN(this.drawingArea.left+this.slot.line/2+this.slot.line*O),y:this.checkNaN(this.drawingArea.bottom-_-(f*a[O]||0)),value:l.absoluteValues[O],comment:l.comments&&l.comments.slice(this.slicer.start,this.slicer.end)[O]||""}),i=this.FINAL_CONFIG.line.cutNullValues?this.createSmoothPathWithCuts(A):this.createSmoothPath(A.filter(g=>g.value!==null)),c=this.FINAL_CONFIG.line.cutNullValues?this.createSmoothPathWithCuts(o):this.createSmoothPath(o.filter(g=>g.value!==null)),I=this.FINAL_CONFIG.line.cutNullValues?this.createStraightPathWithCuts(A):this.createStraightPath(A.filter(g=>g.value!==null)),S=this.FINAL_CONFIG.line.cutNullValues?this.createStraightPathWithCuts(o):this.createStraightPath(o.filter(g=>g.value!==null)),N=m.ticks.map(g=>({y:g>=0?b-f*(g/k):b+f*Math.abs(g)/k,value:g,prefix:l.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:l.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:l})),w=u.ticks.map(g=>{const O=(g-u.min)/(u.max-u.min);return{y:g>=0?y-f*O:y+f*O,value:g,prefix:l.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:l.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:l}});this.scaleGroups[l.scaleLabel].name=l.name,this.scaleGroups[l.scaleLabel].groupName=l.scaleLabel,this.scaleGroups[l.scaleLabel].groupColor=this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor||l.color,this.scaleGroups[l.scaleLabel].color=l.color,this.scaleGroups[l.scaleLabel].scaleYLabels=l.autoScaling?w:N,this.scaleGroups[l.scaleLabel].zeroPosition=l.autoScaling?y:b,this.scaleGroups[l.scaleLabel].individualMax=l.autoScaling?C:k,this.scaleGroups[l.scaleLabel].scaleLabel=l.scaleLabel,this.scaleGroups[l.scaleLabel].id=l.id,this.scaleGroups[l.scaleLabel].yOffset=_,this.scaleGroups[l.scaleLabel].individualHeight=f,this.scaleGroups[l.scaleLabel].autoScaleYLabels=w,this.scaleGroups[l.scaleLabel].unique=this.activeSeriesWithStackRatios.filter(g=>g.scaleLabel===l.scaleLabel).length===1;const v=this.mutableConfig.useIndividualScale?l.autoScaling?y:b:this.zero,G=Math.max(Math.max(l.autoScaling?y:N.at(-1).y,this.drawingArea.top),v);return{...l,yOffset:_,autoScaleYLabels:w,individualHeight:f,scaleYLabels:l.autoScaling?w:N,individualScale:l.autoScaling?u:m,individualMax:l.autoScaling?C:k,zeroPosition:l.autoScaling?y:b,curve:l.autoScaling?c:i,plots:l.autoScaling?o:A,area:l.useArea?this.mutableConfig.useIndividualScale?this.FINAL_CONFIG.line.cutNullValues?this.createIndividualAreaWithCuts(l.autoScaling?o:A,G):this.createIndividualArea(l.autoScaling?o.filter(g=>g.value!==null):A.filter(g=>g.value!==null),G):this.createIndividualArea(A.filter(g=>g.value!==null),G):"",curveAreas:l.useArea?d.createSmoothAreaSegments(l.autoScaling?this.FINAL_CONFIG.line.cutNullValues?o:o.filter(g=>g.value!==null):this.FINAL_CONFIG.line.cutNullValues?A:A.filter(g=>g.value!==null),G,this.FINAL_CONFIG.line.cutNullValues):[],straight:l.autoScaling?S:I,groupId:this.scaleGroups[l.scaleLabel].groupId}})},plotSet(){return this.activeSeriesWithStackRatios.filter(l=>l.type==="plot").map(l=>{this.checkAutoScaleError(l);const s=this.scaleGroups[l.scaleLabel].min,n=this.scaleGroups[l.scaleLabel].max;l.absoluteValues.filter(I=>![null,void 0].includes(I)).map(I=>(I-s)/(n-s));const h={valueMin:s,valueMax:n},r={max:l.scaleMax||Math.max(...l.absoluteValues)||1,min:l.scaleMin||Math.min(...l.absoluteValues)>0?0:Math.min(...l.absoluteValues)},e=l.scaleSteps||this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,F=1.0000001,m=this.calculateNiceScaleWithExactExtremes(r.min,r.max===r.min?r.max*F:r.max,e),u=this.calculateNiceScaleWithExactExtremes(h.valueMin,h.valueMax===h.valueMin?h.valueMax*F:h.valueMax,e),x=m.min>=0?0:Math.abs(m.min),L=0,k=m.max+x,C=u.max+Math.abs(L),_=this.mutableConfig.isStacked?this.drawingArea.height*(1-l.cumulatedStackRatio):0,f=this.mutableConfig.isStacked?this.drawingArea.height*l.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,b=this.drawingArea.bottom-_-f*x/k,y=this.drawingArea.bottom-_-f*L/C,A=l.series.map((I,S)=>{const N=this.mutableConfig.useIndividualScale?(l.absoluteValues[S]+Math.abs(x))/k:this.ratioToMax(I);return{x:this.checkNaN(this.drawingArea.left+this.slot.plot/2+this.slot.plot*S),y:this.checkNaN(this.drawingArea.bottom-_-f*N),value:l.absoluteValues[S],comment:l.comments&&l.comments.slice(this.slicer.start,this.slicer.end)[S]||""}}),a=l.absoluteValues.map(I=>u.min>=0?(I-Math.abs(u.min))/(u.max-Math.abs(u.min)):(I+Math.abs(u.min))/(u.max+Math.abs(u.min))),o=l.series.map((I,S)=>({x:this.checkNaN(this.drawingArea.left+this.slot.plot/2+this.slot.plot*S),y:this.checkNaN(this.drawingArea.bottom-_-(f*a[S]||0)),value:l.absoluteValues[S],comment:l.comments&&l.comments.slice(this.slicer.start,this.slicer.end)[S]||""})),i=m.ticks.map(I=>({y:I>=0?b-f*(I/k):b+f*Math.abs(I)/k,value:I,prefix:l.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:l.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:l})),c=u.ticks.map(I=>{const S=(I-u.min)/(u.max-u.min);return{y:I>=0?y-f*S:y+f*S,value:I,prefix:l.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:l.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:l}});return this.scaleGroups[l.scaleLabel].name=l.name,this.scaleGroups[l.scaleLabel].groupName=l.scaleLabel,this.scaleGroups[l.scaleLabel].groupColor=this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor||l.color,this.scaleGroups[l.scaleLabel].color=l.color,this.scaleGroups[l.scaleLabel].scaleYLabels=l.autoScaling?c:i,this.scaleGroups[l.scaleLabel].zeroPosition=l.autoScaling?y:b,this.scaleGroups[l.scaleLabel].individualMax=l.autoScaling?C:k,this.scaleGroups[l.scaleLabel].scaleLabel=l.scaleLabel,this.scaleGroups[l.scaleLabel].id=l.id,this.scaleGroups[l.scaleLabel].yOffset=_,this.scaleGroups[l.scaleLabel].individualHeight=f,this.scaleGroups[l.scaleLabel].autoScaleYLabels=c,this.scaleGroups[l.scaleLabel].unique=this.activeSeriesWithStackRatios.filter(I=>I.scaleLabel===l.scaleLabel).length===1,{...l,yOffset:_,autoScaleYLabels:c,individualHeight:f,scaleYLabels:l.autoScaling?c:i,individualScale:l.autoScaling?u:m,individualMax:l.autoScaling?C:k,zeroPosition:l.autoScaling?y:b,plots:l.autoScaling?o:A,groupId:this.scaleGroups[l.scaleLabel].groupId}})},drawingArea(){function l(h){const r=new Set;return h.forEach(e=>{const F=e.scaleLabel||"__noScaleLabel__";r.add(F)}),r.size}const s=l(this.absoluteDataset.filter(h=>!this.segregatedSeries.includes(h.id))),n=this.mutableConfig.useIndividualScale&&this.FINAL_CONFIG.chart.grid.labels.show?s*(this.mutableConfig.isStacked?0:this.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth):0;return{top:this.FINAL_CONFIG.chart.padding.top,right:this.width-this.FINAL_CONFIG.chart.padding.right,bottom:this.height-this.FINAL_CONFIG.chart.padding.bottom,left:this.FINAL_CONFIG.chart.padding.left+n,height:this.height-(this.FINAL_CONFIG.chart.padding.top+this.FINAL_CONFIG.chart.padding.bottom),width:this.width-(this.FINAL_CONFIG.chart.padding.right+this.FINAL_CONFIG.chart.padding.left+n)}},max(){return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax?this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax:Math.max(...this.safeDataset.filter(l=>!this.segregatedSeries.includes(l.id)).map(l=>Math.max(...l.series)))},min(){if(this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin!==null)return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin;const l=Math.min(...this.safeDataset.filter(s=>!this.segregatedSeries.includes(s.id)).map(s=>Math.min(...s.series)));return l>0?0:l},niceScale(){return this.calculateNiceScaleWithExactExtremes(this.min,this.max<0?0:this.max,this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps)},maxSeries(){return this.slicer.end-this.slicer.start},timeLabels(){const l=Math.max(...this.dataset.map(n=>this.largestTriangleThreeBucketsArray({data:n.series,threshold:this.FINAL_CONFIG.downsample.threshold}).length)),s=[];for(let n=0;n<l;n+=1)s.push({text:this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[n]||String(n),absoluteIndex:n});return s.slice(this.slicer.start,this.slicer.end)},slot(){return{bar:this.drawingArea.width/this.maxSeries/this.safeDataset.filter(l=>l.type==="bar").filter(l=>!this.segregatedSeries.includes(l.id)).length,plot:this.drawingArea.width/this.maxSeries,line:this.drawingArea.width/this.maxSeries}},barSlot(){const l=this.safeDataset.filter(s=>s.type==="bar").filter(s=>!this.segregatedSeries.includes(s.id)).length;return this.drawingArea.width/this.maxSeries/l-this.barPeriodGap*l},barPeriodGap(){return this.slot.line*this.FINAL_CONFIG.bar.periodGap},maxSlot(){return Math.max(...Object.values(this.slot).filter(l=>l!==1/0))},table(){if(this.safeDataset.length===0)return{head:[],body:[],config:{},columnNames:[]};const l=this.relativeDataset.map(n=>({label:n.name,color:n.color,type:n.type})),s=[];return this.timeLabels.forEach((n,h)=>{const r=[n.text];this.relativeDataset.forEach(e=>{r.push(this.canShowValue(e.absoluteValues[h])?Number(e.absoluteValues[h].toFixed(this.FINAL_CONFIG.table.rounding)):"")}),s.push(r)}),{head:l,body:s}},dataTable(){const l=this.FINAL_CONFIG.table.showSum;let s=[""].concat(this.relativeDataset.map(e=>e.name));l&&(s=s.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>'));let n=[];for(let e=0;e<this.maxSeries;e+=1){const F=this.relativeDataset.map(m=>m.absoluteValues[e]??0).reduce((m,u)=>m+u,0);n.push([this.timeLabels[e].text??"-"].concat(this.relativeDataset.map(m=>this.applyDataLabel(m.type==="line"?this.FINAL_CONFIG.line.labels.formatter:m.type==="bar"?this.FINAL_CONFIG.bar.labels.formatter:this.FINAL_CONFIG.plot.labels.formatter,m.absoluteValues[e]??0,this.dataLabel({p:m.prefix||this.FINAL_CONFIG.chart.labels.prefix,v:m.absoluteValues[e]??0,s:m.suffix||this.FINAL_CONFIG.chart.labels.suffix,r:this.FINAL_CONFIG.table.rounding})))).concat(l?(F??0).toFixed(this.FINAL_CONFIG.table.rounding):[]))}const h={th:{backgroundColor:this.FINAL_CONFIG.table.th.backgroundColor,color:this.FINAL_CONFIG.table.th.color,outline:this.FINAL_CONFIG.table.th.outline},td:{backgroundColor:this.FINAL_CONFIG.table.td.backgroundColor,color:this.FINAL_CONFIG.table.td.color,outline:this.FINAL_CONFIG.table.td.outline},breakpoint:this.FINAL_CONFIG.table.responsiveBreakpoint},r=[this.FINAL_CONFIG.table.columnNames.period].concat(this.relativeDataset.map(e=>e.name)).concat(this.FINAL_CONFIG.table.columnNames.total);return{head:s,body:n,config:h,colNames:r}},dataTooltipSlot(){return{datapoint:this.selectedSeries,seriesIndex:this.selectedSerieIndex,series:this.absoluteDataset,bars:this.barSet,lines:this.lineSet,plots:this.plotSet,config:this.FINAL_CONFIG}},selectedSeries(){return this.relativeDataset.map(l=>({slotAbsoluteIndex:l.slotAbsoluteIndex,shape:l.shape||null,name:l.name,color:l.color,type:l.type,value:l.absoluteValues.find((s,n)=>n===this.selectedSerieIndex),comments:l.comments||[],prefix:l.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:l.suffix||this.FINAL_CONFIG.chart.labels.suffix}))},tooltipContent(){let l="",s=this.selectedSeries.map(r=>r.value).filter(r=>this.isSafeValue(r)&&r!==null).reduce((r,e)=>Math.abs(r)+Math.abs(e),0);const n=this.timeLabels[this.selectedSerieIndex],h=this.FINAL_CONFIG.chart.tooltip.customFormat;return this.isFunction(h)&&this.functionReturnsString(()=>h({seriesIndex:this.selectedSerieIndex,datapoint:this.selectedSeries,series:this.absoluteDataset,bars:this.barSet,lines:this.lineSet,plots:this.plotSet,config:this.FINAL_CONFIG}))?h({seriesIndex:this.selectedSerieIndex,datapoint:this.selectedSeries,series:this.absoluteDataset,bars:this.barSet,lines:this.lineSet,plots:this.plotSet,config:this.FINAL_CONFIG}):(n&&n.text&&this.FINAL_CONFIG.chart.tooltip.showTimeLabel&&(l+=`<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${this.FINAL_CONFIG.chart.tooltip.borderColor}; width:100%">${n.text}</div>`),this.selectedSeries.forEach(r=>{if(this.isSafeValue(r.value)){let e="",F="";switch(this.icons[r.type]){case"bar":e=`<svg viewBox="0 0 40 40" height="14" width="14">${this.$slots.pattern?`<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${r.color}" />`:""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${this.$slots.pattern?`url(#pattern_${this.uniqueId}_${r.slotAbsoluteIndex}`:r.color}" /></svg>`;break;case"line":!r.shape||!["star","triangle","square","diamond","pentagon","hexagon"].includes(r.shape)?F=`<circle cx="10" cy="8" r="4" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${r.color}" />`:r.shape==="triangle"?F=`<path d="${d.createPolygonPath({plot:{x:10,y:8},radius:4,sides:3,rotation:.52}).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />`:r.shape==="square"?F=`<path d="${d.createPolygonPath({plot:{x:10,y:8},radius:4,sides:4,rotation:.8}).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />`:r.shape==="diamond"?F=`<path d="${d.createPolygonPath({plot:{x:10,y:8},radius:4,sides:4,rotation:0}).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />`:r.shape==="pentagon"?F=`<path d="${d.createPolygonPath({plot:{x:10,y:8},radius:4,sides:5,rotation:.95}).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />`:r.shape==="hexagon"?F=`<path d="${d.createPolygonPath({plot:{x:10,y:8},radius:4,sides:6,rotation:0}).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />`:r.shape==="star"&&(F=`<polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${r.color}" points="${d.createStar({plot:{x:10,y:8},radius:4})}" />`),e=`<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${r.color}" />${F}</svg>`;break;case"plot":if(!r.shape||!["star","triangle","square","diamond","pentagon","hexagon"].includes(r.shape)){e=`<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${r.color}" /></svg>`;break}if(r.shape==="star"){e=`<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${r.color}" points="${d.createStar({plot:{x:6,y:6},radius:5})}" /></svg>`;break}if(r.shape==="triangle"){e=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${d.createPolygonPath({plot:{x:6,y:6},radius:6,sides:3,rotation:.52}).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(r.shape==="square"){e=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${d.createPolygonPath({plot:{x:6,y:6},radius:6,sides:4,rotation:.8}).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(r.shape==="diamond"){e=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${d.createPolygonPath({plot:{x:6,y:6},radius:5,sides:4,rotation:0}).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(r.shape==="pentagon"){e=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${d.createPolygonPath({plot:{x:6,y:6},radius:5,sides:5,rotation:.95}).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(r.shape==="hexagon"){e=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${d.createPolygonPath({plot:{x:6,y:6},radius:5,sides:6,rotation:0}).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}}l+=`<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${e}</div> ${r.name}: <b>${this.FINAL_CONFIG.chart.tooltip.showValue?this.applyDataLabel(r.type==="line"?this.FINAL_CONFIG.line.labels.formatter:r.type==="bar"?this.FINAL_CONFIG.bar.labels.formatter:this.FINAL_CONFIG.plot.labels.formatter,r.value,this.dataLabel({p:r.prefix,v:r.value,s:r.suffix,r:this.FINAL_CONFIG.chart.tooltip.roundingValue}),{datapoint:r}):""}</b> ${this.FINAL_CONFIG.chart.tooltip.showPercentage?`(${d.dataLabel({v:this.checkNaN(Math.abs(r.value)/s*100),s:"%",r:this.FINAL_CONFIG.chart.tooltip.roundingPercentage})})`:""}</div>`,this.FINAL_CONFIG.chart.comments.showInTooltip&&r.comments.length&&r.comments.slice(this.slicer.start,this.slicer.end)[this.selectedSerieIndex]&&(l+=`<div class="vue-data-ui-tooltip-comment" style="background:${r.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${r.color}">${r.comments.slice(this.slicer.start,this.slicer.end)[this.selectedSerieIndex]}</div>`)}}),`<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${this.FINAL_CONFIG.chart.tooltip.color}">${l}</div>`)},svg(){return{height:this.height,width:this.width}},yLabels(){return this.niceScale.ticks.map(l=>({y:l>=0?this.zero-this.drawingArea.height*this.ratioToMax(l):this.zero+this.drawingArea.height*this.ratioToMax(Math.abs(l)),value:l,prefix:this.FINAL_CONFIG.chart.labels.prefix,suffix:this.FINAL_CONFIG.chart.labels.suffix}))},zero(){return this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(this.relativeZero)}},mounted(){this.svgRef=this.$refs.svgRef,this.prepareChart(),this.setupSlicer(),document.addEventListener("mousemove",l=>{this.clientPosition={x:l.clientX,y:l.clientY}}),document.addEventListener("scroll",this.hideTags)},beforeUnmount(){document.removeEventListener("scroll",this.hideTags)},methods:{abbreviate:d.abbreviate,adaptColorToBackground:d.adaptColorToBackground,applyDataLabel:d.applyDataLabel,assignStackRatios:d.assignStackRatios,calcLinearProgression:d.calcLinearProgression,calculateNiceScaleWithExactExtremes:d.calculateNiceScaleWithExactExtremes,checkNaN:d.checkNaN,closestDecimal:d.closestDecimal,convertColorToHex:d.convertColorToHex,convertConfigColors:d.convertConfigColors,convertCustomPalette:d.convertCustomPalette,createCsvContent:d.createCsvContent,createSmoothPath:d.createSmoothPath,createStraightPath:d.createStraightPath,createTSpans:d.createTSpans,dataLabel:d.dataLabel,downloadCsv:d.downloadCsv,error:d.error,forceValidValue:d.forceValidValue,functionReturnsString:d.functionReturnsString,hasDeepProperty:d.hasDeepProperty,isFunction:d.isFunction,isSafeValue:d.isSafeValue,largestTriangleThreeBucketsArray:d.largestTriangleThreeBucketsArray,objectIsEmpty:d.objectIsEmpty,setOpacity:d.setOpacity,shiftHue:d.shiftHue,translateSize:d.translateSize,treeShake:d.treeShake,useMouse:p.useMouse,useNestedProp:B.useNestedProp,createUid:d.createUid,placeXYTag:d.placeXYTag,createSmoothPathWithCuts:d.createSmoothPathWithCuts,createStraightPathWithCuts:d.createStraightPathWithCuts,createAreaWithCuts:d.createAreaWithCuts,createIndividualAreaWithCuts:d.createIndividualAreaWithCuts,createSmoothAreaSegments:d.createSmoothAreaSegments,createIndividualArea:d.createIndividualArea,hideTags(){const l=document.querySelectorAll(".vue-ui-xy-tag");l.length&&Array.from(l).forEach(s=>s.style.opacity="0")},setTagRef(l,s,n,h,r){n&&(this.tagRefs[`${l}_${s}_${h}_${r}`]=n)},setUserOptionsVisibility(l=!1){this.showUserOptionsOnChartHover&&(this.userOptionsVisible=l)},toggleAnnotator(){this.isAnnotator=!this.isAnnotator},selectTimeLabel(l,s){const n=this.relativeDataset.map(h=>({shape:h.shape||null,name:h.name,color:h.color,type:h.type,value:h.absoluteValues.find((r,e)=>e===s),comments:h.comments||[],prefix:h.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:h.suffix||this.FINAL_CONFIG.chart.labels.suffix}));this.$emit("selectTimeLabel",{datapoint:n,absoluteIndex:l.absoluteIndex,label:l.text})},getHighlightAreaPosition(l){const s=this.drawingArea.left+this.drawingArea.width/this.maxSeries*(l.from-this.slicer.start),n=this.drawingArea.width/(this.slicer.end-this.slicer.start)*l.span<0?1e-5:this.drawingArea.width/(this.slicer.end-this.slicer.start)*l.span;return{x:s<this.drawingArea.left?this.drawingArea.left:s,width:n}},prepareConfig(){const l=d.useConfig().vue_ui_xy;if(!Object.keys(this.config||{}).length)return l;const s=this.useNestedProp({userConfig:this.config,defaultConfig:l});return this.config&&this.hasDeepProperty(this.config,"chart.highlightArea")&&(Array.isArray(this.config.chart.highlightArea)?s.chart.highlightArea=this.config.chart.highlightArea:s.chart.highlightArea=[this.config.chart.highlightArea]),this.config&&this.hasDeepProperty(this.config,"chart.grid.labels.yAxis.scaleMin")?s.chart.grid.labels.yAxis.scaleMin=this.config.chart.grid.labels.yAxis.scaleMin:s.chart.grid.labels.yAxis.scaleMin=null,this.config&&this.hasDeepProperty(this.config,"chart.grid.labels.yAxis.scaleMax")?s.chart.grid.labels.yAxis.scaleMax=this.config.chart.grid.labels.yAxis.scaleMax:s.chart.grid.labels.yAxis.scaleMax=null,this.config&&this.hasDeepProperty(this.config,"chart.zoom.startIndex")?s.chart.zoom.startIndex=this.config.chart.zoom.startIndex:s.chart.zoom.startIndex=null,this.config&&this.hasDeepProperty(this.config,"chart.zoom.endIndex")?s.chart.zoom.endIndex=this.config.chart.zoom.endIndex:s.chart.zoom.endIndex=null,this.config&&this.hasDeepProperty(this.config,"chart.grid.labels.yAxis.groupColor")?s.chart.grid.labels.yAxis.groupColor=this.config.chart.grid.labels.yAxis.groupColor:s.chart.grid.labels.yAxis.groupColor=null,s.theme?{...B.useNestedProp({userConfig:this.themes.vue_ui_xy[s.theme]||this.config,defaultConfig:s}),customPalette:this.themePalettes[s.theme]||this.palette}:s},prepareChart(){if(this.objectIsEmpty(this.dataset)?this.error({componentName:"VueUiXy",type:"dataset"}):this.dataset.forEach((l,s)=>{[null,void 0].includes(l.name)&&this.error({componentName:"VueUiXy",type:"datasetSerieAttribute",property:"name (string)",index:s})}),this.FINAL_CONFIG.showWarnings&&this.dataset.forEach(l=>{l.series.forEach((s,n)=>{this.isSafeValue(s)||console.warn(`VueUiXy has detected an unsafe value in your dataset:
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index-Dy2-pNb6.cjs"),E=require("./DataTable-zSU-0X__.cjs"),z=require("./Title-CEZO2hzQ.cjs"),p=require("./Tooltip-BZa-QzER.cjs"),M=require("./usePrinter-BQEYwy4a.cjs"),T=require("./Shape-D9l3WJGO.cjs"),P=require("./BaseIcon-DmfPEj6j.cjs"),R=require("./vue-ui-table-sparkline-BFQ4DQRu.cjs"),D=require("./vue-ui-skeleton-Db7PiDqL.cjs"),H=require("./Slicer-B7FJCuCB.cjs"),W=require("./vue-ui-accordion-dVGUWjXH.cjs"),B=require("./useNestedProp-DQ8Jt3-Y.cjs"),q=require("./PackageVersion-DxR-fKLM.cjs"),Y=require("./PenAndPaper-CG9o3ymS.cjs"),t=require("vue"),X=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),U=d.createUid(),Z={name:"vue-ui-xy",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},components:{DataTable:E.DataTable,Shape:T._sfc_main,Title:z._sfc_main,Tooltip:p._sfc_main,UserOptions:M.UserOptions,BaseIcon:P.default,TableSparkline:R.default,Skeleton:D.default,Slicer:H.Slicer,Accordion:W.default,PackageVersion:q._sfc_main,PenAndPaper:Y._sfc_main},data(){this.dataset.forEach((h,r)=>{[null,void 0].includes(h.series)&&this.error({componentName:"VueUiXy",type:"datasetSerieAttribute",property:"series (number[])",index:r})});const l=this.config.downsample&&this.config.downsample.threshold?this.config.downsample.threshold:500,s=Math.max(...this.dataset.map(h=>this.largestTriangleThreeBucketsArray({data:h.series,threshold:l}).length)),n={start:0,end:s};return{themePalettes:d.themePalettes,themes:d.themes,slicerStep:0,selectedScale:null,CTX:null,CANVAS:null,opacity:d.opacity,useSafeValues:!0,palette:d.palette,height:600,width:1e3,viewBox:"0 0 1000 600",clientPosition:{x:0,y:0},canvasClientPosition:{x:0,y:0},icons:{line:"line",bar:"bar",plot:"plot"},isAnnotator:!1,isFullscreen:!1,isPrinting:!1,isImaging:!1,isTooltip:!1,mutableConfig:{dataLabels:{show:!0},showTooltip:!0,showTable:!1,isStacked:!1,useIndividualScale:!1},selectedSerieIndex:null,selectedRowIndex:null,segregatedSeries:[],uniqueId:d.createUid(),step:0,tableStep:0,titleStep:0,slicer:n,__to__:null,maxX:s,showSparklineTable:!0,segregateStep:0,sliderId:U,fontSizes:{xAxis:18,yAxis:12,dataLabels:20,plotLabels:10},plotRadii:{plot:3,line:3},selectedMinimapIndex:null,showUserOptionsOnChartHover:!1,keepUserOptionState:!0,userOptionsVisible:!0,svgRef:null,tagRefs:{}}},watch:{dataset:{handler(l,s){this.maxX=Math.max(...this.dataset.map(n=>this.largestTriangleThreeBucketsArray({data:n.series,threshold:this.FINAL_CONFIG.downsample.threshold}).length)),this.slicer={start:0,end:this.maxX},this.slicerStep+=1,this.segregateStep+=1},deep:!0},config:{handler(l,s){this.FINAL_CONFIG=this.prepareConfig(),this.prepareChart(),this.titleStep+=1,this.tableStep+=1,this.mutableConfig={dataLabels:{show:!0},showTooltip:this.FINAL_CONFIG.chart.tooltip.show===!0,showTable:this.FINAL_CONFIG.showTable===!0,isStacked:this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked,useIndividualScale:this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale}},deep:!0}},computed:{chartAriaLabel(){const l=this.FINAL_CONFIG.chart.title.text||"Chart visualization",s=this.FINAL_CONFIG.chart.title.subtitle.text||"";return`${l}. ${s}`},optimize(){return{linePlot:this.maxSeries>this.FINAL_CONFIG.line.dot.hideAboveMaxSerieLength}},hasOptionsNoTitle(){return this.FINAL_CONFIG.chart.userOptions.show&&(!this.FINAL_CONFIG.chart.title.show||!this.FINAL_CONFIG.chart.title.text)},minimap(){if(!this.FINAL_CONFIG.chart.zoom.minimap.show)return[];const l=this.datasetWithIds.filter(r=>!this.segregatedSeries.includes(r.id)),s=Math.max(...l.map(r=>r.series.length)),n=[];for(let r=0;r<s;r+=1)n.push(l.map(e=>e.series[r]||0).reduce((e,F)=>(e||0)+(F||0),0));const h=Math.min(...n);return n.map(r=>r+(h<0?Math.abs(h):0))},customPalette(){return this.convertCustomPalette(this.FINAL_CONFIG.customPalette)},backgroundColor(){return this.FINAL_CONFIG.chart.backgroundColor},slicerColor(){return this.FINAL_CONFIG.chart.zoom.color},allScales(){const l=this.lineSet.map(e=>({name:e.name,color:e.color,scale:e.individualScale,scaleYLabels:e.scaleYLabels,zero:e.zeroPosition,max:e.individualMax,scaleLabel:e.scaleLabel||"",id:e.id,yOffset:e.yOffset||0,individualHeight:e.individualHeight||this.drawingArea.height,autoScaleYLabels:e.autoScaleYLabels})),s=this.barSet.map(e=>({name:e.name,color:e.color,scale:e.individualScale,scaleYLabels:e.scaleYLabels,zero:e.zeroPosition,max:e.individualMax,scaleLabel:e.scaleLabel||"",id:e.id,yOffset:e.yOffset||0,individualHeight:e.individualHeight||this.drawingArea.height})),n=this.plotSet.map(e=>({name:e.name,color:e.color,scale:e.individualScale,scaleYLabels:e.scaleYLabels,zero:e.zeroPosition,max:e.individualMax,scaleLabel:e.scaleLabel||"",id:e.id,yOffset:e.yOffset||0,individualHeight:e.individualHeight||this.drawingArea.height})),h=this.mutableConfig.useIndividualScale&&!this.mutableConfig.isStacked?Object.values(this.scaleGroups):[...l,...s,...n],r=h.flatMap(e=>e).length;return h.flatMap((e,F)=>({unique:e.unique,id:e.id,groupId:e.groupId,scaleLabel:e.scaleLabel,name:this.mutableConfig.useIndividualScale&&!this.mutableConfig.isStacked?e.unique?e.name:e.groupName:e.name,color:this.mutableConfig.useIndividualScale&&!this.mutableConfig.isStacked?e.unique?e.color:e.groupColor:e.color,scale:e.scale,yOffset:e.yOffset,individualHeight:e.individualHeight,x:this.mutableConfig.isStacked?this.drawingArea.left:this.drawingArea.left/r*(F+1),yLabels:e.scaleYLabels||e.scale.ticks.map(m=>({y:m>=0?e.zero-e.individualHeight*(m/e.max):e.zero+e.individualHeight*Math.abs(m)/e.max,value:m}))}))},isDataset(){return!!this.dataset&&this.dataset.length},chartFont(){const l=document.getElementById(`vue-ui-xy_${this.uniqueId}`);return window.getComputedStyle(l,null).getPropertyValue("font-family")},FINAL_CONFIG:{get:function(){return this.prepareConfig()},set:function(l){return l}},hasHighlightArea(){return Array.isArray(this.FINAL_CONFIG.chart.highlightArea)?this.FINAL_CONFIG.chart.highlightArea.some(l=>l.show):this.FINAL_CONFIG.chart.highlightArea&&this.FINAL_CONFIG.chart.highlightArea.show},highlightAreas(){if(Array.isArray(this.FINAL_CONFIG.chart.highlightArea))return this.FINAL_CONFIG.chart.highlightArea.map(s=>({...s,span:s.from===s.to?1:s.to<s.from?0:s.to-s.from+1}));const l=this.FINAL_CONFIG.chart.highlightArea;return[{...l,span:l.from===l.to?1:l.to<l.from?0:l.to-l.from+1}]},xPadding(){return this.FINAL_CONFIG.chart.grid.position==="middle"?0:this.drawingArea.width/this.maxSeries/2},relativeZero(){return[null,void 0].includes(this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin)?this.niceScale.min>=0?0:Math.abs(this.niceScale.min):-this.niceScale.min},absoluteMax(){return this.niceScale.max+this.relativeZero},datasetWithIds(){return this.useSafeValues?this.dataset.map((l,s)=>({...l,series:this.largestTriangleThreeBucketsArray({data:l.series,threshold:this.FINAL_CONFIG.downsample.threshold}),id:`uniqueId_${s}`})):this.dataset},safeDataset(){return this.useSafeValues?this.dataset.map((l,s)=>{const n=this.largestTriangleThreeBucketsArray({data:l.series,threshold:this.FINAL_CONFIG.downsample.threshold}),h=`uniqueId_${s}`;return{...l,slotAbsoluteIndex:s,series:n.map(r=>this.isSafeValue(r)?r:null).slice(this.slicer.start,this.slicer.end),color:this.convertColorToHex(l.color?l.color:this.customPalette[s]?this.customPalette[s]:this.palette[s]),id:h,scaleLabel:l.scaleLabel||h}}):this.dataset},relativeDataset(){return this.safeDataset.map((l,s)=>({...l,series:l.series.map(n=>n+this.relativeZero),absoluteValues:l.series})).filter(l=>!this.segregatedSeries.includes(l.id))},tableSparklineDataset(){return this.relativeDataset.map(l=>{const s=l.absoluteValues.map(n=>[void 0,null].includes(n)?0:n);return{id:l.id,name:l.name,color:l.color,values:this.fillArray(this.maxSeries,s)}})},tableSparklineConfig(){return{responsiveBreakpoint:this.FINAL_CONFIG.table.responsiveBreakpoint,roundingValues:this.FINAL_CONFIG.table.rounding,showAverage:!1,showMedian:!1,showTotal:!1,fontFamily:this.FINAL_CONFIG.chart.fontFamily,prefix:this.FINAL_CONFIG.chart.labels.prefix,suffix:this.FINAL_CONFIG.chart.labels.suffix,colNames:JSON.parse(JSON.stringify(this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values)),thead:{backgroundColor:this.FINAL_CONFIG.table.th.backgroundColor,color:this.FINAL_CONFIG.table.th.color,outline:this.FINAL_CONFIG.table.th.outline},tbody:{backgroundColor:this.FINAL_CONFIG.table.td.backgroundColor,color:this.FINAL_CONFIG.table.td.color,outline:this.FINAL_CONFIG.table.td.outline},userOptions:{show:!1}}},absoluteDataset(){return this.safeDataset.map((l,s)=>({absoluteIndex:s,...l,series:l.series.map(n=>n+this.relativeZero),absoluteValues:l.series,segregate:()=>this.segregate(l),isSegregated:this.segregatedSeries.includes(l.id)}))},activeSeriesLength(){return this.absoluteDataset.length},activeSeriesWithStackRatios(){return this.assignStackRatios(this.absoluteDataset.filter(l=>!this.segregatedSeries.includes(l.id)))},scaleGroups(){const l=Object.groupBy(this.activeSeriesWithStackRatios,n=>n.scaleLabel),s={};for(const[n,h]of Object.entries(l)){const r=h.flatMap(e=>e.absoluteValues);s[n]={min:Math.min(...r)||0,max:Math.max(...r)||1,groupId:`scale_group_${this.createUid()}`}}return s},barSet(){return this.activeSeriesWithStackRatios.filter(l=>l.type==="bar").map((l,s)=>{this.checkAutoScaleError(l);const n=this.scaleGroups[l.scaleLabel].min,h=this.scaleGroups[l.scaleLabel].max;l.absoluteValues.filter(N=>![null,void 0].includes(N)).map(N=>(N-n)/(h-n));const r={valueMin:n,valueMax:h<0?0:h},e={max:l.scaleMax||Math.max(...l.absoluteValues)||1,min:l.scaleMin||Math.min(...l.absoluteValues.filter(N=>![void 0,null].includes(N)))>0?0:Math.min(...l.absoluteValues.filter(N=>![null,void 0].includes(N)))},F=l.scaleSteps||this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,m=1.0000001,u=this.calculateNiceScaleWithExactExtremes(e.min,e.max===e.min?e.max*m:e.max,F),x=this.calculateNiceScaleWithExactExtremes(r.valueMin,r.valueMax===r.valueMin?r.valueMax*m:r.valueMax,F),L=u.min>=0?0:Math.abs(u.min),k=0,C=u.max+L,_=x.max+Math.abs(k),f=this.mutableConfig.isStacked?this.drawingArea.height*(1-l.cumulatedStackRatio):0,b=this.mutableConfig.isStacked?this.drawingArea.height*l.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,y=this.drawingArea.bottom-f-b*L/C,A=this.drawingArea.bottom-f-b*k/_,a=this.absoluteDataset.filter(N=>N.type==="bar").filter(N=>!this.segregatedSeries.includes(N.id)).length,o=l.series.map((N,w)=>{const v=this.mutableConfig.useIndividualScale?(l.absoluteValues[w]+L)/C:this.ratioToMax(N),G=this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?this.drawingArea.left+this.drawingArea.width/this.maxSeries*w:this.drawingArea.left+this.slot.bar*s+this.slot.bar*w*a-this.barSlot/2-s*this.barPeriodGap;return{yOffset:this.checkNaN(f),individualHeight:this.checkNaN(b),x:this.checkNaN(G),y:this.drawingArea.bottom-f-b*v,value:l.absoluteValues[w],zeroPosition:this.checkNaN(y),individualMax:this.checkNaN(C),comment:l.comments&&l.comments.slice(this.slicer.start,this.slicer.end)[w]||""}}),i=l.absoluteValues.map(N=>x.min>=0?(N-Math.abs(x.min))/(x.max-Math.abs(x.min)):(N+Math.abs(x.min))/(x.max+Math.abs(x.min))),c=l.series.map((N,w)=>{const v=this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?this.drawingArea.left+this.drawingArea.width/this.maxSeries*w:this.drawingArea.left-this.slot.bar/2+this.slot.bar*s+this.slot.bar*w*this.absoluteDataset.filter(G=>G.type==="bar").filter(G=>!this.segregatedSeries.includes(G.id)).length;return{yOffset:this.checkNaN(f),individualHeight:this.checkNaN(b),x:this.checkNaN(v),y:this.checkNaN(this.drawingArea.bottom-this.checkNaN(f)-(this.checkNaN(b)*i[w]||0)),value:l.absoluteValues[w],zeroPosition:this.checkNaN(y),individualMax:this.checkNaN(C),comment:l.comments&&l.comments.slice(this.slicer.start,this.slicer.end)[w]||""}}),I=u.ticks.map(N=>({y:N>=0?y-b*(N/C):y+b*Math.abs(N)/C,value:N,prefix:l.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:l.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:l})),S=x.ticks.map(N=>{const w=(N-x.min)/(x.max-x.min);return{y:N>=0?A-b*w:A+b*w,value:N,prefix:l.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:l.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:l}});return this.scaleGroups[l.scaleLabel].name=l.name,this.scaleGroups[l.scaleLabel].groupName=l.scaleLabel,this.scaleGroups[l.scaleLabel].groupColor=this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor||l.color,this.scaleGroups[l.scaleLabel].color=l.color,this.scaleGroups[l.scaleLabel].scaleYLabels=l.autoScaling?S:I,this.scaleGroups[l.scaleLabel].zeroPosition=l.autoScaling?A:y,this.scaleGroups[l.scaleLabel].individualMax=l.autoScaling?_:C,this.scaleGroups[l.scaleLabel].scaleLabel=l.scaleLabel,this.scaleGroups[l.scaleLabel].id=l.id,this.scaleGroups[l.scaleLabel].yOffset=f,this.scaleGroups[l.scaleLabel].individualHeight=b,this.scaleGroups[l.scaleLabel].autoScaleYLabels=S,this.scaleGroups[l.scaleLabel].unique=this.activeSeriesWithStackRatios.filter(N=>N.scaleLabel===l.scaleLabel).length===1,{...l,yOffset:f,autoScaleYLabels:S,individualHeight:b,scaleYLabels:l.autoScaling?S:I,individualScale:l.autoScaling?x:u,individualMax:l.autoScaling?_:C,zeroPosition:l.autoScaling?A:y,plots:l.autoScaling?c:o,groupId:this.scaleGroups[l.scaleLabel].groupId}})},lineSet(){return this.activeSeriesWithStackRatios.filter(l=>l.type==="line").map(l=>{this.checkAutoScaleError(l);const s=this.scaleGroups[l.scaleLabel].min,n=this.scaleGroups[l.scaleLabel].max;l.absoluteValues.filter(g=>![null,void 0].includes(g)).map(g=>(g-s)/(n-s));const h={valueMin:s,valueMax:n},r={max:l.scaleMax||Math.max(...l.absoluteValues)||1,min:l.scaleMin||(Math.min(...l.absoluteValues)>0?0:Math.min(...l.absoluteValues))},e=l.scaleSteps||this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,F=1.0000001,m=this.calculateNiceScaleWithExactExtremes(r.min,r.max===r.min?r.max*F:r.max,e),u=this.calculateNiceScaleWithExactExtremes(h.valueMin,h.valueMax===h.valueMin?h.valueMax*F:h.valueMax,e),x=m.min>=0?0:Math.abs(m.min),L=0,k=m.max+Math.abs(x),C=u.max+Math.abs(L),_=this.mutableConfig.isStacked?this.drawingArea.height*(1-l.cumulatedStackRatio):0,f=this.mutableConfig.isStacked?this.drawingArea.height*l.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,b=this.drawingArea.bottom-_-f*x/k,y=this.drawingArea.bottom-_-f*L/C,A=l.series.map((g,O)=>{const V=this.mutableConfig.useIndividualScale?(l.absoluteValues[O]+Math.abs(x))/k:this.ratioToMax(g);return{x:this.checkNaN(this.drawingArea.left+this.slot.line/2+this.slot.line*O),y:this.checkNaN(this.drawingArea.bottom-_-f*V),value:l.absoluteValues[O],comment:l.comments&&l.comments.slice(this.slicer.start,this.slicer.end)[O]||""}}),a=l.absoluteValues.map(g=>u.min>=0?(g-Math.abs(u.min))/(u.max-Math.abs(u.min)):(g+Math.abs(u.min))/(u.max+Math.abs(u.min))),o=l.series.map((g,O)=>[void 0,null].includes(l.absoluteValues[O])?{x:this.checkNaN(this.drawingArea.left+this.slot.line/2+this.slot.line*O),y:b,value:l.absoluteValues[O],comment:l.comments&&l.comments.slice(this.slicer.start,this.slicer.end)[O]||""}:{x:this.checkNaN(this.drawingArea.left+this.slot.line/2+this.slot.line*O),y:this.checkNaN(this.drawingArea.bottom-_-(f*a[O]||0)),value:l.absoluteValues[O],comment:l.comments&&l.comments.slice(this.slicer.start,this.slicer.end)[O]||""}),i=this.FINAL_CONFIG.line.cutNullValues?this.createSmoothPathWithCuts(A):this.createSmoothPath(A.filter(g=>g.value!==null)),c=this.FINAL_CONFIG.line.cutNullValues?this.createSmoothPathWithCuts(o):this.createSmoothPath(o.filter(g=>g.value!==null)),I=this.FINAL_CONFIG.line.cutNullValues?this.createStraightPathWithCuts(A):this.createStraightPath(A.filter(g=>g.value!==null)),S=this.FINAL_CONFIG.line.cutNullValues?this.createStraightPathWithCuts(o):this.createStraightPath(o.filter(g=>g.value!==null)),N=m.ticks.map(g=>({y:g>=0?b-f*(g/k):b+f*Math.abs(g)/k,value:g,prefix:l.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:l.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:l})),w=u.ticks.map(g=>{const O=(g-u.min)/(u.max-u.min);return{y:g>=0?y-f*O:y+f*O,value:g,prefix:l.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:l.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:l}});this.scaleGroups[l.scaleLabel].name=l.name,this.scaleGroups[l.scaleLabel].groupName=l.scaleLabel,this.scaleGroups[l.scaleLabel].groupColor=this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor||l.color,this.scaleGroups[l.scaleLabel].color=l.color,this.scaleGroups[l.scaleLabel].scaleYLabels=l.autoScaling?w:N,this.scaleGroups[l.scaleLabel].zeroPosition=l.autoScaling?y:b,this.scaleGroups[l.scaleLabel].individualMax=l.autoScaling?C:k,this.scaleGroups[l.scaleLabel].scaleLabel=l.scaleLabel,this.scaleGroups[l.scaleLabel].id=l.id,this.scaleGroups[l.scaleLabel].yOffset=_,this.scaleGroups[l.scaleLabel].individualHeight=f,this.scaleGroups[l.scaleLabel].autoScaleYLabels=w,this.scaleGroups[l.scaleLabel].unique=this.activeSeriesWithStackRatios.filter(g=>g.scaleLabel===l.scaleLabel).length===1;const v=this.mutableConfig.useIndividualScale?l.autoScaling?y:b:this.zero,G=Math.max(Math.max(l.autoScaling?y:N.at(-1).y,this.drawingArea.top),v);return{...l,yOffset:_,autoScaleYLabels:w,individualHeight:f,scaleYLabels:l.autoScaling?w:N,individualScale:l.autoScaling?u:m,individualMax:l.autoScaling?C:k,zeroPosition:l.autoScaling?y:b,curve:l.autoScaling?c:i,plots:l.autoScaling?o:A,area:l.useArea?this.mutableConfig.useIndividualScale?this.FINAL_CONFIG.line.cutNullValues?this.createIndividualAreaWithCuts(l.autoScaling?o:A,G):this.createIndividualArea(l.autoScaling?o.filter(g=>g.value!==null):A.filter(g=>g.value!==null),G):this.createIndividualArea(A.filter(g=>g.value!==null),G):"",curveAreas:l.useArea?d.createSmoothAreaSegments(l.autoScaling?this.FINAL_CONFIG.line.cutNullValues?o:o.filter(g=>g.value!==null):this.FINAL_CONFIG.line.cutNullValues?A:A.filter(g=>g.value!==null),G,this.FINAL_CONFIG.line.cutNullValues):[],straight:l.autoScaling?S:I,groupId:this.scaleGroups[l.scaleLabel].groupId}})},plotSet(){return this.activeSeriesWithStackRatios.filter(l=>l.type==="plot").map(l=>{this.checkAutoScaleError(l);const s=this.scaleGroups[l.scaleLabel].min,n=this.scaleGroups[l.scaleLabel].max;l.absoluteValues.filter(I=>![null,void 0].includes(I)).map(I=>(I-s)/(n-s));const h={valueMin:s,valueMax:n},r={max:l.scaleMax||Math.max(...l.absoluteValues)||1,min:l.scaleMin||Math.min(...l.absoluteValues)>0?0:Math.min(...l.absoluteValues)},e=l.scaleSteps||this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,F=1.0000001,m=this.calculateNiceScaleWithExactExtremes(r.min,r.max===r.min?r.max*F:r.max,e),u=this.calculateNiceScaleWithExactExtremes(h.valueMin,h.valueMax===h.valueMin?h.valueMax*F:h.valueMax,e),x=m.min>=0?0:Math.abs(m.min),L=0,k=m.max+x,C=u.max+Math.abs(L),_=this.mutableConfig.isStacked?this.drawingArea.height*(1-l.cumulatedStackRatio):0,f=this.mutableConfig.isStacked?this.drawingArea.height*l.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,b=this.drawingArea.bottom-_-f*x/k,y=this.drawingArea.bottom-_-f*L/C,A=l.series.map((I,S)=>{const N=this.mutableConfig.useIndividualScale?(l.absoluteValues[S]+Math.abs(x))/k:this.ratioToMax(I);return{x:this.checkNaN(this.drawingArea.left+this.slot.plot/2+this.slot.plot*S),y:this.checkNaN(this.drawingArea.bottom-_-f*N),value:l.absoluteValues[S],comment:l.comments&&l.comments.slice(this.slicer.start,this.slicer.end)[S]||""}}),a=l.absoluteValues.map(I=>u.min>=0?(I-Math.abs(u.min))/(u.max-Math.abs(u.min)):(I+Math.abs(u.min))/(u.max+Math.abs(u.min))),o=l.series.map((I,S)=>({x:this.checkNaN(this.drawingArea.left+this.slot.plot/2+this.slot.plot*S),y:this.checkNaN(this.drawingArea.bottom-_-(f*a[S]||0)),value:l.absoluteValues[S],comment:l.comments&&l.comments.slice(this.slicer.start,this.slicer.end)[S]||""})),i=m.ticks.map(I=>({y:I>=0?b-f*(I/k):b+f*Math.abs(I)/k,value:I,prefix:l.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:l.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:l})),c=u.ticks.map(I=>{const S=(I-u.min)/(u.max-u.min);return{y:I>=0?y-f*S:y+f*S,value:I,prefix:l.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:l.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:l}});return this.scaleGroups[l.scaleLabel].name=l.name,this.scaleGroups[l.scaleLabel].groupName=l.scaleLabel,this.scaleGroups[l.scaleLabel].groupColor=this.FINAL_CONFIG.chart.grid.labels.yAxis.groupColor||l.color,this.scaleGroups[l.scaleLabel].color=l.color,this.scaleGroups[l.scaleLabel].scaleYLabels=l.autoScaling?c:i,this.scaleGroups[l.scaleLabel].zeroPosition=l.autoScaling?y:b,this.scaleGroups[l.scaleLabel].individualMax=l.autoScaling?C:k,this.scaleGroups[l.scaleLabel].scaleLabel=l.scaleLabel,this.scaleGroups[l.scaleLabel].id=l.id,this.scaleGroups[l.scaleLabel].yOffset=_,this.scaleGroups[l.scaleLabel].individualHeight=f,this.scaleGroups[l.scaleLabel].autoScaleYLabels=c,this.scaleGroups[l.scaleLabel].unique=this.activeSeriesWithStackRatios.filter(I=>I.scaleLabel===l.scaleLabel).length===1,{...l,yOffset:_,autoScaleYLabels:c,individualHeight:f,scaleYLabels:l.autoScaling?c:i,individualScale:l.autoScaling?u:m,individualMax:l.autoScaling?C:k,zeroPosition:l.autoScaling?y:b,plots:l.autoScaling?o:A,groupId:this.scaleGroups[l.scaleLabel].groupId}})},drawingArea(){function l(h){const r=new Set;return h.forEach(e=>{const F=e.scaleLabel||"__noScaleLabel__";r.add(F)}),r.size}const s=l(this.absoluteDataset.filter(h=>!this.segregatedSeries.includes(h.id))),n=this.mutableConfig.useIndividualScale&&this.FINAL_CONFIG.chart.grid.labels.show?s*(this.mutableConfig.isStacked?0:this.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth):0;return{top:this.FINAL_CONFIG.chart.padding.top,right:this.width-this.FINAL_CONFIG.chart.padding.right,bottom:this.height-this.FINAL_CONFIG.chart.padding.bottom,left:this.FINAL_CONFIG.chart.padding.left+n,height:this.height-(this.FINAL_CONFIG.chart.padding.top+this.FINAL_CONFIG.chart.padding.bottom),width:this.width-(this.FINAL_CONFIG.chart.padding.right+this.FINAL_CONFIG.chart.padding.left+n)}},max(){return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax?this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMax:Math.max(...this.safeDataset.filter(l=>!this.segregatedSeries.includes(l.id)).map(l=>Math.max(...l.series)))},min(){if(this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin!==null)return this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin;const l=Math.min(...this.safeDataset.filter(s=>!this.segregatedSeries.includes(s.id)).map(s=>Math.min(...s.series)));return l>0?0:l},niceScale(){return this.calculateNiceScaleWithExactExtremes(this.min,this.max<0?0:this.max,this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps)},maxSeries(){return this.slicer.end-this.slicer.start},timeLabels(){const l=Math.max(...this.dataset.map(n=>this.largestTriangleThreeBucketsArray({data:n.series,threshold:this.FINAL_CONFIG.downsample.threshold}).length)),s=[];for(let n=0;n<l;n+=1)s.push({text:this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[n]||String(n),absoluteIndex:n});return s.slice(this.slicer.start,this.slicer.end)},slot(){return{bar:this.drawingArea.width/this.maxSeries/this.safeDataset.filter(l=>l.type==="bar").filter(l=>!this.segregatedSeries.includes(l.id)).length,plot:this.drawingArea.width/this.maxSeries,line:this.drawingArea.width/this.maxSeries}},barSlot(){const l=this.safeDataset.filter(s=>s.type==="bar").filter(s=>!this.segregatedSeries.includes(s.id)).length;return this.drawingArea.width/this.maxSeries/l-this.barPeriodGap*l},barPeriodGap(){return this.slot.line*this.FINAL_CONFIG.bar.periodGap},maxSlot(){return Math.max(...Object.values(this.slot).filter(l=>l!==1/0))},table(){if(this.safeDataset.length===0)return{head:[],body:[],config:{},columnNames:[]};const l=this.relativeDataset.map(n=>({label:n.name,color:n.color,type:n.type})),s=[];return this.timeLabels.forEach((n,h)=>{const r=[n.text];this.relativeDataset.forEach(e=>{r.push(this.canShowValue(e.absoluteValues[h])?Number(e.absoluteValues[h].toFixed(this.FINAL_CONFIG.table.rounding)):"")}),s.push(r)}),{head:l,body:s}},dataTable(){const l=this.FINAL_CONFIG.table.showSum;let s=[""].concat(this.relativeDataset.map(e=>e.name));l&&(s=s.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>'));let n=[];for(let e=0;e<this.maxSeries;e+=1){const F=this.relativeDataset.map(m=>m.absoluteValues[e]??0).reduce((m,u)=>m+u,0);n.push([this.timeLabels[e].text??"-"].concat(this.relativeDataset.map(m=>this.applyDataLabel(m.type==="line"?this.FINAL_CONFIG.line.labels.formatter:m.type==="bar"?this.FINAL_CONFIG.bar.labels.formatter:this.FINAL_CONFIG.plot.labels.formatter,m.absoluteValues[e]??0,this.dataLabel({p:m.prefix||this.FINAL_CONFIG.chart.labels.prefix,v:m.absoluteValues[e]??0,s:m.suffix||this.FINAL_CONFIG.chart.labels.suffix,r:this.FINAL_CONFIG.table.rounding})))).concat(l?(F??0).toFixed(this.FINAL_CONFIG.table.rounding):[]))}const h={th:{backgroundColor:this.FINAL_CONFIG.table.th.backgroundColor,color:this.FINAL_CONFIG.table.th.color,outline:this.FINAL_CONFIG.table.th.outline},td:{backgroundColor:this.FINAL_CONFIG.table.td.backgroundColor,color:this.FINAL_CONFIG.table.td.color,outline:this.FINAL_CONFIG.table.td.outline},breakpoint:this.FINAL_CONFIG.table.responsiveBreakpoint},r=[this.FINAL_CONFIG.table.columnNames.period].concat(this.relativeDataset.map(e=>e.name)).concat(this.FINAL_CONFIG.table.columnNames.total);return{head:s,body:n,config:h,colNames:r}},dataTooltipSlot(){return{datapoint:this.selectedSeries,seriesIndex:this.selectedSerieIndex,series:this.absoluteDataset,bars:this.barSet,lines:this.lineSet,plots:this.plotSet,config:this.FINAL_CONFIG}},selectedSeries(){return this.relativeDataset.map(l=>({slotAbsoluteIndex:l.slotAbsoluteIndex,shape:l.shape||null,name:l.name,color:l.color,type:l.type,value:l.absoluteValues.find((s,n)=>n===this.selectedSerieIndex),comments:l.comments||[],prefix:l.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:l.suffix||this.FINAL_CONFIG.chart.labels.suffix}))},tooltipContent(){let l="",s=this.selectedSeries.map(r=>r.value).filter(r=>this.isSafeValue(r)&&r!==null).reduce((r,e)=>Math.abs(r)+Math.abs(e),0);const n=this.timeLabels[this.selectedSerieIndex],h=this.FINAL_CONFIG.chart.tooltip.customFormat;return this.isFunction(h)&&this.functionReturnsString(()=>h({seriesIndex:this.selectedSerieIndex,datapoint:this.selectedSeries,series:this.absoluteDataset,bars:this.barSet,lines:this.lineSet,plots:this.plotSet,config:this.FINAL_CONFIG}))?h({seriesIndex:this.selectedSerieIndex,datapoint:this.selectedSeries,series:this.absoluteDataset,bars:this.barSet,lines:this.lineSet,plots:this.plotSet,config:this.FINAL_CONFIG}):(n&&n.text&&this.FINAL_CONFIG.chart.tooltip.showTimeLabel&&(l+=`<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${this.FINAL_CONFIG.chart.tooltip.borderColor}; width:100%">${n.text}</div>`),this.selectedSeries.forEach(r=>{if(this.isSafeValue(r.value)){let e="",F="";switch(this.icons[r.type]){case"bar":e=`<svg viewBox="0 0 40 40" height="14" width="14">${this.$slots.pattern?`<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${r.color}" />`:""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${this.$slots.pattern?`url(#pattern_${this.uniqueId}_${r.slotAbsoluteIndex}`:r.color}" /></svg>`;break;case"line":!r.shape||!["star","triangle","square","diamond","pentagon","hexagon"].includes(r.shape)?F=`<circle cx="10" cy="8" r="4" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${r.color}" />`:r.shape==="triangle"?F=`<path d="${d.createPolygonPath({plot:{x:10,y:8},radius:4,sides:3,rotation:.52}).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />`:r.shape==="square"?F=`<path d="${d.createPolygonPath({plot:{x:10,y:8},radius:4,sides:4,rotation:.8}).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />`:r.shape==="diamond"?F=`<path d="${d.createPolygonPath({plot:{x:10,y:8},radius:4,sides:4,rotation:0}).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />`:r.shape==="pentagon"?F=`<path d="${d.createPolygonPath({plot:{x:10,y:8},radius:4,sides:5,rotation:.95}).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />`:r.shape==="hexagon"?F=`<path d="${d.createPolygonPath({plot:{x:10,y:8},radius:4,sides:6,rotation:0}).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />`:r.shape==="star"&&(F=`<polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${r.color}" points="${d.createStar({plot:{x:10,y:8},radius:4})}" />`),e=`<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${r.color}" />${F}</svg>`;break;case"plot":if(!r.shape||!["star","triangle","square","diamond","pentagon","hexagon"].includes(r.shape)){e=`<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${r.color}" /></svg>`;break}if(r.shape==="star"){e=`<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${r.color}" points="${d.createStar({plot:{x:6,y:6},radius:5})}" /></svg>`;break}if(r.shape==="triangle"){e=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${d.createPolygonPath({plot:{x:6,y:6},radius:6,sides:3,rotation:.52}).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(r.shape==="square"){e=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${d.createPolygonPath({plot:{x:6,y:6},radius:6,sides:4,rotation:.8}).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(r.shape==="diamond"){e=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${d.createPolygonPath({plot:{x:6,y:6},radius:5,sides:4,rotation:0}).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(r.shape==="pentagon"){e=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${d.createPolygonPath({plot:{x:6,y:6},radius:5,sides:5,rotation:.95}).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(r.shape==="hexagon"){e=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${d.createPolygonPath({plot:{x:6,y:6},radius:5,sides:6,rotation:0}).path}" fill="${r.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}}l+=`<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${e}</div> ${r.name}: <b>${this.FINAL_CONFIG.chart.tooltip.showValue?this.applyDataLabel(r.type==="line"?this.FINAL_CONFIG.line.labels.formatter:r.type==="bar"?this.FINAL_CONFIG.bar.labels.formatter:this.FINAL_CONFIG.plot.labels.formatter,r.value,this.dataLabel({p:r.prefix,v:r.value,s:r.suffix,r:this.FINAL_CONFIG.chart.tooltip.roundingValue}),{datapoint:r}):""}</b> ${this.FINAL_CONFIG.chart.tooltip.showPercentage?`(${d.dataLabel({v:this.checkNaN(Math.abs(r.value)/s*100),s:"%",r:this.FINAL_CONFIG.chart.tooltip.roundingPercentage})})`:""}</div>`,this.FINAL_CONFIG.chart.comments.showInTooltip&&r.comments.length&&r.comments.slice(this.slicer.start,this.slicer.end)[this.selectedSerieIndex]&&(l+=`<div class="vue-data-ui-tooltip-comment" style="background:${r.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${r.color}">${r.comments.slice(this.slicer.start,this.slicer.end)[this.selectedSerieIndex]}</div>`)}}),`<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${this.FINAL_CONFIG.chart.tooltip.color}">${l}</div>`)},svg(){return{height:this.height,width:this.width}},yLabels(){return this.niceScale.ticks.map(l=>({y:l>=0?this.zero-this.drawingArea.height*this.ratioToMax(l):this.zero+this.drawingArea.height*this.ratioToMax(Math.abs(l)),value:l,prefix:this.FINAL_CONFIG.chart.labels.prefix,suffix:this.FINAL_CONFIG.chart.labels.suffix}))},zero(){return this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(this.relativeZero)}},mounted(){this.svgRef=this.$refs.svgRef,this.prepareChart(),this.setupSlicer(),document.addEventListener("mousemove",l=>{this.clientPosition={x:l.clientX,y:l.clientY}}),document.addEventListener("scroll",this.hideTags)},beforeUnmount(){document.removeEventListener("scroll",this.hideTags)},methods:{abbreviate:d.abbreviate,adaptColorToBackground:d.adaptColorToBackground,applyDataLabel:d.applyDataLabel,assignStackRatios:d.assignStackRatios,calcLinearProgression:d.calcLinearProgression,calculateNiceScaleWithExactExtremes:d.calculateNiceScaleWithExactExtremes,checkNaN:d.checkNaN,closestDecimal:d.closestDecimal,convertColorToHex:d.convertColorToHex,convertConfigColors:d.convertConfigColors,convertCustomPalette:d.convertCustomPalette,createCsvContent:d.createCsvContent,createSmoothPath:d.createSmoothPath,createStraightPath:d.createStraightPath,createTSpans:d.createTSpans,dataLabel:d.dataLabel,downloadCsv:d.downloadCsv,error:d.error,forceValidValue:d.forceValidValue,functionReturnsString:d.functionReturnsString,hasDeepProperty:d.hasDeepProperty,isFunction:d.isFunction,isSafeValue:d.isSafeValue,largestTriangleThreeBucketsArray:d.largestTriangleThreeBucketsArray,objectIsEmpty:d.objectIsEmpty,setOpacity:d.setOpacity,shiftHue:d.shiftHue,translateSize:d.translateSize,treeShake:d.treeShake,useMouse:p.useMouse,useNestedProp:B.useNestedProp,createUid:d.createUid,placeXYTag:d.placeXYTag,createSmoothPathWithCuts:d.createSmoothPathWithCuts,createStraightPathWithCuts:d.createStraightPathWithCuts,createAreaWithCuts:d.createAreaWithCuts,createIndividualAreaWithCuts:d.createIndividualAreaWithCuts,createSmoothAreaSegments:d.createSmoothAreaSegments,createIndividualArea:d.createIndividualArea,hideTags(){const l=document.querySelectorAll(".vue-ui-xy-tag");l.length&&Array.from(l).forEach(s=>s.style.opacity="0")},setTagRef(l,s,n,h,r){n&&(this.tagRefs[`${l}_${s}_${h}_${r}`]=n)},setUserOptionsVisibility(l=!1){this.showUserOptionsOnChartHover&&(this.userOptionsVisible=l)},toggleAnnotator(){this.isAnnotator=!this.isAnnotator},selectTimeLabel(l,s){const n=this.relativeDataset.map(h=>({shape:h.shape||null,name:h.name,color:h.color,type:h.type,value:h.absoluteValues.find((r,e)=>e===s),comments:h.comments||[],prefix:h.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:h.suffix||this.FINAL_CONFIG.chart.labels.suffix}));this.$emit("selectTimeLabel",{datapoint:n,absoluteIndex:l.absoluteIndex,label:l.text})},getHighlightAreaPosition(l){const s=this.drawingArea.left+this.drawingArea.width/this.maxSeries*(l.from-this.slicer.start),n=this.drawingArea.width/(this.slicer.end-this.slicer.start)*l.span<0?1e-5:this.drawingArea.width/(this.slicer.end-this.slicer.start)*l.span;return{x:s<this.drawingArea.left?this.drawingArea.left:s,width:n}},prepareConfig(){const l=d.useConfig().vue_ui_xy;if(!Object.keys(this.config||{}).length)return l;const s=this.useNestedProp({userConfig:this.config,defaultConfig:l});return this.config&&this.hasDeepProperty(this.config,"chart.highlightArea")&&(Array.isArray(this.config.chart.highlightArea)?s.chart.highlightArea=this.config.chart.highlightArea:s.chart.highlightArea=[this.config.chart.highlightArea]),this.config&&this.hasDeepProperty(this.config,"chart.grid.labels.yAxis.scaleMin")?s.chart.grid.labels.yAxis.scaleMin=this.config.chart.grid.labels.yAxis.scaleMin:s.chart.grid.labels.yAxis.scaleMin=null,this.config&&this.hasDeepProperty(this.config,"chart.grid.labels.yAxis.scaleMax")?s.chart.grid.labels.yAxis.scaleMax=this.config.chart.grid.labels.yAxis.scaleMax:s.chart.grid.labels.yAxis.scaleMax=null,this.config&&this.hasDeepProperty(this.config,"chart.zoom.startIndex")?s.chart.zoom.startIndex=this.config.chart.zoom.startIndex:s.chart.zoom.startIndex=null,this.config&&this.hasDeepProperty(this.config,"chart.zoom.endIndex")?s.chart.zoom.endIndex=this.config.chart.zoom.endIndex:s.chart.zoom.endIndex=null,this.config&&this.hasDeepProperty(this.config,"chart.grid.labels.yAxis.groupColor")?s.chart.grid.labels.yAxis.groupColor=this.config.chart.grid.labels.yAxis.groupColor:s.chart.grid.labels.yAxis.groupColor=null,s.theme?{...B.useNestedProp({userConfig:this.themes.vue_ui_xy[s.theme]||this.config,defaultConfig:s}),customPalette:this.themePalettes[s.theme]||this.palette}:s},prepareChart(){if(this.objectIsEmpty(this.dataset)?this.error({componentName:"VueUiXy",type:"dataset"}):this.dataset.forEach((l,s)=>{[null,void 0].includes(l.name)&&this.error({componentName:"VueUiXy",type:"datasetSerieAttribute",property:"name (string)",index:s})}),this.FINAL_CONFIG.showWarnings&&this.dataset.forEach(l=>{l.series.forEach((s,n)=>{this.isSafeValue(s)||console.warn(`VueUiXy has detected an unsafe value in your dataset:
2
2
  -----> The serie '${l.name}' contains the value '${s}' at index ${n}.
3
- '${s}' was converted to null to allow the chart to display.`)})}),this.showUserOptionsOnChartHover=this.FINAL_CONFIG.chart.userOptions.showOnChartHover,this.keepUserOptionState=this.FINAL_CONFIG.chart.userOptions.keepStateOnChartLeave,this.userOptionsVisible=!this.FINAL_CONFIG.chart.userOptions.showOnChartHover,this.mutableConfig={dataLabels:{show:!0},showTooltip:this.FINAL_CONFIG.chart.tooltip.show===!0,showTable:this.FINAL_CONFIG.showTable===!0,isStacked:this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked,useIndividualScale:this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale},this.FINAL_CONFIG.responsive){const s=this.$refs.chart.parentNode,{height:n,width:h}=s.getBoundingClientRect();let r=null,e=0;this.FINAL_CONFIG.chart.title.show&&(r=this.$refs.chartTitle,e=r.getBoundingClientRect().height);let F=null,m=0;this.FINAL_CONFIG.chart.zoom.show&&this.maxX>6&&this.isDataset&&(F=this.$refs.chartSlicer.$el,m=F.getBoundingClientRect().height);let u=null,x=0;this.FINAL_CONFIG.chart.legend.show&&(u=this.$refs.chartLegend,x=u.getBoundingClientRect().height);let L=0;this.$refs.source&&(L=this.$refs.source.getBoundingClientRect().height);let k=0;this.$refs.noTitle&&(k=this.$refs.noTitle.getBoundingClientRect().height),this.height=n-e-x-m-L-k,this.width=h,this.viewBox=`0 0 ${this.width<0?10:this.width} ${this.height<0?10:this.height}`,this.convertSizes(),new ResizeObserver(_=>{for(const f of _)this.$refs.chartTitle&&(e=this.$refs.chartTitle.getBoundingClientRect().height),this.$refs.chartSlicer&&this.$refs.chartSlicer.$el&&(m=this.$refs.chartSlicer.$el.getBoundingClientRect().height),this.$refs.chartLegend&&(x=this.$refs.chartLegend.getBoundingClientRect().height),this.$refs.source&&(L=this.$refs.source.getBoundingClientRect().height),requestAnimationFrame(()=>{this.height=f.contentBoxSize[0].blockSize-e-x-m-L-24,this.width=f.contentBoxSize[0].inlineSize,this.viewBox=`0 0 ${this.width<0?10:this.width} ${this.height<0?10:this.height}`,this.convertSizes()})}).observe(s)}else this.height=this.FINAL_CONFIG.chart.height,this.width=this.FINAL_CONFIG.chart.width,this.viewBox=`0 0 ${this.width} ${this.height}`,this.fontSizes.dataLabels=this.FINAL_CONFIG.chart.grid.labels.fontSize,this.fontSizes.yAxis=this.FINAL_CONFIG.chart.grid.labels.axis.fontSize,this.fontSizes.xAxis=this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.fontSize,this.fontSizes.plotLabels=this.FINAL_CONFIG.chart.labels.fontSize,this.plotRadii.plot=this.FINAL_CONFIG.plot.radius,this.plotRadii.line=this.FINAL_CONFIG.line.radius},selectMinimapIndex(l){this.selectedMinimapIndex=l},convertSizes(){this.fontSizes.dataLabels=this.translateSize({relator:this.height,adjuster:400,source:this.FINAL_CONFIG.chart.grid.labels.fontSize,threshold:10,fallback:10}),this.fontSizes.yAxis=this.translateSize({relator:this.width,adjuster:1e3,source:this.FINAL_CONFIG.chart.grid.labels.axis.fontSize,threshold:10,fallback:10}),this.fontSizes.xAxis=this.translateSize({relator:this.width,adjuster:1e3,source:this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.fontSize,threshold:10,fallback:10}),this.fontSizes.plotLabels=this.translateSize({relator:this.width,adjuster:800,source:this.FINAL_CONFIG.chart.labels.fontSize,threshold:10,fallback:10}),this.plotRadii.plot=this.translateSize({relator:this.width,adjuster:800,source:this.FINAL_CONFIG.plot.radius,threshold:1,fallback:1}),this.plotRadii.line=this.translateSize({relator:this.width,adjuster:800,source:this.FINAL_CONFIG.line.radius,threshold:1,fallback:1})},toggleStack(){this.mutableConfig.isStacked=!this.mutableConfig.isStacked,this.mutableConfig.isStacked?this.mutableConfig.useIndividualScale=!0:this.mutableConfig.useIndividualScale=this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale},toggleTable(){this.mutableConfig.showTable=!this.mutableConfig.showTable},toggleLabels(){this.mutableConfig.dataLabels.show=!this.mutableConfig.dataLabels.show},toggleTooltip(){this.mutableConfig.showTooltip=!this.mutableConfig.showTooltip},checkAutoScaleError(l){l.autoScaling&&(this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale||console.warn(`VueUiXy (datapoint: ${l.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`),this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked||console.warn(`VueUiXy (datapoint: ${l.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`))},createArea(l,s){if(!l[0])return[-10,-10,"",-10,-10];const n={x:l[0].x,y:s},h={x:l.at(-1).x,y:s},r=[];return l.forEach(e=>{r.push(`${e.x},${e.y} `)}),[n.x,n.y,...r,h.x,h.y].toString()},createStar:d.createStar,createPolygonPath:d.createPolygonPath,fillArray(l,s){let n=Array(l).fill(0);for(let h=0;h<s.length&&h<l;h+=1)n[h]=s[h];return n},async setupSlicer(){(this.FINAL_CONFIG.chart.zoom.startIndex!==null||this.FINAL_CONFIG.chart.zoom.endIndex!==null)&&this.$refs.chartSlicer?(this.FINAL_CONFIG.chart.zoom.startIndex!==null&&(await this.$nextTick(),await this.$nextTick(),this.$refs.chartSlicer.setStartValue(this.FINAL_CONFIG.chart.zoom.startIndex)),this.FINAL_CONFIG.chart.zoom.endIndex!==null&&(await this.$nextTick(),await this.$nextTick(),this.$refs.chartSlicer.setEndValue(this.validSlicerEnd(this.FINAL_CONFIG.chart.zoom.endIndex+1)))):(this.slicer={start:0,end:Math.max(...this.dataset.map(l=>this.largestTriangleThreeBucketsArray({data:l.series,threshold:this.FINAL_CONFIG.downsample.threshold}).length))},this.slicerStep+=1)},refreshSlicer(){this.setupSlicer()},validSlicerEnd(l){const s=Math.max(...this.dataset.map(n=>this.largestTriangleThreeBucketsArray({data:n.series,threshold:this.FINAL_CONFIG.downsample.threshold}).length));return l>s?s:l<0||this.FINAL_CONFIG.chart.zoom.startIndex!==null&&l<this.FINAL_CONFIG.chart.zoom.startIndex?this.FINAL_CONFIG.chart.zoom.startIndex!==null?this.FINAL_CONFIG.chart.zoom.startIndex+1:1:l},calcRectHeight(l){const s=![null,void 0].includes(this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin)&&this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin>0&&this.min>=0?this.drawingArea.bottom:this.zero;return l.value>=0?this.checkNaN(s-l.y<=0?1e-5:s-l.y):this.checkNaN(l.y-this.zero<=0?1e-5:l.y-this.zero)},calcIndividualHeight(l){return l.value>=0?this.checkNaN(l.zeroPosition-l.y<=0?1e-5:l.zeroPosition-l.y):this.checkNaN(l.y-l.zeroPosition<=0?1e-5:l.zeroPosition-l.y)},calcRectWidth(){return this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?this.slot.line-this.drawingArea.width/this.maxSeries*.1:this.slot.bar},calcRectX(l){return this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?l.x+this.drawingArea.width/this.maxSeries*.05:l.x+this.slot.bar/2},calcRectY(l){return l.value>=0?l.y:this.zero},calcIndividualRectY(l){return l.value>=0?l.y:[null,void 0,NaN,1/0,-1/0].includes(l.zeroPosition)?0:l.zeroPosition},canShowValue(l){return![null,void 0,NaN,1/0,-1/0].includes(l)},findClosestValue(l,s){let n=s[0],h=Math.abs(l-s[0]);for(let r=1;r<s.length;r+=1){const e=Math.abs(l-s[r]);e<h&&s[r]<l&&(n=s[r],h=e)}return n},ratioToMax(l){return l/(this.canShowValue(this.absoluteMax)?this.absoluteMax:1)},selectX(l){this.$emit("selectX",{dataset:this.relativeDataset.map(s=>({name:s.name,value:[null,void 0,NaN].includes(s.absoluteValues[l])?null:s.absoluteValues[l],color:s.color,type:s.type})),index:l,indexLabel:this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[l]})},getData(){return this.absoluteDataset.map(l=>({values:l.absoluteValues,color:l.color,name:l.name,type:l.type}))},segregate(l){if(this.segregatedSeries.includes(l.id))this.segregatedSeries=this.segregatedSeries.filter(s=>s!==l.id);else{if(this.segregatedSeries.length+1===this.safeDataset.length)return;this.segregatedSeries.push(l.id)}this.$emit("selectLegend",this.relativeDataset.map(s=>({name:s.name,values:s.absoluteValues,color:s.color,type:s.type}))),this.segregateStep+=1},toggleTooltipVisibility(l,s=null){this.isTooltip=l,l?this.selectedSerieIndex=s:this.selectedSerieIndex=null},toggleFullscreen(l){this.isFullscreen=l,this.step+=1},showSpinnerPdf(){this.isPrinting=!0},async generatePdf(){this.showSpinnerPdf(),clearTimeout(this.__to__),this.isPrinting=!0,this.__to__=setTimeout(async()=>{try{const{default:l}=await Promise.resolve().then(()=>require("./pdf-D_ScD9oB.cjs"));await l({domElement:document.getElementById(`vue-ui-xy_${this.uniqueId}`),fileName:this.FINAL_CONFIG.chart.title.text||"vue-ui-xy",options:this.FINAL_CONFIG.chart.userOptions.print})}catch(l){console.error("Error generating PDF:",l)}finally{this.isPrinting=!1}},100)},generateCsv(){const l=[[this.FINAL_CONFIG.chart.title.text],[this.FINAL_CONFIG.chart.title.subtitle.text],[""]],s=["",...this.table.head.map(e=>e.label)],n=this.table.body,h=l.concat([s]).concat(n),r=this.createCsvContent(h);this.downloadCsv({csvContent:r,title:this.FINAL_CONFIG.chart.title.text||"vue-ui-xy"})},showSpinnerImage(){this.isImaging=!0},async generateImage(){this.showSpinnerImage(),clearTimeout(this.__to__),this.isImaging=!0,this.__to__=setTimeout(async()=>{try{const{default:l}=await Promise.resolve().then(()=>require("./img-BFXiOvkr.cjs"));await l({domElement:document.getElementById(`vue-ui-xy_${this.uniqueId}`),fileName:this.FINAL_CONFIG.chart.title.text||"vue-ui-xy",format:"png",options:this.FINAL_CONFIG.chart.userOptions.print})}catch(l){console.error("Error generating image:",l)}finally{this.isImaging=!1}},100)}}},J=["id"],K={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%; background:transparent"},Q=["viewBox","aria-label"],j=["x","y","width","height"],$={key:1},ee={class:"vue-ui-xy-grid"},te=["stroke","x1","x2","y1","y2"],le=["stroke","x1","x2","y1","y2"],re={key:1},ae=["x1","x2","y1","y2","stroke"],ie=["x1","x2","y1","y2","stroke"],se=["x1","x2","y1","y2","stroke"],oe={key:3},ne=["x1","x2","y1","y2","stroke"],ce=["id"],he=["stop-color"],de=["stop-color"],ue=["stop-color"],ge=["id"],me=["stop-color"],fe=["stop-color"],Ne=["stop-color"],Ie=["id"],Fe=["stop-color"],xe=["stop-color"],be=["id"],ke=["stop-color"],_e=["stop-color"],ye=["id"],Le=["stop-color"],Ce=["stop-color"],Ae=["x","y","height","width","fill"],Se=["x","y","width"],we=["x","y","height","width","fill"],Oe=["x","y","height","width","rx","fill","stroke","stroke-width"],Ge=["x","y","height","width","rx","fill","stroke","stroke-width"],ve=["width","x","y"],pe={key:0},Be=["id"],Ve=["fill"],Ee=["x1","x2","y1","y2","stroke","marker-end"],ze=["x","y","font-size","fill"],Me=["stroke","x1","x2","y1","y2"],Te={key:2},Pe=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],Re=["x","y","width","height","stroke","stroke-width","stroke-linecap","stroke-linejoin","stroke-dasharray"],De={key:4},He=["x1","x2","y1","y2","stroke","stroke-width"],We=["fill","font-size","transform"],qe=["x1","x2","y1","y2","stroke"],Ye=["x","y","font-size","fill"],Xe=["x1","x2","y1","y2","stroke"],Ue=["x","y","font-size","fill"],Ze=["width","x","y"],Je={style:{width:"100%"}},Ke={key:0},Qe=["id"],je=["fill"],$e=["x1","x2","y1","y2","stroke","marker-end"],et=["x","y","font-size","fill"],tt=["d","stroke","stroke-width","stroke-dasharray"],lt=["d","stroke","stroke-width","stroke-dasharray"],rt={key:5},at={key:0},it=["d","fill"],st=["d","fill"],ot=["d","fill"],nt=["d","fill"],ct=["d","stroke","stroke-width","stroke-dasharray"],ht=["d","stroke","stroke-width","stroke-dasharray"],dt=["width","x","y"],ut={style:{width:"100%"}},gt={key:3},mt=["id"],ft=["fill"],Nt=["x1","x2","y1","y2","stroke","marker-end"],It=["x","y","font-size","fill"],Ft={key:6},xt=["x","y","font-size","fill"],bt=["x","y","font-size","fill","font-weight"],kt={key:7},_t=["x","y","font-size","fill"],yt={key:8},Lt=["x","y"],Ct=["innerHTML"],At=["x","y"],St=["innerHTML"],wt=["x1","x2","y1","y2","stroke"],Ot={key:9},Gt=["x","y","font-size","fill"],vt={key:10},pt=["x","y"],Bt=["innerHTML"],Vt=["x","y"],Et=["innerHTML"],zt=["x1","x2","y1","y2","stroke"],Mt=["x","y","font-size","fill","innerHTML"],Tt=["x","y","font-size","fill","innerHTML"],Pt=["x","y","font-size","fill","innerHTML"],Rt=["x","y","font-size","fill","innerHTML"],Dt=["id"],Ht=["stop-color"],Wt=["stop-color"],qt=["x","y","width","height","fill","onMouseenter"],Yt=["font-size","fill","transform"],Xt=["x","y","font-size","fill"],Ut={key:12},Zt=["text-anchor","font-size","fill","transform","onClick"],Jt=["x","y","height","width","onMouseenter","onClick"],Kt={key:13,style:{"pointer-events":"none"}},Qt=["x","y"],jt=["cx","cy","r","fill"],$t={key:5,class:"vue-data-ui-watermark"},el={class:"vue-ui-xy-tag-arrow",height:"20",viewBox:"0 0 10 20",style:{position:"absolute",right:"100%",top:"50%",transform:"translateY(-50%)"}},tl=["fill"],ll=["innerHTML"],rl={class:"vue-ui-xy-tag-arrow",height:"100%",viewBox:"0 0 10 20",style:{position:"absolute",left:"100%",top:"50%",transform:"translateY(-50%)"}},al=["fill"],il=["innerHTML"],sl={class:"vue-ui-xy-tag-arrow",height:"20",viewBox:"0 0 10 20",style:{position:"absolute",right:"100%",top:"50%",transform:"translateY(-50%)"}},ol=["fill"],nl=["innerHTML"],cl={class:"vue-ui-xy-tag-arrow",height:"100%",viewBox:"0 0 10 20",style:{position:"absolute",left:"100%",top:"50%",transform:"translateY(-50%)"}},hl=["fill"],dl=["innerHTML"],ul=["onClick"],gl={key:0,viewBox:"0 0 20 12",height:"14",width:"20"},ml=["stroke","fill"],fl={key:1,viewBox:"0 0 40 40",height:"14",width:"14"},Nl=["fill"],Il=["fill"],Fl={key:2,viewBox:"0 0 12 12",height:"14",width:"14"},xl={key:9,ref:"chartLegend"},bl={key:10,ref:"source",dir:"auto"},kl={style:{display:"flex","flex-direction":"row",gap:"6px","align-items":"center","padding-left":"6px"},"data-dom-to-png-ignore":""},_l=["innerHTML"];function yl(l,s,n,h,r,e){const F=t.resolveComponent("PenAndPaper"),m=t.resolveComponent("Title"),u=t.resolveComponent("UserOptions"),x=t.resolveComponent("PackageVersion"),L=t.resolveComponent("Shape"),k=t.resolveComponent("Skeleton"),C=t.resolveComponent("Slicer"),_=t.resolveComponent("Tooltip"),f=t.resolveComponent("BaseIcon"),b=t.resolveComponent("TableSparkline"),y=t.resolveComponent("DataTable"),A=t.resolveComponent("Accordion");return t.openBlock(),t.createElementBlock("div",{id:`vue-ui-xy_${r.uniqueId}`,class:t.normalizeClass(`vue-ui-xy ${r.isFullscreen?"vue-data-ui-wrapper-fullscreen":""} ${e.FINAL_CONFIG.useCssAnimation?"":"vue-ui-dna"}`),ref:"chart",style:t.normalizeStyle(`background:${e.FINAL_CONFIG.chart.backgroundColor}; color:${e.FINAL_CONFIG.chart.color};width:100%;font-family:${e.FINAL_CONFIG.chart.fontFamily};${e.FINAL_CONFIG.responsive?"height: 100%":""}`),onMouseenter:s[7]||(s[7]=()=>e.setUserOptionsVisibility(!0)),onMouseleave:s[8]||(s[8]=()=>e.setUserOptionsVisibility(!1))},[e.FINAL_CONFIG.chart.userOptions.buttons.annotator?(t.openBlock(),t.createBlock(F,{key:0,svgRef:r.svgRef,backgroundColor:e.FINAL_CONFIG.chart.backgroundColor,color:e.FINAL_CONFIG.chart.color,active:r.isAnnotator,onClose:e.toggleAnnotator},null,8,["svgRef","backgroundColor","color","active","onClose"])):t.createCommentVNode("",!0),e.hasOptionsNoTitle?(t.openBlock(),t.createElementBlock("div",K,null,512)):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.title.show?(t.openBlock(),t.createElementBlock("div",{key:2,ref:"chartTitle",class:"vue-ui-xy-title",style:t.normalizeStyle(`font-family:${e.FINAL_CONFIG.chart.fontFamily}`)},[(t.openBlock(),t.createBlock(m,{key:`title_${r.titleStep}`,config:{title:{cy:"xy-div-title",...e.FINAL_CONFIG.chart.title},subtitle:{cy:"xy-div-subtitle",...e.FINAL_CONFIG.chart.title.subtitle}}},null,8,["config"]))],4)):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.userOptions.show&&e.isDataset&&(r.keepUserOptionState||r.userOptionsVisible)?(t.openBlock(),t.createBlock(u,{ref:"defails",key:`user_options_${r.step}`,backgroundColor:e.FINAL_CONFIG.chart.backgroundColor,color:e.FINAL_CONFIG.chart.color,isPrinting:r.isPrinting,isImaging:r.isImaging,uid:r.uniqueId,hasTooltip:e.FINAL_CONFIG.chart.userOptions.buttons.tooltip&&e.FINAL_CONFIG.chart.tooltip.show,hasPdf:e.FINAL_CONFIG.chart.userOptions.buttons.pdf,hasXls:e.FINAL_CONFIG.chart.userOptions.buttons.csv,hasImg:e.FINAL_CONFIG.chart.userOptions.buttons.img,hasLabel:e.FINAL_CONFIG.chart.userOptions.buttons.labels,hasTable:e.FINAL_CONFIG.chart.userOptions.buttons.table,hasStack:n.dataset.length>1&&e.FINAL_CONFIG.chart.userOptions.buttons.stack,hasFullscreen:e.FINAL_CONFIG.chart.userOptions.buttons.fullscreen,isStacked:r.mutableConfig.isStacked,isFullscreen:r.isFullscreen,chartElement:l.$refs.chart,position:e.FINAL_CONFIG.chart.userOptions.position,isTooltip:r.mutableConfig.showTooltip,titles:{...e.FINAL_CONFIG.chart.userOptions.buttonTitles},hasAnnotator:e.FINAL_CONFIG.chart.userOptions.buttons.annotator,isAnnotation:r.isAnnotator,onToggleFullscreen:e.toggleFullscreen,onGeneratePdf:e.generatePdf,onGenerateCsv:e.generateCsv,onGenerateImage:e.generateImage,onToggleTable:e.toggleTable,onToggleLabels:e.toggleLabels,onToggleStack:e.toggleStack,onToggleTooltip:e.toggleTooltip,onToggleAnnotator:e.toggleAnnotator,style:t.normalizeStyle({visibility:r.keepUserOptionState?r.userOptionsVisible?"visible":"hidden":"visible"})},t.createSlots({_:2},[l.$slots.menuIcon?{name:"menuIcon",fn:t.withCtx(({isOpen:a,color:o})=>[t.renderSlot(l.$slots,"menuIcon",t.normalizeProps(t.guardReactiveProps({isOpen:a,color:o})),void 0,!0)]),key:"0"}:void 0,l.$slots.optionTooltip?{name:"optionTooltip",fn:t.withCtx(()=>[t.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:t.withCtx(()=>[t.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:t.withCtx(()=>[t.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:t.withCtx(()=>[t.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:t.withCtx(()=>[t.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"5"}:void 0,l.$slots.optionLabels?{name:"optionLabels",fn:t.withCtx(()=>[t.renderSlot(l.$slots,"optionLabels",{},void 0,!0)]),key:"6"}:void 0,l.$slots.optionStack?{name:"optionStack",fn:t.withCtx(()=>[t.renderSlot(l.$slots,"optionStack",{},void 0,!0)]),key:"7"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:t.withCtx(({toggleFullscreen:a,isFullscreen:o})=>[t.renderSlot(l.$slots,"optionFullscreen",t.normalizeProps(t.guardReactiveProps({toggleFullscreen:a,isFullscreen:o})),void 0,!0)]),key:"8"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:t.withCtx(({toggleAnnotator:a,isAnnotator:o})=>[t.renderSlot(l.$slots,"optionAnnotator",t.normalizeProps(t.guardReactiveProps({toggleAnnotator:a,isAnnotator:o})),void 0,!0)]),key:"9"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasLabel","hasTable","hasStack","hasFullscreen","isStacked","isFullscreen","chartElement","position","isTooltip","titles","hasAnnotator","isAnnotation","onToggleFullscreen","onGeneratePdf","onGenerateCsv","onGenerateImage","onToggleTable","onToggleLabels","onToggleStack","onToggleTooltip","onToggleAnnotator","style"])):t.createCommentVNode("",!0),e.isDataset?(t.openBlock(),t.createElementBlock("svg",{key:4,ref:"svgRef",xmlns:"http://www.w3.org/2000/svg",class:t.normalizeClass([{"vue-data-ui-fullscreen--on":r.isFullscreen,"vue-data-ui-fulscreen--off":!r.isFullscreen},"vue-ui-xy-svg"]),width:"100%",viewBox:r.viewBox,style:t.normalizeStyle(`background: transparent; color:${e.FINAL_CONFIG.chart.color}; font-family:${e.FINAL_CONFIG.chart.fontFamily}`),"aria-label":e.chartAriaLabel,role:"img","aria-live":"polite"},[t.createVNode(x),l.$slots["chart-background"]?(t.openBlock(),t.createElementBlock("foreignObject",{key:0,x:e.drawingArea.left+e.xPadding<0?0:e.drawingArea.left+e.xPadding,y:e.drawingArea.top,width:e.drawingArea.width-(e.FINAL_CONFIG.chart.grid.position==="middle"?0:e.drawingArea.width/e.maxSeries)<0?0:e.drawingArea.width-(e.FINAL_CONFIG.chart.grid.position==="middle"?0:e.drawingArea.width/e.maxSeries),height:e.drawingArea.height<0?0:e.drawingArea.height,style:{pointerEvents:"none"}},[t.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,j)):t.createCommentVNode("",!0),e.maxSeries>0?(t.openBlock(),t.createElementBlock("g",$,[t.createElementVNode("g",ee,[e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline?(t.openBlock(),t.createElementBlock("line",{key:0,stroke:e.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1",x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.right-e.xPadding,y1:e.forceValidValue(e.drawingArea.bottom),y2:e.forceValidValue(e.drawingArea.bottom),"stroke-linecap":"round"},null,8,te)):t.createCommentVNode("",!0),r.mutableConfig.useIndividualScale?e.FINAL_CONFIG.chart.grid.showHorizontalLines?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:2},t.renderList(e.allScales,a=>(t.openBlock(),t.createElementBlock("g",null,[a.id===r.selectedScale&&a.yLabels.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(a.yLabels,o=>(t.openBlock(),t.createElementBlock("line",{x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.right-e.xPadding,y1:e.forceValidValue(o.y),y2:e.forceValidValue(o.y),stroke:a.color,"stroke-width":.5,"stroke-linecap":"round"},null,8,ie))),256)):a.yLabels.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(a.yLabels,o=>(t.openBlock(),t.createElementBlock("line",{x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.right-e.xPadding,y1:e.forceValidValue(o.y),y2:e.forceValidValue(o.y),stroke:e.FINAL_CONFIG.chart.grid.stroke,"stroke-width":.5,"stroke-linecap":"round"},null,8,se))),256)):t.createCommentVNode("",!0)]))),256)):t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline?(t.openBlock(),t.createElementBlock("line",{key:0,stroke:e.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1",x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.left+e.xPadding,y1:e.forceValidValue(e.drawingArea.top),y2:e.forceValidValue(e.drawingArea.bottom),"stroke-linecap":"round"},null,8,le)):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.grid.showHorizontalLines?(t.openBlock(),t.createElementBlock("g",re,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.yLabels,a=>(t.openBlock(),t.createElementBlock("line",{x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.right-e.xPadding,y1:e.forceValidValue(a.y),y2:e.forceValidValue(a.y),stroke:e.FINAL_CONFIG.chart.grid.stroke,"stroke-width":.5,"stroke-linecap":"round"},null,8,ae))),256))])):t.createCommentVNode("",!0)],64)),e.FINAL_CONFIG.chart.grid.showVerticalLines?(t.openBlock(),t.createElementBlock("g",oe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.maxSeries+(e.FINAL_CONFIG.chart.grid.position==="middle"?1:0),(a,o)=>(t.openBlock(),t.createElementBlock("line",{key:`grid_vertical_line_${o}`,x1:e.drawingArea.width/e.maxSeries*o+e.drawingArea.left+e.xPadding,x2:e.drawingArea.width/e.maxSeries*o+e.drawingArea.left+e.xPadding,y1:e.forceValidValue(e.drawingArea.top),y2:e.forceValidValue(e.drawingArea.bottom),"stroke-width":"0.5",stroke:e.FINAL_CONFIG.chart.grid.stroke},null,8,ne))),128))])):t.createCommentVNode("",!0)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.barSet,(a,o)=>(t.openBlock(),t.createElementBlock("defs",{key:`def_rect_${o}`},[t.createElementVNode("linearGradient",{id:`rectGradient_pos_${o}_${r.uniqueId}`,x2:"0%",y2:"100%"},[t.createElementVNode("stop",{offset:"0%","stop-color":a.color},null,8,he),t.createElementVNode("stop",{offset:"62%","stop-color":`${e.shiftHue(a.color,.02)}`},null,8,de),t.createElementVNode("stop",{offset:"100%","stop-color":`${e.shiftHue(a.color,.05)}`},null,8,ue)],8,ce),t.createElementVNode("linearGradient",{id:`rectGradient_neg_${o}_${r.uniqueId}`,x2:"0%",y2:"100%"},[t.createElementVNode("stop",{offset:"0%","stop-color":`${e.shiftHue(a.color,.05)}`},null,8,me),t.createElementVNode("stop",{offset:"38%","stop-color":`${e.shiftHue(a.color,.02)}`},null,8,fe),t.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,Ne)],8,ge)]))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.plotSet,(a,o)=>(t.openBlock(),t.createElementBlock("defs",{key:`def_plot_${o}`},[t.createElementVNode("radialGradient",{id:`plotGradient_${o}_${r.uniqueId}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[t.createElementVNode("stop",{offset:"0%","stop-color":`${e.shiftHue(a.color,.05)}`},null,8,Fe),t.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,xe)],8,Ie)]))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.lineSet,(a,o)=>(t.openBlock(),t.createElementBlock("defs",{key:`def_line_${o}`},[t.createElementVNode("radialGradient",{id:`lineGradient_${o}_${r.uniqueId}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[t.createElementVNode("stop",{offset:"0%","stop-color":`${e.shiftHue(a.color,.05)}`},null,8,ke),t.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,_e)],8,be),t.createElementVNode("linearGradient",{id:`areaGradient_${o}_${r.uniqueId}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[t.createElementVNode("stop",{offset:"0%","stop-color":`${e.setOpacity(e.shiftHue(a.color,.03),e.FINAL_CONFIG.line.area.opacity)}`},null,8,Le),t.createElementVNode("stop",{offset:"100%","stop-color":`${e.setOpacity(a.color,e.FINAL_CONFIG.line.area.opacity)}`},null,8,Ce)],8,ye)]))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.highlightAreas,a=>(t.openBlock(),t.createElementBlock("g",null,[a.show?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(a.span,(o,i)=>(t.openBlock(),t.createElementBlock("g",null,[t.createElementVNode("rect",{style:t.normalizeStyle({transition:"none",opacity:a.from+i>=r.slicer.start&&a.from+i<=r.slicer.end-1?1:0}),x:e.drawingArea.left+e.drawingArea.width/e.maxSeries*(a.from+i-r.slicer.start),y:e.drawingArea.top,height:e.drawingArea.height<0?10:e.drawingArea.height,width:e.drawingArea.width/e.maxSeries<0?1e-5:e.drawingArea.width/e.maxSeries,fill:e.setOpacity(a.color,a.opacity)},null,12,Ae),a.caption.text&&i===0?(t.openBlock(),t.createElementBlock("foreignObject",{key:0,x:e.drawingArea.left+e.drawingArea.width/e.maxSeries*(a.from+i-r.slicer.start)-(a.caption.width==="auto"?0:a.caption.width/2-e.drawingArea.width/e.maxSeries*a.span/2),y:e.drawingArea.top+a.caption.offsetY,style:t.normalizeStyle({overflow:"visible",opacity:a.to>=r.slicer.start&&a.from<r.slicer.end?1:0}),height:"1",width:a.caption.width==="auto"?e.drawingArea.width/e.maxSeries*a.span:a.caption.width},[t.createElementVNode("div",{style:t.normalizeStyle(`padding:${a.caption.padding}px;text-align:${a.caption.textAlign};font-size:${a.caption.fontSize}px;color:${a.caption.color};font-weight:${a.caption.bold?"bold":"normal"}`)},t.toDisplayString(a.caption.text),5)],12,Se)):t.createCommentVNode("",!0)]))),256)):t.createCommentVNode("",!0)]))),256)),t.createElementVNode("g",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.maxSeries,(a,o)=>(t.openBlock(),t.createElementBlock("g",{key:`tooltip_trap_highlighter_${o}`},[t.createElementVNode("rect",{x:e.drawingArea.left+e.drawingArea.width/e.maxSeries*o,y:e.drawingArea.top,height:e.drawingArea.height<0?10:e.drawingArea.height,width:e.drawingArea.width/e.maxSeries<0?1e-5:e.drawingArea.width/e.maxSeries,fill:[r.selectedMinimapIndex,r.selectedSerieIndex,r.selectedRowIndex].includes(o)?e.setOpacity(e.FINAL_CONFIG.chart.highlighter.color,e.FINAL_CONFIG.chart.highlighter.opacity):"transparent"},null,8,we)]))),128))]),e.barSet.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.barSet,(a,o)=>(t.openBlock(),t.createElementBlock("g",{key:`serie_bar_${o}`,class:t.normalizeClass(`serie_bar_${o}`),style:t.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.plots,(i,c)=>(t.openBlock(),t.createElementBlock("g",{key:`bar_plot_${o}_${c}`},[e.canShowValue(i.value)?(t.openBlock(),t.createElementBlock("rect",{key:0,x:e.calcRectX(i),y:r.mutableConfig.useIndividualScale?e.calcIndividualRectY(i):e.calcRectY(i),height:r.mutableConfig.useIndividualScale?Math.abs(e.calcIndividualHeight(i)):Math.abs(e.calcRectHeight(i)),width:e.calcRectWidth()-(r.mutableConfig.useIndividualScale&&r.mutableConfig.isStacked?0:e.barPeriodGap)<0?1e-5:e.calcRectWidth()-(r.mutableConfig.useIndividualScale&&r.mutableConfig.isStacked?0:e.barPeriodGap),rx:e.FINAL_CONFIG.bar.borderRadius,fill:e.FINAL_CONFIG.bar.useGradient?i.value>=0?`url(#rectGradient_pos_${o}_${r.uniqueId})`:`url(#rectGradient_neg_${o}_${r.uniqueId})`:a.color,stroke:e.FINAL_CONFIG.bar.border.useSerieColor?a.color:e.FINAL_CONFIG.bar.border.stroke,"stroke-width":e.FINAL_CONFIG.bar.border.strokeWidth},null,8,Oe)):t.createCommentVNode("",!0),e.canShowValue(i.value)&&l.$slots.pattern?(t.openBlock(),t.createElementBlock("rect",{key:1,x:e.calcRectX(i),y:r.mutableConfig.useIndividualScale?e.calcIndividualRectY(i):e.calcRectY(i),height:r.mutableConfig.useIndividualScale?Math.abs(e.calcIndividualHeight(i)):Math.abs(e.calcRectHeight(i)),width:e.calcRectWidth()-(r.mutableConfig.useIndividualScale&&r.mutableConfig.isStacked?0:e.barPeriodGap)<0?1e-5:e.calcRectWidth()-(r.mutableConfig.useIndividualScale&&r.mutableConfig.isStacked?0:e.barPeriodGap),rx:e.FINAL_CONFIG.bar.borderRadius,fill:`url(#pattern_${r.uniqueId}_${a.slotAbsoluteIndex})`,stroke:e.FINAL_CONFIG.bar.border.useSerieColor?a.color:e.FINAL_CONFIG.bar.border.stroke,"stroke-width":e.FINAL_CONFIG.bar.border.strokeWidth},null,8,Ge)):t.createCommentVNode("",!0),i.comment&&e.FINAL_CONFIG.chart.comments.show?(t.openBlock(),t.createElementBlock("foreignObject",{key:2,style:{overflow:"visible"},height:"12",width:(e.calcRectWidth()-(r.mutableConfig.useIndividualScale&&r.mutableConfig.isStacked?0:e.barPeriodGap)<0?1e-5:e.calcRectWidth()-(r.mutableConfig.useIndividualScale&&r.mutableConfig.isStacked?0:e.barPeriodGap)/2)+e.FINAL_CONFIG.chart.comments.width,x:e.calcRectX(i)-e.FINAL_CONFIG.chart.comments.width/2+e.FINAL_CONFIG.chart.comments.offsetX,y:e.checkNaN(i.y)+e.FINAL_CONFIG.chart.comments.offsetY+6},[t.renderSlot(l.$slots,"plot-comment",{plot:{...i,color:a.color,seriesIndex:o,datapointIndex:c}},void 0,!0)],8,ve)):t.createCommentVNode("",!0)]))),128)),Object.hasOwn(a,"useProgression")&&a.useProgression===!0&&!isNaN(e.calcLinearProgression(a.plots).trend)?(t.openBlock(),t.createElementBlock("g",pe,[t.createElementVNode("defs",null,[t.createElementVNode("marker",{id:`bar_arrow_${o}`,markerWidth:7,markerHeight:7,refX:"0",refY:7/2,orient:"auto"},[t.createElementVNode("polygon",{points:`0 0, 7 ${7/2}, 0 7`,fill:a.color},null,8,Ve)],8,Be)]),a.plots.length>1?(t.openBlock(),t.createElementBlock("line",{key:0,x1:e.calcLinearProgression(a.plots).x1+e.calcRectWidth(),x2:e.calcLinearProgression(a.plots).x2+e.calcRectWidth(),y1:e.forceValidValue(e.calcLinearProgression(a.plots).y1),y2:e.forceValidValue(e.calcLinearProgression(a.plots).y2),"stroke-width":1,stroke:a.color,"stroke-dasharray":2,"marker-end":`url(#bar_arrow_${o})`},null,8,Ee)):t.createCommentVNode("",!0),a.plots.length>1?(t.openBlock(),t.createElementBlock("text",{key:1,"text-anchor":"middle",x:e.calcLinearProgression(a.plots).x2+e.calcRectWidth(),y:e.calcLinearProgression(a.plots).y2-6,"font-size":r.fontSizes.plotLabels,fill:a.color},t.toDisplayString(e.dataLabel({v:e.calcLinearProgression(a.plots).trend*100,s:"%",r:2})),9,ze)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],6))),128)):t.createCommentVNode("",!0),!r.mutableConfig.useIndividualScale&&e.FINAL_CONFIG.chart.grid.labels.zeroLine.show?(t.openBlock(),t.createElementBlock("line",{key:1,stroke:e.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1",x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.right-e.xPadding,y1:e.forceValidValue(e.zero),y2:e.forceValidValue(e.zero),"stroke-linecap":"round"},null,8,Me)):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.highlighter.useLine&&(![null,void 0].includes(r.selectedSerieIndex)||![null,void 0].includes(r.selectedMinimapIndex))?(t.openBlock(),t.createElementBlock("g",Te,[t.createElementVNode("line",{x1:e.drawingArea.left+e.drawingArea.width/e.maxSeries*((r.selectedSerieIndex!==null?r.selectedSerieIndex:0)||(r.selectedMinimapIndex!==null?r.selectedMinimapIndex:0))+e.drawingArea.width/e.maxSeries/2,x2:e.drawingArea.left+e.drawingArea.width/e.maxSeries*((r.selectedSerieIndex!==null?r.selectedSerieIndex:0)||(r.selectedMinimapIndex!==null?r.selectedMinimapIndex:0))+e.drawingArea.width/e.maxSeries/2,y1:e.forceValidValue(e.drawingArea.top),y2:e.forceValidValue(e.drawingArea.bottom),stroke:e.FINAL_CONFIG.chart.highlighter.color,"stroke-width":e.FINAL_CONFIG.chart.highlighter.lineWidth,"stroke-dasharray":e.FINAL_CONFIG.chart.highlighter.lineDasharray,"stroke-linecap":"round",style:{transition:"none !important",animation:"none !important","pointer-events":"none"}},null,8,Pe)])):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.grid.frame.show?(t.openBlock(),t.createElementBlock("rect",{key:3,style:{pointerEvents:"none",transition:"none"},x:e.drawingArea.left+e.xPadding<0?0:e.drawingArea.left+e.xPadding,y:e.drawingArea.top,width:e.drawingArea.width-(e.FINAL_CONFIG.chart.grid.position==="middle"?0:e.drawingArea.width/e.maxSeries)<0?0:e.drawingArea.width-(e.FINAL_CONFIG.chart.grid.position==="middle"?0:e.drawingArea.width/e.maxSeries),height:e.drawingArea.height<0?0:e.drawingArea.height,fill:"transparent",stroke:e.FINAL_CONFIG.chart.grid.frame.stroke,"stroke-width":e.FINAL_CONFIG.chart.grid.frame.strokeWidth,"stroke-linecap":e.FINAL_CONFIG.chart.grid.frame.strokeLinecap,"stroke-linejoin":e.FINAL_CONFIG.chart.grid.frame.strokeLinejoin,"stroke-dasharray":e.FINAL_CONFIG.chart.grid.frame.strokeDasharray},null,8,Re)):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.grid.labels.show?(t.openBlock(),t.createElementBlock("g",De,[r.mutableConfig.useIndividualScale?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.allScales,a=>(t.openBlock(),t.createElementBlock("g",null,[t.createElementVNode("line",{x1:a.x+e.xPadding,x2:a.x+e.xPadding,y1:r.mutableConfig.isStacked?e.forceValidValue(e.drawingArea.bottom-a.yOffset-a.individualHeight):e.forceValidValue(e.drawingArea.top),y2:r.mutableConfig.isStacked?e.forceValidValue(e.drawingArea.bottom-a.yOffset):e.forceValidValue(e.drawingArea.bottom),stroke:a.color,"stroke-width":e.FINAL_CONFIG.chart.grid.stroke,"stroke-linecap":"round",style:t.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.groupId?1:.3:1};transition:opacity 0.2s ease-in-out`)},null,12,He)]))),256)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.allScales,a=>(t.openBlock(),t.createElementBlock("g",{style:t.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.groupId?1:.3:1};transition:opacity 0.2s ease-in-out`)},[t.createElementVNode("text",{fill:a.color,"font-size":r.fontSizes.dataLabels,"text-anchor":"middle",transform:`translate(${a.x-e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth+5+e.xPadding+e.FINAL_CONFIG.chart.grid.labels.yAxis.scaleLabelOffsetX}, ${r.mutableConfig.isStacked?e.drawingArea.bottom-a.yOffset-a.individualHeight/2:e.drawingArea.top+e.drawingArea.height/2}) rotate(-90)`},t.toDisplayString(a.name)+" "+t.toDisplayString(a.scaleLabel&&a.unique&&a.scaleLabel!==a.id?`- ${a.scaleLabel}`:""),9,We),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.yLabels,(o,i)=>(t.openBlock(),t.createElementBlock("line",{x1:a.x-3+e.xPadding,x2:a.x+e.xPadding,y1:e.forceValidValue(o.y),y2:e.forceValidValue(o.y),stroke:a.color,"stroke-width":1,"stroke-linecap":"round"},null,8,qe))),256)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.yLabels,(o,i)=>(t.openBlock(),t.createElementBlock("text",{x:a.x-5+e.xPadding+e.FINAL_CONFIG.chart.grid.labels.yAxis.scaleValueOffsetX,y:e.forceValidValue(o.y)+r.fontSizes.dataLabels/3,"font-size":r.fontSizes.dataLabels,"text-anchor":"end",fill:a.color},t.toDisplayString(e.applyDataLabel(e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,o.value,e.dataLabel({p:o.prefix,v:o.value,s:o.suffix,r:1}),{datapoint:o.datapoint,seriesIndex:i})),9,Ye))),256))],4))),256))],64)):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.yLabels,(a,o)=>(t.openBlock(),t.createElementBlock("g",{key:`yLabel_${o}`},[e.canShowValue(a)&&a.value>=e.niceScale.min&&a.value<=e.niceScale.max?(t.openBlock(),t.createElementBlock("line",{key:0,x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.left-5+e.xPadding,y1:e.forceValidValue(a.y),y2:e.forceValidValue(a.y),stroke:e.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1","stroke-linecap":"round"},null,8,Xe)):t.createCommentVNode("",!0),a.value>=e.niceScale.min&&a.value<=e.niceScale.max?(t.openBlock(),t.createElementBlock("text",{key:1,x:e.drawingArea.left-7+e.xPadding,y:e.checkNaN(a.y+r.fontSizes.dataLabels/3),"font-size":r.fontSizes.dataLabels,"text-anchor":"end",fill:e.FINAL_CONFIG.chart.grid.labels.color},t.toDisplayString(e.canShowValue(a.value)?e.applyDataLabel(e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,a.value,e.dataLabel({p:a.prefix,v:a.value,s:a.suffix,r:1})):""),9,Ue)):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.plotSet,(a,o)=>(t.openBlock(),t.createElementBlock("g",{key:`serie_plot_${o}`,class:t.normalizeClass(`serie_plot_${o}`),style:t.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.plots,(i,c)=>(t.openBlock(),t.createElementBlock("g",{key:`circle_plot_${o}_${c}`},[i&&e.canShowValue(i.value)?(t.openBlock(),t.createBlock(L,{key:0,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(a.shape)?a.shape:"circle",color:e.FINAL_CONFIG.plot.useGradient?`url(#plotGradient_${o}_${r.uniqueId})`:e.FINAL_CONFIG.plot.dot.useSerieColor?a.color:e.FINAL_CONFIG.plot.dot.fill,plot:{x:e.checkNaN(i.x),y:e.checkNaN(i.y)},radius:r.selectedSerieIndex!==null&&r.selectedSerieIndex===c||r.selectedMinimapIndex!==null&&r.selectedMinimapIndex===c?(r.plotRadii.plot||6)*1.5:r.plotRadii.plot||6,stroke:e.FINAL_CONFIG.plot.dot.useSerieColor?e.FINAL_CONFIG.chart.backgroundColor:a.color,strokeWidth:e.FINAL_CONFIG.plot.dot.strokeWidth},null,8,["shape","color","plot","radius","stroke","strokeWidth"])):t.createCommentVNode("",!0),i.comment&&e.FINAL_CONFIG.chart.comments.show?(t.openBlock(),t.createElementBlock("foreignObject",{key:1,style:{overflow:"visible"},height:"12",width:e.FINAL_CONFIG.chart.comments.width,x:i.x-e.FINAL_CONFIG.chart.comments.width/2+e.FINAL_CONFIG.chart.comments.offsetX,y:i.y+e.FINAL_CONFIG.chart.comments.offsetY+6},[t.createElementVNode("div",Je,[t.renderSlot(l.$slots,"plot-comment",{plot:{...i,color:a.color,seriesIndex:o,datapointIndex:c}},void 0,!0)])],8,Ze)):t.createCommentVNode("",!0)]))),128)),Object.hasOwn(a,"useProgression")&&a.useProgression===!0&&!isNaN(e.calcLinearProgression(a.plots).trend)?(t.openBlock(),t.createElementBlock("g",Ke,[t.createElementVNode("defs",null,[t.createElementVNode("marker",{id:`plot_arrow_${o}`,markerWidth:7,markerHeight:7,refX:"0",refY:7/2,orient:"auto"},[t.createElementVNode("polygon",{points:`0 0, 7 ${7/2}, 0 7`,fill:a.color},null,8,je)],8,Qe)]),a.plots.length>1?(t.openBlock(),t.createElementBlock("line",{key:0,x1:e.calcLinearProgression(a.plots).x1,x2:e.calcLinearProgression(a.plots).x2,y1:e.forceValidValue(e.calcLinearProgression(a.plots).y1),y2:e.forceValidValue(e.calcLinearProgression(a.plots).y2),"stroke-width":1,stroke:a.color,"stroke-dasharray":2,"marker-end":`url(#plot_arrow_${o})`},null,8,$e)):t.createCommentVNode("",!0),a.plots.length>1?(t.openBlock(),t.createElementBlock("text",{key:1,"text-anchor":"middle",x:e.calcLinearProgression(a.plots).x2,y:e.calcLinearProgression(a.plots).y2-6,"font-size":r.fontSizes.plotLabels,fill:a.color},t.toDisplayString(e.dataLabel({v:e.calcLinearProgression(a.plots).trend*100,s:"%",r:2})),9,et)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],6))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.lineSet,(a,o)=>(t.openBlock(),t.createElementBlock("g",{key:`serie_line_${o}`,class:t.normalizeClass(`serie_line_${o}`),style:t.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},[a.smooth&&a.plots.length>1?(t.openBlock(),t.createElementBlock("path",{key:0,d:`M${a.curve}`,stroke:e.FINAL_CONFIG.chart.backgroundColor,"stroke-width":e.FINAL_CONFIG.line.strokeWidth+1,"stroke-dasharray":a.dashed?e.FINAL_CONFIG.line.strokeWidth*2:0,fill:"none"},null,8,tt)):a.plots.length>1?(t.openBlock(),t.createElementBlock("path",{key:1,d:`M${a.straight}`,stroke:e.FINAL_CONFIG.chart.backgroundColor,"stroke-width":e.FINAL_CONFIG.line.strokeWidth+1,"stroke-dasharray":a.dashed?e.FINAL_CONFIG.line.strokeWidth*2:0,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},null,8,lt)):t.createCommentVNode("",!0)],6))),128)),l.$slots.pattern?(t.openBlock(),t.createElementBlock("defs",rt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.safeDataset,(a,o)=>t.renderSlot(l.$slots,"pattern",t.mergeProps({key:`serie_pattern_slot_${o}`},{ref_for:!0},{...a,seriesIndex:a.slotAbsoluteIndex,patternId:`pattern_${r.uniqueId}_${o}`}),void 0,!0)),128))])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.lineSet,(a,o)=>(t.openBlock(),t.createElementBlock("g",{key:`serie_line_${o}`,class:t.normalizeClass(`serie_line_${o}`),style:t.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},[a.useArea&&a.plots.length>1?(t.openBlock(),t.createElementBlock("g",at,[a.smooth?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(a.curveAreas,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:c},[t.createElementVNode("path",{d:i,fill:e.FINAL_CONFIG.line.area.useGradient?`url(#areaGradient_${o}_${r.uniqueId})`:e.setOpacity(a.color,e.FINAL_CONFIG.line.area.opacity)},null,8,it),l.$slots.pattern?(t.openBlock(),t.createElementBlock("path",{key:0,d:i,fill:`url(#pattern_${r.uniqueId}_${a.slotAbsoluteIndex})`},null,8,st)):t.createCommentVNode("",!0)],64))),128)):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(a.area.split(";"),(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:c},[t.createElementVNode("path",{d:`M${i}Z`,fill:e.FINAL_CONFIG.line.area.useGradient?`url(#areaGradient_${o}_${r.uniqueId})`:e.setOpacity(a.color,e.FINAL_CONFIG.line.area.opacity)},null,8,ot),l.$slots.pattern?(t.openBlock(),t.createElementBlock("path",{key:0,d:`M${i}Z`,fill:`url(#pattern_${r.uniqueId}_${a.slotAbsoluteIndex})`},null,8,nt)):t.createCommentVNode("",!0)],64))),128))])):t.createCommentVNode("",!0),a.smooth&&a.plots.length>1?(t.openBlock(),t.createElementBlock("path",{key:1,d:`M${a.curve}`,stroke:a.color,"stroke-width":e.FINAL_CONFIG.line.strokeWidth,"stroke-dasharray":a.dashed?e.FINAL_CONFIG.line.strokeWidth*2:0,fill:"none","stroke-linecap":"round"},null,8,ct)):a.plots.length>1?(t.openBlock(),t.createElementBlock("path",{key:2,d:`M${a.straight}`,stroke:a.color,"stroke-width":e.FINAL_CONFIG.line.strokeWidth,"stroke-dasharray":a.dashed?e.FINAL_CONFIG.line.strokeWidth*2:0,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},null,8,ht)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.plots,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`circle_line_${o}_${c}`},[!e.optimize.linePlot&&i&&e.canShowValue(i.value)||e.optimize.linePlot&&i&&e.canShowValue(i.value)&&(r.selectedSerieIndex!==null&&r.selectedSerieIndex===c||r.selectedMinimapIndex!==null&&r.selectedMinimapIndex===c)?(t.openBlock(),t.createBlock(L,{key:0,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(a.shape)?a.shape:"circle",color:e.FINAL_CONFIG.line.useGradient?`url(#lineGradient_${o}_${r.uniqueId})`:e.FINAL_CONFIG.line.dot.useSerieColor?a.color:e.FINAL_CONFIG.line.dot.fill,plot:{x:e.checkNaN(i.x),y:e.checkNaN(i.y)},radius:r.selectedSerieIndex!==null&&r.selectedSerieIndex===c||r.selectedMinimapIndex!==null&&r.selectedMinimapIndex===c?(r.plotRadii.line||6)*1.5:r.plotRadii.line||6,stroke:e.FINAL_CONFIG.line.dot.useSerieColor?e.FINAL_CONFIG.chart.backgroundColor:a.color,strokeWidth:e.FINAL_CONFIG.line.dot.strokeWidth},null,8,["shape","color","plot","radius","stroke","strokeWidth"])):t.createCommentVNode("",!0),i.comment&&e.FINAL_CONFIG.chart.comments.show?(t.openBlock(),t.createElementBlock("foreignObject",{key:1,style:{overflow:"visible"},height:"12",width:e.FINAL_CONFIG.chart.comments.width,x:i.x-e.FINAL_CONFIG.chart.comments.width/2+e.FINAL_CONFIG.chart.comments.offsetX,y:i.y+e.FINAL_CONFIG.chart.comments.offsetY+6},[t.createElementVNode("div",ut,[t.renderSlot(l.$slots,"plot-comment",{plot:{...i,color:a.color,seriesIndex:o,datapointIndex:c}},void 0,!0)])],8,dt)):t.createCommentVNode("",!0)],64))),128)),Object.hasOwn(a,"useProgression")&&a.useProgression===!0&&!isNaN(e.calcLinearProgression(a.plots).trend)?(t.openBlock(),t.createElementBlock("g",gt,[t.createElementVNode("defs",null,[t.createElementVNode("marker",{id:`line_arrow_${o}`,markerWidth:7,markerHeight:7,refX:"0",refY:7/2,orient:"auto"},[t.createElementVNode("polygon",{points:`0 0, 7 ${7/2}, 0 7`,fill:a.color},null,8,ft)],8,mt)]),a.plots.length>1?(t.openBlock(),t.createElementBlock("line",{key:0,x1:e.calcLinearProgression(a.plots).x1,x2:e.calcLinearProgression(a.plots).x2,y1:e.forceValidValue(e.calcLinearProgression(a.plots).y1),y2:e.forceValidValue(e.calcLinearProgression(a.plots).y2),"stroke-width":1,stroke:a.color,"stroke-dasharray":2,"marker-end":`url(#line_arrow_${o})`},null,8,Nt)):t.createCommentVNode("",!0),a.plots.length>1?(t.openBlock(),t.createElementBlock("text",{key:1,"text-anchor":"middle",x:e.calcLinearProgression(a.plots).x2,y:e.calcLinearProgression(a.plots).y2-6,"font-size":r.fontSizes.plotLabels,fill:a.color},t.toDisplayString(e.dataLabel({v:e.calcLinearProgression(a.plots).trend*100,s:"%",r:2})),9,It)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],6))),128)),(e.FINAL_CONFIG.bar.labels.show||e.FINAL_CONFIG.bar.serieName.show)&&r.mutableConfig.dataLabels.show?(t.openBlock(),t.createElementBlock("g",Ft,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.barSet,(a,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`xLabel_bar_${o}`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.plots,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`xLabel_bar_${o}_${c}`},[i&&(!Object.hasOwn(a,"dataLabels")||a.dataLabels===!0||r.selectedSerieIndex!==null&&r.selectedSerieIndex===c||r.selectedMinimapIndex!==null&&r.selectedMinimapIndex===c)&&e.FINAL_CONFIG.bar.labels.show?(t.openBlock(),t.createElementBlock("text",{key:0,x:r.mutableConfig.useIndividualScale&&r.mutableConfig.isStacked?i.x+e.slot.line/2:e.calcRectX(i)+e.calcRectWidth()/2-e.barPeriodGap/2,y:e.checkNaN(i.y)+(i.value>=0?e.FINAL_CONFIG.bar.labels.offsetY:-e.FINAL_CONFIG.bar.labels.offsetY*3),"text-anchor":"middle","font-size":r.fontSizes.plotLabels,fill:e.FINAL_CONFIG.bar.labels.color,style:t.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},t.toDisplayString(e.canShowValue(i.value)?e.applyDataLabel(e.FINAL_CONFIG.bar.labels.formatter,i.value,e.dataLabel({p:a.prefix||e.FINAL_CONFIG.chart.labels.prefix,v:i.value,s:a.suffix||e.FINAL_CONFIG.chart.labels.suffix,r:e.FINAL_CONFIG.bar.labels.rounding}),{datapoint:i,serie:a}):""),13,xt)):t.createCommentVNode("",!0),i&&e.FINAL_CONFIG.bar.serieName.show?(t.openBlock(),t.createElementBlock("text",{key:1,x:r.mutableConfig.useIndividualScale&&r.mutableConfig.isStacked?i.x+e.slot.line/2:i.x+e.calcRectWidth()*1.1,y:i.y+(i.value>0?e.FINAL_CONFIG.bar.serieName.offsetY:-e.FINAL_CONFIG.bar.serieName.offsetY*3),"text-anchor":"middle","font-size":r.fontSizes.plotLabels,fill:e.FINAL_CONFIG.bar.serieName.useSerieColor?a.color:e.FINAL_CONFIG.bar.serieName.color,"font-weight":e.FINAL_CONFIG.bar.serieName.bold?"bold":"normal",style:t.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},t.toDisplayString(e.FINAL_CONFIG.bar.serieName.useAbbreviation?e.abbreviate({source:a.name,length:e.FINAL_CONFIG.bar.serieName.abbreviationSize}):a.name),13,bt)):t.createCommentVNode("",!0)],64))),128))],64))),128))])):t.createCommentVNode("",!0),e.FINAL_CONFIG.plot.labels.show&&r.mutableConfig.dataLabels.show?(t.openBlock(),t.createElementBlock("g",kt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.plotSet,(a,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`xLabel_plot_${o}`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.plots,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`xLabel_plot_${o}_${c}`},[i&&!Object.hasOwn(a,"dataLabels")||a.dataLabels===!0||r.selectedSerieIndex!==null&&r.selectedSerieIndex===c||r.selectedMinimapIndex!==null&&r.selectedMinimapIndex===c?(t.openBlock(),t.createElementBlock("text",{key:0,x:i.x,y:i.y+e.FINAL_CONFIG.plot.labels.offsetY,"text-anchor":"middle","font-size":r.fontSizes.plotLabels,fill:e.FINAL_CONFIG.plot.labels.color,style:t.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},t.toDisplayString(e.canShowValue(i.value)?e.applyDataLabel(e.FINAL_CONFIG.plot.labels.formatter,i.value,e.dataLabel({p:a.prefix||e.FINAL_CONFIG.chart.labels.prefix,v:i.value,s:a.suffix||e.FINAL_CONFIG.chart.labels.suffix,r:e.FINAL_CONFIG.plot.labels.rounding}),{datapoint:i,serie:a}):""),13,_t)):t.createCommentVNode("",!0)],64))),128))],64))),128))])):(t.openBlock(),t.createElementBlock("g",yt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.plotSet,(a,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`xLabel_plot_${o}`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.plots,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`xLabel_plot_${o}_${c}`},[e.FINAL_CONFIG.plot.tag.followValue?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[[r.selectedMinimapIndex,r.selectedSerieIndex,r.selectedRowIndex].includes(c)&&a.useTag?(t.openBlock(),t.createElementBlock("line",{key:0,class:"vue-ui-xy-tag-plot",x1:e.drawingArea.left,x2:e.drawingArea.right,y1:i.y,y2:i.y,"stroke-width":1,"stroke-linecap":"round","stroke-dasharray":"2",stroke:a.color},null,8,wt)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i&&c===0&&a.useTag&&a.useTag==="start"?(t.openBlock(),t.createElementBlock("foreignObject",{key:0,x:i.x,y:i.y-20,height:24,width:"150",style:t.normalizeStyle(`overflow: visible; opacity:${r.selectedScale?r.selectedScale===a.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},[t.createElementVNode("div",{style:t.normalizeStyle(`padding: 3px; background:${e.setOpacity(a.color,80)};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${r.fontSizes.plotLabels}px;border-radius: 2px;`),innerHTML:e.applyDataLabel(e.FINAL_CONFIG.plot.tag.formatter,i.value,a.name,{datapoint:i,seriesIndex:c,serieName:a.name})},null,12,Ct)],12,Lt)):t.createCommentVNode("",!0),i&&c===a.plots.length-1&&a.useTag&&a.useTag==="end"?(t.openBlock(),t.createElementBlock("foreignObject",{key:1,x:i.x-a.name.length*(r.fontSizes.plotLabels/2),y:i.y-20,height:24,width:"150",style:t.normalizeStyle(`overflow: visible; opacity:${r.selectedScale?r.selectedScale===a.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},[t.createElementVNode("div",{style:t.normalizeStyle(`padding: 3px; background:${e.setOpacity(a.color,80)};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${r.fontSizes.plotLabels}px;border-radius: 2px;`),innerHTML:e.applyDataLabel(e.FINAL_CONFIG.plot.tag.formatter,i.value,a.name,{datapoint:i,seriesIndex:c,serieName:a.name})},null,12,St)],12,At)):t.createCommentVNode("",!0)],64))],64))),128))],64))),128))])),e.FINAL_CONFIG.line.labels.show&&r.mutableConfig.dataLabels.show?(t.openBlock(),t.createElementBlock("g",Ot,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.lineSet,(a,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`xLabel_line_${o}`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.plots,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`xLabel_line_${o}_${c}`},[i&&!Object.hasOwn(a,"dataLabels")||a.dataLabels===!0||r.selectedSerieIndex!==null&&r.selectedSerieIndex===c||r.selectedMinimapIndex!==null&&r.selectedMinimapIndex===c?(t.openBlock(),t.createElementBlock("text",{key:0,x:i.x,y:i.y+(i.value>=0?e.FINAL_CONFIG.line.labels.offsetY:-e.FINAL_CONFIG.line.labels.offsetY*3),"text-anchor":"middle","font-size":r.fontSizes.plotLabels,fill:e.FINAL_CONFIG.line.labels.color,style:t.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},t.toDisplayString(e.canShowValue(i.value)?e.applyDataLabel(e.FINAL_CONFIG.line.labels.formatter,i.value,e.dataLabel({p:a.prefix||e.FINAL_CONFIG.chart.labels.prefix,v:i.value,s:a.suffix||e.FINAL_CONFIG.chart.labels.suffix,r:e.FINAL_CONFIG.line.labels.rounding}),{datapoint:i,serie:a}):""),13,Gt)):t.createCommentVNode("",!0)],64))),128))],64))),128))])):(t.openBlock(),t.createElementBlock("g",vt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.lineSet,(a,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`xLabel_line_${o}`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.plots,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`xLabel_line_${o}_${c}`},[e.FINAL_CONFIG.line.tag.followValue?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[[r.selectedMinimapIndex,r.selectedSerieIndex,r.selectedRowIndex].includes(c)&&a.useTag?(t.openBlock(),t.createElementBlock("line",{key:0,class:"vue-ui-xy-tag-line",x1:e.drawingArea.left,x2:e.drawingArea.right,y1:i.y,y2:i.y,"stroke-width":1,"stroke-linecap":"round","stroke-dasharray":"2",stroke:a.color},null,8,zt)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i&&c===0&&a.useTag&&a.useTag==="start"?(t.openBlock(),t.createElementBlock("foreignObject",{key:0,x:i.x,y:i.y-20,height:24,width:"150",style:t.normalizeStyle(`overflow: visible; opacity:${r.selectedScale?r.selectedScale===a.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},[t.createElementVNode("div",{style:t.normalizeStyle(`padding: 3px; background:${e.setOpacity(a.color,80)};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${r.fontSizes.plotLabels}px;border-radius: 2px;`),innerHTML:e.applyDataLabel(e.FINAL_CONFIG.line.tag.formatter,i.value,a.name,{datapoint:i,seriesIndex:c,serieName:a.name})},null,12,Bt)],12,pt)):t.createCommentVNode("",!0),i&&c===a.plots.length-1&&a.useTag&&a.useTag==="end"?(t.openBlock(),t.createElementBlock("foreignObject",{key:1,x:i.x,y:i.y-20,height:24,width:"150",style:t.normalizeStyle(`overflow: visible; opacity:${r.selectedScale?r.selectedScale===a.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},[t.createElementVNode("div",{style:t.normalizeStyle(`padding: 3px; background:${e.setOpacity(a.color,80)};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${r.fontSizes.plotLabels}px;border-radius: 2px;`),innerHTML:e.applyDataLabel(e.FINAL_CONFIG.line.tag.formatter,i.value,a.name,{datapoint:i,seriesIndex:c,serieName:a.name})},null,12,Et)],12,Vt)):t.createCommentVNode("",!0)],64))],64))),128))],64))),128))])),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.lineSet,(a,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`xLabel_line_${o}`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.plots,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`xLabel_line_${o}_${c}`},[i&&c===0&&a.showSerieName&&a.showSerieName==="start"?(t.openBlock(),t.createElementBlock("text",{key:0,x:i.x-r.fontSizes.plotLabels,y:i.y,"font-size":r.fontSizes.plotLabels,"text-anchor":"end",fill:a.color,innerHTML:e.createTSpans({content:a.name,fontSize:r.fontSizes.plotLabels,fill:a.color,x:i.x-r.fontSizes.plotLabels,y:i.y,maxWords:2}),style:t.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},null,12,Mt)):t.createCommentVNode("",!0),i&&c===a.plots.length-1&&a.showSerieName&&a.showSerieName==="end"?(t.openBlock(),t.createElementBlock("text",{key:1,x:i.x+r.fontSizes.plotLabels,y:i.y,"font-size":r.fontSizes.plotLabels,"text-anchor":"start",fill:a.color,innerHTML:e.createTSpans({content:a.name,fontSize:r.fontSizes.plotLabels,fill:a.color,x:i.x+r.fontSizes.plotLabels,y:i.y,maxWords:2}),style:t.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},null,12,Tt)):t.createCommentVNode("",!0)],64))),128))],64))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.plotSet,(a,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`xLabel_plot_${o}`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.plots,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`xLabel_plot_${o}_${c}`},[i&&c===0&&a.showSerieName&&a.showSerieName==="start"?(t.openBlock(),t.createElementBlock("text",{key:0,x:i.x-r.fontSizes.plotLabels,y:i.y,"font-size":r.fontSizes.plotLabels,"text-anchor":"end",fill:a.color,innerHTML:e.createTSpans({content:a.name,fontSize:r.fontSizes.plotLabels,fill:a.color,x:i.x-r.fontSizes.plotLabels,y:i.y,maxWords:2}),style:t.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},null,12,Pt)):t.createCommentVNode("",!0),i&&c===a.plots.length-1&&a.showSerieName&&a.showSerieName==="end"?(t.openBlock(),t.createElementBlock("text",{key:1,x:i.x+r.fontSizes.plotLabels,y:i.y,"font-size":r.fontSizes.plotLabels,"text-anchor":"start",fill:a.color,innerHTML:e.createTSpans({content:a.name,fontSize:r.fontSizes.plotLabels,fill:a.color,x:i.x+r.fontSizes.plotLabels,y:i.y,maxWords:2}),style:t.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},null,12,Rt)):t.createCommentVNode("",!0)],64))),128))],64))),128)),r.mutableConfig.useIndividualScale&&!r.mutableConfig.isStacked?(t.openBlock(),t.createElementBlock(t.Fragment,{key:11},[t.createElementVNode("defs",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.allScales,(a,o)=>(t.openBlock(),t.createElementBlock("linearGradient",{id:`individual_scale_gradient_${r.uniqueId}_${o}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[t.createElementVNode("stop",{offset:"0%","stop-color":e.FINAL_CONFIG.chart.backgroundColor,"stop-opacity":"0"},null,8,Ht),t.createElementVNode("stop",{offset:"100%","stop-color":a.color,"stop-opacity":"0.2"},null,8,Wt)],8,Dt))),256))]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.allScales,(a,o)=>(t.openBlock(),t.createElementBlock("rect",{x:a.x-e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth+e.xPadding,y:e.drawingArea.top,width:e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,height:e.drawingArea.height<0?10:e.drawingArea.height,fill:r.selectedScale===a.groupId?`url(#individual_scale_gradient_${r.uniqueId}_${o})`:"transparent",onMouseenter:i=>r.selectedScale=a.groupId,onMouseleave:s[0]||(s[0]=i=>r.selectedScale=null)},null,40,qt))),256))],64)):t.createCommentVNode("",!0),t.createElementVNode("g",null,[e.FINAL_CONFIG.chart.grid.labels.axis.yLabel&&!r.mutableConfig.useIndividualScale?(t.openBlock(),t.createElementBlock("text",{key:0,"font-size":r.fontSizes.yAxis,fill:e.FINAL_CONFIG.chart.grid.labels.color,transform:`translate(${r.fontSizes.yAxis+e.FINAL_CONFIG.chart.grid.labels.axis.yLabelOffsetX}, ${e.drawingArea.top+e.drawingArea.height/2}) rotate(-90)`,"text-anchor":"middle",style:{transition:"none"}},t.toDisplayString(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel),9,Yt)):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.grid.labels.axis.xLabel?(t.openBlock(),t.createElementBlock("text",{key:1,"text-anchor":"middle",x:r.width/2,y:e.drawingArea.bottom+r.fontSizes.yAxis+r.fontSizes.xAxis*1.3+e.FINAL_CONFIG.chart.grid.labels.axis.xLabelOffsetY,"font-size":r.fontSizes.yAxis,fill:e.FINAL_CONFIG.chart.grid.labels.color},t.toDisplayString(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel),9,Xt)):t.createCommentVNode("",!0)]),s[9]||(s[9]=t.createTextVNode('v-for="(label, i) in timeLabels" :key="`time_label_${i}`" ')),e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show?(t.openBlock(),t.createElementBlock("g",Ut,[l.$slots["time-label"]?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.timeLabels,(a,o)=>t.renderSlot(l.$slots,"time-label",t.mergeProps({key:`time_label_${o}`,ref_for:!0},{x:e.drawingArea.left+e.drawingArea.width/e.maxSeries*o+e.drawingArea.width/e.maxSeries/2,y:e.drawingArea.bottom+r.fontSizes.xAxis*1.3+e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset,fontSize:r.fontSizes.xAxis,fill:e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,transform:`translate(${e.drawingArea.left+e.drawingArea.width/e.maxSeries*o+e.drawingArea.width/e.maxSeries/2}, ${e.drawingArea.bottom+r.fontSizes.xAxis*1.3+e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`,absoluteIndex:a.absoluteIndex,content:a.text,textAnchor:e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation>0?"start":e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation<0?"end":"middle",show:a&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||a&&e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&(o===0||o===e.timeLabels.length-1)&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||a&&e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&r.selectedSerieIndex===o&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||a&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo&&o%Math.floor((this.slicer.end-this.slicer.start)/e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo)===0}),void 0,!0)),128)):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.timeLabels,(a,o)=>(t.openBlock(),t.createElementBlock("g",{key:`time_label_${o}`},[a&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||a&&e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&(o===0||o===e.timeLabels.length-1)&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||a&&e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&r.selectedSerieIndex===o&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||a&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo&&o%Math.floor((this.slicer.end-this.slicer.start)/e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo)===0?(t.openBlock(),t.createElementBlock("text",{key:0,"text-anchor":e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation>0?"start":e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation<0?"end":"middle","font-size":r.fontSizes.xAxis,fill:e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,transform:`translate(${e.drawingArea.left+e.drawingArea.width/e.maxSeries*o+e.drawingArea.width/e.maxSeries/2}, ${e.drawingArea.bottom+r.fontSizes.xAxis*1.3+e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`,style:{cursor:"pointer"},onClick:()=>e.selectTimeLabel(a,o)},t.toDisplayString(a.text||""),9,Zt)):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),t.createElementVNode("g",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.maxSeries,(a,o)=>(t.openBlock(),t.createElementBlock("rect",{key:`tooltip_trap_${o}`,x:e.drawingArea.left+e.drawingArea.width/e.maxSeries*o,y:e.drawingArea.top,height:e.drawingArea.height<0?10:e.drawingArea.height,width:e.drawingArea.width/e.maxSeries<0?1e-5:e.drawingArea.width/e.maxSeries,fill:"transparent",onMouseenter:i=>e.toggleTooltipVisibility(!0,o),onMouseleave:s[1]||(s[1]=i=>e.toggleTooltipVisibility(!1)),onClick:i=>e.selectX(o)},null,40,Jt))),128))]),e.FINAL_CONFIG.chart.timeTag.show&&(![null,void 0].includes(r.selectedSerieIndex)||![null,void 0].includes(r.selectedMinimapIndex))?(t.openBlock(),t.createElementBlock("g",Kt,[(t.openBlock(),t.createElementBlock("foreignObject",{x:e.drawingArea.left+e.drawingArea.width/e.maxSeries*((r.selectedSerieIndex!==null?r.selectedSerieIndex:0)||(r.selectedMinimapIndex!==null?r.selectedMinimapIndex:0))-100+e.drawingArea.width/e.maxSeries/2,y:e.drawingArea.bottom,width:"200",height:"40",style:{overflow:"visible !important"}},[t.createElementVNode("div",{class:"vue-ui-xy-time-tag",style:t.normalizeStyle(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${e.FINAL_CONFIG.chart.timeTag.backgroundColor};color:${e.FINAL_CONFIG.chart.timeTag.color};font-size:${e.FINAL_CONFIG.chart.timeTag.fontSize}px`)},t.toDisplayString(e.timeLabels[(r.selectedSerieIndex!==null?r.selectedSerieIndex:0)||(r.selectedMinimapIndex!==null?r.selectedMinimapIndex:0)].text||(r.selectedSerieIndex!==null?r.selectedSerieIndex:0)||(r.selectedMinimapIndex!==null?r.selectedMinimapIndex:0)),5)],8,Qt)),t.createElementVNode("circle",{cx:e.drawingArea.left+e.drawingArea.width/e.maxSeries*((r.selectedSerieIndex!==null?r.selectedSerieIndex:0)||(r.selectedMinimapIndex!==null?r.selectedMinimapIndex:0))+e.drawingArea.width/e.maxSeries/2,cy:e.drawingArea.bottom,r:e.FINAL_CONFIG.chart.timeTag.circleMarker.radius,fill:e.FINAL_CONFIG.chart.timeTag.circleMarker.color},null,8,jt)])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.renderSlot(l.$slots,"svg",{svg:e.svg},void 0,!0)],14,Q)):t.createCommentVNode("",!0),l.$slots.watermark?(t.openBlock(),t.createElementBlock("div",$t,[t.renderSlot(l.$slots,"watermark",t.normalizeProps(t.guardReactiveProps({isPrinting:r.isPrinting||r.isImaging})),void 0,!0)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.lineSet,(a,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`tag_line_${o}`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.plots,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`tag_line_${o}_${c}`},[[r.selectedMinimapIndex,r.selectedSerieIndex,r.selectedRowIndex].includes(c)&&a.useTag&&a.useTag==="end"&&e.FINAL_CONFIG.line.tag.followValue?(t.openBlock(),t.createElementBlock("div",{key:0,ref_for:!0,ref:I=>e.setTagRef(o,c,I,"right","line"),class:"vue-ui-xy-tag","data-tag":"right",style:t.normalizeStyle({position:"fixed",top:e.placeXYTag({svgElement:r.svgRef,x:e.drawingArea.right+e.FINAL_CONFIG.line.tag.fontSize/1.5,y:i.y,element:r.tagRefs[`${o}_${c}_right_line`],position:"right"}).top+"px",left:e.placeXYTag({svgElement:r.svgRef,x:e.drawingArea.right+e.FINAL_CONFIG.line.tag.fontSize/1.5,y:i.y,element:r.tagRefs[`${o}_${c}_right_line`],position:"right"}).left+"px",height:"fit-content",width:"fit-content",background:a.color,color:e.adaptColorToBackground(a.color),padding:"0 6px",fontSize:e.FINAL_CONFIG.line.tag.fontSize+"px",opacity:1})},[(t.openBlock(),t.createElementBlock("svg",el,[t.createElementVNode("path",{d:"M 0,10 10,0 10,20 Z",fill:a.color,stroke:"none"},null,8,tl)])),t.createElementVNode("div",{class:"vue-ui-xy-tag-content",innerHTML:e.applyDataLabel(e.FINAL_CONFIG.line.tag.formatter,i.value,a.name,{datapoint:i,seriesIndex:c,serieName:a.name})},null,8,ll)],4)):t.createCommentVNode("",!0),[r.selectedMinimapIndex,r.selectedSerieIndex,r.selectedRowIndex].includes(c)&&a.useTag&&a.useTag==="start"&&e.FINAL_CONFIG.line.tag.followValue?(t.openBlock(),t.createElementBlock("div",{key:1,ref_for:!0,ref:I=>e.setTagRef(o,c,I,"left","line"),class:"vue-ui-xy-tag","data-tag":"left",style:t.normalizeStyle({position:"fixed",top:e.placeXYTag({svgElement:r.svgRef,x:e.drawingArea.left-e.FINAL_CONFIG.line.tag.fontSize/1.5,y:i.y,element:r.tagRefs[`${o}_${c}_left_line`],position:"left"}).top+"px",left:e.placeXYTag({svgElement:r.svgRef,x:e.drawingArea.left-e.FINAL_CONFIG.line.tag.fontSize/1.5,y:i.y,element:r.tagRefs[`${o}_${c}_left_line`],position:"left"}).left+"px",height:"fit-content",width:"fit-content",background:a.color,color:e.adaptColorToBackground(a.color),padding:"0 6px",fontSize:e.FINAL_CONFIG.line.tag.fontSize+"px",opacity:1})},[(t.openBlock(),t.createElementBlock("svg",rl,[t.createElementVNode("path",{d:"M 0,0 10,10 0,20 Z",fill:a.color,stroke:"none"},null,8,al)])),t.createElementVNode("div",{class:"vue-ui-xy-tag-content",innerHTML:e.applyDataLabel(e.FINAL_CONFIG.line.tag.formatter,i.value,a.name,{datapoint:i,seriesIndex:c,serieName:a.name})},null,8,il)],4)):t.createCommentVNode("",!0)],64))),128))],64))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.plotSet,(a,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`tag_plot_${o}`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.plots,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`tag_plot_${o}_${c}`},[[r.selectedMinimapIndex,r.selectedSerieIndex,r.selectedRowIndex].includes(c)&&a.useTag&&a.useTag==="end"&&e.FINAL_CONFIG.plot.tag.followValue?(t.openBlock(),t.createElementBlock("div",{key:0,ref_for:!0,ref:I=>e.setTagRef(o,c,I,"right","plot"),class:"vue-ui-xy-tag","data-tag":"right",style:t.normalizeStyle({position:"fixed",top:e.placeXYTag({svgElement:r.svgRef,x:e.drawingArea.right+e.FINAL_CONFIG.plot.tag.fontSize/1.5,y:i.y,element:r.tagRefs[`${o}_${c}_right_plot`],position:"right"}).top+"px",left:e.placeXYTag({svgElement:r.svgRef,x:e.drawingArea.right+e.FINAL_CONFIG.plot.tag.fontSize/1.5,y:i.y,element:r.tagRefs[`${o}_${c}_right_plot`],position:"right"}).left+"px",height:"fit-content",width:"fit-content",background:a.color,color:e.adaptColorToBackground(a.color),padding:"0 6px",fontSize:e.FINAL_CONFIG.plot.tag.fontSize+"px",opacity:1})},[(t.openBlock(),t.createElementBlock("svg",sl,[t.createElementVNode("path",{d:"M 0,10 10,0 10,20 Z",fill:a.color,stroke:"none"},null,8,ol)])),t.createElementVNode("div",{class:"vue-ui-xy-tag-content",innerHTML:e.applyDataLabel(e.FINAL_CONFIG.plot.tag.formatter,i.value,a.name,{datapoint:i,seriesIndex:c,serieName:a.name})},null,8,nl)],4)):t.createCommentVNode("",!0),[r.selectedMinimapIndex,r.selectedSerieIndex,r.selectedRowIndex].includes(c)&&a.useTag&&a.useTag==="start"&&e.FINAL_CONFIG.plot.tag.followValue?(t.openBlock(),t.createElementBlock("div",{key:1,ref_for:!0,ref:I=>e.setTagRef(o,c,I,"left","plot"),class:"vue-ui-xy-tag","data-tag":"left",style:t.normalizeStyle({position:"fixed",top:e.placeXYTag({svgElement:r.svgRef,x:e.drawingArea.left-e.FINAL_CONFIG.plot.tag.fontSize/1.5,y:i.y,element:r.tagRefs[`${o}_${c}_left_plot`],position:"left"}).top+"px",left:e.placeXYTag({svgElement:r.svgRef,x:e.drawingArea.left-e.FINAL_CONFIG.plot.tag.fontSize/1.5,y:i.y,element:r.tagRefs[`${o}_${c}_left_plot`],position:"left"}).left+"px",height:"fit-content",width:"fit-content",background:a.color,color:e.adaptColorToBackground(a.color),padding:"0 6px",fontSize:e.FINAL_CONFIG.plot.tag.fontSize+"px",opacity:1})},[(t.openBlock(),t.createElementBlock("svg",cl,[t.createElementVNode("path",{d:"M 0,0 10,10 0,20 Z",fill:a.color,stroke:"none"},null,8,hl)])),t.createElementVNode("div",{class:"vue-ui-xy-tag-content",innerHTML:e.applyDataLabel(e.FINAL_CONFIG.plot.tag.formatter,i.value,a.name,{datapoint:i,seriesIndex:c,serieName:a.name})},null,8,dl)],4)):t.createCommentVNode("",!0)],64))),128))],64))),128)),e.isDataset?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(k,{key:6,config:{type:"line",style:{backgroundColor:e.FINAL_CONFIG.chart.backgroundColor,line:{axis:{color:e.FINAL_CONFIG.chart.grid.stroke},path:{color:e.FINAL_CONFIG.chart.grid.stroke,strokeWidth:.5}}}}},null,8,["config"])),e.FINAL_CONFIG.chart.zoom.show&&r.maxX>6&&e.isDataset?(t.openBlock(),t.createBlock(C,{ref:"chartSlicer",key:`slicer_${r.slicerStep}`,background:e.FINAL_CONFIG.chart.zoom.color,fontSize:e.FINAL_CONFIG.chart.zoom.fontSize,useResetSlot:e.FINAL_CONFIG.chart.zoom.useResetSlot,labelLeft:e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[r.slicer.start],labelRight:e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[r.slicer.end-1],textColor:e.FINAL_CONFIG.chart.color,inputColor:e.FINAL_CONFIG.chart.zoom.color,selectColor:e.FINAL_CONFIG.chart.zoom.highlightColor,borderColor:e.FINAL_CONFIG.chart.backgroundColor,minimap:e.minimap,smoothMinimap:e.FINAL_CONFIG.chart.zoom.minimap.smooth,minimapSelectedColor:e.FINAL_CONFIG.chart.zoom.minimap.selectedColor,minimapSelectionRadius:e.FINAL_CONFIG.chart.zoom.minimap.selectionRadius,minimapLineColor:e.FINAL_CONFIG.chart.zoom.minimap.lineColor,minimapSelectedColorOpacity:e.FINAL_CONFIG.chart.zoom.minimap.selectedColorOpacity,minimapSelectedIndex:r.selectedSerieIndex,minimapIndicatorColor:e.FINAL_CONFIG.chart.zoom.minimap.indicatorColor,verticalHandles:e.FINAL_CONFIG.chart.zoom.minimap.verticalHandles,max:r.maxX,min:0,valueStart:r.slicer.start,valueEnd:r.slicer.end,start:r.slicer.start,"onUpdate:start":s[2]||(s[2]=a=>r.slicer.start=a),end:r.slicer.end,"onUpdate:end":s[3]||(s[3]=a=>r.slicer.end=a),refreshStartPoint:e.FINAL_CONFIG.chart.zoom.startIndex!==null?e.FINAL_CONFIG.chart.zoom.startIndex:0,refreshEndPoint:e.FINAL_CONFIG.chart.zoom.endIndex!==null?e.FINAL_CONFIG.chart.zoom.endIndex+1:Math.max(...n.dataset.map(a=>e.largestTriangleThreeBucketsArray({data:a.series,threshold:e.FINAL_CONFIG.downsample.threshold}).length)),enableRangeHandles:e.FINAL_CONFIG.chart.zoom.enableRangeHandles,enableSelectionDrag:e.FINAL_CONFIG.chart.zoom.enableSelectionDrag,onReset:e.refreshSlicer,onTrapMouse:e.selectMinimapIndex},{"reset-action":t.withCtx(({reset:a})=>[t.renderSlot(l.$slots,"reset-action",t.normalizeProps(t.guardReactiveProps({reset:a})),void 0,!0)]),_:3},8,["background","fontSize","useResetSlot","labelLeft","labelRight","textColor","inputColor","selectColor","borderColor","minimap","smoothMinimap","minimapSelectedColor","minimapSelectionRadius","minimapLineColor","minimapSelectedColorOpacity","minimapSelectedIndex","minimapIndicatorColor","verticalHandles","max","valueStart","valueEnd","start","end","refreshStartPoint","refreshEndPoint","enableRangeHandles","enableSelectionDrag","onReset","onTrapMouse"])):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.legend.show?(t.openBlock(),t.createElementBlock("div",{key:8,ref:"chartLegend",class:"vue-ui-xy-legend",style:t.normalizeStyle(`font-size:${e.FINAL_CONFIG.chart.legend.fontSize}px`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.absoluteDataset,(a,o)=>(t.openBlock(),t.createElementBlock("div",{key:`div_legend_item_${o}`,onClick:i=>e.segregate(a),class:t.normalizeClass({"vue-ui-xy-legend-item":!0,"vue-ui-xy-legend-item-segregated":r.segregatedSeries.includes(a.id)})},[r.icons[a.type]==="line"?(t.openBlock(),t.createElementBlock("svg",gl,[t.createElementVNode("rect",{x:"0",y:"7.5",rx:"1.5",stroke:e.FINAL_CONFIG.chart.backgroundColor,"stroke-width":.5,height:"3",width:"20",fill:a.color},null,8,ml),t.createVNode(L,{plot:{x:10,y:9},radius:4,color:a.color,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(a.shape)?a.shape:"circle",stroke:e.FINAL_CONFIG.chart.backgroundColor,strokeWidth:.5},null,8,["color","shape","stroke"])])):r.icons[a.type]==="bar"?(t.openBlock(),t.createElementBlock("svg",fl,[r.icons[a.type]==="bar"&&l.$slots.pattern?(t.openBlock(),t.createElementBlock("rect",{key:0,x:"0",y:"0",rx:"1",height:"40",width:"40",stroke:"none",fill:a.color},null,8,Nl)):t.createCommentVNode("",!0),r.icons[a.type]==="bar"?(t.openBlock(),t.createElementBlock("rect",{key:1,x:"0",y:"0",rx:"1",height:"40",width:"40",stroke:"none",fill:l.$slots.pattern?`url(#pattern_${r.uniqueId}_${a.slotAbsoluteIndex})`:a.color},null,8,Il)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("svg",Fl,[t.createVNode(L,{plot:{x:6,y:6},radius:5,color:a.color,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(a.shape)?a.shape:"circle"},null,8,["color","shape"])])),t.createElementVNode("span",{style:t.normalizeStyle(`color:${e.FINAL_CONFIG.chart.legend.color}`)},t.toDisplayString(a.name),5)],10,ul))),128))],4)):(t.openBlock(),t.createElementBlock("div",xl,[t.renderSlot(l.$slots,"legend",{legend:e.absoluteDataset},void 0,!0)],512)),l.$slots.source?(t.openBlock(),t.createElementBlock("div",bl,[t.renderSlot(l.$slots,"source",{},void 0,!0)],512)):t.createCommentVNode("",!0),t.createVNode(_,{show:r.mutableConfig.showTooltip&&r.isTooltip,backgroundColor:e.FINAL_CONFIG.chart.tooltip.backgroundColor,color:e.FINAL_CONFIG.chart.tooltip.color,fontSize:e.FINAL_CONFIG.chart.tooltip.fontSize,borderRadius:e.FINAL_CONFIG.chart.tooltip.borderRadius,borderColor:e.FINAL_CONFIG.chart.tooltip.borderColor,borderWidth:e.FINAL_CONFIG.chart.tooltip.borderWidth,backgroundOpacity:e.FINAL_CONFIG.chart.tooltip.backgroundOpacity,position:e.FINAL_CONFIG.chart.tooltip.position,offsetY:e.FINAL_CONFIG.chart.tooltip.offsetY,parent:l.$refs.chart,content:e.tooltipContent,isFullscreen:r.isFullscreen,isCustom:e.FINAL_CONFIG.chart.tooltip.customFormat&&typeof e.FINAL_CONFIG.chart.tooltip.customFormat=="function"},{"tooltip-before":t.withCtx(()=>[t.renderSlot(l.$slots,"tooltip-before",t.normalizeProps(t.guardReactiveProps({...e.dataTooltipSlot})),void 0,!0)]),"tooltip-after":t.withCtx(()=>[t.renderSlot(l.$slots,"tooltip-after",t.normalizeProps(t.guardReactiveProps({...e.dataTooltipSlot})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),e.isDataset?(t.openBlock(),t.createBlock(A,{key:11,hideDetails:"",config:{open:r.mutableConfig.showTable,maxHeight:1e4,body:{backgroundColor:e.FINAL_CONFIG.chart.backgroundColor,color:e.FINAL_CONFIG.chart.color},head:{backgroundColor:e.FINAL_CONFIG.chart.backgroundColor,color:e.FINAL_CONFIG.chart.color}}},{content:t.withCtx(()=>[t.createElementVNode("div",{style:t.normalizeStyle(`${r.isPrinting?"":"max-height:400px"};overflow:auto;width:100%;margin-top:48px`)},[t.createElementVNode("div",kl,[t.withDirectives(t.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":s[4]||(s[4]=a=>r.showSparklineTable=a)},null,512),[[t.vModelCheckbox,r.showSparklineTable]]),t.createElementVNode("div",{onClick:s[5]||(s[5]=a=>r.showSparklineTable=!r.showSparklineTable),style:{cursor:"pointer"}},[t.createVNode(f,{name:"chartLine",size:20,stroke:e.FINAL_CONFIG.chart.color},null,8,["stroke"])])]),r.showSparklineTable?(t.openBlock(),t.createBlock(b,{key:`sparkline_${r.segregateStep}`,dataset:e.tableSparklineDataset,config:e.tableSparklineConfig},null,8,["dataset","config"])):(t.openBlock(),t.createBlock(y,{key:`table_${r.tableStep}`,colNames:e.dataTable.colNames,head:e.dataTable.head,body:e.dataTable.body,config:e.dataTable.config,title:`${e.FINAL_CONFIG.chart.title.text}${e.FINAL_CONFIG.chart.title.subtitle.text?` : ${e.FINAL_CONFIG.chart.title.subtitle.text}`:""}`,onClose:s[6]||(s[6]=a=>r.mutableConfig.showTable=!1)},{th:t.withCtx(({th:a})=>[t.createElementVNode("div",{innerHTML:a},null,8,_l)]),td:t.withCtx(({td:a})=>[t.createTextVNode(t.toDisplayString(isNaN(Number(a))?a:e.dataLabel({p:e.FINAL_CONFIG.chart.labels.prefix,v:a,s:e.FINAL_CONFIG.chart.labels.suffix,r:e.FINAL_CONFIG.table.rounding})),1)]),_:1},8,["colNames","head","body","config","title"]))],4)]),_:1},8,["config"])):t.createCommentVNode("",!0)],46,J)}const Ll=X._export_sfc(Z,[["render",yl],["__scopeId","data-v-0ac0eb6b"]]);exports.default=Ll;
3
+ '${s}' was converted to null to allow the chart to display.`)})}),this.showUserOptionsOnChartHover=this.FINAL_CONFIG.chart.userOptions.showOnChartHover,this.keepUserOptionState=this.FINAL_CONFIG.chart.userOptions.keepStateOnChartLeave,this.userOptionsVisible=!this.FINAL_CONFIG.chart.userOptions.showOnChartHover,this.mutableConfig={dataLabels:{show:!0},showTooltip:this.FINAL_CONFIG.chart.tooltip.show===!0,showTable:this.FINAL_CONFIG.showTable===!0,isStacked:this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked,useIndividualScale:this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale},this.FINAL_CONFIG.responsive){const s=this.$refs.chart.parentNode,{height:n,width:h}=s.getBoundingClientRect();let r=null,e=0;this.FINAL_CONFIG.chart.title.show&&(r=this.$refs.chartTitle,e=r.getBoundingClientRect().height);let F=null,m=0;this.FINAL_CONFIG.chart.zoom.show&&this.maxX>6&&this.isDataset&&(F=this.$refs.chartSlicer.$el,m=F.getBoundingClientRect().height);let u=null,x=0;this.FINAL_CONFIG.chart.legend.show&&(u=this.$refs.chartLegend,x=u.getBoundingClientRect().height);let L=0;this.$refs.source&&(L=this.$refs.source.getBoundingClientRect().height);let k=0;this.$refs.noTitle&&(k=this.$refs.noTitle.getBoundingClientRect().height),this.height=n-e-x-m-L-k,this.width=h,this.viewBox=`0 0 ${this.width<0?10:this.width} ${this.height<0?10:this.height}`,this.convertSizes(),new ResizeObserver(_=>{for(const f of _)this.$refs.chartTitle&&(e=this.$refs.chartTitle.getBoundingClientRect().height),this.$refs.chartSlicer&&this.$refs.chartSlicer.$el&&(m=this.$refs.chartSlicer.$el.getBoundingClientRect().height),this.$refs.chartLegend&&(x=this.$refs.chartLegend.getBoundingClientRect().height),this.$refs.source&&(L=this.$refs.source.getBoundingClientRect().height),requestAnimationFrame(()=>{this.height=f.contentBoxSize[0].blockSize-e-x-m-L-24,this.width=f.contentBoxSize[0].inlineSize,this.viewBox=`0 0 ${this.width<0?10:this.width} ${this.height<0?10:this.height}`,this.convertSizes()})}).observe(s)}else this.height=this.FINAL_CONFIG.chart.height,this.width=this.FINAL_CONFIG.chart.width,this.viewBox=`0 0 ${this.width} ${this.height}`,this.fontSizes.dataLabels=this.FINAL_CONFIG.chart.grid.labels.fontSize,this.fontSizes.yAxis=this.FINAL_CONFIG.chart.grid.labels.axis.fontSize,this.fontSizes.xAxis=this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.fontSize,this.fontSizes.plotLabels=this.FINAL_CONFIG.chart.labels.fontSize,this.plotRadii.plot=this.FINAL_CONFIG.plot.radius,this.plotRadii.line=this.FINAL_CONFIG.line.radius},selectMinimapIndex(l){this.selectedMinimapIndex=l},convertSizes(){this.fontSizes.dataLabels=this.translateSize({relator:this.height,adjuster:400,source:this.FINAL_CONFIG.chart.grid.labels.fontSize,threshold:10,fallback:10}),this.fontSizes.yAxis=this.translateSize({relator:this.width,adjuster:1e3,source:this.FINAL_CONFIG.chart.grid.labels.axis.fontSize,threshold:10,fallback:10}),this.fontSizes.xAxis=this.translateSize({relator:this.width,adjuster:1e3,source:this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.fontSize,threshold:10,fallback:10}),this.fontSizes.plotLabels=this.translateSize({relator:this.width,adjuster:800,source:this.FINAL_CONFIG.chart.labels.fontSize,threshold:10,fallback:10}),this.plotRadii.plot=this.translateSize({relator:this.width,adjuster:800,source:this.FINAL_CONFIG.plot.radius,threshold:1,fallback:1}),this.plotRadii.line=this.translateSize({relator:this.width,adjuster:800,source:this.FINAL_CONFIG.line.radius,threshold:1,fallback:1})},toggleStack(){this.mutableConfig.isStacked=!this.mutableConfig.isStacked,this.mutableConfig.isStacked?this.mutableConfig.useIndividualScale=!0:this.mutableConfig.useIndividualScale=this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale},toggleTable(){this.mutableConfig.showTable=!this.mutableConfig.showTable},toggleLabels(){this.mutableConfig.dataLabels.show=!this.mutableConfig.dataLabels.show},toggleTooltip(){this.mutableConfig.showTooltip=!this.mutableConfig.showTooltip},checkAutoScaleError(l){l.autoScaling&&(this.FINAL_CONFIG.chart.grid.labels.yAxis.useIndividualScale||console.warn(`VueUiXy (datapoint: ${l.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`),this.FINAL_CONFIG.chart.grid.labels.yAxis.stacked||console.warn(`VueUiXy (datapoint: ${l.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`))},createArea(l,s){if(!l[0])return[-10,-10,"",-10,-10];const n={x:l[0].x,y:s},h={x:l.at(-1).x,y:s},r=[];return l.forEach(e=>{r.push(`${e.x},${e.y} `)}),[n.x,n.y,...r,h.x,h.y].toString()},createStar:d.createStar,createPolygonPath:d.createPolygonPath,fillArray(l,s){let n=Array(l).fill(0);for(let h=0;h<s.length&&h<l;h+=1)n[h]=s[h];return n},async setupSlicer(){(this.FINAL_CONFIG.chart.zoom.startIndex!==null||this.FINAL_CONFIG.chart.zoom.endIndex!==null)&&this.$refs.chartSlicer?(this.FINAL_CONFIG.chart.zoom.startIndex!==null&&(await this.$nextTick(),await this.$nextTick(),this.$refs.chartSlicer.setStartValue(this.FINAL_CONFIG.chart.zoom.startIndex)),this.FINAL_CONFIG.chart.zoom.endIndex!==null&&(await this.$nextTick(),await this.$nextTick(),this.$refs.chartSlicer.setEndValue(this.validSlicerEnd(this.FINAL_CONFIG.chart.zoom.endIndex+1)))):(this.slicer={start:0,end:Math.max(...this.dataset.map(l=>this.largestTriangleThreeBucketsArray({data:l.series,threshold:this.FINAL_CONFIG.downsample.threshold}).length))},this.slicerStep+=1)},refreshSlicer(){this.setupSlicer()},validSlicerEnd(l){const s=Math.max(...this.dataset.map(n=>this.largestTriangleThreeBucketsArray({data:n.series,threshold:this.FINAL_CONFIG.downsample.threshold}).length));return l>s?s:l<0||this.FINAL_CONFIG.chart.zoom.startIndex!==null&&l<this.FINAL_CONFIG.chart.zoom.startIndex?this.FINAL_CONFIG.chart.zoom.startIndex!==null?this.FINAL_CONFIG.chart.zoom.startIndex+1:1:l},calcRectHeight(l){const s=![null,void 0].includes(this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin)&&this.FINAL_CONFIG.chart.grid.labels.yAxis.scaleMin>0&&this.min>=0?this.drawingArea.bottom:this.zero;return l.value>=0?this.checkNaN(s-l.y<=0?1e-5:s-l.y):this.checkNaN(l.y-this.zero<=0?1e-5:l.y-this.zero)},calcIndividualHeight(l){return l.value>=0?this.checkNaN(l.zeroPosition-l.y<=0?1e-5:l.zeroPosition-l.y):this.checkNaN(l.y-l.zeroPosition<=0?1e-5:l.zeroPosition-l.y)},calcRectWidth(){return this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?this.slot.line-this.drawingArea.width/this.maxSeries*.1:this.slot.bar},calcRectX(l){return this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?l.x+this.drawingArea.width/this.maxSeries*.05:l.x+this.slot.bar/2},calcRectY(l){return l.value>=0?l.y:this.zero},calcIndividualRectY(l){return l.value>=0?l.y:[null,void 0,NaN,1/0,-1/0].includes(l.zeroPosition)?0:l.zeroPosition},canShowValue(l){return![null,void 0,NaN,1/0,-1/0].includes(l)},findClosestValue(l,s){let n=s[0],h=Math.abs(l-s[0]);for(let r=1;r<s.length;r+=1){const e=Math.abs(l-s[r]);e<h&&s[r]<l&&(n=s[r],h=e)}return n},ratioToMax(l){return l/(this.canShowValue(this.absoluteMax)?this.absoluteMax:1)},selectX(l){this.$emit("selectX",{dataset:this.relativeDataset.map(s=>({name:s.name,value:[null,void 0,NaN].includes(s.absoluteValues[l])?null:s.absoluteValues[l],color:s.color,type:s.type})),index:l,indexLabel:this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[l]})},getData(){return this.absoluteDataset.map(l=>({values:l.absoluteValues,color:l.color,name:l.name,type:l.type}))},segregate(l){if(this.segregatedSeries.includes(l.id))this.segregatedSeries=this.segregatedSeries.filter(s=>s!==l.id);else{if(this.segregatedSeries.length+1===this.safeDataset.length)return;this.segregatedSeries.push(l.id)}this.$emit("selectLegend",this.relativeDataset.map(s=>({name:s.name,values:s.absoluteValues,color:s.color,type:s.type}))),this.segregateStep+=1},toggleTooltipVisibility(l,s=null){this.isTooltip=l,l?this.selectedSerieIndex=s:this.selectedSerieIndex=null},toggleFullscreen(l){this.isFullscreen=l,this.step+=1},showSpinnerPdf(){this.isPrinting=!0},async generatePdf(){this.showSpinnerPdf(),clearTimeout(this.__to__),this.isPrinting=!0,this.__to__=setTimeout(async()=>{try{const{default:l}=await Promise.resolve().then(()=>require("./pdf-CCdcXY_7.cjs"));await l({domElement:document.getElementById(`vue-ui-xy_${this.uniqueId}`),fileName:this.FINAL_CONFIG.chart.title.text||"vue-ui-xy",options:this.FINAL_CONFIG.chart.userOptions.print})}catch(l){console.error("Error generating PDF:",l)}finally{this.isPrinting=!1}},100)},generateCsv(){const l=[[this.FINAL_CONFIG.chart.title.text],[this.FINAL_CONFIG.chart.title.subtitle.text],[""]],s=["",...this.table.head.map(e=>e.label)],n=this.table.body,h=l.concat([s]).concat(n),r=this.createCsvContent(h);this.downloadCsv({csvContent:r,title:this.FINAL_CONFIG.chart.title.text||"vue-ui-xy"})},showSpinnerImage(){this.isImaging=!0},async generateImage(){this.showSpinnerImage(),clearTimeout(this.__to__),this.isImaging=!0,this.__to__=setTimeout(async()=>{try{const{default:l}=await Promise.resolve().then(()=>require("./img-Ds_hWTTu.cjs"));await l({domElement:document.getElementById(`vue-ui-xy_${this.uniqueId}`),fileName:this.FINAL_CONFIG.chart.title.text||"vue-ui-xy",format:"png",options:this.FINAL_CONFIG.chart.userOptions.print})}catch(l){console.error("Error generating image:",l)}finally{this.isImaging=!1}},100)}}},J=["id"],K={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%; background:transparent"},Q=["viewBox","aria-label"],j=["x","y","width","height"],$={key:1},ee={class:"vue-ui-xy-grid"},te=["stroke","x1","x2","y1","y2"],le=["stroke","x1","x2","y1","y2"],re={key:1},ae=["x1","x2","y1","y2","stroke"],ie=["x1","x2","y1","y2","stroke"],se=["x1","x2","y1","y2","stroke"],oe={key:3},ne=["x1","x2","y1","y2","stroke"],ce=["id"],he=["stop-color"],de=["stop-color"],ue=["stop-color"],ge=["id"],me=["stop-color"],fe=["stop-color"],Ne=["stop-color"],Ie=["id"],Fe=["stop-color"],xe=["stop-color"],be=["id"],ke=["stop-color"],_e=["stop-color"],ye=["id"],Le=["stop-color"],Ce=["stop-color"],Ae=["x","y","height","width","fill"],Se=["x","y","width"],we=["x","y","height","width","fill"],Oe=["x","y","height","width","rx","fill","stroke","stroke-width"],Ge=["x","y","height","width","rx","fill","stroke","stroke-width"],ve=["width","x","y"],pe={key:0},Be=["id"],Ve=["fill"],Ee=["x1","x2","y1","y2","stroke","marker-end"],ze=["x","y","font-size","fill"],Me=["stroke","x1","x2","y1","y2"],Te={key:2},Pe=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],Re=["x","y","width","height","stroke","stroke-width","stroke-linecap","stroke-linejoin","stroke-dasharray"],De={key:4},He=["x1","x2","y1","y2","stroke","stroke-width"],We=["fill","font-size","transform"],qe=["x1","x2","y1","y2","stroke"],Ye=["x","y","font-size","fill"],Xe=["x1","x2","y1","y2","stroke"],Ue=["x","y","font-size","fill"],Ze=["width","x","y"],Je={style:{width:"100%"}},Ke={key:0},Qe=["id"],je=["fill"],$e=["x1","x2","y1","y2","stroke","marker-end"],et=["x","y","font-size","fill"],tt=["d","stroke","stroke-width","stroke-dasharray"],lt=["d","stroke","stroke-width","stroke-dasharray"],rt={key:5},at={key:0},it=["d","fill"],st=["d","fill"],ot=["d","fill"],nt=["d","fill"],ct=["d","stroke","stroke-width","stroke-dasharray"],ht=["d","stroke","stroke-width","stroke-dasharray"],dt=["width","x","y"],ut={style:{width:"100%"}},gt={key:3},mt=["id"],ft=["fill"],Nt=["x1","x2","y1","y2","stroke","marker-end"],It=["x","y","font-size","fill"],Ft={key:6},xt=["x","y","font-size","fill"],bt=["x","y","font-size","fill","font-weight"],kt={key:7},_t=["x","y","font-size","fill"],yt={key:8},Lt=["x","y"],Ct=["innerHTML"],At=["x","y"],St=["innerHTML"],wt=["x1","x2","y1","y2","stroke"],Ot={key:9},Gt=["x","y","font-size","fill"],vt={key:10},pt=["x","y"],Bt=["innerHTML"],Vt=["x","y"],Et=["innerHTML"],zt=["x1","x2","y1","y2","stroke"],Mt=["x","y","font-size","fill","innerHTML"],Tt=["x","y","font-size","fill","innerHTML"],Pt=["x","y","font-size","fill","innerHTML"],Rt=["x","y","font-size","fill","innerHTML"],Dt=["id"],Ht=["stop-color"],Wt=["stop-color"],qt=["x","y","width","height","fill","onMouseenter"],Yt=["font-size","fill","transform"],Xt=["x","y","font-size","fill"],Ut={key:12},Zt=["text-anchor","font-size","fill","transform","onClick"],Jt=["x","y","height","width","onMouseenter","onClick"],Kt={key:13,style:{"pointer-events":"none"}},Qt=["x","y"],jt=["cx","cy","r","fill"],$t={key:5,class:"vue-data-ui-watermark"},el={class:"vue-ui-xy-tag-arrow",height:"20",viewBox:"0 0 10 20",style:{position:"absolute",right:"100%",top:"50%",transform:"translateY(-50%)"}},tl=["fill"],ll=["innerHTML"],rl={class:"vue-ui-xy-tag-arrow",height:"100%",viewBox:"0 0 10 20",style:{position:"absolute",left:"100%",top:"50%",transform:"translateY(-50%)"}},al=["fill"],il=["innerHTML"],sl={class:"vue-ui-xy-tag-arrow",height:"20",viewBox:"0 0 10 20",style:{position:"absolute",right:"100%",top:"50%",transform:"translateY(-50%)"}},ol=["fill"],nl=["innerHTML"],cl={class:"vue-ui-xy-tag-arrow",height:"100%",viewBox:"0 0 10 20",style:{position:"absolute",left:"100%",top:"50%",transform:"translateY(-50%)"}},hl=["fill"],dl=["innerHTML"],ul=["onClick"],gl={key:0,viewBox:"0 0 20 12",height:"14",width:"20"},ml=["stroke","fill"],fl={key:1,viewBox:"0 0 40 40",height:"14",width:"14"},Nl=["fill"],Il=["fill"],Fl={key:2,viewBox:"0 0 12 12",height:"14",width:"14"},xl={key:9,ref:"chartLegend"},bl={key:10,ref:"source",dir:"auto"},kl={style:{display:"flex","flex-direction":"row",gap:"6px","align-items":"center","padding-left":"6px"},"data-dom-to-png-ignore":""},_l=["innerHTML"];function yl(l,s,n,h,r,e){const F=t.resolveComponent("PenAndPaper"),m=t.resolveComponent("Title"),u=t.resolveComponent("UserOptions"),x=t.resolveComponent("PackageVersion"),L=t.resolveComponent("Shape"),k=t.resolveComponent("Skeleton"),C=t.resolveComponent("Slicer"),_=t.resolveComponent("Tooltip"),f=t.resolveComponent("BaseIcon"),b=t.resolveComponent("TableSparkline"),y=t.resolveComponent("DataTable"),A=t.resolveComponent("Accordion");return t.openBlock(),t.createElementBlock("div",{id:`vue-ui-xy_${r.uniqueId}`,class:t.normalizeClass(`vue-ui-xy ${r.isFullscreen?"vue-data-ui-wrapper-fullscreen":""} ${e.FINAL_CONFIG.useCssAnimation?"":"vue-ui-dna"}`),ref:"chart",style:t.normalizeStyle(`background:${e.FINAL_CONFIG.chart.backgroundColor}; color:${e.FINAL_CONFIG.chart.color};width:100%;font-family:${e.FINAL_CONFIG.chart.fontFamily};${e.FINAL_CONFIG.responsive?"height: 100%":""}`),onMouseenter:s[7]||(s[7]=()=>e.setUserOptionsVisibility(!0)),onMouseleave:s[8]||(s[8]=()=>e.setUserOptionsVisibility(!1))},[e.FINAL_CONFIG.chart.userOptions.buttons.annotator?(t.openBlock(),t.createBlock(F,{key:0,svgRef:r.svgRef,backgroundColor:e.FINAL_CONFIG.chart.backgroundColor,color:e.FINAL_CONFIG.chart.color,active:r.isAnnotator,onClose:e.toggleAnnotator},null,8,["svgRef","backgroundColor","color","active","onClose"])):t.createCommentVNode("",!0),e.hasOptionsNoTitle?(t.openBlock(),t.createElementBlock("div",K,null,512)):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.title.show?(t.openBlock(),t.createElementBlock("div",{key:2,ref:"chartTitle",class:"vue-ui-xy-title",style:t.normalizeStyle(`font-family:${e.FINAL_CONFIG.chart.fontFamily}`)},[(t.openBlock(),t.createBlock(m,{key:`title_${r.titleStep}`,config:{title:{cy:"xy-div-title",...e.FINAL_CONFIG.chart.title},subtitle:{cy:"xy-div-subtitle",...e.FINAL_CONFIG.chart.title.subtitle}}},null,8,["config"]))],4)):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.userOptions.show&&e.isDataset&&(r.keepUserOptionState||r.userOptionsVisible)?(t.openBlock(),t.createBlock(u,{ref:"defails",key:`user_options_${r.step}`,backgroundColor:e.FINAL_CONFIG.chart.backgroundColor,color:e.FINAL_CONFIG.chart.color,isPrinting:r.isPrinting,isImaging:r.isImaging,uid:r.uniqueId,hasTooltip:e.FINAL_CONFIG.chart.userOptions.buttons.tooltip&&e.FINAL_CONFIG.chart.tooltip.show,hasPdf:e.FINAL_CONFIG.chart.userOptions.buttons.pdf,hasXls:e.FINAL_CONFIG.chart.userOptions.buttons.csv,hasImg:e.FINAL_CONFIG.chart.userOptions.buttons.img,hasLabel:e.FINAL_CONFIG.chart.userOptions.buttons.labels,hasTable:e.FINAL_CONFIG.chart.userOptions.buttons.table,hasStack:n.dataset.length>1&&e.FINAL_CONFIG.chart.userOptions.buttons.stack,hasFullscreen:e.FINAL_CONFIG.chart.userOptions.buttons.fullscreen,isStacked:r.mutableConfig.isStacked,isFullscreen:r.isFullscreen,chartElement:l.$refs.chart,position:e.FINAL_CONFIG.chart.userOptions.position,isTooltip:r.mutableConfig.showTooltip,titles:{...e.FINAL_CONFIG.chart.userOptions.buttonTitles},hasAnnotator:e.FINAL_CONFIG.chart.userOptions.buttons.annotator,isAnnotation:r.isAnnotator,onToggleFullscreen:e.toggleFullscreen,onGeneratePdf:e.generatePdf,onGenerateCsv:e.generateCsv,onGenerateImage:e.generateImage,onToggleTable:e.toggleTable,onToggleLabels:e.toggleLabels,onToggleStack:e.toggleStack,onToggleTooltip:e.toggleTooltip,onToggleAnnotator:e.toggleAnnotator,style:t.normalizeStyle({visibility:r.keepUserOptionState?r.userOptionsVisible?"visible":"hidden":"visible"})},t.createSlots({_:2},[l.$slots.menuIcon?{name:"menuIcon",fn:t.withCtx(({isOpen:a,color:o})=>[t.renderSlot(l.$slots,"menuIcon",t.normalizeProps(t.guardReactiveProps({isOpen:a,color:o})),void 0,!0)]),key:"0"}:void 0,l.$slots.optionTooltip?{name:"optionTooltip",fn:t.withCtx(()=>[t.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:t.withCtx(()=>[t.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:t.withCtx(()=>[t.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:t.withCtx(()=>[t.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:t.withCtx(()=>[t.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"5"}:void 0,l.$slots.optionLabels?{name:"optionLabels",fn:t.withCtx(()=>[t.renderSlot(l.$slots,"optionLabels",{},void 0,!0)]),key:"6"}:void 0,l.$slots.optionStack?{name:"optionStack",fn:t.withCtx(()=>[t.renderSlot(l.$slots,"optionStack",{},void 0,!0)]),key:"7"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:t.withCtx(({toggleFullscreen:a,isFullscreen:o})=>[t.renderSlot(l.$slots,"optionFullscreen",t.normalizeProps(t.guardReactiveProps({toggleFullscreen:a,isFullscreen:o})),void 0,!0)]),key:"8"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:t.withCtx(({toggleAnnotator:a,isAnnotator:o})=>[t.renderSlot(l.$slots,"optionAnnotator",t.normalizeProps(t.guardReactiveProps({toggleAnnotator:a,isAnnotator:o})),void 0,!0)]),key:"9"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasLabel","hasTable","hasStack","hasFullscreen","isStacked","isFullscreen","chartElement","position","isTooltip","titles","hasAnnotator","isAnnotation","onToggleFullscreen","onGeneratePdf","onGenerateCsv","onGenerateImage","onToggleTable","onToggleLabels","onToggleStack","onToggleTooltip","onToggleAnnotator","style"])):t.createCommentVNode("",!0),e.isDataset?(t.openBlock(),t.createElementBlock("svg",{key:4,ref:"svgRef",xmlns:"http://www.w3.org/2000/svg",class:t.normalizeClass([{"vue-data-ui-fullscreen--on":r.isFullscreen,"vue-data-ui-fulscreen--off":!r.isFullscreen},"vue-ui-xy-svg"]),width:"100%",viewBox:r.viewBox,style:t.normalizeStyle(`background: transparent; color:${e.FINAL_CONFIG.chart.color}; font-family:${e.FINAL_CONFIG.chart.fontFamily}`),"aria-label":e.chartAriaLabel,role:"img","aria-live":"polite"},[t.createVNode(x),l.$slots["chart-background"]?(t.openBlock(),t.createElementBlock("foreignObject",{key:0,x:e.drawingArea.left+e.xPadding<0?0:e.drawingArea.left+e.xPadding,y:e.drawingArea.top,width:e.drawingArea.width-(e.FINAL_CONFIG.chart.grid.position==="middle"?0:e.drawingArea.width/e.maxSeries)<0?0:e.drawingArea.width-(e.FINAL_CONFIG.chart.grid.position==="middle"?0:e.drawingArea.width/e.maxSeries),height:e.drawingArea.height<0?0:e.drawingArea.height,style:{pointerEvents:"none"}},[t.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,j)):t.createCommentVNode("",!0),e.maxSeries>0?(t.openBlock(),t.createElementBlock("g",$,[t.createElementVNode("g",ee,[e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline?(t.openBlock(),t.createElementBlock("line",{key:0,stroke:e.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1",x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.right-e.xPadding,y1:e.forceValidValue(e.drawingArea.bottom),y2:e.forceValidValue(e.drawingArea.bottom),"stroke-linecap":"round"},null,8,te)):t.createCommentVNode("",!0),r.mutableConfig.useIndividualScale?e.FINAL_CONFIG.chart.grid.showHorizontalLines?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:2},t.renderList(e.allScales,a=>(t.openBlock(),t.createElementBlock("g",null,[a.id===r.selectedScale&&a.yLabels.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(a.yLabels,o=>(t.openBlock(),t.createElementBlock("line",{x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.right-e.xPadding,y1:e.forceValidValue(o.y),y2:e.forceValidValue(o.y),stroke:a.color,"stroke-width":.5,"stroke-linecap":"round"},null,8,ie))),256)):a.yLabels.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(a.yLabels,o=>(t.openBlock(),t.createElementBlock("line",{x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.right-e.xPadding,y1:e.forceValidValue(o.y),y2:e.forceValidValue(o.y),stroke:e.FINAL_CONFIG.chart.grid.stroke,"stroke-width":.5,"stroke-linecap":"round"},null,8,se))),256)):t.createCommentVNode("",!0)]))),256)):t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.FINAL_CONFIG.chart.grid.labels.yAxis.showBaseline?(t.openBlock(),t.createElementBlock("line",{key:0,stroke:e.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1",x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.left+e.xPadding,y1:e.forceValidValue(e.drawingArea.top),y2:e.forceValidValue(e.drawingArea.bottom),"stroke-linecap":"round"},null,8,le)):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.grid.showHorizontalLines?(t.openBlock(),t.createElementBlock("g",re,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.yLabels,a=>(t.openBlock(),t.createElementBlock("line",{x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.right-e.xPadding,y1:e.forceValidValue(a.y),y2:e.forceValidValue(a.y),stroke:e.FINAL_CONFIG.chart.grid.stroke,"stroke-width":.5,"stroke-linecap":"round"},null,8,ae))),256))])):t.createCommentVNode("",!0)],64)),e.FINAL_CONFIG.chart.grid.showVerticalLines?(t.openBlock(),t.createElementBlock("g",oe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.maxSeries+(e.FINAL_CONFIG.chart.grid.position==="middle"?1:0),(a,o)=>(t.openBlock(),t.createElementBlock("line",{key:`grid_vertical_line_${o}`,x1:e.drawingArea.width/e.maxSeries*o+e.drawingArea.left+e.xPadding,x2:e.drawingArea.width/e.maxSeries*o+e.drawingArea.left+e.xPadding,y1:e.forceValidValue(e.drawingArea.top),y2:e.forceValidValue(e.drawingArea.bottom),"stroke-width":"0.5",stroke:e.FINAL_CONFIG.chart.grid.stroke},null,8,ne))),128))])):t.createCommentVNode("",!0)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.barSet,(a,o)=>(t.openBlock(),t.createElementBlock("defs",{key:`def_rect_${o}`},[t.createElementVNode("linearGradient",{id:`rectGradient_pos_${o}_${r.uniqueId}`,x2:"0%",y2:"100%"},[t.createElementVNode("stop",{offset:"0%","stop-color":a.color},null,8,he),t.createElementVNode("stop",{offset:"62%","stop-color":`${e.shiftHue(a.color,.02)}`},null,8,de),t.createElementVNode("stop",{offset:"100%","stop-color":`${e.shiftHue(a.color,.05)}`},null,8,ue)],8,ce),t.createElementVNode("linearGradient",{id:`rectGradient_neg_${o}_${r.uniqueId}`,x2:"0%",y2:"100%"},[t.createElementVNode("stop",{offset:"0%","stop-color":`${e.shiftHue(a.color,.05)}`},null,8,me),t.createElementVNode("stop",{offset:"38%","stop-color":`${e.shiftHue(a.color,.02)}`},null,8,fe),t.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,Ne)],8,ge)]))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.plotSet,(a,o)=>(t.openBlock(),t.createElementBlock("defs",{key:`def_plot_${o}`},[t.createElementVNode("radialGradient",{id:`plotGradient_${o}_${r.uniqueId}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[t.createElementVNode("stop",{offset:"0%","stop-color":`${e.shiftHue(a.color,.05)}`},null,8,Fe),t.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,xe)],8,Ie)]))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.lineSet,(a,o)=>(t.openBlock(),t.createElementBlock("defs",{key:`def_line_${o}`},[t.createElementVNode("radialGradient",{id:`lineGradient_${o}_${r.uniqueId}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[t.createElementVNode("stop",{offset:"0%","stop-color":`${e.shiftHue(a.color,.05)}`},null,8,ke),t.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,_e)],8,be),t.createElementVNode("linearGradient",{id:`areaGradient_${o}_${r.uniqueId}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[t.createElementVNode("stop",{offset:"0%","stop-color":`${e.setOpacity(e.shiftHue(a.color,.03),e.FINAL_CONFIG.line.area.opacity)}`},null,8,Le),t.createElementVNode("stop",{offset:"100%","stop-color":`${e.setOpacity(a.color,e.FINAL_CONFIG.line.area.opacity)}`},null,8,Ce)],8,ye)]))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.highlightAreas,a=>(t.openBlock(),t.createElementBlock("g",null,[a.show?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(a.span,(o,i)=>(t.openBlock(),t.createElementBlock("g",null,[t.createElementVNode("rect",{style:t.normalizeStyle({transition:"none",opacity:a.from+i>=r.slicer.start&&a.from+i<=r.slicer.end-1?1:0}),x:e.drawingArea.left+e.drawingArea.width/e.maxSeries*(a.from+i-r.slicer.start),y:e.drawingArea.top,height:e.drawingArea.height<0?10:e.drawingArea.height,width:e.drawingArea.width/e.maxSeries<0?1e-5:e.drawingArea.width/e.maxSeries,fill:e.setOpacity(a.color,a.opacity)},null,12,Ae),a.caption.text&&i===0?(t.openBlock(),t.createElementBlock("foreignObject",{key:0,x:e.drawingArea.left+e.drawingArea.width/e.maxSeries*(a.from+i-r.slicer.start)-(a.caption.width==="auto"?0:a.caption.width/2-e.drawingArea.width/e.maxSeries*a.span/2),y:e.drawingArea.top+a.caption.offsetY,style:t.normalizeStyle({overflow:"visible",opacity:a.to>=r.slicer.start&&a.from<r.slicer.end?1:0}),height:"1",width:a.caption.width==="auto"?e.drawingArea.width/e.maxSeries*a.span:a.caption.width},[t.createElementVNode("div",{style:t.normalizeStyle(`padding:${a.caption.padding}px;text-align:${a.caption.textAlign};font-size:${a.caption.fontSize}px;color:${a.caption.color};font-weight:${a.caption.bold?"bold":"normal"}`)},t.toDisplayString(a.caption.text),5)],12,Se)):t.createCommentVNode("",!0)]))),256)):t.createCommentVNode("",!0)]))),256)),t.createElementVNode("g",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.maxSeries,(a,o)=>(t.openBlock(),t.createElementBlock("g",{key:`tooltip_trap_highlighter_${o}`},[t.createElementVNode("rect",{x:e.drawingArea.left+e.drawingArea.width/e.maxSeries*o,y:e.drawingArea.top,height:e.drawingArea.height<0?10:e.drawingArea.height,width:e.drawingArea.width/e.maxSeries<0?1e-5:e.drawingArea.width/e.maxSeries,fill:[r.selectedMinimapIndex,r.selectedSerieIndex,r.selectedRowIndex].includes(o)?e.setOpacity(e.FINAL_CONFIG.chart.highlighter.color,e.FINAL_CONFIG.chart.highlighter.opacity):"transparent"},null,8,we)]))),128))]),e.barSet.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.barSet,(a,o)=>(t.openBlock(),t.createElementBlock("g",{key:`serie_bar_${o}`,class:t.normalizeClass(`serie_bar_${o}`),style:t.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.plots,(i,c)=>(t.openBlock(),t.createElementBlock("g",{key:`bar_plot_${o}_${c}`},[e.canShowValue(i.value)?(t.openBlock(),t.createElementBlock("rect",{key:0,x:e.calcRectX(i),y:r.mutableConfig.useIndividualScale?e.calcIndividualRectY(i):e.calcRectY(i),height:r.mutableConfig.useIndividualScale?Math.abs(e.calcIndividualHeight(i)):Math.abs(e.calcRectHeight(i)),width:e.calcRectWidth()-(r.mutableConfig.useIndividualScale&&r.mutableConfig.isStacked?0:e.barPeriodGap)<0?1e-5:e.calcRectWidth()-(r.mutableConfig.useIndividualScale&&r.mutableConfig.isStacked?0:e.barPeriodGap),rx:e.FINAL_CONFIG.bar.borderRadius,fill:e.FINAL_CONFIG.bar.useGradient?i.value>=0?`url(#rectGradient_pos_${o}_${r.uniqueId})`:`url(#rectGradient_neg_${o}_${r.uniqueId})`:a.color,stroke:e.FINAL_CONFIG.bar.border.useSerieColor?a.color:e.FINAL_CONFIG.bar.border.stroke,"stroke-width":e.FINAL_CONFIG.bar.border.strokeWidth},null,8,Oe)):t.createCommentVNode("",!0),e.canShowValue(i.value)&&l.$slots.pattern?(t.openBlock(),t.createElementBlock("rect",{key:1,x:e.calcRectX(i),y:r.mutableConfig.useIndividualScale?e.calcIndividualRectY(i):e.calcRectY(i),height:r.mutableConfig.useIndividualScale?Math.abs(e.calcIndividualHeight(i)):Math.abs(e.calcRectHeight(i)),width:e.calcRectWidth()-(r.mutableConfig.useIndividualScale&&r.mutableConfig.isStacked?0:e.barPeriodGap)<0?1e-5:e.calcRectWidth()-(r.mutableConfig.useIndividualScale&&r.mutableConfig.isStacked?0:e.barPeriodGap),rx:e.FINAL_CONFIG.bar.borderRadius,fill:`url(#pattern_${r.uniqueId}_${a.slotAbsoluteIndex})`,stroke:e.FINAL_CONFIG.bar.border.useSerieColor?a.color:e.FINAL_CONFIG.bar.border.stroke,"stroke-width":e.FINAL_CONFIG.bar.border.strokeWidth},null,8,Ge)):t.createCommentVNode("",!0),i.comment&&e.FINAL_CONFIG.chart.comments.show?(t.openBlock(),t.createElementBlock("foreignObject",{key:2,style:{overflow:"visible"},height:"12",width:(e.calcRectWidth()-(r.mutableConfig.useIndividualScale&&r.mutableConfig.isStacked?0:e.barPeriodGap)<0?1e-5:e.calcRectWidth()-(r.mutableConfig.useIndividualScale&&r.mutableConfig.isStacked?0:e.barPeriodGap)/2)+e.FINAL_CONFIG.chart.comments.width,x:e.calcRectX(i)-e.FINAL_CONFIG.chart.comments.width/2+e.FINAL_CONFIG.chart.comments.offsetX,y:e.checkNaN(i.y)+e.FINAL_CONFIG.chart.comments.offsetY+6},[t.renderSlot(l.$slots,"plot-comment",{plot:{...i,color:a.color,seriesIndex:o,datapointIndex:c}},void 0,!0)],8,ve)):t.createCommentVNode("",!0)]))),128)),Object.hasOwn(a,"useProgression")&&a.useProgression===!0&&!isNaN(e.calcLinearProgression(a.plots).trend)?(t.openBlock(),t.createElementBlock("g",pe,[t.createElementVNode("defs",null,[t.createElementVNode("marker",{id:`bar_arrow_${o}`,markerWidth:7,markerHeight:7,refX:"0",refY:7/2,orient:"auto"},[t.createElementVNode("polygon",{points:`0 0, 7 ${7/2}, 0 7`,fill:a.color},null,8,Ve)],8,Be)]),a.plots.length>1?(t.openBlock(),t.createElementBlock("line",{key:0,x1:e.calcLinearProgression(a.plots).x1+e.calcRectWidth(),x2:e.calcLinearProgression(a.plots).x2+e.calcRectWidth(),y1:e.forceValidValue(e.calcLinearProgression(a.plots).y1),y2:e.forceValidValue(e.calcLinearProgression(a.plots).y2),"stroke-width":1,stroke:a.color,"stroke-dasharray":2,"marker-end":`url(#bar_arrow_${o})`},null,8,Ee)):t.createCommentVNode("",!0),a.plots.length>1?(t.openBlock(),t.createElementBlock("text",{key:1,"text-anchor":"middle",x:e.calcLinearProgression(a.plots).x2+e.calcRectWidth(),y:e.calcLinearProgression(a.plots).y2-6,"font-size":r.fontSizes.plotLabels,fill:a.color},t.toDisplayString(e.dataLabel({v:e.calcLinearProgression(a.plots).trend*100,s:"%",r:2})),9,ze)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],6))),128)):t.createCommentVNode("",!0),!r.mutableConfig.useIndividualScale&&e.FINAL_CONFIG.chart.grid.labels.zeroLine.show?(t.openBlock(),t.createElementBlock("line",{key:1,stroke:e.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1",x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.right-e.xPadding,y1:e.forceValidValue(e.zero),y2:e.forceValidValue(e.zero),"stroke-linecap":"round"},null,8,Me)):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.highlighter.useLine&&(![null,void 0].includes(r.selectedSerieIndex)||![null,void 0].includes(r.selectedMinimapIndex))?(t.openBlock(),t.createElementBlock("g",Te,[t.createElementVNode("line",{x1:e.drawingArea.left+e.drawingArea.width/e.maxSeries*((r.selectedSerieIndex!==null?r.selectedSerieIndex:0)||(r.selectedMinimapIndex!==null?r.selectedMinimapIndex:0))+e.drawingArea.width/e.maxSeries/2,x2:e.drawingArea.left+e.drawingArea.width/e.maxSeries*((r.selectedSerieIndex!==null?r.selectedSerieIndex:0)||(r.selectedMinimapIndex!==null?r.selectedMinimapIndex:0))+e.drawingArea.width/e.maxSeries/2,y1:e.forceValidValue(e.drawingArea.top),y2:e.forceValidValue(e.drawingArea.bottom),stroke:e.FINAL_CONFIG.chart.highlighter.color,"stroke-width":e.FINAL_CONFIG.chart.highlighter.lineWidth,"stroke-dasharray":e.FINAL_CONFIG.chart.highlighter.lineDasharray,"stroke-linecap":"round",style:{transition:"none !important",animation:"none !important","pointer-events":"none"}},null,8,Pe)])):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.grid.frame.show?(t.openBlock(),t.createElementBlock("rect",{key:3,style:{pointerEvents:"none",transition:"none"},x:e.drawingArea.left+e.xPadding<0?0:e.drawingArea.left+e.xPadding,y:e.drawingArea.top,width:e.drawingArea.width-(e.FINAL_CONFIG.chart.grid.position==="middle"?0:e.drawingArea.width/e.maxSeries)<0?0:e.drawingArea.width-(e.FINAL_CONFIG.chart.grid.position==="middle"?0:e.drawingArea.width/e.maxSeries),height:e.drawingArea.height<0?0:e.drawingArea.height,fill:"transparent",stroke:e.FINAL_CONFIG.chart.grid.frame.stroke,"stroke-width":e.FINAL_CONFIG.chart.grid.frame.strokeWidth,"stroke-linecap":e.FINAL_CONFIG.chart.grid.frame.strokeLinecap,"stroke-linejoin":e.FINAL_CONFIG.chart.grid.frame.strokeLinejoin,"stroke-dasharray":e.FINAL_CONFIG.chart.grid.frame.strokeDasharray},null,8,Re)):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.grid.labels.show?(t.openBlock(),t.createElementBlock("g",De,[r.mutableConfig.useIndividualScale?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.allScales,a=>(t.openBlock(),t.createElementBlock("g",null,[t.createElementVNode("line",{x1:a.x+e.xPadding,x2:a.x+e.xPadding,y1:r.mutableConfig.isStacked?e.forceValidValue(e.drawingArea.bottom-a.yOffset-a.individualHeight):e.forceValidValue(e.drawingArea.top),y2:r.mutableConfig.isStacked?e.forceValidValue(e.drawingArea.bottom-a.yOffset):e.forceValidValue(e.drawingArea.bottom),stroke:a.color,"stroke-width":e.FINAL_CONFIG.chart.grid.stroke,"stroke-linecap":"round",style:t.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.groupId?1:.3:1};transition:opacity 0.2s ease-in-out`)},null,12,He)]))),256)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.allScales,a=>(t.openBlock(),t.createElementBlock("g",{style:t.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.groupId?1:.3:1};transition:opacity 0.2s ease-in-out`)},[t.createElementVNode("text",{fill:a.color,"font-size":r.fontSizes.dataLabels,"text-anchor":"middle",transform:`translate(${a.x-e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth+5+e.xPadding+e.FINAL_CONFIG.chart.grid.labels.yAxis.scaleLabelOffsetX}, ${r.mutableConfig.isStacked?e.drawingArea.bottom-a.yOffset-a.individualHeight/2:e.drawingArea.top+e.drawingArea.height/2}) rotate(-90)`},t.toDisplayString(a.name)+" "+t.toDisplayString(a.scaleLabel&&a.unique&&a.scaleLabel!==a.id?`- ${a.scaleLabel}`:""),9,We),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.yLabels,(o,i)=>(t.openBlock(),t.createElementBlock("line",{x1:a.x-3+e.xPadding,x2:a.x+e.xPadding,y1:e.forceValidValue(o.y),y2:e.forceValidValue(o.y),stroke:a.color,"stroke-width":1,"stroke-linecap":"round"},null,8,qe))),256)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.yLabels,(o,i)=>(t.openBlock(),t.createElementBlock("text",{x:a.x-5+e.xPadding+e.FINAL_CONFIG.chart.grid.labels.yAxis.scaleValueOffsetX,y:e.forceValidValue(o.y)+r.fontSizes.dataLabels/3,"font-size":r.fontSizes.dataLabels,"text-anchor":"end",fill:a.color},t.toDisplayString(e.applyDataLabel(e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,o.value,e.dataLabel({p:o.prefix,v:o.value,s:o.suffix,r:1}),{datapoint:o.datapoint,seriesIndex:i})),9,Ye))),256))],4))),256))],64)):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.yLabels,(a,o)=>(t.openBlock(),t.createElementBlock("g",{key:`yLabel_${o}`},[e.canShowValue(a)&&a.value>=e.niceScale.min&&a.value<=e.niceScale.max?(t.openBlock(),t.createElementBlock("line",{key:0,x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.left-5+e.xPadding,y1:e.forceValidValue(a.y),y2:e.forceValidValue(a.y),stroke:e.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1","stroke-linecap":"round"},null,8,Xe)):t.createCommentVNode("",!0),a.value>=e.niceScale.min&&a.value<=e.niceScale.max?(t.openBlock(),t.createElementBlock("text",{key:1,x:e.drawingArea.left-7+e.xPadding,y:e.checkNaN(a.y+r.fontSizes.dataLabels/3),"font-size":r.fontSizes.dataLabels,"text-anchor":"end",fill:e.FINAL_CONFIG.chart.grid.labels.color},t.toDisplayString(e.canShowValue(a.value)?e.applyDataLabel(e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,a.value,e.dataLabel({p:a.prefix,v:a.value,s:a.suffix,r:1})):""),9,Ue)):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.plotSet,(a,o)=>(t.openBlock(),t.createElementBlock("g",{key:`serie_plot_${o}`,class:t.normalizeClass(`serie_plot_${o}`),style:t.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.plots,(i,c)=>(t.openBlock(),t.createElementBlock("g",{key:`circle_plot_${o}_${c}`},[i&&e.canShowValue(i.value)?(t.openBlock(),t.createBlock(L,{key:0,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(a.shape)?a.shape:"circle",color:e.FINAL_CONFIG.plot.useGradient?`url(#plotGradient_${o}_${r.uniqueId})`:e.FINAL_CONFIG.plot.dot.useSerieColor?a.color:e.FINAL_CONFIG.plot.dot.fill,plot:{x:e.checkNaN(i.x),y:e.checkNaN(i.y)},radius:r.selectedSerieIndex!==null&&r.selectedSerieIndex===c||r.selectedMinimapIndex!==null&&r.selectedMinimapIndex===c?(r.plotRadii.plot||6)*1.5:r.plotRadii.plot||6,stroke:e.FINAL_CONFIG.plot.dot.useSerieColor?e.FINAL_CONFIG.chart.backgroundColor:a.color,strokeWidth:e.FINAL_CONFIG.plot.dot.strokeWidth},null,8,["shape","color","plot","radius","stroke","strokeWidth"])):t.createCommentVNode("",!0),i.comment&&e.FINAL_CONFIG.chart.comments.show?(t.openBlock(),t.createElementBlock("foreignObject",{key:1,style:{overflow:"visible"},height:"12",width:e.FINAL_CONFIG.chart.comments.width,x:i.x-e.FINAL_CONFIG.chart.comments.width/2+e.FINAL_CONFIG.chart.comments.offsetX,y:i.y+e.FINAL_CONFIG.chart.comments.offsetY+6},[t.createElementVNode("div",Je,[t.renderSlot(l.$slots,"plot-comment",{plot:{...i,color:a.color,seriesIndex:o,datapointIndex:c}},void 0,!0)])],8,Ze)):t.createCommentVNode("",!0)]))),128)),Object.hasOwn(a,"useProgression")&&a.useProgression===!0&&!isNaN(e.calcLinearProgression(a.plots).trend)?(t.openBlock(),t.createElementBlock("g",Ke,[t.createElementVNode("defs",null,[t.createElementVNode("marker",{id:`plot_arrow_${o}`,markerWidth:7,markerHeight:7,refX:"0",refY:7/2,orient:"auto"},[t.createElementVNode("polygon",{points:`0 0, 7 ${7/2}, 0 7`,fill:a.color},null,8,je)],8,Qe)]),a.plots.length>1?(t.openBlock(),t.createElementBlock("line",{key:0,x1:e.calcLinearProgression(a.plots).x1,x2:e.calcLinearProgression(a.plots).x2,y1:e.forceValidValue(e.calcLinearProgression(a.plots).y1),y2:e.forceValidValue(e.calcLinearProgression(a.plots).y2),"stroke-width":1,stroke:a.color,"stroke-dasharray":2,"marker-end":`url(#plot_arrow_${o})`},null,8,$e)):t.createCommentVNode("",!0),a.plots.length>1?(t.openBlock(),t.createElementBlock("text",{key:1,"text-anchor":"middle",x:e.calcLinearProgression(a.plots).x2,y:e.calcLinearProgression(a.plots).y2-6,"font-size":r.fontSizes.plotLabels,fill:a.color},t.toDisplayString(e.dataLabel({v:e.calcLinearProgression(a.plots).trend*100,s:"%",r:2})),9,et)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],6))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.lineSet,(a,o)=>(t.openBlock(),t.createElementBlock("g",{key:`serie_line_${o}`,class:t.normalizeClass(`serie_line_${o}`),style:t.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},[a.smooth&&a.plots.length>1?(t.openBlock(),t.createElementBlock("path",{key:0,d:`M${a.curve}`,stroke:e.FINAL_CONFIG.chart.backgroundColor,"stroke-width":e.FINAL_CONFIG.line.strokeWidth+1,"stroke-dasharray":a.dashed?e.FINAL_CONFIG.line.strokeWidth*2:0,fill:"none"},null,8,tt)):a.plots.length>1?(t.openBlock(),t.createElementBlock("path",{key:1,d:`M${a.straight}`,stroke:e.FINAL_CONFIG.chart.backgroundColor,"stroke-width":e.FINAL_CONFIG.line.strokeWidth+1,"stroke-dasharray":a.dashed?e.FINAL_CONFIG.line.strokeWidth*2:0,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},null,8,lt)):t.createCommentVNode("",!0)],6))),128)),l.$slots.pattern?(t.openBlock(),t.createElementBlock("defs",rt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.safeDataset,(a,o)=>t.renderSlot(l.$slots,"pattern",t.mergeProps({key:`serie_pattern_slot_${o}`},{ref_for:!0},{...a,seriesIndex:a.slotAbsoluteIndex,patternId:`pattern_${r.uniqueId}_${o}`}),void 0,!0)),128))])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.lineSet,(a,o)=>(t.openBlock(),t.createElementBlock("g",{key:`serie_line_${o}`,class:t.normalizeClass(`serie_line_${o}`),style:t.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},[a.useArea&&a.plots.length>1?(t.openBlock(),t.createElementBlock("g",at,[a.smooth?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(a.curveAreas,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:c},[t.createElementVNode("path",{d:i,fill:e.FINAL_CONFIG.line.area.useGradient?`url(#areaGradient_${o}_${r.uniqueId})`:e.setOpacity(a.color,e.FINAL_CONFIG.line.area.opacity)},null,8,it),l.$slots.pattern?(t.openBlock(),t.createElementBlock("path",{key:0,d:i,fill:`url(#pattern_${r.uniqueId}_${a.slotAbsoluteIndex})`},null,8,st)):t.createCommentVNode("",!0)],64))),128)):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(a.area.split(";"),(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:c},[t.createElementVNode("path",{d:`M${i}Z`,fill:e.FINAL_CONFIG.line.area.useGradient?`url(#areaGradient_${o}_${r.uniqueId})`:e.setOpacity(a.color,e.FINAL_CONFIG.line.area.opacity)},null,8,ot),l.$slots.pattern?(t.openBlock(),t.createElementBlock("path",{key:0,d:`M${i}Z`,fill:`url(#pattern_${r.uniqueId}_${a.slotAbsoluteIndex})`},null,8,nt)):t.createCommentVNode("",!0)],64))),128))])):t.createCommentVNode("",!0),a.smooth&&a.plots.length>1?(t.openBlock(),t.createElementBlock("path",{key:1,d:`M${a.curve}`,stroke:a.color,"stroke-width":e.FINAL_CONFIG.line.strokeWidth,"stroke-dasharray":a.dashed?e.FINAL_CONFIG.line.strokeWidth*2:0,fill:"none","stroke-linecap":"round"},null,8,ct)):a.plots.length>1?(t.openBlock(),t.createElementBlock("path",{key:2,d:`M${a.straight}`,stroke:a.color,"stroke-width":e.FINAL_CONFIG.line.strokeWidth,"stroke-dasharray":a.dashed?e.FINAL_CONFIG.line.strokeWidth*2:0,fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},null,8,ht)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.plots,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`circle_line_${o}_${c}`},[!e.optimize.linePlot&&i&&e.canShowValue(i.value)||e.optimize.linePlot&&i&&e.canShowValue(i.value)&&(r.selectedSerieIndex!==null&&r.selectedSerieIndex===c||r.selectedMinimapIndex!==null&&r.selectedMinimapIndex===c)?(t.openBlock(),t.createBlock(L,{key:0,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(a.shape)?a.shape:"circle",color:e.FINAL_CONFIG.line.useGradient?`url(#lineGradient_${o}_${r.uniqueId})`:e.FINAL_CONFIG.line.dot.useSerieColor?a.color:e.FINAL_CONFIG.line.dot.fill,plot:{x:e.checkNaN(i.x),y:e.checkNaN(i.y)},radius:r.selectedSerieIndex!==null&&r.selectedSerieIndex===c||r.selectedMinimapIndex!==null&&r.selectedMinimapIndex===c?(r.plotRadii.line||6)*1.5:r.plotRadii.line||6,stroke:e.FINAL_CONFIG.line.dot.useSerieColor?e.FINAL_CONFIG.chart.backgroundColor:a.color,strokeWidth:e.FINAL_CONFIG.line.dot.strokeWidth},null,8,["shape","color","plot","radius","stroke","strokeWidth"])):t.createCommentVNode("",!0),i.comment&&e.FINAL_CONFIG.chart.comments.show?(t.openBlock(),t.createElementBlock("foreignObject",{key:1,style:{overflow:"visible"},height:"12",width:e.FINAL_CONFIG.chart.comments.width,x:i.x-e.FINAL_CONFIG.chart.comments.width/2+e.FINAL_CONFIG.chart.comments.offsetX,y:i.y+e.FINAL_CONFIG.chart.comments.offsetY+6},[t.createElementVNode("div",ut,[t.renderSlot(l.$slots,"plot-comment",{plot:{...i,color:a.color,seriesIndex:o,datapointIndex:c}},void 0,!0)])],8,dt)):t.createCommentVNode("",!0)],64))),128)),Object.hasOwn(a,"useProgression")&&a.useProgression===!0&&!isNaN(e.calcLinearProgression(a.plots).trend)?(t.openBlock(),t.createElementBlock("g",gt,[t.createElementVNode("defs",null,[t.createElementVNode("marker",{id:`line_arrow_${o}`,markerWidth:7,markerHeight:7,refX:"0",refY:7/2,orient:"auto"},[t.createElementVNode("polygon",{points:`0 0, 7 ${7/2}, 0 7`,fill:a.color},null,8,ft)],8,mt)]),a.plots.length>1?(t.openBlock(),t.createElementBlock("line",{key:0,x1:e.calcLinearProgression(a.plots).x1,x2:e.calcLinearProgression(a.plots).x2,y1:e.forceValidValue(e.calcLinearProgression(a.plots).y1),y2:e.forceValidValue(e.calcLinearProgression(a.plots).y2),"stroke-width":1,stroke:a.color,"stroke-dasharray":2,"marker-end":`url(#line_arrow_${o})`},null,8,Nt)):t.createCommentVNode("",!0),a.plots.length>1?(t.openBlock(),t.createElementBlock("text",{key:1,"text-anchor":"middle",x:e.calcLinearProgression(a.plots).x2,y:e.calcLinearProgression(a.plots).y2-6,"font-size":r.fontSizes.plotLabels,fill:a.color},t.toDisplayString(e.dataLabel({v:e.calcLinearProgression(a.plots).trend*100,s:"%",r:2})),9,It)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],6))),128)),(e.FINAL_CONFIG.bar.labels.show||e.FINAL_CONFIG.bar.serieName.show)&&r.mutableConfig.dataLabels.show?(t.openBlock(),t.createElementBlock("g",Ft,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.barSet,(a,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`xLabel_bar_${o}`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.plots,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`xLabel_bar_${o}_${c}`},[i&&(!Object.hasOwn(a,"dataLabels")||a.dataLabels===!0||r.selectedSerieIndex!==null&&r.selectedSerieIndex===c||r.selectedMinimapIndex!==null&&r.selectedMinimapIndex===c)&&e.FINAL_CONFIG.bar.labels.show?(t.openBlock(),t.createElementBlock("text",{key:0,x:r.mutableConfig.useIndividualScale&&r.mutableConfig.isStacked?i.x+e.slot.line/2:e.calcRectX(i)+e.calcRectWidth()/2-e.barPeriodGap/2,y:e.checkNaN(i.y)+(i.value>=0?e.FINAL_CONFIG.bar.labels.offsetY:-e.FINAL_CONFIG.bar.labels.offsetY*3),"text-anchor":"middle","font-size":r.fontSizes.plotLabels,fill:e.FINAL_CONFIG.bar.labels.color,style:t.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},t.toDisplayString(e.canShowValue(i.value)?e.applyDataLabel(e.FINAL_CONFIG.bar.labels.formatter,i.value,e.dataLabel({p:a.prefix||e.FINAL_CONFIG.chart.labels.prefix,v:i.value,s:a.suffix||e.FINAL_CONFIG.chart.labels.suffix,r:e.FINAL_CONFIG.bar.labels.rounding}),{datapoint:i,serie:a}):""),13,xt)):t.createCommentVNode("",!0),i&&e.FINAL_CONFIG.bar.serieName.show?(t.openBlock(),t.createElementBlock("text",{key:1,x:r.mutableConfig.useIndividualScale&&r.mutableConfig.isStacked?i.x+e.slot.line/2:i.x+e.calcRectWidth()*1.1,y:i.y+(i.value>0?e.FINAL_CONFIG.bar.serieName.offsetY:-e.FINAL_CONFIG.bar.serieName.offsetY*3),"text-anchor":"middle","font-size":r.fontSizes.plotLabels,fill:e.FINAL_CONFIG.bar.serieName.useSerieColor?a.color:e.FINAL_CONFIG.bar.serieName.color,"font-weight":e.FINAL_CONFIG.bar.serieName.bold?"bold":"normal",style:t.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},t.toDisplayString(e.FINAL_CONFIG.bar.serieName.useAbbreviation?e.abbreviate({source:a.name,length:e.FINAL_CONFIG.bar.serieName.abbreviationSize}):a.name),13,bt)):t.createCommentVNode("",!0)],64))),128))],64))),128))])):t.createCommentVNode("",!0),e.FINAL_CONFIG.plot.labels.show&&r.mutableConfig.dataLabels.show?(t.openBlock(),t.createElementBlock("g",kt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.plotSet,(a,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`xLabel_plot_${o}`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.plots,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`xLabel_plot_${o}_${c}`},[i&&!Object.hasOwn(a,"dataLabels")||a.dataLabels===!0||r.selectedSerieIndex!==null&&r.selectedSerieIndex===c||r.selectedMinimapIndex!==null&&r.selectedMinimapIndex===c?(t.openBlock(),t.createElementBlock("text",{key:0,x:i.x,y:i.y+e.FINAL_CONFIG.plot.labels.offsetY,"text-anchor":"middle","font-size":r.fontSizes.plotLabels,fill:e.FINAL_CONFIG.plot.labels.color,style:t.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},t.toDisplayString(e.canShowValue(i.value)?e.applyDataLabel(e.FINAL_CONFIG.plot.labels.formatter,i.value,e.dataLabel({p:a.prefix||e.FINAL_CONFIG.chart.labels.prefix,v:i.value,s:a.suffix||e.FINAL_CONFIG.chart.labels.suffix,r:e.FINAL_CONFIG.plot.labels.rounding}),{datapoint:i,serie:a}):""),13,_t)):t.createCommentVNode("",!0)],64))),128))],64))),128))])):(t.openBlock(),t.createElementBlock("g",yt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.plotSet,(a,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`xLabel_plot_${o}`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.plots,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`xLabel_plot_${o}_${c}`},[e.FINAL_CONFIG.plot.tag.followValue?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[[r.selectedMinimapIndex,r.selectedSerieIndex,r.selectedRowIndex].includes(c)&&a.useTag?(t.openBlock(),t.createElementBlock("line",{key:0,class:"vue-ui-xy-tag-plot",x1:e.drawingArea.left,x2:e.drawingArea.right,y1:i.y,y2:i.y,"stroke-width":1,"stroke-linecap":"round","stroke-dasharray":"2",stroke:a.color},null,8,wt)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i&&c===0&&a.useTag&&a.useTag==="start"?(t.openBlock(),t.createElementBlock("foreignObject",{key:0,x:i.x,y:i.y-20,height:24,width:"150",style:t.normalizeStyle(`overflow: visible; opacity:${r.selectedScale?r.selectedScale===a.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},[t.createElementVNode("div",{style:t.normalizeStyle(`padding: 3px; background:${e.setOpacity(a.color,80)};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${r.fontSizes.plotLabels}px;border-radius: 2px;`),innerHTML:e.applyDataLabel(e.FINAL_CONFIG.plot.tag.formatter,i.value,a.name,{datapoint:i,seriesIndex:c,serieName:a.name})},null,12,Ct)],12,Lt)):t.createCommentVNode("",!0),i&&c===a.plots.length-1&&a.useTag&&a.useTag==="end"?(t.openBlock(),t.createElementBlock("foreignObject",{key:1,x:i.x-a.name.length*(r.fontSizes.plotLabels/2),y:i.y-20,height:24,width:"150",style:t.normalizeStyle(`overflow: visible; opacity:${r.selectedScale?r.selectedScale===a.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},[t.createElementVNode("div",{style:t.normalizeStyle(`padding: 3px; background:${e.setOpacity(a.color,80)};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${r.fontSizes.plotLabels}px;border-radius: 2px;`),innerHTML:e.applyDataLabel(e.FINAL_CONFIG.plot.tag.formatter,i.value,a.name,{datapoint:i,seriesIndex:c,serieName:a.name})},null,12,St)],12,At)):t.createCommentVNode("",!0)],64))],64))),128))],64))),128))])),e.FINAL_CONFIG.line.labels.show&&r.mutableConfig.dataLabels.show?(t.openBlock(),t.createElementBlock("g",Ot,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.lineSet,(a,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`xLabel_line_${o}`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.plots,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`xLabel_line_${o}_${c}`},[i&&!Object.hasOwn(a,"dataLabels")||a.dataLabels===!0||r.selectedSerieIndex!==null&&r.selectedSerieIndex===c||r.selectedMinimapIndex!==null&&r.selectedMinimapIndex===c?(t.openBlock(),t.createElementBlock("text",{key:0,x:i.x,y:i.y+(i.value>=0?e.FINAL_CONFIG.line.labels.offsetY:-e.FINAL_CONFIG.line.labels.offsetY*3),"text-anchor":"middle","font-size":r.fontSizes.plotLabels,fill:e.FINAL_CONFIG.line.labels.color,style:t.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},t.toDisplayString(e.canShowValue(i.value)?e.applyDataLabel(e.FINAL_CONFIG.line.labels.formatter,i.value,e.dataLabel({p:a.prefix||e.FINAL_CONFIG.chart.labels.prefix,v:i.value,s:a.suffix||e.FINAL_CONFIG.chart.labels.suffix,r:e.FINAL_CONFIG.line.labels.rounding}),{datapoint:i,serie:a}):""),13,Gt)):t.createCommentVNode("",!0)],64))),128))],64))),128))])):(t.openBlock(),t.createElementBlock("g",vt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.lineSet,(a,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`xLabel_line_${o}`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.plots,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`xLabel_line_${o}_${c}`},[e.FINAL_CONFIG.line.tag.followValue?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[[r.selectedMinimapIndex,r.selectedSerieIndex,r.selectedRowIndex].includes(c)&&a.useTag?(t.openBlock(),t.createElementBlock("line",{key:0,class:"vue-ui-xy-tag-line",x1:e.drawingArea.left,x2:e.drawingArea.right,y1:i.y,y2:i.y,"stroke-width":1,"stroke-linecap":"round","stroke-dasharray":"2",stroke:a.color},null,8,zt)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i&&c===0&&a.useTag&&a.useTag==="start"?(t.openBlock(),t.createElementBlock("foreignObject",{key:0,x:i.x,y:i.y-20,height:24,width:"150",style:t.normalizeStyle(`overflow: visible; opacity:${r.selectedScale?r.selectedScale===a.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},[t.createElementVNode("div",{style:t.normalizeStyle(`padding: 3px; background:${e.setOpacity(a.color,80)};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${r.fontSizes.plotLabels}px;border-radius: 2px;`),innerHTML:e.applyDataLabel(e.FINAL_CONFIG.line.tag.formatter,i.value,a.name,{datapoint:i,seriesIndex:c,serieName:a.name})},null,12,Bt)],12,pt)):t.createCommentVNode("",!0),i&&c===a.plots.length-1&&a.useTag&&a.useTag==="end"?(t.openBlock(),t.createElementBlock("foreignObject",{key:1,x:i.x,y:i.y-20,height:24,width:"150",style:t.normalizeStyle(`overflow: visible; opacity:${r.selectedScale?r.selectedScale===a.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},[t.createElementVNode("div",{style:t.normalizeStyle(`padding: 3px; background:${e.setOpacity(a.color,80)};color:${e.adaptColorToBackground(a.color)};width:fit-content;font-size:${r.fontSizes.plotLabels}px;border-radius: 2px;`),innerHTML:e.applyDataLabel(e.FINAL_CONFIG.line.tag.formatter,i.value,a.name,{datapoint:i,seriesIndex:c,serieName:a.name})},null,12,Et)],12,Vt)):t.createCommentVNode("",!0)],64))],64))),128))],64))),128))])),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.lineSet,(a,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`xLabel_line_${o}`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.plots,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`xLabel_line_${o}_${c}`},[i&&c===0&&a.showSerieName&&a.showSerieName==="start"?(t.openBlock(),t.createElementBlock("text",{key:0,x:i.x-r.fontSizes.plotLabels,y:i.y,"font-size":r.fontSizes.plotLabels,"text-anchor":"end",fill:a.color,innerHTML:e.createTSpans({content:a.name,fontSize:r.fontSizes.plotLabels,fill:a.color,x:i.x-r.fontSizes.plotLabels,y:i.y,maxWords:2}),style:t.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},null,12,Mt)):t.createCommentVNode("",!0),i&&c===a.plots.length-1&&a.showSerieName&&a.showSerieName==="end"?(t.openBlock(),t.createElementBlock("text",{key:1,x:i.x+r.fontSizes.plotLabels,y:i.y,"font-size":r.fontSizes.plotLabels,"text-anchor":"start",fill:a.color,innerHTML:e.createTSpans({content:a.name,fontSize:r.fontSizes.plotLabels,fill:a.color,x:i.x+r.fontSizes.plotLabels,y:i.y,maxWords:2}),style:t.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},null,12,Tt)):t.createCommentVNode("",!0)],64))),128))],64))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.plotSet,(a,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`xLabel_plot_${o}`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.plots,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`xLabel_plot_${o}_${c}`},[i&&c===0&&a.showSerieName&&a.showSerieName==="start"?(t.openBlock(),t.createElementBlock("text",{key:0,x:i.x-r.fontSizes.plotLabels,y:i.y,"font-size":r.fontSizes.plotLabels,"text-anchor":"end",fill:a.color,innerHTML:e.createTSpans({content:a.name,fontSize:r.fontSizes.plotLabels,fill:a.color,x:i.x-r.fontSizes.plotLabels,y:i.y,maxWords:2}),style:t.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},null,12,Pt)):t.createCommentVNode("",!0),i&&c===a.plots.length-1&&a.showSerieName&&a.showSerieName==="end"?(t.openBlock(),t.createElementBlock("text",{key:1,x:i.x+r.fontSizes.plotLabels,y:i.y,"font-size":r.fontSizes.plotLabels,"text-anchor":"start",fill:a.color,innerHTML:e.createTSpans({content:a.name,fontSize:r.fontSizes.plotLabels,fill:a.color,x:i.x+r.fontSizes.plotLabels,y:i.y,maxWords:2}),style:t.normalizeStyle(`opacity:${r.selectedScale?r.selectedScale===a.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},null,12,Rt)):t.createCommentVNode("",!0)],64))),128))],64))),128)),r.mutableConfig.useIndividualScale&&!r.mutableConfig.isStacked?(t.openBlock(),t.createElementBlock(t.Fragment,{key:11},[t.createElementVNode("defs",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.allScales,(a,o)=>(t.openBlock(),t.createElementBlock("linearGradient",{id:`individual_scale_gradient_${r.uniqueId}_${o}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[t.createElementVNode("stop",{offset:"0%","stop-color":e.FINAL_CONFIG.chart.backgroundColor,"stop-opacity":"0"},null,8,Ht),t.createElementVNode("stop",{offset:"100%","stop-color":a.color,"stop-opacity":"0.2"},null,8,Wt)],8,Dt))),256))]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.allScales,(a,o)=>(t.openBlock(),t.createElementBlock("rect",{x:a.x-e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth+e.xPadding,y:e.drawingArea.top,width:e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,height:e.drawingArea.height<0?10:e.drawingArea.height,fill:r.selectedScale===a.groupId?`url(#individual_scale_gradient_${r.uniqueId}_${o})`:"transparent",onMouseenter:i=>r.selectedScale=a.groupId,onMouseleave:s[0]||(s[0]=i=>r.selectedScale=null)},null,40,qt))),256))],64)):t.createCommentVNode("",!0),t.createElementVNode("g",null,[e.FINAL_CONFIG.chart.grid.labels.axis.yLabel&&!r.mutableConfig.useIndividualScale?(t.openBlock(),t.createElementBlock("text",{key:0,"font-size":r.fontSizes.yAxis,fill:e.FINAL_CONFIG.chart.grid.labels.color,transform:`translate(${r.fontSizes.yAxis+e.FINAL_CONFIG.chart.grid.labels.axis.yLabelOffsetX}, ${e.drawingArea.top+e.drawingArea.height/2}) rotate(-90)`,"text-anchor":"middle",style:{transition:"none"}},t.toDisplayString(e.FINAL_CONFIG.chart.grid.labels.axis.yLabel),9,Yt)):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.grid.labels.axis.xLabel?(t.openBlock(),t.createElementBlock("text",{key:1,"text-anchor":"middle",x:r.width/2,y:e.drawingArea.bottom+r.fontSizes.yAxis+r.fontSizes.xAxis*1.3+e.FINAL_CONFIG.chart.grid.labels.axis.xLabelOffsetY,"font-size":r.fontSizes.yAxis,fill:e.FINAL_CONFIG.chart.grid.labels.color},t.toDisplayString(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel),9,Xt)):t.createCommentVNode("",!0)]),s[9]||(s[9]=t.createTextVNode('v-for="(label, i) in timeLabels" :key="`time_label_${i}`" ')),e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show?(t.openBlock(),t.createElementBlock("g",Ut,[l.$slots["time-label"]?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.timeLabels,(a,o)=>t.renderSlot(l.$slots,"time-label",t.mergeProps({key:`time_label_${o}`,ref_for:!0},{x:e.drawingArea.left+e.drawingArea.width/e.maxSeries*o+e.drawingArea.width/e.maxSeries/2,y:e.drawingArea.bottom+r.fontSizes.xAxis*1.3+e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset,fontSize:r.fontSizes.xAxis,fill:e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,transform:`translate(${e.drawingArea.left+e.drawingArea.width/e.maxSeries*o+e.drawingArea.width/e.maxSeries/2}, ${e.drawingArea.bottom+r.fontSizes.xAxis*1.3+e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`,absoluteIndex:a.absoluteIndex,content:a.text,textAnchor:e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation>0?"start":e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation<0?"end":"middle",show:a&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||a&&e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&(o===0||o===e.timeLabels.length-1)&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||a&&e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&r.selectedSerieIndex===o&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||a&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo&&o%Math.floor((this.slicer.end-this.slicer.start)/e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo)===0}),void 0,!0)),128)):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.timeLabels,(a,o)=>(t.openBlock(),t.createElementBlock("g",{key:`time_label_${o}`},[a&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||a&&e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&(o===0||o===e.timeLabels.length-1)&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||a&&e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&r.selectedSerieIndex===o&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||a&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo&&o%Math.floor((this.slicer.end-this.slicer.start)/e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.modulo)===0?(t.openBlock(),t.createElementBlock("text",{key:0,"text-anchor":e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation>0?"start":e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation<0?"end":"middle","font-size":r.fontSizes.xAxis,fill:e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.color,transform:`translate(${e.drawingArea.left+e.drawingArea.width/e.maxSeries*o+e.drawingArea.width/e.maxSeries/2}, ${e.drawingArea.bottom+r.fontSizes.xAxis*1.3+e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`,style:{cursor:"pointer"},onClick:()=>e.selectTimeLabel(a,o)},t.toDisplayString(a.text||""),9,Zt)):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),t.createElementVNode("g",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.maxSeries,(a,o)=>(t.openBlock(),t.createElementBlock("rect",{key:`tooltip_trap_${o}`,x:e.drawingArea.left+e.drawingArea.width/e.maxSeries*o,y:e.drawingArea.top,height:e.drawingArea.height<0?10:e.drawingArea.height,width:e.drawingArea.width/e.maxSeries<0?1e-5:e.drawingArea.width/e.maxSeries,fill:"transparent",onMouseenter:i=>e.toggleTooltipVisibility(!0,o),onMouseleave:s[1]||(s[1]=i=>e.toggleTooltipVisibility(!1)),onClick:i=>e.selectX(o)},null,40,Jt))),128))]),e.FINAL_CONFIG.chart.timeTag.show&&(![null,void 0].includes(r.selectedSerieIndex)||![null,void 0].includes(r.selectedMinimapIndex))?(t.openBlock(),t.createElementBlock("g",Kt,[(t.openBlock(),t.createElementBlock("foreignObject",{x:e.drawingArea.left+e.drawingArea.width/e.maxSeries*((r.selectedSerieIndex!==null?r.selectedSerieIndex:0)||(r.selectedMinimapIndex!==null?r.selectedMinimapIndex:0))-100+e.drawingArea.width/e.maxSeries/2,y:e.drawingArea.bottom,width:"200",height:"40",style:{overflow:"visible !important"}},[t.createElementVNode("div",{class:"vue-ui-xy-time-tag",style:t.normalizeStyle(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${e.FINAL_CONFIG.chart.timeTag.backgroundColor};color:${e.FINAL_CONFIG.chart.timeTag.color};font-size:${e.FINAL_CONFIG.chart.timeTag.fontSize}px`)},t.toDisplayString(e.timeLabels[(r.selectedSerieIndex!==null?r.selectedSerieIndex:0)||(r.selectedMinimapIndex!==null?r.selectedMinimapIndex:0)].text||(r.selectedSerieIndex!==null?r.selectedSerieIndex:0)||(r.selectedMinimapIndex!==null?r.selectedMinimapIndex:0)),5)],8,Qt)),t.createElementVNode("circle",{cx:e.drawingArea.left+e.drawingArea.width/e.maxSeries*((r.selectedSerieIndex!==null?r.selectedSerieIndex:0)||(r.selectedMinimapIndex!==null?r.selectedMinimapIndex:0))+e.drawingArea.width/e.maxSeries/2,cy:e.drawingArea.bottom,r:e.FINAL_CONFIG.chart.timeTag.circleMarker.radius,fill:e.FINAL_CONFIG.chart.timeTag.circleMarker.color},null,8,jt)])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.renderSlot(l.$slots,"svg",{svg:e.svg},void 0,!0)],14,Q)):t.createCommentVNode("",!0),l.$slots.watermark?(t.openBlock(),t.createElementBlock("div",$t,[t.renderSlot(l.$slots,"watermark",t.normalizeProps(t.guardReactiveProps({isPrinting:r.isPrinting||r.isImaging})),void 0,!0)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.lineSet,(a,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`tag_line_${o}`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.plots,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`tag_line_${o}_${c}`},[[r.selectedMinimapIndex,r.selectedSerieIndex,r.selectedRowIndex].includes(c)&&a.useTag&&a.useTag==="end"&&e.FINAL_CONFIG.line.tag.followValue?(t.openBlock(),t.createElementBlock("div",{key:0,ref_for:!0,ref:I=>e.setTagRef(o,c,I,"right","line"),class:"vue-ui-xy-tag","data-tag":"right",style:t.normalizeStyle({position:"fixed",top:e.placeXYTag({svgElement:r.svgRef,x:e.drawingArea.right+e.FINAL_CONFIG.line.tag.fontSize/1.5,y:i.y,element:r.tagRefs[`${o}_${c}_right_line`],position:"right"}).top+"px",left:e.placeXYTag({svgElement:r.svgRef,x:e.drawingArea.right+e.FINAL_CONFIG.line.tag.fontSize/1.5,y:i.y,element:r.tagRefs[`${o}_${c}_right_line`],position:"right"}).left+"px",height:"fit-content",width:"fit-content",background:a.color,color:e.adaptColorToBackground(a.color),padding:"0 6px",fontSize:e.FINAL_CONFIG.line.tag.fontSize+"px",opacity:1})},[(t.openBlock(),t.createElementBlock("svg",el,[t.createElementVNode("path",{d:"M 0,10 10,0 10,20 Z",fill:a.color,stroke:"none"},null,8,tl)])),t.createElementVNode("div",{class:"vue-ui-xy-tag-content",innerHTML:e.applyDataLabel(e.FINAL_CONFIG.line.tag.formatter,i.value,a.name,{datapoint:i,seriesIndex:c,serieName:a.name})},null,8,ll)],4)):t.createCommentVNode("",!0),[r.selectedMinimapIndex,r.selectedSerieIndex,r.selectedRowIndex].includes(c)&&a.useTag&&a.useTag==="start"&&e.FINAL_CONFIG.line.tag.followValue?(t.openBlock(),t.createElementBlock("div",{key:1,ref_for:!0,ref:I=>e.setTagRef(o,c,I,"left","line"),class:"vue-ui-xy-tag","data-tag":"left",style:t.normalizeStyle({position:"fixed",top:e.placeXYTag({svgElement:r.svgRef,x:e.drawingArea.left-e.FINAL_CONFIG.line.tag.fontSize/1.5,y:i.y,element:r.tagRefs[`${o}_${c}_left_line`],position:"left"}).top+"px",left:e.placeXYTag({svgElement:r.svgRef,x:e.drawingArea.left-e.FINAL_CONFIG.line.tag.fontSize/1.5,y:i.y,element:r.tagRefs[`${o}_${c}_left_line`],position:"left"}).left+"px",height:"fit-content",width:"fit-content",background:a.color,color:e.adaptColorToBackground(a.color),padding:"0 6px",fontSize:e.FINAL_CONFIG.line.tag.fontSize+"px",opacity:1})},[(t.openBlock(),t.createElementBlock("svg",rl,[t.createElementVNode("path",{d:"M 0,0 10,10 0,20 Z",fill:a.color,stroke:"none"},null,8,al)])),t.createElementVNode("div",{class:"vue-ui-xy-tag-content",innerHTML:e.applyDataLabel(e.FINAL_CONFIG.line.tag.formatter,i.value,a.name,{datapoint:i,seriesIndex:c,serieName:a.name})},null,8,il)],4)):t.createCommentVNode("",!0)],64))),128))],64))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.plotSet,(a,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`tag_plot_${o}`},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.plots,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`tag_plot_${o}_${c}`},[[r.selectedMinimapIndex,r.selectedSerieIndex,r.selectedRowIndex].includes(c)&&a.useTag&&a.useTag==="end"&&e.FINAL_CONFIG.plot.tag.followValue?(t.openBlock(),t.createElementBlock("div",{key:0,ref_for:!0,ref:I=>e.setTagRef(o,c,I,"right","plot"),class:"vue-ui-xy-tag","data-tag":"right",style:t.normalizeStyle({position:"fixed",top:e.placeXYTag({svgElement:r.svgRef,x:e.drawingArea.right+e.FINAL_CONFIG.plot.tag.fontSize/1.5,y:i.y,element:r.tagRefs[`${o}_${c}_right_plot`],position:"right"}).top+"px",left:e.placeXYTag({svgElement:r.svgRef,x:e.drawingArea.right+e.FINAL_CONFIG.plot.tag.fontSize/1.5,y:i.y,element:r.tagRefs[`${o}_${c}_right_plot`],position:"right"}).left+"px",height:"fit-content",width:"fit-content",background:a.color,color:e.adaptColorToBackground(a.color),padding:"0 6px",fontSize:e.FINAL_CONFIG.plot.tag.fontSize+"px",opacity:1})},[(t.openBlock(),t.createElementBlock("svg",sl,[t.createElementVNode("path",{d:"M 0,10 10,0 10,20 Z",fill:a.color,stroke:"none"},null,8,ol)])),t.createElementVNode("div",{class:"vue-ui-xy-tag-content",innerHTML:e.applyDataLabel(e.FINAL_CONFIG.plot.tag.formatter,i.value,a.name,{datapoint:i,seriesIndex:c,serieName:a.name})},null,8,nl)],4)):t.createCommentVNode("",!0),[r.selectedMinimapIndex,r.selectedSerieIndex,r.selectedRowIndex].includes(c)&&a.useTag&&a.useTag==="start"&&e.FINAL_CONFIG.plot.tag.followValue?(t.openBlock(),t.createElementBlock("div",{key:1,ref_for:!0,ref:I=>e.setTagRef(o,c,I,"left","plot"),class:"vue-ui-xy-tag","data-tag":"left",style:t.normalizeStyle({position:"fixed",top:e.placeXYTag({svgElement:r.svgRef,x:e.drawingArea.left-e.FINAL_CONFIG.plot.tag.fontSize/1.5,y:i.y,element:r.tagRefs[`${o}_${c}_left_plot`],position:"left"}).top+"px",left:e.placeXYTag({svgElement:r.svgRef,x:e.drawingArea.left-e.FINAL_CONFIG.plot.tag.fontSize/1.5,y:i.y,element:r.tagRefs[`${o}_${c}_left_plot`],position:"left"}).left+"px",height:"fit-content",width:"fit-content",background:a.color,color:e.adaptColorToBackground(a.color),padding:"0 6px",fontSize:e.FINAL_CONFIG.plot.tag.fontSize+"px",opacity:1})},[(t.openBlock(),t.createElementBlock("svg",cl,[t.createElementVNode("path",{d:"M 0,0 10,10 0,20 Z",fill:a.color,stroke:"none"},null,8,hl)])),t.createElementVNode("div",{class:"vue-ui-xy-tag-content",innerHTML:e.applyDataLabel(e.FINAL_CONFIG.plot.tag.formatter,i.value,a.name,{datapoint:i,seriesIndex:c,serieName:a.name})},null,8,dl)],4)):t.createCommentVNode("",!0)],64))),128))],64))),128)),e.isDataset?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(k,{key:6,config:{type:"line",style:{backgroundColor:e.FINAL_CONFIG.chart.backgroundColor,line:{axis:{color:e.FINAL_CONFIG.chart.grid.stroke},path:{color:e.FINAL_CONFIG.chart.grid.stroke,strokeWidth:.5}}}}},null,8,["config"])),e.FINAL_CONFIG.chart.zoom.show&&r.maxX>6&&e.isDataset?(t.openBlock(),t.createBlock(C,{ref:"chartSlicer",key:`slicer_${r.slicerStep}`,background:e.FINAL_CONFIG.chart.zoom.color,fontSize:e.FINAL_CONFIG.chart.zoom.fontSize,useResetSlot:e.FINAL_CONFIG.chart.zoom.useResetSlot,labelLeft:e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[r.slicer.start],labelRight:e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[r.slicer.end-1],textColor:e.FINAL_CONFIG.chart.color,inputColor:e.FINAL_CONFIG.chart.zoom.color,selectColor:e.FINAL_CONFIG.chart.zoom.highlightColor,borderColor:e.FINAL_CONFIG.chart.backgroundColor,minimap:e.minimap,smoothMinimap:e.FINAL_CONFIG.chart.zoom.minimap.smooth,minimapSelectedColor:e.FINAL_CONFIG.chart.zoom.minimap.selectedColor,minimapSelectionRadius:e.FINAL_CONFIG.chart.zoom.minimap.selectionRadius,minimapLineColor:e.FINAL_CONFIG.chart.zoom.minimap.lineColor,minimapSelectedColorOpacity:e.FINAL_CONFIG.chart.zoom.minimap.selectedColorOpacity,minimapSelectedIndex:r.selectedSerieIndex,minimapIndicatorColor:e.FINAL_CONFIG.chart.zoom.minimap.indicatorColor,verticalHandles:e.FINAL_CONFIG.chart.zoom.minimap.verticalHandles,max:r.maxX,min:0,valueStart:r.slicer.start,valueEnd:r.slicer.end,start:r.slicer.start,"onUpdate:start":s[2]||(s[2]=a=>r.slicer.start=a),end:r.slicer.end,"onUpdate:end":s[3]||(s[3]=a=>r.slicer.end=a),refreshStartPoint:e.FINAL_CONFIG.chart.zoom.startIndex!==null?e.FINAL_CONFIG.chart.zoom.startIndex:0,refreshEndPoint:e.FINAL_CONFIG.chart.zoom.endIndex!==null?e.FINAL_CONFIG.chart.zoom.endIndex+1:Math.max(...n.dataset.map(a=>e.largestTriangleThreeBucketsArray({data:a.series,threshold:e.FINAL_CONFIG.downsample.threshold}).length)),enableRangeHandles:e.FINAL_CONFIG.chart.zoom.enableRangeHandles,enableSelectionDrag:e.FINAL_CONFIG.chart.zoom.enableSelectionDrag,onReset:e.refreshSlicer,onTrapMouse:e.selectMinimapIndex},{"reset-action":t.withCtx(({reset:a})=>[t.renderSlot(l.$slots,"reset-action",t.normalizeProps(t.guardReactiveProps({reset:a})),void 0,!0)]),_:3},8,["background","fontSize","useResetSlot","labelLeft","labelRight","textColor","inputColor","selectColor","borderColor","minimap","smoothMinimap","minimapSelectedColor","minimapSelectionRadius","minimapLineColor","minimapSelectedColorOpacity","minimapSelectedIndex","minimapIndicatorColor","verticalHandles","max","valueStart","valueEnd","start","end","refreshStartPoint","refreshEndPoint","enableRangeHandles","enableSelectionDrag","onReset","onTrapMouse"])):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.legend.show?(t.openBlock(),t.createElementBlock("div",{key:8,ref:"chartLegend",class:"vue-ui-xy-legend",style:t.normalizeStyle(`font-size:${e.FINAL_CONFIG.chart.legend.fontSize}px`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.absoluteDataset,(a,o)=>(t.openBlock(),t.createElementBlock("div",{key:`div_legend_item_${o}`,onClick:i=>e.segregate(a),class:t.normalizeClass({"vue-ui-xy-legend-item":!0,"vue-ui-xy-legend-item-segregated":r.segregatedSeries.includes(a.id)})},[r.icons[a.type]==="line"?(t.openBlock(),t.createElementBlock("svg",gl,[t.createElementVNode("rect",{x:"0",y:"7.5",rx:"1.5",stroke:e.FINAL_CONFIG.chart.backgroundColor,"stroke-width":.5,height:"3",width:"20",fill:a.color},null,8,ml),t.createVNode(L,{plot:{x:10,y:9},radius:4,color:a.color,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(a.shape)?a.shape:"circle",stroke:e.FINAL_CONFIG.chart.backgroundColor,strokeWidth:.5},null,8,["color","shape","stroke"])])):r.icons[a.type]==="bar"?(t.openBlock(),t.createElementBlock("svg",fl,[r.icons[a.type]==="bar"&&l.$slots.pattern?(t.openBlock(),t.createElementBlock("rect",{key:0,x:"0",y:"0",rx:"1",height:"40",width:"40",stroke:"none",fill:a.color},null,8,Nl)):t.createCommentVNode("",!0),r.icons[a.type]==="bar"?(t.openBlock(),t.createElementBlock("rect",{key:1,x:"0",y:"0",rx:"1",height:"40",width:"40",stroke:"none",fill:l.$slots.pattern?`url(#pattern_${r.uniqueId}_${a.slotAbsoluteIndex})`:a.color},null,8,Il)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("svg",Fl,[t.createVNode(L,{plot:{x:6,y:6},radius:5,color:a.color,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(a.shape)?a.shape:"circle"},null,8,["color","shape"])])),t.createElementVNode("span",{style:t.normalizeStyle(`color:${e.FINAL_CONFIG.chart.legend.color}`)},t.toDisplayString(a.name),5)],10,ul))),128))],4)):(t.openBlock(),t.createElementBlock("div",xl,[t.renderSlot(l.$slots,"legend",{legend:e.absoluteDataset},void 0,!0)],512)),l.$slots.source?(t.openBlock(),t.createElementBlock("div",bl,[t.renderSlot(l.$slots,"source",{},void 0,!0)],512)):t.createCommentVNode("",!0),t.createVNode(_,{show:r.mutableConfig.showTooltip&&r.isTooltip,backgroundColor:e.FINAL_CONFIG.chart.tooltip.backgroundColor,color:e.FINAL_CONFIG.chart.tooltip.color,fontSize:e.FINAL_CONFIG.chart.tooltip.fontSize,borderRadius:e.FINAL_CONFIG.chart.tooltip.borderRadius,borderColor:e.FINAL_CONFIG.chart.tooltip.borderColor,borderWidth:e.FINAL_CONFIG.chart.tooltip.borderWidth,backgroundOpacity:e.FINAL_CONFIG.chart.tooltip.backgroundOpacity,position:e.FINAL_CONFIG.chart.tooltip.position,offsetY:e.FINAL_CONFIG.chart.tooltip.offsetY,parent:l.$refs.chart,content:e.tooltipContent,isFullscreen:r.isFullscreen,isCustom:e.FINAL_CONFIG.chart.tooltip.customFormat&&typeof e.FINAL_CONFIG.chart.tooltip.customFormat=="function"},{"tooltip-before":t.withCtx(()=>[t.renderSlot(l.$slots,"tooltip-before",t.normalizeProps(t.guardReactiveProps({...e.dataTooltipSlot})),void 0,!0)]),"tooltip-after":t.withCtx(()=>[t.renderSlot(l.$slots,"tooltip-after",t.normalizeProps(t.guardReactiveProps({...e.dataTooltipSlot})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),e.isDataset?(t.openBlock(),t.createBlock(A,{key:11,hideDetails:"",config:{open:r.mutableConfig.showTable,maxHeight:1e4,body:{backgroundColor:e.FINAL_CONFIG.chart.backgroundColor,color:e.FINAL_CONFIG.chart.color},head:{backgroundColor:e.FINAL_CONFIG.chart.backgroundColor,color:e.FINAL_CONFIG.chart.color}}},{content:t.withCtx(()=>[t.createElementVNode("div",{style:t.normalizeStyle(`${r.isPrinting?"":"max-height:400px"};overflow:auto;width:100%;margin-top:48px`)},[t.createElementVNode("div",kl,[t.withDirectives(t.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":s[4]||(s[4]=a=>r.showSparklineTable=a)},null,512),[[t.vModelCheckbox,r.showSparklineTable]]),t.createElementVNode("div",{onClick:s[5]||(s[5]=a=>r.showSparklineTable=!r.showSparklineTable),style:{cursor:"pointer"}},[t.createVNode(f,{name:"chartLine",size:20,stroke:e.FINAL_CONFIG.chart.color},null,8,["stroke"])])]),r.showSparklineTable?(t.openBlock(),t.createBlock(b,{key:`sparkline_${r.segregateStep}`,dataset:e.tableSparklineDataset,config:e.tableSparklineConfig},null,8,["dataset","config"])):(t.openBlock(),t.createBlock(y,{key:`table_${r.tableStep}`,colNames:e.dataTable.colNames,head:e.dataTable.head,body:e.dataTable.body,config:e.dataTable.config,title:`${e.FINAL_CONFIG.chart.title.text}${e.FINAL_CONFIG.chart.title.subtitle.text?` : ${e.FINAL_CONFIG.chart.title.subtitle.text}`:""}`,onClose:s[6]||(s[6]=a=>r.mutableConfig.showTable=!1)},{th:t.withCtx(({th:a})=>[t.createElementVNode("div",{innerHTML:a},null,8,_l)]),td:t.withCtx(({td:a})=>[t.createTextVNode(t.toDisplayString(isNaN(Number(a))?a:e.dataLabel({p:e.FINAL_CONFIG.chart.labels.prefix,v:a,s:e.FINAL_CONFIG.chart.labels.suffix,r:e.FINAL_CONFIG.table.rounding})),1)]),_:1},8,["colNames","head","body","config","title"]))],4)]),_:1},8,["config"])):t.createCommentVNode("",!0)],46,J)}const Ll=X._export_sfc(Z,[["render",yl],["__scopeId","data-v-0ac0eb6b"]]);exports.default=Ll;