vue-data-ui 2.3.99 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/dist/{Arrow-DwqF2Xky.cjs → Arrow-CbntjQjr.cjs} +1 -1
  2. package/dist/{Arrow-Dyp57i2e.js → Arrow-NcE21Ngm.js} +1 -1
  3. package/dist/{BaseIcon-BDeByyf-.cjs → BaseIcon-7IlvRUX2.cjs} +1 -1
  4. package/dist/{BaseIcon-DHB44s-g.js → BaseIcon-BUTpMnXi.js} +3 -3
  5. package/dist/{DataTable-CiVu-yQZ.cjs → DataTable-BwH-MU-S.cjs} +1 -1
  6. package/dist/{DataTable-Dv3mZD4M.js → DataTable-DAgyf9zN.js} +2 -2
  7. package/dist/{Legend-ComtyeZF.cjs → Legend-CHQgjBuK.cjs} +1 -1
  8. package/dist/{Legend-iUlykl4S.js → Legend-DBhpIX2x.js} +1 -1
  9. package/dist/PackageVersion-Djty0wb2.cjs +1 -0
  10. package/dist/{PackageVersion-DWAqn7t0.js → PackageVersion-wB6dCDZw.js} +1 -1
  11. package/dist/{Shape-CDqrt_yL.js → Shape-CQVJz33T.js} +1 -1
  12. package/dist/{Shape-D-cMBFx-.cjs → Shape-DQ0Hh2Gg.cjs} +1 -1
  13. package/dist/{Slicer-iAp8x_Wq.cjs → Slicer-CiSmaE0_.cjs} +1 -1
  14. package/dist/{Slicer-CQbVH6fI.js → Slicer-DXw23eOC.js} +2 -2
  15. package/dist/{Title-Bpx2Ub4Z.cjs → Title-BHmTg9iK.cjs} +1 -1
  16. package/dist/{Title-CDfZWgra.js → Title-DlVZnHjs.js} +1 -1
  17. package/dist/{Tooltip-0-aPeOmA.js → Tooltip-CveCRFgK.js} +1 -1
  18. package/dist/{Tooltip-D-JR_3NK.cjs → Tooltip-DBzXz806.cjs} +1 -1
  19. package/dist/{index-COTjlcVF.js → index-B0CpCD8z.js} +13 -6
  20. package/dist/index-Dfhvf8hT.cjs +9 -0
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +6 -0
  23. package/dist/types/vue-data-ui.d.ts +6 -0
  24. package/dist/{useNestedProp-CcjyiBlC.js → useNestedProp-DGWP4D-K.js} +1 -1
  25. package/dist/{useNestedProp-np0rM3ep.cjs → useNestedProp-iuDCMc2p.cjs} +1 -1
  26. package/dist/{usePrinter-DuYSC89K.cjs → usePrinter-BQQasUin.cjs} +1 -1
  27. package/dist/{usePrinter-5XpNgqjh.js → usePrinter-Dr30K4cu.js} +1 -1
  28. package/dist/{vue-data-ui-Bu3V-W6l.js → vue-data-ui-BdSFeW_X.js} +57 -57
  29. package/dist/{vue-data-ui-D3zaRZjl.cjs → vue-data-ui-BgVPGbxq.cjs} +1 -1
  30. package/dist/vue-data-ui.cjs +1 -1
  31. package/dist/vue-data-ui.js +1 -1
  32. package/dist/{vue-ui-3d-bar-DmM70v1H.js → vue-ui-3d-bar-C3hYrYTV.js} +8 -8
  33. package/dist/{vue-ui-3d-bar-C3EecSgn.cjs → vue-ui-3d-bar-DhHuwXZ1.cjs} +1 -1
  34. package/dist/{vue-ui-accordion-CzKJYxd2.js → vue-ui-accordion-CmENcGVW.js} +3 -3
  35. package/dist/{vue-ui-accordion-ZppPKpGK.cjs → vue-ui-accordion-Deyo7jw7.cjs} +1 -1
  36. package/dist/{vue-ui-age-pyramid-Bkyd3O37.js → vue-ui-age-pyramid-C075Lvfe.js} +9 -9
  37. package/dist/{vue-ui-age-pyramid-BhmOvXIW.cjs → vue-ui-age-pyramid-DaenyRp2.cjs} +1 -1
  38. package/dist/{vue-ui-annotator-Bmk4N4Co.js → vue-ui-annotator-Bb6fUz4x.js} +1 -1
  39. package/dist/{vue-ui-annotator-rwo7Hm5A.cjs → vue-ui-annotator-DslXalSQ.cjs} +1 -1
  40. package/dist/{vue-ui-candlestick-o8m1DAm8.js → vue-ui-candlestick-C4VEOmY_.js} +10 -10
  41. package/dist/{vue-ui-candlestick-CnYobq1k.cjs → vue-ui-candlestick-CnVzd826.cjs} +1 -1
  42. package/dist/{vue-ui-carousel-table-DLQcAZx4.cjs → vue-ui-carousel-table-Coq4gg_P.cjs} +1 -1
  43. package/dist/{vue-ui-carousel-table-DAck3_R_.js → vue-ui-carousel-table-DZfMMpZ7.js} +4 -4
  44. package/dist/{vue-ui-chestnut-r6lsB6H0.cjs → vue-ui-chestnut-CLnJ0jmo.cjs} +1 -1
  45. package/dist/{vue-ui-chestnut-BAQVvxrX.js → vue-ui-chestnut-CUnbj-Zb.js} +7 -7
  46. package/dist/{vue-ui-cursor-ucua7LYB.cjs → vue-ui-cursor-B9UvQwLp.cjs} +1 -1
  47. package/dist/{vue-ui-cursor-CYNxiijm.js → vue-ui-cursor-CtuPho-s.js} +2 -2
  48. package/dist/{vue-ui-dashboard-nnHIe25Y.js → vue-ui-dashboard-8gQ1bGCn.js} +2 -2
  49. package/dist/{vue-ui-dashboard-DhLCwsFn.cjs → vue-ui-dashboard-KMTRqXzR.cjs} +1 -1
  50. package/dist/{vue-ui-digits-CEI69I0y.cjs → vue-ui-digits-DSMNN4z_.cjs} +1 -1
  51. package/dist/{vue-ui-digits-BB3ZlyZ6.js → vue-ui-digits-DuEyX8op.js} +2 -2
  52. package/dist/{vue-ui-donut-Ba9Qhfte.js → vue-ui-donut-0xdYBc41.js} +362 -336
  53. package/dist/vue-ui-donut-C4ek9m3R.cjs +1 -0
  54. package/dist/{vue-ui-donut-evolution-BZaYmvPf.cjs → vue-ui-donut-evolution-B4TkwvNq.cjs} +1 -1
  55. package/dist/{vue-ui-donut-evolution-CJHa5S50.js → vue-ui-donut-evolution-DbojarYN.js} +10 -10
  56. package/dist/{vue-ui-dumbbell-D_reERJf.js → vue-ui-dumbbell-BxhWjCvR.js} +9 -9
  57. package/dist/{vue-ui-dumbbell-D6Yu9qxX.cjs → vue-ui-dumbbell-Cn3spRSv.cjs} +1 -1
  58. package/dist/{vue-ui-flow-1HFdth8-.cjs → vue-ui-flow-D00VdtGU.cjs} +1 -1
  59. package/dist/{vue-ui-flow-sBFdpbtF.js → vue-ui-flow-DreN8go4.js} +8 -8
  60. package/dist/{vue-ui-galaxy-ccP0yuQ3.js → vue-ui-galaxy-BddgLpP-.js} +10 -10
  61. package/dist/{vue-ui-galaxy-DO1moKk6.cjs → vue-ui-galaxy-DVN-S67V.cjs} +1 -1
  62. package/dist/{vue-ui-gauge-CuFpl36r.cjs → vue-ui-gauge-DYZYFzHP.cjs} +1 -1
  63. package/dist/{vue-ui-gauge-CYjZx4Zz.js → vue-ui-gauge-DoTctAHq.js} +6 -6
  64. package/dist/{vue-ui-gizmo-C3dyTngy.cjs → vue-ui-gizmo-DRASsqlp.cjs} +1 -1
  65. package/dist/{vue-ui-gizmo-DNZwsdp9.js → vue-ui-gizmo-hXBWaB0c.js} +3 -3
  66. package/dist/{vue-ui-heatmap-0qNGXzdN.js → vue-ui-heatmap-B43q8UHu.js} +9 -9
  67. package/dist/{vue-ui-heatmap-CLjngS-G.cjs → vue-ui-heatmap-ldCySJFf.cjs} +1 -1
  68. package/dist/{vue-ui-kpi-iclD49Wb.cjs → vue-ui-kpi-BiJnqtGR.cjs} +1 -1
  69. package/dist/{vue-ui-kpi-BiOt8Z9k.js → vue-ui-kpi-_GVnhxEd.js} +3 -3
  70. package/dist/{vue-ui-mini-loader-ASe27a1V.cjs → vue-ui-mini-loader-DVZtFcHw.cjs} +1 -1
  71. package/dist/{vue-ui-mini-loader-CBPZAUuP.js → vue-ui-mini-loader-qvtu5jtI.js} +2 -2
  72. package/dist/{vue-ui-molecule-uCEX5lMP.cjs → vue-ui-molecule-DP9jhODZ.cjs} +1 -1
  73. package/dist/{vue-ui-molecule-VqY8WZHi.js → vue-ui-molecule-Dpu7Xmu5.js} +10 -10
  74. package/dist/{vue-ui-mood-radar-RYbB7jdY.cjs → vue-ui-mood-radar-BR0INhYL.cjs} +1 -1
  75. package/dist/{vue-ui-mood-radar-B0cjzFkt.js → vue-ui-mood-radar-iZJ0B1Wf.js} +10 -10
  76. package/dist/{vue-ui-nested-donuts-DbBSbOjx.js → vue-ui-nested-donuts-CovQfZ81.js} +10 -10
  77. package/dist/{vue-ui-nested-donuts-Bfu90lZl.cjs → vue-ui-nested-donuts-CwIsGnyH.cjs} +1 -1
  78. package/dist/{vue-ui-onion-DJLGXvfr.js → vue-ui-onion-CJb2Pg0t.js} +10 -10
  79. package/dist/{vue-ui-onion-DK7lJvIH.cjs → vue-ui-onion-DjEChSmi.cjs} +1 -1
  80. package/dist/{vue-ui-parallel-coordinate-plot-BaZ5niQk.cjs → vue-ui-parallel-coordinate-plot-B8Kl6AMk.cjs} +1 -1
  81. package/dist/{vue-ui-parallel-coordinate-plot-B0_1Uh7a.js → vue-ui-parallel-coordinate-plot-CUA_fFC3.js} +11 -11
  82. package/dist/{vue-ui-quadrant-BCadkOrx.cjs → vue-ui-quadrant-CmdbW8yZ.cjs} +1 -1
  83. package/dist/{vue-ui-quadrant-CnAk8Np9.js → vue-ui-quadrant-IAIp5IZq.js} +11 -11
  84. package/dist/{vue-ui-quick-chart-BrgtffFL.js → vue-ui-quick-chart-Bb2RQ6qI.js} +8 -8
  85. package/dist/{vue-ui-quick-chart--4pkEtK0.cjs → vue-ui-quick-chart-DcEk6Ho7.cjs} +1 -1
  86. package/dist/{vue-ui-radar-C68BFXPH.cjs → vue-ui-radar-TjgO9_LA.cjs} +1 -1
  87. package/dist/{vue-ui-radar-CDlE8jus.js → vue-ui-radar-mIQMBRHx.js} +11 -11
  88. package/dist/vue-ui-rating-BGRWSTGr.cjs +1 -0
  89. package/dist/vue-ui-rating-DcJb7_bV.js +323 -0
  90. package/dist/{vue-ui-relation-circle-_5UsoCBf.js → vue-ui-relation-circle-f0fKvSSw.js} +6 -6
  91. package/dist/{vue-ui-relation-circle-0OvmIoRR.cjs → vue-ui-relation-circle-x4sKnxbi.cjs} +1 -1
  92. package/dist/{vue-ui-rings-Duu-Dbns.cjs → vue-ui-rings-B3mUyyQ9.cjs} +1 -1
  93. package/dist/{vue-ui-rings-BHVrR1L1.js → vue-ui-rings-M1PUv5Wu.js} +10 -10
  94. package/dist/{vue-ui-scatter-azoiHq_a.cjs → vue-ui-scatter-DF_nobsG.cjs} +1 -1
  95. package/dist/{vue-ui-scatter-CSfeAiML.js → vue-ui-scatter-DiQJtMz1.js} +11 -11
  96. package/dist/{vue-ui-screenshot-D2-GzcYt.cjs → vue-ui-screenshot-BdnW3WFN.cjs} +1 -1
  97. package/dist/{vue-ui-screenshot-DhMpdJsm.js → vue-ui-screenshot-QRt5bT48.js} +1 -1
  98. package/dist/{vue-ui-skeleton-CYgbDsKG.js → vue-ui-skeleton-DEv_1TFa.js} +3 -3
  99. package/dist/{vue-ui-skeleton-yOWIPVsZ.cjs → vue-ui-skeleton-fqwO2mHD.cjs} +1 -1
  100. package/dist/{vue-ui-smiley-DDn0IZKJ.js → vue-ui-smiley-BAr3XuJG.js} +405 -320
  101. package/dist/vue-ui-smiley-D-zRYR9g.cjs +2 -0
  102. package/dist/{vue-ui-spark-trend-BMdLIhg7.cjs → vue-ui-spark-trend-Br0GTMx_.cjs} +1 -1
  103. package/dist/{vue-ui-spark-trend-DxwmzstI.js → vue-ui-spark-trend-CS6jl2aN.js} +5 -5
  104. package/dist/{vue-ui-sparkbar-yocSweJn.cjs → vue-ui-sparkbar-N8aFbuJv.cjs} +1 -1
  105. package/dist/{vue-ui-sparkbar-Dk8VLc5p.js → vue-ui-sparkbar-tgfbnVYO.js} +4 -4
  106. package/dist/{vue-ui-sparkgauge-CdW6FTRw.cjs → vue-ui-sparkgauge--hgbxLQS.cjs} +1 -1
  107. package/dist/{vue-ui-sparkgauge-G7BowYq4.js → vue-ui-sparkgauge-CqH25hj7.js} +4 -4
  108. package/dist/{vue-ui-sparkhistogram-CkkEGb0a.js → vue-ui-sparkhistogram-Cry2PFGH.js} +5 -5
  109. package/dist/{vue-ui-sparkhistogram-BWulWwCi.cjs → vue-ui-sparkhistogram-vVRA6Z_l.cjs} +1 -1
  110. package/dist/{vue-ui-sparkline-CaetICAe.cjs → vue-ui-sparkline-BZir7JxD.cjs} +1 -1
  111. package/dist/{vue-ui-sparkline-LBi6ypp4.js → vue-ui-sparkline-DXwqMlzQ.js} +4 -4
  112. package/dist/{vue-ui-sparkstackbar-DxUkSfRG.js → vue-ui-sparkstackbar-CQjpberv.js} +4 -4
  113. package/dist/{vue-ui-sparkstackbar-CAJaJ3ZQ.cjs → vue-ui-sparkstackbar-Dc6tZvej.cjs} +1 -1
  114. package/dist/{vue-ui-stackbar-BP1YHhjl.js → vue-ui-stackbar-BF0M1KJf.js} +11 -11
  115. package/dist/{vue-ui-stackbar-BPyxp0m8.cjs → vue-ui-stackbar-BGmTwxvv.cjs} +1 -1
  116. package/dist/{vue-ui-strip-plot-BYJWkk2_.js → vue-ui-strip-plot-C8dme7tS.js} +10 -10
  117. package/dist/{vue-ui-strip-plot-BJSzqxzi.cjs → vue-ui-strip-plot-DT9Od_To.cjs} +1 -1
  118. package/dist/{vue-ui-table-CWHUBpqz.js → vue-ui-table-BvbXppa1.js} +1 -1
  119. package/dist/{vue-ui-table-C0-NQWi3.cjs → vue-ui-table-DGmUNjR_.cjs} +1 -1
  120. package/dist/{vue-ui-table-heatmap-9oVqDvLC.cjs → vue-ui-table-heatmap-Ch2UwsIw.cjs} +1 -1
  121. package/dist/{vue-ui-table-heatmap-uYQph968.js → vue-ui-table-heatmap-ccoLJyce.js} +4 -4
  122. package/dist/{vue-ui-table-sparkline-Bv39O2DT.js → vue-ui-table-sparkline-BZ8faxdR.js} +5 -5
  123. package/dist/{vue-ui-table-sparkline-BHJAP-Uh.cjs → vue-ui-table-sparkline-DT5a8gHs.cjs} +1 -1
  124. package/dist/{vue-ui-thermometer-JLaF8-hy.js → vue-ui-thermometer-BOs1_H4X.js} +6 -6
  125. package/dist/{vue-ui-thermometer-CqcNegd7.cjs → vue-ui-thermometer-Biv2CIsy.cjs} +1 -1
  126. package/dist/{vue-ui-timer-fu2zcs6f.cjs → vue-ui-timer-CNpKGbIg.cjs} +1 -1
  127. package/dist/{vue-ui-timer-B2ZQBIVg.js → vue-ui-timer-DE_m5wxu.js} +5 -5
  128. package/dist/{vue-ui-tiremarks-CXuGp82M.js → vue-ui-tiremarks-CTMS_E0z.js} +6 -6
  129. package/dist/{vue-ui-tiremarks-DzrCVTcA.cjs → vue-ui-tiremarks-YU4wuZl3.cjs} +1 -1
  130. package/dist/{vue-ui-treemap-CubutXgp.js → vue-ui-treemap-5Dm82baA.js} +10 -10
  131. package/dist/{vue-ui-treemap-DmEpWWkN.cjs → vue-ui-treemap-C0E1_DGA.cjs} +1 -1
  132. package/dist/{vue-ui-vertical-bar-BpyY1mcc.cjs → vue-ui-vertical-bar-CVZHDENz.cjs} +1 -1
  133. package/dist/{vue-ui-vertical-bar-Dqd4bZVC.js → vue-ui-vertical-bar-CVZI3v1Y.js} +10 -10
  134. package/dist/{vue-ui-waffle-D1n_ln-O.js → vue-ui-waffle-Bf4epEaH.js} +10 -10
  135. package/dist/{vue-ui-waffle-DzbRkTbY.cjs → vue-ui-waffle-DD09_Fdb.cjs} +1 -1
  136. package/dist/{vue-ui-wheel-BTJ9Ds5T.cjs → vue-ui-wheel-BybAQ0bR.cjs} +1 -1
  137. package/dist/{vue-ui-wheel-C-BFxhCO.js → vue-ui-wheel-DMvZZCzi.js} +6 -6
  138. package/dist/{vue-ui-word-cloud-DdbqYmZz.js → vue-ui-word-cloud-B8hdGDYI.js} +9 -9
  139. package/dist/{vue-ui-word-cloud-BZLUTH8A.cjs → vue-ui-word-cloud-MQ0kgdPw.cjs} +1 -1
  140. package/dist/{vue-ui-xy-BEB7zD0E.cjs → vue-ui-xy-B4C0WR56.cjs} +1 -1
  141. package/dist/{vue-ui-xy-CLJaG6lQ.js → vue-ui-xy-D3TaTkPR.js} +13 -13
  142. package/dist/{vue-ui-xy-canvas-DE1jTXbE.js → vue-ui-xy-canvas-ClETpddw.js} +10 -10
  143. package/dist/{vue-ui-xy-canvas-CJHNw8ek.cjs → vue-ui-xy-canvas-qbn0PHMN.cjs} +1 -1
  144. package/package.json +1 -1
  145. package/dist/PackageVersion-BqVp7cHC.cjs +0 -1
  146. package/dist/index-DQRLTu78.cjs +0 -9
  147. package/dist/vue-ui-donut-Cruh6AlQ.cjs +0 -1
  148. package/dist/vue-ui-rating-DV3d_vAO.cjs +0 -1
  149. package/dist/vue-ui-rating-DwTC908t.js +0 -271
  150. package/dist/vue-ui-smiley-BXV9UMjs.cjs +0 -2
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-DQRLTu78.cjs"),he=require("./useResponsive-B3TrDDIG.cjs"),Me=require("./Title-Bpx2Ub4Z.cjs"),fe=require("./usePrinter-DuYSC89K.cjs"),Se=require("./Tooltip-D-JR_3NK.cjs"),$e=require("./Legend-ComtyeZF.cjs"),me=require("./Shape-D-cMBFx-.cjs"),Ee=require("./DataTable-CiVu-yQZ.cjs"),Le=require("./vue-ui-skeleton-yOWIPVsZ.cjs"),ze=require("./vue-ui-accordion-ZppPKpGK.cjs"),ge=require("./useNestedProp-np0rM3ep.cjs"),Ve=require("./PackageVersion-BqVp7cHC.cjs"),Ae=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Te=["id"],Pe=["xmlns","viewBox"],De={key:0},Fe=["x1","x2","y1","y2","stroke","stroke-width"],We=["x1","x2","y1","y2","stroke","stroke-width"],Oe={key:1},qe=["points","fill","stroke-width","stroke-dasharray","stroke"],Ie={key:0},Xe=["cx","cy","r","fill","stroke","stroke-width","onMouseover"],Ye={key:1},je={key:2},Re=["id"],Ge=["stop-color"],Ue=["stop-color"],He=["id"],Je=["stop-color"],Ke=["stop-color"],Qe=["x","y","width","height","fill","stroke","stroke-width","rx"],Ze=["x","y","height","width","fill","stroke","stroke-width","rx"],et={key:0},tt=["d","stroke","stroke-width"],lt=["d","stroke","stroke-width"],at=["d","stroke","stroke-width"],ot=["d","stroke","stroke-width"],st={key:3,style:{"pointer-events":"none !important"}},rt=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],nt=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],ut=["x","y","font-size","fill","font-weight","text-anchor"],it=["x","y","font-size","fill","font-weight"],ct=["cx","cy","r","fill","stroke","stroke-width"],yt=["cx","cy","r","fill","stroke","stroke-width"],vt=["x","y","font-size","fill","font-weight","text-anchor"],dt={key:4},pt=["x","y","font-size","fill"],ht=["x","y","font-size","fill"],ft=["id","transform","font-size","font-weight","fill"],mt={key:5},gt=["x","y","font-size","fill"],kt=["x","y","font-size","fill"],xt=["font-size","font-weight","fill","x","y"],bt=["id"],_t=["x","y","width","height"],wt={key:6},Bt=["x1","x2","y1","y2","stroke-dasharray","stroke","stroke-width","clip-path"],Ct=["x","y","fill","font-size","font-weight"],Nt={key:3,class:"vue-data-ui-watermark"},Mt=["onClick"],St={key:0,style:{width:"100%",display:"flex","align-items":"center","justify-content":"center"}},$t={viewBox:"0 0 20 20",height:"20",width:"20",style:{overflow:"hidden",background:"transparent"}},Et={key:0},Lt=["innerHTML"],zt={__name:"vue-ui-scatter",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(ke,{expose:xe}){const C=ke,{vue_ui_scatter:be}=s.useConfig(),P=e.computed(()=>!!C.dataset&&C.dataset.length),g=e.ref(s.createUid()),_e=e.ref(null),q=e.ref(!1),I=e.ref(""),U=e.ref(0),A=e.ref(null),H=e.ref(null),J=e.ref(null),K=e.ref(0),Q=e.ref(0),Z=e.ref(0),t=e.computed({get:()=>ee(),set:a=>a});function ee(){const a=ge.useNestedProp({userConfig:C.config,defaultConfig:be});return a.theme?{...ge.useNestedProp({userConfig:s.themes.vue_ui_scatter[a.theme]||C.config,defaultConfig:a}),customPalette:s.themePalettes[a.theme]||s.palette}:a}e.watch(()=>C.config,a=>{t.value=ee(),te(),K.value+=1,Q.value+=1,Z.value+=1},{deep:!0});const D=e.ref(null);e.onMounted(()=>{te()});function te(){if(s.objectIsEmpty(C.dataset)&&s.error({componentName:"VueUiScatter",type:"dataset"}),t.value.responsive){const a=he.throttle(()=>{const{width:u,height:l}=he.useResponsive({chart:A.value,title:t.value.style.title.text?H.value:null,legend:t.value.style.legend.show?J.value:null});k.value.width=u,k.value.height=l});D.value=new ResizeObserver(a),D.value.observe(A.value.parentNode)}}e.onBeforeUnmount(()=>{D.value&&D.value.disconnect()});const{isPrinting:le,isImaging:ae,generatePdf:oe,generateImage:se}=fe.usePrinter({elementId:`vue-ui-scatter_${g.value}`,fileName:t.value.style.title.text||"vue-ui-scatter"}),re=e.computed(()=>s.convertCustomPalette(t.value.customPalette)),M=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.tooltip.show}),k=e.ref({height:t.value.style.layout.height,width:t.value.style.layout.width}),F=e.computed(()=>t.value.style.layout.marginalBars.show?t.value.style.layout.marginalBars.size+t.value.style.layout.marginalBars.offset:0),n=e.computed(()=>({top:t.value.style.layout.padding.top+F.value,right:k.value.width-t.value.style.layout.padding.right-F.value,bottom:k.value.height-t.value.style.layout.padding.bottom,left:t.value.style.layout.padding.left,height:k.value.height-t.value.style.layout.padding.top-t.value.style.layout.padding.bottom-F.value,width:k.value.width-t.value.style.layout.padding.left-t.value.style.layout.padding.right-F.value})),y=e.computed(()=>{C.dataset.forEach((o,i)=>{s.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["values"]}).forEach(h=>{s.error({componentName:"VueUiScatter",type:"datasetSerieAttribute",property:h,index:i})}),o.values&&o.values.forEach((h,E)=>{s.getMissingDatasetAttributes({datasetObject:h,requiredAttributes:["x","y"]}).forEach(V=>{s.error({componentName:"VueUiScatter",type:"datasetSerieAttribute",property:`values.${V}`,index:`${i} - ${E}`})})})});const a=Math.min(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.x))),u=Math.max(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.x))),l=Math.min(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.y))),r=Math.max(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.y)));return{xMin:a>=0?0:a,xMax:u,yMin:l>=0?0:l,yMax:r}}),v=e.computed(()=>({x:n.value.left+Math.abs(y.value.xMin)/(y.value.xMax+Math.abs(y.value.xMin))*n.value.width,y:n.value.bottom-Math.abs(y.value.yMin)/(y.value.yMax+Math.abs(y.value.yMin))*n.value.height})),$=e.computed(()=>C.dataset.map((a,u)=>{const l=`cluster_${g.value}_${u}`;return{...a,id:l,color:a.color?a.color:re.value[u]||s.palette[u]||s.palette[u%s.palette.length],opacity:p.value.includes(l)?.5:1,shape:a.shape??"circle",segregate:()=>ye(l),isSegregated:p.value.includes(l)}})),we=e.computed(()=>({cy:"scatter-div-legend",backgroundColor:t.value.style.legend.backgroundColor,color:t.value.style.legend.color,fontSize:t.value.style.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.legend.bold?"bold":""})),X=e.computed(()=>$.value.map((a,u)=>({...a,plots:a.values.map(l=>({x:n.value.left+(l.x+Math.abs(y.value.xMin))/(y.value.xMax+Math.abs(y.value.xMin))*n.value.width,y:n.value.bottom-(l.y+Math.abs(y.value.yMin))/(y.value.yMax+Math.abs(y.value.yMin))*n.value.height,v:{...l,name:l.name||""},clusterName:a.name,color:a.color?a.color:re.value[u]||s.palette[u]||s.palette[u%s.palette.length],id:`plot_${g.value}_${Math.random()}`,weight:l.weight??t.value.style.layout.plots.radius}))})).filter(a=>!p.value.includes(a.id))),x=e.computed(()=>X.value.map(a=>{const u=a.plots.reduce((d,L)=>d+L.x,0)/a.plots.length,l=a.plots.reduce((d,L)=>d+L.y,0)/a.plots.length;let r=0,o=0,i=0;for(const d of a.plots)r+=(d.x-u)*(d.y-l),o+=(d.x-u)**2,i+=(d.y-l)**2;const h=r/Math.sqrt(o*i),E=h*(Math.sqrt(i)/Math.sqrt(o)),V=l-E*u,B={x1:n.value.left,x2:n.value.right,y1:E*n.value.left+V,y2:E*n.value.right+V,coefficient:h},m=(B.y2-B.y1)/(B.x2-B.x1),_=B.y1-m*B.x1,N=Math.min(k.value.width-t.value.style.layout.padding.right,Math.max(t.value.style.layout.padding.left,(n.value.top-_)/m)),O={x:N,y:m*N+_<=t.value.style.layout.padding.top?n.value.top:m*N+_};return{...a,correlation:B,label:O,plots:a.plots.map(d=>{const L=(d.x+m*d.y-m*_)/(1+Math.pow(m,2)),j=(m*d.x+Math.pow(m,2)*d.y+_)/(1+Math.pow(m,2)),f=Math.sqrt(Math.pow(d.x-L,2)+Math.pow(d.y-j,2));return{...d,deviation:f,shape:a.shape,color:a.color}})}})),ne=e.computed(()=>Math.max(...x.value.flatMap(a=>a.plots.map(u=>Math.abs(u.deviation)))));function Be(){return x.value}function ue(a,u){const l=Array.isArray(a)?a.flatMap(f=>f.plots.map(z=>({x:z.x,y:z.y}))):a.plots.map(f=>({x:f.x,y:f.y}));let r=1/0,o=-1/0,i=1/0,h=-1/0;l.forEach(({x:f,y:z})=>{r=Math.min(r,f),o=Math.max(o,f),i=Math.min(i,z),h=Math.max(h,z)});const E=o-r,V=h-i,B=E/u,m=V/u,_=Array(u).fill(0),N=Array(u).fill(0);l.forEach(({x:f,y:z})=>{const R=Math.floor((f-r)/B),G=Math.floor((z-i)/m);_[R]||(_[R]=0),N[G]||(N[G]=0),_[R]+=1,N[G]+=1});const O=[],d=[];for(let f=0;f<u;f+=1)O.push(r+(f+.5)*B),d.push(i+(f+.5)*m);const L=Math.max(..._),j=Math.max(...N);return{x:_,y:N,avgX:O,avgY:d,maxX:L,maxY:j}}const S=e.computed(()=>t.value.style.layout.marginalBars.tranches),b=e.computed(()=>ue(X.value,S.value)),Ce=e.computed(()=>{const a=n.value.top-t.value.style.layout.marginalBars.offset,u=n.value.right+t.value.style.layout.marginalBars.offset;return X.value.map(l=>{const r=ue(l,S.value);return{coords:r,dX:s.createSmoothPath(r.avgX.map((o,i)=>({x:o,y:a-r.x[i]/r.maxX*t.value.style.layout.marginalBars.size}))),dY:s.createSmoothPathVertical(r.avgY.map((o,i)=>({y:o,x:u+t.value.style.layout.marginalBars.size*r.y[i]/r.maxY}))),color:l.color,id:l.id}})}),w=e.ref(void 0),c=e.ref(null),Y=e.ref(null);function ie(a,u){w.value=a.id,c.value=a;let l="";Y.value={datapoint:a,seriesIndex:u,series:x.value,config:t.value};const r=t.value.style.tooltip.customFormat;s.isFunction(r)&&s.functionReturnsString(()=>r({datapoint:a,seriesIndex:u,series:x.value,config:t.value}))?I.value=r({datapoint:a,seriesIndex:u,series:x.value,config:t.value}):(a.clusterName&&(l+=`<div style="display:flex;gap:3px;align-items:center">${a.clusterName}</div>`),a.v.name&&(l+=`<div>${a.v.name}</div>`),l+=`<div style="text-align:left;margin-top:6px;padding-top:6px;border-top:1px solid ${t.value.style.tooltip.borderColor}">`,l+=`<div>${t.value.style.layout.dataLabels.xAxis.name}: <b>${isNaN(a.v.x)?"-":s.applyDataLabel(t.value.style.layout.plots.selectors.labels.x.formatter,a.v.x,s.dataLabel({p:t.value.style.tooltip.prefix,v:a.v.x,s:t.value.style.tooltip.suffix,r:t.value.style.tooltip.roundingValue}),{datapoint:a,seriesIndex:u})}</b></div>`,l+=`<div>${t.value.style.layout.dataLabels.yAxis.name}: <b>${isNaN(a.v.y)?"-":s.applyDataLabel(t.value.style.layout.plots.selectors.labels.y.formatter,a.v.y,s.dataLabel({p:t.value.style.tooltip.prefix,v:a.v.y,s:t.value.style.tooltip.suffix,r:t.value.style.tooltip.roundingValue}),{datapoint:a,seriesIndex:u})}</b></div>`,l+=`${t.value.style.layout.plots.deviation.translation}: <b>${s.dataLabel({v:a.deviation,r:t.value.style.layout.plots.deviation.roundingValue})}</b>`,l+="</div>",I.value=`<div>${l}</div>`),q.value=!0}function ce(){q.value=!1,w.value=void 0,c.value=null}const p=e.ref([]);function ye(a){p.value.includes(a)?p.value=p.value.filter(u=>u!==a):p.value.length<C.dataset.length-1&&p.value.push(a)}function ve(){e.nextTick(()=>{const a=["",t.value.table.translations.correlationCoefficient,t.value.table.translations.nbrPlots,`${t.value.style.layout.dataLabels.xAxis.name} ${t.value.table.translations.average}`,`${t.value.style.layout.dataLabels.yAxis.name} ${t.value.table.translations.average}`],u=x.value.map(o=>[o.name,o.correlation.coefficient,o.plots.length,o.plots.map(i=>i.v.x).reduce((i,h)=>i+h,0)/o.plots.length,o.plots.map(i=>i.v.y).reduce((i,h)=>i+h,0)/o.plots.length]),l=[[t.value.style.title.text],[t.value.style.title.subtitle.text],[[""],[""],[""]]].concat([a]).concat(u),r=s.createCsvContent(l);s.downloadCsv({csvContent:r,title:t.value.style.title.text||"vue-ui-heatmap"})})}const W=e.computed(()=>{const a=[t.value.table.translations.series,t.value.table.translations.correlationCoefficient,t.value.table.translations.nbrPlots,`${t.value.style.layout.dataLabels.xAxis.name} ${t.value.table.translations.average}`,`${t.value.style.layout.dataLabels.yAxis.name} ${t.value.table.translations.average}`],u=x.value.map(r=>[{shape:r.shape,content:r.name,color:r.color},Number((r.correlation.coefficient??0).toFixed(t.value.table.td.roundingValue)).toLocaleString(),r.plots.length.toLocaleString(),Number((r.plots.map(o=>o.v.x??0).reduce((o,i)=>o+i,0)/r.plots.length).toFixed(t.value.table.td.roundingAverage)).toLocaleString(),Number((r.plots.map(o=>o.v.y??0).reduce((o,i)=>o+i,0)/r.plots.length).toFixed(t.value.table.td.roundingAverage)).toLocaleString()]),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{head:a,body:u,config:l,colNames:a}}),T=e.ref(!1);function Ne(a){T.value=a,U.value+=1}function de(){M.value.showTable=!M.value.showTable}function pe(){M.value.showTooltip=!M.value.showTooltip}return xe({getData:Be,generatePdf:oe,generateCsv:ve,generateImage:se,toggleTable:de,toggleTooltip:pe}),(a,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-scatter ${T.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"scatterChart",ref:A,id:`vue-ui-scatter_${g.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;${t.value.style.title.text?"":"padding-top:36px"};background:${t.value.style.backgroundColor};${t.value.responsive?"height: 100%":""}`)},[t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:H,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(Me._sfc_main,{key:`title_${K.value}`,config:{title:{cy:"scatter-div-title",...t.value.style.title},subtitle:{cy:"scatter-div-subtitle",...t.value.style.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&P.value?(e.openBlock(),e.createBlock(fe.UserOptions,{ref_key:"details",ref:_e,key:`user_options_${U.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isImaging:e.unref(ae),isPrinting:e.unref(le),uid:g.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isTooltip:M.value.showTooltip,isFullscreen:T.value,titles:{...t.value.userOptions.buttonTitles},chartElement:A.value,position:t.value.userOptions.position,onToggleFullscreen:Ne,onGeneratePdf:e.unref(oe),onGenerateCsv:ve,onGenerateImage:e.unref(se),onToggleTable:de,onToggleTooltip:pe},e.createSlots({_:2},[a.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:r})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:r})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isTooltip","isFullscreen","titles","chartElement","position","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),P.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":T.value,"vue-data-ui-fulscreen--off":!T.value}),viewBox:`0 0 ${k.value.width<=0?10:k.value.width} ${k.value.height<=0?10:k.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.color}`)},[e.createVNode(Ve._sfc_main),t.value.style.layout.axis.show?(e.openBlock(),e.createElementBlock("g",De,[e.createElementVNode("line",{x1:v.value.x,x2:v.value.x,y1:n.value.top,y2:n.value.bottom,stroke:t.value.style.layout.axis.stroke,"stroke-width":t.value.style.layout.axis.strokeWidth,"stroke-linecap":"round"},null,8,Fe),e.createElementVNode("line",{x1:n.value.left,x2:n.value.right,y1:v.value.y,y2:v.value.y,stroke:t.value.style.layout.axis.stroke,"stroke-width":t.value.style.layout.axis.strokeWidth,"stroke-linecap":"round"},null,8,We)])):e.createCommentVNode("",!0),t.value.style.layout.plots.giftWrap.show?(e.openBlock(),e.createElementBlock("g",Oe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[l.plots.length>2?(e.openBlock(),e.createElementBlock("polygon",{key:0,points:e.unref(s.giftWrap)({series:l.plots}),fill:e.unref(s.setOpacity)(l.color,t.value.style.layout.plots.giftWrap.fillOpacity*100),"stroke-width":t.value.style.layout.plots.giftWrap.strokeWidth,"stroke-dasharray":t.value.style.layout.plots.giftWrap.strokeDasharray,stroke:l.color,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,qe)):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[!l.shape||l.shape==="circle"?(e.openBlock(),e.createElementBlock("g",Ie,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.plots,(o,i)=>(e.openBlock(),e.createElementBlock("circle",{cx:o.x,cy:o.y,r:w.value&&w.value===o.id?o.weight*2:o.weight,fill:e.unref(s.setOpacity)(l.color,t.value.style.layout.plots.opacity*100),stroke:t.value.style.layout.plots.stroke,"stroke-width":t.value.style.layout.plots.strokeWidth,onMouseover:h=>ie(o,r),onMouseleave:ce,style:e.normalizeStyle(`opacity:${w.value&&w.value===o.id?1:t.value.style.layout.plots.significance.useDistanceOpacity?1-Math.abs(o.deviation)/ne.value:t.value.style.layout.plots.significance.show&&Math.abs(o.deviation)>t.value.style.layout.plots.significance.deviationThreshold?t.value.style.layout.plots.significance.opacity:1}`)},null,44,Xe))),256))])):(e.openBlock(),e.createElementBlock("g",Ye,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.plots,(o,i)=>(e.openBlock(),e.createBlock(me._sfc_main,{plot:{x:o.x,y:o.y},radius:w.value&&w.value===o.id?o.weight*2:o.weight,shape:l.shape,color:e.unref(s.setOpacity)(l.color,t.value.style.layout.plots.opacity*100),stroke:t.value.style.layout.plots.stroke,strokeWidth:t.value.style.layout.plots.strokeWidth,onMouseover:h=>ie(o,r),onMouseleave:ce,style:e.normalizeStyle(`opacity:${w.value&&w.value===o.id?1:t.value.style.layout.plots.significance.useDistanceOpacity?1-Math.abs(o.deviation)/ne.value:t.value.style.layout.plots.significance.show&&Math.abs(o.deviation)>t.value.style.layout.plots.significance.deviationThreshold?t.value.style.layout.plots.significance.opacity:1}`)},null,8,["plot","radius","shape","color","stroke","strokeWidth","onMouseover","style"]))),256))]))]))),256)),t.value.style.layout.marginalBars.show?(e.openBlock(),e.createElementBlock("g",je,[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`marginal_x_${g.value}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.layout.marginalBars.fill},null,8,Ge),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.backgroundColor},null,8,Ue)],8,Re),e.createElementVNode("linearGradient",{id:`marginal_y_${g.value}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.backgroundColor},null,8,Je),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.layout.marginalBars.fill},null,8,Ke)],8,He)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value.x,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[l&&b.value.avgX[r]?(e.openBlock(),e.createElementBlock("rect",{key:0,x:b.value.avgX[r]-n.value.width/S.value/2,y:n.value.top-t.value.style.layout.marginalBars.offset-l/b.value.maxX*t.value.style.layout.marginalBars.size,width:n.value.width/S.value<=0?1e-4:n.value.width/S.value,height:l/b.value.maxX*t.value.style.layout.marginalBars.size<=0?1e-4:l/b.value.maxX*t.value.style.layout.marginalBars.size,fill:t.value.style.layout.marginalBars.useGradient?`url(#marginal_x_${g.value})`:t.value.style.layout.marginalBars.fill,style:e.normalizeStyle(`opacity:${t.value.style.layout.marginalBars.opacity}`),stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.strokeWidth,rx:t.value.style.layout.marginalBars.borderRadius},null,12,Qe)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value.y,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[l&&b.value.avgY[r]?(e.openBlock(),e.createElementBlock("rect",{key:0,x:n.value.right+t.value.style.layout.marginalBars.offset,y:b.value.avgY[r]-n.value.height/S.value/2,height:n.value.height/S.value<=0?1e-4:n.value.height/S.value,width:l/b.value.maxY*t.value.style.layout.marginalBars.size<=0?1e-4:l/b.value.maxY*t.value.style.layout.marginalBars.size,fill:t.value.style.layout.marginalBars.useGradient?`url(#marginal_y_${g.value})`:t.value.style.layout.marginalBars.fill,style:e.normalizeStyle(`opacity:${t.value.style.layout.marginalBars.opacity}`),stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.strokeWidth,rx:t.value.style.layout.marginalBars.borderRadius},null,12,Ze)):e.createCommentVNode("",!0)]))),256)),t.value.style.layout.marginalBars.showLines?(e.openBlock(),e.createElementBlock("g",et,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ce.value,l=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[p.value.includes(l.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:0,d:`M ${l.dX}`,stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth+1,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,tt)),p.value.includes(l.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:1,d:`M ${l.dX}`,stroke:l.color,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,lt)),p.value.includes(l.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:2,d:`M ${l.dY}`,stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth+1,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,at)),p.value.includes(l.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:3,d:`M ${l.dY}`,stroke:l.color,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,ot))],64))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),c.value&&t.value.style.layout.plots.selectors.show?(e.openBlock(),e.createElementBlock("g",st,[e.createElementVNode("line",{x1:v.value.x,x2:c.value.x,y1:c.value.y,y2:c.value.y,stroke:t.value.style.layout.plots.selectors.stroke,"stroke-width":t.value.style.layout.plots.selectors.strokeWidth,"stroke-dasharray":t.value.style.layout.plots.selectors.strokeDasharray,"stroke-linecap":"round",class:"line-pointer"},null,8,rt),e.createElementVNode("line",{x1:c.value.x,x2:c.value.x,y1:v.value.y,y2:c.value.y,stroke:t.value.style.layout.plots.selectors.stroke,"stroke-width":t.value.style.layout.plots.selectors.strokeWidth,"stroke-dasharray":t.value.style.layout.plots.selectors.strokeDasharray,"stroke-linecap":"round",class:"line-pointer"},null,8,nt),e.createElementVNode("text",{x:v.value.x+(c.value.x>v.value.x?-6:6),y:c.value.y+t.value.style.layout.plots.selectors.labels.fontSize/3,"font-size":t.value.style.layout.plots.selectors.labels.fontSize,fill:t.value.style.layout.plots.selectors.labels.color,"font-weight":t.value.style.layout.plots.selectors.labels.bold?"bold":"normal","text-anchor":c.value.x>v.value.x?"end":"start"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,e.unref(s.checkNaN)(c.value.v.y),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(c.value.v.y),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.plots.selectors.labels.rounding}),{datapoint:c.value})),9,ut),e.createElementVNode("text",{x:c.value.x,y:v.value.y+(c.value.y>v.value.y?-6:t.value.style.layout.plots.selectors.labels.fontSize+6),"font-size":t.value.style.layout.plots.selectors.labels.fontSize,fill:t.value.style.layout.plots.selectors.labels.color,"font-weight":t.value.style.layout.plots.selectors.labels.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,e.unref(s.checkNaN)(c.value.v.x),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(c.value.v.x),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.plots.selectors.labels.rounding}),{datapoint:c.value})),9,it),e.createElementVNode("circle",{cx:v.value.x,cy:c.value.y,r:t.value.style.layout.plots.selectors.markers.radius,fill:t.value.style.layout.plots.selectors.markers.fill,stroke:t.value.style.layout.plots.selectors.markers.stroke,"stroke-width":t.value.style.layout.plots.selectors.markers.strokeWidth,class:"line-pointer"},null,8,ct),e.createElementVNode("circle",{cx:c.value.x,cy:v.value.y,r:t.value.style.layout.plots.selectors.markers.radius,fill:t.value.style.layout.plots.selectors.markers.fill,stroke:t.value.style.layout.plots.selectors.markers.stroke,"stroke-width":t.value.style.layout.plots.selectors.markers.strokeWidth,class:"line-pointer"},null,8,yt),t.value.style.layout.plots.selectors.labels.showName?(e.openBlock(),e.createElementBlock("text",{key:0,x:c.value.x,y:c.value.y+(c.value.y<v.value.y?-t.value.style.layout.plots.selectors.labels.fontSize/2:t.value.style.layout.plots.selectors.labels.fontSize),"font-size":t.value.style.layout.plots.selectors.labels.fontSize,fill:t.value.style.layout.plots.selectors.labels.color,"font-weight":t.value.style.layout.plots.selectors.labels.bold?"bold":"normal","text-anchor":c.value.x<n.value.left+100?"start":c.value.x>n.value.right-100?"end":c.value.x>v.value.x?"start":"end"},e.toDisplayString(c.value.v.name),9,vt)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.xAxis.show?(e.openBlock(),e.createElementBlock("g",dt,[e.createElementVNode("text",{x:n.value.left-5,y:v.value.y+t.value.style.layout.dataLabels.xAxis.fontSize/3,"text-anchor":"end","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.x.formatter,e.unref(s.checkNaN)(y.value.xMin),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(y.value.xMin),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.xAxis.rounding}))),9,pt),e.createElementVNode("text",{x:n.value.right+3,y:v.value.y+t.value.style.layout.dataLabels.xAxis.fontSize/3,"text-anchor":"start","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.x.formatter,e.unref(s.checkNaN)(y.value.xMax),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(y.value.xMax),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.xAxis.rounding}))),9,ht),e.createElementVNode("text",{id:`vue-ui-scatter-xAxis-label-${g.value}`,transform:`translate(${t.value.style.layout.dataLabels.xAxis.fontSize*2}, ${n.value.top+n.value.height/2}), rotate(-90)`,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,"font-weight":t.value.style.layout.dataLabels.xAxis.bold?"bold":"normal",fill:t.value.style.layout.dataLabels.xAxis.color},e.toDisplayString(t.value.style.layout.dataLabels.xAxis.name),9,ft)])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.yAxis.show?(e.openBlock(),e.createElementBlock("g",mt,[e.createElementVNode("text",{x:v.value.x,y:n.value.bottom+t.value.style.layout.dataLabels.yAxis.fontSize+3,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,fill:t.value.style.layout.dataLabels.yAxis.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,e.unref(s.checkNaN)(y.value.yMin),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(y.value.yMin),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.yAxis.rounding}))),9,gt),e.createElementVNode("text",{x:v.value.x,y:n.value.top-t.value.style.layout.dataLabels.yAxis.fontSize/2,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,fill:t.value.style.layout.dataLabels.yAxis.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,e.unref(s.checkNaN)(y.value.yMax),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(y.value.yMax),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.yAxis.rounding}))),9,kt),e.createElementVNode("text",{"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,"font-weight":t.value.style.layout.dataLabels.yAxis.bold?"bold":"normal",fill:t.value.style.layout.dataLabels.yAxis.color,x:n.value.left+n.value.width/2,y:n.value.bottom+8+t.value.style.layout.dataLabels.yAxis.fontSize*2},e.toDisplayString(t.value.style.layout.dataLabels.yAxis.name),9,xt)])):e.createCommentVNode("",!0),e.createElementVNode("clipPath",{id:`clip_path_${g.value}`},[e.createElementVNode("rect",{x:n.value.left,y:n.value.top,width:n.value.width<=0?1e-4:n.value.width,height:n.value.height<=0?1e-4:n.value.height},null,8,_t)],8,bt),t.value.style.layout.correlation.show?(e.openBlock(),e.createElementBlock("g",wt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,r)=>(e.openBlock(),e.createElementBlock("line",{x1:l.correlation.x1,x2:l.correlation.x2,y1:l.correlation.y1,y2:l.correlation.y2,"stroke-dasharray":t.value.style.layout.correlation.strokeDasharray,stroke:l.color,"stroke-width":t.value.style.layout.correlation.strokeWidth,"clip-path":`url(#clip_path_${g.value})`},null,8,Bt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.layout.correlation.label.show?(e.openBlock(),e.createElementBlock("text",{key:0,x:l.label.x,y:l.label.y,fill:t.value.style.layout.correlation.label.useSerieColor?l.color:t.value.style.layout.correlation.label.color,"font-size":t.value.style.layout.correlation.label.fontSize,"font-weight":t.value.style.layout.correlation.label.bold?"bold":"normal"},e.toDisplayString(e.unref(s.dataLabel)({v:e.unref(s.checkNaN)(l.correlation.coefficient),r:t.value.style.layout.correlation.label.roundingValue})),9,Ct)):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:k.value},void 0,!0)],14,Pe)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Nt,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(le)||e.unref(ae)})),void 0,!0)])):e.createCommentVNode("",!0),P.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Le.default,{key:4,config:{type:"quadrant",style:{backgroundColor:t.value.style.backgroundColor,quadrant:{grid:{color:t.value.style.layout.axis.stroke},plots:{color:t.value.style.layout.axis.stroke,radius:1}}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:J},[t.value.style.legend.show?(e.openBlock(),e.createBlock($e.Legend,{key:`legend_${Z.value}`,legendSet:$.value,config:we.value,onClickMarker:u[0]||(u[0]=({legend:l})=>ye(l.id))},{item:e.withCtx(({legend:l})=>[e.createElementVNode("div",{onClick:r=>l.segregate(),style:e.normalizeStyle(`opacity:${p.value.includes(l.id)?.5:1}`)},e.toDisplayString(l.name),13,Mt)]),_:1},8,["legendSet","config"])):e.renderSlot(a.$slots,"legend",{key:1,legend:$.value},void 0,!0)],512),e.createVNode(Se._sfc_main,{show:M.value.showTooltip&&q.value,backgroundColor:t.value.style.tooltip.backgroundColor,color:t.value.style.tooltip.color,borderRadius:t.value.style.tooltip.borderRadius,borderColor:t.value.style.tooltip.borderColor,borderWidth:t.value.style.tooltip.borderWidth,fontSize:t.value.style.tooltip.fontSize,backgroundOpacity:t.value.style.tooltip.backgroundOpacity,position:t.value.style.tooltip.position,offsetY:t.value.style.tooltip.offsetY,parent:A.value,content:I.value,isCustom:t.value.style.tooltip.customFormat&&typeof t.value.style.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...Y.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...Y.value})),void 0,!0)]),default:e.withCtx(()=>[t.value.style.tooltip.showShape?(e.openBlock(),e.createElementBlock("div",St,[(e.openBlock(),e.createElementBlock("svg",$t,[e.createVNode(me._sfc_main,{shape:c.value.shape,color:c.value.color,plot:{x:10,y:10},radius:7},null,8,["shape","color"])]))])):e.createCommentVNode("",!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isCustom"]),P.value?(e.openBlock(),e.createBlock(ze.default,{key:5,hideDetails:"",config:{open:M.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color},head:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Ee.DataTable,{key:`table_${Q.value}`,colNames:W.value.colNames,head:W.value.head,body:W.value.body,config:W.value.config,title:`${t.value.style.title.text}${t.value.style.title.subtitle.text?` : ${t.value.style.title.subtitle.text}`:""}`,onClose:u[1]||(u[1]=l=>M.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createTextVNode(e.toDisplayString(l),1)]),td:e.withCtx(({td:l})=>[l.shape?(e.openBlock(),e.createElementBlock("div",Et,[e.createElementVNode("span",null,e.toDisplayString(l.content),1)])):(e.openBlock(),e.createElementBlock("div",{key:1,innerHTML:l},null,8,Lt))]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,Te))}},Vt=Ae._export_sfc(zt,[["__scopeId","data-v-a6514d5f"]]);exports.default=Vt;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-Dfhvf8hT.cjs"),he=require("./useResponsive-B3TrDDIG.cjs"),Me=require("./Title-BHmTg9iK.cjs"),fe=require("./usePrinter-BQQasUin.cjs"),Se=require("./Tooltip-DBzXz806.cjs"),$e=require("./Legend-CHQgjBuK.cjs"),me=require("./Shape-DQ0Hh2Gg.cjs"),Ee=require("./DataTable-BwH-MU-S.cjs"),Le=require("./vue-ui-skeleton-fqwO2mHD.cjs"),ze=require("./vue-ui-accordion-Deyo7jw7.cjs"),ge=require("./useNestedProp-iuDCMc2p.cjs"),Ve=require("./PackageVersion-Djty0wb2.cjs"),Ae=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Te=["id"],Pe=["xmlns","viewBox"],De={key:0},Fe=["x1","x2","y1","y2","stroke","stroke-width"],We=["x1","x2","y1","y2","stroke","stroke-width"],Oe={key:1},qe=["points","fill","stroke-width","stroke-dasharray","stroke"],Ie={key:0},Xe=["cx","cy","r","fill","stroke","stroke-width","onMouseover"],Ye={key:1},je={key:2},Re=["id"],Ge=["stop-color"],Ue=["stop-color"],He=["id"],Je=["stop-color"],Ke=["stop-color"],Qe=["x","y","width","height","fill","stroke","stroke-width","rx"],Ze=["x","y","height","width","fill","stroke","stroke-width","rx"],et={key:0},tt=["d","stroke","stroke-width"],lt=["d","stroke","stroke-width"],at=["d","stroke","stroke-width"],ot=["d","stroke","stroke-width"],st={key:3,style:{"pointer-events":"none !important"}},rt=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],nt=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],ut=["x","y","font-size","fill","font-weight","text-anchor"],it=["x","y","font-size","fill","font-weight"],ct=["cx","cy","r","fill","stroke","stroke-width"],yt=["cx","cy","r","fill","stroke","stroke-width"],vt=["x","y","font-size","fill","font-weight","text-anchor"],dt={key:4},pt=["x","y","font-size","fill"],ht=["x","y","font-size","fill"],ft=["id","transform","font-size","font-weight","fill"],mt={key:5},gt=["x","y","font-size","fill"],kt=["x","y","font-size","fill"],xt=["font-size","font-weight","fill","x","y"],bt=["id"],_t=["x","y","width","height"],wt={key:6},Bt=["x1","x2","y1","y2","stroke-dasharray","stroke","stroke-width","clip-path"],Ct=["x","y","fill","font-size","font-weight"],Nt={key:3,class:"vue-data-ui-watermark"},Mt=["onClick"],St={key:0,style:{width:"100%",display:"flex","align-items":"center","justify-content":"center"}},$t={viewBox:"0 0 20 20",height:"20",width:"20",style:{overflow:"hidden",background:"transparent"}},Et={key:0},Lt=["innerHTML"],zt={__name:"vue-ui-scatter",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(ke,{expose:xe}){const C=ke,{vue_ui_scatter:be}=s.useConfig(),P=e.computed(()=>!!C.dataset&&C.dataset.length),g=e.ref(s.createUid()),_e=e.ref(null),q=e.ref(!1),I=e.ref(""),U=e.ref(0),A=e.ref(null),H=e.ref(null),J=e.ref(null),K=e.ref(0),Q=e.ref(0),Z=e.ref(0),t=e.computed({get:()=>ee(),set:a=>a});function ee(){const a=ge.useNestedProp({userConfig:C.config,defaultConfig:be});return a.theme?{...ge.useNestedProp({userConfig:s.themes.vue_ui_scatter[a.theme]||C.config,defaultConfig:a}),customPalette:s.themePalettes[a.theme]||s.palette}:a}e.watch(()=>C.config,a=>{t.value=ee(),te(),K.value+=1,Q.value+=1,Z.value+=1},{deep:!0});const D=e.ref(null);e.onMounted(()=>{te()});function te(){if(s.objectIsEmpty(C.dataset)&&s.error({componentName:"VueUiScatter",type:"dataset"}),t.value.responsive){const a=he.throttle(()=>{const{width:u,height:l}=he.useResponsive({chart:A.value,title:t.value.style.title.text?H.value:null,legend:t.value.style.legend.show?J.value:null});k.value.width=u,k.value.height=l});D.value=new ResizeObserver(a),D.value.observe(A.value.parentNode)}}e.onBeforeUnmount(()=>{D.value&&D.value.disconnect()});const{isPrinting:le,isImaging:ae,generatePdf:oe,generateImage:se}=fe.usePrinter({elementId:`vue-ui-scatter_${g.value}`,fileName:t.value.style.title.text||"vue-ui-scatter"}),re=e.computed(()=>s.convertCustomPalette(t.value.customPalette)),M=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.tooltip.show}),k=e.ref({height:t.value.style.layout.height,width:t.value.style.layout.width}),F=e.computed(()=>t.value.style.layout.marginalBars.show?t.value.style.layout.marginalBars.size+t.value.style.layout.marginalBars.offset:0),n=e.computed(()=>({top:t.value.style.layout.padding.top+F.value,right:k.value.width-t.value.style.layout.padding.right-F.value,bottom:k.value.height-t.value.style.layout.padding.bottom,left:t.value.style.layout.padding.left,height:k.value.height-t.value.style.layout.padding.top-t.value.style.layout.padding.bottom-F.value,width:k.value.width-t.value.style.layout.padding.left-t.value.style.layout.padding.right-F.value})),y=e.computed(()=>{C.dataset.forEach((o,i)=>{s.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["values"]}).forEach(h=>{s.error({componentName:"VueUiScatter",type:"datasetSerieAttribute",property:h,index:i})}),o.values&&o.values.forEach((h,E)=>{s.getMissingDatasetAttributes({datasetObject:h,requiredAttributes:["x","y"]}).forEach(V=>{s.error({componentName:"VueUiScatter",type:"datasetSerieAttribute",property:`values.${V}`,index:`${i} - ${E}`})})})});const a=Math.min(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.x))),u=Math.max(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.x))),l=Math.min(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.y))),r=Math.max(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.y)));return{xMin:a>=0?0:a,xMax:u,yMin:l>=0?0:l,yMax:r}}),v=e.computed(()=>({x:n.value.left+Math.abs(y.value.xMin)/(y.value.xMax+Math.abs(y.value.xMin))*n.value.width,y:n.value.bottom-Math.abs(y.value.yMin)/(y.value.yMax+Math.abs(y.value.yMin))*n.value.height})),$=e.computed(()=>C.dataset.map((a,u)=>{const l=`cluster_${g.value}_${u}`;return{...a,id:l,color:a.color?a.color:re.value[u]||s.palette[u]||s.palette[u%s.palette.length],opacity:p.value.includes(l)?.5:1,shape:a.shape??"circle",segregate:()=>ye(l),isSegregated:p.value.includes(l)}})),we=e.computed(()=>({cy:"scatter-div-legend",backgroundColor:t.value.style.legend.backgroundColor,color:t.value.style.legend.color,fontSize:t.value.style.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.legend.bold?"bold":""})),X=e.computed(()=>$.value.map((a,u)=>({...a,plots:a.values.map(l=>({x:n.value.left+(l.x+Math.abs(y.value.xMin))/(y.value.xMax+Math.abs(y.value.xMin))*n.value.width,y:n.value.bottom-(l.y+Math.abs(y.value.yMin))/(y.value.yMax+Math.abs(y.value.yMin))*n.value.height,v:{...l,name:l.name||""},clusterName:a.name,color:a.color?a.color:re.value[u]||s.palette[u]||s.palette[u%s.palette.length],id:`plot_${g.value}_${Math.random()}`,weight:l.weight??t.value.style.layout.plots.radius}))})).filter(a=>!p.value.includes(a.id))),x=e.computed(()=>X.value.map(a=>{const u=a.plots.reduce((d,L)=>d+L.x,0)/a.plots.length,l=a.plots.reduce((d,L)=>d+L.y,0)/a.plots.length;let r=0,o=0,i=0;for(const d of a.plots)r+=(d.x-u)*(d.y-l),o+=(d.x-u)**2,i+=(d.y-l)**2;const h=r/Math.sqrt(o*i),E=h*(Math.sqrt(i)/Math.sqrt(o)),V=l-E*u,B={x1:n.value.left,x2:n.value.right,y1:E*n.value.left+V,y2:E*n.value.right+V,coefficient:h},m=(B.y2-B.y1)/(B.x2-B.x1),_=B.y1-m*B.x1,N=Math.min(k.value.width-t.value.style.layout.padding.right,Math.max(t.value.style.layout.padding.left,(n.value.top-_)/m)),O={x:N,y:m*N+_<=t.value.style.layout.padding.top?n.value.top:m*N+_};return{...a,correlation:B,label:O,plots:a.plots.map(d=>{const L=(d.x+m*d.y-m*_)/(1+Math.pow(m,2)),j=(m*d.x+Math.pow(m,2)*d.y+_)/(1+Math.pow(m,2)),f=Math.sqrt(Math.pow(d.x-L,2)+Math.pow(d.y-j,2));return{...d,deviation:f,shape:a.shape,color:a.color}})}})),ne=e.computed(()=>Math.max(...x.value.flatMap(a=>a.plots.map(u=>Math.abs(u.deviation)))));function Be(){return x.value}function ue(a,u){const l=Array.isArray(a)?a.flatMap(f=>f.plots.map(z=>({x:z.x,y:z.y}))):a.plots.map(f=>({x:f.x,y:f.y}));let r=1/0,o=-1/0,i=1/0,h=-1/0;l.forEach(({x:f,y:z})=>{r=Math.min(r,f),o=Math.max(o,f),i=Math.min(i,z),h=Math.max(h,z)});const E=o-r,V=h-i,B=E/u,m=V/u,_=Array(u).fill(0),N=Array(u).fill(0);l.forEach(({x:f,y:z})=>{const R=Math.floor((f-r)/B),G=Math.floor((z-i)/m);_[R]||(_[R]=0),N[G]||(N[G]=0),_[R]+=1,N[G]+=1});const O=[],d=[];for(let f=0;f<u;f+=1)O.push(r+(f+.5)*B),d.push(i+(f+.5)*m);const L=Math.max(..._),j=Math.max(...N);return{x:_,y:N,avgX:O,avgY:d,maxX:L,maxY:j}}const S=e.computed(()=>t.value.style.layout.marginalBars.tranches),b=e.computed(()=>ue(X.value,S.value)),Ce=e.computed(()=>{const a=n.value.top-t.value.style.layout.marginalBars.offset,u=n.value.right+t.value.style.layout.marginalBars.offset;return X.value.map(l=>{const r=ue(l,S.value);return{coords:r,dX:s.createSmoothPath(r.avgX.map((o,i)=>({x:o,y:a-r.x[i]/r.maxX*t.value.style.layout.marginalBars.size}))),dY:s.createSmoothPathVertical(r.avgY.map((o,i)=>({y:o,x:u+t.value.style.layout.marginalBars.size*r.y[i]/r.maxY}))),color:l.color,id:l.id}})}),w=e.ref(void 0),c=e.ref(null),Y=e.ref(null);function ie(a,u){w.value=a.id,c.value=a;let l="";Y.value={datapoint:a,seriesIndex:u,series:x.value,config:t.value};const r=t.value.style.tooltip.customFormat;s.isFunction(r)&&s.functionReturnsString(()=>r({datapoint:a,seriesIndex:u,series:x.value,config:t.value}))?I.value=r({datapoint:a,seriesIndex:u,series:x.value,config:t.value}):(a.clusterName&&(l+=`<div style="display:flex;gap:3px;align-items:center">${a.clusterName}</div>`),a.v.name&&(l+=`<div>${a.v.name}</div>`),l+=`<div style="text-align:left;margin-top:6px;padding-top:6px;border-top:1px solid ${t.value.style.tooltip.borderColor}">`,l+=`<div>${t.value.style.layout.dataLabels.xAxis.name}: <b>${isNaN(a.v.x)?"-":s.applyDataLabel(t.value.style.layout.plots.selectors.labels.x.formatter,a.v.x,s.dataLabel({p:t.value.style.tooltip.prefix,v:a.v.x,s:t.value.style.tooltip.suffix,r:t.value.style.tooltip.roundingValue}),{datapoint:a,seriesIndex:u})}</b></div>`,l+=`<div>${t.value.style.layout.dataLabels.yAxis.name}: <b>${isNaN(a.v.y)?"-":s.applyDataLabel(t.value.style.layout.plots.selectors.labels.y.formatter,a.v.y,s.dataLabel({p:t.value.style.tooltip.prefix,v:a.v.y,s:t.value.style.tooltip.suffix,r:t.value.style.tooltip.roundingValue}),{datapoint:a,seriesIndex:u})}</b></div>`,l+=`${t.value.style.layout.plots.deviation.translation}: <b>${s.dataLabel({v:a.deviation,r:t.value.style.layout.plots.deviation.roundingValue})}</b>`,l+="</div>",I.value=`<div>${l}</div>`),q.value=!0}function ce(){q.value=!1,w.value=void 0,c.value=null}const p=e.ref([]);function ye(a){p.value.includes(a)?p.value=p.value.filter(u=>u!==a):p.value.length<C.dataset.length-1&&p.value.push(a)}function ve(){e.nextTick(()=>{const a=["",t.value.table.translations.correlationCoefficient,t.value.table.translations.nbrPlots,`${t.value.style.layout.dataLabels.xAxis.name} ${t.value.table.translations.average}`,`${t.value.style.layout.dataLabels.yAxis.name} ${t.value.table.translations.average}`],u=x.value.map(o=>[o.name,o.correlation.coefficient,o.plots.length,o.plots.map(i=>i.v.x).reduce((i,h)=>i+h,0)/o.plots.length,o.plots.map(i=>i.v.y).reduce((i,h)=>i+h,0)/o.plots.length]),l=[[t.value.style.title.text],[t.value.style.title.subtitle.text],[[""],[""],[""]]].concat([a]).concat(u),r=s.createCsvContent(l);s.downloadCsv({csvContent:r,title:t.value.style.title.text||"vue-ui-heatmap"})})}const W=e.computed(()=>{const a=[t.value.table.translations.series,t.value.table.translations.correlationCoefficient,t.value.table.translations.nbrPlots,`${t.value.style.layout.dataLabels.xAxis.name} ${t.value.table.translations.average}`,`${t.value.style.layout.dataLabels.yAxis.name} ${t.value.table.translations.average}`],u=x.value.map(r=>[{shape:r.shape,content:r.name,color:r.color},Number((r.correlation.coefficient??0).toFixed(t.value.table.td.roundingValue)).toLocaleString(),r.plots.length.toLocaleString(),Number((r.plots.map(o=>o.v.x??0).reduce((o,i)=>o+i,0)/r.plots.length).toFixed(t.value.table.td.roundingAverage)).toLocaleString(),Number((r.plots.map(o=>o.v.y??0).reduce((o,i)=>o+i,0)/r.plots.length).toFixed(t.value.table.td.roundingAverage)).toLocaleString()]),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{head:a,body:u,config:l,colNames:a}}),T=e.ref(!1);function Ne(a){T.value=a,U.value+=1}function de(){M.value.showTable=!M.value.showTable}function pe(){M.value.showTooltip=!M.value.showTooltip}return xe({getData:Be,generatePdf:oe,generateCsv:ve,generateImage:se,toggleTable:de,toggleTooltip:pe}),(a,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-scatter ${T.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"scatterChart",ref:A,id:`vue-ui-scatter_${g.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;${t.value.style.title.text?"":"padding-top:36px"};background:${t.value.style.backgroundColor};${t.value.responsive?"height: 100%":""}`)},[t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:H,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(Me._sfc_main,{key:`title_${K.value}`,config:{title:{cy:"scatter-div-title",...t.value.style.title},subtitle:{cy:"scatter-div-subtitle",...t.value.style.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&P.value?(e.openBlock(),e.createBlock(fe.UserOptions,{ref_key:"details",ref:_e,key:`user_options_${U.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isImaging:e.unref(ae),isPrinting:e.unref(le),uid:g.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isTooltip:M.value.showTooltip,isFullscreen:T.value,titles:{...t.value.userOptions.buttonTitles},chartElement:A.value,position:t.value.userOptions.position,onToggleFullscreen:Ne,onGeneratePdf:e.unref(oe),onGenerateCsv:ve,onGenerateImage:e.unref(se),onToggleTable:de,onToggleTooltip:pe},e.createSlots({_:2},[a.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:r})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:r})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isTooltip","isFullscreen","titles","chartElement","position","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),P.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":T.value,"vue-data-ui-fulscreen--off":!T.value}),viewBox:`0 0 ${k.value.width<=0?10:k.value.width} ${k.value.height<=0?10:k.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.color}`)},[e.createVNode(Ve._sfc_main),t.value.style.layout.axis.show?(e.openBlock(),e.createElementBlock("g",De,[e.createElementVNode("line",{x1:v.value.x,x2:v.value.x,y1:n.value.top,y2:n.value.bottom,stroke:t.value.style.layout.axis.stroke,"stroke-width":t.value.style.layout.axis.strokeWidth,"stroke-linecap":"round"},null,8,Fe),e.createElementVNode("line",{x1:n.value.left,x2:n.value.right,y1:v.value.y,y2:v.value.y,stroke:t.value.style.layout.axis.stroke,"stroke-width":t.value.style.layout.axis.strokeWidth,"stroke-linecap":"round"},null,8,We)])):e.createCommentVNode("",!0),t.value.style.layout.plots.giftWrap.show?(e.openBlock(),e.createElementBlock("g",Oe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[l.plots.length>2?(e.openBlock(),e.createElementBlock("polygon",{key:0,points:e.unref(s.giftWrap)({series:l.plots}),fill:e.unref(s.setOpacity)(l.color,t.value.style.layout.plots.giftWrap.fillOpacity*100),"stroke-width":t.value.style.layout.plots.giftWrap.strokeWidth,"stroke-dasharray":t.value.style.layout.plots.giftWrap.strokeDasharray,stroke:l.color,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,qe)):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[!l.shape||l.shape==="circle"?(e.openBlock(),e.createElementBlock("g",Ie,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.plots,(o,i)=>(e.openBlock(),e.createElementBlock("circle",{cx:o.x,cy:o.y,r:w.value&&w.value===o.id?o.weight*2:o.weight,fill:e.unref(s.setOpacity)(l.color,t.value.style.layout.plots.opacity*100),stroke:t.value.style.layout.plots.stroke,"stroke-width":t.value.style.layout.plots.strokeWidth,onMouseover:h=>ie(o,r),onMouseleave:ce,style:e.normalizeStyle(`opacity:${w.value&&w.value===o.id?1:t.value.style.layout.plots.significance.useDistanceOpacity?1-Math.abs(o.deviation)/ne.value:t.value.style.layout.plots.significance.show&&Math.abs(o.deviation)>t.value.style.layout.plots.significance.deviationThreshold?t.value.style.layout.plots.significance.opacity:1}`)},null,44,Xe))),256))])):(e.openBlock(),e.createElementBlock("g",Ye,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.plots,(o,i)=>(e.openBlock(),e.createBlock(me._sfc_main,{plot:{x:o.x,y:o.y},radius:w.value&&w.value===o.id?o.weight*2:o.weight,shape:l.shape,color:e.unref(s.setOpacity)(l.color,t.value.style.layout.plots.opacity*100),stroke:t.value.style.layout.plots.stroke,strokeWidth:t.value.style.layout.plots.strokeWidth,onMouseover:h=>ie(o,r),onMouseleave:ce,style:e.normalizeStyle(`opacity:${w.value&&w.value===o.id?1:t.value.style.layout.plots.significance.useDistanceOpacity?1-Math.abs(o.deviation)/ne.value:t.value.style.layout.plots.significance.show&&Math.abs(o.deviation)>t.value.style.layout.plots.significance.deviationThreshold?t.value.style.layout.plots.significance.opacity:1}`)},null,8,["plot","radius","shape","color","stroke","strokeWidth","onMouseover","style"]))),256))]))]))),256)),t.value.style.layout.marginalBars.show?(e.openBlock(),e.createElementBlock("g",je,[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`marginal_x_${g.value}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.layout.marginalBars.fill},null,8,Ge),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.backgroundColor},null,8,Ue)],8,Re),e.createElementVNode("linearGradient",{id:`marginal_y_${g.value}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.backgroundColor},null,8,Je),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.layout.marginalBars.fill},null,8,Ke)],8,He)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value.x,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[l&&b.value.avgX[r]?(e.openBlock(),e.createElementBlock("rect",{key:0,x:b.value.avgX[r]-n.value.width/S.value/2,y:n.value.top-t.value.style.layout.marginalBars.offset-l/b.value.maxX*t.value.style.layout.marginalBars.size,width:n.value.width/S.value<=0?1e-4:n.value.width/S.value,height:l/b.value.maxX*t.value.style.layout.marginalBars.size<=0?1e-4:l/b.value.maxX*t.value.style.layout.marginalBars.size,fill:t.value.style.layout.marginalBars.useGradient?`url(#marginal_x_${g.value})`:t.value.style.layout.marginalBars.fill,style:e.normalizeStyle(`opacity:${t.value.style.layout.marginalBars.opacity}`),stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.strokeWidth,rx:t.value.style.layout.marginalBars.borderRadius},null,12,Qe)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value.y,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[l&&b.value.avgY[r]?(e.openBlock(),e.createElementBlock("rect",{key:0,x:n.value.right+t.value.style.layout.marginalBars.offset,y:b.value.avgY[r]-n.value.height/S.value/2,height:n.value.height/S.value<=0?1e-4:n.value.height/S.value,width:l/b.value.maxY*t.value.style.layout.marginalBars.size<=0?1e-4:l/b.value.maxY*t.value.style.layout.marginalBars.size,fill:t.value.style.layout.marginalBars.useGradient?`url(#marginal_y_${g.value})`:t.value.style.layout.marginalBars.fill,style:e.normalizeStyle(`opacity:${t.value.style.layout.marginalBars.opacity}`),stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.strokeWidth,rx:t.value.style.layout.marginalBars.borderRadius},null,12,Ze)):e.createCommentVNode("",!0)]))),256)),t.value.style.layout.marginalBars.showLines?(e.openBlock(),e.createElementBlock("g",et,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ce.value,l=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[p.value.includes(l.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:0,d:`M ${l.dX}`,stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth+1,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,tt)),p.value.includes(l.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:1,d:`M ${l.dX}`,stroke:l.color,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,lt)),p.value.includes(l.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:2,d:`M ${l.dY}`,stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth+1,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,at)),p.value.includes(l.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:3,d:`M ${l.dY}`,stroke:l.color,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,ot))],64))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),c.value&&t.value.style.layout.plots.selectors.show?(e.openBlock(),e.createElementBlock("g",st,[e.createElementVNode("line",{x1:v.value.x,x2:c.value.x,y1:c.value.y,y2:c.value.y,stroke:t.value.style.layout.plots.selectors.stroke,"stroke-width":t.value.style.layout.plots.selectors.strokeWidth,"stroke-dasharray":t.value.style.layout.plots.selectors.strokeDasharray,"stroke-linecap":"round",class:"line-pointer"},null,8,rt),e.createElementVNode("line",{x1:c.value.x,x2:c.value.x,y1:v.value.y,y2:c.value.y,stroke:t.value.style.layout.plots.selectors.stroke,"stroke-width":t.value.style.layout.plots.selectors.strokeWidth,"stroke-dasharray":t.value.style.layout.plots.selectors.strokeDasharray,"stroke-linecap":"round",class:"line-pointer"},null,8,nt),e.createElementVNode("text",{x:v.value.x+(c.value.x>v.value.x?-6:6),y:c.value.y+t.value.style.layout.plots.selectors.labels.fontSize/3,"font-size":t.value.style.layout.plots.selectors.labels.fontSize,fill:t.value.style.layout.plots.selectors.labels.color,"font-weight":t.value.style.layout.plots.selectors.labels.bold?"bold":"normal","text-anchor":c.value.x>v.value.x?"end":"start"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,e.unref(s.checkNaN)(c.value.v.y),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(c.value.v.y),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.plots.selectors.labels.rounding}),{datapoint:c.value})),9,ut),e.createElementVNode("text",{x:c.value.x,y:v.value.y+(c.value.y>v.value.y?-6:t.value.style.layout.plots.selectors.labels.fontSize+6),"font-size":t.value.style.layout.plots.selectors.labels.fontSize,fill:t.value.style.layout.plots.selectors.labels.color,"font-weight":t.value.style.layout.plots.selectors.labels.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,e.unref(s.checkNaN)(c.value.v.x),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(c.value.v.x),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.plots.selectors.labels.rounding}),{datapoint:c.value})),9,it),e.createElementVNode("circle",{cx:v.value.x,cy:c.value.y,r:t.value.style.layout.plots.selectors.markers.radius,fill:t.value.style.layout.plots.selectors.markers.fill,stroke:t.value.style.layout.plots.selectors.markers.stroke,"stroke-width":t.value.style.layout.plots.selectors.markers.strokeWidth,class:"line-pointer"},null,8,ct),e.createElementVNode("circle",{cx:c.value.x,cy:v.value.y,r:t.value.style.layout.plots.selectors.markers.radius,fill:t.value.style.layout.plots.selectors.markers.fill,stroke:t.value.style.layout.plots.selectors.markers.stroke,"stroke-width":t.value.style.layout.plots.selectors.markers.strokeWidth,class:"line-pointer"},null,8,yt),t.value.style.layout.plots.selectors.labels.showName?(e.openBlock(),e.createElementBlock("text",{key:0,x:c.value.x,y:c.value.y+(c.value.y<v.value.y?-t.value.style.layout.plots.selectors.labels.fontSize/2:t.value.style.layout.plots.selectors.labels.fontSize),"font-size":t.value.style.layout.plots.selectors.labels.fontSize,fill:t.value.style.layout.plots.selectors.labels.color,"font-weight":t.value.style.layout.plots.selectors.labels.bold?"bold":"normal","text-anchor":c.value.x<n.value.left+100?"start":c.value.x>n.value.right-100?"end":c.value.x>v.value.x?"start":"end"},e.toDisplayString(c.value.v.name),9,vt)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.xAxis.show?(e.openBlock(),e.createElementBlock("g",dt,[e.createElementVNode("text",{x:n.value.left-5,y:v.value.y+t.value.style.layout.dataLabels.xAxis.fontSize/3,"text-anchor":"end","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.x.formatter,e.unref(s.checkNaN)(y.value.xMin),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(y.value.xMin),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.xAxis.rounding}))),9,pt),e.createElementVNode("text",{x:n.value.right+3,y:v.value.y+t.value.style.layout.dataLabels.xAxis.fontSize/3,"text-anchor":"start","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.x.formatter,e.unref(s.checkNaN)(y.value.xMax),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(y.value.xMax),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.xAxis.rounding}))),9,ht),e.createElementVNode("text",{id:`vue-ui-scatter-xAxis-label-${g.value}`,transform:`translate(${t.value.style.layout.dataLabels.xAxis.fontSize*2}, ${n.value.top+n.value.height/2}), rotate(-90)`,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,"font-weight":t.value.style.layout.dataLabels.xAxis.bold?"bold":"normal",fill:t.value.style.layout.dataLabels.xAxis.color},e.toDisplayString(t.value.style.layout.dataLabels.xAxis.name),9,ft)])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.yAxis.show?(e.openBlock(),e.createElementBlock("g",mt,[e.createElementVNode("text",{x:v.value.x,y:n.value.bottom+t.value.style.layout.dataLabels.yAxis.fontSize+3,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,fill:t.value.style.layout.dataLabels.yAxis.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,e.unref(s.checkNaN)(y.value.yMin),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(y.value.yMin),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.yAxis.rounding}))),9,gt),e.createElementVNode("text",{x:v.value.x,y:n.value.top-t.value.style.layout.dataLabels.yAxis.fontSize/2,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,fill:t.value.style.layout.dataLabels.yAxis.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,e.unref(s.checkNaN)(y.value.yMax),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(y.value.yMax),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.yAxis.rounding}))),9,kt),e.createElementVNode("text",{"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,"font-weight":t.value.style.layout.dataLabels.yAxis.bold?"bold":"normal",fill:t.value.style.layout.dataLabels.yAxis.color,x:n.value.left+n.value.width/2,y:n.value.bottom+8+t.value.style.layout.dataLabels.yAxis.fontSize*2},e.toDisplayString(t.value.style.layout.dataLabels.yAxis.name),9,xt)])):e.createCommentVNode("",!0),e.createElementVNode("clipPath",{id:`clip_path_${g.value}`},[e.createElementVNode("rect",{x:n.value.left,y:n.value.top,width:n.value.width<=0?1e-4:n.value.width,height:n.value.height<=0?1e-4:n.value.height},null,8,_t)],8,bt),t.value.style.layout.correlation.show?(e.openBlock(),e.createElementBlock("g",wt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,r)=>(e.openBlock(),e.createElementBlock("line",{x1:l.correlation.x1,x2:l.correlation.x2,y1:l.correlation.y1,y2:l.correlation.y2,"stroke-dasharray":t.value.style.layout.correlation.strokeDasharray,stroke:l.color,"stroke-width":t.value.style.layout.correlation.strokeWidth,"clip-path":`url(#clip_path_${g.value})`},null,8,Bt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.layout.correlation.label.show?(e.openBlock(),e.createElementBlock("text",{key:0,x:l.label.x,y:l.label.y,fill:t.value.style.layout.correlation.label.useSerieColor?l.color:t.value.style.layout.correlation.label.color,"font-size":t.value.style.layout.correlation.label.fontSize,"font-weight":t.value.style.layout.correlation.label.bold?"bold":"normal"},e.toDisplayString(e.unref(s.dataLabel)({v:e.unref(s.checkNaN)(l.correlation.coefficient),r:t.value.style.layout.correlation.label.roundingValue})),9,Ct)):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:k.value},void 0,!0)],14,Pe)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Nt,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(le)||e.unref(ae)})),void 0,!0)])):e.createCommentVNode("",!0),P.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Le.default,{key:4,config:{type:"quadrant",style:{backgroundColor:t.value.style.backgroundColor,quadrant:{grid:{color:t.value.style.layout.axis.stroke},plots:{color:t.value.style.layout.axis.stroke,radius:1}}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:J},[t.value.style.legend.show?(e.openBlock(),e.createBlock($e.Legend,{key:`legend_${Z.value}`,legendSet:$.value,config:we.value,onClickMarker:u[0]||(u[0]=({legend:l})=>ye(l.id))},{item:e.withCtx(({legend:l})=>[e.createElementVNode("div",{onClick:r=>l.segregate(),style:e.normalizeStyle(`opacity:${p.value.includes(l.id)?.5:1}`)},e.toDisplayString(l.name),13,Mt)]),_:1},8,["legendSet","config"])):e.renderSlot(a.$slots,"legend",{key:1,legend:$.value},void 0,!0)],512),e.createVNode(Se._sfc_main,{show:M.value.showTooltip&&q.value,backgroundColor:t.value.style.tooltip.backgroundColor,color:t.value.style.tooltip.color,borderRadius:t.value.style.tooltip.borderRadius,borderColor:t.value.style.tooltip.borderColor,borderWidth:t.value.style.tooltip.borderWidth,fontSize:t.value.style.tooltip.fontSize,backgroundOpacity:t.value.style.tooltip.backgroundOpacity,position:t.value.style.tooltip.position,offsetY:t.value.style.tooltip.offsetY,parent:A.value,content:I.value,isCustom:t.value.style.tooltip.customFormat&&typeof t.value.style.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...Y.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...Y.value})),void 0,!0)]),default:e.withCtx(()=>[t.value.style.tooltip.showShape?(e.openBlock(),e.createElementBlock("div",St,[(e.openBlock(),e.createElementBlock("svg",$t,[e.createVNode(me._sfc_main,{shape:c.value.shape,color:c.value.color,plot:{x:10,y:10},radius:7},null,8,["shape","color"])]))])):e.createCommentVNode("",!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isCustom"]),P.value?(e.openBlock(),e.createBlock(ze.default,{key:5,hideDetails:"",config:{open:M.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color},head:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Ee.DataTable,{key:`table_${Q.value}`,colNames:W.value.colNames,head:W.value.head,body:W.value.body,config:W.value.config,title:`${t.value.style.title.text}${t.value.style.title.subtitle.text?` : ${t.value.style.title.subtitle.text}`:""}`,onClose:u[1]||(u[1]=l=>M.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createTextVNode(e.toDisplayString(l),1)]),td:e.withCtx(({td:l})=>[l.shape?(e.openBlock(),e.createElementBlock("div",Et,[e.createElementVNode("span",null,e.toDisplayString(l.content),1)])):(e.openBlock(),e.createElementBlock("div",{key:1,innerHTML:l},null,8,Lt))]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,Te))}},Vt=Ae._export_sfc(zt,[["__scopeId","data-v-a6514d5f"]]);exports.default=Vt;
@@ -1,16 +1,16 @@
1
1
  import { computed as k, ref as g, watch as Ue, onMounted as He, onBeforeUnmount as Je, openBlock as o, createElementBlock as r, normalizeClass as Fe, normalizeStyle as R, createBlock as q, createCommentVNode as d, unref as y, createSlots as Ke, withCtx as w, renderSlot as T, normalizeProps as ae, guardReactiveProps as oe, createVNode as ce, createElementVNode as c, Fragment as P, renderList as X, toDisplayString as M, createTextVNode as Qe, nextTick as Ze } from "vue";
