vue-data-ui 2.3.90 → 2.3.91

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 (182) hide show
  1. package/dist/{Arrow-C_Fnn6al.js → Arrow-CHTslrAF.js} +1 -1
  2. package/dist/{Arrow-D1pymKl6.cjs → Arrow-DpuaFuue.cjs} +1 -1
  3. package/dist/{BaseIcon-BMfi5PnL.js → BaseIcon-DfaCNBgc.js} +1 -1
  4. package/dist/{BaseIcon-CnFXP_n9.cjs → BaseIcon-JWGtHqTA.cjs} +1 -1
  5. package/dist/{DataTable-Cmbf3abv.js → DataTable-BKc3r3k3.js} +2 -2
  6. package/dist/{DataTable-cOEA6Z37.cjs → DataTable-CnkdsvIo.cjs} +1 -1
  7. package/dist/{Legend-XqP6-7Ac.cjs → Legend-BQJV6Xk4.cjs} +1 -1
  8. package/dist/{Legend-CCq0mNRg.js → Legend-WNL92WSx.js} +1 -1
  9. package/dist/PackageVersion-D9PU8glB.js +10 -0
  10. package/dist/PackageVersion-LdLhc8hQ.cjs +1 -0
  11. package/dist/{Shape-B51JGReT.cjs → Shape-CgW0V2Og.cjs} +1 -1
  12. package/dist/{Shape-BNocET8E.js → Shape-DPvoEBm9.js} +1 -1
  13. package/dist/{Slicer-BKszZXjM.js → Slicer-DE9nFM_c.js} +2 -2
  14. package/dist/{Slicer-Bc7OWCcl.cjs → Slicer-Dma3nlzi.cjs} +1 -1
  15. package/dist/{Title-BaR4XyXa.cjs → Title-Bg_BK11V.cjs} +1 -1
  16. package/dist/{Title-DlBwa3-X.js → Title-CECK1w9L.js} +1 -1
  17. package/dist/{Tooltip-w32n-8sY.js → Tooltip-Ci3AprCm.js} +1 -1
  18. package/dist/{Tooltip-CX57w9Q9.cjs → Tooltip-lM1Jzkza.cjs} +1 -1
  19. package/dist/{index-B8EMsnjU.cjs → index-BhH89oF0.cjs} +1 -1
  20. package/dist/{index-DQl1TFXa.js → index-mBy4elhB.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/{useNestedProp-lmeFt-ev.js → useNestedProp-BrIRtQj1.js} +1 -1
  23. package/dist/{useNestedProp-DlCe_zZz.cjs → useNestedProp-m8IH8hWW.cjs} +1 -1
  24. package/dist/{usePrinter-BmXrEJ99.cjs → usePrinter-B8jr_V3b.cjs} +1 -1
  25. package/dist/{usePrinter-DgKGVvJC.js → usePrinter-Ck-yukK2.js} +1 -1
  26. package/dist/{vue-data-ui-DQurgvN8.cjs → vue-data-ui-BgaY7Noy.cjs} +1 -1
  27. package/dist/{vue-data-ui-Byrb_Y3k.js → vue-data-ui-BuL-2aYA.js} +57 -57
  28. package/dist/vue-data-ui.cjs +1 -1
  29. package/dist/vue-data-ui.js +1 -1
  30. package/dist/vue-ui-3d-bar-C9a-AsIX.cjs +19 -0
  31. package/dist/{vue-ui-3d-bar-CM_usP2U.js → vue-ui-3d-bar-Cv-56A3m.js} +148 -146
  32. package/dist/{vue-ui-accordion-DRI-fN6I.cjs → vue-ui-accordion-Bzq1iTL2.cjs} +1 -1
  33. package/dist/{vue-ui-accordion-CroZrm7T.js → vue-ui-accordion-dyF20BlD.js} +3 -3
  34. package/dist/{vue-ui-age-pyramid-BZU-WI_a.js → vue-ui-age-pyramid-BqsDR6uw.js} +83 -81
  35. package/dist/vue-ui-age-pyramid-DDPU8QV8.cjs +1 -0
  36. package/dist/{vue-ui-annotator-BpzM25VY.cjs → vue-ui-annotator-B9HxrEVE.cjs} +1 -1
  37. package/dist/{vue-ui-annotator-CsfYgmrC.js → vue-ui-annotator-CkJsRR0r.js} +1 -1
  38. package/dist/{vue-ui-candlestick-BPi7aBEf.js → vue-ui-candlestick-B8eYA2g0.js} +113 -111
  39. package/dist/vue-ui-candlestick-DbbbJa-d.cjs +2 -0
  40. package/dist/{vue-ui-carousel-table-tbviS8Fo.js → vue-ui-carousel-table-BCiTg3Ok.js} +4 -4
  41. package/dist/{vue-ui-carousel-table-CpodLcgX.cjs → vue-ui-carousel-table-CCWGcKb7.cjs} +1 -1
  42. package/dist/{vue-ui-chestnut-ql9yEs6j.js → vue-ui-chestnut-DI-N69Ad.js} +161 -159
  43. package/dist/vue-ui-chestnut-rsWP_sXY.cjs +6 -0
  44. package/dist/{vue-ui-cursor-Dw7_R_Pd.js → vue-ui-cursor-BUzJk1oC.js} +2 -2
  45. package/dist/{vue-ui-cursor-B3w0SgJP.cjs → vue-ui-cursor-wY14Z-Vd.cjs} +1 -1
  46. package/dist/{vue-ui-dashboard-enrB5B3P.cjs → vue-ui-dashboard-Cf8TYbAr.cjs} +1 -1
  47. package/dist/{vue-ui-dashboard-DAY0cdat.js → vue-ui-dashboard-CiG3kXLl.js} +2 -2
  48. package/dist/{vue-ui-digits-3Q6uZCzD.cjs → vue-ui-digits-BBho1-xO.cjs} +1 -1
  49. package/dist/{vue-ui-digits-DN6CRpXc.js → vue-ui-digits-DZJI0YuX.js} +2 -2
  50. package/dist/{vue-ui-donut-B3yDJvZI.js → vue-ui-donut-CBG9ECp8.js} +118 -116
  51. package/dist/vue-ui-donut-D4WpeX9W.cjs +1 -0
  52. package/dist/vue-ui-donut-evolution-BVnSrr-b.cjs +1 -0
  53. package/dist/{vue-ui-donut-evolution-CzBvVRKG.js → vue-ui-donut-evolution-BtTiBfLb.js} +102 -100
  54. package/dist/vue-ui-dumbbell-BQKiB9yH.cjs +9 -0
  55. package/dist/{vue-ui-dumbbell-vQ5YRGwJ.js → vue-ui-dumbbell-DlEN2c_X.js} +88 -86
  56. package/dist/{vue-ui-flow-DAOKURA6.js → vue-ui-flow-CXqGztWj.js} +65 -63
  57. package/dist/vue-ui-flow-DfMNmttZ.cjs +1 -0
  58. package/dist/vue-ui-galaxy-CGn5nkD5.cjs +1 -0
  59. package/dist/{vue-ui-galaxy-B86BK1JM.js → vue-ui-galaxy-xI38Kf-S.js} +82 -80
  60. package/dist/{vue-ui-gauge-n8TilFo9.js → vue-ui-gauge-BEludqYn.js} +56 -54
  61. package/dist/vue-ui-gauge-Bz-OSNOJ.cjs +1 -0
  62. package/dist/{vue-ui-gizmo-CFIBlG4V.js → vue-ui-gizmo-BB28OTr1.js} +32 -30
  63. package/dist/vue-ui-gizmo-CZZB7YgY.cjs +1 -0
  64. package/dist/vue-ui-heatmap-BtUvE7rK.cjs +1 -0
  65. package/dist/{vue-ui-heatmap-ZkmD9EAg.js → vue-ui-heatmap-mywZXUV8.js} +99 -97
  66. package/dist/{vue-ui-kpi-D6Myg0y1.cjs → vue-ui-kpi-CEAGjnkj.cjs} +1 -1
  67. package/dist/{vue-ui-kpi-CtJ3t6GX.js → vue-ui-kpi-zr721ux9.js} +3 -3
  68. package/dist/{vue-ui-mini-loader-Cosy9XjR.js → vue-ui-mini-loader-9zyuKIpT.js} +2 -2
  69. package/dist/{vue-ui-mini-loader-BjJ_YYZj.cjs → vue-ui-mini-loader-DBFAzGb2.cjs} +1 -1
  70. package/dist/{vue-ui-molecule-DTFOBjgC.js → vue-ui-molecule-Bv_ppQig.js} +77 -75
  71. package/dist/vue-ui-molecule-DltNL0kV.cjs +1 -0
  72. package/dist/{vue-ui-mood-radar-J_dI9m_i.js → vue-ui-mood-radar-CIK2Xohn.js} +76 -74
  73. package/dist/vue-ui-mood-radar-CQkF2Rp1.cjs +1 -0
  74. package/dist/{vue-ui-nested-donuts-CtqU4xxu.js → vue-ui-nested-donuts-f-cMx3iQ.js} +112 -110
  75. package/dist/vue-ui-nested-donuts-vHr23QlH.cjs +17 -0
  76. package/dist/vue-ui-onion-B6ZrryDW.cjs +5 -0
  77. package/dist/{vue-ui-onion-BMo0Ye54.js → vue-ui-onion-CmUXelhy.js} +82 -80
  78. package/dist/vue-ui-parallel-coordinate-plot-BU0yoxD9.cjs +8 -0
  79. package/dist/{vue-ui-parallel-coordinate-plot-yKLZbDS5.js → vue-ui-parallel-coordinate-plot-h9dS2u_k.js} +91 -89
  80. package/dist/{vue-ui-quadrant-BrRasVaj.js → vue-ui-quadrant-DNT_0fTL.js} +141 -139
  81. package/dist/vue-ui-quadrant-DPPXilUd.cjs +1 -0
  82. package/dist/vue-ui-quick-chart-1gG267X0.cjs +15 -0
  83. package/dist/{vue-ui-quick-chart-uH33UIjX.js → vue-ui-quick-chart-T6C0BTyw.js} +166 -164
  84. package/dist/{vue-ui-radar-BJ3qMHP4.js → vue-ui-radar-CfCHXIYJ.js} +89 -87
  85. package/dist/vue-ui-radar-DpzjMFZD.cjs +1 -0
  86. package/dist/{vue-ui-rating-BEWaQMBR.cjs → vue-ui-rating-DYcT_LS-.cjs} +1 -1
  87. package/dist/{vue-ui-rating-BFskhiyh.js → vue-ui-rating-DuRLpMwk.js} +2 -2
  88. package/dist/vue-ui-relation-circle-BMrPtD2n.cjs +1 -0
  89. package/dist/{vue-ui-relation-circle-DdK4qk0P.js → vue-ui-relation-circle-WmZMKqHL.js} +54 -52
  90. package/dist/{vue-ui-rings-BqHSq6Wt.js → vue-ui-rings-Ce0Z_osd.js} +97 -93
  91. package/dist/{vue-ui-rings-D_T_D6AS.cjs → vue-ui-rings-CkYl3uce.cjs} +2 -2
  92. package/dist/vue-ui-scatter-Cjie2D-t.cjs +1 -0
  93. package/dist/{vue-ui-scatter-C0gfF6NJ.js → vue-ui-scatter-DY9EpoGP.js} +132 -130
  94. package/dist/{vue-ui-screenshot-CbvIYfYU.cjs → vue-ui-screenshot-BCFym6go.cjs} +1 -1
  95. package/dist/{vue-ui-screenshot-6tOLntj9.js → vue-ui-screenshot-lQLJHBQ2.js} +1 -1
  96. package/dist/vue-ui-skeleton-Cf89QIhl.cjs +41 -0
  97. package/dist/{vue-ui-skeleton-BVJGmYjj.js → vue-ui-skeleton-DDhwPZd_.js} +423 -388
  98. package/dist/{vue-ui-smiley-CUgH2tnV.cjs → vue-ui-smiley-DMA6fgGr.cjs} +1 -1
  99. package/dist/{vue-ui-smiley-2EoxEmXW.js → vue-ui-smiley-xxMwBT9c.js} +2 -2
  100. package/dist/vue-ui-spark-trend-Btj_H6fa.cjs +1 -0
  101. package/dist/{vue-ui-spark-trend-DjNPMOkN.js → vue-ui-spark-trend-CLHTqp94.js} +42 -40
  102. package/dist/{vue-ui-sparkbar-BBm3DE1P.js → vue-ui-sparkbar-Btk6snt4.js} +53 -51
  103. package/dist/vue-ui-sparkbar-CKrbBVKQ.cjs +1 -0
  104. package/dist/{vue-ui-sparkgauge-IIW24eJQ.js → vue-ui-sparkgauge-DKJtFTSv.js} +31 -29
  105. package/dist/vue-ui-sparkgauge-DfWLtFYS.cjs +1 -0
  106. package/dist/{vue-ui-sparkhistogram-DVXxA6ji.js → vue-ui-sparkhistogram-JRLlw9EX.js} +69 -67
  107. package/dist/vue-ui-sparkhistogram-wHJ-8zVV.cjs +1 -0
  108. package/dist/vue-ui-sparkline-DElVaalm.cjs +1 -0
  109. package/dist/{vue-ui-sparkline-CH89kcaa.js → vue-ui-sparkline-tBF9iaNm.js} +65 -63
  110. package/dist/{vue-ui-sparkstackbar-Bcod5yu_.js → vue-ui-sparkstackbar-BS9I8en7.js} +46 -44
  111. package/dist/vue-ui-sparkstackbar-tZa2IYHP.cjs +1 -0
  112. package/dist/{vue-ui-stackbar-Djjcgtyg.js → vue-ui-stackbar-UiX8q4yL.js} +128 -126
  113. package/dist/vue-ui-stackbar-rOa0atA9.cjs +6 -0
  114. package/dist/{vue-ui-strip-plot-ByPCQ4xk.js → vue-ui-strip-plot-BOkfg5vB.js} +78 -76
  115. package/dist/vue-ui-strip-plot-hRy6QRHK.cjs +1 -0
  116. package/dist/{vue-ui-table-B6Kpda3o.cjs → vue-ui-table-B9dc0l0k.cjs} +1 -1
  117. package/dist/{vue-ui-table-D8Sm2fzX.js → vue-ui-table-Dtfv71zG.js} +1 -1
  118. package/dist/{vue-ui-table-heatmap-mlq_J56h.js → vue-ui-table-heatmap-BMl-sP5Q.js} +4 -4
  119. package/dist/{vue-ui-table-heatmap-DjEN0l12.cjs → vue-ui-table-heatmap-DUQEHohs.cjs} +1 -1
  120. package/dist/{vue-ui-table-sparkline-DByva7rj.cjs → vue-ui-table-sparkline-BVnGb-lu.cjs} +1 -1
  121. package/dist/{vue-ui-table-sparkline-DF29_qZk.js → vue-ui-table-sparkline-BeunspIj.js} +5 -5
  122. package/dist/vue-ui-thermometer-A3Xxn5Ly.cjs +1 -0
  123. package/dist/{vue-ui-thermometer-BKf-rGuS.js → vue-ui-thermometer-Cb9ALBj_.js} +80 -78
  124. package/dist/{vue-ui-timer-B8jW8M60.js → vue-ui-timer-2PRDq1w6.js} +62 -60
  125. package/dist/vue-ui-timer-DltmIdrq.cjs +64 -0
  126. package/dist/vue-ui-tiremarks-BTlJcW4v.cjs +1 -0
  127. package/dist/{vue-ui-tiremarks-riEfve5q.js → vue-ui-tiremarks-Bse3PMGV.js} +51 -49
  128. package/dist/vue-ui-treemap-Cv_mHK8H.cjs +1 -0
  129. package/dist/{vue-ui-treemap-5F0ynBnb.js → vue-ui-treemap-D8fjVYq0.js} +93 -91
  130. package/dist/{vue-ui-vertical-bar-CxRBvHZy.js → vue-ui-vertical-bar-BVldPT8k.js} +110 -108
  131. package/dist/vue-ui-vertical-bar-ZgJq3_CI.cjs +4 -0
  132. package/dist/vue-ui-waffle-BpeGEjCl.cjs +1 -0
  133. package/dist/{vue-ui-waffle-B8G4i5WH.js → vue-ui-waffle-wikAjwZY.js} +72 -70
  134. package/dist/vue-ui-wheel-BlgfdULS.cjs +1 -0
  135. package/dist/{vue-ui-wheel-DmzkGeCY.js → vue-ui-wheel-D5qyBs0Y.js} +43 -41
  136. package/dist/{vue-ui-word-cloud-dMBTVGVk.js → vue-ui-word-cloud-Bcdl2iE-.js} +60 -58
  137. package/dist/vue-ui-word-cloud-sNzfl_Tq.cjs +1 -0
  138. package/dist/{vue-ui-xy-iUQyB_PL.js → vue-ui-xy-CUjllUSv.js} +507 -504
  139. package/dist/vue-ui-xy-FHLTc7xG.cjs +3 -0
  140. package/dist/{vue-ui-xy-canvas-CCwtKYgd.cjs → vue-ui-xy-canvas-BJUnRVuf.cjs} +1 -1
  141. package/dist/{vue-ui-xy-canvas-nraUv13Y.js → vue-ui-xy-canvas-BkOlPU8e.js} +10 -10
  142. package/package.json +1 -1
  143. package/dist/vue-ui-3d-bar-Ce-Re50D.cjs +0 -19
  144. package/dist/vue-ui-age-pyramid-C08rTXJn.cjs +0 -1
  145. package/dist/vue-ui-candlestick-m8fjxbj-.cjs +0 -2
  146. package/dist/vue-ui-chestnut-Y0gQvbbf.cjs +0 -6
  147. package/dist/vue-ui-donut-CCm7GJsm.cjs +0 -1
  148. package/dist/vue-ui-donut-evolution-DiN8Jm0n.cjs +0 -1
  149. package/dist/vue-ui-dumbbell-lb72j7bY.cjs +0 -9
  150. package/dist/vue-ui-flow-B5Gxaqvl.cjs +0 -1
  151. package/dist/vue-ui-galaxy-Ck5cPkrh.cjs +0 -1
  152. package/dist/vue-ui-gauge-BwIhwSUw.cjs +0 -1
  153. package/dist/vue-ui-gizmo-DrGaoiM_.cjs +0 -1
  154. package/dist/vue-ui-heatmap-BLc6thGZ.cjs +0 -1
  155. package/dist/vue-ui-molecule-CAj1HFit.cjs +0 -1
  156. package/dist/vue-ui-mood-radar-CV2in2wO.cjs +0 -1
  157. package/dist/vue-ui-nested-donuts-4vO23n9z.cjs +0 -17
  158. package/dist/vue-ui-onion-B3mtn6xf.cjs +0 -5
  159. package/dist/vue-ui-parallel-coordinate-plot-DFMbhLY9.cjs +0 -8
  160. package/dist/vue-ui-quadrant-CpJX1Jwa.cjs +0 -1
  161. package/dist/vue-ui-quick-chart-CTxsI2tk.cjs +0 -15
  162. package/dist/vue-ui-radar-DFjsXmJ3.cjs +0 -1
  163. package/dist/vue-ui-relation-circle-DXuKdCih.cjs +0 -1
  164. package/dist/vue-ui-scatter-DPByFMNL.cjs +0 -1
  165. package/dist/vue-ui-skeleton-Bli7jLZ7.cjs +0 -41
  166. package/dist/vue-ui-spark-trend-sfgUJ32Q.cjs +0 -1
  167. package/dist/vue-ui-sparkbar-CKWYzriN.cjs +0 -1
  168. package/dist/vue-ui-sparkgauge-D0q9F9Nz.cjs +0 -1
  169. package/dist/vue-ui-sparkhistogram-CywhBkm2.cjs +0 -1
  170. package/dist/vue-ui-sparkline-Besp8Ffy.cjs +0 -1
  171. package/dist/vue-ui-sparkstackbar-qXm8Ozzm.cjs +0 -1
  172. package/dist/vue-ui-stackbar-D0fGVkCR.cjs +0 -6
  173. package/dist/vue-ui-strip-plot-XDj8rL9m.cjs +0 -1
  174. package/dist/vue-ui-thermometer-C3T56ras.cjs +0 -1
  175. package/dist/vue-ui-timer-B_ZvV1ON.cjs +0 -64
  176. package/dist/vue-ui-tiremarks-DRbSpTgq.cjs +0 -1
  177. package/dist/vue-ui-treemap-CtKUTs2G.cjs +0 -1
  178. package/dist/vue-ui-vertical-bar-BBIWdeXH.cjs +0 -4
  179. package/dist/vue-ui-waffle-9a3C4Nj-.cjs +0 -1
  180. package/dist/vue-ui-wheel-CErxlmqw.cjs +0 -1
  181. package/dist/vue-ui-word-cloud-nmx846H2.cjs +0 -1
  182. package/dist/vue-ui-xy-CLYgZk3Y.cjs +0 -3
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-B8EMsnjU.cjs"),ie=require("./Title-BaR4XyXa.cjs"),j=require("./usePrinter-BmXrEJ99.cjs"),O=require("./useResponsive-B3TrDDIG.cjs"),ce=require("./vue-ui-accordion-DRI-fN6I.cjs"),de=require("./DataTable-cOEA6Z37.cjs"),ve=require("./BaseIcon-CnFXP_n9.cjs"),Y=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),H=require("./useNestedProp-DlCe_zZz.cjs"),he=i=>(e.pushScopeId("data-v-3fd7d274"),i=i(),e.popScopeId(),i),me={"data-html2canvas-ignore":""},fe={key:0,class:"reset-wrapper"},pe={key:1,class:"reset-wrapper"},ge={class:"mono-slicer"},ye=he(()=>e.createElementVNode("div",{class:"slider-track"},null,-1)),be=["min","max","value"],Ce={__name:"MonoSlicer",props:{min:{type:Number,default:0},max:{type:Number,default:0},inputColor:{type:String,default:"#1A1A1A"},background:{type:String,default:"#FFFFFF"},borderColor:{type:String,default:"#FFFFFF"},selectColor:{type:String,default:"#4A4A4A"},textColor:{type:String,default:"#1A1A1A"},useResetSlot:{type:Boolean,default:!1},value:{type:Number,default:0},source:{type:Number,default:0}},emits:["update:value","reset"],setup(i,{emit:$}){const r=i;e.useCssVars(f=>({"90ad3208":T.value,"4f9eef70":w.value,"6e07ae3e":k.value,"2fd430a0":i.selectColor,"6b8169a4":p.value}));const T=e.computed(()=>r.inputColor),p=e.computed(()=>r.background),k=e.computed(()=>`${r.selectColor}33`),w=e.computed(()=>r.borderColor);function x(){$("reset")}const g=e.computed(()=>{const f=r.max-r.min,h=0,y=(r.value-r.min)/f*100;return{left:`${h}%`,width:`${y-h}%`,background:r.selectColor}});return(f,h)=>(e.openBlock(),e.createElementBlock("div",me,[i.value!==i.source?(e.openBlock(),e.createElementBlock("div",fe,[i.useResetSlot?e.renderSlot(f.$slots,"reset-action",{key:1,reset:x},void 0,!0):(e.openBlock(),e.createElementBlock("button",{key:0,"data-cy-reset":"",tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",onClick:x},[e.createVNode(ve.default,{name:"refresh",stroke:i.textColor},null,8,["stroke"])]))])):(e.openBlock(),e.createElementBlock("div",pe)),e.createElementVNode("div",ge,[ye,e.createElementVNode("div",{class:"range-highlight",style:e.normalizeStyle(g.value)},null,4),e.createElementVNode("input",{type:"range",min:i.min,max:i.max,value:Number(i.value),onInput:h[0]||(h[0]=y=>$("update:value",Number(y.target.value)))},null,40,be)])]))}},ke=Y._export_sfc(Ce,[["__scopeId","data-v-3fd7d274"]]),we=["id"],xe=["xmlns","viewBox"],Se=["transform"],$e=["fill","font-weight","x","y","font-size","transform"],Ne={key:3,class:"vue-data-ui-watermark"},Be=["innerHTML"],Fe={__name:"vue-ui-word-cloud",props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,String],default(){return[]}}},setup(i,{expose:$}){const r=i,{vue_ui_word_cloud:T}=u.useConfig(),p=e.computed({get(){return!!r.dataset&&r.dataset.length},set(o){return o}}),k=e.ref(typeof r.dataset=="string"?u.createWordCloudDatasetFromPlainText(r.dataset):r.dataset.map(o=>({...o,value:u.checkNaN(o.value)}))),w=e.ref(u.createUid()),x=e.ref(0),g=e.ref(null),f=e.ref(null),h=e.ref(0),y=e.ref(0),t=e.computed({get:()=>A(),set:o=>o});function A(){const o=H.useNestedProp({userConfig:r.config,defaultConfig:T});return o.theme?{...H.useNestedProp({userConfig:u.themes.vue_ui_word_cloud[o.theme]||r.config,defaultConfig:o}),customPalette:u.themePalettes[o.theme]||u.palette}:o}e.watch(()=>r.config,o=>{t.value=A(),R(),h.value+=1,y.value+=1,v.value=t.value.style.chart.width},{deep:!0});const M=e.ref(null),v=e.ref(t.value.style.chart.width),s=e.ref({width:v.value,height:t.value.style.chart.height/t.value.style.chart.height*v.value,maxFontSize:t.value.style.chart.words.maxFontSize,minFontSize:t.value.style.chart.words.minFontSize}),J=O.throttle(()=>{const{width:o,height:a}=O.useResponsive({chart:g.value,title:t.value.style.chart.title.text?f.value:null,slicer:t.value.style.chart.zoom.show&&M.value});s.value.width=o,s.value.height=a,e.nextTick(E)});e.watch(()=>v.value,()=>{K()});const K=O.debounce(()=>{s.value.width=Number(v.value),s.value.height=t.value.style.chart.height/t.value.style.chart.height*Number(v.value),E()},10);function Q(){v.value=t.value.style.chart.width}const N=e.ref(null);e.onMounted(()=>{R()});function R(){u.objectIsEmpty(r.dataset)?u.error({componentName:"VueUiWordCloud",type:"dataset"}):k.value.forEach((o,a)=>{u.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","value"]}).forEach(l=>{p.value=!1,u.error({componentName:"VueUiWordCloud",type:"datasetSerieAttribute",property:l,index:a})})}),t.value.responsive&&(N.value=new ResizeObserver(J),N.value.observe(g.value.parentNode))}e.onBeforeUnmount(()=>{N.value&&N.value.disconnect()});const{isPrinting:q,isImaging:D,generatePdf:U,generateImage:W}=j.usePrinter({elementId:`wordCloud_${w.value}`,fileName:t.value.style.chart.title.text||"vue-ui-word-cloud"}),B=e.ref({showTable:t.value.table.show});function Z(o,a,l="Arial"){const n=document.createElement("canvas").getContext("2d");return n.font=`${a}px ${t.value.style.chart.words.bold?"bold":"normal"} ${l}`,{width:n.measureText(o).width+t.value.style.chart.words.proximity,height:a}}function ee(o,a){return o.x<a.x+a.width&&o.x+o.width>a.x&&o.y<a.y+a.height&&o.y+o.height>a.y}function te(o,a,l){const c=[],n={x:-a/2,y:-l/2,width:a,height:l},d=0,b=0;return o.forEach(C=>{let I=!1;for(let z=0;z<Math.max(a,l)/2&&!I;z+=t.value.style.chart.words.packingWeight)for(let V=0;V<360&&!I;V+=t.value.style.chart.words.packingWeight){const X=V*Math.PI/180,ae=d+z*Math.cos(X)-C.width/2,ne=b+z*Math.sin(X)-C.height/2,m={...C,x:ae,y:ne},re=m.x>=n.x&&m.y>=n.y&&m.x+m.width<=n.x+n.width&&m.y+m.height<=n.y+n.height,se=c.some(ue=>ee(m,ue));re&&!se&&(c.push(m),I=!0)}}),c}const S=e.ref([]);e.watch(()=>r.dataset,E,{immediate:!0});function E(){const o=k.value.map(n=>n.value),a=Math.max(...o),l=Math.min(...o),c=k.value.map((n,d)=>{const b=(n.value-l)/(a-l)*(s.value.maxFontSize-s.value.minFontSize)+s.value.minFontSize,C=Z(n.name,b);return{...n,id:u.createUid(),fontSize:b,width:C.width,height:C.height,color:t.value.style.chart.words.usePalette?t.value.customPalette[d]||t.value.customPalette[d%t.value.customPalette.length]||u.palette[d]||u.palette[d%u.palette.length]:t.value.style.chart.words.color}});S.value=te(c,s.value.width,s.value.height).sort((n,d)=>d.fontSize-n.fontSize)}const F=e.computed(()=>{const o=S.value.map(l=>({name:l.name,color:l.color})),a=S.value.map(l=>l.value);return{head:o,body:a}});function G(){e.nextTick(()=>{const o=F.value.head.map((c,n)=>[[c.name],[F.value.body[n]]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],[t.value.table.columnNames.value]]].concat(o),l=u.createCsvContent(a);u.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-word-cloud"})})}const P=e.computed(()=>{const o=[t.value.table.columnNames.series,t.value.table.columnNames.value],a=F.value.head.map((n,d)=>{const b=u.dataLabel({p:t.value.table.td.prefix,v:F.value.body[d],s:t.value.table.td.suffix,r:t.value.table.td.roundingValue});return[{color:n.color,name:n.name},b]}),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value],head:o,body:a,config:l}}),_=e.ref(!1);function oe(o){_.value=o,x.value+=1}function le(){return S.value}function L(){B.value.showTable=!B.value.showTable}return $({getData:le,generateCsv:G,generatePdf:U,generateImage:W,toggleTable:L}),(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-word-cloud",ref_key:"wordCloudChart",ref:g,id:`wordCloud_${w.value}`,style:e.normalizeStyle(`width: 100%; font-family:${t.value.style.fontFamily};background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`)},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:f,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(ie._sfc_main,{key:`title_${h.value}`,config:{title:{...t.value.style.chart.title},subtitle:{...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&p.value?(e.openBlock(),e.createBlock(j.UserOptions,{ref:"details",key:`user_option_${x.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(q),isImaging:e.unref(D),uid:w.value,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:_.value,titles:{...t.value.userOptions.buttonTitles},chartElement:g.value,position:t.value.userOptions.position,onToggleFullscreen:oe,onGeneratePdf:e.unref(U),onGenerateCsv:G,onGenerateImage:e.unref(W),onToggleTable:L},e.createSlots({_:2},[o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:c})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:c})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("svg",{key:2,class:e.normalizeClass({"vue-data-ui-fullscreen--on":_.value,"vue-data-ui-fulscreen--off":!_.value}),xmlns:e.unref(u.XMLNS),viewBox:`0 0 ${s.value.width<=0?10:s.value.width} ${s.value.height<=0?10:s.value.height}`,style:"overflow:visible;background:transparent;"},[e.createElementVNode("g",{transform:`translate(${(s.value.width<=0?10:s.value.width)/2}, ${(s.value.height<=0?10:s.value.height)/2})`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(l,c)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(),e.createElementBlock("text",{fill:l.color,"font-weight":t.value.style.chart.words.bold?"bold":"normal",key:c,x:l.x,y:l.y,"font-size":l.fontSize,transform:`translate(${l.width/2}, ${l.height/2})`,style:e.normalizeStyle(`animation-delay:${c*t.value.animationDelayMs}ms !important`),class:e.normalizeClass({animated:t.value.useCssAnimation}),"text-anchor":"middle","dominant-baseline":"middle"},e.toDisplayString(l.name),15,$e))]))),256))],8,Se),e.renderSlot(o.$slots,"svg",{svg:{height:s.value.height,width:s.value.width}},void 0,!0)],10,xe)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ne,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(q)||e.unref(D)})),void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"chartSlicer",ref:M,style:"width:100%;background:transparent","data-html2canvas-ignore":""},[t.value.style.chart.zoom.show?(e.openBlock(),e.createBlock(ke,{key:0,value:v.value,"onUpdate:value":a[0]||(a[0]=l=>v.value=l),min:100,max:t.value.style.chart.width*3,textColor:t.value.style.chart.color,inputColor:t.value.style.chart.zoom.color,selectColor:t.value.style.chart.zoom.highlightColor,useResetSlot:t.value.style.chart.zoom.useResetSlot,background:t.value.style.chart.zoom.color,borderColor:t.value.style.chart.backgroundColor,source:t.value.style.chart.width,onReset:Q},{"reset-action":e.withCtx(({reset:l})=>[e.renderSlot(o.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:l})),void 0,!0)]),_:3},8,["value","max","textColor","inputColor","selectColor","useResetSlot","background","borderColor","source"])):e.createCommentVNode("",!0)],512),p.value?(e.openBlock(),e.createBlock(ce.default,{key:4,hideDetails:"",config:{open:B.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(de.DataTable,{key:`table_${y.value}`,colNames:P.value.colNames,head:P.value.head,body:P.value.body,config:P.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[1]||(a[1]=l=>B.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,Be)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],12,we))}},Pe=Y._export_sfc(Fe,[["__scopeId","data-v-3b769470"]]);exports.default=Pe;
@@ -1,3 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("./index-B8EMsnjU.cjs"),B=require("./DataTable-cOEA6Z37.cjs"),E=require("./Title-BaR4XyXa.cjs"),G=require("./Tooltip-CX57w9Q9.cjs"),z=require("./usePrinter-BmXrEJ99.cjs"),V=require("./Shape-B51JGReT.cjs"),P=require("./BaseIcon-CnFXP_n9.cjs"),M=require("./vue-ui-table-sparkline-DByva7rj.cjs"),T=require("./vue-ui-skeleton-Bli7jLZ7.cjs"),D=require("./Slicer-Bc7OWCcl.cjs"),R=require("./vue-ui-accordion-DRI-fN6I.cjs"),p=require("./useNestedProp-DlCe_zZz.cjs"),t=require("vue"),H=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),W=h.createUid(),q={name:"vue-ui-xy",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},components:{DataTable:B.DataTable,Shape:V._sfc_main,Title:E._sfc_main,Tooltip:G._sfc_main,UserOptions:z.UserOptions,BaseIcon:P.default,TableSparkline:M.default,Skeleton:T.default,Slicer:D.Slicer,Accordion:R.default},data(){this.dataset.forEach((n,u)=>{[null,void 0].includes(n.series)&&this.error({componentName:"VueUiXy",type:"datasetSerieAttribute",property:"series (number[])",index:u})});const l=Math.max(...this.dataset.map(n=>n.series.length)),s={start:0,end:l};return{themePalettes:h.themePalettes,themes:h.themes,slicerStep:0,selectedScale:null,CTX:null,CANVAS:null,opacity:h.opacity,useSafeValues:!0,palette:h.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"},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:h.createUid(),step:0,tableStep:0,titleStep:0,slicer:s,__to__:null,maxX:l,showSparklineTable:!0,segregateStep:0,sliderId:W,fontSizes:{xAxis:18,yAxis:12,dataLabels:20,plotLabels:10},plotRadii:{plot:3,line:3},selectedMinimapIndex:null}},watch:{dataset:{handler(l,s){this.maxX=Math.max(...this.dataset.map(n=>n.series.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},deep:!0}},computed:{minimap(){if(!this.FINAL_CONFIG.chart.zoom.minimap.show)return[];const l=this.datasetWithIds.filter(a=>!this.segregatedSeries.includes(a.id)),s=Math.max(...l.map(a=>a.series.length)),n=[];for(let a=0;a<s;a+=1)n.push(l.map(e=>e.series[a]||0).reduce((e,g)=>(e||0)+(g||0),0));const u=Math.min(...n);return n.map(a=>a+(u<0?Math.abs(u):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(a=>({name:a.name,color:a.color,scale:a.individualScale,scaleYLabels:a.scaleYLabels,zero:a.zeroPosition,max:a.individualMax,scaleLabel:a.scaleLabel||"",id:a.id,yOffset:a.yOffset||0,individualHeight:a.individualHeight||this.drawingArea.height,autoScaleYLabels:a.autoScaleYLabels})),s=this.barSet.map(a=>({name:a.name,color:a.color,scale:a.individualScale,scaleYLabels:a.scaleYLabels,zero:a.zeroPosition,max:a.individualMax,scaleLabel:a.scaleLabel||"",id:a.id,yOffset:a.yOffset||0,individualHeight:a.individualHeight||this.drawingArea.height})),n=this.plotSet.map(a=>({name:a.name,color:a.color,scale:a.individualScale,scaleYLabels:a.scaleYLabels,zero:a.zeroPosition,max:a.individualMax,scaleLabel:a.scaleLabel||"",id:a.id,yOffset:a.yOffset||0,individualHeight:a.individualHeight||this.drawingArea.height})),u=[...l,...s,...n].flatMap(a=>a).length;return[...l,...s,...n].flatMap((a,e)=>({id:a.id,scaleLabel:a.scaleLabel,name:a.name,color:a.color,scale:a.scale,yOffset:a.yOffset,individualHeight:a.individualHeight,x:this.mutableConfig.isStacked?this.drawingArea.left:this.drawingArea.left/u*(e+1),yLabels:a.scaleYLabels||a.scale.ticks.map(g=>({y:g>=0?a.zero-a.individualHeight*(g/a.max):a.zero+a.individualHeight*Math.abs(g)/a.max,value:g}))}))},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 this.niceScale.min>=0?0:Math.abs(this.niceScale.min)},absoluteMax(){return this.niceScale.max+this.relativeZero},datasetWithIds(){return this.useSafeValues?this.dataset.map((l,s)=>({...l,id:`uniqueId_${s}`})):this.dataset},safeDataset(){return this.useSafeValues?this.dataset.map((l,s)=>({...l,series:l.series.map(n=>this.isSafeValue(n)?n: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:`uniqueId_${s}`})):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)}))},barSet(){return this.activeSeriesWithStackRatios.filter(l=>l.type==="bar").map((l,s)=>{this.checkAutoScaleError(l);const n=Math.min(...l.absoluteValues.filter(c=>![null,void 0].includes(c))),u=Math.max(...l.absoluteValues.filter(c=>![null,void 0].includes(c))),e={ratios:l.absoluteValues.filter(c=>![null,void 0].includes(c)).map(c=>(c-n)/(u-n)),valueMin:n,valueMax:u<0?0:u},g={max:l.scaleMax||Math.max(...l.absoluteValues)||1,min:l.scaleMin||Math.min(...l.absoluteValues.filter(c=>![void 0,null].includes(c)))>0?0:Math.min(...l.absoluteValues.filter(c=>![null,void 0].includes(c)))},k=l.scaleSteps||this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,x=1.0000001,m=this.calculateNiceScaleWithExactExtremes(g.min,g.max===g.min?g.max*x:g.max,k),b=this.calculateNiceScaleWithExactExtremes(e.valueMin,e.valueMax===e.valueMin?e.valueMax*x:e.valueMax,k),S=m.min>=0?0:Math.abs(m.min),F=0,C=m.max+S,_=b.max+Math.abs(F),f=this.mutableConfig.isStacked?this.drawingArea.height*(1-l.cumulatedStackRatio):0,r=this.mutableConfig.isStacked?this.drawingArea.height*l.stackRatio-this.FINAL_CONFIG.chart.grid.labels.yAxis.gap:this.drawingArea.height,o=this.drawingArea.bottom-f-r*S/C,i=this.drawingArea.bottom-f-r*F/_,d=this.absoluteDataset.filter(c=>c.type==="bar").filter(c=>!this.segregatedSeries.includes(c.id)).length,L=l.series.map((c,N)=>{const O=this.mutableConfig.useIndividualScale?(l.absoluteValues[N]+S)/C:this.ratioToMax(c),v=this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?this.drawingArea.left+this.drawingArea.width/this.maxSeries*N:this.drawingArea.left+this.slot.bar*s+this.slot.bar*N*d-this.barSlot/2-s*this.barPeriodGap;return{yOffset:this.checkNaN(f),individualHeight:this.checkNaN(r),x:this.checkNaN(v),y:this.drawingArea.bottom-f-r*O,value:l.absoluteValues[N],zeroPosition:this.checkNaN(o),individualMax:this.checkNaN(C),comment:l.comments&&l.comments.slice(this.slicer.start,this.slicer.end)[N]||""}}),w=l.absoluteValues.map(c=>b.min>=0?(c-Math.abs(b.min))/(b.max-Math.abs(b.min)):(c+Math.abs(b.min))/(b.max+Math.abs(b.min))),A=l.series.map((c,N)=>{const O=this.mutableConfig.useIndividualScale&&this.mutableConfig.isStacked?this.drawingArea.left+this.drawingArea.width/this.maxSeries*N:this.drawingArea.left-this.slot.bar/2+this.slot.bar*s+this.slot.bar*N*this.absoluteDataset.filter(v=>v.type==="bar").filter(v=>!this.segregatedSeries.includes(v.id)).length;return{yOffset:this.checkNaN(f),individualHeight:this.checkNaN(r),x:this.checkNaN(O),y:this.checkNaN(this.drawingArea.bottom-this.checkNaN(f)-(this.checkNaN(r)*w[N]||0)),value:l.absoluteValues[N],zeroPosition:this.checkNaN(o),individualMax:this.checkNaN(C),comment:l.comments&&l.comments.slice(this.slicer.start,this.slicer.end)[N]||""}}),I=m.ticks.map(c=>({y:c>=0?o-r*(c/C):o+r*Math.abs(c)/C,value:c,prefix:l.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:l.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:l})),y=b.ticks.map(c=>{const N=(c-b.min)/(b.max-b.min);return{y:c>=0?i-r*N:i+r*N,value:c,prefix:l.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:l.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:l}});return{...l,yOffset:f,autoScaleYLabels:y,individualHeight:r,scaleYLabels:l.autoScaling?y:I,individualScale:l.autoScaling?b:m,individualMax:l.autoScaling?_:C,zeroPosition:l.autoScaling?i:o,plots:l.autoScaling?A:L}})},activeSeriesLength(){return this.absoluteDataset.length},activeSeriesWithStackRatios(){return this.assignStackRatios(this.absoluteDataset.filter(l=>!this.segregatedSeries.includes(l.id)))},lineSet(){return this.activeSeriesWithStackRatios.filter(l=>l.type==="line").map(l=>{this.checkAutoScaleError(l);const s=Math.min(...l.absoluteValues.filter(c=>![void 0,null].includes(c))),n=Math.max(...l.absoluteValues.filter(c=>![void 0,null].includes(c)))||1,a={ratios:l.absoluteValues.filter(c=>![null,void 0].includes(c)).map(c=>(c-s)/(n-s)),valueMin:s,valueMax:n},e={max:l.scaleMax||Math.max(...l.absoluteValues)||1,min:l.scaleMin||(Math.min(...l.absoluteValues)>0?0:Math.min(...l.absoluteValues))},g=l.scaleSteps||this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,k=1.0000001,x=this.calculateNiceScaleWithExactExtremes(e.min,e.max===e.min?e.max*k:e.max,g),m=this.calculateNiceScaleWithExactExtremes(a.valueMin,a.valueMax===a.valueMin?a.valueMax*k:a.valueMax,g),b=x.min>=0?0:Math.abs(x.min),S=0,F=x.max+Math.abs(b),C=m.max+Math.abs(S),_=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,r=this.drawingArea.bottom-_-f*b/F,o=this.drawingArea.bottom-_-f*S/C,i=l.series.map((c,N)=>{const O=this.mutableConfig.useIndividualScale?(l.absoluteValues[N]+Math.abs(b))/F:this.ratioToMax(c);return{x:this.checkNaN(this.drawingArea.left+this.slot.line/2+this.slot.line*N),y:this.checkNaN(this.drawingArea.bottom-_-f*O),value:l.absoluteValues[N],comment:l.comments&&l.comments.slice(this.slicer.start,this.slicer.end)[N]||""}}),d=l.absoluteValues.map(c=>m.min>=0?(c-Math.abs(m.min))/(m.max-Math.abs(m.min)):(c+Math.abs(m.min))/(m.max+Math.abs(m.min))),L=l.series.map((c,N)=>[void 0,null].includes(l.absoluteValues[N])?{x:this.checkNaN(this.drawingArea.left+this.slot.line/2+this.slot.line*N),y:r,value:l.absoluteValues[N],comment:l.comments&&l.comments.slice(this.slicer.start,this.slicer.end)[N]||""}:{x:this.checkNaN(this.drawingArea.left+this.slot.line/2+this.slot.line*N),y:this.checkNaN(this.drawingArea.bottom-_-(f*d[N]||0)),value:l.absoluteValues[N],comment:l.comments&&l.comments.slice(this.slicer.start,this.slicer.end)[N]||""}),w=this.createSmoothPath(i),A=this.createSmoothPath(L),I=x.ticks.map(c=>({y:c>=0?r-f*(c/F):r+f*Math.abs(c)/F,value:c,prefix:l.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:l.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:l})),y=m.ticks.map(c=>{const N=(c-m.min)/(m.max-m.min);return{y:c>=0?o-f*N:o+f*N,value:c,prefix:l.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:l.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:l}});return{...l,yOffset:_,autoScaleYLabels:y,individualHeight:f,scaleYLabels:l.autoScaling?y:I,individualScale:l.autoScaling?m:x,individualMax:l.autoScaling?C:F,zeroPosition:l.autoScaling?o:r,curve:l.autoScaling?A:w,plots:l.autoScaling?L:i,area:l.useArea?this.mutableConfig.useIndividualScale?this.createIndividualArea(l.autoScaling?L:i,l.autoScaling?o:r):this.createArea(i):""}})},plotSet(){return this.activeSeriesWithStackRatios.filter(l=>l.type==="plot").map(l=>{this.checkAutoScaleError(l);const s=Math.min(...l.absoluteValues.filter(I=>![null,void 0].includes(I))),n=Math.max(...l.absoluteValues.filter(I=>![null,void 0].includes(I)))||1,a={ratios:l.absoluteValues.filter(I=>![null,void 0].includes(I)).map(I=>(I-s)/(n-s)),valueMin:s,valueMax:n},e={max:l.scaleMax||Math.max(...l.absoluteValues)||1,min:l.scaleMin||Math.min(...l.absoluteValues)>0?0:Math.min(...l.absoluteValues)},g=l.scaleSteps||this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps,k=1.0000001,x=this.calculateNiceScaleWithExactExtremes(e.min,e.max===e.min?e.max*k:e.max,g),m=this.calculateNiceScaleWithExactExtremes(a.valueMin,a.valueMax===a.valueMin?a.valueMax*k:a.valueMax,g),b=x.min>=0?0:Math.abs(x.min),S=0,F=x.max+b,C=m.max+Math.abs(S),_=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,r=this.drawingArea.bottom-_-f*b/F,o=this.drawingArea.bottom-_-f*S/C,i=l.series.map((I,y)=>{const c=this.mutableConfig.useIndividualScale?(l.absoluteValues[y]+Math.abs(b))/F:this.ratioToMax(I);return{x:this.checkNaN(this.drawingArea.left+this.slot.plot/2+this.slot.plot*y),y:this.checkNaN(this.drawingArea.bottom-_-f*c),value:l.absoluteValues[y],comment:l.comments&&l.comments.slice(this.slicer.start,this.slicer.end)[y]||""}}),d=l.absoluteValues.map(I=>m.min>=0?(I-Math.abs(m.min))/(m.max-Math.abs(m.min)):(I+Math.abs(m.min))/(m.max+Math.abs(m.min))),L=l.series.map((I,y)=>({x:this.checkNaN(this.drawingArea.left+this.slot.plot/2+this.slot.plot*y),y:this.checkNaN(this.drawingArea.bottom-_-(f*d[y]||0)),value:l.absoluteValues[y],comment:l.comments&&l.comments.slice(this.slicer.start,this.slicer.end)[y]||""})),w=x.ticks.map(I=>({y:I>=0?r-f*(I/F):r+f*Math.abs(I)/F,value:I,prefix:l.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:l.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:l})),A=m.ticks.map(I=>{const y=(I-m.min)/(m.max-m.min);return{y:I>=0?o-f*y:o+f*y,value:I,prefix:l.prefix||this.FINAL_CONFIG.chart.labels.prefix,suffix:l.suffix||this.FINAL_CONFIG.chart.labels.suffix,datapoint:l}});return{...l,yOffset:_,autoScaleYLabels:A,individualHeight:f,scaleYLabels:l.autoScaling?A:w,individualScale:l.autoScaling?m:x,individualMax:l.autoScaling?C:F,zeroPosition:l.autoScaling?o:r,plots:l.autoScaling?L:i}})},drawingArea(){const l=this.mutableConfig.useIndividualScale&&this.FINAL_CONFIG.chart.grid.labels.show?this.absoluteDataset.filter(s=>!this.segregatedSeries.includes(s.id)).length*(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+l,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+l)}},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(){return this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values.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,u)=>{const a=[n];this.relativeDataset.forEach(e=>{a.push(this.canShowValue(e.absoluteValues[u])?Number(e.absoluteValues[u].toFixed(this.FINAL_CONFIG.table.rounding)):"")}),s.push(a)}),{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 g=this.relativeDataset.map(k=>k.absoluteValues[e]??0).reduce((k,x)=>k+x,0);n.push([this.timeLabels[e]??"-"].concat(this.relativeDataset.map(k=>this.applyDataLabel(k.type==="line"?this.FINAL_CONFIG.line.labels.formatter:k.type==="bar"?this.FINAL_CONFIG.bar.labels.formatter:this.FINAL_CONFIG.plot.labels.formatter,k.absoluteValues[e]??0,this.dataLabel({p:k.prefix||this.FINAL_CONFIG.chart.labels.prefix,v:k.absoluteValues[e]??0,s:k.suffix||this.FINAL_CONFIG.chart.labels.suffix,r:this.FINAL_CONFIG.table.rounding})))).concat(l?(g??0).toFixed(this.FINAL_CONFIG.table.rounding):[]))}const u={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},a=[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:u,colNames:a}},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=>({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(a=>a.value).filter(a=>this.isSafeValue(a)&&a!==null).reduce((a,e)=>Math.abs(a)+Math.abs(e),0);const n=this.timeLabels[this.selectedSerieIndex],u=this.FINAL_CONFIG.chart.tooltip.customFormat;return this.isFunction(u)&&this.functionReturnsString(()=>u({seriesIndex:this.selectedSerieIndex,datapoint:this.selectedSeries,series:this.absoluteDataset,bars:this.barSet,lines:this.lineSet,plots:this.plotSet,config:this.FINAL_CONFIG}))?u({seriesIndex:this.selectedSerieIndex,datapoint:this.selectedSeries,series:this.absoluteDataset,bars:this.barSet,lines:this.lineSet,plots:this.plotSet,config:this.FINAL_CONFIG}):(n&&(l+=`<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${this.FINAL_CONFIG.chart.tooltip.borderColor}; width:100%">${n}</div>`),this.selectedSeries.forEach(a=>{if(this.isSafeValue(a.value)){let e="",g="";switch(this.icons[a.type]){case"bar":e=`<svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" rx="1" stroke="none" height="12" width="12" fill="${a.color}" /></svg>`;break;case"line":!a.shape||!["star","triangle","square","diamond","pentagon","hexagon"].includes(a.shape)?g=`<circle cx="10" cy="8" r="4" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" />`:a.shape==="triangle"?g=`<path d="${h.createPolygonPath({plot:{x:10,y:8},radius:4,sides:3,rotation:.52}).path}" fill="${a.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />`:a.shape==="square"?g=`<path d="${h.createPolygonPath({plot:{x:10,y:8},radius:4,sides:4,rotation:.8}).path}" fill="${a.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />`:a.shape==="diamond"?g=`<path d="${h.createPolygonPath({plot:{x:10,y:8},radius:4,sides:4,rotation:0}).path}" fill="${a.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />`:a.shape==="pentagon"?g=`<path d="${h.createPolygonPath({plot:{x:10,y:8},radius:4,sides:5,rotation:.95}).path}" fill="${a.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />`:a.shape==="hexagon"?g=`<path d="${h.createPolygonPath({plot:{x:10,y:8},radius:4,sides:6,rotation:0}).path}" fill="${a.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" />`:a.shape==="star"&&(g=`<polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" points="${h.createStar({plot:{x:10,y:8},radius:4})}" />`),e=`<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="3" x="0" y="6" stroke="none" height="4" width="20" fill="${a.color}" />${g}</svg>`;break;case"plot":if(!a.shape||!["star","triangle","square","diamond","pentagon","hexagon"].includes(a.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="${a.color}" /></svg>`;break}if(a.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="${a.color}" points="${h.createStar({plot:{x:6,y:6},radius:5})}" /></svg>`;break}if(a.shape==="triangle"){e=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${h.createPolygonPath({plot:{x:6,y:6},radius:6,sides:3,rotation:.52}).path}" fill="${a.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(a.shape==="square"){e=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${h.createPolygonPath({plot:{x:6,y:6},radius:6,sides:4,rotation:.8}).path}" fill="${a.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(a.shape==="diamond"){e=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${h.createPolygonPath({plot:{x:6,y:6},radius:5,sides:4,rotation:0}).path}" fill="${a.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(a.shape==="pentagon"){e=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${h.createPolygonPath({plot:{x:6,y:6},radius:5,sides:5,rotation:.95}).path}" fill="${a.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;break}if(a.shape==="hexagon"){e=`<svg viewBox="0 0 12 12" height="14" width="14"><path d="${h.createPolygonPath({plot:{x:6,y:6},radius:5,sides:6,rotation:0}).path}" fill="${a.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> ${a.name}: <b>${this.FINAL_CONFIG.chart.tooltip.showValue?this.applyDataLabel(a.type==="line"?this.FINAL_CONFIG.line.labels.formatter:a.type==="bar"?this.FINAL_CONFIG.bar.labels.formatter:this.FINAL_CONFIG.plot.labels.formatter,a.value,this.dataLabel({p:a.prefix,v:a.value,s:a.suffix,r:this.FINAL_CONFIG.chart.tooltip.roundingValue}),{datapoint:a}):""}</b> ${this.FINAL_CONFIG.chart.tooltip.showPercentage?`(${h.dataLabel({v:this.checkNaN(Math.abs(a.value)/s*100),s:"%",r:this.FINAL_CONFIG.chart.tooltip.roundingPercentage})})`:""}</div>`,this.FINAL_CONFIG.chart.comments.showInTooltip&&a.comments.length&&a.comments.slice(this.slicer.start,this.slicer.end)[this.selectedSerieIndex]&&(l+=`<div class="vue-data-ui-tooltip-comment" style="background:${a.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${a.color}">${a.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.prepareChart(),document.addEventListener("mousemove",l=>{this.clientPosition={x:l.clientX,y:l.clientY}})},methods:{abbreviate:h.abbreviate,adaptColorToBackground:h.adaptColorToBackground,applyDataLabel:h.applyDataLabel,assignStackRatios:h.assignStackRatios,calcLinearProgression:h.calcLinearProgression,calculateNiceScaleWithExactExtremes:h.calculateNiceScaleWithExactExtremes,checkNaN:h.checkNaN,closestDecimal:h.closestDecimal,convertColorToHex:h.convertColorToHex,convertConfigColors:h.convertConfigColors,convertCustomPalette:h.convertCustomPalette,createCsvContent:h.createCsvContent,createSmoothPath:h.createSmoothPath,createTSpans:h.createTSpans,dataLabel:h.dataLabel,downloadCsv:h.downloadCsv,error:h.error,functionReturnsString:h.functionReturnsString,hasDeepProperty:h.hasDeepProperty,isFunction:h.isFunction,isSafeValue:h.isSafeValue,objectIsEmpty:h.objectIsEmpty,setOpacity:h.setOpacity,shiftHue:h.shiftHue,translateSize:h.translateSize,treeShake:h.treeShake,useMouse:G.useMouse,useNestedProp:p.useNestedProp,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=h.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,s.theme?{...p.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
- -----> The serie '${l.name}' contains the value '${s}' at index ${n}.
3
- '${s}' was converted to null to allow the chart to display.`)})}),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:u}=s.getBoundingClientRect();let a=null,e=0;this.FINAL_CONFIG.chart.title.show&&(a=this.$refs.chartTitle,e=a.getBoundingClientRect().height);let g=null,k=0;this.FINAL_CONFIG.chart.zoom.show&&this.maxX>6&&this.isDataset&&(g=this.$refs.chartSlicer.$el,k=g.getBoundingClientRect().height);let x=null,m=0;this.FINAL_CONFIG.chart.legend.show&&(x=this.$refs.chartLegend,m=x.getBoundingClientRect().height),this.height=n-e-m-k,this.width=u,this.viewBox=`0 0 ${this.width<0?10:this.width} ${this.height<0?10:this.height}`,this.convertSizes(),new ResizeObserver(S=>{for(const F of S)this.$refs.chartTitle&&(e=this.$refs.chartTitle.getBoundingClientRect().height),this.$refs.chartSlicer&&this.$refs.chartSlicer.$el&&(k=this.$refs.chartSlicer.$el.getBoundingClientRect().height),this.$refs.chartLegend&&(m=this.$refs.chartLegend.getBoundingClientRect().height),this.height=F.contentBoxSize[0].blockSize-e-m-k-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){if(!l[0])return[-10,-10,"",-10,-10];const s={x:l[0].x,y:this.zero},n={x:l.at(-1).x,y:this.zero},u=[];return l.forEach(a=>{u.push(`${a.x},${a.y} `)}),[s.x,s.y,...u,n.x,n.y].toString()},createIndividualArea(l,s){if(!l[0])return[-10,-10,"",-10,-10];const n={x:l[0]?l[0].x:Math.min(...l.filter(e=>!!e).map(e=>e.x)),y:s},u={x:l.at(-1)?l.at(-1).x:Math.min(...l.filter(e=>!!e).map(e=>e.x)),y:s},a=[];return l.filter(e=>!!e).forEach(e=>{a.push(`${e.x},${e.y} `)}),[n.x,n.y,...a,u.x,u.y].toString()},createStar:h.createStar,createPolygonPath:h.createPolygonPath,fillArray(l,s){let n=Array(l).fill(0);for(let u=0;u<s.length&&u<l;u+=1)n[u]=s[u];return n},refreshSlicer(){this.slicer={start:0,end:Math.max(...this.dataset.map(l=>l.series.length))},this.slicerStep+=1},calcRectHeight(l){return l.value>=0?this.checkNaN(this.zero-l.y<=0?1e-5:this.zero-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],u=Math.abs(l-s[0]);for(let a=1;a<s.length;a+=1){const e=Math.abs(l-s[a]);e<u&&s[a]<l&&(n=s[a],u=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-9cRTLjY8.cjs"));await l({domElement:document.getElementById(`vue-ui-xy_${this.uniqueId}`),fileName:this.FINAL_CONFIG.chart.title.text||"vue-ui-xy"})}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,u=l.concat([s]).concat(n),a=this.createCsvContent(u);this.downloadCsv({csvContent:a,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-BFCs759q.cjs"));await l({domElement:document.getElementById(`vue-ui-xy_${this.uniqueId}`),fileName:this.FINAL_CONFIG.chart.title.text||"vue-ui-xy",format:"png"})}catch(l){console.error("Error generating image:",l)}finally{this.isImaging=!1}},100)}}},Y=["id"],X=["viewBox"],U={key:0},Z={class:"vue-ui-xy-grid"},J=["stroke","x1","x2","y1","y2"],K=["stroke","x1","x2","y1","y2"],Q={key:1},j=["x1","x2","y1","y2","stroke"],$=["x1","x2","y1","y2","stroke"],ee=["x1","x2","y1","y2","stroke"],te={key:3},le=["x1","x2","y1","y2","stroke"],re=["id"],ae=["stop-color"],ie=["stop-color"],se=["stop-color"],oe=["id"],ne=["stop-color"],ce=["stop-color"],he=["stop-color"],de=["id"],ue=["stop-color"],me=["stop-color"],ge=["id"],Ne=["stop-color"],fe=["stop-color"],ke=["id"],Ie=["stop-color"],xe=["stop-color"],be=["x","y","height","width","fill"],Fe=["x","y","width"],ye=["x","y","height","width","fill"],_e=["x","y","height","width","rx","fill","stroke","stroke-width"],Ce=["width","x","y"],Se={key:0},Le=["id"],Ae=["fill"],we=["x1","x2","y1","y2","stroke","marker-end"],Oe=["x","y","font-size","fill"],ve=["stroke","x1","x2","y1","y2"],Ge={key:2},pe=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],Be=["x","y","width","height","stroke","stroke-width","stroke-linecap","stroke-linejoin","stroke-dasharray"],Ee={key:4},ze=["x1","x2","y1","y2","stroke","stroke-width"],Ve=["fill","font-size","transform"],Pe=["x1","x2","y1","y2","stroke"],Me=["x","y","font-size","fill"],Te=["x1","x2","y1","y2","stroke"],De=["x","y","font-size","fill"],Re=["width","x","y"],He={style:{width:"100%"}},We={key:0},qe=["id"],Ye=["fill"],Xe=["x1","x2","y1","y2","stroke","marker-end"],Ue=["x","y","font-size","fill"],Ze=["d","stroke","stroke-width","stroke-dasharray"],Je={key:1},Ke=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],Qe={key:0},je=["d","fill"],$e=["d","fill"],et=["d","stroke","stroke-width","stroke-dasharray"],tt={key:2},lt=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],rt=["width","x","y"],at={style:{width:"100%"}},it={key:3},st=["id"],ot=["fill"],nt=["x1","x2","y1","y2","stroke","marker-end"],ct=["x","y","font-size","fill"],ht={key:5},dt=["x","y","font-size","fill"],ut=["x","y","font-size","fill","font-weight"],mt={key:6},gt=["x","y","font-size","fill"],Nt=["x","y"],ft=["x","y"],kt={key:7},It=["x","y","font-size","fill"],xt=["x","y"],bt=["x","y"],Ft=["x","y","font-size","fill","innerHTML"],yt=["x","y","font-size","fill","innerHTML"],_t=["x","y","font-size","fill","innerHTML"],Ct=["x","y","font-size","fill","innerHTML"],St=["x","y","width","height","fill","onMouseenter"],Lt=["font-size","fill","transform"],At=["x","y","font-size","fill"],wt={key:9},Ot=["text-anchor","font-size","fill","transform"],vt=["x","y","height","width","onMouseenter","onClick"],Gt={key:10},pt=["x","y"],Bt=["cx","cy","r","fill"],Et={key:3,class:"vue-data-ui-watermark"},zt=["onClick"],Vt={key:0,viewBox:"0 0 20 12",height:"14",width:"20"},Pt=["fill"],Mt={key:1,viewBox:"0 0 12 12",height:"14",width:"14"},Tt=["fill"],Dt={key:7,ref:"chartLegend"},Rt={style:{display:"flex","flex-direction":"row",gap:"6px","align-items":"center","padding-left":"6px"},"data-html2canvas-ignore":""},Ht=["innerHTML"];function Wt(l,s,n,u,a,e){const g=t.resolveComponent("Title"),k=t.resolveComponent("UserOptions"),x=t.resolveComponent("Shape"),m=t.resolveComponent("Skeleton"),b=t.resolveComponent("Slicer"),S=t.resolveComponent("Tooltip"),F=t.resolveComponent("BaseIcon"),C=t.resolveComponent("TableSparkline"),_=t.resolveComponent("DataTable"),f=t.resolveComponent("Accordion");return t.openBlock(),t.createElementBlock("div",{id:`vue-ui-xy_${a.uniqueId}`,class:t.normalizeClass(`vue-ui-xy ${a.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%;${e.FINAL_CONFIG.chart.title.text?"":"padding-top:36px"};font-family:${e.FINAL_CONFIG.chart.fontFamily};${e.FINAL_CONFIG.responsive?"height: 100%":""}`)},[e.FINAL_CONFIG.chart.title.show?(t.openBlock(),t.createElementBlock("div",{key:0,ref:"chartTitle",class:"vue-ui-xy-title",style:t.normalizeStyle(`font-family:${e.FINAL_CONFIG.chart.fontFamily}`)},[(t.openBlock(),t.createBlock(g,{key:`title_${a.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?(t.openBlock(),t.createBlock(k,{ref:"defails",key:`user_options_${a.step}`,backgroundColor:e.FINAL_CONFIG.chart.backgroundColor,color:e.FINAL_CONFIG.chart.color,isPrinting:a.isPrinting,isImaging:a.isImaging,uid:a.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:a.mutableConfig.isStacked,isFullscreen:a.isFullscreen,chartElement:l.$refs.chart,position:e.FINAL_CONFIG.chart.userOptions.position,isTooltip:a.mutableConfig.showTooltip,titles:{...e.FINAL_CONFIG.chart.userOptions.buttonTitles},onToggleFullscreen:e.toggleFullscreen,onGeneratePdf:e.generatePdf,onGenerateCsv:e.generateCsv,onGenerateImage:e.generateImage,onToggleTable:e.toggleTable,onToggleLabels:e.toggleLabels,onToggleStack:e.toggleStack,onToggleTooltip:e.toggleTooltip},t.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:t.withCtx(()=>[t.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:t.withCtx(()=>[t.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:t.withCtx(()=>[t.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:t.withCtx(()=>[t.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:t.withCtx(()=>[t.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionLabels?{name:"optionLabels",fn:t.withCtx(()=>[t.renderSlot(l.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,l.$slots.optionStack?{name:"optionStack",fn:t.withCtx(()=>[t.renderSlot(l.$slots,"optionStack",{},void 0,!0)]),key:"6"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:t.withCtx(({toggleFullscreen:r,isFullscreen:o})=>[t.renderSlot(l.$slots,"optionFullscreen",t.normalizeProps(t.guardReactiveProps({toggleFullscreen:r,isFullscreen:o})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasLabel","hasTable","hasStack","hasFullscreen","isStacked","isFullscreen","chartElement","position","isTooltip","titles","onToggleFullscreen","onGeneratePdf","onGenerateCsv","onGenerateImage","onToggleTable","onToggleLabels","onToggleStack","onToggleTooltip"])):t.createCommentVNode("",!0),e.isDataset?(t.openBlock(),t.createElementBlock("svg",{key:2,xmlns:"http://www.w3.org/2000/svg",class:t.normalizeClass([{"vue-data-ui-fullscreen--on":a.isFullscreen,"vue-data-ui-fulscreen--off":!a.isFullscreen},"vue-ui-xy-svg"]),width:"100%",viewBox:a.viewBox,style:t.normalizeStyle(`background: transparent; color:${e.FINAL_CONFIG.chart.color}; font-family:${e.FINAL_CONFIG.chart.fontFamily}`)},[e.maxSeries>0?(t.openBlock(),t.createElementBlock("g",U,[t.createElementVNode("g",Z,[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.drawingArea.bottom,y2:e.drawingArea.bottom,"stroke-linecap":"round"},null,8,J)):t.createCommentVNode("",!0),a.mutableConfig.useIndividualScale?e.FINAL_CONFIG.chart.grid.showHorizontalLines?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:2},t.renderList(e.allScales,r=>(t.openBlock(),t.createElementBlock("g",null,[r.id===a.selectedScale&&r.yLabels.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(r.yLabels,o=>(t.openBlock(),t.createElementBlock("line",{x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.right-e.xPadding,y1:e.checkNaN(o.y),y2:e.checkNaN(o.y),stroke:r.color,"stroke-width":.5,"stroke-linecap":"round"},null,8,$))),256)):r.yLabels.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(r.yLabels,o=>(t.openBlock(),t.createElementBlock("line",{x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.right-e.xPadding,y1:e.checkNaN(o.y),y2:e.checkNaN(o.y),stroke:e.FINAL_CONFIG.chart.grid.stroke,"stroke-width":.5,"stroke-linecap":"round"},null,8,ee))),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.drawingArea.top,y2:e.drawingArea.bottom,"stroke-linecap":"round"},null,8,K)):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.grid.showHorizontalLines?(t.openBlock(),t.createElementBlock("g",Q,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.yLabels,r=>(t.openBlock(),t.createElementBlock("line",{x1:e.drawingArea.left+e.xPadding,x2:e.drawingArea.right-e.xPadding,y1:e.checkNaN(r.y),y2:e.checkNaN(r.y),stroke:e.FINAL_CONFIG.chart.grid.stroke,"stroke-width":.5,"stroke-linecap":"round"},null,8,j))),256))])):t.createCommentVNode("",!0)],64)),e.FINAL_CONFIG.chart.grid.showVerticalLines?(t.openBlock(),t.createElementBlock("g",te,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.maxSeries+(e.FINAL_CONFIG.chart.grid.position==="middle"?1:0),(r,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.drawingArea.top,y2:e.drawingArea.bottom,"stroke-width":"0.5",stroke:e.FINAL_CONFIG.chart.grid.stroke},null,8,le))),128))])):t.createCommentVNode("",!0)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.barSet,(r,o)=>(t.openBlock(),t.createElementBlock("defs",{key:`def_rect_${o}`},[t.createElementVNode("linearGradient",{id:`rectGradient_pos_${o}_${a.uniqueId}`,x2:"0%",y2:"100%"},[t.createElementVNode("stop",{offset:"0%","stop-color":r.color},null,8,ae),t.createElementVNode("stop",{offset:"62%","stop-color":`${e.shiftHue(r.color,.02)}`},null,8,ie),t.createElementVNode("stop",{offset:"100%","stop-color":`${e.shiftHue(r.color,.05)}`},null,8,se)],8,re),t.createElementVNode("linearGradient",{id:`rectGradient_neg_${o}_${a.uniqueId}`,x2:"0%",y2:"100%"},[t.createElementVNode("stop",{offset:"0%","stop-color":`${e.shiftHue(r.color,.05)}`},null,8,ne),t.createElementVNode("stop",{offset:"38%","stop-color":`${e.shiftHue(r.color,.02)}`},null,8,ce),t.createElementVNode("stop",{offset:"100%","stop-color":r.color},null,8,he)],8,oe)]))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.plotSet,(r,o)=>(t.openBlock(),t.createElementBlock("defs",{key:`def_plot_${o}`},[t.createElementVNode("radialGradient",{id:`plotGradient_${o}_${a.uniqueId}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[t.createElementVNode("stop",{offset:"0%","stop-color":`${e.shiftHue(r.color,.05)}`},null,8,ue),t.createElementVNode("stop",{offset:"100%","stop-color":r.color},null,8,me)],8,de)]))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.lineSet,(r,o)=>(t.openBlock(),t.createElementBlock("defs",{key:`def_line_${o}`},[t.createElementVNode("radialGradient",{id:`lineGradient_${o}_${a.uniqueId}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[t.createElementVNode("stop",{offset:"0%","stop-color":`${e.shiftHue(r.color,.05)}`},null,8,Ne),t.createElementVNode("stop",{offset:"100%","stop-color":r.color},null,8,fe)],8,ge),t.createElementVNode("linearGradient",{id:`areaGradient_${o}_${a.uniqueId}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[t.createElementVNode("stop",{offset:"0%","stop-color":`${e.setOpacity(e.shiftHue(r.color,.03),e.FINAL_CONFIG.line.area.opacity)}`},null,8,Ie),t.createElementVNode("stop",{offset:"100%","stop-color":`${e.setOpacity(r.color,e.FINAL_CONFIG.line.area.opacity)}`},null,8,xe)],8,ke)]))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.highlightAreas,r=>(t.openBlock(),t.createElementBlock("g",null,[r.show?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(r.span,(o,i)=>(t.openBlock(),t.createElementBlock("g",null,[t.createElementVNode("rect",{style:t.normalizeStyle({transition:"none",opacity:r.from+i>=a.slicer.start&&r.from+i<=a.slicer.end-1?1:0}),x:e.drawingArea.left+e.drawingArea.width/e.maxSeries*(r.from+i-a.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(r.color,r.opacity)},null,12,be),r.caption.text&&i===0?(t.openBlock(),t.createElementBlock("foreignObject",{key:0,x:e.drawingArea.left+e.drawingArea.width/e.maxSeries*(r.from+i-a.slicer.start)-(r.caption.width==="auto"?0:r.caption.width/2-e.drawingArea.width/e.maxSeries*r.span/2),y:e.drawingArea.top+r.caption.offsetY,style:t.normalizeStyle({overflow:"visible",opacity:r.to>=a.slicer.start&&r.from<a.slicer.end?1:0}),height:"1",width:r.caption.width==="auto"?e.drawingArea.width/e.maxSeries*r.span:r.caption.width},[t.createElementVNode("div",{style:t.normalizeStyle(`padding:${r.caption.padding}px;text-align:${r.caption.textAlign};font-size:${r.caption.fontSize}px;color:${r.caption.color};font-weight:${r.caption.bold?"bold":"normal"}`)},t.toDisplayString(r.caption.text),5)],12,Fe)):t.createCommentVNode("",!0)]))),256)):t.createCommentVNode("",!0)]))),256)),t.createElementVNode("g",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.maxSeries,(r,o)=>(t.openBlock(),t.createElementBlock("g",{key:`tooltip_trap_${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:[a.selectedMinimapIndex,a.selectedSerieIndex,a.selectedRowIndex].includes(o)?e.setOpacity(e.FINAL_CONFIG.chart.highlighter.color,e.FINAL_CONFIG.chart.highlighter.opacity):"transparent"},null,8,ye)]))),128))]),e.barSet.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.barSet,(r,o)=>(t.openBlock(),t.createElementBlock("g",{key:`serie_bar_${o}`,class:t.normalizeClass(`serie_bar_${o}`),style:t.normalizeStyle(`opacity:${a.selectedScale?a.selectedScale===r.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.plots,(i,d)=>(t.openBlock(),t.createElementBlock("g",{key:`bar_plot_${o}_${d}`},[e.canShowValue(i.value)?(t.openBlock(),t.createElementBlock("rect",{key:0,x:e.calcRectX(i),y:a.mutableConfig.useIndividualScale?e.calcIndividualRectY(i):e.calcRectY(i),height:a.mutableConfig.useIndividualScale?Math.abs(e.calcIndividualHeight(i)):Math.abs(e.calcRectHeight(i)),width:e.calcRectWidth()-(a.mutableConfig.useIndividualScale&&a.mutableConfig.isStacked?0:e.barPeriodGap)<0?1e-5:e.calcRectWidth()-(a.mutableConfig.useIndividualScale&&a.mutableConfig.isStacked?0:e.barPeriodGap),rx:e.FINAL_CONFIG.bar.borderRadius,fill:e.FINAL_CONFIG.bar.useGradient?i.value>=0?`url(#rectGradient_pos_${o}_${a.uniqueId})`:`url(#rectGradient_neg_${o}_${a.uniqueId})`:r.color,stroke:e.FINAL_CONFIG.bar.border.useSerieColor?r.color:e.FINAL_CONFIG.bar.border.stroke,"stroke-width":e.FINAL_CONFIG.bar.border.strokeWidth},null,8,_e)):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.calcRectWidth()-(a.mutableConfig.useIndividualScale&&a.mutableConfig.isStacked?0:e.barPeriodGap)<0?1e-5:e.calcRectWidth()-(a.mutableConfig.useIndividualScale&&a.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:r.color}},void 0,!0)],8,Ce)):t.createCommentVNode("",!0)]))),128)),Object.hasOwn(r,"useProgression")&&r.useProgression===!0&&!isNaN(e.calcLinearProgression(r.plots).trend)?(t.openBlock(),t.createElementBlock("g",Se,[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:r.color},null,8,Ae)],8,Le)]),r.plots.length>1?(t.openBlock(),t.createElementBlock("line",{key:0,x1:e.calcLinearProgression(r.plots).x1,x2:e.calcLinearProgression(r.plots).x2,y1:e.calcLinearProgression(r.plots).y1,y2:e.calcLinearProgression(r.plots).y2,"stroke-width":1,stroke:r.color,"stroke-dasharray":2,"marker-end":`url(#bar_arrow_${o})`},null,8,we)):t.createCommentVNode("",!0),r.plots.length>1?(t.openBlock(),t.createElementBlock("text",{key:1,"text-anchor":"middle",x:e.calcLinearProgression(r.plots).x2,y:e.calcLinearProgression(r.plots).y2-6,"font-size":a.fontSizes.plotLabels,fill:r.color},t.toDisplayString(e.dataLabel({v:e.calcLinearProgression(r.plots).trend*100,s:"%",r:2})),9,Oe)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],6))),128)):t.createCommentVNode("",!0),!a.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.checkNaN(e.zero),y2:e.checkNaN(e.zero),"stroke-linecap":"round"},null,8,ve)):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.highlighter.useLine&&(![null,void 0].includes(a.selectedSerieIndex)||a.selectedMinimapIndex!==null)?(t.openBlock(),t.createElementBlock("g",Ge,[t.createElementVNode("line",{x1:e.drawingArea.left+e.drawingArea.width/e.maxSeries*(a.selectedSerieIndex||a.selectedMinimapIndex)+e.drawingArea.width/e.maxSeries/2,x2:e.drawingArea.left+e.drawingArea.width/e.maxSeries*(a.selectedSerieIndex||a.selectedMinimapIndex)+e.drawingArea.width/e.maxSeries/2,y1:e.drawingArea.top,y2: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,Be)):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.grid.labels.show?(t.openBlock(),t.createElementBlock("g",Ee,[a.mutableConfig.useIndividualScale?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.allScales,r=>(t.openBlock(),t.createElementBlock("g",null,[t.createElementVNode("line",{x1:r.x+e.xPadding,x2:r.x+e.xPadding,y1:a.mutableConfig.isStacked?e.checkNaN(e.drawingArea.bottom-r.yOffset-r.individualHeight):e.checkNaN(e.drawingArea.top),y2:a.mutableConfig.isStacked?e.checkNaN(e.drawingArea.bottom-r.yOffset):e.checkNaN(e.drawingArea.bottom),stroke:r.color,"stroke-width":e.FINAL_CONFIG.chart.grid.stroke,"stroke-linecap":"round",style:t.normalizeStyle(`opacity:${a.selectedScale?a.selectedScale===r.id?1:.3:1};transition:opacity 0.2s ease-in-out`)},null,12,ze)]))),256)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.allScales,r=>(t.openBlock(),t.createElementBlock("g",{style:t.normalizeStyle(`opacity:${a.selectedScale?a.selectedScale===r.id?1:.3:1};transition:opacity 0.2s ease-in-out`)},[t.createElementVNode("text",{fill:r.color,"font-size":a.fontSizes.dataLabels,"text-anchor":"middle",transform:`translate(${r.x-e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth+5}, ${a.mutableConfig.isStacked?e.drawingArea.bottom-r.yOffset-r.individualHeight/2:e.drawingArea.top+e.drawingArea.height/2}) rotate(-90)`},t.toDisplayString(r.name)+" "+t.toDisplayString(r.scaleLabel?`- ${r.scaleLabel}`:""),9,Ve),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.yLabels,(o,i)=>(t.openBlock(),t.createElementBlock("line",{x1:r.x-3+e.xPadding,x2:r.x+e.xPadding,y1:e.checkNaN(o.y),y2:e.checkNaN(o.y),stroke:r.color,"stroke-width":1,"stroke-linecap":"round"},null,8,Pe))),256)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.yLabels,(o,i)=>(t.openBlock(),t.createElementBlock("text",{x:r.x-5+e.xPadding,y:e.checkNaN(o.y)+a.fontSizes.dataLabels/3,"font-size":a.fontSizes.dataLabels,"text-anchor":"end",fill:r.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,Me))),256))],4))),256))],64)):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.yLabels,(r,o)=>(t.openBlock(),t.createElementBlock("g",{key:`yLabel_${o}`},[e.canShowValue(r)&&r.value>=e.niceScale.min&&r.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.checkNaN(r.y),y2:e.checkNaN(r.y),stroke:e.FINAL_CONFIG.chart.grid.stroke,"stroke-width":"1","stroke-linecap":"round"},null,8,Te)):t.createCommentVNode("",!0),r.value>=e.niceScale.min&&r.value<=e.niceScale.max?(t.openBlock(),t.createElementBlock("text",{key:1,x:e.drawingArea.left-7+e.xPadding,y:e.checkNaN(r.y+a.fontSizes.dataLabels/3),"font-size":a.fontSizes.dataLabels,"text-anchor":"end",fill:e.FINAL_CONFIG.chart.grid.labels.color},t.toDisplayString(e.canShowValue(r.value)?e.applyDataLabel(e.FINAL_CONFIG.chart.grid.labels.yAxis.formatter,r.value,e.dataLabel({p:r.prefix,v:r.value,s:r.suffix,r:1})):""),9,De)):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.plotSet,(r,o)=>(t.openBlock(),t.createElementBlock("g",{key:`serie_plot_${o}`,class:t.normalizeClass(`serie_plot_${o}`),style:t.normalizeStyle(`opacity:${a.selectedScale?a.selectedScale===r.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.plots,(i,d)=>(t.openBlock(),t.createElementBlock("g",{key:`circle_plot_${o}_${d}`},[i&&e.canShowValue(i.value)?(t.openBlock(),t.createBlock(x,{key:0,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(r.shape)?r.shape:"circle",color:e.FINAL_CONFIG.plot.useGradient?`url(#plotGradient_${o}_${a.uniqueId})`:e.FINAL_CONFIG.plot.dot.useSerieColor?r.color:e.FINAL_CONFIG.plot.dot.fill,plot:{x:e.checkNaN(i.x),y:e.checkNaN(i.y)},radius:a.selectedSerieIndex!==null&&a.selectedSerieIndex===d||a.selectedMinimapIndex!==null&&a.selectedMinimapIndex===d?(a.plotRadii.plot||6)*1.5:a.plotRadii.plot||6,stroke:e.FINAL_CONFIG.plot.dot.useSerieColor?e.FINAL_CONFIG.chart.backgroundColor:r.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",He,[t.renderSlot(l.$slots,"plot-comment",{plot:{...i,color:r.color}},void 0,!0)])],8,Re)):t.createCommentVNode("",!0)]))),128)),Object.hasOwn(r,"useProgression")&&r.useProgression===!0&&!isNaN(e.calcLinearProgression(r.plots).trend)?(t.openBlock(),t.createElementBlock("g",We,[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:r.color},null,8,Ye)],8,qe)]),r.plots.length>1?(t.openBlock(),t.createElementBlock("line",{key:0,x1:e.calcLinearProgression(r.plots).x1,x2:e.calcLinearProgression(r.plots).x2,y1:e.calcLinearProgression(r.plots).y1,y2:e.calcLinearProgression(r.plots).y2,"stroke-width":1,stroke:r.color,"stroke-dasharray":2,"marker-end":`url(#plot_arrow_${o})`},null,8,Xe)):t.createCommentVNode("",!0),r.plots.length>1?(t.openBlock(),t.createElementBlock("text",{key:1,"text-anchor":"middle",x:e.calcLinearProgression(r.plots).x2,y:e.calcLinearProgression(r.plots).y2-6,"font-size":a.fontSizes.plotLabels,fill:r.color},t.toDisplayString(e.dataLabel({v:e.calcLinearProgression(r.plots).trend*100,s:"%",r:2})),9,Ue)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],6))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.lineSet,(r,o)=>(t.openBlock(),t.createElementBlock("g",{key:`serie_line_${o}`,class:t.normalizeClass(`serie_line_${o}`),style:t.normalizeStyle(`opacity:${a.selectedScale?a.selectedScale===r.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[r.smooth&&r.plots.length>1?(t.openBlock(),t.createElementBlock("path",{key:0,d:`M${r.curve}`,stroke:e.FINAL_CONFIG.chart.backgroundColor,"stroke-width":e.FINAL_CONFIG.line.strokeWidth+1,"stroke-dasharray":r.dashed?e.FINAL_CONFIG.line.strokeWidth*2:0,fill:"none"},null,8,Ze)):r.plots.length>1?(t.openBlock(),t.createElementBlock("g",Je,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.plots,(i,d)=>(t.openBlock(),t.createElementBlock("g",{key:`line_${o}_${d}`},[i&&d<r.plots.length-1&&r.plots[d+1]&&e.canShowValue(i.value)&&e.canShowValue(r.plots[d+1].value)?(t.openBlock(),t.createElementBlock("line",{key:0,x1:i.x,x2:r.plots[d+1].x,y1:i.y,y2:r.plots[d+1].y,stroke:e.FINAL_CONFIG.chart.backgroundColor,"stroke-width":e.FINAL_CONFIG.line.strokeWidth+1,"stroke-dasharray":r.dashed?e.FINAL_CONFIG.line.strokeWidth*2:0,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,Ke)):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0)],6))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.lineSet,(r,o)=>(t.openBlock(),t.createElementBlock("g",{key:`serie_line_${o}`,class:t.normalizeClass(`serie_line_${o}`),style:t.normalizeStyle(`opacity:${a.selectedScale?a.selectedScale===r.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[r.useArea&&r.plots.length>1?(t.openBlock(),t.createElementBlock("g",Qe,[r.smooth?(t.openBlock(),t.createElementBlock("path",{key:0,d:`M ${r.plots[0]?r.plots[0].x:Math.min(...r.plots.filter(i=>!!i).map(i=>i.x))},${a.mutableConfig.isStacked?e.drawingArea.bottom-r.yOffset:e.drawingArea.bottom} ${r.curve} L ${r.plots.at(-1)?r.plots.at(-1).x:e.drawingArea.left+e.slot.line*o+e.slot.line/2},${a.mutableConfig.isStacked?e.drawingArea.bottom-r.yOffset:e.drawingArea.bottom} Z`,fill:e.FINAL_CONFIG.line.area.useGradient?`url(#areaGradient_${o}_${a.uniqueId})`:e.setOpacity(r.color,e.FINAL_CONFIG.line.area.opacity)},null,8,je)):(t.openBlock(),t.createElementBlock("path",{key:1,d:`M${r.area}Z`,fill:e.FINAL_CONFIG.line.area.useGradient?`url(#areaGradient_${o}_${a.uniqueId})`:e.setOpacity(r.color,e.FINAL_CONFIG.line.area.opacity)},null,8,$e))])):t.createCommentVNode("",!0),r.smooth&&r.plots.length>1?(t.openBlock(),t.createElementBlock("path",{key:1,d:`M${r.curve}`,stroke:r.color,"stroke-width":e.FINAL_CONFIG.line.strokeWidth,"stroke-dasharray":r.dashed?e.FINAL_CONFIG.line.strokeWidth*2:0,fill:"none"},null,8,et)):r.plots.length>1?(t.openBlock(),t.createElementBlock("g",tt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.plots,(i,d)=>(t.openBlock(),t.createElementBlock("g",{key:`line_${o}_${d}`},[i&&d<r.plots.length-1&&r.plots[d+1]&&e.canShowValue(i.value)&&e.canShowValue(r.plots[d+1].value)?(t.openBlock(),t.createElementBlock("line",{key:0,x1:i.x,x2:r.plots[d+1].x,y1:i.y,y2:r.plots[d+1].y,stroke:r.color,"stroke-width":e.FINAL_CONFIG.line.strokeWidth,"stroke-dasharray":r.dashed?e.FINAL_CONFIG.line.strokeWidth*2:0,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,lt)):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.plots,(i,d)=>(t.openBlock(),t.createElementBlock("g",{key:`circle_line_${o}_${d}`},[i&&e.canShowValue(i.value)?(t.openBlock(),t.createBlock(x,{key:0,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(r.shape)?r.shape:"circle",color:e.FINAL_CONFIG.line.useGradient?`url(#lineGradient_${o}_${a.uniqueId})`:e.FINAL_CONFIG.line.dot.useSerieColor?r.color:e.FINAL_CONFIG.line.dot.fill,plot:{x:e.checkNaN(i.x),y:e.checkNaN(i.y)},radius:a.selectedSerieIndex!==null&&a.selectedSerieIndex===d||a.selectedMinimapIndex!==null&&a.selectedMinimapIndex===d?(a.plotRadii.line||6)*1.5:a.plotRadii.line||6,stroke:e.FINAL_CONFIG.line.dot.useSerieColor?e.FINAL_CONFIG.chart.backgroundColor:r.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",at,[t.renderSlot(l.$slots,"plot-comment",{plot:{...i,color:r.color}},void 0,!0)])],8,rt)):t.createCommentVNode("",!0)]))),128)),Object.hasOwn(r,"useProgression")&&r.useProgression===!0&&!isNaN(e.calcLinearProgression(r.plots).trend)?(t.openBlock(),t.createElementBlock("g",it,[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:r.color},null,8,ot)],8,st)]),r.plots.length>1?(t.openBlock(),t.createElementBlock("line",{key:0,x1:e.calcLinearProgression(r.plots).x1,x2:e.calcLinearProgression(r.plots).x2,y1:e.calcLinearProgression(r.plots).y1,y2:e.calcLinearProgression(r.plots).y2,"stroke-width":1,stroke:r.color,"stroke-dasharray":2,"marker-end":`url(#line_arrow_${o})`},null,8,nt)):t.createCommentVNode("",!0),r.plots.length>1?(t.openBlock(),t.createElementBlock("text",{key:1,"text-anchor":"middle",x:e.calcLinearProgression(r.plots).x2,y:e.calcLinearProgression(r.plots).y2-6,"font-size":a.fontSizes.plotLabels,fill:r.color},t.toDisplayString(e.dataLabel({v:e.calcLinearProgression(r.plots).trend*100,s:"%",r:2})),9,ct)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],6))),128)),(e.FINAL_CONFIG.bar.labels.show||e.FINAL_CONFIG.bar.serieName.show)&&a.mutableConfig.dataLabels.show?(t.openBlock(),t.createElementBlock("g",ht,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.barSet,(r,o)=>(t.openBlock(),t.createElementBlock("g",{key:`xLabel_bar_${o}`,class:t.normalizeClass(`xLabel_bar_${o}`),style:t.normalizeStyle(`opacity:${a.selectedScale?a.selectedScale===r.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.plots,(i,d)=>(t.openBlock(),t.createElementBlock("g",{key:`xLabel_bar_${o}_${d}`},[i&&(!Object.hasOwn(r,"dataLabels")||r.dataLabels===!0)&&e.FINAL_CONFIG.bar.labels.show?(t.openBlock(),t.createElementBlock("text",{key:0,x:a.mutableConfig.useIndividualScale&&a.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":a.fontSizes.plotLabels,fill:e.FINAL_CONFIG.bar.labels.color},t.toDisplayString(e.canShowValue(i.value)?e.applyDataLabel(e.FINAL_CONFIG.bar.labels.formatter,i.value,e.dataLabel({p:r.prefix||e.FINAL_CONFIG.chart.labels.prefix,v:i.value,s:r.suffix||e.FINAL_CONFIG.chart.labels.suffix,r:e.FINAL_CONFIG.bar.labels.rounding}),{datapoint:i,serie:r}):""),9,dt)):t.createCommentVNode("",!0),i&&e.FINAL_CONFIG.bar.serieName.show?(t.openBlock(),t.createElementBlock("text",{key:1,x:a.mutableConfig.useIndividualScale&&a.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":a.fontSizes.plotLabels,fill:e.FINAL_CONFIG.bar.serieName.useSerieColor?r.color:e.FINAL_CONFIG.bar.serieName.color,"font-weight":e.FINAL_CONFIG.bar.serieName.bold?"bold":"normal"},t.toDisplayString(e.FINAL_CONFIG.bar.serieName.useAbbreviation?e.abbreviate({source:r.name,length:e.FINAL_CONFIG.bar.serieName.abbreviationSize}):r.name),9,ut)):t.createCommentVNode("",!0)]))),128))],6))),128))])):t.createCommentVNode("",!0),e.FINAL_CONFIG.plot.labels.show&&a.mutableConfig.dataLabels.show?(t.openBlock(),t.createElementBlock("g",mt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.plotSet,(r,o)=>(t.openBlock(),t.createElementBlock("g",{key:`xLabel_plot_${o}`,class:t.normalizeClass(`xLabel_plot_${o}`),style:t.normalizeStyle(`opacity:${a.selectedScale?a.selectedScale===r.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.plots,(i,d)=>(t.openBlock(),t.createElementBlock("g",{key:`xLabel_plot_${o}_${d}`},[i&&!Object.hasOwn(r,"dataLabels")||r.dataLabels===!0?(t.openBlock(),t.createElementBlock("text",{key:0,x:i.x,y:i.y+e.FINAL_CONFIG.plot.labels.offsetY,"text-anchor":"middle","font-size":a.fontSizes.plotLabels,fill:e.FINAL_CONFIG.plot.labels.color},t.toDisplayString(e.canShowValue(i.value)?e.applyDataLabel(e.FINAL_CONFIG.plot.labels.formatter,i.value,e.dataLabel({p:r.prefix||e.FINAL_CONFIG.chart.labels.prefix,v:i.value,s:r.suffix||e.FINAL_CONFIG.chart.labels.suffix,r:e.FINAL_CONFIG.plot.labels.rounding}),{datapoint:i,serie:r}):""),9,gt)):t.createCommentVNode("",!0),i&&d===0&&r.useTag&&r.useTag==="start"?(t.openBlock(),t.createElementBlock("foreignObject",{key:1,x:i.x,y:i.y-20,height:24,width:"150",style:{overflow:"visible"}},[t.createElementVNode("div",{style:t.normalizeStyle(`padding: 3px; background:${e.setOpacity(r.color,80)};color:${e.adaptColorToBackground(r.color)};width:fit-content;font-size:${a.fontSizes.plotLabels}px;border-radius: 2px;`)},t.toDisplayString(r.name),5)],8,Nt)):t.createCommentVNode("",!0),i&&d===r.plots.length-1&&r.useTag&&r.useTag==="end"?(t.openBlock(),t.createElementBlock("foreignObject",{key:2,x:i.x-r.name.length*(a.fontSizes.plotLabels/2),y:i.y-20,height:24,width:"150",style:{overflow:"visible"}},[t.createElementVNode("div",{style:t.normalizeStyle(`padding: 3px; background:${e.setOpacity(r.color,80)};color:${e.adaptColorToBackground(r.color)};width:fit-content;font-size:${a.fontSizes.plotLabels}px;border-radius: 2px;`)},t.toDisplayString(r.name),5)],8,ft)):t.createCommentVNode("",!0)]))),128))],6))),128))])):t.createCommentVNode("",!0),e.FINAL_CONFIG.line.labels.show&&a.mutableConfig.dataLabels.show?(t.openBlock(),t.createElementBlock("g",kt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.lineSet,(r,o)=>(t.openBlock(),t.createElementBlock("g",{key:`xLabel_line_${o}`,class:t.normalizeClass(`xLabel_line_${o}`),style:t.normalizeStyle(`opacity:${a.selectedScale?a.selectedScale===r.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.plots,(i,d)=>(t.openBlock(),t.createElementBlock("g",{key:`xLabel_line_${o}_${d}`},[i&&!Object.hasOwn(r,"dataLabels")||r.dataLabels===!0?(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":a.fontSizes.plotLabels,fill:e.FINAL_CONFIG.line.labels.color},t.toDisplayString(e.canShowValue(i.value)?e.applyDataLabel(e.FINAL_CONFIG.line.labels.formatter,i.value,e.dataLabel({p:r.prefix||e.FINAL_CONFIG.chart.labels.prefix,v:i.value,s:r.suffix||e.FINAL_CONFIG.chart.labels.suffix,r:e.FINAL_CONFIG.line.labels.rounding}),{datapoint:i,serie:r}):""),9,It)):t.createCommentVNode("",!0),i&&d===0&&r.useTag&&r.useTag==="start"?(t.openBlock(),t.createElementBlock("foreignObject",{key:1,x:i.x,y:i.y-20,height:24,width:"150",style:{overflow:"visible"}},[t.createElementVNode("div",{style:t.normalizeStyle(`padding: 3px; background:${e.setOpacity(r.color,80)};color:${e.adaptColorToBackground(r.color)};width:fit-content;font-size:${a.fontSizes.plotLabels}px;border-radius: 2px;`)},t.toDisplayString(r.name),5)],8,xt)):t.createCommentVNode("",!0),i&&d===r.plots.length-1&&r.useTag&&r.useTag==="end"?(t.openBlock(),t.createElementBlock("foreignObject",{key:2,x:i.x-r.name.length*(a.fontSizes.plotLabels/2),y:i.y-20,height:24,width:"150",style:{overflow:"visible"}},[t.createElementVNode("div",{style:t.normalizeStyle(`padding: 3px; background:${e.setOpacity(r.color,80)};color:${e.adaptColorToBackground(r.color)};width:fit-content;font-size:${a.fontSizes.plotLabels}px;border-radius: 2px;`)},t.toDisplayString(r.name),5)],8,bt)):t.createCommentVNode("",!0)]))),128))],6))),128))])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.lineSet,(r,o)=>(t.openBlock(),t.createElementBlock("g",{key:`xLabel_line_${o}`,class:t.normalizeClass(`xLabel_line_${o}`),style:t.normalizeStyle(`opacity:${a.selectedScale?a.selectedScale===r.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.plots,(i,d)=>(t.openBlock(),t.createElementBlock("g",{key:`xLabel_line_${o}_${d}`},[i&&d===0&&r.showSerieName&&r.showSerieName==="start"?(t.openBlock(),t.createElementBlock("text",{key:0,x:i.x-a.fontSizes.plotLabels,y:i.y,"font-size":a.fontSizes.plotLabels,"text-anchor":"end",fill:r.color,innerHTML:e.createTSpans({content:r.name,fontSize:a.fontSizes.plotLabels,fill:r.color,x:i.x-a.fontSizes.plotLabels,y:i.y,maxWords:2})},null,8,Ft)):t.createCommentVNode("",!0),i&&d===r.plots.length-1&&r.showSerieName&&r.showSerieName==="end"?(t.openBlock(),t.createElementBlock("text",{key:1,x:i.x+a.fontSizes.plotLabels,y:i.y,"font-size":a.fontSizes.plotLabels,"text-anchor":"start",fill:r.color,innerHTML:e.createTSpans({content:r.name,fontSize:a.fontSizes.plotLabels,fill:r.color,x:i.x+a.fontSizes.plotLabels,y:i.y,maxWords:2})},null,8,yt)):t.createCommentVNode("",!0)]))),128))],6))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.plotSet,(r,o)=>(t.openBlock(),t.createElementBlock("g",{key:`xLabel_plot_${o}`,class:t.normalizeClass(`xLabel_plot_${o}`),style:t.normalizeStyle(`opacity:${a.selectedScale?a.selectedScale===r.id?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.plots,(i,d)=>(t.openBlock(),t.createElementBlock("g",{key:`xLabel_plot_${o}_${d}`},[i&&d===0&&r.showSerieName&&r.showSerieName==="start"?(t.openBlock(),t.createElementBlock("text",{key:0,x:i.x-a.fontSizes.plotLabels,y:i.y,"font-size":a.fontSizes.plotLabels,"text-anchor":"end",fill:r.color,innerHTML:e.createTSpans({content:r.name,fontSize:a.fontSizes.plotLabels,fill:r.color,x:i.x-a.fontSizes.plotLabels,y:i.y,maxWords:2})},null,8,_t)):t.createCommentVNode("",!0),i&&d===r.plots.length-1&&r.showSerieName&&r.showSerieName==="end"?(t.openBlock(),t.createElementBlock("text",{key:1,x:i.x+a.fontSizes.plotLabels,y:i.y,"font-size":a.fontSizes.plotLabels,"text-anchor":"start",fill:r.color,innerHTML:e.createTSpans({content:r.name,fontSize:a.fontSizes.plotLabels,fill:r.color,x:i.x+a.fontSizes.plotLabels,y:i.y,maxWords:2})},null,8,Ct)):t.createCommentVNode("",!0)]))),128))],6))),128)),a.mutableConfig.useIndividualScale&&!a.mutableConfig.isStacked?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:8},t.renderList(e.allScales,r=>(t.openBlock(),t.createElementBlock("rect",{x:r.x-e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,y:e.drawingArea.top,width:e.FINAL_CONFIG.chart.grid.labels.yAxis.labelWidth,height:e.drawingArea.height<0?10:e.drawingArea.height,fill:a.selectedScale===r.id?e.setOpacity(r.color,20):"transparent",onMouseenter:o=>a.selectedScale=r.id,onMouseleave:s[0]||(s[0]=o=>a.selectedScale=null)},null,40,St))),256)):t.createCommentVNode("",!0),t.createElementVNode("g",null,[e.FINAL_CONFIG.chart.grid.labels.axis.yLabel&&!a.mutableConfig.useIndividualScale?(t.openBlock(),t.createElementBlock("text",{key:0,"font-size":a.fontSizes.yAxis,fill:e.FINAL_CONFIG.chart.grid.labels.color,transform:`translate(${a.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,Lt)):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.grid.labels.axis.xLabel?(t.openBlock(),t.createElementBlock("text",{key:1,"text-anchor":"middle",x:a.width/2,y:e.drawingArea.bottom+a.fontSizes.yAxis+a.fontSizes.xAxis*1.3+e.FINAL_CONFIG.chart.grid.labels.axis.xLabelOffsetY,"font-size":a.fontSizes.yAxis,fill:e.FINAL_CONFIG.chart.grid.labels.color},t.toDisplayString(e.FINAL_CONFIG.chart.grid.labels.axis.xLabel),9,At)):t.createCommentVNode("",!0)]),e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.show?(t.openBlock(),t.createElementBlock("g",wt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.timeLabels,(r,o)=>(t.openBlock(),t.createElementBlock("g",{key:`time_label_${o}`},[r&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||r&&e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&(o===0||o===e.timeLabels.length-1)&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||r&&e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast&&a.selectedSerieIndex===o&&!e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.showOnlyAtModulo||r&&!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":a.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+a.fontSizes.xAxis*1.3+e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.yOffset}), rotate(${e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.rotation})`},t.toDisplayString(r||""),9,Ot)):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),t.createElementVNode("g",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.maxSeries,(r,o)=>(t.openBlock(),t.createElementBlock("g",{key:`tooltip_trap_${o}`},[t.createElementVNode("rect",{"data-cy-trap":"",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,vt)]))),128))]),e.FINAL_CONFIG.chart.timeTag.show&&![null,void 0].includes(a.selectedSerieIndex)?(t.openBlock(),t.createElementBlock("g",Gt,[(t.openBlock(),t.createElementBlock("foreignObject",{x:e.drawingArea.left+e.drawingArea.width/e.maxSeries*a.selectedSerieIndex-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[a.selectedSerieIndex]||a.selectedSerieIndex),5)],8,pt)),t.createElementVNode("circle",{cx:e.drawingArea.left+e.drawingArea.width/e.maxSeries*a.selectedSerieIndex+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,Bt)])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.renderSlot(l.$slots,"svg",{svg:e.svg},void 0,!0)],14,X)):t.createCommentVNode("",!0),l.$slots.watermark?(t.openBlock(),t.createElementBlock("div",Et,[t.renderSlot(l.$slots,"watermark",t.normalizeProps(t.guardReactiveProps({isPrinting:a.isPrinting||a.isImaging})),void 0,!0)])):t.createCommentVNode("",!0),e.isDataset?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(m,{key:4,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&&a.maxX>6&&e.isDataset?(t.openBlock(),t.createBlock(b,{ref:"chartSlicer",key:`slicer_${a.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[a.slicer.start],labelRight:e.FINAL_CONFIG.chart.grid.labels.xAxisLabels.values[a.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:a.selectedSerieIndex,minimapIndicatorColor:e.FINAL_CONFIG.chart.zoom.minimap.indicatorColor,max:a.maxX,min:0,valueStart:a.slicer.start,valueEnd:a.slicer.end,start:a.slicer.start,"onUpdate:start":s[2]||(s[2]=r=>a.slicer.start=r),end:a.slicer.end,"onUpdate:end":s[3]||(s[3]=r=>a.slicer.end=r),onReset:e.refreshSlicer,onTrapMouse:e.selectMinimapIndex},{"reset-action":t.withCtx(({reset:r})=>[t.renderSlot(l.$slots,"reset-action",t.normalizeProps(t.guardReactiveProps({reset:r})),void 0,!0)]),_:3},8,["background","fontSize","useResetSlot","labelLeft","labelRight","textColor","inputColor","selectColor","borderColor","minimap","smoothMinimap","minimapSelectedColor","minimapSelectionRadius","minimapLineColor","minimapSelectedColorOpacity","minimapSelectedIndex","minimapIndicatorColor","max","valueStart","valueEnd","start","end","onReset","onTrapMouse"])):t.createCommentVNode("",!0),e.FINAL_CONFIG.chart.legend.show?(t.openBlock(),t.createElementBlock("div",{key:6,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,(r,o)=>(t.openBlock(),t.createElementBlock("div",{key:`div_legend_item_${o}`,onClick:i=>e.segregate(r),class:t.normalizeClass({"vue-ui-xy-legend-item":!0,"vue-ui-xy-legend-item-segregated":a.segregatedSeries.includes(r.id)})},[a.icons[r.type]==="line"?(t.openBlock(),t.createElementBlock("svg",Vt,[t.createElementVNode("rect",{x:"0",y:"7",rx:"3",stroke:"none",height:"4",width:"20",fill:r.color},null,8,Pt),t.createVNode(x,{plot:{x:10,y:9},radius:4,color:r.color,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(r.shape)?r.shape:"circle",stroke:e.FINAL_CONFIG.chart.backgroundColor,strokeWidth:1},null,8,["color","shape","stroke"])])):(t.openBlock(),t.createElementBlock("svg",Mt,[a.icons[r.type]==="bar"?(t.openBlock(),t.createElementBlock("rect",{key:0,x:"0",y:"0",rx:"1",height:"12",width:"12",stroke:"none",fill:r.color},null,8,Tt)):(t.openBlock(),t.createBlock(x,{key:1,plot:{x:6,y:6},radius:5,color:r.color,shape:["triangle","square","diamond","pentagon","hexagon","star"].includes(r.shape)?r.shape:"circle"},null,8,["color","shape"]))])),t.createElementVNode("span",{style:t.normalizeStyle(`color:${e.FINAL_CONFIG.chart.legend.color}`)},t.toDisplayString(r.name),5)],10,zt))),128))],4)):(t.openBlock(),t.createElementBlock("div",Dt,[t.renderSlot(l.$slots,"legend",{legend:e.absoluteDataset},void 0,!0)],512)),t.createVNode(S,{show:a.mutableConfig.showTooltip&&a.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,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","isCustom"]),e.isDataset?(t.openBlock(),t.createBlock(f,{key:8,hideDetails:"",config:{open:a.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(`${a.isPrinting?"":"max-height:400px"};overflow:auto;width:100%;margin-top:48px`)},[t.createElementVNode("div",Rt,[t.withDirectives(t.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":s[4]||(s[4]=r=>a.showSparklineTable=r)},null,512),[[t.vModelCheckbox,a.showSparklineTable]]),t.createElementVNode("div",{onClick:s[5]||(s[5]=r=>a.showSparklineTable=!a.showSparklineTable),style:{cursor:"pointer"}},[t.createVNode(F,{name:"chartLine",size:20,stroke:e.FINAL_CONFIG.chart.color},null,8,["stroke"])])]),a.showSparklineTable?(t.openBlock(),t.createBlock(C,{key:`sparkline_${a.segregateStep}`,dataset:e.tableSparklineDataset,config:e.tableSparklineConfig},null,8,["dataset","config"])):(t.openBlock(),t.createBlock(_,{key:`table_${a.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]=r=>a.mutableConfig.showTable=!1)},{th:t.withCtx(({th:r})=>[t.createElementVNode("div",{innerHTML:r},null,8,Ht)]),td:t.withCtx(({td:r})=>[t.createTextVNode(t.toDisplayString(isNaN(Number(r))?r:e.dataLabel({p:e.FINAL_CONFIG.chart.labels.prefix,v:r,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)],14,Y)}const qt=H._export_sfc(q,[["render",Wt],["__scopeId","data-v-7219254b"]]);exports.default=qt;