2
- import { u as et, c as tt, t as lt, a as at, p as U, o as ot, e as de, b as st, g as Oe, R as ut, V as rt, X as it, T as nt, s as he, i as Y, v as $, f as W, x as yt, y as vt, q as ct, r as dt } from "./index-COTjlcVF.js";
2
+ import { u as et, c as tt, t as lt, a as at, p as U, o as ot, e as de, b as st, g as Oe, R as ut, V as rt, X as it, T as nt, s as he, i as Y, v as $, f as W, x as yt, y as vt, q as ct, r as dt } from "./index-B0CpCD8z.js";
3
3
  import { t as ht, u as pt } from "./useResponsive-NZB-WLRF.js";
4
- import { _ as ft } from "./Title-CDfZWgra.js";
5
- import { u as gt, U as xt } from "./usePrinter-5XpNgqjh.js";
6
- import { _ as mt } from "./Tooltip-0-aPeOmA.js";
7
- import { L as bt } from "./Legend-iUlykl4S.js";
8
- import { _ as Xe } from "./Shape-CDqrt_yL.js";
9
- import { D as kt } from "./DataTable-Dv3mZD4M.js";
10
- import _t from "./vue-ui-skeleton-CYgbDsKG.js";
11
- import wt from "./vue-ui-accordion-CzKJYxd2.js";
12
- import { u as Ie } from "./useNestedProp-CcjyiBlC.js";
13
- import { _ as Mt } from "./PackageVersion-DWAqn7t0.js";
4
+ import { _ as ft } from "./Title-DlVZnHjs.js";
5
+ import { u as gt, U as xt } from "./usePrinter-Dr30K4cu.js";
6
+ import { _ as mt } from "./Tooltip-CveCRFgK.js";
7
+ import { L as bt } from "./Legend-DBhpIX2x.js";
8
+ import { _ as Xe } from "./Shape-CQVJz33T.js";
9
+ import { D as kt } from "./DataTable-DAgyf9zN.js";
10
+ import _t from "./vue-ui-skeleton-DEv_1TFa.js";
11
+ import wt from "./vue-ui-accordion-CmENcGVW.js";
12
+ import { u as Ie } from "./useNestedProp-DGWP4D-K.js";
13
+ import { _ as Mt } from "./PackageVersion-wB6dCDZw.js";
14
14
  import { _ as $t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
15
  const Ct = ["id"], zt = ["xmlns", "viewBox"], St = { key: 0 }, At = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Lt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Tt = { key: 1 }, Bt = ["points", "fill", "stroke-width", "stroke-dasharray", "stroke"], Nt = { key: 0 }, Pt = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onMouseover"], Wt = { key: 1 }, Ft = { key: 2 }, Ot = ["id"], Xt = ["stop-color"], It = ["stop-color"], Dt = ["id"], Yt = ["stop-color"], jt = ["stop-color"], Vt = ["x", "y", "width", "height", "fill", "stroke", "stroke-width", "rx"], Et = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], Gt = { key: 0 }, Rt = ["d", "stroke", "stroke-width"], qt = ["d", "stroke", "stroke-width"], Ut = ["d", "stroke", "stroke-width"], Ht = ["d", "stroke", "stroke-width"], Jt = {
16
16
  key: 3,
@@ -1,3 +1,3 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),k=require("./index-DQRLTu78.cjs"),V=require("./html2canvas.esm-BA_v9SIU.cjs"),U={__name:"vue-ui-screenshot",props:{config:{type:Object,default(){return{}}}},emits:["postImage"],setup(z,{expose:T,emit:H}){const C=z,{vue_ui_screenshot:B}=k.useConfig(),$=i.ref(`vue-ui-screenshot-${Math.random()}`),n=i.computed(()=>{if(!Object.keys(C.config||{}).length)return B;const e=k.treeShake({defaultConfig:B,userConfig:C.config});return k.convertConfigColors(e)}),a=i.ref(null),d=i.ref(null),v=i.ref(null),M=i.ref(null),S=i.ref(null),y=i.ref(null),h=i.ref(null),p=i.ref(null),f=i.ref(null),b=i.ref(null),x=i.ref(null),w=i.ref(!1),I=i.ref(null);function R(){const e=document.createElement("DIV"),{innerWidth:t,innerHeight:l}=window;return e.style.position="fixed",e.style.top=`${l?l/2-n.value.style.captureArea.initialHeight/2:200}px`,e.style.left=`${t?t/2-n.value.style.captureArea.initialWidth/2:100}px`,e.style.width=`${n.value.style.captureArea.initialWidth}px`,e.style.height=`${n.value.style.captureArea.initialHeight}px`,e.style.background=n.value.style.captureArea.background,e.style.cursor="move",e.style.boxSizing="border-box",e.style.border=n.value.style.captureArea.border,e.style.resize="both",e.style.padding="none !important",e.style.margin="none !important",e.dataset.cy="screenshot-overlay",e}function E(){a.value&&(clearTimeout(I.value),a.value.remove(),a.value=null)}function W(e){const t=document.createElement("DIV");t.classList.add("vue-ui-screenshot-info-text"),t.innerHTML=n.value.translations.info,t.dataset.html2canvasIgnore="true",t.dataset.cy="screenshot-info-text",t.style.background=n.value.style.info.background,t.style.color=n.value.style.info.color,t.style.fontWeight=n.value.style.info.bold?"bold":"normal",t.style.minWidth=`${n.value.style.info.minWidth}px`,t.style.left="50%",t.style.padding=`${n.value.style.info.padding}px`,t.style.position="absolute",t.style.textAlign="center",t.style.top=`${n.value.style.info.top}px`,t.style.transform="translateX(-50%)",t.style.borderRadius=`${n.value.style.info.borderRadius}px`,t.style.boxShadow=n.value.style.info.boxShadow,t.style.fontFamily=n.value.style.info.fontFamily,t.style.fontSize=`${n.value.style.info.fontSize}px`,t.style.border=n.value.style.info.border,t.style.userSelect="none";const l=document.createElement("BUTTON");l.classList.add("vue-ui-screenshot-close-button"),l.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24" stroke-width="2.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 6l-12 12" /><path d="M6 6l12 12" /></svg>',l.style.outline="none",l.dataset.cy="screenshot-close-button",l.style.display="flex",l.style.cursor="pointer",l.style.borderRadius="50%",l.style.alignItems="center",l.style.position="absolute",l.style.justifyContent="center",l.style.transformOrigin="center",l.style.top=`${n.value.style.cancelButton.top}px`,l.style.right=`${n.value.style.cancelButton.right}px`,l.style.background=n.value.style.cancelButton.background,l.style.color=n.value.style.cancelButton.color,l.style.border=n.value.style.cancelButton.border,l.style.borderRadius=`${n.value.style.cancelButton.borderRadius}px`,l.style.height=`${n.value.style.cancelButton.size}px`,l.style.width=`${n.value.style.cancelButton.size}px`,l.addEventListener("click",E),t.appendChild(l),e.appendChild(t)}function X(e){a.value&&(w.value=!0,e.touches?(y.value=e.touches[0].clientX,h.value=e.touches[0].clientY):(y.value=e.clientX,h.value=e.clientY),b.value=a.value.getBoundingClientRect().width,x.value=a.value.getBoundingClientRect().height,e.target.addEventListener("mousemove",L),e.target.addEventListener("touchmove",L))}function L(e){if(!a.value)return;let t,l;e.touches?(p.value=e.touches[0].clientX,t=e.touches[0].clientX,f.value=e.touches[0].clientY,l=e.touches[0].clientY):(p.value=e.clientX,t=e.clientX,f.value=e.clientY,l=e.clientY);const u=e.target.classList[0],o=a.value.style;switch(!0){case u==="vue-ui-screenshot-handle-nw":o.top=`${l}px`,o.left=`${t}px`,o.width=`${b.value+(y.value-p.value)}px`,o.height=`${x.value+(h.value-f.value)}px`;break;case u==="vue-ui-screenshot-handle-ne":o.top=`${l}px`,o.width=`${b.value+(p.value-y.value)}px`,o.height=`${x.value+(h.value-f.value)}px`;break;case u==="vue-ui-screenshot-handle-sw":o.left=`${t}px`,o.width=`${b.value+(y.value-p.value)}px`,o.height=`${x.value+(f.value-h.value)}px`;break;case u==="vue-ui-screenshot-handle-se":o.width=`${b.value+(p.value-y.value)}px`,o.height=`${x.value+(f.value-h.value)}px`;break}}function A(e){if(!a.value)return;e.stopPropagation();const t=Array.from(e.target.classList);t.includes("vue-ui-screenshot-handle-se")||t.includes("vue-ui-screenshot-handle-sw")||t.includes("vue-ui-screenshot-handle-nw")||t.includes("vue-ui-screenshot-handle-ne")||(w.value=!0,a.value.style.pointerEvents="auto",e.touches?(d.value=e.touches[0].clientX,v.value=e.touches[0].clientY):(d.value=e.clientX,v.value=e.clientY),M.value=d.value,S.value=v.value,document.addEventListener("mousemove",g),document.addEventListener("touchmove",g),document.addEventListener("mouseup",m),document.addEventListener("touchend",m))}function m(){d.value=null,v.value=null,M.value=null,S.value=null,w.value=!1,document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",m),document.removeEventListener("touchmove",g),document.removeEventListener("touchend",m)}function g(e){if(!a.value)return;const t=a.value.getBoundingClientRect();let l,u;e.touches?(l=e.touches[0].clientX-d.value,u=e.touches[0].clientY-v.value,d.value=e.touches[0].clientX,v.value=e.touches[0].clientY):(l=e.clientX-d.value,u=e.clientY-v.value,d.value=e.clientX,v.value=e.clientY),a.value.style.top=`${t.top+u}px`,a.value.style.left=`${t.left+l}px`}function Y(e){e.target.removeEventListener("mousemove",L),e.target.removeEventListener("touchmove",L),document.removeEventListener("mousemove",g),document.removeEventListener("touchmove",g),document.removeEventListener("mouseup",m),document.removeEventListener("touchend",m),w.value=!1}function D(){const e=navigator.userAgent;return/(tablet|ipad|playbook|silk)|(android(?!.*mobi))/i.test(e)?"tablet":/Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Kindle|Silk-Accelerated|(hpw|web)OS|Opera M(obi|ini)/.test(e)?"mobile":"desktop"}function O(){const e=document.getElementById(`vue-ui-screenshot-button-${$.value}`);e.innerHTML=`<svg id="saveButtonSvg" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 20 20" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),k=require("./index-Dfhvf8hT.cjs"),V=require("./html2canvas.esm-BA_v9SIU.cjs"),U={__name:"vue-ui-screenshot",props:{config:{type:Object,default(){return{}}}},emits:["postImage"],setup(z,{expose:T,emit:H}){const C=z,{vue_ui_screenshot:B}=k.useConfig(),$=i.ref(`vue-ui-screenshot-${Math.random()}`),n=i.computed(()=>{if(!Object.keys(C.config||{}).length)return B;const e=k.treeShake({defaultConfig:B,userConfig:C.config});return k.convertConfigColors(e)}),a=i.ref(null),d=i.ref(null),v=i.ref(null),M=i.ref(null),S=i.ref(null),y=i.ref(null),h=i.ref(null),p=i.ref(null),f=i.ref(null),b=i.ref(null),x=i.ref(null),w=i.ref(!1),I=i.ref(null);function R(){const e=document.createElement("DIV"),{innerWidth:t,innerHeight:l}=window;return e.style.position="fixed",e.style.top=`${l?l/2-n.value.style.captureArea.initialHeight/2:200}px`,e.style.left=`${t?t/2-n.value.style.captureArea.initialWidth/2:100}px`,e.style.width=`${n.value.style.captureArea.initialWidth}px`,e.style.height=`${n.value.style.captureArea.initialHeight}px`,e.style.background=n.value.style.captureArea.background,e.style.cursor="move",e.style.boxSizing="border-box",e.style.border=n.value.style.captureArea.border,e.style.resize="both",e.style.padding="none !important",e.style.margin="none !important",e.dataset.cy="screenshot-overlay",e}function E(){a.value&&(clearTimeout(I.value),a.value.remove(),a.value=null)}function W(e){const t=document.createElement("DIV");t.classList.add("vue-ui-screenshot-info-text"),t.innerHTML=n.value.translations.info,t.dataset.html2canvasIgnore="true",t.dataset.cy="screenshot-info-text",t.style.background=n.value.style.info.background,t.style.color=n.value.style.info.color,t.style.fontWeight=n.value.style.info.bold?"bold":"normal",t.style.minWidth=`${n.value.style.info.minWidth}px`,t.style.left="50%",t.style.padding=`${n.value.style.info.padding}px`,t.style.position="absolute",t.style.textAlign="center",t.style.top=`${n.value.style.info.top}px`,t.style.transform="translateX(-50%)",t.style.borderRadius=`${n.value.style.info.borderRadius}px`,t.style.boxShadow=n.value.style.info.boxShadow,t.style.fontFamily=n.value.style.info.fontFamily,t.style.fontSize=`${n.value.style.info.fontSize}px`,t.style.border=n.value.style.info.border,t.style.userSelect="none";const l=document.createElement("BUTTON");l.classList.add("vue-ui-screenshot-close-button"),l.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24" stroke-width="2.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 6l-12 12" /><path d="M6 6l12 12" /></svg>',l.style.outline="none",l.dataset.cy="screenshot-close-button",l.style.display="flex",l.style.cursor="pointer",l.style.borderRadius="50%",l.style.alignItems="center",l.style.position="absolute",l.style.justifyContent="center",l.style.transformOrigin="center",l.style.top=`${n.value.style.cancelButton.top}px`,l.style.right=`${n.value.style.cancelButton.right}px`,l.style.background=n.value.style.cancelButton.background,l.style.color=n.value.style.cancelButton.color,l.style.border=n.value.style.cancelButton.border,l.style.borderRadius=`${n.value.style.cancelButton.borderRadius}px`,l.style.height=`${n.value.style.cancelButton.size}px`,l.style.width=`${n.value.style.cancelButton.size}px`,l.addEventListener("click",E),t.appendChild(l),e.appendChild(t)}function X(e){a.value&&(w.value=!0,e.touches?(y.value=e.touches[0].clientX,h.value=e.touches[0].clientY):(y.value=e.clientX,h.value=e.clientY),b.value=a.value.getBoundingClientRect().width,x.value=a.value.getBoundingClientRect().height,e.target.addEventListener("mousemove",L),e.target.addEventListener("touchmove",L))}function L(e){if(!a.value)return;let t,l;e.touches?(p.value=e.touches[0].clientX,t=e.touches[0].clientX,f.value=e.touches[0].clientY,l=e.touches[0].clientY):(p.value=e.clientX,t=e.clientX,f.value=e.clientY,l=e.clientY);const u=e.target.classList[0],o=a.value.style;switch(!0){case u==="vue-ui-screenshot-handle-nw":o.top=`${l}px`,o.left=`${t}px`,o.width=`${b.value+(y.value-p.value)}px`,o.height=`${x.value+(h.value-f.value)}px`;break;case u==="vue-ui-screenshot-handle-ne":o.top=`${l}px`,o.width=`${b.value+(p.value-y.value)}px`,o.height=`${x.value+(h.value-f.value)}px`;break;case u==="vue-ui-screenshot-handle-sw":o.left=`${t}px`,o.width=`${b.value+(y.value-p.value)}px`,o.height=`${x.value+(f.value-h.value)}px`;break;case u==="vue-ui-screenshot-handle-se":o.width=`${b.value+(p.value-y.value)}px`,o.height=`${x.value+(f.value-h.value)}px`;break}}function A(e){if(!a.value)return;e.stopPropagation();const t=Array.from(e.target.classList);t.includes("vue-ui-screenshot-handle-se")||t.includes("vue-ui-screenshot-handle-sw")||t.includes("vue-ui-screenshot-handle-nw")||t.includes("vue-ui-screenshot-handle-ne")||(w.value=!0,a.value.style.pointerEvents="auto",e.touches?(d.value=e.touches[0].clientX,v.value=e.touches[0].clientY):(d.value=e.clientX,v.value=e.clientY),M.value=d.value,S.value=v.value,document.addEventListener("mousemove",g),document.addEventListener("touchmove",g),document.addEventListener("mouseup",m),document.addEventListener("touchend",m))}function m(){d.value=null,v.value=null,M.value=null,S.value=null,w.value=!1,document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",m),document.removeEventListener("touchmove",g),document.removeEventListener("touchend",m)}function g(e){if(!a.value)return;const t=a.value.getBoundingClientRect();let l,u;e.touches?(l=e.touches[0].clientX-d.value,u=e.touches[0].clientY-v.value,d.value=e.touches[0].clientX,v.value=e.touches[0].clientY):(l=e.clientX-d.value,u=e.clientY-v.value,d.value=e.clientX,v.value=e.clientY),a.value.style.top=`${t.top+u}px`,a.value.style.left=`${t.left+l}px`}function Y(e){e.target.removeEventListener("mousemove",L),e.target.removeEventListener("touchmove",L),document.removeEventListener("mousemove",g),document.removeEventListener("touchmove",g),document.removeEventListener("mouseup",m),document.removeEventListener("touchend",m),w.value=!1}function D(){const e=navigator.userAgent;return/(tablet|ipad|playbook|silk)|(android(?!.*mobi))/i.test(e)?"tablet":/Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Kindle|Silk-Accelerated|(hpw|web)OS|Opera M(obi|ini)/.test(e)?"mobile":"desktop"}function O(){const e=document.getElementById(`vue-ui-screenshot-button-${$.value}`);e.innerHTML=`<svg id="saveButtonSvg" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 20 20" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
2
2
  <path fill="none" stroke="currentColor" d="M1 4 1 3C1 2 2 1 3 1L4 1M16 1 17 1C18 1 19 2 19 3L19 4M1 16 1 17C1 18 2 19 3 19L4 19M16 19 17 19C18 19 19 18 19 17L19 16M8 10A1 1 0 0012 10 1 1 0 008 10M5 13 5 8C5 7 5 7 6 7L14 7C15 7 15 7 15 8L15 13C15 14 15 14 14 14L6 14C5 14 5 14 5 13M7 6 13 6" />
3
3
  </svg>`,document.getElementById(`vue-ui-screenshot-button-${$.value}`).animate([{opacity:"0.3"},{opacity:"1"},{opacity:"0.3"}],{duration:1e3,iterations:1/0}),e.classList.add("loading"),e.setAttribute("disabled","true")}function _(){if(!a.value)return;O();const e=a.value.getBoundingClientRect();I.value=setTimeout(()=>{V.default(document.body,{allowTaint:!0,width:e.width,height:e.height,x:e.left+window.scrollX,y:e.top+window.scrollY,useCORS:!0,scale:n.value.quality}).then(t=>{const l=t.toDataURL("image/png",1),u=l.split(",")[1],c=atob(u).length/1024;if(n.value.mode==="download"){const s=document.createElement("a");s.download="screenshot.png",s.href=l,s.click()}n.value.mode==="post"&&H("postImage",{createdAt:Date.now(),fileSize:`${c.toFixed(2)} KB`,image:l,x:e.left+window.scrollX,y:e.top+window.scrollY,screenWidth:window.innerWidth>0?window.innerWidth:screen.width,deviceType:D()})}).finally(E)},10)}function F(e){const t=n.value.style.handles.size/2+4,l=document.createElement("DIV");l.style.top=`${-t}px`,l.style.left=`${-t}px`,l.style.cursor="nw-resize",l.classList.add("vue-ui-screenshot-handle-nw"),l.dataset.cy="screenshot-handle-nw";const u=document.createElement("DIV");u.style.top=`${-t}px`,u.style.left="auto",u.style.right=`${-t}px`,u.style.cursor="ne-resize",u.classList.add("vue-ui-screenshot-handle-ne"),u.dataset.cy="screenshot-handle-ne";const o=document.createElement("DIV");o.style.top="auto",o.style.bottom=`${-t}px`,o.style.left=`${-t}px`,o.style.cursor="sw-resize",o.classList.add("vue-ui-screenshot-handle-sw"),o.dataset.cy="screenshot-handle-sw";const c=document.createElement("DIV");c.style.top="auto",c.style.left="auto",c.style.right=`${-t}px`,c.style.bottom=`${-t}px`,c.style.cursor="se-resize",c.classList.add("vue-ui-screenshot-handle-se"),c.dataset.cy="screenshot-handle-se";const s=document.createElement("BUTTON");s.innerHTML=`<svg id="saveButtonSvg" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 20 20" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path fill="none" stroke="currentColor" d="M1 4 1 3C1 2 2 1 3 1L4 1M16 1 17 1C18 1 19 2 19 3L19 4M1 16 1 17C1 18 2 19 3 19L4 19M16 19 17 19C18 19 19 18 19 17L19 16M8 10A1 1 0 0012 10 1 1 0 008 10M5 13 5 8C5 7 5 7 6 7L14 7C15 7 15 7 15 8L15 13C15 14 15 14 14 14L6 14C5 14 5 14 5 13M7 6 13 6" /></svg><span>${n.value.translations.captureButton}</span>`,s.classList.add("vue-ui-screenshot-capture-button"),s.id=`vue-ui-screenshot-button-${$.value}`,s.style.position="absolute",s.style.top="50%",s.style.left="50%",s.style.transform="translate(-50%,-50%)",s.style.background=n.value.style.captureButton.background,s.style.color=n.value.style.captureButton.color,s.style.border=n.value.style.captureButton.border,s.style.outline="none",s.style.cursor="pointer",s.style.padding=n.value.style.captureButton.padding,s.style.fontFamily=n.value.style.captureButton.fontFamily,s.style.fontSize=`${n.value.style.captureButton.fontSize}px`,s.style.minHeight=`${n.value.style.captureButton.minHeight}px`,s.style.width="fit-content",s.style.display="flex",s.style.alignItems="center",s.style.justifyContent="center",s.style.gap="3px",s.style.borderRadius=`${n.value.style.captureButton.borderRadius}px`,s.style.boxShadow=n.value.style.captureButton.boxShadow,s.style.userSelect="none",s.style.opacity="0.95",s.style.textAlign="left",s.style.fontWeight=n.value.style.captureButton.bold?"bold":"normal",s.dataset.cy="screenshot-save-button",s.addEventListener("mouseenter",()=>{s.style.opacity="1"}),s.addEventListener("mouseleave",()=>{s.style.opacity="0.95"}),s.addEventListener("click",_),e.appendChild(s),[l,u,o,c].forEach((r,N)=>{r.classList.add(`handle-${N}`),r.dataset.html2canvasIgnore="true",r.style.position="absolute",r.style.height=`${n.value.style.handles.size}px`,r.style.width=`${n.value.style.handles.size}px`,r.style.background=n.value.style.handles.background,r.style.border=n.value.style.handles.border,r.style.borderRadius=`${n.value.style.handles.borderRadius}px`,r.style.pointerEvents="auto !important",r.addEventListener("mousedown",X),r.addEventListener("touchstart",X),e.appendChild(r)})}function j(){a.value||i.nextTick(()=>{const e=R();e.dataset.html2canvasIgnore=!0,W(e),F(e),a.value=e,e.addEventListener("touchmove",function(t){t.preventDefault()},{passive:!1}),document.body.appendChild(e),document.addEventListener("mousedown",A),document.addEventListener("touchstart",A),document.addEventListener("mouseup",Y),document.addEventListener("touchend",Y)})}return T({shoot:j,close:E}),(e,t)=>(i.openBlock(),i.createElementBlock("div"))}};exports.default=U;
@@ -1,5 +1,5 @@
1
1
  import { ref as i, computed as N, openBlock as V, createElementBlock as U, nextTick as G } from "vue";
2
- import { u as K, A as P, B as q } from "./index-COTjlcVF.js";
2
+ import { u as K, A as P, B as q } from "./index-B0CpCD8z.js";
3
3
  import J from "./html2canvas.esm-d2sM-0Wm.js";
4
4
  const te = {
5
5
  __name: "vue-ui-screenshot",
@@ -1,7 +1,7 @@
1
1
  import { ref as w, computed as g, openBlock as e, createElementBlock as o, normalizeClass as F, normalizeStyle as n, unref as s, createVNode as c, createElementVNode as t, createCommentVNode as a, Fragment as y, renderList as v, pushScopeId as O, popScopeId as V, createStaticVNode as W } from "vue";
2
- import { u as X, O as B, X as u, s as k, U as G } from "./index-COTjlcVF.js";
3
- import { u as R } from "./useNestedProp-CcjyiBlC.js";
4
- import { _ as d } from "./PackageVersion-DWAqn7t0.js";
2
+ import { u as X, O as B, X as u, s as k, U as G } from "./index-B0CpCD8z.js";
3
+ import { u as R } from "./useNestedProp-DGWP4D-K.js";
4
+ import { _ as d } from "./PackageVersion-wB6dCDZw.js";
5
5
  import { _ as T } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  const p = (m) => (O("data-v-38f9c8b1"), m = m(), V(), m), U = ["id"], Y = ["xmlns"], D = ["stroke", "fill"], J = ["xmlns"], K = ["stroke", "fill"], Q = ["xmlns"], ll = ["stroke"], tl = ["fill"], el = ["stroke", "fill"], ol = ["stroke", "fill"], sl = ["fill"], rl = ["stroke", "fill"], il = ["stroke", "fill"], nl = ["fill"], al = ["stroke", "fill"], ul = ["stroke", "fill"], cl = ["fill"], dl = ["stroke", "fill"], hl = ["stroke", "fill"], yl = ["fill"], kl = ["stroke", "fill"], vl = ["stroke", "fill"], _l = ["xmlns"], xl = ["stroke"], pl = ["stroke"], gl = ["stroke", "fill"], fl = ["stroke", "fill"], wl = ["stroke", "fill"], ml = ["stroke", "fill"], bl = ["stroke", "fill"], Ml = ["stroke", "fill"], Cl = ["stroke", "fill"], Ll = ["stroke", "fill"], Al = ["stroke", "fill"], $l = ["stroke", "fill"], Bl = ["stroke", "fill"], Wl = ["stroke", "fill"], jl = ["stroke", "fill"], Pl = ["stroke", "fill"], zl = ["stroke", "fill"], ql = ["stroke", "fill"], Hl = ["stroke", "fill"], Sl = ["stroke", "fill"], El = ["stroke", "fill"], Il = ["stroke", "fill"], Zl = ["stroke", "fill"], Nl = ["stroke", "fill"], Fl = ["stroke", "fill"], Ol = ["xmlns"], Vl = ["stroke"], Xl = ["xmlns"], Gl = ["stroke"], Rl = ["xmlns"], Tl = ["stroke"], Ul = ["xmlns"], Yl = ["fill"], Dl = ["fill"], Jl = ["fill"], Kl = ["fill"], Ql = ["fill"], lt = ["fill"], tt = ["fill"], et = ["fill"], ot = ["fill"], st = ["fill"], rt = ["fill"], it = ["fill"], nt = ["xmlns"], at = ["stroke"], ut = ["stroke"], ct = ["stroke"], dt = ["stroke"], ht = ["stroke"], yt = ["stroke"], kt = ["xmlns"], vt = ["stroke"], _t = ["stroke"], xt = ["stroke"], pt = ["stroke"], gt = ["stroke"], ft = ["stroke"], wt = ["stroke"], mt = ["stroke"], bt = ["stroke"], Mt = ["xmlns"], Ct = ["stroke"], Lt = ["xmlns"], At = ["stroke"], $t = ["stroke"], Bt = ["stroke"], Wt = ["stroke"], jt = ["stroke"], Pt = ["stroke"], zt = ["stroke"], qt = ["stroke"], Ht = ["stroke"], St = ["xmlns"], Et = ["x1", "x2", "stroke"], It = ["xmlns"], Zt = ["x", "y", "width", "height", "fill"], Nt = ["y", "width", "height", "fill"], Ft = ["xmlns"], Ot = ["fill"], Vt = ["fill"], Xt = ["fill"], Gt = ["xmlns"], Rt = ["x1", "x2", "y1", "y2", "stroke"], Tt = ["stroke"], Ut = ["fill"], Yt = ["xmlns"], Dt = ["fill"], Jt = ["fill"], Kt = ["x1", "y1", "x2", "y2", "stroke-width", "stroke"], Qt = ["xmlns"], le = { key: 0 }, te = ["stroke", "stroke-width"], ee = ["stroke", "stroke-width"], oe = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], se = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], re = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ie = ["x", "y", "height", "width", "fill"], ne = ["xmlns", "viewBox"], ae = ["x", "y", "stroke", "fill"], ue = ["xmlns"], ce = ["d", "stroke"], de = ["cx", "cy", "r", "fill", "stroke"], he = ["cx", "cy", "r", "fill", "stroke"], ye = ["x", "y", "width", "fill"], ke = ["cx", "cy", "fill"], ve = ["cx", "cy", "fill"], _e = ["stroke"], xe = ["xmlns"], pe = ["stroke", "stroke-width"], ge = ["stroke", "stroke-width"], fe = ["stroke", "stroke-width"], we = ["fill"], me = ["fill"], be = ["fill"], Me = ["fill"], Ce = ["fill"], Le = ["fill"], Ae = ["xmlns"], $e = { key: 0 }, Be = ["stroke", "stroke-width"], We = ["stroke", "stroke-width"], je = ["stroke", "stroke-width"], Pe = { key: 1 }, ze = ["r", "fill"], qe = ["r", "fill"], He = ["xmlns"], Se = { key: 0 }, Ee = ["stroke", "stroke-width"], Ie = ["stroke", "stroke-width"], Ze = ["fill", "rx", "x", "y", "width", "height"], Ne = ["xmlns"], Fe = ["stroke-width", "stroke"], Oe = ["stroke-width", "stroke"], Ve = ["stroke-width", "stroke"], Xe = ["xmlns"], Ge = ["stroke"], Re = ["stroke"], Te = ["stroke"], Ue = ["stroke"], Ye = ["fill"], De = ["stroke"], Je = ["xmlns"], Ke = ["stroke", "stroke-width"], Qe = ["stroke", "stroke-width"], lo = ["fill", "r"], to = ["fill", "r"], eo = ["fill", "r"], oo = ["fill", "r"], so = ["fill", "r"], ro = ["fill", "r"], io = ["fill", "r"], no = ["fill", "r"], ao = ["fill", "r"], uo = ["xmlns"], co = ["d", "stroke", "stroke-width"], ho = ["d", "stroke", "stroke-width"], yo = ["d", "stroke", "stroke-width"], ko = ["d", "stroke", "stroke-width"], vo = ["stroke", "stroke-width"], _o = ["stroke", "stroke-width"], xo = ["stroke", "stroke-width"], po = ["fill"], go = ["fill"], fo = ["xmlns"], wo = ["x", "y", "fill"], mo = ["x", "y", "fill"], bo = ["x", "y", "fill"], Mo = ["xmlns"], Co = ["fill"], Lo = ["fill"], Ao = ["y1", "y2", "stroke", "stroke-width"], $o = ["x1", "x2", "stroke", "stroke-width"], Bo = ["xmlns", "stroke"], Wo = /* @__PURE__ */ p(() => /* @__PURE__ */ t("path", {
7
7
  stroke: "none",
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-DQRLTu78.cjs"),b=require("./useNestedProp-np0rM3ep.cjs"),n=require("./PackageVersion-BqVp7cHC.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),i=u=>(e.pushScopeId("data-v-38f9c8b1"),u=u(),e.popScopeId(),u),L=["id"],S=["xmlns"],z=["stroke","fill"],A=["xmlns"],$=["stroke","fill"],W=["xmlns"],P=["stroke"],X=["fill"],j=["stroke","fill"],F=["stroke","fill"],O=["fill"],q=["stroke","fill"],H=["stroke","fill"],I=["fill"],Z=["stroke","fill"],T=["stroke","fill"],G=["fill"],R=["stroke","fill"],Y=["stroke","fill"],D=["fill"],U=["stroke","fill"],J=["stroke","fill"],K=["xmlns"],Q=["stroke"],ee=["stroke"],te=["stroke","fill"],le=["stroke","fill"],oe=["stroke","fill"],re=["stroke","fill"],ne=["stroke","fill"],se=["stroke","fill"],ae=["stroke","fill"],ce=["stroke","fill"],ie=["stroke","fill"],de=["stroke","fill"],ue=["stroke","fill"],ke=["stroke","fill"],ye=["stroke","fill"],he=["stroke","fill"],me=["stroke","fill"],_e=["stroke","fill"],ve=["stroke","fill"],pe=["stroke","fill"],xe=["stroke","fill"],fe=["stroke","fill"],ge=["stroke","fill"],we=["stroke","fill"],Ne=["stroke","fill"],Ee=["xmlns"],Ve=["stroke"],Be=["xmlns"],Me=["stroke"],be=["xmlns"],Ce=["stroke"],Le=["xmlns"],Se=["fill"],ze=["fill"],Ae=["fill"],$e=["fill"],We=["fill"],Pe=["fill"],Xe=["fill"],je=["fill"],Fe=["fill"],Oe=["fill"],qe=["fill"],He=["fill"],Ie=["xmlns"],Ze=["stroke"],Te=["stroke"],Ge=["stroke"],Re=["stroke"],Ye=["stroke"],De=["stroke"],Ue=["xmlns"],Je=["stroke"],Ke=["stroke"],Qe=["stroke"],et=["stroke"],tt=["stroke"],lt=["stroke"],ot=["stroke"],rt=["stroke"],nt=["stroke"],st=["xmlns"],at=["stroke"],ct=["xmlns"],it=["stroke"],dt=["stroke"],ut=["stroke"],kt=["stroke"],yt=["stroke"],ht=["stroke"],mt=["stroke"],_t=["stroke"],vt=["stroke"],pt=["xmlns"],xt=["x1","x2","stroke"],ft=["xmlns"],gt=["x","y","width","height","fill"],wt=["y","width","height","fill"],Nt=["xmlns"],Et=["fill"],Vt=["fill"],Bt=["fill"],Mt=["xmlns"],bt=["x1","x2","y1","y2","stroke"],Ct=["stroke"],Lt=["fill"],St=["xmlns"],zt=["fill"],At=["fill"],$t=["x1","y1","x2","y2","stroke-width","stroke"],Wt=["xmlns"],Pt={key:0},Xt=["stroke","stroke-width"],jt=["stroke","stroke-width"],Ft=["x1","x2","y1","y2","stroke","stroke-width"],Ot=["x1","x2","y1","y2","stroke","stroke-width"],qt=["x1","x2","y1","y2","stroke","stroke-width"],Ht=["x","y","height","width","fill"],It=["xmlns","viewBox"],Zt=["x","y","stroke","fill"],Tt=["xmlns"],Gt=["d","stroke"],Rt=["cx","cy","r","fill","stroke"],Yt=["cx","cy","r","fill","stroke"],Dt=["x","y","width","fill"],Ut=["cx","cy","fill"],Jt=["cx","cy","fill"],Kt=["stroke"],Qt=["xmlns"],el=["stroke","stroke-width"],tl=["stroke","stroke-width"],ll=["stroke","stroke-width"],ol=["fill"],rl=["fill"],nl=["fill"],sl=["fill"],al=["fill"],cl=["fill"],il=["xmlns"],dl={key:0},ul=["stroke","stroke-width"],kl=["stroke","stroke-width"],yl=["stroke","stroke-width"],hl={key:1},ml=["r","fill"],_l=["r","fill"],vl=["xmlns"],pl={key:0},xl=["stroke","stroke-width"],fl=["stroke","stroke-width"],gl=["fill","rx","x","y","width","height"],wl=["xmlns"],Nl=["stroke-width","stroke"],El=["stroke-width","stroke"],Vl=["stroke-width","stroke"],Bl=["xmlns"],Ml=["stroke"],bl=["stroke"],Cl=["stroke"],Ll=["stroke"],Sl=["fill"],zl=["stroke"],Al=["xmlns"],$l=["stroke","stroke-width"],Wl=["stroke","stroke-width"],Pl=["fill","r"],Xl=["fill","r"],jl=["fill","r"],Fl=["fill","r"],Ol=["fill","r"],ql=["fill","r"],Hl=["fill","r"],Il=["fill","r"],Zl=["fill","r"],Tl=["xmlns"],Gl=["d","stroke","stroke-width"],Rl=["d","stroke","stroke-width"],Yl=["d","stroke","stroke-width"],Dl=["d","stroke","stroke-width"],Ul=["stroke","stroke-width"],Jl=["stroke","stroke-width"],Kl=["stroke","stroke-width"],Ql=["fill"],eo=["fill"],to=["xmlns"],lo=["x","y","fill"],oo=["x","y","fill"],ro=["x","y","fill"],no=["xmlns"],so=["fill"],ao=["fill"],co=["y1","y2","stroke","stroke-width"],io=["x1","x2","stroke","stroke-width"],uo=["xmlns","stroke"],ko=i(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),yo=["fill"],ho=["xmlns","stroke"],mo=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-38f9c8b1></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-38f9c8b1></path><path d="M9 10l.01 0" data-v-38f9c8b1></path><path d="M15 10l.01 0" data-v-38f9c8b1></path><path d="M9.5 15.25a3.5 3.5 0 0 1 5 0" data-v-38f9c8b1></path>',5),_o=[mo],vo=["xmlns","stroke"],po=i(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),xo=["fill"],fo=["xmlns","stroke"],go=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-38f9c8b1></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-38f9c8b1></path><path d="M9 10l.01 0" data-v-38f9c8b1></path><path d="M15 10l.01 0" data-v-38f9c8b1></path><path d="M9 15l6 0" data-v-38f9c8b1></path>',5),wo=[go],No=["xmlns","stroke"],Eo=i(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),Vo=["fill"],Bo=["xmlns","stroke"],Mo=i(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),bo=i(()=>e.createElementVNode("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"},null,-1)),Co=i(()=>e.createElementVNode("path",{d:"M9 10l.01 0"},null,-1)),Lo=i(()=>e.createElementVNode("path",{d:"M15 10l.01 0"},null,-1)),So=[Mo,bo,Co,Lo],zo=["xmlns","stroke"],Ao=i(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),$o=["fill"],Wo=["xmlns","stroke"],Po=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-38f9c8b1></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-38f9c8b1></path><path d="M9 10l.01 0" data-v-38f9c8b1></path><path d="M15 10l.01 0" data-v-38f9c8b1></path><path d="M9.5 15a3.5 3.5 0 0 0 5 0" data-v-38f9c8b1></path>',5),Xo=[Po],jo=["xmlns","stroke"],Fo=i(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),Oo=["fill"],qo=["xmlns","stroke"],Ho=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-38f9c8b1></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-38f9c8b1></path><path d="M9 9l.01 0" data-v-38f9c8b1></path><path d="M15 9l.01 0" data-v-38f9c8b1></path><path d="M8 13a4 4 0 1 0 8 0h-8" data-v-38f9c8b1></path>',5),Io=[Ho],Zo=["xmlns"],To=["points","fill","stroke","stroke-width"],Go=["xmlns"],Ro={key:0},Yo=["stroke","stroke-width"],Do=["y","width","fill","rx"],Uo={__name:"vue-ui-skeleton",props:{config:{type:Object,default(){return{}}}},setup(u){const p=u,{vue_ui_skeleton:x}=l.useConfig(),f=e.ref(`vue-ui-skeleton-${Math.random()}`),t=e.computed(()=>b.useNestedProp({userConfig:p.config,defaultConfig:x})),g=e.computed(()=>t.value.style.animated),s=e.computed(()=>t.value.type),w=e.ref([60,50,55,36,40,25,26,12]),N=e.computed(()=>l.createPolygonPath({plot:{x:50,y:50},radius:40,sides:6}).path),E=e.computed(()=>l.createPolygonPath({plot:{x:50,y:50},radius:30,sides:6}).path),V=e.computed(()=>l.createPolygonPath({plot:{x:50,y:50},radius:20,sides:6}).path),B=e.computed(()=>l.createPolygonPath({plot:{x:50,y:50},radius:10,sides:6}).path),y=e.ref([{root:{x:70,y:77,r:44,opacity:100},bars:[{x:200,y:37,opacity:100,width:240},{x:200,y:118,opacity:100,width:180},{x:200,y:253,opacity:100,width:80}]},{root:{x:70,y:177,r:32,opacity:70},bars:[{x:200,y:145,opacity:70,width:160},{x:200,y:172,opacity:70,width:140},{x:200,y:199,opacity:70,width:120}]},{root:{x:70,y:257,r:24,opacity:40},bars:[{x:200,y:64,opacity:40,width:220},{x:200,y:91,opacity:40,width:200},{x:200,y:226,opacity:40,width:100}]}]),a=e.ref([{y:200,height:100,bar:50},{y:180,height:100,bar:40},{y:150,height:100,bar:30},{y:120,height:80,bar:50},{y:110,height:60,bar:30},{y:80,height:80,bar:10},{y:50,height:80,bar:40},{y:24,height:40,bar:24},{y:44,height:20,bar:13},{y:32,height:45,bar:19}]),k=e.ref([[3,2.5],[4,3.1],[8,6],[9.5,6.5],[12,11],[16,15],[18,18.2],[25,24],[24,26],[32,32],[33,32],[32,31],[38,37],[37,38],[42,41],[40,41],[44,45],[38,35],[31,32]]),h=e.ref([{x:40,y:30},{x:45,y:28},{x:50,y:25},{x:55,y:20},{x:60,y:27},{x:65,y:14},{x:70,y:23},{x:75,y:16},{x:80,y:25},{x:85,y:10},{x:90,y:18},{x:95,y:7},{x:100,y:12},{x:105,y:10},{x:110,y:20},{x:115,y:7},{x:120,y:14},{x:125,y:10},{x:130,y:19},{x:135,y:3},{x:140,y:10},{x:145,y:2},{x:150,y:1}]);function m(d,_=1){return{x:200+160*Math.cos(29.85+d*Math.PI/180)*_,y:200+160*Math.sin(29.85+d*Math.PI/180)*_}}const M=e.computed(()=>{const d=[];for(let o=0;o<100;o+=1)d.push({x1:m(360/100*o).x,y1:m(360/100*o).y,x2:m(360/100*o,.9).x,y2:m(360/100*o,.9).y,color:t.value.style.wheel.color});return d});return(d,_)=>(e.openBlock(),e.createElementBlock("div",{id:f.value,class:e.normalizeClass({"vue-ui-skeleton":!0,"vue-ui-skeleton-animated":g.value}),style:e.normalizeStyle(`background:${t.value.style.backgroundColor};color:${t.value.style.color};display:flex;align-items:center;justify-content:center;`)},[s.value==="flow"?(e.openBlock(),e.createElementBlock("svg",{key:0,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 80 60",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createVNode(n._sfc_main),e.createElementVNode("path",{d:"M 5 5 L 5 55 M 75 5 L 75 55 M 28 5 L 28 55 M 52 5 L 52 55 M 5 8 L 28 12 L 52 9 L 75 8 L 75 12 L 52 12 L 28 21 L 5 29 Z M 5 34 L 28 35 L 52 24 L 75 21 L 75 27 L 52 30 L 28 44 L 52 39 L 75 41 L 75 47 L 52 45 L 28 52 L 5 52 Z",stroke:t.value.style.flow.color,"stroke-width":.8,"stroke-linecap":"round","stroke-linejoin":"round",fill:t.value.style.flow.color},null,8,z)],12,S)):e.createCommentVNode("",!0),s.value==="parallelCoordinatePlot"?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 80 60",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createVNode(n._sfc_main),e.createElementVNode("path",{d:"M 5 5 L 5 55 M 75 5 L 75 55 M 28 5 L 28 55 M 52 5 L 52 55 M 5 10 A 1 1 0 0 0 5 12 A 1 1 0 0 0 5 10 M 28 15 A 1 1 0 0 0 28 17 A 1 1 0 0 0 28 15 M 52 8 A 1 1 0 0 0 52 10 A 1 1 0 0 0 52 8 M 75 11 A 1 1 0 0 0 75 13 A 1 1 0 0 0 75 11 M 6 11 L 27 16 M 29 16 L 51 9 M 53 9 L 74 12 M 5 50 A 1 1 0 0 0 5 48 A 1 1 0 0 0 5 50 M 28 39 A 1 1 0 0 0 28 41 A 1 1 0 0 0 28 39 M 52 45 A 1 1 0 0 0 52 47 A 1 1 0 0 0 52 45 M 75 45 A 1 1 0 0 0 75 47 A 1 1 0 0 0 75 45 M 6 49 L 27 40 M 29 40 L 51 46 M 53 46 L 74 46 M 5 25 A 1 1 0 0 0 5 27 A 1 1 0 0 0 5 25 M 28 31 A 1 1 0 0 0 28 33 A 1 1 0 0 0 28 31 M 52 23 A 1 1 0 0 0 52 25 A 1 1 0 0 0 52 23 M 75 21 A 1 1 0 0 0 75 23 A 1 1 0 0 0 75 21 M 6 26 L 27 32 M 29 32 L 51 24 M 53 24 L 74 22",stroke:t.value.style.parallelCoordinatePlot.color,"stroke-width":.8,"stroke-linecap":"round","stroke-linejoin":"round",fill:t.value.style.parallelCoordinatePlot.color},null,8,$)],12,A)):e.createCommentVNode("",!0),s.value==="dumbbell"?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 100 55",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createVNode(n._sfc_main),e.createElementVNode("line",{x1:"3",x2:"3",y1:"3",y2:"67",stroke:t.value.style.dumbbell.color,"stroke-width":.5,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,P),e.createElementVNode("path",{d:`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-Dfhvf8hT.cjs"),b=require("./useNestedProp-iuDCMc2p.cjs"),n=require("./PackageVersion-Djty0wb2.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),i=u=>(e.pushScopeId("data-v-38f9c8b1"),u=u(),e.popScopeId(),u),L=["id"],S=["xmlns"],z=["stroke","fill"],A=["xmlns"],$=["stroke","fill"],W=["xmlns"],P=["stroke"],X=["fill"],j=["stroke","fill"],F=["stroke","fill"],O=["fill"],q=["stroke","fill"],H=["stroke","fill"],I=["fill"],Z=["stroke","fill"],T=["stroke","fill"],G=["fill"],R=["stroke","fill"],Y=["stroke","fill"],D=["fill"],U=["stroke","fill"],J=["stroke","fill"],K=["xmlns"],Q=["stroke"],ee=["stroke"],te=["stroke","fill"],le=["stroke","fill"],oe=["stroke","fill"],re=["stroke","fill"],ne=["stroke","fill"],se=["stroke","fill"],ae=["stroke","fill"],ce=["stroke","fill"],ie=["stroke","fill"],de=["stroke","fill"],ue=["stroke","fill"],ke=["stroke","fill"],ye=["stroke","fill"],he=["stroke","fill"],me=["stroke","fill"],_e=["stroke","fill"],ve=["stroke","fill"],pe=["stroke","fill"],xe=["stroke","fill"],fe=["stroke","fill"],ge=["stroke","fill"],we=["stroke","fill"],Ne=["stroke","fill"],Ee=["xmlns"],Ve=["stroke"],Be=["xmlns"],Me=["stroke"],be=["xmlns"],Ce=["stroke"],Le=["xmlns"],Se=["fill"],ze=["fill"],Ae=["fill"],$e=["fill"],We=["fill"],Pe=["fill"],Xe=["fill"],je=["fill"],Fe=["fill"],Oe=["fill"],qe=["fill"],He=["fill"],Ie=["xmlns"],Ze=["stroke"],Te=["stroke"],Ge=["stroke"],Re=["stroke"],Ye=["stroke"],De=["stroke"],Ue=["xmlns"],Je=["stroke"],Ke=["stroke"],Qe=["stroke"],et=["stroke"],tt=["stroke"],lt=["stroke"],ot=["stroke"],rt=["stroke"],nt=["stroke"],st=["xmlns"],at=["stroke"],ct=["xmlns"],it=["stroke"],dt=["stroke"],ut=["stroke"],kt=["stroke"],yt=["stroke"],ht=["stroke"],mt=["stroke"],_t=["stroke"],vt=["stroke"],pt=["xmlns"],xt=["x1","x2","stroke"],ft=["xmlns"],gt=["x","y","width","height","fill"],wt=["y","width","height","fill"],Nt=["xmlns"],Et=["fill"],Vt=["fill"],Bt=["fill"],Mt=["xmlns"],bt=["x1","x2","y1","y2","stroke"],Ct=["stroke"],Lt=["fill"],St=["xmlns"],zt=["fill"],At=["fill"],$t=["x1","y1","x2","y2","stroke-width","stroke"],Wt=["xmlns"],Pt={key:0},Xt=["stroke","stroke-width"],jt=["stroke","stroke-width"],Ft=["x1","x2","y1","y2","stroke","stroke-width"],Ot=["x1","x2","y1","y2","stroke","stroke-width"],qt=["x1","x2","y1","y2","stroke","stroke-width"],Ht=["x","y","height","width","fill"],It=["xmlns","viewBox"],Zt=["x","y","stroke","fill"],Tt=["xmlns"],Gt=["d","stroke"],Rt=["cx","cy","r","fill","stroke"],Yt=["cx","cy","r","fill","stroke"],Dt=["x","y","width","fill"],Ut=["cx","cy","fill"],Jt=["cx","cy","fill"],Kt=["stroke"],Qt=["xmlns"],el=["stroke","stroke-width"],tl=["stroke","stroke-width"],ll=["stroke","stroke-width"],ol=["fill"],rl=["fill"],nl=["fill"],sl=["fill"],al=["fill"],cl=["fill"],il=["xmlns"],dl={key:0},ul=["stroke","stroke-width"],kl=["stroke","stroke-width"],yl=["stroke","stroke-width"],hl={key:1},ml=["r","fill"],_l=["r","fill"],vl=["xmlns"],pl={key:0},xl=["stroke","stroke-width"],fl=["stroke","stroke-width"],gl=["fill","rx","x","y","width","height"],wl=["xmlns"],Nl=["stroke-width","stroke"],El=["stroke-width","stroke"],Vl=["stroke-width","stroke"],Bl=["xmlns"],Ml=["stroke"],bl=["stroke"],Cl=["stroke"],Ll=["stroke"],Sl=["fill"],zl=["stroke"],Al=["xmlns"],$l=["stroke","stroke-width"],Wl=["stroke","stroke-width"],Pl=["fill","r"],Xl=["fill","r"],jl=["fill","r"],Fl=["fill","r"],Ol=["fill","r"],ql=["fill","r"],Hl=["fill","r"],Il=["fill","r"],Zl=["fill","r"],Tl=["xmlns"],Gl=["d","stroke","stroke-width"],Rl=["d","stroke","stroke-width"],Yl=["d","stroke","stroke-width"],Dl=["d","stroke","stroke-width"],Ul=["stroke","stroke-width"],Jl=["stroke","stroke-width"],Kl=["stroke","stroke-width"],Ql=["fill"],eo=["fill"],to=["xmlns"],lo=["x","y","fill"],oo=["x","y","fill"],ro=["x","y","fill"],no=["xmlns"],so=["fill"],ao=["fill"],co=["y1","y2","stroke","stroke-width"],io=["x1","x2","stroke","stroke-width"],uo=["xmlns","stroke"],ko=i(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),yo=["fill"],ho=["xmlns","stroke"],mo=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-38f9c8b1></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-38f9c8b1></path><path d="M9 10l.01 0" data-v-38f9c8b1></path><path d="M15 10l.01 0" data-v-38f9c8b1></path><path d="M9.5 15.25a3.5 3.5 0 0 1 5 0" data-v-38f9c8b1></path>',5),_o=[mo],vo=["xmlns","stroke"],po=i(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),xo=["fill"],fo=["xmlns","stroke"],go=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-38f9c8b1></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-38f9c8b1></path><path d="M9 10l.01 0" data-v-38f9c8b1></path><path d="M15 10l.01 0" data-v-38f9c8b1></path><path d="M9 15l6 0" data-v-38f9c8b1></path>',5),wo=[go],No=["xmlns","stroke"],Eo=i(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),Vo=["fill"],Bo=["xmlns","stroke"],Mo=i(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),bo=i(()=>e.createElementVNode("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"},null,-1)),Co=i(()=>e.createElementVNode("path",{d:"M9 10l.01 0"},null,-1)),Lo=i(()=>e.createElementVNode("path",{d:"M15 10l.01 0"},null,-1)),So=[Mo,bo,Co,Lo],zo=["xmlns","stroke"],Ao=i(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),$o=["fill"],Wo=["xmlns","stroke"],Po=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-38f9c8b1></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-38f9c8b1></path><path d="M9 10l.01 0" data-v-38f9c8b1></path><path d="M15 10l.01 0" data-v-38f9c8b1></path><path d="M9.5 15a3.5 3.5 0 0 0 5 0" data-v-38f9c8b1></path>',5),Xo=[Po],jo=["xmlns","stroke"],Fo=i(()=>e.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"},null,-1)),Oo=["fill"],qo=["xmlns","stroke"],Ho=e.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-38f9c8b1></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" data-v-38f9c8b1></path><path d="M9 9l.01 0" data-v-38f9c8b1></path><path d="M15 9l.01 0" data-v-38f9c8b1></path><path d="M8 13a4 4 0 1 0 8 0h-8" data-v-38f9c8b1></path>',5),Io=[Ho],Zo=["xmlns"],To=["points","fill","stroke","stroke-width"],Go=["xmlns"],Ro={key:0},Yo=["stroke","stroke-width"],Do=["y","width","fill","rx"],Uo={__name:"vue-ui-skeleton",props:{config:{type:Object,default(){return{}}}},setup(u){const p=u,{vue_ui_skeleton:x}=l.useConfig(),f=e.ref(`vue-ui-skeleton-${Math.random()}`),t=e.computed(()=>b.useNestedProp({userConfig:p.config,defaultConfig:x})),g=e.computed(()=>t.value.style.animated),s=e.computed(()=>t.value.type),w=e.ref([60,50,55,36,40,25,26,12]),N=e.computed(()=>l.createPolygonPath({plot:{x:50,y:50},radius:40,sides:6}).path),E=e.computed(()=>l.createPolygonPath({plot:{x:50,y:50},radius:30,sides:6}).path),V=e.computed(()=>l.createPolygonPath({plot:{x:50,y:50},radius:20,sides:6}).path),B=e.computed(()=>l.createPolygonPath({plot:{x:50,y:50},radius:10,sides:6}).path),y=e.ref([{root:{x:70,y:77,r:44,opacity:100},bars:[{x:200,y:37,opacity:100,width:240},{x:200,y:118,opacity:100,width:180},{x:200,y:253,opacity:100,width:80}]},{root:{x:70,y:177,r:32,opacity:70},bars:[{x:200,y:145,opacity:70,width:160},{x:200,y:172,opacity:70,width:140},{x:200,y:199,opacity:70,width:120}]},{root:{x:70,y:257,r:24,opacity:40},bars:[{x:200,y:64,opacity:40,width:220},{x:200,y:91,opacity:40,width:200},{x:200,y:226,opacity:40,width:100}]}]),a=e.ref([{y:200,height:100,bar:50},{y:180,height:100,bar:40},{y:150,height:100,bar:30},{y:120,height:80,bar:50},{y:110,height:60,bar:30},{y:80,height:80,bar:10},{y:50,height:80,bar:40},{y:24,height:40,bar:24},{y:44,height:20,bar:13},{y:32,height:45,bar:19}]),k=e.ref([[3,2.5],[4,3.1],[8,6],[9.5,6.5],[12,11],[16,15],[18,18.2],[25,24],[24,26],[32,32],[33,32],[32,31],[38,37],[37,38],[42,41],[40,41],[44,45],[38,35],[31,32]]),h=e.ref([{x:40,y:30},{x:45,y:28},{x:50,y:25},{x:55,y:20},{x:60,y:27},{x:65,y:14},{x:70,y:23},{x:75,y:16},{x:80,y:25},{x:85,y:10},{x:90,y:18},{x:95,y:7},{x:100,y:12},{x:105,y:10},{x:110,y:20},{x:115,y:7},{x:120,y:14},{x:125,y:10},{x:130,y:19},{x:135,y:3},{x:140,y:10},{x:145,y:2},{x:150,y:1}]);function m(d,_=1){return{x:200+160*Math.cos(29.85+d*Math.PI/180)*_,y:200+160*Math.sin(29.85+d*Math.PI/180)*_}}const M=e.computed(()=>{const d=[];for(let o=0;o<100;o+=1)d.push({x1:m(360/100*o).x,y1:m(360/100*o).y,x2:m(360/100*o,.9).x,y2:m(360/100*o,.9).y,color:t.value.style.wheel.color});return d});return(d,_)=>(e.openBlock(),e.createElementBlock("div",{id:f.value,class:e.normalizeClass({"vue-ui-skeleton":!0,"vue-ui-skeleton-animated":g.value}),style:e.normalizeStyle(`background:${t.value.style.backgroundColor};color:${t.value.style.color};display:flex;align-items:center;justify-content:center;`)},[s.value==="flow"?(e.openBlock(),e.createElementBlock("svg",{key:0,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 80 60",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createVNode(n._sfc_main),e.createElementVNode("path",{d:"M 5 5 L 5 55 M 75 5 L 75 55 M 28 5 L 28 55 M 52 5 L 52 55 M 5 8 L 28 12 L 52 9 L 75 8 L 75 12 L 52 12 L 28 21 L 5 29 Z M 5 34 L 28 35 L 52 24 L 75 21 L 75 27 L 52 30 L 28 44 L 52 39 L 75 41 L 75 47 L 52 45 L 28 52 L 5 52 Z",stroke:t.value.style.flow.color,"stroke-width":.8,"stroke-linecap":"round","stroke-linejoin":"round",fill:t.value.style.flow.color},null,8,z)],12,S)):e.createCommentVNode("",!0),s.value==="parallelCoordinatePlot"?(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 80 60",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createVNode(n._sfc_main),e.createElementVNode("path",{d:"M 5 5 L 5 55 M 75 5 L 75 55 M 28 5 L 28 55 M 52 5 L 52 55 M 5 10 A 1 1 0 0 0 5 12 A 1 1 0 0 0 5 10 M 28 15 A 1 1 0 0 0 28 17 A 1 1 0 0 0 28 15 M 52 8 A 1 1 0 0 0 52 10 A 1 1 0 0 0 52 8 M 75 11 A 1 1 0 0 0 75 13 A 1 1 0 0 0 75 11 M 6 11 L 27 16 M 29 16 L 51 9 M 53 9 L 74 12 M 5 50 A 1 1 0 0 0 5 48 A 1 1 0 0 0 5 50 M 28 39 A 1 1 0 0 0 28 41 A 1 1 0 0 0 28 39 M 52 45 A 1 1 0 0 0 52 47 A 1 1 0 0 0 52 45 M 75 45 A 1 1 0 0 0 75 47 A 1 1 0 0 0 75 45 M 6 49 L 27 40 M 29 40 L 51 46 M 53 46 L 74 46 M 5 25 A 1 1 0 0 0 5 27 A 1 1 0 0 0 5 25 M 28 31 A 1 1 0 0 0 28 33 A 1 1 0 0 0 28 31 M 52 23 A 1 1 0 0 0 52 25 A 1 1 0 0 0 52 23 M 75 21 A 1 1 0 0 0 75 23 A 1 1 0 0 0 75 21 M 6 26 L 27 32 M 29 32 L 51 24 M 53 24 L 74 22",stroke:t.value.style.parallelCoordinatePlot.color,"stroke-width":.8,"stroke-linecap":"round","stroke-linejoin":"round",fill:t.value.style.parallelCoordinatePlot.color},null,8,$)],12,A)):e.createCommentVNode("",!0),s.value==="dumbbell"?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(l.XMLNS),width:"100%",viewBox:"0 0 100 55",style:e.normalizeStyle(`background:${t.value.style.backgroundColor}`)},[e.createVNode(n._sfc_main),e.createElementVNode("line",{x1:"3",x2:"3",y1:"3",y2:"67",stroke:t.value.style.dumbbell.color,"stroke-width":.5,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,P),e.createElementVNode("path",{d:`
2
2
  M 30,11
3
3
  C 39,10 39,10
4
4
  45,11