vue-data-ui 3.28.3 → 3.28.5

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 (194) hide show
  1. package/dist/{BaseDraggableDialog-DHgIPVmz.js → BaseDraggableDialog-9d30Yx8c.js} +1 -1
  2. package/dist/{BaseIcon-Cm-IJ179.js → BaseIcon-fYK0iID8.js} +1 -1
  3. package/dist/{BaseLegendToggle-Q3TiW9u1.js → BaseLegendToggle-aT9fOoGO.js} +1 -1
  4. package/dist/{BaseZoomControls-ByS_7fmI.js → BaseZoomControls-1OdFWrHW.js} +1 -1
  5. package/dist/ColorPicker-DEJOjcmD.js +1 -0
  6. package/dist/{DataTable-0Vv-aGHD.js → DataTable-5Ug6gMAX.js} +1 -1
  7. package/dist/{HillActions-qz6J_uK7.js → HillActions-C8am4I5c.js} +1 -1
  8. package/dist/{NonSvgPenAndPaper-Do6RcwEr.js → NonSvgPenAndPaper-CawVDtNj.js} +1 -1
  9. package/dist/{PackageVersion-CXT-eAuk.js → PackageVersion-DWlHsdPa.js} +1 -1
  10. package/dist/PenAndPaper-r50tK3S4.js +1 -0
  11. package/dist/{SlicerPreview-CFFUOlQr.js → SlicerPreview-DYuyE9u9.js} +1 -1
  12. package/dist/{UserOptions-uWHV_zPB.js → UserOptions-Em_JgDXM.js} +1 -1
  13. package/dist/annotationSlots-RvQBEO9-.js +1 -0
  14. package/dist/annotationViewport-X8fvs7pz.js +1 -0
  15. package/dist/components/vue-ui-3d-bar.js +1 -1
  16. package/dist/components/vue-ui-accordion.js +1 -1
  17. package/dist/components/vue-ui-age-pyramid.js +1 -1
  18. package/dist/components/vue-ui-annotator.js +1 -1
  19. package/dist/components/vue-ui-bullet.js +1 -1
  20. package/dist/components/vue-ui-bump.js +1 -1
  21. package/dist/components/vue-ui-candlestick.js +1 -1
  22. package/dist/components/vue-ui-carousel-table.js +1 -1
  23. package/dist/components/vue-ui-chestnut.js +1 -1
  24. package/dist/components/vue-ui-chord.js +1 -1
  25. package/dist/components/vue-ui-circle-pack.js +1 -1
  26. package/dist/components/vue-ui-cursor.js +1 -1
  27. package/dist/components/vue-ui-dag.js +1 -1
  28. package/dist/components/vue-ui-dashboard.js +1 -1
  29. package/dist/components/vue-ui-digits.js +1 -1
  30. package/dist/components/vue-ui-donut-evolution.js +1 -1
  31. package/dist/components/vue-ui-donut.js +1 -1
  32. package/dist/components/vue-ui-dumbbell.js +1 -1
  33. package/dist/components/vue-ui-flow.js +1 -1
  34. package/dist/components/vue-ui-funnel.js +1 -1
  35. package/dist/components/vue-ui-galaxy.js +1 -1
  36. package/dist/components/vue-ui-gauge.js +1 -1
  37. package/dist/components/vue-ui-geo.js +1 -1
  38. package/dist/components/vue-ui-gizmo.js +1 -1
  39. package/dist/components/vue-ui-graph.js +1 -1
  40. package/dist/components/vue-ui-heatmap.js +1 -1
  41. package/dist/components/vue-ui-hill.js +1 -1
  42. package/dist/components/vue-ui-history-plot.js +1 -1
  43. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  44. package/dist/components/vue-ui-icon.js +1 -1
  45. package/dist/components/vue-ui-kpi.js +1 -1
  46. package/dist/components/vue-ui-label.js +1 -1
  47. package/dist/components/vue-ui-mini-loader.js +1 -1
  48. package/dist/components/vue-ui-molecule.js +1 -1
  49. package/dist/components/vue-ui-mood-radar.js +1 -1
  50. package/dist/components/vue-ui-nested-donuts.js +1 -1
  51. package/dist/components/vue-ui-onion.js +1 -1
  52. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  53. package/dist/components/vue-ui-quadrant.js +1 -1
  54. package/dist/components/vue-ui-quick-chart.js +1 -1
  55. package/dist/components/vue-ui-radar.js +1 -1
  56. package/dist/components/vue-ui-rating.js +1 -1
  57. package/dist/components/vue-ui-relation-circle.js +1 -1
  58. package/dist/components/vue-ui-ridgeline.js +1 -1
  59. package/dist/components/vue-ui-rings.js +1 -1
  60. package/dist/components/vue-ui-scatter.js +1 -1
  61. package/dist/components/vue-ui-skeleton.js +1 -1
  62. package/dist/components/vue-ui-smiley.js +1 -1
  63. package/dist/components/vue-ui-spark-trend.js +1 -1
  64. package/dist/components/vue-ui-sparkbar.js +1 -1
  65. package/dist/components/vue-ui-sparkgauge.js +1 -1
  66. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  67. package/dist/components/vue-ui-sparkline.js +1 -1
  68. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  69. package/dist/components/vue-ui-stackbar.js +1 -1
  70. package/dist/components/vue-ui-stackline.js +1 -1
  71. package/dist/components/vue-ui-strip-plot.js +1 -1
  72. package/dist/components/vue-ui-table-heatmap.js +1 -1
  73. package/dist/components/vue-ui-table-sparkline.js +1 -1
  74. package/dist/components/vue-ui-table.js +1 -1
  75. package/dist/components/vue-ui-thermometer.js +1 -1
  76. package/dist/components/vue-ui-timer.js +1 -1
  77. package/dist/components/vue-ui-tiremarks.js +1 -1
  78. package/dist/components/vue-ui-treemap.js +1 -1
  79. package/dist/components/vue-ui-vertical-bar.js +1 -1
  80. package/dist/components/vue-ui-waffle.js +1 -1
  81. package/dist/components/vue-ui-wheel.js +1 -1
  82. package/dist/components/vue-ui-word-cloud.js +1 -1
  83. package/dist/components/vue-ui-world.js +1 -1
  84. package/dist/components/vue-ui-xy-canvas.js +1 -1
  85. package/dist/components/vue-ui-xy.js +1 -1
  86. package/dist/package-CM94W_P5.js +1 -0
  87. package/dist/{render-common-C70bnUVe.js → render-common-Dkf3n13B.js} +1 -1
  88. package/dist/ssr/vue-ui-donut.js +1 -1
  89. package/dist/ssr/vue-ui-xy.js +1 -1
  90. package/dist/ssr.js +1 -1
  91. package/dist/style.css +1 -1
  92. package/dist/types/vue-data-ui.d.ts +26 -1
  93. package/dist/types/vue-ui-xy.d.ts +3 -0
  94. package/dist/useConfig-D3ZfFSE5.js +1 -0
  95. package/dist/{useObjectBindings-C15PEyQD.js → useObjectBindings-BCi3Az41.js} +1 -1
  96. package/dist/utils.js +1 -1
  97. package/dist/vue-data-ui-B2f_qLvD.js +1 -0
  98. package/dist/vue-data-ui.js +1 -1
  99. package/dist/{vue-ui-3d-bar-ljsy2rX6.js → vue-ui-3d-bar-Bm-Oe_kr.js} +2 -2
  100. package/dist/{vue-ui-accordion-S3nRtTU-.js → vue-ui-accordion-D4FHxzsL.js} +1 -1
  101. package/dist/{vue-ui-age-pyramid-a6CK7z3a.js → vue-ui-age-pyramid-DeN6_pms.js} +1 -1
  102. package/dist/{vue-ui-annotator-DCJdieNC.js → vue-ui-annotator-DuAQovkf.js} +1 -1
  103. package/dist/{vue-ui-bullet-DX4A2Qwo.js → vue-ui-bullet-CXCjzBCa.js} +2 -2
  104. package/dist/{vue-ui-bump-IvRdB6MD.js → vue-ui-bump-DrphtYb-.js} +2 -2
  105. package/dist/vue-ui-candlestick-CAdTTZzx.js +22 -0
  106. package/dist/{vue-ui-carousel-table-D01DGfA0.js → vue-ui-carousel-table-D-PSQEuw.js} +1 -1
  107. package/dist/vue-ui-chestnut-BhnQd90d.js +1 -0
  108. package/dist/{vue-ui-chord-CwzQ7QbP.js → vue-ui-chord-C6swlh_I.js} +3 -3
  109. package/dist/vue-ui-circle-pack-CXhm9rwh.js +13 -0
  110. package/dist/{vue-ui-cursor-CTFfbDX8.js → vue-ui-cursor-CCx0hL1b.js} +1 -1
  111. package/dist/vue-ui-dag-BNYDTrHG.js +9 -0
  112. package/dist/{vue-ui-dashboard-D98rMHjI.js → vue-ui-dashboard-C2KQNeNt.js} +1 -1
  113. package/dist/{vue-ui-digits-AoPCgSfP.js → vue-ui-digits-Bcg9Ocwc.js} +1 -1
  114. package/dist/{vue-ui-donut-BYUkblpv.js → vue-ui-donut-CU-L5W3v.js} +2 -2
  115. package/dist/vue-ui-donut-CqasvTv0.js +22 -0
  116. package/dist/vue-ui-donut-evolution-DgLZRZkG.js +2 -0
  117. package/dist/{vue-ui-dumbbell-DR7rjMt0.js → vue-ui-dumbbell-DCYDSSZf.js} +2 -2
  118. package/dist/{vue-ui-flow-DtQlRSK_.js → vue-ui-flow-BzGZdOi-.js} +2 -2
  119. package/dist/{vue-ui-funnel-BP3chlZy.js → vue-ui-funnel-pJc9jVJO.js} +1 -1
  120. package/dist/{vue-ui-galaxy-B7ogrJ6f.js → vue-ui-galaxy-DHheME5Z.js} +1 -1
  121. package/dist/{vue-ui-gauge-CrmzNkjT.js → vue-ui-gauge-C4v_qdpm.js} +1 -1
  122. package/dist/vue-ui-geo-Fras0OVo.js +1 -0
  123. package/dist/{vue-ui-gizmo-C3wgMKwb.js → vue-ui-gizmo-Bqea3ZMn.js} +1 -1
  124. package/dist/{vue-ui-graph-CzUVEiO-.js → vue-ui-graph-BZs3jwhv.js} +2 -2
  125. package/dist/vue-ui-heatmap-2ALnM7Oj.js +1 -0
  126. package/dist/{vue-ui-hill-BDOd7LrC.js → vue-ui-hill-B8dCg3x5.js} +1 -1
  127. package/dist/{vue-ui-history-plot-0-vs_CVn.js → vue-ui-history-plot-CegRxR-x.js} +2 -2
  128. package/dist/vue-ui-horizontal-bar-DuRnq32M.js +4 -0
  129. package/dist/{vue-ui-kpi-Dfhsk0U1.js → vue-ui-kpi-DSwSDLcO.js} +1 -1
  130. package/dist/{vue-ui-label-B_1kM28r.js → vue-ui-label-0lSeoxvv.js} +1 -1
  131. package/dist/{vue-ui-mini-loader-Bbupx66Y.js → vue-ui-mini-loader-C6vhrfx3.js} +1 -1
  132. package/dist/vue-ui-molecule-DF9I7IDy.js +1 -0
  133. package/dist/{vue-ui-mood-radar-B1N5AwX_.js → vue-ui-mood-radar-BpDzg6P1.js} +1 -1
  134. package/dist/{vue-ui-nested-donuts-CfHH-cU6.js → vue-ui-nested-donuts-CYU90SX-.js} +2 -2
  135. package/dist/{vue-ui-onion-DRN-jIvq.js → vue-ui-onion-C9Y96_Pe.js} +2 -2
  136. package/dist/{vue-ui-parallel-coordinate-plot-UUPjQABF.js → vue-ui-parallel-coordinate-plot-CEX33A1e.js} +3 -3
  137. package/dist/{vue-ui-quadrant-zmtzn0lM.js → vue-ui-quadrant-BzD-dhcs.js} +2 -2
  138. package/dist/vue-ui-quick-chart-DDXK6KTi.js +17 -0
  139. package/dist/{vue-ui-radar-BGSoxRaK.js → vue-ui-radar-fgVruUz1.js} +1 -1
  140. package/dist/{vue-ui-rating-ChWXrWNJ.js → vue-ui-rating-7RAJA7I4.js} +1 -1
  141. package/dist/{vue-ui-relation-circle-XUw5UMrt.js → vue-ui-relation-circle-TA-KH-2J.js} +1 -1
  142. package/dist/{vue-ui-ridgeline-B5RJcFyA.js → vue-ui-ridgeline-GJ_EyeMs.js} +2 -2
  143. package/dist/{vue-ui-rings-BJaCLH2Q.js → vue-ui-rings-CQ4CQa-D.js} +1 -1
  144. package/dist/{vue-ui-scatter-BA0hk_Tf.js → vue-ui-scatter-ecBr_qgs.js} +2 -2
  145. package/dist/{vue-ui-skeleton-DpzaXPO3.js → vue-ui-skeleton-BqHwNz2O.js} +1 -1
  146. package/dist/{vue-ui-smiley--VTlUAdp.js → vue-ui-smiley-BdhxsPGW.js} +1 -1
  147. package/dist/{vue-ui-spark-trend-DJ63XtgQ.js → vue-ui-spark-trend-DULUucQY.js} +1 -1
  148. package/dist/{vue-ui-sparkbar-C5wP9R67.js → vue-ui-sparkbar-CUzfk9Y4.js} +1 -1
  149. package/dist/{vue-ui-sparkgauge-DQcAOGuG.js → vue-ui-sparkgauge-CEYIZNGr.js} +1 -1
  150. package/dist/{vue-ui-sparkhistogram-BBiCxX6W.js → vue-ui-sparkhistogram-BATfvYil.js} +1 -1
  151. package/dist/{vue-ui-sparkline-B_GkB9V_.js → vue-ui-sparkline-B2jYjPFT.js} +1 -1
  152. package/dist/{vue-ui-sparkstackbar-DSRXhqhJ.js → vue-ui-sparkstackbar-CN-Xz72S.js} +1 -1
  153. package/dist/vue-ui-stackbar-D9hp_pkz.js +29 -0
  154. package/dist/vue-ui-stackline-BKcbKdrA.js +39 -0
  155. package/dist/{vue-ui-strip-plot-d3UoFFrf.js → vue-ui-strip-plot-CKk6MJhD.js} +2 -2
  156. package/dist/{vue-ui-table-CHFjZzW7.js → vue-ui-table-D-jfpSh1.js} +1 -1
  157. package/dist/{vue-ui-table-heatmap-DzvPQnY9.js → vue-ui-table-heatmap-IYPQ7LMg.js} +1 -1
  158. package/dist/{vue-ui-table-sparkline-BkZ7sn4X.js → vue-ui-table-sparkline-295WMuHK.js} +1 -1
  159. package/dist/vue-ui-thermometer-Ccasz0jb.js +1 -0
  160. package/dist/{vue-ui-timer-DmwEWrDh.js → vue-ui-timer-DeTZUIxO.js} +2 -2
  161. package/dist/{vue-ui-tiremarks-160Gx7-3.js → vue-ui-tiremarks-DWrBN1nz.js} +1 -1
  162. package/dist/vue-ui-treemap-D8Se3_RA.js +1 -0
  163. package/dist/{vue-ui-waffle-BhzLg5ip.js → vue-ui-waffle-BSfHWe_Z.js} +1 -1
  164. package/dist/vue-ui-wheel-BRaABy8K.js +1 -0
  165. package/dist/vue-ui-word-cloud-9YYx_Xrj.js +4 -0
  166. package/dist/{vue-ui-world-BD9acchj.js → vue-ui-world-BmICer9M.js} +2 -2
  167. package/dist/{vue-ui-xy-CB3lQs2m.js → vue-ui-xy-D7IJvizz.js} +1 -1
  168. package/dist/vue-ui-xy-DYnPKTpK.js +24 -0
  169. package/dist/{vue-ui-xy-canvas-Do4P4ajB.js → vue-ui-xy-canvas-CjrbWdJJ.js} +1 -1
  170. package/package.json +1 -1
  171. package/dist/ColorPicker-Dmus34hN.js +0 -1
  172. package/dist/PenAndPaper-BGEp-TUm.js +0 -1
  173. package/dist/annotationSlots-BRR85CqJ.js +0 -1
  174. package/dist/package-CgIKu3rP.js +0 -1
  175. package/dist/useConfig-6jO1fkp5.js +0 -1
  176. package/dist/vue-data-ui-CrOhFey9.js +0 -1
  177. package/dist/vue-ui-candlestick-BgyUo13S.js +0 -22
  178. package/dist/vue-ui-chestnut-DYrMSzmQ.js +0 -1
  179. package/dist/vue-ui-circle-pack-DQHNM9sC.js +0 -13
  180. package/dist/vue-ui-dag-DF29_9Gg.js +0 -9
  181. package/dist/vue-ui-donut-BQGnUso2.js +0 -22
  182. package/dist/vue-ui-donut-evolution-wxHDTKlg.js +0 -2
  183. package/dist/vue-ui-geo-BbTvWbfX.js +0 -1
  184. package/dist/vue-ui-heatmap-BxR2ccwd.js +0 -1
  185. package/dist/vue-ui-horizontal-bar-C5pNTRKB.js +0 -4
  186. package/dist/vue-ui-molecule-DUX1NUIY.js +0 -1
  187. package/dist/vue-ui-quick-chart-DgU_IhKY.js +0 -17
  188. package/dist/vue-ui-stackbar-QjOQHbld.js +0 -29
  189. package/dist/vue-ui-stackline-CoII13bc.js +0 -39
  190. package/dist/vue-ui-thermometer-B--g_Lkt.js +0 -1
  191. package/dist/vue-ui-treemap-B-Yjtob0.js +0 -1
  192. package/dist/vue-ui-wheel-DHb4G42X.js +0 -1
  193. package/dist/vue-ui-word-cloud-BcpreM7A.js +0 -4
  194. package/dist/vue-ui-xy-C-2Phexw.js +0 -24
@@ -1,9 +1,9 @@
1
- import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./useConfig-6jO1fkp5.js";import{$ as n,D as r,Dt as i,Ht as a,J as o,Jt as ee,P as te,S as ne,U as s,X as c,Zt as re,_ as ie,at as ae,i as oe,in as se,nt as ce,pt as le,rn as ue,t as de,tn as fe,w as pe,xt as me,yt as he,zt as ge}from"./lib-rPeBMZrn.js";import{n as _e,t as ve}from"./BaseScanner-8NdoBs7B.js";import{n as ye,t as be}from"./useHints-C-TwxM0Y.js";import{t as xe}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as Se}from"./resolveChartConfig-CIhClE5R.js";import{t as Ce}from"./chartImage-DPGnEuYM.js";import{n as we}from"./Title-BliHuXfT.js";import{t as Te}from"./useChartExport-BZts4KFb.js";import{n as Ee,t as De}from"./tableIntegration-CNoJ1CIY.js";import{n as Oe,t as ke}from"./annotationSlots-BRR85CqJ.js";import{n as Ae,t as je}from"./userOptionsSlots-DYuo-E5m.js";import{t as Me}from"./usePrinter-DVf3YcG5.js";import{t as Ne}from"./useTransitions-ChGGrtrv.js";import{t as Pe}from"./useSvgLabelLayout-42Kats14.js";import{t as Fe}from"./useTimeLabelCollider-BTybMUFi.js";import{t as Ie}from"./Shape-CRe8woTu.js";import{t as Le}from"./useResponsive-CENUxfEL.js";import{t as Re}from"./BaseLegendToggle-Q3TiW9u1.js";import{t as ze}from"./A11yDataTable-DWNlWXzs.js";import{t as Be}from"./useUserOptionState-CXlFnwPv.js";import{t as Ve}from"./useChartAccessibility-DOMuYJfm.js";import{t as He}from"./Legend-DM0ClX3D.js";import{t as Ue}from"./vue_ui_parallel_coordinate_plot-Cs_xXAG5.js";import{Fragment as l,Teleport as We,computed as u,createBlock as d,createCommentVNode as f,createElementBlock as p,createElementVNode as m,createSlots as Ge,createTextVNode as Ke,createVNode as qe,defineAsyncComponent as h,guardReactiveProps as g,mergeProps as Je,nextTick as Ye,normalizeClass as _,normalizeProps as v,normalizeStyle as y,onBeforeUnmount as Xe,onMounted as Ze,openBlock as b,ref as x,renderList as S,renderSlot as C,resolveDynamicComponent as Qe,shallowRef as $e,toDisplayString as w,toRefs as et,unref as T,watch as tt,withCtx as E}from"vue";var nt=/* @__PURE__ */ e({default:()=>Dt}),rt=[`id`],it=[`id`],at=[`id`],ot={style:{position:`relative`}},st=[`xmlns`,`aria-describedby`,`viewBox`],ct=[`x`,`y`,`width`,`height`],lt={style:{"pointer-events":`none`}},ut=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],dt=[`d`,`stroke`,`stroke-width`],ft={key:0},pt=[`transform`,`fill`,`font-size`,`font-weight`],mt=[`fill`,`font-size`,`font-weight`,`text-anchor`,`transform`],ht=[`fill`,`font-size`,`font-weight`,`text-anchor`,`transform`,`innerHTML`],gt={key:0},_t=[`x`,`y`,`font-size`,`fill`],vt=[`width`,`x`,`y`],yt={style:{width:`100%`}},bt=[`d`,`stroke`,`stroke-width`,`onMouseenter`,`onMouseleave`,`onClick`],xt=[`d`,`onMouseenter`,`onMouseleave`,`onClick`],St=[`transform`,`fill`,`font-weight`,`font-size`,`stroke`,`onMouseenter`,`onMouseleave`,`onClick`],Ct={key:0,style:{position:`absolute`,top:`100%`,left:`0`,width:`100%`},"data-dom-to-png-ignore":``,"aria-hidden":`true`},wt={key:5,class:`vue-data-ui-watermark`},Tt=[`id`],Et=[`onClick`],Dt=/*#__PURE__*/ xe({__name:`vue-ui-parallel-coordinate-plot`,props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:[`selectLegend`,`selectDatapoint`,`copyAlt`],setup(e,{expose:xe,emit:nt}){let Dt=h(()=>import(`./Tooltip-C1q0Qoh7.js`)),Ot=h(()=>import(`./BaseIcon-Cm-IJ179.js`).then(e=>e.n)),kt=h(()=>import(`./vue-ui-accordion-S3nRtTU-.js`).then(e=>e.n)),At=h(()=>import(`./DataTable-0Vv-aGHD.js`)),jt=h(()=>import(`./PenAndPaper-BGEp-TUm.js`).then(e=>e.t)),Mt=h(()=>import(`./UserOptions-uWHV_zPB.js`).then(e=>e.n)),Nt=h(()=>import(`./PackageVersion-CXT-eAuk.js`).then(e=>e.t)),Pt=h(()=>import(`./BaseDraggableDialog-DHgIPVmz.js`).then(e=>e.n)),{vue_ui_parallel_coordinate_plot:Ft}=t(),D=e,It=u({get(){return!!D.dataset&&D.dataset.length},set(e){return e}}),Lt=x(0),O=x(null),Rt=x(null),zt=x(null),Bt=x(null),Vt=x(null),Ht=x(0),Ut=x(0),Wt=x(0),Gt=x(!1),Kt=x(null),qt=x(null),Jt=x(null),k=x(null),Yt=x({x:0,y:0}),Xt=x(`pointer`),Zt=x(!1),A=x(c()),j=x(!1);function Qt(e){j.value=e,Lt.value+=1}let M=x(sn()),N=u(()=>M.value.userOptions),P=u(()=>M.value.style.chart.yAxis.labels),F=u(()=>M.value.style.chart.tooltip),I=u(()=>M.value.style.chart),{transitionEnabled:L}=Ne({config:()=>M.value.transitions,dataset:()=>D.dataset});ye({config:()=>M.value,dataset:()=>D.dataset,component:`VueUiParallelCoordinatePlot`,rules:[be.emptyArray,{test:e=>e.length>10,message:[`👀 There are > 10 series. Consider:`,``,`▶️ Using filters, to show less series at the same time and make the chart more readable.`]},{test:e=>e.some(e=>(e?.series??[]).some(e=>(e?.values??[]).length>15)),message:[`👀 There are > 15 axes, which can make the chart hard to read. Consider:`,``,`▶️ Using filters, to allow users to select a maximum set of metrics.`]},{test:e=>e.some(e=>e?.series?.length>5),message:[`👀 Some series have > 5 datapoints. Consider:`,``,`▶️ Using filters, to allow users to select a maximum set of metrics.`]}]});let R=u(()=>M.value.userOptions.useCursorPointer),$t=u(()=>se({defaultConfig:{useCssAnimation:!1,userOptions:{show:!1},table:{show:!1},style:{chart:{backgroundColor:`#99999930`,legend:{show:!0,backgroundColor:`transparent`},yAxis:{stroke:`#6A6A6A`,labels:{showAxisNames:!1,axisNames:[],ticks:{color:`#6A6A6A`}}}}}},userConfig:M.value.skeletonConfig??{}})),{loading:en,FINAL_DATASET:tn,manualLoading:nn}=_e({...et(D),FINAL_CONFIG:M,prepareConfig:sn,callback:()=>{Promise.resolve().then(async()=>{await Ye(),G.value.showTable=M.value.table.show})},skeletonDataset:D.config?.skeletonDataset??[{name:``,shape:`circle`,color:`transparent`,series:[{name:``,values:[1,10,100,1e3]}]},{name:``,shape:`circle`,color:`#CACACA`,series:[{name:``,values:[.2,3,50,800]}]},{name:``,shape:`circle`,color:`transparent`,series:[{name:``,values:[0,0,0,0]}]}],skeletonConfig:se({defaultConfig:M.value,userConfig:$t.value})}),{userOptionsVisible:rn,setUserOptionsVisibility:an,keepUserOptionState:on}=Be({config:M.value}),{svgRef:z}=Ve({config:I.value.title});function sn(){return Se(D.config,Ft,Ue)}let cn=re(D.config);tt(()=>D.config,(e,t)=>{let n=re(e),r=n!==cn;cn=n;let i=sn();r?(en.value||(M.value=i),rn.value=!M.value.userOptions.showOnChartHover,fn(),Ht.value+=1,Wt.value+=1,Ut.value+=1,G.value.dataLabels.show=P.value.datapoints.show,G.value.showTable=M.value.table.show,G.value.showTooltip=F.value.show):(M.value.style.chart.tooltip=i.style.chart.tooltip,G.value.showTooltip=M.value.style.chart.tooltip.show)},{deep:!0}),tt(()=>D.dataset,e=>{Array.isArray(e)&&e.length>0&&(nn.value=!1)},{deep:!0});let B=$e(null),V=$e(null),ln=x(!1),un=0;Ze(()=>{Gt.value=!0,fn()});let dn=u(()=>M.value.debug);function fn(){ge(D.dataset)?(ae({componentName:`VueUiParallelCoordinatePlot`,type:`dataset`,debug:dn.value}),nn.value=!0):D.dataset.forEach((e,t)=>{he({datasetObject:e,requiredAttributes:[`name`,`series`]}).forEach(e=>{It.value=!1,ae({componentName:`VueUiParallelCoordinatePlot`,type:`datasetSerieAttribute`,property:e,index:t,debug:dn.value})})}),ge(D.dataset)||(nn.value=M.value.loading),M.value.responsive&&(B.value&&(V.value&&B.value.unobserve(V.value),B.value.disconnect()),B.value=new ResizeObserver(()=>{let{width:e,height:t}=Le({chart:O.value,title:I.value.title.text?Rt.value:null,legend:I.value.legend.show?zt.value:null,source:Bt.value,noTitle:Vt.value});cancelAnimationFrame(un),un=requestAnimationFrame(()=>{H.value.width=e,H.value.height=t-12,ln.value=!0,M.value.responsiveProportionalSizing?(H.value.plotSize=ue({relator:Math.min(e,t),adjuster:600,source:I.value.plots.radius,threshold:2,fallback:2}),H.value.ticksFontSize=ue({relator:Math.min(e,t),adjuster:600,source:P.value.ticks.fontSize,threshold:10,fallback:10}),H.value.datapointFontSize=ue({relator:Math.min(e,t),adjuster:600,source:P.value.datapoints.fontSize,threshold:10,fallback:10}),H.value.axisNameFontSize=ue({relator:Math.min(e,t),adjuster:600,source:P.value.axisNamesFontSize,threshold:12,fallback:12})):(H.value.plotSize=I.value.plots.radius,H.value.ticksFontSize=P.value.ticks.fontSize,H.value.datapointFontSize=P.value.datapoints.fontSize,H.value.axisNameFontSize=P.value.axisNamesFontSize)})}),V.value=O.value.parentNode,B.value.observe(V.value))}Xe(()=>{cancelAnimationFrame(un),B.value&&(V.value&&B.value.unobserve(V.value),B.value.disconnect())});let{isPrinting:pn,isImaging:mn,generatePdf:hn,generateImage:gn}=Me({elementId:`pcp_${A.value}`,fileName:I.value.title.text||`vue-ui-parallel-coordinate-plot`,options:M.value.userOptions.print}),_n=u(()=>M.value.userOptions.show&&!I.value.title.text),H=x({height:I.value.height,width:I.value.width,plotSize:I.value.plots.radius,ticksFontSize:P.value.ticks.fontSize,datapointFontSize:P.value.datapoints.fontSize,axisNameFontSize:P.value.axisNamesFontSize}),vn=u(()=>H.value.width),yn=u(()=>H.value.height),{metrics:bn,ready:xn,settling:U,update:Sn}=Pe({svgRef:z,canMeasure:()=>!M.value.responsive||ln.value,initialMetrics:{top:0},measure:e=>({top:e(Jt.value).height})}),Cn=u(()=>bn.value.top),W=u(()=>{let{top:e,right:t,bottom:n,left:r}=I.value.padding,i=yn.value,a=vn.value;return{chartHeight:Math.max(.001,i),chartWidth:Math.max(.001,a),height:Math.max(.001,i-e-n-Cn.value-H.value.datapointFontSize*2),width:Math.max(.001,a-r-t),top:e+Cn.value+H.value.datapointFontSize,left:r,right:a-t,bottom:i-n-H.value.datapointFontSize}}),wn=u(()=>pe(M.value.customPalette)),G=x({dataLabels:{show:P.value.datapoints.show},showTable:M.value.table.show,showTooltip:F.value.show});tt(M,()=>{G.value={dataLabels:{show:P.value.datapoints.show},showTable:M.value.table.show,showTooltip:F.value.show}},{immediate:!0});let K=x([]);function Tn(){K.value.length?K.value=[]:An.value.forEach(e=>{K.value.push(e.id)}),Wn(`selectLegend`,Nn.value)}function En(e){K.value.includes(e)?K.value=K.value.filter(t=>t!==e):K.value.push(e),Wn(`selectLegend`,Nn.value)}let q=u(()=>tn.value.map((e,t)=>{let n=ne(e.color)||wn.value[t]||a[t]||a[t%a.length];return{...e,series:e.series.map(e=>({...e,id:c(),color:n})),seriesIndex:t,color:n,id:c(),shape:e.shape||`circle`}}));function Dn(e){return q.value.length?q.value.find(t=>t.name===e)||(dn.value&&console.warn(`VueUiParallelCoordinatePlot - Series name not found "${e}"`),null):(dn.value&&console.warn(`VueUiParallelCoordinatePlot - There are no series to show.`),null)}function On(e){let t=Dn(e);t!==null&&K.value.includes(t.id)&&En(t.id)}function kn(e){let t=Dn(e);t!==null&&(K.value.includes(t.id)||En(t.id))}let An=u(()=>q.value.map(e=>({...e,opacity:K.value.includes(e.id)?.5:1,segregate:()=>En(e.id),isSegregated:K.value.includes(e.id),shape:e.shape||`circle`}))),jn=u(()=>({cy:`pcp-div-legend`,backgroundColor:I.value.legend.backgroundColor,color:I.value.legend.color,fontSize:I.value.legend.fontSize,paddingBottom:12,fontWeight:I.value.legend.bold?`bold`:``})),Mn=u(()=>Math.max(...q.value.filter(e=>!K.value.includes(e.id)).map(e=>Math.max(...e.series.flatMap(e=>e.values.length))))),J=u(()=>W.value.width/Mn.value),Nn=u(()=>q.value.filter(e=>!K.value.includes(e.id))),Y=u(()=>{let e=[];for(let t=0;t<Mn.value;t+=1){let n=Math.min(...Nn.value.flatMap(e=>e.series.map(e=>e.values[t]||0)||0)),r=Math.max(...Nn.value.flatMap(e=>e.series.map(e=>e.values[t]||0)||0)),i=r===n?n/4:n,a=r===n?r*2:r,o=ie(i,a,I.value.yAxis.scaleTicks),ee=o.ticks.map((e,n)=>{let r=o.min<0?e+Math.abs(o.min):e-Math.abs(o.min),i=o.min<0?o.max+Math.abs(o.min):o.max-Math.abs(o.min);return{y:W.value.bottom-W.value.height*(r/i),x:W.value.left+J.value*t+J.value/2,value:e}});e.push({scale:o,ticks:ee,name:P.value.axisNames[t]||`Y-${t+1}`})}return e}),X=u(()=>Nn.value.map((e,t)=>({...e,series:e.series.map((n,r)=>({...n,datapoints:n.values.map((i,a)=>{let o=Y.value[a].scale.min<0?(i||0)+Math.abs(Y.value[a].scale.min):(i||0)-Math.abs(Y.value[a].scale.min),ee=Y.value[a].scale.min<0?Y.value[a].scale.max+Math.abs(Y.value[a].scale.min):Y.value[a].scale.max-Math.abs(Y.value[a].scale.min);return{name:n.name,seriesName:e.name,axisIndex:a,datapointIndex:r,seriesIndex:t,value:i||0,x:W.value.left+J.value*a+J.value/2,y:W.value.bottom-W.value.height*(o/ee),comment:n.comments&&n.comments[a]||``}})}))})).map(e=>({...e,series:e.series.map(e=>{let t=s(e.datapoints),n=te(e.datapoints,.12),r=me(I.value.lines.smooth?`M ${n}`:`M ${t}`);return{...e,smoothPath:n,straightPath:t,pathLength:r}})}))),Z=u(()=>X.value.flatMap((e,t)=>e.series.map((n,r)=>({shape:e.shape,serieName:e.name,serie:n,relativeIndex:r,seriesIndex:n.seriesIndex,S:t,key:`${t}_${r}`}))));function Pn({value:e,index:t,datapoint:r}){return oe(P.value.formatters[t]||null,e,n({p:P.value.prefixes[t]||``,v:e,s:P.value.suffixes[t]||``,r:P.value.roundings[t]||0}),{datapoint:r,seriesIndex:t})}let Q=x(null),Fn=x(null),In=x(!1),Ln=x(``);function Rn({shape:e,serie:t,S:n}){M.value.events.datapointLeave&&M.value.events.datapointLeave({datapoint:{...t,shape:e},seriesIndex:n});let r=k.value===null?null:Z.value[k.value];Xt.value===`keyboard`&&r&&r.serie.id===t.id||(Q.value=null,In.value=!1)}function zn(e){if(!z.value||!e?.datapoints?.length)return;let t=e.datapoints[Math.floor(e.datapoints.length/2)];if(!t)return;let n=fe(t.x,t.y,z.value);n&&(Yt.value=n)}function Bn({shape:e,serieName:t,serie:r,relativeIndex:a,seriesIndex:o,S:te,triggerMode:ne=`pointer`}){M.value.events.datapointEnter&&M.value.events.datapointEnter({datapoint:{...r,shape:e},seriesIndex:te}),Xt.value=ne,Fn.value={config:M.value,datapoint:r,serie:r,relativeIndex:a,seriesIndex:o,series:q.value,scales:Y.value},In.value=!0,Q.value=r.id;let s=``,c=F.value.customFormat;i(c)&&le(()=>c({serie:r,seriesIndex:r.seriesIndex,series:q.value,config:M.value,scales:Y.value}))?Ln.value=c({serie:r,seriesIndex:r.seriesIndex,series:q.value,config:M.value,scales:Y.value}):(s+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${F.value.borderColor};padding-bottom:6px;margin-bottom:3px;">${t?t+` - `:``}${r.name}</div>`,Y.value.map(e=>e.name).forEach((e,t)=>{s+=`
1
+ import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./useConfig-D3ZfFSE5.js";import{$ as n,D as r,Dt as i,Ht as a,J as o,Jt as ee,P as te,S as ne,U as s,X as c,Zt as re,_ as ie,at as ae,i as oe,in as se,nt as ce,pt as le,rn as ue,t as de,tn as fe,w as pe,xt as me,yt as he,zt as ge}from"./lib-rPeBMZrn.js";import{n as _e,t as ve}from"./BaseScanner-8NdoBs7B.js";import{n as ye,t as be}from"./useHints-C-TwxM0Y.js";import{t as xe}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as Se}from"./resolveChartConfig-CIhClE5R.js";import{t as Ce}from"./chartImage-DPGnEuYM.js";import{n as we}from"./Title-BliHuXfT.js";import{t as Te}from"./useChartExport-BZts4KFb.js";import{n as Ee,t as De}from"./tableIntegration-CNoJ1CIY.js";import{n as Oe,t as ke}from"./annotationSlots-RvQBEO9-.js";import{n as Ae,t as je}from"./userOptionsSlots-DYuo-E5m.js";import{t as Me}from"./usePrinter-DVf3YcG5.js";import{t as Ne}from"./useTransitions-ChGGrtrv.js";import{t as Pe}from"./useSvgLabelLayout-42Kats14.js";import{t as Fe}from"./useTimeLabelCollider-BTybMUFi.js";import{t as Ie}from"./Shape-CRe8woTu.js";import{t as Le}from"./useResponsive-CENUxfEL.js";import{t as Re}from"./BaseLegendToggle-aT9fOoGO.js";import{t as ze}from"./A11yDataTable-DWNlWXzs.js";import{t as Be}from"./useUserOptionState-CXlFnwPv.js";import{t as Ve}from"./useChartAccessibility-DOMuYJfm.js";import{t as He}from"./Legend-DM0ClX3D.js";import{t as Ue}from"./vue_ui_parallel_coordinate_plot-Cs_xXAG5.js";import{Fragment as l,Teleport as We,computed as u,createBlock as d,createCommentVNode as f,createElementBlock as p,createElementVNode as m,createSlots as Ge,createTextVNode as Ke,createVNode as qe,defineAsyncComponent as h,guardReactiveProps as g,mergeProps as Je,nextTick as Ye,normalizeClass as _,normalizeProps as v,normalizeStyle as y,onBeforeUnmount as Xe,onMounted as Ze,openBlock as b,ref as x,renderList as S,renderSlot as C,resolveDynamicComponent as Qe,shallowRef as $e,toDisplayString as w,toRefs as et,unref as T,watch as tt,withCtx as E}from"vue";var nt=/* @__PURE__ */ e({default:()=>Dt}),rt=[`id`],it=[`id`],at=[`id`],ot={style:{position:`relative`}},st=[`xmlns`,`aria-describedby`,`viewBox`],ct=[`x`,`y`,`width`,`height`],lt={style:{"pointer-events":`none`}},ut=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],dt=[`d`,`stroke`,`stroke-width`],ft={key:0},pt=[`transform`,`fill`,`font-size`,`font-weight`],mt=[`fill`,`font-size`,`font-weight`,`text-anchor`,`transform`],ht=[`fill`,`font-size`,`font-weight`,`text-anchor`,`transform`,`innerHTML`],gt={key:0},_t=[`x`,`y`,`font-size`,`fill`],vt=[`width`,`x`,`y`],yt={style:{width:`100%`}},bt=[`d`,`stroke`,`stroke-width`,`onMouseenter`,`onMouseleave`,`onClick`],xt=[`d`,`onMouseenter`,`onMouseleave`,`onClick`],St=[`transform`,`fill`,`font-weight`,`font-size`,`stroke`,`onMouseenter`,`onMouseleave`,`onClick`],Ct={key:0,style:{position:`absolute`,top:`100%`,left:`0`,width:`100%`},"data-dom-to-png-ignore":``,"aria-hidden":`true`},wt={key:5,class:`vue-data-ui-watermark`},Tt=[`id`],Et=[`onClick`],Dt=/*#__PURE__*/ xe({__name:`vue-ui-parallel-coordinate-plot`,props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:[`selectLegend`,`selectDatapoint`,`copyAlt`],setup(e,{expose:xe,emit:nt}){let Dt=h(()=>import(`./Tooltip-C1q0Qoh7.js`)),Ot=h(()=>import(`./BaseIcon-fYK0iID8.js`).then(e=>e.n)),kt=h(()=>import(`./vue-ui-accordion-D4FHxzsL.js`).then(e=>e.n)),At=h(()=>import(`./DataTable-5Ug6gMAX.js`)),jt=h(()=>import(`./PenAndPaper-r50tK3S4.js`).then(e=>e.t)),Mt=h(()=>import(`./UserOptions-Em_JgDXM.js`).then(e=>e.n)),Nt=h(()=>import(`./PackageVersion-DWlHsdPa.js`).then(e=>e.t)),Pt=h(()=>import(`./BaseDraggableDialog-9d30Yx8c.js`).then(e=>e.n)),{vue_ui_parallel_coordinate_plot:Ft}=t(),D=e,It=u({get(){return!!D.dataset&&D.dataset.length},set(e){return e}}),Lt=x(0),O=x(null),Rt=x(null),zt=x(null),Bt=x(null),Vt=x(null),Ht=x(0),Ut=x(0),Wt=x(0),Gt=x(!1),Kt=x(null),qt=x(null),Jt=x(null),k=x(null),Yt=x({x:0,y:0}),Xt=x(`pointer`),Zt=x(!1),A=x(c()),j=x(!1);function Qt(e){j.value=e,Lt.value+=1}let M=x(sn()),N=u(()=>M.value.userOptions),P=u(()=>M.value.style.chart.yAxis.labels),F=u(()=>M.value.style.chart.tooltip),I=u(()=>M.value.style.chart),{transitionEnabled:L}=Ne({config:()=>M.value.transitions,dataset:()=>D.dataset});ye({config:()=>M.value,dataset:()=>D.dataset,component:`VueUiParallelCoordinatePlot`,rules:[be.emptyArray,{test:e=>e.length>10,message:[`👀 There are > 10 series. Consider:`,``,`▶️ Using filters, to show less series at the same time and make the chart more readable.`]},{test:e=>e.some(e=>(e?.series??[]).some(e=>(e?.values??[]).length>15)),message:[`👀 There are > 15 axes, which can make the chart hard to read. Consider:`,``,`▶️ Using filters, to allow users to select a maximum set of metrics.`]},{test:e=>e.some(e=>e?.series?.length>5),message:[`👀 Some series have > 5 datapoints. Consider:`,``,`▶️ Using filters, to allow users to select a maximum set of metrics.`]}]});let R=u(()=>M.value.userOptions.useCursorPointer),$t=u(()=>se({defaultConfig:{useCssAnimation:!1,userOptions:{show:!1},table:{show:!1},style:{chart:{backgroundColor:`#99999930`,legend:{show:!0,backgroundColor:`transparent`},yAxis:{stroke:`#6A6A6A`,labels:{showAxisNames:!1,axisNames:[],ticks:{color:`#6A6A6A`}}}}}},userConfig:M.value.skeletonConfig??{}})),{loading:en,FINAL_DATASET:tn,manualLoading:nn}=_e({...et(D),FINAL_CONFIG:M,prepareConfig:sn,callback:()=>{Promise.resolve().then(async()=>{await Ye(),G.value.showTable=M.value.table.show})},skeletonDataset:D.config?.skeletonDataset??[{name:``,shape:`circle`,color:`transparent`,series:[{name:``,values:[1,10,100,1e3]}]},{name:``,shape:`circle`,color:`#CACACA`,series:[{name:``,values:[.2,3,50,800]}]},{name:``,shape:`circle`,color:`transparent`,series:[{name:``,values:[0,0,0,0]}]}],skeletonConfig:se({defaultConfig:M.value,userConfig:$t.value})}),{userOptionsVisible:rn,setUserOptionsVisibility:an,keepUserOptionState:on}=Be({config:M.value}),{svgRef:z}=Ve({config:I.value.title});function sn(){return Se(D.config,Ft,Ue)}let cn=re(D.config);tt(()=>D.config,(e,t)=>{let n=re(e),r=n!==cn;cn=n;let i=sn();r?(en.value||(M.value=i),rn.value=!M.value.userOptions.showOnChartHover,fn(),Ht.value+=1,Wt.value+=1,Ut.value+=1,G.value.dataLabels.show=P.value.datapoints.show,G.value.showTable=M.value.table.show,G.value.showTooltip=F.value.show):(M.value.style.chart.tooltip=i.style.chart.tooltip,G.value.showTooltip=M.value.style.chart.tooltip.show)},{deep:!0}),tt(()=>D.dataset,e=>{Array.isArray(e)&&e.length>0&&(nn.value=!1)},{deep:!0});let B=$e(null),V=$e(null),ln=x(!1),un=0;Ze(()=>{Gt.value=!0,fn()});let dn=u(()=>M.value.debug);function fn(){ge(D.dataset)?(ae({componentName:`VueUiParallelCoordinatePlot`,type:`dataset`,debug:dn.value}),nn.value=!0):D.dataset.forEach((e,t)=>{he({datasetObject:e,requiredAttributes:[`name`,`series`]}).forEach(e=>{It.value=!1,ae({componentName:`VueUiParallelCoordinatePlot`,type:`datasetSerieAttribute`,property:e,index:t,debug:dn.value})})}),ge(D.dataset)||(nn.value=M.value.loading),M.value.responsive&&(B.value&&(V.value&&B.value.unobserve(V.value),B.value.disconnect()),B.value=new ResizeObserver(()=>{let{width:e,height:t}=Le({chart:O.value,title:I.value.title.text?Rt.value:null,legend:I.value.legend.show?zt.value:null,source:Bt.value,noTitle:Vt.value});cancelAnimationFrame(un),un=requestAnimationFrame(()=>{H.value.width=e,H.value.height=t-12,ln.value=!0,M.value.responsiveProportionalSizing?(H.value.plotSize=ue({relator:Math.min(e,t),adjuster:600,source:I.value.plots.radius,threshold:2,fallback:2}),H.value.ticksFontSize=ue({relator:Math.min(e,t),adjuster:600,source:P.value.ticks.fontSize,threshold:10,fallback:10}),H.value.datapointFontSize=ue({relator:Math.min(e,t),adjuster:600,source:P.value.datapoints.fontSize,threshold:10,fallback:10}),H.value.axisNameFontSize=ue({relator:Math.min(e,t),adjuster:600,source:P.value.axisNamesFontSize,threshold:12,fallback:12})):(H.value.plotSize=I.value.plots.radius,H.value.ticksFontSize=P.value.ticks.fontSize,H.value.datapointFontSize=P.value.datapoints.fontSize,H.value.axisNameFontSize=P.value.axisNamesFontSize)})}),V.value=O.value.parentNode,B.value.observe(V.value))}Xe(()=>{cancelAnimationFrame(un),B.value&&(V.value&&B.value.unobserve(V.value),B.value.disconnect())});let{isPrinting:pn,isImaging:mn,generatePdf:hn,generateImage:gn}=Me({elementId:`pcp_${A.value}`,fileName:I.value.title.text||`vue-ui-parallel-coordinate-plot`,options:M.value.userOptions.print}),_n=u(()=>M.value.userOptions.show&&!I.value.title.text),H=x({height:I.value.height,width:I.value.width,plotSize:I.value.plots.radius,ticksFontSize:P.value.ticks.fontSize,datapointFontSize:P.value.datapoints.fontSize,axisNameFontSize:P.value.axisNamesFontSize}),vn=u(()=>H.value.width),yn=u(()=>H.value.height),{metrics:bn,ready:xn,settling:U,update:Sn}=Pe({svgRef:z,canMeasure:()=>!M.value.responsive||ln.value,initialMetrics:{top:0},measure:e=>({top:e(Jt.value).height})}),Cn=u(()=>bn.value.top),W=u(()=>{let{top:e,right:t,bottom:n,left:r}=I.value.padding,i=yn.value,a=vn.value;return{chartHeight:Math.max(.001,i),chartWidth:Math.max(.001,a),height:Math.max(.001,i-e-n-Cn.value-H.value.datapointFontSize*2),width:Math.max(.001,a-r-t),top:e+Cn.value+H.value.datapointFontSize,left:r,right:a-t,bottom:i-n-H.value.datapointFontSize}}),wn=u(()=>pe(M.value.customPalette)),G=x({dataLabels:{show:P.value.datapoints.show},showTable:M.value.table.show,showTooltip:F.value.show});tt(M,()=>{G.value={dataLabels:{show:P.value.datapoints.show},showTable:M.value.table.show,showTooltip:F.value.show}},{immediate:!0});let K=x([]);function Tn(){K.value.length?K.value=[]:An.value.forEach(e=>{K.value.push(e.id)}),Wn(`selectLegend`,Nn.value)}function En(e){K.value.includes(e)?K.value=K.value.filter(t=>t!==e):K.value.push(e),Wn(`selectLegend`,Nn.value)}let q=u(()=>tn.value.map((e,t)=>{let n=ne(e.color)||wn.value[t]||a[t]||a[t%a.length];return{...e,series:e.series.map(e=>({...e,id:c(),color:n})),seriesIndex:t,color:n,id:c(),shape:e.shape||`circle`}}));function Dn(e){return q.value.length?q.value.find(t=>t.name===e)||(dn.value&&console.warn(`VueUiParallelCoordinatePlot - Series name not found "${e}"`),null):(dn.value&&console.warn(`VueUiParallelCoordinatePlot - There are no series to show.`),null)}function On(e){let t=Dn(e);t!==null&&K.value.includes(t.id)&&En(t.id)}function kn(e){let t=Dn(e);t!==null&&(K.value.includes(t.id)||En(t.id))}let An=u(()=>q.value.map(e=>({...e,opacity:K.value.includes(e.id)?.5:1,segregate:()=>En(e.id),isSegregated:K.value.includes(e.id),shape:e.shape||`circle`}))),jn=u(()=>({cy:`pcp-div-legend`,backgroundColor:I.value.legend.backgroundColor,color:I.value.legend.color,fontSize:I.value.legend.fontSize,paddingBottom:12,fontWeight:I.value.legend.bold?`bold`:``})),Mn=u(()=>Math.max(...q.value.filter(e=>!K.value.includes(e.id)).map(e=>Math.max(...e.series.flatMap(e=>e.values.length))))),J=u(()=>W.value.width/Mn.value),Nn=u(()=>q.value.filter(e=>!K.value.includes(e.id))),Y=u(()=>{let e=[];for(let t=0;t<Mn.value;t+=1){let n=Math.min(...Nn.value.flatMap(e=>e.series.map(e=>e.values[t]||0)||0)),r=Math.max(...Nn.value.flatMap(e=>e.series.map(e=>e.values[t]||0)||0)),i=r===n?n/4:n,a=r===n?r*2:r,o=ie(i,a,I.value.yAxis.scaleTicks),ee=o.ticks.map((e,n)=>{let r=o.min<0?e+Math.abs(o.min):e-Math.abs(o.min),i=o.min<0?o.max+Math.abs(o.min):o.max-Math.abs(o.min);return{y:W.value.bottom-W.value.height*(r/i),x:W.value.left+J.value*t+J.value/2,value:e}});e.push({scale:o,ticks:ee,name:P.value.axisNames[t]||`Y-${t+1}`})}return e}),X=u(()=>Nn.value.map((e,t)=>({...e,series:e.series.map((n,r)=>({...n,datapoints:n.values.map((i,a)=>{let o=Y.value[a].scale.min<0?(i||0)+Math.abs(Y.value[a].scale.min):(i||0)-Math.abs(Y.value[a].scale.min),ee=Y.value[a].scale.min<0?Y.value[a].scale.max+Math.abs(Y.value[a].scale.min):Y.value[a].scale.max-Math.abs(Y.value[a].scale.min);return{name:n.name,seriesName:e.name,axisIndex:a,datapointIndex:r,seriesIndex:t,value:i||0,x:W.value.left+J.value*a+J.value/2,y:W.value.bottom-W.value.height*(o/ee),comment:n.comments&&n.comments[a]||``}})}))})).map(e=>({...e,series:e.series.map(e=>{let t=s(e.datapoints),n=te(e.datapoints,.12),r=me(I.value.lines.smooth?`M ${n}`:`M ${t}`);return{...e,smoothPath:n,straightPath:t,pathLength:r}})}))),Z=u(()=>X.value.flatMap((e,t)=>e.series.map((n,r)=>({shape:e.shape,serieName:e.name,serie:n,relativeIndex:r,seriesIndex:n.seriesIndex,S:t,key:`${t}_${r}`}))));function Pn({value:e,index:t,datapoint:r}){return oe(P.value.formatters[t]||null,e,n({p:P.value.prefixes[t]||``,v:e,s:P.value.suffixes[t]||``,r:P.value.roundings[t]||0}),{datapoint:r,seriesIndex:t})}let Q=x(null),Fn=x(null),In=x(!1),Ln=x(``);function Rn({shape:e,serie:t,S:n}){M.value.events.datapointLeave&&M.value.events.datapointLeave({datapoint:{...t,shape:e},seriesIndex:n});let r=k.value===null?null:Z.value[k.value];Xt.value===`keyboard`&&r&&r.serie.id===t.id||(Q.value=null,In.value=!1)}function zn(e){if(!z.value||!e?.datapoints?.length)return;let t=e.datapoints[Math.floor(e.datapoints.length/2)];if(!t)return;let n=fe(t.x,t.y,z.value);n&&(Yt.value=n)}function Bn({shape:e,serieName:t,serie:r,relativeIndex:a,seriesIndex:o,S:te,triggerMode:ne=`pointer`}){M.value.events.datapointEnter&&M.value.events.datapointEnter({datapoint:{...r,shape:e},seriesIndex:te}),Xt.value=ne,Fn.value={config:M.value,datapoint:r,serie:r,relativeIndex:a,seriesIndex:o,series:q.value,scales:Y.value},In.value=!0,Q.value=r.id;let s=``,c=F.value.customFormat;i(c)&&le(()=>c({serie:r,seriesIndex:r.seriesIndex,series:q.value,config:M.value,scales:Y.value}))?Ln.value=c({serie:r,seriesIndex:r.seriesIndex,series:q.value,config:M.value,scales:Y.value}):(s+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${F.value.borderColor};padding-bottom:6px;margin-bottom:3px;">${t?t+` - `:``}${r.name}</div>`,Y.value.map(e=>e.name).forEach((e,t)=>{s+=`
2
2
  <div class="vue-ui-tooltip-item" style="text-align:left">
3
3
  <span>${e}: </span>
4
4
  <span>
5
5
  ${oe(P.value.formatters[t]||null,r.datapoints[t].value,n({p:P.value.prefixes[t]||``,v:r.datapoints[t].value,s:P.value.suffixes[t]||``,r:P.value.roundings[t]||``}),{datapoint:r.datapoints[t],seriesIndex:t})}
6
6
  </span>
7
7
  </div>
8
- `,I.value.comments.showInTooltip&&r.datapoints[t].comment&&(s+=`<div class="vue-data-ui-tooltip-comment" style="background:${ee(r.color,12.5)}; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${r.color}">${r.datapoints[t].comment}</div>`)}),Ln.value=`<div>${s}</div>`),ne===`keyboard`&&Ye(()=>{zn(r)})}function Vn(){return q.value}let $=u(()=>{let e=[M.value.table.columnNames.series,M.value.table.columnNames.item].concat(Y.value.map(e=>e.name));return{body:X.value.flatMap((e,t)=>e.series.map(t=>[e.name,t.name].concat(t.values))),head:e,config:{th:{backgroundColor:M.value.table.th.backgroundColor,color:M.value.table.th.color,outline:M.value.table.th.outline},td:{backgroundColor:M.value.table.td.backgroundColor,color:M.value.table.td.color,outline:M.value.table.td.outline},breakpoint:M.value.table.responsiveBreakpoint},colNames:[M.value.table.columnNames.series,M.value.table.columnNames.item].concat(Y.value.map(e=>e.name))}}),Hn=u(()=>X.value.length===0?{head:[],body:[],config:{},columnNames:[]}:{head:$.value.head,body:$.value.body});function Un(e=null){let t=[[I.value.title.text],[I.value.title.subtitle.text],[``]],n=Hn.value.head,i=Hn.value.body,a=t.concat([n]).concat(i),o=r(a);e?e(o):ce({csvContent:o,title:I.value.title.text||`vue-ui-parallel-coordinate-plot`})}let Wn=nt;function Gn({serie:e,shape:t,S:n}){M.value.events.datapointClick&&M.value.events.datapointClick({datapoint:{...e,shape:t},seriesIndex:n}),Wn(`selectDatapoint`,e)}function Kn(){G.value.showTable=!G.value.showTable}function qn(){G.value.dataLabels.show=!G.value.dataLabels.show}function Jn(){G.value.showTooltip=!G.value.showTooltip}let Yn=x(!1);function Xn(){Yn.value=!Yn.value}let Zn=Ce(O,()=>I.value.title.text),Qn=x({start:0,end:1}),$n=u(()=>Y.value.map(e=>e.name));Fe({timeLabelsEls:Jt,timeLabels:$n,slicer:Qn,configRef:M,rotationPath:[`style`,`chart`,`yAxis`,`labels`,`axisNamesRotation`],autoRotatePath:[`style`,`chart`,`yAxis`,`labels`,`axisNamesAutoRotate`,`enable`],isAutoSize:!1,width:vn,height:yn,targetClass:`.vue-ui-parallel-coordinate-plot-x-label`,rotation:P.value.axisNamesAutoRotate.angle});let er=u(()=>De({config:M,style:I,mutableConfig:G,dialog:Pt,accordion:kt,isFullscreen:j,parent:O,maxWidth:800,isCursorPointer:R}));tt(()=>G.value.showTable,e=>Ee(e,M,Kt));function tr(){G.value.showTable=!1,qt.value&&qt.value.setTableIconState(!1)}let nr=u(()=>I.value.backgroundColor),rr=u(()=>I.value.legend),ir=u(()=>I.value.title),{isCallbackImaging:ar,isCallbackSvg:or,generateSvg:sr,onGenerateImage:cr}=Te({svg:z,title:ir,legend:rr,legendItems:An,backgroundColor:nr,getSvgCallback:()=>M.value.userOptions.callbacks.svg,generateImage:gn});async function lr(){Wn(`copyAlt`,{config:M.value,dataset:X.value}),M.value.userOptions.callbacks.altCopy?await Promise.resolve(M.value.userOptions.callbacks.altCopy({config:M.value,dataset:X.value})):console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.")}function ur(e){let t=Z.value.length;return t?(e%t+t)%t:null}function dr(){if(k.value!==null){let e=Z.value[k.value];e&&Rn({shape:e.shape,serie:e.serie,S:e.S})}k.value=null,Xt.value=`pointer`,Q.value=null,In.value=!1}function fr(){k.value=null,Zt.value=!0}function pr(){dr(),Zt.value=!1}function mr(e){if(!z.value||Yn.value||document.activeElement!==z.value||!Z.value.length)return;let t=[`ArrowUp`,`ArrowLeft`].includes(e.key),n=[`ArrowDown`,`ArrowRight`].includes(e.key),r=e.key===`Enter`||e.key===` `,i=e.key===`Escape`;if(!t&&!n&&!r&&!i)return;if(e.preventDefault(),e.stopPropagation(),i){dr();return}if(r){if(k.value===null)return;let e=Z.value[k.value];if(!e)return;Gn({serie:e.serie,shape:e.shape,S:e.S});return}let a=k.value;a=a===null?n?0:Z.value.length-1:ur(a+(n?1:-1));let o=Z.value[a];o&&(k.value=a,Bn({shape:o.shape,serieName:o.serieName,serie:o.serie,relativeIndex:o.relativeIndex,seriesIndex:o.seriesIndex,S:o.S,triggerMode:`keyboard`}))}let hr=u(()=>({head:$.value.head,body:$.value.body.map(e=>[e[0]??``,e[1]??``,...e.slice(2)]),caption:M.value.a11y.translations.tableCaption,notice:M.value.a11y.translations.tableAvailable}));return xe({getData:Vn,getImage:Zn,generateCsv:Un,generatePdf:hn,generateImage:gn,generateSvg:sr,hideSeries:kn,showSeries:On,toggleTable:Kn,toggleLabels:qn,toggleTooltip:Jn,toggleAnnotator:Xn,toggleFullscreen:Qt,copyAlt:lr}),tt(()=>[H.value,P.value,Jt.value,D.dataset,K.value,ln.value,M.value.style.fontFamily],Sn,{flush:`post`,deep:!0}),(e,t)=>(b(),p(`div`,{ref_key:`pcpChart`,ref:O,class:_(`vue-data-ui-component vue-ui-pcp ${j.value?`vue-data-ui-wrapper-fullscreen`:``} ${M.value.useCssAnimation?``:`vue-ui-dna`}`),style:y(`font-family:${M.value.style.fontFamily};width:100%; text-align:center;background:${I.value.backgroundColor};${M.value.responsive?`height:100%`:``}`),id:`pcp_${A.value}`,onMouseenter:t[2]||=()=>T(an)(!0),onMouseleave:t[3]||=()=>T(an)(!1)},[m(`div`,{id:`chart-instructions-${A.value}`,class:`sr-only`},[m(`p`,null,w(M.value.a11y.translations.keyboardNavigation),1)],8,it),hr.value.body.length?(b(),d(ze,{key:0,uid:A.value,head:hr.value.head,body:hr.value.body,caption:hr.value.caption,notice:hr.value.notice},null,8,[`uid`,`head`,`body`,`caption`,`notice`])):f(``,!0),N.value.buttons.annotator?(b(),d(T(jt),{key:1,svgRef:T(z),backgroundColor:I.value.backgroundColor,color:I.value.color,active:Yn.value,isCursorPointer:R.value,palette:N.value.annotatorPalette,onClose:Xn},Ge({_:2},[S(T(ke),t=>({name:t,fn:E(n=>[C(e.$slots,t,v(g(T(Oe)(t,n))),void 0,!0)])}))]),1032,[`svgRef`,`backgroundColor`,`color`,`active`,`isCursorPointer`,`palette`])):f(``,!0),_n.value?(b(),p(`div`,{key:2,ref_key:`noTitle`,ref:Vt,class:`vue-data-ui-no-title-space`,style:`height:36px; width: 100%;background:transparent`},null,512)):f(``,!0),I.value.title.text?(b(),p(`div`,{key:3,ref_key:`chartTitle`,ref:Rt,style:`width:100%;background:transparent;padding-bottom:24px`},[(b(),d(we,{key:`title_${Ht.value}`,config:{title:{cy:`pcp-div-title`,...I.value.title},subtitle:{cy:`pcp-div-subtitle`,...I.value.title.subtitle}}},null,8,[`config`]))],512)):f(``,!0),m(`div`,{id:`legend-top-${A.value}`},null,8,at),N.value.show&&It.value&&(T(on)||T(rn))?(b(),d(T(Mt),{ref_key:`userOptionsRef`,ref:qt,key:`user_options_${Lt.value}`,backgroundColor:I.value.backgroundColor,color:I.value.color,isPrinting:T(pn),isImaging:T(mn),uid:A.value,hasTooltip:N.value.buttons.tooltip&&F.value.show,hasPdf:N.value.buttons.pdf,hasXls:N.value.buttons.csv,hasImg:N.value.buttons.img,hasSvg:N.value.buttons.svg,hasTable:N.value.buttons.table,hasLabel:N.value.buttons.labels,hasFullscreen:N.value.buttons.fullscreen,hasAltCopy:N.value.buttons.altCopy,isFullscreen:j.value,isTooltip:G.value.showTooltip,titles:{...N.value.buttonTitles},chartElement:O.value,position:N.value.position,hasAnnotator:N.value.buttons.annotator,isAnnotation:Yn.value,callbacks:N.value.callbacks,printScale:N.value.print.scale,tableDialog:M.value.table.useDialog,isCursorPointer:R.value,onToggleFullscreen:Qt,onGeneratePdf:T(hn),onGenerateCsv:Un,onGenerateImage:T(cr),onGenerateSvg:T(sr),onToggleTable:Kn,onToggleLabels:qn,onToggleTooltip:Jn,onToggleAnnotator:Xn,onCopyAlt:lr,style:y({visibility:T(on)?T(rn)?`visible`:`hidden`:`visible`})},Ge({_:2},[S(T(Ae)(e.$slots,`menuIcon optionTooltip optionPdf optionCsv optionImg optionSvg optionTable optionLabels optionFullscreen optionAnnotator optionAltCopy custom-menu-before custom-menu-after`),t=>({name:t,fn:E(n=>[C(e.$slots,t,v(g(T(je)(t,n))),void 0,!0)])}))]),1032,/* @__PURE__ */ `backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style`.split(`.`))):f(``,!0),m(`div`,ot,[(b(),p(`svg`,{ref_key:`svgRef`,ref:z,xmlns:T(de),"aria-describedby":`chart-instructions-${A.value}`,class:_({"vue-data-ui-fullscreen--on":j.value,"vue-data-ui-fulscreen--off":!j.value,"vue-data-ui-no-transition":!T(L)||T(U)}),viewBox:`0 0 ${W.value.chartWidth<=0?10:W.value.chartWidth} ${W.value.chartHeight<=0?10:W.value.chartHeight}`,style:y(`max-width:100%; overflow: visible; background:transparent;color:${I.value.color};visibility:${T(xn)?`visible`:`hidden`}`),tabindex:`0`,onFocus:fr,onBlur:pr,onKeydown:mr},[qe(T(Nt)),C(e.$slots,`svg-underlayer`,{svg:{...W.value,isPrintingImg:T(pn)||T(mn)||T(ar),isPrintingSvg:T(or)}},void 0,!0),e.$slots[`chart-background`]?(b(),p(`foreignObject`,{key:0,x:W.value.left,y:W.value.top,width:W.value.width,height:W.value.height,style:{pointerEvents:`none`}},[C(e.$slots,`chart-background`,{},void 0,!0)],8,ct)):f(``,!0),(b(!0),p(l,null,S(Y.value,(e,t)=>(b(),p(`g`,lt,[m(`line`,{x1:W.value.left+J.value*t+J.value/2,x2:W.value.left+J.value*t+J.value/2,y1:W.value.top,y2:W.value.bottom,stroke:I.value.yAxis.stroke,"stroke-width":I.value.yAxis.strokeWidth},null,8,ut),P.value.ticks.show?(b(),p(l,{key:0},[(b(!0),p(l,null,S(e.ticks,(t,n)=>(b(),p(`path`,{class:_({"vue-data-ui-transition":T(L)&&!T(U)}),key:`tick_${e.name}_${n}`,d:`M${t.x},${t.y} ${t.x-10},${t.y}`,stroke:I.value.yAxis.stroke,"stroke-width":I.value.yAxis.strokeWidth,style:y(`opacity:${Q.value&&!G.value.showTooltip?.2:1}`)},null,14,dt))),128)),T(en)?f(``,!0):(b(),p(`g`,ft,[(b(!0),p(l,null,S(e.ticks,(n,r)=>(b(),p(`text`,{key:`tl_${e.name}_${r}`,class:_({"vue-data-ui-transition":T(L)&&!T(U)}),transform:`translate(${n.x-12+P.value.ticks.offsetX}, ${n.y+P.value.ticks.offsetY+H.value.ticksFontSize/3})`,fill:P.value.ticks.color,"text-anchor":`end`,"font-size":H.value.ticksFontSize,"font-weight":P.value.ticks.bold?`bold`:`normal`,style:y(`opacity:${Q.value&&!G.value.showTooltip?.2:1}`)},w(Pn({value:n.value,index:t,datapoint:n})),15,pt))),128))]))],64)):f(``,!0)]))),256)),P.value.showAxisNames?(b(),p(`g`,{key:1,ref_key:`xAxisLabels`,ref:Jt},[(b(!0),p(l,null,S(Y.value,(e,t)=>(b(),p(l,null,[String(e.name).includes(`
9
- `)?(b(),p(`text`,{key:1,class:`vue-ui-parallel-coordinate-plot-x-label`,fill:P.value.axisNamesColor,"font-size":H.value.axisNameFontSize,"font-weight":P.value.axisNamesBold?`bold`:``,"text-anchor":P.value.axisNamesRotation===0?`middle`:P.value.axisNamesRotation<0?`start`:`end`,transform:`translate(${W.value.left+J.value*t+J.value/2}, ${Cn.value-H.value.axisNameFontSize}), rotate(${P.value.axisNamesRotation})`,innerHTML:T(o)({content:String(e.name),fontSize:H.value.axisNameFontSize,fill:P.value.axisNamesColor,x:0,y:0})},null,8,ht)):(b(),p(`text`,{key:0,class:`vue-ui-parallel-coordinate-plot-x-label`,fill:P.value.axisNamesColor,"font-size":H.value.axisNameFontSize,"font-weight":P.value.axisNamesBold?`bold`:``,"text-anchor":P.value.axisNamesRotation===0?`middle`:P.value.axisNamesRotation<0?`start`:`end`,transform:`translate(${W.value.left+J.value*t+J.value/2}, ${Cn.value-H.value.axisNameFontSize}), rotate(${P.value.axisNamesRotation})`},w(e.name),9,mt))],64))),256))],512)):f(``,!0),(b(!0),p(l,null,S(X.value,(t,n)=>(b(),p(`g`,null,[(b(!0),p(l,null,S(t.series,(r,i)=>(b(),p(`g`,null,[I.value.plots.show?(b(),p(`g`,gt,[(b(!0),p(l,null,S(r.datapoints,(e,a)=>(b(),d(Ie,{plot:{x:e.x,y:e.y},color:t.color,shape:t.shape,radius:t.shape===`triangle`?H.value.plotSize*1.2:H.value.plotSize,stroke:I.value.backgroundColor,strokeWidth:.5,onMouseenter:e=>Bn({shape:t.shape,serieName:t.name,serie:r,relativeIndex:i,seriesIndex:r.seriesIndex,S:n,triggerMode:`pointer`}),onMouseleave:e=>Rn({serie:r,shape:t.shape,S:n}),style:y(`opacity:${Q.value?Q.value===r.id?I.value.plots.opacity:.2:I.value.plots.opacity}`),onClick:()=>Gn({serie:r,shape:t.shape,S:n})},null,8,[`plot`,`color`,`shape`,`radius`,`stroke`,`onMouseenter`,`onMouseleave`,`style`,`onClick`]))),256)),G.value.showTooltip?f(``,!0):(b(),p(l,{key:0},[Q.value&&Q.value===r.id&&r.datapoints.length?(b(),p(`text`,{key:0,x:r.datapoints[0].x-H.value.ticksFontSize,y:r.datapoints[0].y+H.value.ticksFontSize/3,"text-anchor":`end`,"font-size":H.value.ticksFontSize,fill:t.color,"font-weight":`bold`},w(r.name),9,_t)):f(``,!0)],64)),I.value.comments.show?(b(!0),p(l,{key:1},S(r.datapoints,n=>(b(),p(`g`,null,[n.comment?(b(),p(`foreignObject`,{key:0,style:{overflow:`visible`},height:`12`,width:I.value.comments.width,x:n.x-I.value.comments.width/2+I.value.comments.offsetX,y:n.y+I.value.comments.offsetY+6},[m(`div`,yt,[C(e.$slots,`plot-comment`,{plot:{...n,color:t.color}},void 0,!0)])],8,vt)):f(``,!0)]))),256)):f(``,!0)])):f(``,!0),m(`path`,{d:`M${I.value.lines.smooth?r.smoothPath:r.straightPath}`,stroke:t.color,"stroke-width":I.value.lines.strokeWidth,fill:`none`,class:_({"vue-ui-pcp-animated vue-data-ui-line-animated":M.value.useCssAnimation,"vue-data-ui-transition":T(L)&&!T(U)}),onMouseenter:e=>Bn({shape:t.shape,serieName:t.name,serie:r,relativeIndex:i,seriesIndex:r.seriesIndex,S:n,triggerMode:`pointer`}),onMouseleave:e=>Rn({serie:r,shape:t.shape,S:n}),onClick:()=>Gn({serie:r,shape:t.shape,S:n}),style:y(`opacity:${Q.value?Q.value===r.id?I.value.lines.opacity:.2:I.value.lines.opacity}; stroke-dasharray:${r.pathLength}; stroke-dashoffset: ${M.value.useCssAnimation?r.pathLength:0}`)},null,46,bt),G.value.showTooltip?(b(),p(`path`,{key:1,d:`M${I.value.lines.smooth?r.smoothPath:r.straightPath}`,stroke:`transparent`,"stroke-width":12,fill:`none`,class:_({"vue-ui-pcp-animated vue-data-ui-line-animated":M.value.useCssAnimation,"vue-data-ui-transition":T(L)&&!T(U)}),onMouseenter:e=>Bn({shape:t.shape,serieName:t.name,serie:r,relativeIndex:i,seriesIndex:r.seriesIndex,S:n,triggerMode:`pointer`}),onMouseleave:e=>Rn({serie:r,shape:t.shape,S:n}),onClick:()=>Gn({serie:r,shape:t.shape,S:n}),style:{opacity:`0`}},null,42,xt)):f(``,!0)]))),256))]))),256)),(b(!0),p(l,null,S(X.value,(e,t)=>(b(),p(`g`,null,[(b(!0),p(l,null,S(e.series,(n,r)=>(b(),p(`g`,null,[!T(en)&&(G.value.dataLabels.show||Q.value&&Q.value===n.id)?(b(!0),p(l,{key:0},S(n.datapoints,(i,a)=>(b(),p(`text`,{key:`pl_${n.id}_${a}`,transform:`translate(${i.x+12+P.value.datapoints.offsetX}, ${i.y+P.value.datapoints.offsetY+H.value.datapointFontSize/3})`,fill:P.value.datapoints.useSerieColor?e.color:P.value.datapoints.color,"text-anchor":`start`,"font-weight":P.value.datapoints.bold?`bold`:`normal`,class:_({"vue-ui-pcp-plot-label":!0,"vue-data-ui-transition":T(L)&&!T(U)}),"font-size":H.value.datapointFontSize,stroke:I.value.backgroundColor,"stroke-width":3,"stroke-linecap":`round`,"stroke-linejoin":`round`,"paint-order":`stroke fill`,onMouseenter:i=>Bn({shape:e.shape,serieName:e.name,serie:n,relativeIndex:r,seriesIndex:n.seriesIndex,S:t,triggerMode:`pointer`}),onMouseleave:r=>Rn({serie:n,shape:e.shape,S:t}),onClick:()=>Gn({serie:n,shape:e.shape,S:t}),style:y(`opacity:${Q.value?Q.value===n.id?1:.2:1}`)},w(Pn({value:i.value,index:a,datapoint:i})),47,St))),128)):f(``,!0)]))),256))]))),256)),C(e.$slots,`svg`,{svg:{...W.value,isPrintingImg:T(pn)||T(mn)||T(ar),isPrintingSvg:T(or)}},void 0,!0)],46,st)),e.$slots.hint?(b(),p(`div`,Ct,[C(e.$slots,`hint`,v(g({hint:M.value.a11y.translations.keyboardNavigation,isVisible:Zt.value})),void 0,!0)])):f(``,!0)]),e.$slots.watermark?(b(),p(`div`,wt,[C(e.$slots,`watermark`,v(g({isPrinting:T(pn)||T(mn)||T(ar)||T(or)})),void 0,!0)])):f(``,!0),m(`div`,{id:`legend-bottom-${A.value}`},null,8,Tt),Gt.value&&(I.value.legend.show||e.$slots.legend)?(b(),d(We,{key:6,to:I.value.legend.position===`top`?`#legend-top-${A.value}`:`#legend-bottom-${A.value}`},[m(`div`,{ref_key:`chartLegend`,ref:zt},[C(e.$slots,`legend`,{legend:An.value},()=>[I.value.legend.show&&It.value?(b(),d(He,{key:`legend_${Ut.value}`,legendSet:An.value,config:jn.value,isCursorPointer:R.value,onClickMarker:t[0]||=({legend:e})=>{En(e.id)}},{item:E(({legend:e,index:t})=>[m(`div`,{onClick:t=>e.segregate(),style:y(`opacity:${K.value.includes(e.id)?.5:1}`)},w(e.name),13,Et)]),legendToggle:E(()=>[An.value.length>2&&I.value.legend.selectAllToggle.show&&!T(en)?(b(),d(Re,{key:0,backgroundColor:I.value.legend.selectAllToggle.backgroundColor,color:I.value.legend.selectAllToggle.color,fontSize:I.value.legend.fontSize,checked:K.value.length>0,isCursorPointer:R.value,onToggle:Tn},null,8,[`backgroundColor`,`color`,`fontSize`,`checked`,`isCursorPointer`])):f(``,!0)]),_:1},8,[`legendSet`,`config`,`isCursorPointer`])):f(``,!0)],!0)],512)],8,[`to`])):f(``,!0),e.$slots.source?(b(),p(`div`,{key:7,ref_key:`source`,ref:Bt,dir:`auto`},[C(e.$slots,`source`,{},void 0,!0)],512)):f(``,!0),qe(T(Dt),{teleportTo:F.value.teleportTo,show:G.value.showTooltip&&In.value,backgroundColor:F.value.backgroundColor,color:F.value.color,fontSize:F.value.fontSize,borderRadius:F.value.borderRadius,borderColor:F.value.borderColor,borderWidth:F.value.borderWidth,backgroundOpacity:F.value.backgroundOpacity,position:F.value.position,offsetX:F.value.offsetX,offsetY:F.value.offsetY,parent:O.value,content:Ln.value,isFullscreen:j.value,isCustom:T(i)(F.value.customFormat),smooth:F.value.smooth,backdropFilter:F.value.backdropFilter,smoothForce:F.value.smoothForce,smoothSnapThreshold:F.value.smoothSnapThreshold,isA11yMode:Xt.value===`keyboard`,a11yPosition:Yt.value},{"tooltip-before":E(()=>[C(e.$slots,`tooltip-before`,v(g({...Fn.value})),void 0,!0)]),tooltip:E(()=>[C(e.$slots,`tooltip`,v(g({...Fn.value})),void 0,!0)]),"tooltip-after":E(()=>[C(e.$slots,`tooltip-after`,v(g({...Fn.value})),void 0,!0)]),_:3},8,[`teleportTo`,`show`,`backgroundColor`,`color`,`fontSize`,`borderRadius`,`borderColor`,`borderWidth`,`backgroundOpacity`,`position`,`offsetX`,`offsetY`,`parent`,`content`,`isFullscreen`,`isCustom`,`smooth`,`backdropFilter`,`smoothForce`,`smoothSnapThreshold`,`isA11yMode`,`a11yPosition`]),It.value&&N.value.buttons.table?(b(),d(Qe(er.value.component),Je({key:8},er.value.props,{ref_key:`tableUnit`,ref:Kt,onClose:tr}),Ge({content:E(()=>[(b(),d(T(At),{key:`table_${Wt.value}`,colNames:$.value.colNames,head:$.value.head,body:$.value.body,config:$.value.config,title:M.value.table.useDialog?``:er.value.title,withCloseButton:!M.value.table.useDialog,isCursorPointer:R.value,onClose:tr},{th:E(({th:e})=>[m(`div`,null,w(e),1)]),td:E(({td:e})=>[Ke(w(e),1)]),_:1},8,[`colNames`,`head`,`body`,`config`,`title`,`withCloseButton`,`isCursorPointer`]))]),_:2},[M.value.table.useDialog?{name:`title`,fn:E(()=>[Ke(w(er.value.title),1)]),key:`0`}:void 0,M.value.table.useDialog?{name:`actions`,fn:E(()=>[m(`button`,{tabindex:`0`,class:`vue-ui-user-options-button`,onClick:t[1]||=e=>Un(N.value.callbacks.csv),style:y({cursor:R.value?`pointer`:`default`})},[qe(T(Ot),{name:`fileCsv`,stroke:er.value.props.color},null,8,[`stroke`])],4)]),key:`1`}:void 0]),1040)):f(``,!0),C(e.$slots,`skeleton`,{},()=>[T(en)?(b(),d(ve,{key:0})):f(``,!0)],!0)],46,rt))}},[[`__scopeId`,`data-v-181b1f05`]]);export{nt as n,Dt as t};
8
+ `,I.value.comments.showInTooltip&&r.datapoints[t].comment&&(s+=`<div class="vue-data-ui-tooltip-comment" style="background:${ee(r.color,12.5)}; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${r.color}">${r.datapoints[t].comment}</div>`)}),Ln.value=`<div>${s}</div>`),ne===`keyboard`&&Ye(()=>{zn(r)})}function Vn(){return q.value}let $=u(()=>{let e=[M.value.table.columnNames.series,M.value.table.columnNames.item].concat(Y.value.map(e=>e.name));return{body:X.value.flatMap((e,t)=>e.series.map(t=>[e.name,t.name].concat(t.values))),head:e,config:{th:{backgroundColor:M.value.table.th.backgroundColor,color:M.value.table.th.color,outline:M.value.table.th.outline},td:{backgroundColor:M.value.table.td.backgroundColor,color:M.value.table.td.color,outline:M.value.table.td.outline},breakpoint:M.value.table.responsiveBreakpoint},colNames:[M.value.table.columnNames.series,M.value.table.columnNames.item].concat(Y.value.map(e=>e.name))}}),Hn=u(()=>X.value.length===0?{head:[],body:[],config:{},columnNames:[]}:{head:$.value.head,body:$.value.body});function Un(e=null){let t=[[I.value.title.text],[I.value.title.subtitle.text],[``]],n=Hn.value.head,i=Hn.value.body,a=t.concat([n]).concat(i),o=r(a);e?e(o):ce({csvContent:o,title:I.value.title.text||`vue-ui-parallel-coordinate-plot`})}let Wn=nt;function Gn({serie:e,shape:t,S:n}){M.value.events.datapointClick&&M.value.events.datapointClick({datapoint:{...e,shape:t},seriesIndex:n}),Wn(`selectDatapoint`,e)}function Kn(){G.value.showTable=!G.value.showTable}function qn(){G.value.dataLabels.show=!G.value.dataLabels.show}function Jn(){G.value.showTooltip=!G.value.showTooltip}let Yn=x(!1);function Xn(){Yn.value=!Yn.value}let Zn=Ce(O,()=>I.value.title.text),Qn=x({start:0,end:1}),$n=u(()=>Y.value.map(e=>e.name));Fe({timeLabelsEls:Jt,timeLabels:$n,slicer:Qn,configRef:M,rotationPath:[`style`,`chart`,`yAxis`,`labels`,`axisNamesRotation`],autoRotatePath:[`style`,`chart`,`yAxis`,`labels`,`axisNamesAutoRotate`,`enable`],isAutoSize:!1,width:vn,height:yn,targetClass:`.vue-ui-parallel-coordinate-plot-x-label`,rotation:P.value.axisNamesAutoRotate.angle});let er=u(()=>De({config:M,style:I,mutableConfig:G,dialog:Pt,accordion:kt,isFullscreen:j,parent:O,maxWidth:800,isCursorPointer:R}));tt(()=>G.value.showTable,e=>Ee(e,M,Kt));function tr(){G.value.showTable=!1,qt.value&&qt.value.setTableIconState(!1)}let nr=u(()=>I.value.backgroundColor),rr=u(()=>I.value.legend),ir=u(()=>I.value.title),{isCallbackImaging:ar,isCallbackSvg:or,generateSvg:sr,onGenerateImage:cr}=Te({svg:z,title:ir,legend:rr,legendItems:An,backgroundColor:nr,getSvgCallback:()=>M.value.userOptions.callbacks.svg,generateImage:gn});async function lr(){Wn(`copyAlt`,{config:M.value,dataset:X.value}),M.value.userOptions.callbacks.altCopy?await Promise.resolve(M.value.userOptions.callbacks.altCopy({config:M.value,dataset:X.value})):console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.")}function ur(e){let t=Z.value.length;return t?(e%t+t)%t:null}function dr(){if(k.value!==null){let e=Z.value[k.value];e&&Rn({shape:e.shape,serie:e.serie,S:e.S})}k.value=null,Xt.value=`pointer`,Q.value=null,In.value=!1}function fr(){k.value=null,Zt.value=!0}function pr(){dr(),Zt.value=!1}function mr(e){if(!z.value||Yn.value||document.activeElement!==z.value||!Z.value.length)return;let t=[`ArrowUp`,`ArrowLeft`].includes(e.key),n=[`ArrowDown`,`ArrowRight`].includes(e.key),r=e.key===`Enter`||e.key===` `,i=e.key===`Escape`;if(!t&&!n&&!r&&!i)return;if(e.preventDefault(),e.stopPropagation(),i){dr();return}if(r){if(k.value===null)return;let e=Z.value[k.value];if(!e)return;Gn({serie:e.serie,shape:e.shape,S:e.S});return}let a=k.value;a=a===null?n?0:Z.value.length-1:ur(a+(n?1:-1));let o=Z.value[a];o&&(k.value=a,Bn({shape:o.shape,serieName:o.serieName,serie:o.serie,relativeIndex:o.relativeIndex,seriesIndex:o.seriesIndex,S:o.S,triggerMode:`keyboard`}))}let hr=u(()=>({head:$.value.head,body:$.value.body.map(e=>[e[0]??``,e[1]??``,...e.slice(2)]),caption:M.value.a11y.translations.tableCaption,notice:M.value.a11y.translations.tableAvailable}));return xe({getData:Vn,getImage:Zn,generateCsv:Un,generatePdf:hn,generateImage:gn,generateSvg:sr,hideSeries:kn,showSeries:On,toggleTable:Kn,toggleLabels:qn,toggleTooltip:Jn,toggleAnnotator:Xn,toggleFullscreen:Qt,copyAlt:lr}),tt(()=>[H.value,P.value,Jt.value,D.dataset,K.value,ln.value,M.value.style.fontFamily],Sn,{flush:`post`,deep:!0}),(e,t)=>(b(),p(`div`,{ref_key:`pcpChart`,ref:O,class:_(`vue-data-ui-component vue-ui-pcp ${j.value?`vue-data-ui-wrapper-fullscreen`:``} ${M.value.useCssAnimation?``:`vue-ui-dna`}`),style:y(`font-family:${M.value.style.fontFamily};width:100%; text-align:center;background:${I.value.backgroundColor};${M.value.responsive?`height:100%`:``}`),id:`pcp_${A.value}`,onMouseenter:t[2]||=()=>T(an)(!0),onMouseleave:t[3]||=()=>T(an)(!1)},[m(`div`,{id:`chart-instructions-${A.value}`,class:`sr-only`},[m(`p`,null,w(M.value.a11y.translations.keyboardNavigation),1)],8,it),hr.value.body.length?(b(),d(ze,{key:0,uid:A.value,head:hr.value.head,body:hr.value.body,caption:hr.value.caption,notice:hr.value.notice},null,8,[`uid`,`head`,`body`,`caption`,`notice`])):f(``,!0),N.value.buttons.annotator?(b(),d(T(jt),{key:1,showGroupActions:N.value.annotator?.showGroupActions??!0,svgRef:T(z),backgroundColor:I.value.backgroundColor,color:I.value.color,active:Yn.value,isCursorPointer:R.value,palette:N.value.annotatorPalette,onClose:Xn},Ge({_:2},[S(T(ke),t=>({name:t,fn:E(n=>[C(e.$slots,t,v(g(T(Oe)(t,n))),void 0,!0)])}))]),1032,[`showGroupActions`,`svgRef`,`backgroundColor`,`color`,`active`,`isCursorPointer`,`palette`])):f(``,!0),_n.value?(b(),p(`div`,{key:2,ref_key:`noTitle`,ref:Vt,class:`vue-data-ui-no-title-space`,style:`height:36px; width: 100%;background:transparent`},null,512)):f(``,!0),I.value.title.text?(b(),p(`div`,{key:3,ref_key:`chartTitle`,ref:Rt,style:`width:100%;background:transparent;padding-bottom:24px`},[(b(),d(we,{key:`title_${Ht.value}`,config:{title:{cy:`pcp-div-title`,...I.value.title},subtitle:{cy:`pcp-div-subtitle`,...I.value.title.subtitle}}},null,8,[`config`]))],512)):f(``,!0),m(`div`,{id:`legend-top-${A.value}`},null,8,at),N.value.show&&It.value&&(T(on)||T(rn))?(b(),d(T(Mt),{ref_key:`userOptionsRef`,ref:qt,key:`user_options_${Lt.value}`,backgroundColor:I.value.backgroundColor,color:I.value.color,isPrinting:T(pn),isImaging:T(mn),uid:A.value,hasTooltip:N.value.buttons.tooltip&&F.value.show,hasPdf:N.value.buttons.pdf,hasXls:N.value.buttons.csv,hasImg:N.value.buttons.img,hasSvg:N.value.buttons.svg,hasTable:N.value.buttons.table,hasLabel:N.value.buttons.labels,hasFullscreen:N.value.buttons.fullscreen,hasAltCopy:N.value.buttons.altCopy,isFullscreen:j.value,isTooltip:G.value.showTooltip,titles:{...N.value.buttonTitles},chartElement:O.value,position:N.value.position,hasAnnotator:N.value.buttons.annotator,isAnnotation:Yn.value,callbacks:N.value.callbacks,printScale:N.value.print.scale,tableDialog:M.value.table.useDialog,isCursorPointer:R.value,onToggleFullscreen:Qt,onGeneratePdf:T(hn),onGenerateCsv:Un,onGenerateImage:T(cr),onGenerateSvg:T(sr),onToggleTable:Kn,onToggleLabels:qn,onToggleTooltip:Jn,onToggleAnnotator:Xn,onCopyAlt:lr,style:y({visibility:T(on)?T(rn)?`visible`:`hidden`:`visible`})},Ge({_:2},[S(T(Ae)(e.$slots,`menuIcon optionTooltip optionPdf optionCsv optionImg optionSvg optionTable optionLabels optionFullscreen optionAnnotator optionAltCopy custom-menu-before custom-menu-after`),t=>({name:t,fn:E(n=>[C(e.$slots,t,v(g(T(je)(t,n))),void 0,!0)])}))]),1032,/* @__PURE__ */ `backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style`.split(`.`))):f(``,!0),m(`div`,ot,[(b(),p(`svg`,{ref_key:`svgRef`,ref:z,xmlns:T(de),"aria-describedby":`chart-instructions-${A.value}`,class:_({"vue-data-ui-fullscreen--on":j.value,"vue-data-ui-fulscreen--off":!j.value,"vue-data-ui-no-transition":!T(L)||T(U)}),viewBox:`0 0 ${W.value.chartWidth<=0?10:W.value.chartWidth} ${W.value.chartHeight<=0?10:W.value.chartHeight}`,style:y(`max-width:100%; overflow: visible; background:transparent;color:${I.value.color};visibility:${T(xn)?`visible`:`hidden`}`),tabindex:`0`,onFocus:fr,onBlur:pr,onKeydown:mr},[qe(T(Nt)),C(e.$slots,`svg-underlayer`,{svg:{...W.value,isPrintingImg:T(pn)||T(mn)||T(ar),isPrintingSvg:T(or)}},void 0,!0),e.$slots[`chart-background`]?(b(),p(`foreignObject`,{key:0,x:W.value.left,y:W.value.top,width:W.value.width,height:W.value.height,style:{pointerEvents:`none`}},[C(e.$slots,`chart-background`,{},void 0,!0)],8,ct)):f(``,!0),(b(!0),p(l,null,S(Y.value,(e,t)=>(b(),p(`g`,lt,[m(`line`,{x1:W.value.left+J.value*t+J.value/2,x2:W.value.left+J.value*t+J.value/2,y1:W.value.top,y2:W.value.bottom,stroke:I.value.yAxis.stroke,"stroke-width":I.value.yAxis.strokeWidth},null,8,ut),P.value.ticks.show?(b(),p(l,{key:0},[(b(!0),p(l,null,S(e.ticks,(t,n)=>(b(),p(`path`,{class:_({"vue-data-ui-transition":T(L)&&!T(U)}),key:`tick_${e.name}_${n}`,d:`M${t.x},${t.y} ${t.x-10},${t.y}`,stroke:I.value.yAxis.stroke,"stroke-width":I.value.yAxis.strokeWidth,style:y(`opacity:${Q.value&&!G.value.showTooltip?.2:1}`)},null,14,dt))),128)),T(en)?f(``,!0):(b(),p(`g`,ft,[(b(!0),p(l,null,S(e.ticks,(n,r)=>(b(),p(`text`,{key:`tl_${e.name}_${r}`,class:_({"vue-data-ui-transition":T(L)&&!T(U)}),transform:`translate(${n.x-12+P.value.ticks.offsetX}, ${n.y+P.value.ticks.offsetY+H.value.ticksFontSize/3})`,fill:P.value.ticks.color,"text-anchor":`end`,"font-size":H.value.ticksFontSize,"font-weight":P.value.ticks.bold?`bold`:`normal`,style:y(`opacity:${Q.value&&!G.value.showTooltip?.2:1}`)},w(Pn({value:n.value,index:t,datapoint:n})),15,pt))),128))]))],64)):f(``,!0)]))),256)),P.value.showAxisNames?(b(),p(`g`,{key:1,ref_key:`xAxisLabels`,ref:Jt},[(b(!0),p(l,null,S(Y.value,(e,t)=>(b(),p(l,null,[String(e.name).includes(`
9
+ `)?(b(),p(`text`,{key:1,class:`vue-ui-parallel-coordinate-plot-x-label`,fill:P.value.axisNamesColor,"font-size":H.value.axisNameFontSize,"font-weight":P.value.axisNamesBold?`bold`:``,"text-anchor":P.value.axisNamesRotation===0?`middle`:P.value.axisNamesRotation<0?`start`:`end`,transform:`translate(${W.value.left+J.value*t+J.value/2}, ${Cn.value-H.value.axisNameFontSize}), rotate(${P.value.axisNamesRotation})`,innerHTML:T(o)({content:String(e.name),fontSize:H.value.axisNameFontSize,fill:P.value.axisNamesColor,x:0,y:0})},null,8,ht)):(b(),p(`text`,{key:0,class:`vue-ui-parallel-coordinate-plot-x-label`,fill:P.value.axisNamesColor,"font-size":H.value.axisNameFontSize,"font-weight":P.value.axisNamesBold?`bold`:``,"text-anchor":P.value.axisNamesRotation===0?`middle`:P.value.axisNamesRotation<0?`start`:`end`,transform:`translate(${W.value.left+J.value*t+J.value/2}, ${Cn.value-H.value.axisNameFontSize}), rotate(${P.value.axisNamesRotation})`},w(e.name),9,mt))],64))),256))],512)):f(``,!0),(b(!0),p(l,null,S(X.value,(t,n)=>(b(),p(`g`,null,[(b(!0),p(l,null,S(t.series,(r,i)=>(b(),p(`g`,null,[I.value.plots.show?(b(),p(`g`,gt,[(b(!0),p(l,null,S(r.datapoints,(e,a)=>(b(),d(Ie,{plot:{x:e.x,y:e.y},color:t.color,shape:t.shape,radius:t.shape===`triangle`?H.value.plotSize*1.2:H.value.plotSize,stroke:I.value.backgroundColor,strokeWidth:.5,onMouseenter:e=>Bn({shape:t.shape,serieName:t.name,serie:r,relativeIndex:i,seriesIndex:r.seriesIndex,S:n,triggerMode:`pointer`}),onMouseleave:e=>Rn({serie:r,shape:t.shape,S:n}),style:y(`opacity:${Q.value?Q.value===r.id?I.value.plots.opacity:.2:I.value.plots.opacity}`),onClick:()=>Gn({serie:r,shape:t.shape,S:n})},null,8,[`plot`,`color`,`shape`,`radius`,`stroke`,`onMouseenter`,`onMouseleave`,`style`,`onClick`]))),256)),G.value.showTooltip?f(``,!0):(b(),p(l,{key:0},[Q.value&&Q.value===r.id&&r.datapoints.length?(b(),p(`text`,{key:0,x:r.datapoints[0].x-H.value.ticksFontSize,y:r.datapoints[0].y+H.value.ticksFontSize/3,"text-anchor":`end`,"font-size":H.value.ticksFontSize,fill:t.color,"font-weight":`bold`},w(r.name),9,_t)):f(``,!0)],64)),I.value.comments.show?(b(!0),p(l,{key:1},S(r.datapoints,n=>(b(),p(`g`,null,[n.comment?(b(),p(`foreignObject`,{key:0,style:{overflow:`visible`},height:`12`,width:I.value.comments.width,x:n.x-I.value.comments.width/2+I.value.comments.offsetX,y:n.y+I.value.comments.offsetY+6},[m(`div`,yt,[C(e.$slots,`plot-comment`,{plot:{...n,color:t.color}},void 0,!0)])],8,vt)):f(``,!0)]))),256)):f(``,!0)])):f(``,!0),m(`path`,{d:`M${I.value.lines.smooth?r.smoothPath:r.straightPath}`,stroke:t.color,"stroke-width":I.value.lines.strokeWidth,fill:`none`,class:_({"vue-ui-pcp-animated vue-data-ui-line-animated":M.value.useCssAnimation,"vue-data-ui-transition":T(L)&&!T(U)}),onMouseenter:e=>Bn({shape:t.shape,serieName:t.name,serie:r,relativeIndex:i,seriesIndex:r.seriesIndex,S:n,triggerMode:`pointer`}),onMouseleave:e=>Rn({serie:r,shape:t.shape,S:n}),onClick:()=>Gn({serie:r,shape:t.shape,S:n}),style:y(`opacity:${Q.value?Q.value===r.id?I.value.lines.opacity:.2:I.value.lines.opacity}; stroke-dasharray:${r.pathLength}; stroke-dashoffset: ${M.value.useCssAnimation?r.pathLength:0}`)},null,46,bt),G.value.showTooltip?(b(),p(`path`,{key:1,d:`M${I.value.lines.smooth?r.smoothPath:r.straightPath}`,stroke:`transparent`,"stroke-width":12,fill:`none`,class:_({"vue-ui-pcp-animated vue-data-ui-line-animated":M.value.useCssAnimation,"vue-data-ui-transition":T(L)&&!T(U)}),onMouseenter:e=>Bn({shape:t.shape,serieName:t.name,serie:r,relativeIndex:i,seriesIndex:r.seriesIndex,S:n,triggerMode:`pointer`}),onMouseleave:e=>Rn({serie:r,shape:t.shape,S:n}),onClick:()=>Gn({serie:r,shape:t.shape,S:n}),style:{opacity:`0`}},null,42,xt)):f(``,!0)]))),256))]))),256)),(b(!0),p(l,null,S(X.value,(e,t)=>(b(),p(`g`,null,[(b(!0),p(l,null,S(e.series,(n,r)=>(b(),p(`g`,null,[!T(en)&&(G.value.dataLabels.show||Q.value&&Q.value===n.id)?(b(!0),p(l,{key:0},S(n.datapoints,(i,a)=>(b(),p(`text`,{key:`pl_${n.id}_${a}`,transform:`translate(${i.x+12+P.value.datapoints.offsetX}, ${i.y+P.value.datapoints.offsetY+H.value.datapointFontSize/3})`,fill:P.value.datapoints.useSerieColor?e.color:P.value.datapoints.color,"text-anchor":`start`,"font-weight":P.value.datapoints.bold?`bold`:`normal`,class:_({"vue-ui-pcp-plot-label":!0,"vue-data-ui-transition":T(L)&&!T(U)}),"font-size":H.value.datapointFontSize,stroke:I.value.backgroundColor,"stroke-width":3,"stroke-linecap":`round`,"stroke-linejoin":`round`,"paint-order":`stroke fill`,onMouseenter:i=>Bn({shape:e.shape,serieName:e.name,serie:n,relativeIndex:r,seriesIndex:n.seriesIndex,S:t,triggerMode:`pointer`}),onMouseleave:r=>Rn({serie:n,shape:e.shape,S:t}),onClick:()=>Gn({serie:n,shape:e.shape,S:t}),style:y(`opacity:${Q.value?Q.value===n.id?1:.2:1}`)},w(Pn({value:i.value,index:a,datapoint:i})),47,St))),128)):f(``,!0)]))),256))]))),256)),C(e.$slots,`svg`,{svg:{...W.value,isPrintingImg:T(pn)||T(mn)||T(ar),isPrintingSvg:T(or)}},void 0,!0)],46,st)),e.$slots.hint?(b(),p(`div`,Ct,[C(e.$slots,`hint`,v(g({hint:M.value.a11y.translations.keyboardNavigation,isVisible:Zt.value})),void 0,!0)])):f(``,!0)]),e.$slots.watermark?(b(),p(`div`,wt,[C(e.$slots,`watermark`,v(g({isPrinting:T(pn)||T(mn)||T(ar)||T(or)})),void 0,!0)])):f(``,!0),m(`div`,{id:`legend-bottom-${A.value}`},null,8,Tt),Gt.value&&(I.value.legend.show||e.$slots.legend)?(b(),d(We,{key:6,to:I.value.legend.position===`top`?`#legend-top-${A.value}`:`#legend-bottom-${A.value}`},[m(`div`,{ref_key:`chartLegend`,ref:zt},[C(e.$slots,`legend`,{legend:An.value},()=>[I.value.legend.show&&It.value?(b(),d(He,{key:`legend_${Ut.value}`,legendSet:An.value,config:jn.value,isCursorPointer:R.value,onClickMarker:t[0]||=({legend:e})=>{En(e.id)}},{item:E(({legend:e,index:t})=>[m(`div`,{onClick:t=>e.segregate(),style:y(`opacity:${K.value.includes(e.id)?.5:1}`)},w(e.name),13,Et)]),legendToggle:E(()=>[An.value.length>2&&I.value.legend.selectAllToggle.show&&!T(en)?(b(),d(Re,{key:0,backgroundColor:I.value.legend.selectAllToggle.backgroundColor,color:I.value.legend.selectAllToggle.color,fontSize:I.value.legend.fontSize,checked:K.value.length>0,isCursorPointer:R.value,onToggle:Tn},null,8,[`backgroundColor`,`color`,`fontSize`,`checked`,`isCursorPointer`])):f(``,!0)]),_:1},8,[`legendSet`,`config`,`isCursorPointer`])):f(``,!0)],!0)],512)],8,[`to`])):f(``,!0),e.$slots.source?(b(),p(`div`,{key:7,ref_key:`source`,ref:Bt,dir:`auto`},[C(e.$slots,`source`,{},void 0,!0)],512)):f(``,!0),qe(T(Dt),{teleportTo:F.value.teleportTo,show:G.value.showTooltip&&In.value,backgroundColor:F.value.backgroundColor,color:F.value.color,fontSize:F.value.fontSize,borderRadius:F.value.borderRadius,borderColor:F.value.borderColor,borderWidth:F.value.borderWidth,backgroundOpacity:F.value.backgroundOpacity,position:F.value.position,offsetX:F.value.offsetX,offsetY:F.value.offsetY,parent:O.value,content:Ln.value,isFullscreen:j.value,isCustom:T(i)(F.value.customFormat),smooth:F.value.smooth,backdropFilter:F.value.backdropFilter,smoothForce:F.value.smoothForce,smoothSnapThreshold:F.value.smoothSnapThreshold,isA11yMode:Xt.value===`keyboard`,a11yPosition:Yt.value},{"tooltip-before":E(()=>[C(e.$slots,`tooltip-before`,v(g({...Fn.value})),void 0,!0)]),tooltip:E(()=>[C(e.$slots,`tooltip`,v(g({...Fn.value})),void 0,!0)]),"tooltip-after":E(()=>[C(e.$slots,`tooltip-after`,v(g({...Fn.value})),void 0,!0)]),_:3},8,[`teleportTo`,`show`,`backgroundColor`,`color`,`fontSize`,`borderRadius`,`borderColor`,`borderWidth`,`backgroundOpacity`,`position`,`offsetX`,`offsetY`,`parent`,`content`,`isFullscreen`,`isCustom`,`smooth`,`backdropFilter`,`smoothForce`,`smoothSnapThreshold`,`isA11yMode`,`a11yPosition`]),It.value&&N.value.buttons.table?(b(),d(Qe(er.value.component),Je({key:8},er.value.props,{ref_key:`tableUnit`,ref:Kt,onClose:tr}),Ge({content:E(()=>[(b(),d(T(At),{key:`table_${Wt.value}`,colNames:$.value.colNames,head:$.value.head,body:$.value.body,config:$.value.config,title:M.value.table.useDialog?``:er.value.title,withCloseButton:!M.value.table.useDialog,isCursorPointer:R.value,onClose:tr},{th:E(({th:e})=>[m(`div`,null,w(e),1)]),td:E(({td:e})=>[Ke(w(e),1)]),_:1},8,[`colNames`,`head`,`body`,`config`,`title`,`withCloseButton`,`isCursorPointer`]))]),_:2},[M.value.table.useDialog?{name:`title`,fn:E(()=>[Ke(w(er.value.title),1)]),key:`0`}:void 0,M.value.table.useDialog?{name:`actions`,fn:E(()=>[m(`button`,{tabindex:`0`,class:`vue-ui-user-options-button`,onClick:t[1]||=e=>Un(N.value.callbacks.csv),style:y({cursor:R.value?`pointer`:`default`})},[qe(T(Ot),{name:`fileCsv`,stroke:er.value.props.color},null,8,[`stroke`])],4)]),key:`1`}:void 0]),1040)):f(``,!0),C(e.$slots,`skeleton`,{},()=>[T(en)?(b(),d(ve,{key:0})):f(``,!0)],!0)],46,rt))}},[[`__scopeId`,`data-v-2e1fbaed`]]);export{nt as n,Dt as t};
@@ -1,2 +1,2 @@
1
- import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./useConfig-6jO1fkp5.js";import{$ as n,Ct as r,D as i,Dt as a,Ht as o,J as s,Jt as c,S as ee,X as te,Yt as ne,Zt as re,at as ie,i as l,in as ae,jt as oe,nt as se,pt as ce,r as le,t as ue,w as de,zt as fe}from"./lib-rPeBMZrn.js";import{n as pe,t as me}from"./BaseScanner-8NdoBs7B.js";import{n as he,t as ge}from"./useHints-C-TwxM0Y.js";import{t as _e}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as ve}from"./resolveChartConfig-CIhClE5R.js";import{t as ye}from"./chartImage-DPGnEuYM.js";import{n as be}from"./Title-BliHuXfT.js";import{t as xe}from"./useChartExport-BZts4KFb.js";import{n as Se,t as Ce}from"./tableIntegration-CNoJ1CIY.js";import{n as we,t as Te}from"./annotationSlots-BRR85CqJ.js";import{n as Ee,t as De}from"./userOptionsSlots-DYuo-E5m.js";import{t as Oe}from"./usePrinter-DVf3YcG5.js";import{t as ke}from"./Shape-CRe8woTu.js";import{c as Ae}from"./canvas-lib-22VpOI4_.js";import{t as je}from"./useResponsive-CENUxfEL.js";import{t as Me}from"./DefGrad-DKMq1REY.js";import{t as Ne}from"./BaseLegendToggle-Q3TiW9u1.js";import{t as Pe}from"./A11yDataTable-DWNlWXzs.js";import{t as Fe}from"./useUserOptionState-CXlFnwPv.js";import{t as Ie}from"./useChartAccessibility-DOMuYJfm.js";import{t as Le}from"./Legend-DM0ClX3D.js";import{t as Re}from"./vue_ui_quadrant-BUv-SqzP.js";import{Fragment as u,Teleport as ze,computed as d,createBlock as f,createCommentVNode as p,createElementBlock as m,createElementVNode as h,createSlots as Be,createTextVNode as Ve,createVNode as He,defineAsyncComponent as g,guardReactiveProps as _,mergeProps as Ue,nextTick as We,normalizeClass as v,normalizeProps as y,normalizeStyle as b,onBeforeUnmount as Ge,onMounted as Ke,openBlock as x,ref as S,renderList as C,renderSlot as w,resolveDynamicComponent as qe,shallowRef as Je,toDisplayString as T,toRefs as Ye,unref as E,watch as Xe,withCtx as D}from"vue";var Ze=/* @__PURE__ */ e({default:()=>on}),Qe=[`id`],$e=[`id`],et=[`id`],tt={style:{position:`relative`}},nt=[`xmlns`,`aria-describedby`,`viewBox`,`id`],rt=[`x`,`y`,`width`,`height`],it={key:1},at=[`fill`,`x`,`y`,`height`,`width`,`stroke-width`,`stroke`,`rx`],ot=[`x1`,`y1`,`x2`,`y2`,`stroke`,`stroke-width`],st=[`x1`,`y1`,`x2`,`y2`,`stroke`,`stroke-width`],ct={key:2},lt=[`points`,`fill`],ut=[`points`,`fill`],dt=[`points`,`fill`],ft=[`points`,`fill`],pt={key:3},mt=[`y`,`fill`,`font-size`],ht=[`x`,`y`,`fill`,`font-size`],gt=[`x`,`y`,`fill`,`font-size`],_t=[`y`,`fill`,`font-size`],vt={key:4},yt=[`x`,`y`,`font-size`,`fill`],bt=[`x`,`y`,`font-size`,`fill`],xt=[`x`,`y`,`font-size`,`fill`],St=[`id`,`font-size`,`transform`,`fill`],Ct=[`id`,`font-size`,`transform`,`fill`],wt=[`id`,`font-size`,`transform`,`fill`],Tt={key:5},Et=[`fill`,`points`],Dt=[`x`,`y`,`width`,`height`],Ot=[`x`,`y`,`width`,`height`],kt=[`x`,`y`,`width`,`height`],At=[`x`,`y`,`width`,`height`],jt=[`x`,`y`,`onMouseenter`,`onMouseleave`,`onClick`],Mt=[`data-a11y-plot-id`,`cx`,`cy`,`r`],Nt=[`data-a11y-plot-id`,`cx`,`cy`,`r`],Pt={key:0,style:{"pointer-events":`none`}},Ft=[`x`,`y`,`font-size`,`fill`],It=[`x`,`y`,`font-size`,`fill`,`innerHTML`],Lt={key:0},Rt=[`x`,`y`,`onMouseover`,`onMouseleave`,`onClick`],zt={key:8,class:`vue-ui-dna`},Bt=[`points`,`fill`],Vt=[`points`,`fill`],Ht=[`points`,`fill`],Ut=[`points`,`fill`],Wt={key:9},Gt=[`x`,`y`,`font-size`,`fill`,`font-weight`],Kt={key:10},qt=[`x`,`y`,`fill`],Jt=[`x`,`y`,`fill`],Yt=[`x`,`y`,`fill`],Xt=[`x`,`y`,`fill`],Zt=[`stroke`,`d`],Qt=[`stroke`,`d`],$t={key:0,style:{position:`absolute`,top:`100%`,left:`0`,width:`100%`},"data-dom-to-png-ignore":``,"aria-hidden":`true`},en={key:5,class:`vue-data-ui-watermark`},tn=[`id`],nn=[`onClick`],rn={key:0,height:`14`,width:`14`,viewBox:`0 0 20 20`},an=[`innerHTML`],on=/*#__PURE__*/ _e({__name:`vue-ui-quadrant`,props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:[`selectPlot`,`selectSide`,`selectLegend`,`copyAlt`],setup(e,{expose:_e,emit:Ze}){let on=g(()=>import(`./Tooltip-C1q0Qoh7.js`)),sn=g(()=>import(`./BaseIcon-Cm-IJ179.js`).then(e=>e.n)),cn=g(()=>import(`./vue-ui-accordion-S3nRtTU-.js`).then(e=>e.n)),ln=g(()=>import(`./DataTable-0Vv-aGHD.js`)),un=g(()=>import(`./PenAndPaper-BGEp-TUm.js`).then(e=>e.t)),dn=g(()=>import(`./UserOptions-uWHV_zPB.js`).then(e=>e.n)),fn=g(()=>import(`./PackageVersion-CXT-eAuk.js`).then(e=>e.t)),pn=g(()=>import(`./BaseDraggableDialog-DHgIPVmz.js`).then(e=>e.n)),{vue_ui_quadrant:mn}=t(),O=e,hn=d(()=>!!O.dataset&&O.dataset.length),k=S(te()),gn=Ze,_n=S(!1),vn=S(``),yn=S(0),A=S(!1),j=S(null),bn=S(null),xn=S(null),Sn=S(null),Cn=S(null),wn=S(0),Tn=S(0),En=S(0),Dn=S(!1),On=S(null),kn=S(null),An=S(null),jn=S(null),Mn=S({x:0,y:0}),Nn=S(`pointer`),Pn=S(!1),M=S(Vn()),N=d(()=>M.value.userOptions),P=d(()=>M.value.style.chart.layout.grid),F=d(()=>M.value.style.chart.layout.labels),I=d(()=>M.value.style.chart.tooltip),L=d(()=>M.value.style.chart);he({config:()=>M.value,dataset:()=>O.dataset,component:`VueUiQuadrant`,rules:[ge.emptyArray,ge.noHint]});let R=d(()=>M.value.userOptions.useCursorPointer),Fn=d(()=>({defaultConfig:{userOptions:{show:!1},table:{show:!1},style:{chart:{backgroundColor:`#99999930`,layout:{grid:{stroke:`#6A6A6A`,graduations:{stroke:`#6A6A6A`,color:`#6A6A6A90`},xAxis:{auto:!0},yAxis:{auto:!0}},labels:{quadrantLabels:{show:!1},plotLabels:{show:!1},axisLabels:{show:!1}},plots:{outlineColor:`#6A6A6A`}},legend:{backgroundColor:`transparent`}}}},userConfig:M.value.skeletonConfig??{}})),{loading:In,FINAL_DATASET:Ln}=pe({...Ye(O),FINAL_CONFIG:M,prepareConfig:Vn,callback:()=>{Promise.resolve().then(async()=>{await We(),V.value.showTable=M.value.table.show})},skeletonDataset:O.config?.skeletonDataset??[{name:`_`,shape:`circle`,color:`#CACACA`,series:[{name:`_`,x:-6,y:-4},{name:`_`,x:-5,y:-2},{name:`_`,x:-4,y:-1},{name:`_`,x:-3,y:-.5},{name:`_`,x:-2,y:-.25},{name:`_`,x:-1,y:-.135},{name:`_`,x:0,y:0},{name:`_`,x:1,y:.135},{name:`_`,x:2,y:.25},{name:`_`,x:3,y:.5},{name:`_`,x:4,y:1},{name:`_`,x:5,y:2},{name:`_`,x:6,y:4}]}],skeletonConfig:ae({defaultConfig:M.value,userConfig:Fn.value})}),{userOptionsVisible:Rn,setUserOptionsVisibility:zn,keepUserOptionState:Bn}=Fe({config:M.value}),{svgRef:z}=Ie({config:L.value.title});function Vn(){return ve(O.config,mn,Re)}let Hn=re(O.config);Xe(()=>O.config,(e,t)=>{let n=re(e),r=n!==Hn;Hn=n;let i=Vn();r?(M.value=i,Rn.value=!M.value.userOptions.showOnChartHover,Gn(),wn.value+=1,Tn.value+=1,En.value+=1,V.value.plotLabels.show=F.value.plotLabels.show,V.value.showTable=M.value.table.show,V.value.showTooltip=I.value.show):(M.value.style.chart.tooltip=i.style.chart.tooltip,V.value.showTooltip=M.value.style.chart.tooltip.show)},{deep:!0});let B=Je(null),Un=Je(null),Wn=d(()=>M.value.debug);function Gn(){if(fe(O.dataset)?ie({componentName:`VueUiQuadrant`,type:`dataset`,debug:Wn.value}):Wn.value&&O.dataset.forEach((e,t)=>{[null,void 0].includes(e.name)&&ie({componentName:`VueUiQuadrant`,type:`datasetSerieAttribute`,property:`name`,index:t}),[null,void 0].includes(e.series)?ie({componentName:`VueUiQuadrant`,type:`datasetSerieAttribute`,property:`series`,index:t}):e.series.forEach((e,t)=>{[null,void 0].includes(e.name)&&ie({componentName:`VueUiQuadrant`,type:`datasetSerieAttribute`,property:`name`,key:`series`,index:t})})}),M.value.responsive){let e=Ae(()=>{let{width:e,height:t}=je({chart:j.value,title:L.value.title.text?bn.value:null,legend:L.value.legend.show?xn.value:null,source:Sn.value,noTitle:Cn.value});H.value=48,requestAnimationFrame(()=>{U.value.height=t,U.value.usableHeight=t-H.value*2,U.value.width=e,U.value.usableWidth=e-H.value*2,U.value.top=H.value,U.value.left=H.value,U.value.right=e-H.value,U.value.bottom=t-H.value,U.value.centerX=e/2,U.value.centerY=t-t/2,U.value.padding=H.value})});B.value&&(Un.value&&B.value.unobserve(Un.value),B.value.disconnect()),B.value=new ResizeObserver(e),Un.value=j.value.parentNode,B.value.observe(Un.value)}}Ke(()=>{Dn.value=!0,Gn()}),Ge(()=>{B.value&&(Un.value&&B.value.unobserve(Un.value),B.value.disconnect())});let{isPrinting:Kn,isImaging:qn,generatePdf:Jn,generateImage:Yn}=Oe({elementId:`vue-ui-quadrant_${k.value}`,fileName:L.value.title.text||`vue-ui-quadrant`,options:M.value.userOptions.print}),Xn=d(()=>M.value.userOptions.show&&!L.value.title.text),Zn=d(()=>de(M.value.customPalette)),V=S({plotLabels:{show:F.value.plotLabels.show},showTable:M.value.table.show,showTooltip:I.value.show}),H=S(48),U=S({height:L.value.height,usableHeight:L.value.height-H.value*2,width:L.value.width,usableWidth:L.value.width-H.value*2,top:H.value,left:H.value,right:L.value.width-H.value,bottom:L.value.height-H.value,centerX:L.value.width/2,centerY:L.value.height-L.value.height/2,padding:H.value}),W=S({...JSON.parse(JSON.stringify(U.value)),startX:0,startY:0});Xe(()=>U.value,e=>{e&&(W.value={...JSON.parse(JSON.stringify(U.value)),startX:0,startY:0})},{deep:!0});let G=S(null),Qn=d(()=>{switch(G.value){case`TL`:return{x:W.value.startX+W.value.width/2,y:W.value.height,text:F.value.quadrantLabels.tl.text||`Top Left`,fontSize:F.value.quadrantLabels.tl.fontSize,fill:F.value.quadrantLabels.tl.color,bold:F.value.quadrantLabels.tl.bold};case`TR`:return{x:W.value.startX+W.value.width/2,y:W.value.height,text:F.value.quadrantLabels.tr.text||`Top Right`,fontSize:F.value.quadrantLabels.tr.fontSize,fill:F.value.quadrantLabels.tr.color,bold:F.value.quadrantLabels.tr.bold};case`BR`:return{x:W.value.startX+W.value.width/2,y:W.value.height*1.678,text:F.value.quadrantLabels.br.text||`Bottom Right`,fontSize:F.value.quadrantLabels.br.fontSize,fill:F.value.quadrantLabels.br.color,bold:F.value.quadrantLabels.br.bold};case`BL`:return{x:W.value.startX+W.value.width/2,y:W.value.height*1.678,text:F.value.quadrantLabels.bl.text||`Bottom Left`,fontSize:F.value.quadrantLabels.bl.fontSize,fill:F.value.quadrantLabels.bl.color,bold:F.value.quadrantLabels.bl.bold};default:return{x:0,y:0,text:``,fontSize:0,fill:`none`,bold:!1}}}),$n=S(null),er=S(!1);function tr({targetX:e,targetY:t,targetW:n,targetH:r,side:i}){G.value&&Tr(i);let a={x:e-W.value.startX,y:t-W.value.startY,w:n-W.value.width,h:r-W.value.height},o=M.value.zoomAnimationFrames,s=0;function c(){er.value=!0,W.value.startX+=a.x/o,W.value.startY+=a.y/o,W.value.width+=a.w/o,W.value.height+=a.h/o,s+=1,s<o?$n.value=requestAnimationFrame(c):er.value=!1}c()}let K=d(()=>M.value.zoomEnabled);function q(e){if(K.value&&!er.value){if(A.value&&G.value===e)tr({targetX:0,targetY:0,targetW:U.value.width,targetH:U.value.height}),G.value=null,A.value=!1;else{switch(G.value=e,e){case`TL`:tr({targetX:0,targetY:0,targetW:U.value.width/2+U.value.left,targetH:U.value.height/2+U.value.top,side:`tl`});break;case`TR`:tr({targetX:U.value.width/2-U.value.left,targetY:0,targetW:U.value.width/2+U.value.left,targetH:U.value.height/2+U.value.top,side:`tr`});break;case`BR`:tr({targetX:U.value.width/2-U.value.left,targetY:U.value.height/2-U.value.top,targetW:U.value.width/2+U.value.left,targetH:U.value.height/2+U.value.top,side:`br`});break;case`BL`:tr({targetX:0,targetY:U.value.height/2-U.value.top,targetW:U.value.width/2+U.value.left,targetH:U.value.height/2+U.value.top,side:`bl`});break;default:W.value.startX=0,W.value.startY=0,W.value.width=U.value.width,W.value.height=U.value.height}A.value=!0}}}let nr=d(()=>{let e=P.value.graduations.steps,t=U.value.usableWidth/(e*2),n=U.value.top,r=[];for(let i=0;i<e;i+=1)r.push({x:U.value.padding+t*i,y:n+U.value.usableHeight*(i/e/2),height:U.value.usableHeight*(1-i/e),width:U.value.usableWidth*(1-i/e),opacity:Math.round((i+1)/e*20)});return r}),J=d(()=>{let e=P.value.xAxis.max,t=P.value.xAxis.min,n=P.value.yAxis.max,r=P.value.yAxis.min;return P.value.xAxis.auto&&(e=Math.max(...rr.value.flatMap(e=>e.series.map(e=>e.x))),t=Math.min(...rr.value.flatMap(e=>e.series.map(e=>e.x)))),P.value.yAxis.auto&&(n=Math.max(...rr.value.flatMap(e=>e.series.map(e=>e.y))),r=Math.min(...rr.value.flatMap(e=>e.series.map(e=>e.y)))),{x:{max:e,min:t},y:{max:n,min:r}}}),Y=S([]),rr=d(()=>Ln.value.map((e,t)=>({...e,series:oe({data:e.series,threshold:M.value.downsample.threshold}),id:`cat_${t}_${k.value}`,color:ee(e.color)||Zn.value[t]||o[t]}))),ir=d(()=>rr.value.filter(e=>!Y.value.includes(e.id))),ar=d(()=>rr.value.map((e,t)=>({...e,shape:e.shape||`circle`,series:e.series.map(t=>({...t,x:or(t.x),y:sr(t.y),xValue:t.x,yValue:t.y,quadrantSide:_r({x:t.x,y:t.y}),categoryName:e.name,category:e,shape:e.shape,color:e.color}))}))),X=d(()=>(Wn.value&&Ln.value.forEach((e,t)=>{e.series.forEach((e,t)=>{[null,void 0].includes(e.x)&&ie({componentName:`VueUiQuadrant`,type:`datasetSerieAttribute`,property:`x`,key:`series`,index:t}),[null,void 0].includes(e.y)&&ie({componentName:`VueUiQuadrant`,type:`datasetSerieAttribute`,property:`y`,key:`series`,index:t})})}),ir.value.map((e,t)=>({...e,shape:e.shape||`circle`,color:e.color||Zn.value[t]||o[t],series:e.series.map(t=>({...t,category:e,x:or(t.x),y:sr(t.y),xValue:t.x,yValue:t.y,quadrantSide:_r({x:t.x,y:t.y}),categoryName:e.name,shape:e.shape,color:e.color,uid:te()}))}))));function or(e){if(e>=0){let t=e/J.value.x.max;return U.value.centerX+U.value.usableWidth/2*t}{let t=Math.abs(e)/Math.abs(J.value.x.min);return U.value.centerX-U.value.usableWidth/2*t}}function sr(e){if(e>=0){let t=e/J.value.y.max;return U.value.centerY+(1-U.value.usableHeight/2*t)}{let t=Math.abs(e)/Math.abs(J.value.y.min);return U.value.centerY-(1-U.value.usableHeight/2*t)}}let cr=d(()=>{let e=X.value.flatMap(e=>e.series.map(t=>({x:t.xValue,y:t.yValue,name:t.name,category:t.categoryName,quadrantSide:t.quadrantSide,sideName:F.value.quadrantLabels[t.quadrantSide].text,color:e.color,shape:e.shape}))),t=P.value.xAxis.name||`x`,n=P.value.yAxis.name||`y`;return{head:[M.value.translations.category,M.value.translations.item,t,n,M.value.translations.side],body:e.map(e=>[e.category,e.name,e.x,e.y,e.sideName||e.quadrantSide]),itsShapes:e.map(e=>({shape:e.shape,color:e.color})),tableData:e}}),lr=d(()=>{let e=cr.value.head,t=cr.value.tableData.map(e=>[{shape:e.shape,color:e.color,name:e.category},e.name,l(F.value.plotLabels.x.formatter,e.x,n({v:e.x,r:F.value.plotLabels.rounding})),l(F.value.plotLabels.y.formatter,e.y,n({v:e.y,r:F.value.plotLabels.rounding})),e.sideName||e.quadrantSide]);return{head:e,body:t,a11yBody:t.map(e=>e.map((e,t)=>t===0?e.name??``:e)),config:{th:{backgroundColor:M.value.table.th.backgroundColor,color:M.value.table.th.color,outline:M.value.table.th.outline},td:{backgroundColor:M.value.table.td.backgroundColor,color:M.value.table.td.color,outline:M.value.table.td.outline},breakpoint:M.value.table.responsiveBreakpoint},colNames:e}});function ur(){Y.value.length?Y.value=[]:fr.value.forEach(e=>{Y.value.push(e.id)}),gn(`selectLegend`,Er())}function dr(e){Y.value.includes(e)?Y.value=Y.value.filter(t=>t!==e):Y.value.push(e),gn(`selectLegend`,Er())}let fr=d(()=>ar.value.map(e=>({name:e.name,shape:e.shape,color:e.color,id:e.id,opacity:Y.value.includes(e.id)?.5:1,segregate:()=>dr(e.id),isSegregated:Y.value.includes(e.id)})));function pr(e){return fr.value.length?fr.value.find(t=>t.name===e)||(Wn.value&&console.warn(`VueUiQuadrant - Series name not found "${e}"`),null):(Wn.value&&console.warn(`VueUiQuadrant - There are no series to show.`),null)}function mr(e){let t=pr(e);t!==null&&Y.value.includes(t.id)&&dr(t.id)}function hr(e){let t=pr(e);t!==null&&(Y.value.includes(t.id)||dr(t.id))}let gr=d(()=>({cy:`quadrant-div-legend`,backgroundColor:L.value.legend.backgroundColor,color:L.value.legend.color,fontSize:L.value.legend.fontSize,paddingBottom:12,fontWeight:L.value.legend.bold?`bold`:``}));function _r(e){switch(!0){case e.x>=0&&e.y>=0:return`tr`;case e.x>=0&&e.y<0:return`br`;case e.x<0&&e.y<0:return`bl`;case e.x<0&&e.y>=0:return`tl`;default:return``}}let Z=S(null),vr=S(null),yr=S(null);function br(){Z.value=null,vr.value=null,An.value=null,jn.value=null,_n.value=!1}function xr(e){if(!z.value||!e)return;let t=`[data-a11y-plot-id="${e}"]`,n=z.value.querySelector(t);if(!n)return;let r=n.getBoundingClientRect();Mn.value={x:r.left+r.width/2,y:r.top+r.height/2}}function Sr(e,t,r,i=`pointer`,o=null){M.value.events.datapointEnter&&M.value.events.datapointEnter({datapoint:t,seriesIndex:r}),Z.value=t.uid,vr.value={color:e.color,shape:e.shape},Nn.value=i,An.value=o,jn.value=t.uid,yr.value={datapoint:t,seriesIndex:r,series:X.value,config:M.value};let s=I.value.customFormat;if(a(s)&&ce(()=>s({seriesIndex:r,datapoint:t,series:X.value,config:M.value})))vn.value=s({seriesIndex:r,datapoint:t,series:X.value,config:M.value});else{let i=``;t.quadrantSide&&(i+=`<div style="color:${F.value.quadrantLabels[t.quadrantSide].color};font-weight:${F.value.quadrantLabels[t.quadrantSide].bold?`bold`:`400`}">${F.value.quadrantLabels[t.quadrantSide].text}</div>`),i+=`<div>${e.name}</div>`,i+=`<div style="padding-bottom:6px;border-bottom:1px solid ${I.value.borderColor};margin-bottom:3px">${t.name}</div>`,i+=`<div>${P.value.xAxis.name?P.value.xAxis.name:`x`}: <b>${l(F.value.plotLabels.x.formatter,t.xValue,n({v:t.xValue,r:I.value.roundingValue}),{datapoint:t,category:e,categoryIndex:r})}</b></div>`,i+=`<div>${P.value.yAxis.name?P.value.yAxis.name:`y`}: <b>${l(F.value.plotLabels.y.formatter,t.yValue,n({v:t.yValue,r:I.value.roundingValue}),{datapoint:t,category:e,categoryIndex:r})}</b></div>`,vn.value=`<div style="text-align:left;font-size:${I.value.fontSize}px">${i}</div>`}i===`keyboard`&&We(()=>{xr(t.uid)}),_n.value=!0}function Cr(e,t){M.value.events.datapointLeave&&M.value.events.datapointLeave({datapoint:e,seriesIndex:t}),(jn.value!==e.uid||Nn.value!==`keyboard`)&&(_n.value=!1,Z.value=null,vr.value=null)}function wr(e,t,n){M.value.events.datapointClick&&M.value.events.datapointClick({datapoint:t,seriesIndex:n});let r={category:e.name,shape:e.shape,itemName:t.name,x:t.xValue,y:t.yValue,quadrantSide:t.quadrantSide,sideName:F.value.quadrantLabels[t.quadrantSide].text};gn(`selectPlot`,r)}function Tr(e){if(!e)return;let t=X.value.flatMap(t=>t.series.filter(t=>t.quadrantSide===e).map(e=>({category:e.categoryName,itemName:e.name,x:e.xValue,y:e.yValue}))),n={quadrantSide:e,sideName:F.value.quadrantLabels[e].text,items:[...t]};gn(`selectSide`,n)}let Q=d(()=>({TL:{tl:{x:U.value.left+U.value.usableWidth/4-20,y:0,fill:F.value.quadrantLabels.tl.color},tr:{x:U.value.left+U.value.usableWidth/4,y:0,fill:F.value.quadrantLabels.tr.color},br:{x:U.value.left+U.value.usableWidth/4,y:20,fill:F.value.quadrantLabels.br.color},bl:{x:U.value.left+U.value.usableWidth/4-20,y:20,fill:F.value.quadrantLabels.bl.color},crosshairs:{horizontal:`M ${U.value.left+U.value.usableWidth/4-20},20 ${U.value.left+U.value.usableWidth/4+20},20`,vertical:`M ${U.value.left+U.value.usableWidth/4},0 ${U.value.left+U.value.usableWidth/4},40`}},TR:{tl:{x:U.value.centerX+U.value.usableWidth/4-20,y:0,fill:F.value.quadrantLabels.tl.color},tr:{x:U.value.centerX+U.value.usableWidth/4,y:0,fill:F.value.quadrantLabels.tr.color},br:{x:U.value.centerX+U.value.usableWidth/4,y:20,fill:F.value.quadrantLabels.br.color},bl:{x:U.value.centerX+U.value.usableWidth/4-20,y:20,fill:F.value.quadrantLabels.bl.color},crosshairs:{horizontal:`M ${U.value.centerX+U.value.usableWidth/4-20},20 ${U.value.centerX+U.value.usableWidth/4+20},20`,vertical:`M ${U.value.centerX+U.value.usableWidth/4},0 ${U.value.centerX+U.value.usableWidth/4},40`}},BR:{tl:{x:U.value.centerX+U.value.usableWidth/4-20,y:U.value.centerY-48,fill:F.value.quadrantLabels.tl.color},tr:{x:U.value.centerX+U.value.usableWidth/4,y:U.value.centerY-48,fill:F.value.quadrantLabels.tr.color},br:{x:U.value.centerX+U.value.usableWidth/4,y:U.value.centerY-28,fill:F.value.quadrantLabels.br.color},bl:{x:U.value.centerX+U.value.usableWidth/4-20,y:U.value.centerY-28,fill:F.value.quadrantLabels.bl.color},crosshairs:{horizontal:`M ${U.value.centerX+U.value.usableWidth/4-20},${U.value.centerY-28} ${U.value.centerX+U.value.usableWidth/4+20},${U.value.centerY-28}`,vertical:`M ${U.value.centerX+U.value.usableWidth/4},${U.value.centerY-48} ${U.value.centerX+U.value.usableWidth/4},${U.value.centerY-8}`}},BL:{tl:{x:U.value.left+U.value.usableWidth/4-20,y:U.value.centerY-48,fill:F.value.quadrantLabels.tl.color},tr:{x:U.value.left+U.value.usableWidth/4,y:U.value.centerY-48,fill:F.value.quadrantLabels.tr.color},br:{x:U.value.left+U.value.usableWidth/4,y:U.value.centerY-28,fill:F.value.quadrantLabels.br.color},bl:{x:U.value.left+U.value.usableWidth/4-20,y:U.value.centerY-28,fill:F.value.quadrantLabels.bl.color},crosshairs:{horizontal:`M ${U.value.left+U.value.usableWidth/4-20},${U.value.centerY-28} ${U.value.left+U.value.usableWidth/4+20},${U.value.centerY-28}`,vertical:`M ${U.value.left+U.value.usableWidth/4},${U.value.centerY-48} ${U.value.left+U.value.usableWidth/4},${U.value.centerY-8}`}}}));function Er(){return X.value.map(e=>({color:e.color,name:e.name,shape:e.shape,series:e.series.map(e=>({name:e.name,x:e.xValue,y:e.yValue,quadrantSide:e.quadrantSide,sideName:F.value.quadrantLabels[e.quadrantSide].text}))}))}function Dr(e=null){We(()=>{let t=[[L.value.title.text],[L.value.title.subtitle.text],[``]],n=cr.value.head,r=cr.value.body,a=t.concat([n]).concat(r),o=i(a);e?e(o):se({csvContent:o,title:L.value.title.text||`vue-ui-quadrant`})})}let Or=S(!1);function kr(e){Or.value=e,yn.value+=1}function Ar(){V.value.showTable=!V.value.showTable}function jr(){V.value.plotLabels.show=!V.value.plotLabels.show}function Mr(){V.value.showTooltip=!V.value.showTooltip}let Nr=S(!1);function Pr(){Nr.value=!Nr.value}let Fr=ye(j,()=>L.value.title.text),Ir=d(()=>Ce({config:M,style:L,mutableConfig:V,dialog:pn,accordion:cn,isFullscreen:Or,parent:j,maxWidth:800,isCursorPointer:R}));Xe(()=>V.value.showTable,e=>Se(e,M,On));function Lr(){V.value.showTable=!1,kn.value&&kn.value.setTableIconState(!1)}let Rr=d(()=>L.value.backgroundColor),zr=d(()=>L.value.legend),Br=d(()=>L.value.title),{isCallbackImaging:Vr,isCallbackSvg:Hr,generateSvg:Ur,onGenerateImage:Wr}=xe({svg:z,title:Br,legend:zr,legendItems:fr,backgroundColor:Rr,getSvgCallback:()=>M.value.userOptions.callbacks.svg,generateImage:Yn});async function Gr(){gn(`copyAlt`,{config:M.value,dataset:ir.value}),M.value.userOptions.callbacks.altCopy?await Promise.resolve(M.value.userOptions.callbacks.altCopy({config:M.value,dataset:ir.value})):console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.")}function Kr(){An.value=null,jn.value=null,Pn.value=!0}function qr(){br(),Pn.value=!1}function Jr(e){if(!z.value||Nr.value||document.activeElement!==z.value||!$.value.length)return;let t=e.key===`ArrowLeft`||e.key===`ArrowUp`,n=e.key===`ArrowRight`||e.key===`ArrowDown`,r=e.key===`Enter`||e.key===` `,i=e.key===`Escape`;if(!t&&!n&&!r&&!i)return;if(e.preventDefault(),e.stopPropagation(),i){br();return}if(r){if(An.value===null)return;let e=$.value[An.value];if(!e)return;wr(e.category,e.plot,e.categoryIndex);return}let a=An.value,o=Z.value?$.value.findIndex(e=>e.plot.uid===Z.value):null,s=a!==null&&a>=0&&a<$.value.length,c=o!==null&&o>=0&&o<$.value.length;s?(a+=n?1:-1,a<0&&(a=$.value.length-1),a>=$.value.length&&(a=0)):c?(a=n?o+1:o-1,a>=$.value.length&&(a=0),a<0&&(a=$.value.length-1)):a=n?0:$.value.length-1;let ee=$.value[a];ee&&Sr(ee.category,ee.plot,ee.categoryIndex,`keyboard`,a)}let Yr=d(()=>({headers:lr.value?.colNames??[],rows:lr.value?.a11yBody??[]})),$=d(()=>X.value.flatMap((e,t)=>e.series.map(n=>({category:e,plot:n,categoryIndex:t}))));return _e({getData:Er,getImage:Fr,generatePdf:Jn,generateCsv:Dr,generateImage:Yn,generateSvg:Ur,hideSeries:hr,showSeries:mr,toggleTable:Ar,toggleLabels:jr,toggleTooltip:Mr,toggleAnnotator:Pr,toggleFullscreen:kr,copyAlt:Gr}),(e,t)=>(x(),m(`div`,{class:v(`vue-data-ui-component vue-ui-quadrant ${Or.value?`vue-data-ui-wrapper-fullscreen`:``} ${M.value.useCssAnimation?``:`vue-ui-dna`}`),ref_key:`quadrantChart`,ref:j,id:`vue-ui-quadrant_${k.value}`,style:b(`font-family:${M.value.style.fontFamily};width:100%; text-align:center;background:${L.value.backgroundColor};${M.value.responsive?`height: 100%`:``}`),onMouseenter:t[14]||=()=>E(zn)(!0),onMouseleave:t[15]||=()=>{E(zn)(!1),Pn.value||br()}},[h(`div`,{id:`chart-instructions-${k.value}`,class:`sr-only`},[h(`p`,null,T(M.value.a11y.translations.keyboardNavigation),1)],8,$e),Yr.value?.rows?.length?(x(),f(Pe,{key:0,uid:k.value,head:Yr.value.headers,body:Yr.value.rows,notice:M.value.a11y.translations.tableAvailable,caption:M.value.a11y.translations.tableCaption},null,8,[`uid`,`head`,`body`,`notice`,`caption`])):p(``,!0),N.value.buttons.annotator?(x(),f(E(un),{key:1,svgRef:E(z),backgroundColor:L.value.backgroundColor,color:L.value.color,active:Nr.value,isCursorPointer:R.value,palette:N.value.annotatorPalette,onClose:Pr},Be({_:2},[C(E(Te),t=>({name:t,fn:D(n=>[w(e.$slots,t,y(_(E(we)(t,n))),void 0,!0)])}))]),1032,[`svgRef`,`backgroundColor`,`color`,`active`,`isCursorPointer`,`palette`])):p(``,!0),Xn.value?(x(),m(`div`,{key:2,ref_key:`noTitle`,ref:Cn,class:`vue-data-ui-no-title-space`,style:`height:36px; width: 100%;background:transparent`},null,512)):p(``,!0),L.value.title.text?(x(),m(`div`,{key:3,ref_key:`chartTitle`,ref:bn,style:`width:100%;background:transparent;padding-bottom:12px`},[(x(),f(be,{key:`table_${wn.value}`,config:{title:{cy:`quadrant-title`,...L.value.title},subtitle:{cy:`quadrant-subtitle`,...L.value.title.subtitle}}},null,8,[`config`]))],512)):p(``,!0),h(`div`,{id:`legend-top-${k.value}`},null,8,et),N.value.show&&hn.value&&(E(Bn)||E(Rn))?(x(),f(E(dn),{ref_key:`userOptionsRef`,ref:kn,key:`user_options_${yn.value}`,backgroundColor:L.value.backgroundColor,color:L.value.color,isImaging:E(qn),isPrinting:E(Kn),uid:k.value,hasTooltip:N.value.buttons.tooltip&&I.value.show,hasPdf:N.value.buttons.pdf,hasImg:N.value.buttons.img,hasSvg:N.value.buttons.svg,hasXls:N.value.buttons.csv,hasTable:N.value.buttons.table,hasLabel:N.value.buttons.labels,hasFullscreen:N.value.buttons.fullscreen,hasAltCopy:N.value.buttons.altCopy,isFullscreen:Or.value,isTooltip:V.value.showTooltip,titles:{...N.value.buttonTitles},chartElement:j.value,position:N.value.position,hasAnnotator:N.value.buttons.annotator,isAnnotation:Nr.value,callbacks:N.value.callbacks,printScale:N.value.print.scale,tableDialog:M.value.table.useDialog,isCursorPointer:R.value,onToggleFullscreen:kr,onGeneratePdf:E(Jn),onGenerateCsv:Dr,onGenerateImage:E(Wr),onGenerateSvg:E(Ur),onToggleTable:Ar,onToggleLabels:jr,onToggleTooltip:Mr,onToggleAnnotator:Pr,onCopyAlt:Gr,style:b({visibility:E(Bn)?E(Rn)?`visible`:`hidden`:`visible`})},Be({_:2},[C(E(Ee)(e.$slots,`menuIcon optionTooltip optionPdf optionCsv optionImg optionSvg optionTable optionLabels optionFullscreen optionAnnotator optionAltCopy custom-menu-before custom-menu-after`),t=>({name:t,fn:D(n=>[w(e.$slots,t,y(_(E(De)(t,n))),void 0,!0)])}))]),1032,/* @__PURE__ */ `backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style`.split(`.`))):p(``,!0),h(`div`,tt,[(x(),m(`svg`,{ref_key:`svgRef`,ref:z,xmlns:E(ue),"aria-describedby":`chart-instructions-${k.value}`,class:v({"vue-data-ui-fullscreen--on":Or.value,"vue-data-ui-fulscreen--off":!Or.value}),viewBox:`${W.value.startX} ${W.value.startY} ${W.value.width} ${W.value.height}`,style:b(`max-width:100%;overflow:hidden;background:transparent;color:${L.value.color}`),id:`svg_${k.value}`,tabindex:`0`,onFocus:Kr,onBlur:qr,onKeydown:Jr},[He(E(fn)),w(e.$slots,`svg-underlayer`,{svg:{...U.value,isPrintingImg:E(Kn)||E(qn)||E(Vr),isPrintingSvg:E(Hr)}},void 0,!0),e.$slots[`chart-background`]?(x(),m(`foreignObject`,{key:0,x:W.value.startX,y:W.value.startY,width:W.value.width,height:W.value.height,style:{pointerEvents:`none`}},[w(e.$slots,`chart-background`,{},void 0,!0)],8,rt)):p(``,!0),h(`defs`,null,[(x(!0),m(u,null,C(X.value,(e,t)=>(x(),f(Me,{t:`radial`,cx:`50%`,cy:`50%`,r:`50%`,fx:`50%`,fy:`50%`,id:`quadrant_gradient_${k.value}_${t}`,key:`quadrant_gradient_${k.value}_${t}`,stops:[[`0%`,E(c)(E(ne)(e.color,.05),L.value.layout.areas.opacity),1],[`100%`,E(c)(e.color,L.value.layout.areas.opacity),1]]},null,8,[`id`,`stops`]))),128))]),P.value.graduations.show?(x(),m(`g`,it,[(x(!0),m(u,null,C(nr.value,e=>(x(),m(`rect`,{fill:P.value.graduations.fill?E(c)(P.value.graduations.color,e.opacity):`none`,x:e.x,y:e.y,height:e.height<=0?.001:e.height,width:e.width<=0?.001:e.width,"stroke-width":P.value.graduations.strokeWidth,stroke:P.value.graduations.stroke,rx:P.value.graduations.roundingForce},null,8,at))),256))])):p(``,!0),h(`line`,{x1:U.value.left,y1:U.value.centerY,x2:U.value.right,y2:U.value.centerY,stroke:P.value.stroke,"stroke-width":P.value.strokeWidth},null,8,ot),h(`line`,{x1:U.value.centerX,y1:U.value.top,x2:U.value.centerX,y2:U.value.bottom,stroke:P.value.stroke,"stroke-width":P.value.strokeWidth},null,8,st),P.value.showArrows?(x(),m(`g`,ct,[h(`polygon`,{points:`${U.value.right-8},${U.value.centerY-6} ${U.value.right},${U.value.centerY} ${U.value.right-8},${U.value.centerY+6}`,fill:P.value.stroke,stroke:`none`},null,8,lt),h(`polygon`,{points:`${U.value.left+8},${U.value.centerY-6} ${U.value.left},${U.value.centerY} ${U.value.left+8},${U.value.centerY+6}`,fill:P.value.stroke,stroke:`none`},null,8,ut),h(`polygon`,{points:`${U.value.centerX-6},${U.value.top+8} ${U.value.centerX},${U.value.top} ${U.value.centerX+6},${U.value.top+8}`,fill:P.value.stroke,stroke:`none`},null,8,dt),h(`polygon`,{points:`${U.value.centerX-6},${U.value.bottom-8} ${U.value.centerX},${U.value.bottom} ${U.value.centerX+6},${U.value.bottom-8}`,fill:P.value.stroke,stroke:`none`},null,8,ft)])):p(``,!0),F.value.quadrantLabels.show&&!A.value?(x(),m(`g`,pt,[F.value.quadrantLabels.tl.text?(x(),m(`text`,{key:0,x:0,y:U.value.top-U.value.padding/2,"text-anchor":`start`,fill:F.value.quadrantLabels.tl.color,"font-size":F.value.quadrantLabels.tl.fontSize,style:b(`font-weight:${F.value.quadrantLabels.tl.bold?`bold`:``}`),onClick:t[0]||=e=>Tr(`tl`)},T(F.value.quadrantLabels.tl.text),13,mt)):p(``,!0),F.value.quadrantLabels.tr.text?(x(),m(`text`,{key:1,x:U.value.width,y:U.value.top-U.value.padding/2,"text-anchor":`end`,fill:F.value.quadrantLabels.tr.color,"font-size":F.value.quadrantLabels.tr.fontSize,style:b(`font-weight:${F.value.quadrantLabels.tr.bold?`bold`:``}`),onClick:t[1]||=e=>Tr(`tr`)},T(F.value.quadrantLabels.tr.text),13,ht)):p(``,!0),F.value.quadrantLabels.br.text?(x(),m(`text`,{key:2,x:U.value.width,y:U.value.bottom+U.value.padding*.7,"text-anchor":`end`,fill:F.value.quadrantLabels.br.color,"font-size":F.value.quadrantLabels.br.fontSize,style:b(`font-weight:${F.value.quadrantLabels.br.bold?`bold`:``}`),onClick:t[2]||=e=>Tr(`br`)},T(F.value.quadrantLabels.br.text),13,gt)):p(``,!0),F.value.quadrantLabels.bl.text?(x(),m(`text`,{key:3,x:0,y:U.value.bottom+U.value.padding*.7,"text-anchor":`start`,fill:F.value.quadrantLabels.bl.color,"font-size":F.value.quadrantLabels.bl.fontSize,style:b(`font-weight:${F.value.quadrantLabels.bl.bold?`bold`:``}`),onClick:t[3]||=e=>Tr(`bl`)},T(F.value.quadrantLabels.bl.text),13,_t)):p(``,!0)])):p(``,!0),F.value.axisLabels.show?(x(),m(`g`,vt,[P.value.yAxis.show?(x(),m(`text`,{key:0,x:U.value.centerX,y:U.value.top-U.value.padding/6,"text-anchor":`middle`,"font-size":F.value.axisLabels.fontSize,fill:F.value.axisLabels.color.positive},T(E(l)(F.value.plotLabels.y.formatter,J.value.y.max,E(n)({v:J.value.y.max,r:F.value.plotLabels.rounding}))),9,yt)):p(``,!0),h(`text`,{x:U.value.centerX,y:U.value.top-U.value.padding/2,"text-anchor":`middle`,"font-size":F.value.axisLabels.fontSize,fill:F.value.axisLabels.color.positive},T(P.value.yAxis.name),9,bt),P.value.yAxis.show?(x(),m(`text`,{key:1,x:U.value.centerX,y:U.value.bottom+U.value.padding*.35,"text-anchor":`middle`,"font-size":F.value.axisLabels.fontSize,fill:F.value.axisLabels.color.negative},T(E(l)(F.value.plotLabels.y.formatter,J.value.y.min,E(n)({v:J.value.y.min,r:F.value.plotLabels.rounding}))),9,xt)):p(``,!0),P.value.xAxis.show?(x(),m(`text`,{key:2,id:`xLabelMin_${k.value}`,"text-anchor":`middle`,"font-size":F.value.axisLabels.fontSize,transform:`translate(${U.value.padding-F.value.axisLabels.fontSize}, ${U.value.height/2}), rotate(-90)`,fill:F.value.axisLabels.color.negative},T(E(l)(F.value.plotLabels.x.formatter,J.value.x.min,E(n)({v:J.value.x.min,r:F.value.plotLabels.rounding}))),9,St)):p(``,!0),P.value.xAxis.show?(x(),m(`text`,{key:3,id:`xLabelMax_${k.value}`,"text-anchor":`middle`,"font-size":F.value.axisLabels.fontSize,transform:`translate(${U.value.width-U.value.padding+F.value.axisLabels.fontSize}, ${U.value.height/2}), rotate(90)`,fill:F.value.axisLabels.color.positive},T(E(l)(F.value.plotLabels.x.formatter,J.value.x.max,E(n)({v:J.value.x.max,r:F.value.plotLabels.rounding}))),9,Ct)):p(``,!0),h(`text`,{id:`xLabelMaxName_${k.value}`,"text-anchor":`middle`,"font-size":F.value.axisLabels.fontSize,transform:`translate(${U.value.width-F.value.axisLabels.fontSize}, ${U.value.height/2}), rotate(90)`,fill:F.value.axisLabels.color.positive},T(P.value.xAxis.name),9,wt)])):p(``,!0),L.value.layout.areas.show?(x(),m(`g`,Tt,[(x(!0),m(u,null,C(X.value,(e,t)=>(x(),m(`g`,null,[e.series.length>2?(x(),m(`polygon`,{key:0,"data-cy-quadrant-area":``,fill:L.value.layout.areas.useGradient?`url(#quadrant_gradient_${k.value}_${t})`:E(c)(e.color,L.value.layout.areas.opacity),points:E(r)(e)},null,8,Et)):p(``,!0)]))),256))])):p(``,!0),h(`g`,null,[h(`rect`,{onClick:t[4]||=e=>q(`TL`),x:U.value.left,y:U.value.top,width:U.value.usableWidth/2<=0?.001:U.value.usableWidth/2,height:U.value.usableHeight/2<=0?.001:U.value.usableHeight/2,fill:`transparent`,class:v({"vue-data-ui-zoom-plus":!A.value&&K.value,"vue-data-ui-zoom-minus":A.value&&K.value})},null,10,Dt),h(`rect`,{onClick:t[5]||=e=>q(`TR`),x:U.value.centerX,y:U.value.top,width:U.value.usableWidth/2<=0?.001:U.value.usableWidth/2,height:U.value.usableHeight/2<=0?.001:U.value.usableHeight/2,fill:`transparent`,class:v({"vue-data-ui-zoom-plus":!A.value&&K.value,"vue-data-ui-zoom-minus":A.value&&K.value})},null,10,Ot),h(`rect`,{onClick:t[6]||=e=>q(`BR`),x:U.value.centerX,y:U.value.centerY,width:U.value.usableWidth/2<=0?.001:U.value.usableWidth/2,height:U.value.usableHeight/2<=0?.001:U.value.usableHeight/2,fill:`transparent`,class:v({"vue-data-ui-zoom-plus":!A.value&&K.value,"vue-data-ui-zoom-minus":A.value&&K.value})},null,10,kt),h(`rect`,{onClick:t[7]||=e=>q(`BL`),x:U.value.left,y:U.value.centerY,width:U.value.usableWidth/2<=0?.001:U.value.usableWidth/2,height:U.value.usableHeight/2<=0?.001:U.value.usableHeight/2,fill:`transparent`,class:v({"vue-data-ui-zoom-plus":!A.value&&K.value,"vue-data-ui-zoom-minus":A.value&&K.value})},null,10,At)]),F.value.plotLabels.showAsTag?(x(),m(u,{key:7},[V.value.plotLabels.show?(x(),m(`g`,Lt,[(x(!0),m(u,null,C(X.value,(e,t)=>(x(),m(u,null,[(x(!0),m(u,null,C(e.series,n=>(x(),m(`foreignObject`,{style:{overflow:`visible`},height:`10`,width:`100`,x:n.x-50,y:n.y-F.value.plotLabels.fontSize,onMouseover:r=>Sr(e,n,t),onMouseleave:e=>Cr(n,t),onClick:r=>wr(e,n,t)},[h(`div`,{style:b(`color:${E(le)(e.color)};margin: 0 auto; font-size:${F.value.plotLabels.fontSize}px; text-align:center;background:${e.color}; padding: 2px 4px; border-radius: 12px; height: fit-content;`)},T(n.name),5)],40,Rt))),256))],64))),256))])):p(``,!0)],64)):(x(),m(u,{key:6},[(x(!0),m(u,null,C(X.value,(t,n)=>(x(),m(`g`,null,[e.$slots.datapoint&&!E(In)?(x(!0),m(u,{key:0},C(t.series,r=>(x(),m(`g`,{key:r.uid},[(x(),m(`foreignObject`,{x:r.x-1,y:r.y-1,width:`2`,height:`2`,style:{overflow:`visible`,"pointer-events":`none`},onMouseenter:e=>Sr(t,r,n),onMouseleave:e=>Cr(r,n),onClick:e=>wr(t,r,n)},[w(e.$slots,`datapoint`,Ue({ref_for:!0},{datapoint:{...r,onEnter:()=>Sr(t,r,n),onLeave:()=>Cr(r,n),onClick:()=>wr(t,r,n),isSelected:Z.value&&r.uid===Z.value}}),void 0,!0)],40,jt)),h(`circle`,{"data-a11y-plot-id":r.uid,cx:r.x,cy:r.y,r:Math.max(L.value.layout.plots.radius/(A.value?1.5:1),10),fill:`transparent`,style:{"pointer-events":`none`}},null,8,Mt)]))),128)):e.$slots.datapointSvg&&!E(In)?(x(!0),m(u,{key:1},C(t.series,r=>(x(),m(`g`,{key:r.uid},[w(e.$slots,`datapointSvg`,Ue({ref_for:!0},{datapoint:{...r,onEnter:()=>Sr(t,r,n),onLeave:()=>Cr(r,n),onClick:()=>wr(t,r,n),isSelected:Z.value&&r.uid===Z.value}}),void 0,!0)]))),128)):(x(!0),m(u,{key:2},C(t.series,(e,r)=>(x(),m(`g`,{key:e.uid},[He(ke,{color:t.color,isSelected:Z.value&&e.uid===Z.value,plot:e,radius:L.value.layout.plots.radius/(A.value?1.5:1),shape:t.shape,stroke:L.value.layout.plots.outline?L.value.layout.plots.outlineColor:`none`,strokeWidth:L.value.layout.plots.outlineWidth,onMouseenter:r=>Sr(t,e,n,`pointer`),onMouseleave:t=>Cr(e,n),onClick:r=>wr(t,e,n)},null,8,[`color`,`isSelected`,`plot`,`radius`,`shape`,`stroke`,`strokeWidth`,`onMouseenter`,`onMouseleave`,`onClick`]),h(`circle`,{"data-dom-to-png-ignore":``,"data-a11y-plot-id":e.uid,cx:e.x,cy:e.y,r:Math.max(L.value.layout.plots.radius/(A.value?1.5:1),10),fill:`transparent`,style:{"pointer-events":`none`}},null,8,Nt)]))),128))]))),256)),V.value.plotLabels.show?(x(),m(`g`,Pt,[(x(!0),m(u,null,C(X.value,e=>(x(),m(`g`,null,[(x(!0),m(u,null,C(e.series,e=>(x(),m(`g`,null,[String(e.name).includes(`
2
- `)?(x(),m(`text`,{key:1,x:e.x,y:e.y+F.value.plotLabels.offsetY+L.value.layout.plots.radius,"text-anchor":`middle`,"font-size":F.value.plotLabels.fontSize/(A.value?1.5:1),fill:F.value.plotLabels.color,innerHTML:E(s)({content:String(e.name),fontSize:L.value.layout.labels.plotLabels.fontSize/(A.value?1.5:1),fill:L.value.layout.labels.plotLabels.color,x:e.x,y:e.y+L.value.layout.labels.plotLabels.offsetY+L.value.layout.plots.radius})},null,8,It)):(x(),m(`text`,{key:0,x:e.x,y:e.y+F.value.plotLabels.offsetY+L.value.layout.plots.radius,"text-anchor":`middle`,"font-size":F.value.plotLabels.fontSize/(A.value?1.5:1),fill:F.value.plotLabels.color},T(e.name),9,Ft))]))),256))]))),256))])):p(``,!0)],64)),A.value?(x(),m(`g`,zt,[G.value===`TL`?(x(),m(`polygon`,{key:0,points:`${U.value.left-1},${U.value.centerY} ${U.value.centerX},${U.value.centerY} ${U.value.centerX},${U.value.top-1} ${U.value.right},${U.value.top-1} ${U.value.right},${U.value.bottom} ${U.value.left-1},${U.value.bottom} ${U.value.left-1},${U.value.centerY}`,fill:L.value.backgroundColor,style:{opacity:`1`}},null,8,Bt)):p(``,!0),G.value===`TR`?(x(),m(`polygon`,{key:1,points:`${U.value.left},${U.value.top-1} ${U.value.centerX},${U.value.top-1} ${U.value.centerX},${U.value.centerY} ${U.value.right+1},${U.value.centerY} ${U.value.right+1},${U.value.bottom} ${U.value.left},${U.value.bottom} ${U.value.left},${U.value.top-1}`,fill:L.value.backgroundColor,style:{opacity:`1`}},null,8,Vt)):p(``,!0),G.value===`BR`?(x(),m(`polygon`,{key:2,points:`${U.value.left},${U.value.top} ${U.value.right+1},${U.value.top} ${U.value.right+1},${U.value.centerY} ${U.value.centerX},${U.value.centerY} ${U.value.centerX},${U.value.bottom+1} ${U.value.left},${U.value.bottom+1} ${U.value.left},${U.value.top}`,fill:L.value.backgroundColor,style:{opacity:`1`}},null,8,Ht)):p(``,!0),G.value===`BL`?(x(),m(`polygon`,{key:3,points:`${U.value.left-1},${U.value.top} ${U.value.right},${U.value.top} ${U.value.right},${U.value.bottom+1} ${U.value.centerX},${U.value.bottom+1} ${U.value.centerX},${U.value.centerY} ${U.value.left-1},${U.value.centerY} ${U.value.left-1},${U.value.top}`,fill:L.value.backgroundColor,style:{opacity:`1`}},null,8,Ut)):p(``,!0)])):p(``,!0),G.value&&!er.value?(x(),m(`g`,Wt,[h(`text`,{x:Qn.value.x,y:Qn.value.y-Qn.value.fontSize/1.5,"font-size":Qn.value.fontSize/1.5,fill:Qn.value.fill,"text-anchor":`middle`,"font-weight":Qn.value.bold?`bold`:`normal`},T(Qn.value.text),9,Gt)])):p(``,!0),A.value&&G.value?(x(),m(`g`,Kt,[h(`rect`,{x:Q.value[G.value].tl.x,y:Q.value[G.value].tl.y,height:`20`,width:`20`,fill:Q.value[G.value].tl.fill,style:b(`cursor: ${R.value?`pointer`:`default`}; opacity: ${G.value===`TL`?1:.2}`),onClick:t[8]||=e=>q(`TL`),class:v({"vue-ui-quadrant-mini-map-cell":!0,"vue-ui-quadrant-mini-map-cell-selectable":G.value!==`TL`})},null,14,qt),h(`rect`,{x:Q.value[G.value].tr.x,y:Q.value[G.value].tr.y,height:`20`,width:`20`,fill:Q.value[G.value].tr.fill,style:b(`cursor: ${R.value?`pointer`:`default`}; opacity: ${G.value===`TR`?1:.2}`),onClick:t[9]||=e=>q(`TR`),class:v({"vue-ui-quadrant-mini-map-cell":!0,"vue-ui-quadrant-mini-map-cell-selectable":G.value!==`TR`})},null,14,Jt),h(`rect`,{x:Q.value[G.value].br.x,y:Q.value[G.value].br.y,height:`20`,width:`20`,fill:Q.value[G.value].br.fill,style:b(`cursor: ${R.value?`pointer`:`default`}; opacity: ${G.value===`BR`?1:.2}`),onClick:t[10]||=e=>q(`BR`),class:v({"vue-ui-quadrant-mini-map-cell":!0,"vue-ui-quadrant-mini-map-cell-selectable":G.value!==`BR`})},null,14,Yt),h(`rect`,{x:Q.value[G.value].bl.x,y:Q.value[G.value].bl.y,height:`20`,width:`20`,fill:Q.value[G.value].bl.fill,style:b(`cursor: ${R.value?`pointer`:`default`}; opacity: ${G.value===`BL`?1:.2}`),onClick:t[11]||=e=>q(`BL`),class:v({"vue-ui-quadrant-mini-map-cell":!0,"vue-ui-quadrant-mini-map-cell-selectable":G.value!==`BL`})},null,14,Xt),h(`path`,{class:`vue-ui-quadrant-minimap-crosshairs`,stroke:L.value.backgroundColor,"stroke-width":1,d:Q.value[G.value].crosshairs.horizontal},null,8,Zt),h(`path`,{class:`vue-ui-quadrant-minimap-crosshairs`,stroke:L.value.backgroundColor,"stroke-width":1,d:Q.value[G.value].crosshairs.vertical},null,8,Qt)])):p(``,!0),w(e.$slots,`svg`,{svg:{...U.value,isPrintingImg:E(Kn)||E(qn)||E(Vr),isPrintingSvg:E(Hr)}},void 0,!0)],46,nt)),e.$slots.hint?(x(),m(`div`,$t,[w(e.$slots,`hint`,y(_({hint:M.value.a11y.translations.keyboardNavigation,isVisible:Pn.value})),void 0,!0)])):p(``,!0)]),e.$slots.watermark?(x(),m(`div`,en,[w(e.$slots,`watermark`,y(_({isPrinting:E(Kn)||E(qn)||E(Vr)||E(Hr)})),void 0,!0)])):p(``,!0),h(`div`,{id:`legend-bottom-${k.value}`},null,8,tn),Dn.value&&(L.value.legend.show||e.$slots.legend)?(x(),f(ze,{key:6,to:L.value.legend.position===`top`?`#legend-top-${k.value}`:`#legend-bottom-${k.value}`},[h(`div`,{ref_key:`chartLegend`,ref:xn},[w(e.$slots,`legend`,{legend:fr.value},()=>[L.value.legend.show?(x(),f(Le,{key:`legend_${En.value}`,legendSet:fr.value,config:gr.value,isCursorPointer:R.value,onClickMarker:t[12]||=({legend:e})=>dr(e.id)},{item:D(({legend:e})=>[E(In)?p(``,!0):(x(),m(`div`,{key:0,onClick:t=>dr(e.id),style:b(`opacity:${Y.value.includes(e.id)?.5:1}`)},T(e.name),13,nn))]),legendToggle:D(()=>[fr.value.length>2&&L.value.legend.selectAllToggle.show&&!E(In)?(x(),f(Ne,{key:0,backgroundColor:L.value.legend.selectAllToggle.backgroundColor,color:L.value.legend.selectAllToggle.color,fontSize:L.value.legend.fontSize,checked:Y.value.length>0,isCursorPointer:R.value,onToggle:ur},null,8,[`backgroundColor`,`color`,`fontSize`,`checked`,`isCursorPointer`])):p(``,!0)]),_:1},8,[`legendSet`,`config`,`isCursorPointer`])):p(``,!0)],!0)],512)],8,[`to`])):p(``,!0),e.$slots.source?(x(),m(`div`,{key:7,ref_key:`source`,ref:Sn,dir:`auto`},[w(e.$slots,`source`,{},void 0,!0)],512)):p(``,!0),He(E(on),{teleportTo:I.value.teleportTo,show:V.value.showTooltip&&_n.value,backgroundColor:I.value.backgroundColor,color:I.value.color,borderRadius:I.value.borderRadius,borderColor:I.value.borderColor,borderWidth:I.value.borderWidth,fontSize:I.value.fontSize,backgroundOpacity:I.value.backgroundOpacity,position:I.value.position,offsetX:I.value.offsetX,offsetY:I.value.offsetY,parent:j.value,content:vn.value,isFullscreen:Or.value,isCustom:I.value.customFormat&&typeof I.value.customFormat==`function`,smooth:I.value.smooth,backdropFilter:I.value.backdropFilter,smoothForce:I.value.smoothForce,smoothSnapThreshold:I.value.smoothSnapThreshold,isA11yMode:Nn.value===`keyboard`,a11yPosition:Mn.value},{"tooltip-before":D(()=>[w(e.$slots,`tooltip-before`,y(_({...yr.value})),void 0,!0)]),tooltip:D(()=>[w(e.$slots,`tooltip`,y(_({...yr.value})),void 0,!0)]),"tooltip-after":D(()=>[w(e.$slots,`tooltip-after`,y(_({...yr.value})),void 0,!0)]),default:D(()=>[I.value.showShape?(x(),m(`svg`,rn,[He(ke,{plot:{x:10,y:10},shape:vr.value.shape,color:vr.value.color,radius:8,stroke:L.value.layout.plots.outline?L.value.layout.plots.outlineColor:`none`,"stroke-width":L.value.layout.plots.outlineWidth},null,8,[`shape`,`color`,`stroke`,`stroke-width`])])):p(``,!0)]),_:3},8,[`teleportTo`,`show`,`backgroundColor`,`color`,`borderRadius`,`borderColor`,`borderWidth`,`fontSize`,`backgroundOpacity`,`position`,`offsetX`,`offsetY`,`parent`,`content`,`isFullscreen`,`isCustom`,`smooth`,`backdropFilter`,`smoothForce`,`smoothSnapThreshold`,`isA11yMode`,`a11yPosition`]),hn.value&&N.value.buttons.table?(x(),f(qe(Ir.value.component),Ue({key:8},Ir.value.props,{ref_key:`tableUnit`,ref:On,onClose:Lr}),Be({content:D(()=>[(x(),f(E(ln),{key:`table_${Tn.value}`,colNames:lr.value.colNames,head:lr.value.head,body:lr.value.body,config:lr.value.config,title:M.value.table.useDialog?``:Ir.value.title,withCloseButton:!M.value.table.useDialog,isCursorPointer:R.value,onClose:Lr},{th:D(({th:e})=>[Ve(T(e),1)]),td:D(({td:e})=>[h(`div`,{innerHTML:e.name||e},null,8,an)]),_:1},8,[`colNames`,`head`,`body`,`config`,`title`,`withCloseButton`,`isCursorPointer`]))]),_:2},[M.value.table.useDialog?{name:`title`,fn:D(()=>[Ve(T(Ir.value.title),1)]),key:`0`}:void 0,M.value.table.useDialog?{name:`actions`,fn:D(()=>[h(`button`,{tabindex:`0`,class:`vue-ui-user-options-button`,onClick:t[13]||=e=>Dr(N.value.callbacks.csv),style:b({cursor:R.value?`pointer`:`default`})},[He(E(sn),{name:`fileCsv`,stroke:Ir.value.props.color},null,8,[`stroke`])],4)]),key:`1`}:void 0]),1040)):p(``,!0),w(e.$slots,`skeleton`,{},()=>[E(In)?(x(),f(me,{key:0})):p(``,!0)],!0)],46,Qe))}},[[`__scopeId`,`data-v-ab4d690d`]]);export{Ze as n,on as t};
1
+ import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./useConfig-D3ZfFSE5.js";import{$ as n,Ct as r,D as i,Dt as a,Ht as o,J as s,Jt as c,S as ee,X as te,Yt as ne,Zt as re,at as ie,i as l,in as ae,jt as oe,nt as se,pt as ce,r as le,t as ue,w as de,zt as fe}from"./lib-rPeBMZrn.js";import{n as pe,t as me}from"./BaseScanner-8NdoBs7B.js";import{n as he,t as ge}from"./useHints-C-TwxM0Y.js";import{t as _e}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as ve}from"./resolveChartConfig-CIhClE5R.js";import{t as ye}from"./chartImage-DPGnEuYM.js";import{n as be}from"./Title-BliHuXfT.js";import{t as xe}from"./useChartExport-BZts4KFb.js";import{n as Se,t as Ce}from"./tableIntegration-CNoJ1CIY.js";import{n as we,t as Te}from"./annotationSlots-RvQBEO9-.js";import{n as Ee,t as De}from"./userOptionsSlots-DYuo-E5m.js";import{t as Oe}from"./usePrinter-DVf3YcG5.js";import{t as ke}from"./Shape-CRe8woTu.js";import{c as Ae}from"./canvas-lib-22VpOI4_.js";import{t as je}from"./useResponsive-CENUxfEL.js";import{t as Me}from"./DefGrad-DKMq1REY.js";import{t as Ne}from"./BaseLegendToggle-aT9fOoGO.js";import{t as Pe}from"./A11yDataTable-DWNlWXzs.js";import{t as Fe}from"./useUserOptionState-CXlFnwPv.js";import{t as Ie}from"./useChartAccessibility-DOMuYJfm.js";import{t as Le}from"./Legend-DM0ClX3D.js";import{t as Re}from"./vue_ui_quadrant-BUv-SqzP.js";import{Fragment as u,Teleport as ze,computed as d,createBlock as f,createCommentVNode as p,createElementBlock as m,createElementVNode as h,createSlots as Be,createTextVNode as Ve,createVNode as He,defineAsyncComponent as g,guardReactiveProps as _,mergeProps as Ue,nextTick as We,normalizeClass as v,normalizeProps as y,normalizeStyle as b,onBeforeUnmount as Ge,onMounted as Ke,openBlock as x,ref as S,renderList as C,renderSlot as w,resolveDynamicComponent as qe,shallowRef as Je,toDisplayString as T,toRefs as Ye,unref as E,watch as Xe,withCtx as D}from"vue";var Ze=/* @__PURE__ */ e({default:()=>on}),Qe=[`id`],$e=[`id`],et=[`id`],tt={style:{position:`relative`}},nt=[`xmlns`,`aria-describedby`,`viewBox`,`id`],rt=[`x`,`y`,`width`,`height`],it={key:1},at=[`fill`,`x`,`y`,`height`,`width`,`stroke-width`,`stroke`,`rx`],ot=[`x1`,`y1`,`x2`,`y2`,`stroke`,`stroke-width`],st=[`x1`,`y1`,`x2`,`y2`,`stroke`,`stroke-width`],ct={key:2},lt=[`points`,`fill`],ut=[`points`,`fill`],dt=[`points`,`fill`],ft=[`points`,`fill`],pt={key:3},mt=[`y`,`fill`,`font-size`],ht=[`x`,`y`,`fill`,`font-size`],gt=[`x`,`y`,`fill`,`font-size`],_t=[`y`,`fill`,`font-size`],vt={key:4},yt=[`x`,`y`,`font-size`,`fill`],bt=[`x`,`y`,`font-size`,`fill`],xt=[`x`,`y`,`font-size`,`fill`],St=[`id`,`font-size`,`transform`,`fill`],Ct=[`id`,`font-size`,`transform`,`fill`],wt=[`id`,`font-size`,`transform`,`fill`],Tt={key:5},Et=[`fill`,`points`],Dt=[`x`,`y`,`width`,`height`],Ot=[`x`,`y`,`width`,`height`],kt=[`x`,`y`,`width`,`height`],At=[`x`,`y`,`width`,`height`],jt=[`x`,`y`,`onMouseenter`,`onMouseleave`,`onClick`],Mt=[`data-a11y-plot-id`,`cx`,`cy`,`r`],Nt=[`data-a11y-plot-id`,`cx`,`cy`,`r`],Pt={key:0,style:{"pointer-events":`none`}},Ft=[`x`,`y`,`font-size`,`fill`],It=[`x`,`y`,`font-size`,`fill`,`innerHTML`],Lt={key:0},Rt=[`x`,`y`,`onMouseover`,`onMouseleave`,`onClick`],zt={key:8,class:`vue-ui-dna`},Bt=[`points`,`fill`],Vt=[`points`,`fill`],Ht=[`points`,`fill`],Ut=[`points`,`fill`],Wt={key:9},Gt=[`x`,`y`,`font-size`,`fill`,`font-weight`],Kt={key:10},qt=[`x`,`y`,`fill`],Jt=[`x`,`y`,`fill`],Yt=[`x`,`y`,`fill`],Xt=[`x`,`y`,`fill`],Zt=[`stroke`,`d`],Qt=[`stroke`,`d`],$t={key:0,style:{position:`absolute`,top:`100%`,left:`0`,width:`100%`},"data-dom-to-png-ignore":``,"aria-hidden":`true`},en={key:5,class:`vue-data-ui-watermark`},tn=[`id`],nn=[`onClick`],rn={key:0,height:`14`,width:`14`,viewBox:`0 0 20 20`},an=[`innerHTML`],on=/*#__PURE__*/ _e({__name:`vue-ui-quadrant`,props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:[`selectPlot`,`selectSide`,`selectLegend`,`copyAlt`],setup(e,{expose:_e,emit:Ze}){let on=g(()=>import(`./Tooltip-C1q0Qoh7.js`)),sn=g(()=>import(`./BaseIcon-fYK0iID8.js`).then(e=>e.n)),cn=g(()=>import(`./vue-ui-accordion-D4FHxzsL.js`).then(e=>e.n)),ln=g(()=>import(`./DataTable-5Ug6gMAX.js`)),un=g(()=>import(`./PenAndPaper-r50tK3S4.js`).then(e=>e.t)),dn=g(()=>import(`./UserOptions-Em_JgDXM.js`).then(e=>e.n)),fn=g(()=>import(`./PackageVersion-DWlHsdPa.js`).then(e=>e.t)),pn=g(()=>import(`./BaseDraggableDialog-9d30Yx8c.js`).then(e=>e.n)),{vue_ui_quadrant:mn}=t(),O=e,hn=d(()=>!!O.dataset&&O.dataset.length),k=S(te()),gn=Ze,_n=S(!1),vn=S(``),yn=S(0),A=S(!1),j=S(null),bn=S(null),xn=S(null),Sn=S(null),Cn=S(null),wn=S(0),Tn=S(0),En=S(0),Dn=S(!1),On=S(null),kn=S(null),An=S(null),jn=S(null),Mn=S({x:0,y:0}),Nn=S(`pointer`),Pn=S(!1),M=S(Vn()),N=d(()=>M.value.userOptions),P=d(()=>M.value.style.chart.layout.grid),F=d(()=>M.value.style.chart.layout.labels),I=d(()=>M.value.style.chart.tooltip),L=d(()=>M.value.style.chart);he({config:()=>M.value,dataset:()=>O.dataset,component:`VueUiQuadrant`,rules:[ge.emptyArray,ge.noHint]});let R=d(()=>M.value.userOptions.useCursorPointer),Fn=d(()=>({defaultConfig:{userOptions:{show:!1},table:{show:!1},style:{chart:{backgroundColor:`#99999930`,layout:{grid:{stroke:`#6A6A6A`,graduations:{stroke:`#6A6A6A`,color:`#6A6A6A90`},xAxis:{auto:!0},yAxis:{auto:!0}},labels:{quadrantLabels:{show:!1},plotLabels:{show:!1},axisLabels:{show:!1}},plots:{outlineColor:`#6A6A6A`}},legend:{backgroundColor:`transparent`}}}},userConfig:M.value.skeletonConfig??{}})),{loading:In,FINAL_DATASET:Ln}=pe({...Ye(O),FINAL_CONFIG:M,prepareConfig:Vn,callback:()=>{Promise.resolve().then(async()=>{await We(),V.value.showTable=M.value.table.show})},skeletonDataset:O.config?.skeletonDataset??[{name:`_`,shape:`circle`,color:`#CACACA`,series:[{name:`_`,x:-6,y:-4},{name:`_`,x:-5,y:-2},{name:`_`,x:-4,y:-1},{name:`_`,x:-3,y:-.5},{name:`_`,x:-2,y:-.25},{name:`_`,x:-1,y:-.135},{name:`_`,x:0,y:0},{name:`_`,x:1,y:.135},{name:`_`,x:2,y:.25},{name:`_`,x:3,y:.5},{name:`_`,x:4,y:1},{name:`_`,x:5,y:2},{name:`_`,x:6,y:4}]}],skeletonConfig:ae({defaultConfig:M.value,userConfig:Fn.value})}),{userOptionsVisible:Rn,setUserOptionsVisibility:zn,keepUserOptionState:Bn}=Fe({config:M.value}),{svgRef:z}=Ie({config:L.value.title});function Vn(){return ve(O.config,mn,Re)}let Hn=re(O.config);Xe(()=>O.config,(e,t)=>{let n=re(e),r=n!==Hn;Hn=n;let i=Vn();r?(M.value=i,Rn.value=!M.value.userOptions.showOnChartHover,Gn(),wn.value+=1,Tn.value+=1,En.value+=1,V.value.plotLabels.show=F.value.plotLabels.show,V.value.showTable=M.value.table.show,V.value.showTooltip=I.value.show):(M.value.style.chart.tooltip=i.style.chart.tooltip,V.value.showTooltip=M.value.style.chart.tooltip.show)},{deep:!0});let B=Je(null),Un=Je(null),Wn=d(()=>M.value.debug);function Gn(){if(fe(O.dataset)?ie({componentName:`VueUiQuadrant`,type:`dataset`,debug:Wn.value}):Wn.value&&O.dataset.forEach((e,t)=>{[null,void 0].includes(e.name)&&ie({componentName:`VueUiQuadrant`,type:`datasetSerieAttribute`,property:`name`,index:t}),[null,void 0].includes(e.series)?ie({componentName:`VueUiQuadrant`,type:`datasetSerieAttribute`,property:`series`,index:t}):e.series.forEach((e,t)=>{[null,void 0].includes(e.name)&&ie({componentName:`VueUiQuadrant`,type:`datasetSerieAttribute`,property:`name`,key:`series`,index:t})})}),M.value.responsive){let e=Ae(()=>{let{width:e,height:t}=je({chart:j.value,title:L.value.title.text?bn.value:null,legend:L.value.legend.show?xn.value:null,source:Sn.value,noTitle:Cn.value});H.value=48,requestAnimationFrame(()=>{U.value.height=t,U.value.usableHeight=t-H.value*2,U.value.width=e,U.value.usableWidth=e-H.value*2,U.value.top=H.value,U.value.left=H.value,U.value.right=e-H.value,U.value.bottom=t-H.value,U.value.centerX=e/2,U.value.centerY=t-t/2,U.value.padding=H.value})});B.value&&(Un.value&&B.value.unobserve(Un.value),B.value.disconnect()),B.value=new ResizeObserver(e),Un.value=j.value.parentNode,B.value.observe(Un.value)}}Ke(()=>{Dn.value=!0,Gn()}),Ge(()=>{B.value&&(Un.value&&B.value.unobserve(Un.value),B.value.disconnect())});let{isPrinting:Kn,isImaging:qn,generatePdf:Jn,generateImage:Yn}=Oe({elementId:`vue-ui-quadrant_${k.value}`,fileName:L.value.title.text||`vue-ui-quadrant`,options:M.value.userOptions.print}),Xn=d(()=>M.value.userOptions.show&&!L.value.title.text),Zn=d(()=>de(M.value.customPalette)),V=S({plotLabels:{show:F.value.plotLabels.show},showTable:M.value.table.show,showTooltip:I.value.show}),H=S(48),U=S({height:L.value.height,usableHeight:L.value.height-H.value*2,width:L.value.width,usableWidth:L.value.width-H.value*2,top:H.value,left:H.value,right:L.value.width-H.value,bottom:L.value.height-H.value,centerX:L.value.width/2,centerY:L.value.height-L.value.height/2,padding:H.value}),W=S({...JSON.parse(JSON.stringify(U.value)),startX:0,startY:0});Xe(()=>U.value,e=>{e&&(W.value={...JSON.parse(JSON.stringify(U.value)),startX:0,startY:0})},{deep:!0});let G=S(null),Qn=d(()=>{switch(G.value){case`TL`:return{x:W.value.startX+W.value.width/2,y:W.value.height,text:F.value.quadrantLabels.tl.text||`Top Left`,fontSize:F.value.quadrantLabels.tl.fontSize,fill:F.value.quadrantLabels.tl.color,bold:F.value.quadrantLabels.tl.bold};case`TR`:return{x:W.value.startX+W.value.width/2,y:W.value.height,text:F.value.quadrantLabels.tr.text||`Top Right`,fontSize:F.value.quadrantLabels.tr.fontSize,fill:F.value.quadrantLabels.tr.color,bold:F.value.quadrantLabels.tr.bold};case`BR`:return{x:W.value.startX+W.value.width/2,y:W.value.height*1.678,text:F.value.quadrantLabels.br.text||`Bottom Right`,fontSize:F.value.quadrantLabels.br.fontSize,fill:F.value.quadrantLabels.br.color,bold:F.value.quadrantLabels.br.bold};case`BL`:return{x:W.value.startX+W.value.width/2,y:W.value.height*1.678,text:F.value.quadrantLabels.bl.text||`Bottom Left`,fontSize:F.value.quadrantLabels.bl.fontSize,fill:F.value.quadrantLabels.bl.color,bold:F.value.quadrantLabels.bl.bold};default:return{x:0,y:0,text:``,fontSize:0,fill:`none`,bold:!1}}}),$n=S(null),er=S(!1);function tr({targetX:e,targetY:t,targetW:n,targetH:r,side:i}){G.value&&Tr(i);let a={x:e-W.value.startX,y:t-W.value.startY,w:n-W.value.width,h:r-W.value.height},o=M.value.zoomAnimationFrames,s=0;function c(){er.value=!0,W.value.startX+=a.x/o,W.value.startY+=a.y/o,W.value.width+=a.w/o,W.value.height+=a.h/o,s+=1,s<o?$n.value=requestAnimationFrame(c):er.value=!1}c()}let K=d(()=>M.value.zoomEnabled);function q(e){if(K.value&&!er.value){if(A.value&&G.value===e)tr({targetX:0,targetY:0,targetW:U.value.width,targetH:U.value.height}),G.value=null,A.value=!1;else{switch(G.value=e,e){case`TL`:tr({targetX:0,targetY:0,targetW:U.value.width/2+U.value.left,targetH:U.value.height/2+U.value.top,side:`tl`});break;case`TR`:tr({targetX:U.value.width/2-U.value.left,targetY:0,targetW:U.value.width/2+U.value.left,targetH:U.value.height/2+U.value.top,side:`tr`});break;case`BR`:tr({targetX:U.value.width/2-U.value.left,targetY:U.value.height/2-U.value.top,targetW:U.value.width/2+U.value.left,targetH:U.value.height/2+U.value.top,side:`br`});break;case`BL`:tr({targetX:0,targetY:U.value.height/2-U.value.top,targetW:U.value.width/2+U.value.left,targetH:U.value.height/2+U.value.top,side:`bl`});break;default:W.value.startX=0,W.value.startY=0,W.value.width=U.value.width,W.value.height=U.value.height}A.value=!0}}}let nr=d(()=>{let e=P.value.graduations.steps,t=U.value.usableWidth/(e*2),n=U.value.top,r=[];for(let i=0;i<e;i+=1)r.push({x:U.value.padding+t*i,y:n+U.value.usableHeight*(i/e/2),height:U.value.usableHeight*(1-i/e),width:U.value.usableWidth*(1-i/e),opacity:Math.round((i+1)/e*20)});return r}),J=d(()=>{let e=P.value.xAxis.max,t=P.value.xAxis.min,n=P.value.yAxis.max,r=P.value.yAxis.min;return P.value.xAxis.auto&&(e=Math.max(...rr.value.flatMap(e=>e.series.map(e=>e.x))),t=Math.min(...rr.value.flatMap(e=>e.series.map(e=>e.x)))),P.value.yAxis.auto&&(n=Math.max(...rr.value.flatMap(e=>e.series.map(e=>e.y))),r=Math.min(...rr.value.flatMap(e=>e.series.map(e=>e.y)))),{x:{max:e,min:t},y:{max:n,min:r}}}),Y=S([]),rr=d(()=>Ln.value.map((e,t)=>({...e,series:oe({data:e.series,threshold:M.value.downsample.threshold}),id:`cat_${t}_${k.value}`,color:ee(e.color)||Zn.value[t]||o[t]}))),ir=d(()=>rr.value.filter(e=>!Y.value.includes(e.id))),ar=d(()=>rr.value.map((e,t)=>({...e,shape:e.shape||`circle`,series:e.series.map(t=>({...t,x:or(t.x),y:sr(t.y),xValue:t.x,yValue:t.y,quadrantSide:_r({x:t.x,y:t.y}),categoryName:e.name,category:e,shape:e.shape,color:e.color}))}))),X=d(()=>(Wn.value&&Ln.value.forEach((e,t)=>{e.series.forEach((e,t)=>{[null,void 0].includes(e.x)&&ie({componentName:`VueUiQuadrant`,type:`datasetSerieAttribute`,property:`x`,key:`series`,index:t}),[null,void 0].includes(e.y)&&ie({componentName:`VueUiQuadrant`,type:`datasetSerieAttribute`,property:`y`,key:`series`,index:t})})}),ir.value.map((e,t)=>({...e,shape:e.shape||`circle`,color:e.color||Zn.value[t]||o[t],series:e.series.map(t=>({...t,category:e,x:or(t.x),y:sr(t.y),xValue:t.x,yValue:t.y,quadrantSide:_r({x:t.x,y:t.y}),categoryName:e.name,shape:e.shape,color:e.color,uid:te()}))}))));function or(e){if(e>=0){let t=e/J.value.x.max;return U.value.centerX+U.value.usableWidth/2*t}{let t=Math.abs(e)/Math.abs(J.value.x.min);return U.value.centerX-U.value.usableWidth/2*t}}function sr(e){if(e>=0){let t=e/J.value.y.max;return U.value.centerY+(1-U.value.usableHeight/2*t)}{let t=Math.abs(e)/Math.abs(J.value.y.min);return U.value.centerY-(1-U.value.usableHeight/2*t)}}let cr=d(()=>{let e=X.value.flatMap(e=>e.series.map(t=>({x:t.xValue,y:t.yValue,name:t.name,category:t.categoryName,quadrantSide:t.quadrantSide,sideName:F.value.quadrantLabels[t.quadrantSide].text,color:e.color,shape:e.shape}))),t=P.value.xAxis.name||`x`,n=P.value.yAxis.name||`y`;return{head:[M.value.translations.category,M.value.translations.item,t,n,M.value.translations.side],body:e.map(e=>[e.category,e.name,e.x,e.y,e.sideName||e.quadrantSide]),itsShapes:e.map(e=>({shape:e.shape,color:e.color})),tableData:e}}),lr=d(()=>{let e=cr.value.head,t=cr.value.tableData.map(e=>[{shape:e.shape,color:e.color,name:e.category},e.name,l(F.value.plotLabels.x.formatter,e.x,n({v:e.x,r:F.value.plotLabels.rounding})),l(F.value.plotLabels.y.formatter,e.y,n({v:e.y,r:F.value.plotLabels.rounding})),e.sideName||e.quadrantSide]);return{head:e,body:t,a11yBody:t.map(e=>e.map((e,t)=>t===0?e.name??``:e)),config:{th:{backgroundColor:M.value.table.th.backgroundColor,color:M.value.table.th.color,outline:M.value.table.th.outline},td:{backgroundColor:M.value.table.td.backgroundColor,color:M.value.table.td.color,outline:M.value.table.td.outline},breakpoint:M.value.table.responsiveBreakpoint},colNames:e}});function ur(){Y.value.length?Y.value=[]:fr.value.forEach(e=>{Y.value.push(e.id)}),gn(`selectLegend`,Er())}function dr(e){Y.value.includes(e)?Y.value=Y.value.filter(t=>t!==e):Y.value.push(e),gn(`selectLegend`,Er())}let fr=d(()=>ar.value.map(e=>({name:e.name,shape:e.shape,color:e.color,id:e.id,opacity:Y.value.includes(e.id)?.5:1,segregate:()=>dr(e.id),isSegregated:Y.value.includes(e.id)})));function pr(e){return fr.value.length?fr.value.find(t=>t.name===e)||(Wn.value&&console.warn(`VueUiQuadrant - Series name not found "${e}"`),null):(Wn.value&&console.warn(`VueUiQuadrant - There are no series to show.`),null)}function mr(e){let t=pr(e);t!==null&&Y.value.includes(t.id)&&dr(t.id)}function hr(e){let t=pr(e);t!==null&&(Y.value.includes(t.id)||dr(t.id))}let gr=d(()=>({cy:`quadrant-div-legend`,backgroundColor:L.value.legend.backgroundColor,color:L.value.legend.color,fontSize:L.value.legend.fontSize,paddingBottom:12,fontWeight:L.value.legend.bold?`bold`:``}));function _r(e){switch(!0){case e.x>=0&&e.y>=0:return`tr`;case e.x>=0&&e.y<0:return`br`;case e.x<0&&e.y<0:return`bl`;case e.x<0&&e.y>=0:return`tl`;default:return``}}let Z=S(null),vr=S(null),yr=S(null);function br(){Z.value=null,vr.value=null,An.value=null,jn.value=null,_n.value=!1}function xr(e){if(!z.value||!e)return;let t=`[data-a11y-plot-id="${e}"]`,n=z.value.querySelector(t);if(!n)return;let r=n.getBoundingClientRect();Mn.value={x:r.left+r.width/2,y:r.top+r.height/2}}function Sr(e,t,r,i=`pointer`,o=null){M.value.events.datapointEnter&&M.value.events.datapointEnter({datapoint:t,seriesIndex:r}),Z.value=t.uid,vr.value={color:e.color,shape:e.shape},Nn.value=i,An.value=o,jn.value=t.uid,yr.value={datapoint:t,seriesIndex:r,series:X.value,config:M.value};let s=I.value.customFormat;if(a(s)&&ce(()=>s({seriesIndex:r,datapoint:t,series:X.value,config:M.value})))vn.value=s({seriesIndex:r,datapoint:t,series:X.value,config:M.value});else{let i=``;t.quadrantSide&&(i+=`<div style="color:${F.value.quadrantLabels[t.quadrantSide].color};font-weight:${F.value.quadrantLabels[t.quadrantSide].bold?`bold`:`400`}">${F.value.quadrantLabels[t.quadrantSide].text}</div>`),i+=`<div>${e.name}</div>`,i+=`<div style="padding-bottom:6px;border-bottom:1px solid ${I.value.borderColor};margin-bottom:3px">${t.name}</div>`,i+=`<div>${P.value.xAxis.name?P.value.xAxis.name:`x`}: <b>${l(F.value.plotLabels.x.formatter,t.xValue,n({v:t.xValue,r:I.value.roundingValue}),{datapoint:t,category:e,categoryIndex:r})}</b></div>`,i+=`<div>${P.value.yAxis.name?P.value.yAxis.name:`y`}: <b>${l(F.value.plotLabels.y.formatter,t.yValue,n({v:t.yValue,r:I.value.roundingValue}),{datapoint:t,category:e,categoryIndex:r})}</b></div>`,vn.value=`<div style="text-align:left;font-size:${I.value.fontSize}px">${i}</div>`}i===`keyboard`&&We(()=>{xr(t.uid)}),_n.value=!0}function Cr(e,t){M.value.events.datapointLeave&&M.value.events.datapointLeave({datapoint:e,seriesIndex:t}),(jn.value!==e.uid||Nn.value!==`keyboard`)&&(_n.value=!1,Z.value=null,vr.value=null)}function wr(e,t,n){M.value.events.datapointClick&&M.value.events.datapointClick({datapoint:t,seriesIndex:n});let r={category:e.name,shape:e.shape,itemName:t.name,x:t.xValue,y:t.yValue,quadrantSide:t.quadrantSide,sideName:F.value.quadrantLabels[t.quadrantSide].text};gn(`selectPlot`,r)}function Tr(e){if(!e)return;let t=X.value.flatMap(t=>t.series.filter(t=>t.quadrantSide===e).map(e=>({category:e.categoryName,itemName:e.name,x:e.xValue,y:e.yValue}))),n={quadrantSide:e,sideName:F.value.quadrantLabels[e].text,items:[...t]};gn(`selectSide`,n)}let Q=d(()=>({TL:{tl:{x:U.value.left+U.value.usableWidth/4-20,y:0,fill:F.value.quadrantLabels.tl.color},tr:{x:U.value.left+U.value.usableWidth/4,y:0,fill:F.value.quadrantLabels.tr.color},br:{x:U.value.left+U.value.usableWidth/4,y:20,fill:F.value.quadrantLabels.br.color},bl:{x:U.value.left+U.value.usableWidth/4-20,y:20,fill:F.value.quadrantLabels.bl.color},crosshairs:{horizontal:`M ${U.value.left+U.value.usableWidth/4-20},20 ${U.value.left+U.value.usableWidth/4+20},20`,vertical:`M ${U.value.left+U.value.usableWidth/4},0 ${U.value.left+U.value.usableWidth/4},40`}},TR:{tl:{x:U.value.centerX+U.value.usableWidth/4-20,y:0,fill:F.value.quadrantLabels.tl.color},tr:{x:U.value.centerX+U.value.usableWidth/4,y:0,fill:F.value.quadrantLabels.tr.color},br:{x:U.value.centerX+U.value.usableWidth/4,y:20,fill:F.value.quadrantLabels.br.color},bl:{x:U.value.centerX+U.value.usableWidth/4-20,y:20,fill:F.value.quadrantLabels.bl.color},crosshairs:{horizontal:`M ${U.value.centerX+U.value.usableWidth/4-20},20 ${U.value.centerX+U.value.usableWidth/4+20},20`,vertical:`M ${U.value.centerX+U.value.usableWidth/4},0 ${U.value.centerX+U.value.usableWidth/4},40`}},BR:{tl:{x:U.value.centerX+U.value.usableWidth/4-20,y:U.value.centerY-48,fill:F.value.quadrantLabels.tl.color},tr:{x:U.value.centerX+U.value.usableWidth/4,y:U.value.centerY-48,fill:F.value.quadrantLabels.tr.color},br:{x:U.value.centerX+U.value.usableWidth/4,y:U.value.centerY-28,fill:F.value.quadrantLabels.br.color},bl:{x:U.value.centerX+U.value.usableWidth/4-20,y:U.value.centerY-28,fill:F.value.quadrantLabels.bl.color},crosshairs:{horizontal:`M ${U.value.centerX+U.value.usableWidth/4-20},${U.value.centerY-28} ${U.value.centerX+U.value.usableWidth/4+20},${U.value.centerY-28}`,vertical:`M ${U.value.centerX+U.value.usableWidth/4},${U.value.centerY-48} ${U.value.centerX+U.value.usableWidth/4},${U.value.centerY-8}`}},BL:{tl:{x:U.value.left+U.value.usableWidth/4-20,y:U.value.centerY-48,fill:F.value.quadrantLabels.tl.color},tr:{x:U.value.left+U.value.usableWidth/4,y:U.value.centerY-48,fill:F.value.quadrantLabels.tr.color},br:{x:U.value.left+U.value.usableWidth/4,y:U.value.centerY-28,fill:F.value.quadrantLabels.br.color},bl:{x:U.value.left+U.value.usableWidth/4-20,y:U.value.centerY-28,fill:F.value.quadrantLabels.bl.color},crosshairs:{horizontal:`M ${U.value.left+U.value.usableWidth/4-20},${U.value.centerY-28} ${U.value.left+U.value.usableWidth/4+20},${U.value.centerY-28}`,vertical:`M ${U.value.left+U.value.usableWidth/4},${U.value.centerY-48} ${U.value.left+U.value.usableWidth/4},${U.value.centerY-8}`}}}));function Er(){return X.value.map(e=>({color:e.color,name:e.name,shape:e.shape,series:e.series.map(e=>({name:e.name,x:e.xValue,y:e.yValue,quadrantSide:e.quadrantSide,sideName:F.value.quadrantLabels[e.quadrantSide].text}))}))}function Dr(e=null){We(()=>{let t=[[L.value.title.text],[L.value.title.subtitle.text],[``]],n=cr.value.head,r=cr.value.body,a=t.concat([n]).concat(r),o=i(a);e?e(o):se({csvContent:o,title:L.value.title.text||`vue-ui-quadrant`})})}let Or=S(!1);function kr(e){Or.value=e,yn.value+=1}function Ar(){V.value.showTable=!V.value.showTable}function jr(){V.value.plotLabels.show=!V.value.plotLabels.show}function Mr(){V.value.showTooltip=!V.value.showTooltip}let Nr=S(!1);function Pr(){Nr.value=!Nr.value}let Fr=ye(j,()=>L.value.title.text),Ir=d(()=>Ce({config:M,style:L,mutableConfig:V,dialog:pn,accordion:cn,isFullscreen:Or,parent:j,maxWidth:800,isCursorPointer:R}));Xe(()=>V.value.showTable,e=>Se(e,M,On));function Lr(){V.value.showTable=!1,kn.value&&kn.value.setTableIconState(!1)}let Rr=d(()=>L.value.backgroundColor),zr=d(()=>L.value.legend),Br=d(()=>L.value.title),{isCallbackImaging:Vr,isCallbackSvg:Hr,generateSvg:Ur,onGenerateImage:Wr}=xe({svg:z,title:Br,legend:zr,legendItems:fr,backgroundColor:Rr,getSvgCallback:()=>M.value.userOptions.callbacks.svg,generateImage:Yn});async function Gr(){gn(`copyAlt`,{config:M.value,dataset:ir.value}),M.value.userOptions.callbacks.altCopy?await Promise.resolve(M.value.userOptions.callbacks.altCopy({config:M.value,dataset:ir.value})):console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.")}function Kr(){An.value=null,jn.value=null,Pn.value=!0}function qr(){br(),Pn.value=!1}function Jr(e){if(!z.value||Nr.value||document.activeElement!==z.value||!$.value.length)return;let t=e.key===`ArrowLeft`||e.key===`ArrowUp`,n=e.key===`ArrowRight`||e.key===`ArrowDown`,r=e.key===`Enter`||e.key===` `,i=e.key===`Escape`;if(!t&&!n&&!r&&!i)return;if(e.preventDefault(),e.stopPropagation(),i){br();return}if(r){if(An.value===null)return;let e=$.value[An.value];if(!e)return;wr(e.category,e.plot,e.categoryIndex);return}let a=An.value,o=Z.value?$.value.findIndex(e=>e.plot.uid===Z.value):null,s=a!==null&&a>=0&&a<$.value.length,c=o!==null&&o>=0&&o<$.value.length;s?(a+=n?1:-1,a<0&&(a=$.value.length-1),a>=$.value.length&&(a=0)):c?(a=n?o+1:o-1,a>=$.value.length&&(a=0),a<0&&(a=$.value.length-1)):a=n?0:$.value.length-1;let ee=$.value[a];ee&&Sr(ee.category,ee.plot,ee.categoryIndex,`keyboard`,a)}let Yr=d(()=>({headers:lr.value?.colNames??[],rows:lr.value?.a11yBody??[]})),$=d(()=>X.value.flatMap((e,t)=>e.series.map(n=>({category:e,plot:n,categoryIndex:t}))));return _e({getData:Er,getImage:Fr,generatePdf:Jn,generateCsv:Dr,generateImage:Yn,generateSvg:Ur,hideSeries:hr,showSeries:mr,toggleTable:Ar,toggleLabels:jr,toggleTooltip:Mr,toggleAnnotator:Pr,toggleFullscreen:kr,copyAlt:Gr}),(e,t)=>(x(),m(`div`,{class:v(`vue-data-ui-component vue-ui-quadrant ${Or.value?`vue-data-ui-wrapper-fullscreen`:``} ${M.value.useCssAnimation?``:`vue-ui-dna`}`),ref_key:`quadrantChart`,ref:j,id:`vue-ui-quadrant_${k.value}`,style:b(`font-family:${M.value.style.fontFamily};width:100%; text-align:center;background:${L.value.backgroundColor};${M.value.responsive?`height: 100%`:``}`),onMouseenter:t[14]||=()=>E(zn)(!0),onMouseleave:t[15]||=()=>{E(zn)(!1),Pn.value||br()}},[h(`div`,{id:`chart-instructions-${k.value}`,class:`sr-only`},[h(`p`,null,T(M.value.a11y.translations.keyboardNavigation),1)],8,$e),Yr.value?.rows?.length?(x(),f(Pe,{key:0,uid:k.value,head:Yr.value.headers,body:Yr.value.rows,notice:M.value.a11y.translations.tableAvailable,caption:M.value.a11y.translations.tableCaption},null,8,[`uid`,`head`,`body`,`notice`,`caption`])):p(``,!0),N.value.buttons.annotator?(x(),f(E(un),{key:1,showGroupActions:N.value.annotator?.showGroupActions??!0,svgRef:E(z),backgroundColor:L.value.backgroundColor,color:L.value.color,active:Nr.value,isCursorPointer:R.value,palette:N.value.annotatorPalette,onClose:Pr},Be({_:2},[C(E(Te),t=>({name:t,fn:D(n=>[w(e.$slots,t,y(_(E(we)(t,n))),void 0,!0)])}))]),1032,[`showGroupActions`,`svgRef`,`backgroundColor`,`color`,`active`,`isCursorPointer`,`palette`])):p(``,!0),Xn.value?(x(),m(`div`,{key:2,ref_key:`noTitle`,ref:Cn,class:`vue-data-ui-no-title-space`,style:`height:36px; width: 100%;background:transparent`},null,512)):p(``,!0),L.value.title.text?(x(),m(`div`,{key:3,ref_key:`chartTitle`,ref:bn,style:`width:100%;background:transparent;padding-bottom:12px`},[(x(),f(be,{key:`table_${wn.value}`,config:{title:{cy:`quadrant-title`,...L.value.title},subtitle:{cy:`quadrant-subtitle`,...L.value.title.subtitle}}},null,8,[`config`]))],512)):p(``,!0),h(`div`,{id:`legend-top-${k.value}`},null,8,et),N.value.show&&hn.value&&(E(Bn)||E(Rn))?(x(),f(E(dn),{ref_key:`userOptionsRef`,ref:kn,key:`user_options_${yn.value}`,backgroundColor:L.value.backgroundColor,color:L.value.color,isImaging:E(qn),isPrinting:E(Kn),uid:k.value,hasTooltip:N.value.buttons.tooltip&&I.value.show,hasPdf:N.value.buttons.pdf,hasImg:N.value.buttons.img,hasSvg:N.value.buttons.svg,hasXls:N.value.buttons.csv,hasTable:N.value.buttons.table,hasLabel:N.value.buttons.labels,hasFullscreen:N.value.buttons.fullscreen,hasAltCopy:N.value.buttons.altCopy,isFullscreen:Or.value,isTooltip:V.value.showTooltip,titles:{...N.value.buttonTitles},chartElement:j.value,position:N.value.position,hasAnnotator:N.value.buttons.annotator,isAnnotation:Nr.value,callbacks:N.value.callbacks,printScale:N.value.print.scale,tableDialog:M.value.table.useDialog,isCursorPointer:R.value,onToggleFullscreen:kr,onGeneratePdf:E(Jn),onGenerateCsv:Dr,onGenerateImage:E(Wr),onGenerateSvg:E(Ur),onToggleTable:Ar,onToggleLabels:jr,onToggleTooltip:Mr,onToggleAnnotator:Pr,onCopyAlt:Gr,style:b({visibility:E(Bn)?E(Rn)?`visible`:`hidden`:`visible`})},Be({_:2},[C(E(Ee)(e.$slots,`menuIcon optionTooltip optionPdf optionCsv optionImg optionSvg optionTable optionLabels optionFullscreen optionAnnotator optionAltCopy custom-menu-before custom-menu-after`),t=>({name:t,fn:D(n=>[w(e.$slots,t,y(_(E(De)(t,n))),void 0,!0)])}))]),1032,/* @__PURE__ */ `backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style`.split(`.`))):p(``,!0),h(`div`,tt,[(x(),m(`svg`,{ref_key:`svgRef`,ref:z,xmlns:E(ue),"aria-describedby":`chart-instructions-${k.value}`,class:v({"vue-data-ui-fullscreen--on":Or.value,"vue-data-ui-fulscreen--off":!Or.value}),viewBox:`${W.value.startX} ${W.value.startY} ${W.value.width} ${W.value.height}`,style:b(`max-width:100%;overflow:hidden;background:transparent;color:${L.value.color}`),id:`svg_${k.value}`,tabindex:`0`,onFocus:Kr,onBlur:qr,onKeydown:Jr},[He(E(fn)),w(e.$slots,`svg-underlayer`,{svg:{...U.value,isPrintingImg:E(Kn)||E(qn)||E(Vr),isPrintingSvg:E(Hr)}},void 0,!0),e.$slots[`chart-background`]?(x(),m(`foreignObject`,{key:0,x:W.value.startX,y:W.value.startY,width:W.value.width,height:W.value.height,style:{pointerEvents:`none`}},[w(e.$slots,`chart-background`,{},void 0,!0)],8,rt)):p(``,!0),h(`defs`,null,[(x(!0),m(u,null,C(X.value,(e,t)=>(x(),f(Me,{t:`radial`,cx:`50%`,cy:`50%`,r:`50%`,fx:`50%`,fy:`50%`,id:`quadrant_gradient_${k.value}_${t}`,key:`quadrant_gradient_${k.value}_${t}`,stops:[[`0%`,E(c)(E(ne)(e.color,.05),L.value.layout.areas.opacity),1],[`100%`,E(c)(e.color,L.value.layout.areas.opacity),1]]},null,8,[`id`,`stops`]))),128))]),P.value.graduations.show?(x(),m(`g`,it,[(x(!0),m(u,null,C(nr.value,e=>(x(),m(`rect`,{fill:P.value.graduations.fill?E(c)(P.value.graduations.color,e.opacity):`none`,x:e.x,y:e.y,height:e.height<=0?.001:e.height,width:e.width<=0?.001:e.width,"stroke-width":P.value.graduations.strokeWidth,stroke:P.value.graduations.stroke,rx:P.value.graduations.roundingForce},null,8,at))),256))])):p(``,!0),h(`line`,{x1:U.value.left,y1:U.value.centerY,x2:U.value.right,y2:U.value.centerY,stroke:P.value.stroke,"stroke-width":P.value.strokeWidth},null,8,ot),h(`line`,{x1:U.value.centerX,y1:U.value.top,x2:U.value.centerX,y2:U.value.bottom,stroke:P.value.stroke,"stroke-width":P.value.strokeWidth},null,8,st),P.value.showArrows?(x(),m(`g`,ct,[h(`polygon`,{points:`${U.value.right-8},${U.value.centerY-6} ${U.value.right},${U.value.centerY} ${U.value.right-8},${U.value.centerY+6}`,fill:P.value.stroke,stroke:`none`},null,8,lt),h(`polygon`,{points:`${U.value.left+8},${U.value.centerY-6} ${U.value.left},${U.value.centerY} ${U.value.left+8},${U.value.centerY+6}`,fill:P.value.stroke,stroke:`none`},null,8,ut),h(`polygon`,{points:`${U.value.centerX-6},${U.value.top+8} ${U.value.centerX},${U.value.top} ${U.value.centerX+6},${U.value.top+8}`,fill:P.value.stroke,stroke:`none`},null,8,dt),h(`polygon`,{points:`${U.value.centerX-6},${U.value.bottom-8} ${U.value.centerX},${U.value.bottom} ${U.value.centerX+6},${U.value.bottom-8}`,fill:P.value.stroke,stroke:`none`},null,8,ft)])):p(``,!0),F.value.quadrantLabels.show&&!A.value?(x(),m(`g`,pt,[F.value.quadrantLabels.tl.text?(x(),m(`text`,{key:0,x:0,y:U.value.top-U.value.padding/2,"text-anchor":`start`,fill:F.value.quadrantLabels.tl.color,"font-size":F.value.quadrantLabels.tl.fontSize,style:b(`font-weight:${F.value.quadrantLabels.tl.bold?`bold`:``}`),onClick:t[0]||=e=>Tr(`tl`)},T(F.value.quadrantLabels.tl.text),13,mt)):p(``,!0),F.value.quadrantLabels.tr.text?(x(),m(`text`,{key:1,x:U.value.width,y:U.value.top-U.value.padding/2,"text-anchor":`end`,fill:F.value.quadrantLabels.tr.color,"font-size":F.value.quadrantLabels.tr.fontSize,style:b(`font-weight:${F.value.quadrantLabels.tr.bold?`bold`:``}`),onClick:t[1]||=e=>Tr(`tr`)},T(F.value.quadrantLabels.tr.text),13,ht)):p(``,!0),F.value.quadrantLabels.br.text?(x(),m(`text`,{key:2,x:U.value.width,y:U.value.bottom+U.value.padding*.7,"text-anchor":`end`,fill:F.value.quadrantLabels.br.color,"font-size":F.value.quadrantLabels.br.fontSize,style:b(`font-weight:${F.value.quadrantLabels.br.bold?`bold`:``}`),onClick:t[2]||=e=>Tr(`br`)},T(F.value.quadrantLabels.br.text),13,gt)):p(``,!0),F.value.quadrantLabels.bl.text?(x(),m(`text`,{key:3,x:0,y:U.value.bottom+U.value.padding*.7,"text-anchor":`start`,fill:F.value.quadrantLabels.bl.color,"font-size":F.value.quadrantLabels.bl.fontSize,style:b(`font-weight:${F.value.quadrantLabels.bl.bold?`bold`:``}`),onClick:t[3]||=e=>Tr(`bl`)},T(F.value.quadrantLabels.bl.text),13,_t)):p(``,!0)])):p(``,!0),F.value.axisLabels.show?(x(),m(`g`,vt,[P.value.yAxis.show?(x(),m(`text`,{key:0,x:U.value.centerX,y:U.value.top-U.value.padding/6,"text-anchor":`middle`,"font-size":F.value.axisLabels.fontSize,fill:F.value.axisLabels.color.positive},T(E(l)(F.value.plotLabels.y.formatter,J.value.y.max,E(n)({v:J.value.y.max,r:F.value.plotLabels.rounding}))),9,yt)):p(``,!0),h(`text`,{x:U.value.centerX,y:U.value.top-U.value.padding/2,"text-anchor":`middle`,"font-size":F.value.axisLabels.fontSize,fill:F.value.axisLabels.color.positive},T(P.value.yAxis.name),9,bt),P.value.yAxis.show?(x(),m(`text`,{key:1,x:U.value.centerX,y:U.value.bottom+U.value.padding*.35,"text-anchor":`middle`,"font-size":F.value.axisLabels.fontSize,fill:F.value.axisLabels.color.negative},T(E(l)(F.value.plotLabels.y.formatter,J.value.y.min,E(n)({v:J.value.y.min,r:F.value.plotLabels.rounding}))),9,xt)):p(``,!0),P.value.xAxis.show?(x(),m(`text`,{key:2,id:`xLabelMin_${k.value}`,"text-anchor":`middle`,"font-size":F.value.axisLabels.fontSize,transform:`translate(${U.value.padding-F.value.axisLabels.fontSize}, ${U.value.height/2}), rotate(-90)`,fill:F.value.axisLabels.color.negative},T(E(l)(F.value.plotLabels.x.formatter,J.value.x.min,E(n)({v:J.value.x.min,r:F.value.plotLabels.rounding}))),9,St)):p(``,!0),P.value.xAxis.show?(x(),m(`text`,{key:3,id:`xLabelMax_${k.value}`,"text-anchor":`middle`,"font-size":F.value.axisLabels.fontSize,transform:`translate(${U.value.width-U.value.padding+F.value.axisLabels.fontSize}, ${U.value.height/2}), rotate(90)`,fill:F.value.axisLabels.color.positive},T(E(l)(F.value.plotLabels.x.formatter,J.value.x.max,E(n)({v:J.value.x.max,r:F.value.plotLabels.rounding}))),9,Ct)):p(``,!0),h(`text`,{id:`xLabelMaxName_${k.value}`,"text-anchor":`middle`,"font-size":F.value.axisLabels.fontSize,transform:`translate(${U.value.width-F.value.axisLabels.fontSize}, ${U.value.height/2}), rotate(90)`,fill:F.value.axisLabels.color.positive},T(P.value.xAxis.name),9,wt)])):p(``,!0),L.value.layout.areas.show?(x(),m(`g`,Tt,[(x(!0),m(u,null,C(X.value,(e,t)=>(x(),m(`g`,null,[e.series.length>2?(x(),m(`polygon`,{key:0,"data-cy-quadrant-area":``,fill:L.value.layout.areas.useGradient?`url(#quadrant_gradient_${k.value}_${t})`:E(c)(e.color,L.value.layout.areas.opacity),points:E(r)(e)},null,8,Et)):p(``,!0)]))),256))])):p(``,!0),h(`g`,null,[h(`rect`,{onClick:t[4]||=e=>q(`TL`),x:U.value.left,y:U.value.top,width:U.value.usableWidth/2<=0?.001:U.value.usableWidth/2,height:U.value.usableHeight/2<=0?.001:U.value.usableHeight/2,fill:`transparent`,class:v({"vue-data-ui-zoom-plus":!A.value&&K.value,"vue-data-ui-zoom-minus":A.value&&K.value})},null,10,Dt),h(`rect`,{onClick:t[5]||=e=>q(`TR`),x:U.value.centerX,y:U.value.top,width:U.value.usableWidth/2<=0?.001:U.value.usableWidth/2,height:U.value.usableHeight/2<=0?.001:U.value.usableHeight/2,fill:`transparent`,class:v({"vue-data-ui-zoom-plus":!A.value&&K.value,"vue-data-ui-zoom-minus":A.value&&K.value})},null,10,Ot),h(`rect`,{onClick:t[6]||=e=>q(`BR`),x:U.value.centerX,y:U.value.centerY,width:U.value.usableWidth/2<=0?.001:U.value.usableWidth/2,height:U.value.usableHeight/2<=0?.001:U.value.usableHeight/2,fill:`transparent`,class:v({"vue-data-ui-zoom-plus":!A.value&&K.value,"vue-data-ui-zoom-minus":A.value&&K.value})},null,10,kt),h(`rect`,{onClick:t[7]||=e=>q(`BL`),x:U.value.left,y:U.value.centerY,width:U.value.usableWidth/2<=0?.001:U.value.usableWidth/2,height:U.value.usableHeight/2<=0?.001:U.value.usableHeight/2,fill:`transparent`,class:v({"vue-data-ui-zoom-plus":!A.value&&K.value,"vue-data-ui-zoom-minus":A.value&&K.value})},null,10,At)]),F.value.plotLabels.showAsTag?(x(),m(u,{key:7},[V.value.plotLabels.show?(x(),m(`g`,Lt,[(x(!0),m(u,null,C(X.value,(e,t)=>(x(),m(u,null,[(x(!0),m(u,null,C(e.series,n=>(x(),m(`foreignObject`,{style:{overflow:`visible`},height:`10`,width:`100`,x:n.x-50,y:n.y-F.value.plotLabels.fontSize,onMouseover:r=>Sr(e,n,t),onMouseleave:e=>Cr(n,t),onClick:r=>wr(e,n,t)},[h(`div`,{style:b(`color:${E(le)(e.color)};margin: 0 auto; font-size:${F.value.plotLabels.fontSize}px; text-align:center;background:${e.color}; padding: 2px 4px; border-radius: 12px; height: fit-content;`)},T(n.name),5)],40,Rt))),256))],64))),256))])):p(``,!0)],64)):(x(),m(u,{key:6},[(x(!0),m(u,null,C(X.value,(t,n)=>(x(),m(`g`,null,[e.$slots.datapoint&&!E(In)?(x(!0),m(u,{key:0},C(t.series,r=>(x(),m(`g`,{key:r.uid},[(x(),m(`foreignObject`,{x:r.x-1,y:r.y-1,width:`2`,height:`2`,style:{overflow:`visible`,"pointer-events":`none`},onMouseenter:e=>Sr(t,r,n),onMouseleave:e=>Cr(r,n),onClick:e=>wr(t,r,n)},[w(e.$slots,`datapoint`,Ue({ref_for:!0},{datapoint:{...r,onEnter:()=>Sr(t,r,n),onLeave:()=>Cr(r,n),onClick:()=>wr(t,r,n),isSelected:Z.value&&r.uid===Z.value}}),void 0,!0)],40,jt)),h(`circle`,{"data-a11y-plot-id":r.uid,cx:r.x,cy:r.y,r:Math.max(L.value.layout.plots.radius/(A.value?1.5:1),10),fill:`transparent`,style:{"pointer-events":`none`}},null,8,Mt)]))),128)):e.$slots.datapointSvg&&!E(In)?(x(!0),m(u,{key:1},C(t.series,r=>(x(),m(`g`,{key:r.uid},[w(e.$slots,`datapointSvg`,Ue({ref_for:!0},{datapoint:{...r,onEnter:()=>Sr(t,r,n),onLeave:()=>Cr(r,n),onClick:()=>wr(t,r,n),isSelected:Z.value&&r.uid===Z.value}}),void 0,!0)]))),128)):(x(!0),m(u,{key:2},C(t.series,(e,r)=>(x(),m(`g`,{key:e.uid},[He(ke,{color:t.color,isSelected:Z.value&&e.uid===Z.value,plot:e,radius:L.value.layout.plots.radius/(A.value?1.5:1),shape:t.shape,stroke:L.value.layout.plots.outline?L.value.layout.plots.outlineColor:`none`,strokeWidth:L.value.layout.plots.outlineWidth,onMouseenter:r=>Sr(t,e,n,`pointer`),onMouseleave:t=>Cr(e,n),onClick:r=>wr(t,e,n)},null,8,[`color`,`isSelected`,`plot`,`radius`,`shape`,`stroke`,`strokeWidth`,`onMouseenter`,`onMouseleave`,`onClick`]),h(`circle`,{"data-dom-to-png-ignore":``,"data-a11y-plot-id":e.uid,cx:e.x,cy:e.y,r:Math.max(L.value.layout.plots.radius/(A.value?1.5:1),10),fill:`transparent`,style:{"pointer-events":`none`}},null,8,Nt)]))),128))]))),256)),V.value.plotLabels.show?(x(),m(`g`,Pt,[(x(!0),m(u,null,C(X.value,e=>(x(),m(`g`,null,[(x(!0),m(u,null,C(e.series,e=>(x(),m(`g`,null,[String(e.name).includes(`
2
+ `)?(x(),m(`text`,{key:1,x:e.x,y:e.y+F.value.plotLabels.offsetY+L.value.layout.plots.radius,"text-anchor":`middle`,"font-size":F.value.plotLabels.fontSize/(A.value?1.5:1),fill:F.value.plotLabels.color,innerHTML:E(s)({content:String(e.name),fontSize:L.value.layout.labels.plotLabels.fontSize/(A.value?1.5:1),fill:L.value.layout.labels.plotLabels.color,x:e.x,y:e.y+L.value.layout.labels.plotLabels.offsetY+L.value.layout.plots.radius})},null,8,It)):(x(),m(`text`,{key:0,x:e.x,y:e.y+F.value.plotLabels.offsetY+L.value.layout.plots.radius,"text-anchor":`middle`,"font-size":F.value.plotLabels.fontSize/(A.value?1.5:1),fill:F.value.plotLabels.color},T(e.name),9,Ft))]))),256))]))),256))])):p(``,!0)],64)),A.value?(x(),m(`g`,zt,[G.value===`TL`?(x(),m(`polygon`,{key:0,points:`${U.value.left-1},${U.value.centerY} ${U.value.centerX},${U.value.centerY} ${U.value.centerX},${U.value.top-1} ${U.value.right},${U.value.top-1} ${U.value.right},${U.value.bottom} ${U.value.left-1},${U.value.bottom} ${U.value.left-1},${U.value.centerY}`,fill:L.value.backgroundColor,style:{opacity:`1`}},null,8,Bt)):p(``,!0),G.value===`TR`?(x(),m(`polygon`,{key:1,points:`${U.value.left},${U.value.top-1} ${U.value.centerX},${U.value.top-1} ${U.value.centerX},${U.value.centerY} ${U.value.right+1},${U.value.centerY} ${U.value.right+1},${U.value.bottom} ${U.value.left},${U.value.bottom} ${U.value.left},${U.value.top-1}`,fill:L.value.backgroundColor,style:{opacity:`1`}},null,8,Vt)):p(``,!0),G.value===`BR`?(x(),m(`polygon`,{key:2,points:`${U.value.left},${U.value.top} ${U.value.right+1},${U.value.top} ${U.value.right+1},${U.value.centerY} ${U.value.centerX},${U.value.centerY} ${U.value.centerX},${U.value.bottom+1} ${U.value.left},${U.value.bottom+1} ${U.value.left},${U.value.top}`,fill:L.value.backgroundColor,style:{opacity:`1`}},null,8,Ht)):p(``,!0),G.value===`BL`?(x(),m(`polygon`,{key:3,points:`${U.value.left-1},${U.value.top} ${U.value.right},${U.value.top} ${U.value.right},${U.value.bottom+1} ${U.value.centerX},${U.value.bottom+1} ${U.value.centerX},${U.value.centerY} ${U.value.left-1},${U.value.centerY} ${U.value.left-1},${U.value.top}`,fill:L.value.backgroundColor,style:{opacity:`1`}},null,8,Ut)):p(``,!0)])):p(``,!0),G.value&&!er.value?(x(),m(`g`,Wt,[h(`text`,{x:Qn.value.x,y:Qn.value.y-Qn.value.fontSize/1.5,"font-size":Qn.value.fontSize/1.5,fill:Qn.value.fill,"text-anchor":`middle`,"font-weight":Qn.value.bold?`bold`:`normal`},T(Qn.value.text),9,Gt)])):p(``,!0),A.value&&G.value?(x(),m(`g`,Kt,[h(`rect`,{x:Q.value[G.value].tl.x,y:Q.value[G.value].tl.y,height:`20`,width:`20`,fill:Q.value[G.value].tl.fill,style:b(`cursor: ${R.value?`pointer`:`default`}; opacity: ${G.value===`TL`?1:.2}`),onClick:t[8]||=e=>q(`TL`),class:v({"vue-ui-quadrant-mini-map-cell":!0,"vue-ui-quadrant-mini-map-cell-selectable":G.value!==`TL`})},null,14,qt),h(`rect`,{x:Q.value[G.value].tr.x,y:Q.value[G.value].tr.y,height:`20`,width:`20`,fill:Q.value[G.value].tr.fill,style:b(`cursor: ${R.value?`pointer`:`default`}; opacity: ${G.value===`TR`?1:.2}`),onClick:t[9]||=e=>q(`TR`),class:v({"vue-ui-quadrant-mini-map-cell":!0,"vue-ui-quadrant-mini-map-cell-selectable":G.value!==`TR`})},null,14,Jt),h(`rect`,{x:Q.value[G.value].br.x,y:Q.value[G.value].br.y,height:`20`,width:`20`,fill:Q.value[G.value].br.fill,style:b(`cursor: ${R.value?`pointer`:`default`}; opacity: ${G.value===`BR`?1:.2}`),onClick:t[10]||=e=>q(`BR`),class:v({"vue-ui-quadrant-mini-map-cell":!0,"vue-ui-quadrant-mini-map-cell-selectable":G.value!==`BR`})},null,14,Yt),h(`rect`,{x:Q.value[G.value].bl.x,y:Q.value[G.value].bl.y,height:`20`,width:`20`,fill:Q.value[G.value].bl.fill,style:b(`cursor: ${R.value?`pointer`:`default`}; opacity: ${G.value===`BL`?1:.2}`),onClick:t[11]||=e=>q(`BL`),class:v({"vue-ui-quadrant-mini-map-cell":!0,"vue-ui-quadrant-mini-map-cell-selectable":G.value!==`BL`})},null,14,Xt),h(`path`,{class:`vue-ui-quadrant-minimap-crosshairs`,stroke:L.value.backgroundColor,"stroke-width":1,d:Q.value[G.value].crosshairs.horizontal},null,8,Zt),h(`path`,{class:`vue-ui-quadrant-minimap-crosshairs`,stroke:L.value.backgroundColor,"stroke-width":1,d:Q.value[G.value].crosshairs.vertical},null,8,Qt)])):p(``,!0),w(e.$slots,`svg`,{svg:{...U.value,isPrintingImg:E(Kn)||E(qn)||E(Vr),isPrintingSvg:E(Hr)}},void 0,!0)],46,nt)),e.$slots.hint?(x(),m(`div`,$t,[w(e.$slots,`hint`,y(_({hint:M.value.a11y.translations.keyboardNavigation,isVisible:Pn.value})),void 0,!0)])):p(``,!0)]),e.$slots.watermark?(x(),m(`div`,en,[w(e.$slots,`watermark`,y(_({isPrinting:E(Kn)||E(qn)||E(Vr)||E(Hr)})),void 0,!0)])):p(``,!0),h(`div`,{id:`legend-bottom-${k.value}`},null,8,tn),Dn.value&&(L.value.legend.show||e.$slots.legend)?(x(),f(ze,{key:6,to:L.value.legend.position===`top`?`#legend-top-${k.value}`:`#legend-bottom-${k.value}`},[h(`div`,{ref_key:`chartLegend`,ref:xn},[w(e.$slots,`legend`,{legend:fr.value},()=>[L.value.legend.show?(x(),f(Le,{key:`legend_${En.value}`,legendSet:fr.value,config:gr.value,isCursorPointer:R.value,onClickMarker:t[12]||=({legend:e})=>dr(e.id)},{item:D(({legend:e})=>[E(In)?p(``,!0):(x(),m(`div`,{key:0,onClick:t=>dr(e.id),style:b(`opacity:${Y.value.includes(e.id)?.5:1}`)},T(e.name),13,nn))]),legendToggle:D(()=>[fr.value.length>2&&L.value.legend.selectAllToggle.show&&!E(In)?(x(),f(Ne,{key:0,backgroundColor:L.value.legend.selectAllToggle.backgroundColor,color:L.value.legend.selectAllToggle.color,fontSize:L.value.legend.fontSize,checked:Y.value.length>0,isCursorPointer:R.value,onToggle:ur},null,8,[`backgroundColor`,`color`,`fontSize`,`checked`,`isCursorPointer`])):p(``,!0)]),_:1},8,[`legendSet`,`config`,`isCursorPointer`])):p(``,!0)],!0)],512)],8,[`to`])):p(``,!0),e.$slots.source?(x(),m(`div`,{key:7,ref_key:`source`,ref:Sn,dir:`auto`},[w(e.$slots,`source`,{},void 0,!0)],512)):p(``,!0),He(E(on),{teleportTo:I.value.teleportTo,show:V.value.showTooltip&&_n.value,backgroundColor:I.value.backgroundColor,color:I.value.color,borderRadius:I.value.borderRadius,borderColor:I.value.borderColor,borderWidth:I.value.borderWidth,fontSize:I.value.fontSize,backgroundOpacity:I.value.backgroundOpacity,position:I.value.position,offsetX:I.value.offsetX,offsetY:I.value.offsetY,parent:j.value,content:vn.value,isFullscreen:Or.value,isCustom:I.value.customFormat&&typeof I.value.customFormat==`function`,smooth:I.value.smooth,backdropFilter:I.value.backdropFilter,smoothForce:I.value.smoothForce,smoothSnapThreshold:I.value.smoothSnapThreshold,isA11yMode:Nn.value===`keyboard`,a11yPosition:Mn.value},{"tooltip-before":D(()=>[w(e.$slots,`tooltip-before`,y(_({...yr.value})),void 0,!0)]),tooltip:D(()=>[w(e.$slots,`tooltip`,y(_({...yr.value})),void 0,!0)]),"tooltip-after":D(()=>[w(e.$slots,`tooltip-after`,y(_({...yr.value})),void 0,!0)]),default:D(()=>[I.value.showShape?(x(),m(`svg`,rn,[He(ke,{plot:{x:10,y:10},shape:vr.value.shape,color:vr.value.color,radius:8,stroke:L.value.layout.plots.outline?L.value.layout.plots.outlineColor:`none`,"stroke-width":L.value.layout.plots.outlineWidth},null,8,[`shape`,`color`,`stroke`,`stroke-width`])])):p(``,!0)]),_:3},8,[`teleportTo`,`show`,`backgroundColor`,`color`,`borderRadius`,`borderColor`,`borderWidth`,`fontSize`,`backgroundOpacity`,`position`,`offsetX`,`offsetY`,`parent`,`content`,`isFullscreen`,`isCustom`,`smooth`,`backdropFilter`,`smoothForce`,`smoothSnapThreshold`,`isA11yMode`,`a11yPosition`]),hn.value&&N.value.buttons.table?(x(),f(qe(Ir.value.component),Ue({key:8},Ir.value.props,{ref_key:`tableUnit`,ref:On,onClose:Lr}),Be({content:D(()=>[(x(),f(E(ln),{key:`table_${Tn.value}`,colNames:lr.value.colNames,head:lr.value.head,body:lr.value.body,config:lr.value.config,title:M.value.table.useDialog?``:Ir.value.title,withCloseButton:!M.value.table.useDialog,isCursorPointer:R.value,onClose:Lr},{th:D(({th:e})=>[Ve(T(e),1)]),td:D(({td:e})=>[h(`div`,{innerHTML:e.name||e},null,8,an)]),_:1},8,[`colNames`,`head`,`body`,`config`,`title`,`withCloseButton`,`isCursorPointer`]))]),_:2},[M.value.table.useDialog?{name:`title`,fn:D(()=>[Ve(T(Ir.value.title),1)]),key:`0`}:void 0,M.value.table.useDialog?{name:`actions`,fn:D(()=>[h(`button`,{tabindex:`0`,class:`vue-ui-user-options-button`,onClick:t[13]||=e=>Dr(N.value.callbacks.csv),style:b({cursor:R.value?`pointer`:`default`})},[He(E(sn),{name:`fileCsv`,stroke:Ir.value.props.color},null,8,[`stroke`])],4)]),key:`1`}:void 0]),1040)):p(``,!0),w(e.$slots,`skeleton`,{},()=>[E(In)?(x(),f(me,{key:0})):p(``,!0)],!0)],46,Qe))}},[[`__scopeId`,`data-v-cd89eec6`]]);export{Ze as n,on as t};
@@ -0,0 +1,17 @@
1
+ import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./useConfig-D3ZfFSE5.js";import{$ as n,Dt as r,Ht as i,It as a,J as o,Kt as s,P as c,S as ee,X as l,_ as te,at as ne,b as u,et as re,f as d,h as ie,i as f,in as ae,nn as oe,p as se,pt as ce,t as le,w as ue,zt as de}from"./lib-rPeBMZrn.js";import{n as fe,t as pe}from"./BaseScanner-8NdoBs7B.js";import{n as me,t as he}from"./useHints-C-TwxM0Y.js";import{t as ge}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as _e}from"./useNestedProp-DnGoh-XS.js";import{t as ve}from"./useThemeCheck-BKNRbGeC.js";import{t as ye}from"./img-D4RQwASc.js";import{t as be}from"./useChartExport-BZts4KFb.js";import{n as xe,t as Se}from"./annotationSlots-RvQBEO9-.js";import{n as Ce,t as we}from"./userOptionsSlots-DYuo-E5m.js";import{t as Te}from"./useTimeLabels-Das5O74F.js";import{t as Ee}from"./usePrinter-DVf3YcG5.js";import{t as De}from"./useTransitions-ChGGrtrv.js";import{t as Oe}from"./useStableElementSize-CegFbRlF.js";import{t as ke}from"./useSvgLabelLayout-42Kats14.js";import{t as Ae}from"./useTimeLabelCollider-BTybMUFi.js";import{t as je}from"./useResponsive-CENUxfEL.js";import{t as Me}from"./SlicerPreview-DYuyE9u9.js";import{t as Ne}from"./BaseLegendToggle-aT9fOoGO.js";import{t as Pe}from"./A11yDataTable-DWNlWXzs.js";import{t as Fe}from"./useChartAccessibility-DOMuYJfm.js";import{t as Ie}from"./annotationViewport-X8fvs7pz.js";import{t as Le}from"./vue_ui_quick_chart-BRfcRW6Z.js";import{Fragment as p,Teleport as Re,computed as m,createBlock as ze,createCommentVNode as h,createElementBlock as g,createElementVNode as _,createSlots as Be,createVNode as Ve,defineAsyncComponent as He,guardReactiveProps as Ue,mergeProps as We,nextTick as Ge,normalizeClass as v,normalizeProps as Ke,normalizeStyle as y,onBeforeUnmount as qe,onMounted as Je,openBlock as b,ref as x,renderList as S,renderSlot as C,shallowRef as Ye,toDisplayString as w,toRefs as Xe,unref as T,watch as Ze,watchEffect as Qe,withCtx as $e}from"vue";var E={LINE:`LINE`,BAR:`BAR`,DONUT:`DONUT`},et=[`SERIE`,`SERIES`,`DATA`,`VALUE`,`VALUES`,`NUM`];function tt({dataset:e,barLineSwitch:t=6,debug:n=!0}){let r=null,i=null,a=0;if((typeof e==`number`||typeof e==`string`)&&n&&console.warn(`The provided dataset (${e}) is not sufficient to build a chart`),rt(e)&&(D(e)&&(r=e.length<t?E.BAR:E.LINE,i=e,a=e.length),it(e))){if(!ot(e))return n&&console.warn(`The objects in the dataset array have a different data structure. Either keys or value types are different.`),!1;let o=Object.keys(e[0]),s=Object.values(e[0]);if(!o.some(e=>st(e)))return n&&console.warn(`The data type of the dataset objects in the array must contain one of the following keys: DATA, SERIES, VALUE, VALUES, NUM. Casing is not important.`),!1;ct(s,e=>typeof e==`number`)&&(r=E.DONUT,i=e),ct(s,e=>Array.isArray(e)&&D(e))&&(r=lt(e)>t?E.LINE:E.BAR,a=lt(e),i=e.map(e=>({...e,data:ut(e,e=>D(e))}))),e=e.map(e=>O(e)),i=i.map(e=>O(e))}return{dataset:e,type:r,usableDataset:i,maxSeriesLength:a}}function nt(e){return!e||rt(e)&&!e.length}function rt(e){return Array.isArray(e)}function D(e){if(!rt(e)||nt(e))return!1;let t=e.map(e=>Number(e));return![...new Set(t.flatMap(e=>typeof e==`number`&&!isNaN(e)))].includes(!1)}function it(e){return!rt(e)||nt(e)||[...new Set(e.flatMap(e=>typeof e==`object`&&!Array.isArray(e)))].includes(!1)?!1:!e.map(e=>Object.keys(e).length>0).includes(!1)}function at(e,t){let n=Object.keys(e).sort(),r=Object.keys(t).sort();if(n.length!==r.length)return!1;for(let i=0;i<n.length;i+=1){let a=n[i],o=r[i];if(a!==o||typeof e[a]!=typeof t[o])return!1}return!0}function ot(e){if(e.length<=1)return!0;for(let t=0;t<e.length;t+=1)for(let n=t+1;n<e.length;n+=1)if(!at(e[t],e[n]))return!1;return!0}function st(e){return et.includes(e.toUpperCase())}function ct(e,t){let n=[];for(let r=0;r<e.length;r+=1)n.push(t(e[r]));return n.includes(!0)}function lt(e){return Math.max(...[...e].flatMap(e=>Object.values(e).filter(e=>D(e)).map(e=>e.length)))}function ut(e,t){return Object.values(e).filter(e=>t(e))[0]}function O(e){let t={};for(let n in e)e.hasOwnProperty(n)&&(t[n.toUpperCase()]=e[n]);return t}var k=/* @__PURE__ */ e({default:()=>Rn}),dt=[`id`],ft=[`id`],pt=[`id`],mt={style:{position:`relative`}},ht=[`xmlns`,`aria-describedby`,`viewBox`],gt=[`x`,`y`,`width`,`height`],_t=[`x`,`y`,`width`,`height`],vt=[`width`,`height`],yt=[`id`],bt=[`id`],xt=[`id`],St=[`flood-color`],Ct={key:0,class:`donut-label-connectors`},wt=[`d`,`stroke`,`stroke-width`,`filter`],Tt=[`cx`,`cy`,`r`,`fill`,`filter`],Et={class:`donut`},Dt=[`d`,`fill`,`stroke`,`stroke-width`,`filter`],Ot=[`d`,`onMouseenter`,`onMouseout`,`onClick`],kt={key:1,class:`donut-labels`},At=[`cx`,`cy`,`fill`,`stroke`,`filter`],jt=[`text-anchor`,`x`,`y`,`fill`,`font-size`,`filter`],Mt=[`text-anchor`,`x`,`y`,`fill`,`font-size`,`filter`],Nt={key:2,class:`donut-hollow`},Pt=[`x`,`y`,`font-size`,`fill`],Ft=[`x`,`y`,`font-size`,`fill`],It={key:0,class:`line-grid`},Lt=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],Rt=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],zt={key:1,class:`line-axis`},Bt=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],Vt=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],Ht=[`d`,`stroke`,`stroke-width`],Ut=[`transform`,`font-size`,`fill`],Wt={key:3,class:`periodLabels`},Gt=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],Kt={key:0},qt=[`font-size`,`text-anchor`,`fill`,`transform`],Jt=[`font-size`,`text-anchor`,`fill`,`transform`,`innerHTML`],Yt={class:`plots`},Xt=[`d`,`stroke`,`stroke-width`],Zt=[`d`,`stroke`,`stroke-width`],Qt=[`d`,`stroke`,`stroke-width`],$t=[`d`,`stroke`,`stroke-width`],en=[`cx`,`cy`,`fill`,`stroke`],tn={key:4,class:`dataLabels`},nn=[`font-size`,`fill`,`transform`],rn={key:5,class:`tooltip-traps`},an=[`x`,`y`,`height`,`width`,`fill`,`onMouseenter`,`onMouseleave`,`onClick`],on={key:0,class:`line-grid`},sn=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],cn=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],ln={key:1,class:`line-axis`},un=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],dn=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],fn=[`d`,`stroke`,`stroke-width`],pn=[`transform`,`font-size`,`fill`],mn={key:3,class:`periodLabels`},hn=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],gn={key:0},_n=[`font-size`,`text-anchor`,`fill`,`transform`],vn=[`font-size`,`text-anchor`,`fill`,`transform`,`innerHTML`],yn={class:`plots`},bn=[`x`,`width`,`height`,`y`,`fill`,`stroke`,`stroke-width`],xn={key:4,class:`dataLabels`},Sn=[`transform`,`font-size`,`fill`],Cn={key:5,class:`tooltip-traps`},wn=[`x`,`y`,`height`,`width`,`fill`,`onMouseenter`,`onMouseleave`,`onClick`],Tn={key:6,class:`axis-labels`},En=[`font-size`,`fill`,`x`,`y`],Dn=[`font-size`,`fill`,`x`,`y`],On=[`font-size`,`fill`,`transform`],kn=[`font-size`,`fill`,`transform`],An=[`x`,`y`,`width`,`height`,`fill`,`fill-opacity`,`stroke`,`stroke-opacity`,`stroke-width`,`stroke-dasharray`],jn={key:1,style:{position:`absolute`,top:`100%`,left:`0`,width:`100%`},"data-dom-to-png-ignore":``,"aria-hidden":`true`},Mn={key:5,class:`vue-data-ui-watermark`},Nn=[`id`],Pn=[`onClick`,`onKeydown`],Fn=[`onClick`,`onKeydown`],In=[`onClick`,`onKeydown`],Ln={key:1,class:`vue-ui-quick-chart-not-processable`},Rn=/*#__PURE__*/ ge({__name:`vue-ui-quick-chart`,props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,Object,String,Number],default(){return null}},zoomState:{type:Object,default:null}},emits:[`selectDatapoint`,`selectLegend`,`zoomStart`,`zoomEnd`,`zoomReset`,`update:zoomState`,`copyAlt`],setup(e,{expose:ge,emit:et}){let nt=He(()=>import(`./BaseIcon-fYK0iID8.js`).then(e=>e.n)),rt=He(()=>import(`./PackageVersion-DWlHsdPa.js`).then(e=>e.t)),at=He(()=>import(`./PenAndPaper-r50tK3S4.js`).then(e=>e.t)),ot=He(()=>import(`./Tooltip-C1q0Qoh7.js`)),st=He(()=>import(`./UserOptions-Em_JgDXM.js`).then(e=>e.n)),{vue_ui_quick_chart:ct}=t(),{isThemeValid:lt,warnInvalidTheme:ut}=ve(),O=e,k=x(null),Rn=x(null),zn=x(null),Bn=x(null),A=x(l()),j=x(!1),Vn=x(null),Hn=x(``),M=x(null),Un=x(null),Wn=x(null),N=x([]),Gn=x(0),Kn=x(0),qn=x(!1),Jn=x(null),Yn=x(null),Xn=x(null),Zn=x(null),Qn=x(null),$n=x(null),er=Ye(null),tr=x(!1),nr=x(0),rr=x(0),ir=x(!1);function ar(){er.value=k.value?.parentNode??null}function or(){return new Promise(e=>{requestAnimationFrame(()=>{requestAnimationFrame(e)})})}async function sr(){let e=++rr.value;tr.value=!1,await Ge(),await or(),await or(),e===rr.value&&(nr.value+=1,tr.value=!0)}function cr(){ir.value||(ir.value=!0,Ge(()=>{ir.value=!1,ar(),sr()}))}let lr=Oe({elementRef:er,minimumWidth:2,minimumHeight:2,stableFramesRequired:2,once:!1,onSizeAccepted:()=>{sr()}});x(`#FFFFFF`);let P=x(Cr());me({config:()=>P.value,dataset:()=>O.dataset,component:`VueUiQuickChart`,rules:[he.emptyArray,{test:()=>!0,message:[`👀 This is a swiss-knife component. If you need more control, consider using dedicated components:`,``,`▶️ VueUiXy for time series line and/or bars`,``,`▶️ VueUiDonut, VueUiWaffle, VueUiRings for proportions`]}]});let{transitionEnabled:F}=De({config:()=>P.value.transitions,dataset:()=>O.dataset}),ur=m(()=>P.value.debug),dr=m(()=>P.value.useCursorPointer),I=x(null),fr=x({x:0,y:0}),L=x(`pointer`),pr=x(!1),mr=m(()=>ae({dafaultConfig:{backgroundColor:`#99999930`,customPalette:[`#BABABA`],showDataLabels:!1,paletteStartIndex:0,showUserOptions:!1,showTooltip:!1,xAxisLabel:``,yAxisLabel:``,xyAxisStroke:`#999999`,xyGridStroke:`#99999950`,xyPeriods:[],xyShowScale:!1,xyPaddingLeft:6,xyPaddingBottom:12,zoomXy:!1,zoomStartIndex:null,zoomEndIndex:null},userConfig:P.value.skeletonConfig??{}})),{loading:hr,FINAL_DATASET:gr,manualLoading:_r}=fe({...Xe(O),FINAL_CONFIG:P,prepareConfig:Cr,skeletonDataset:O.config?.skeletonDataset??[1,2,3,5,8,13,21,34,55,89],skeletonConfig:ae({defaultConfig:P.value,userConfig:mr.value})}),{svgRef:R}=Fe({config:{text:P.value.title}}),vr=m(()=>P.value.showUserOptionsOnChartHover),yr=m(()=>P.value.keepUserOptionsStateOnChartLeave),br=x(!P.value.showUserOptionsOnChartHover),xr=x(!1);function Sr(e=!1){xr.value=e,vr.value&&(br.value=e)}function Cr(){let e=_e({userConfig:O.config,defaultConfig:ct}),t={},n=e.theme;if(n){if(!lt.value(e))ut(e),t=e;else{let r=_e({userConfig:Le[n]||O.config,defaultConfig:e});t={..._e({userConfig:O.config,defaultConfig:r}),customPalette:e.customPalette.length?e.customPalette:oe[n]||i}}}else t=e;return t}function wr(e){let t=re(e);return t?.tooltipPosition&&delete t.tooltipPosition,JSON.stringify(t)}let Tr=wr(O.config);Ze(()=>O.config,(e,t)=>{let n=wr(e),r=n!==Tr;Tr=n;let i=Cr();r?(hr.value||(P.value=i),P.value.responsive||(H.value.width=P.value.width,H.value.height=P.value.height),br.value=!P.value.showUserOptionsOnChartHover,Br(),Ir.value.showTooltip=P.value.showTooltip):(P.value.tooltipPosition=i.tooltipPosition,Ir.value.showTooltip=P.value.showTooltip)},{deep:!0}),Ze(()=>O.dataset,e=>{Array.isArray(e)&&e.length>0&&(_r.value=!1)},{immediate:!0});let Er=m(()=>ue(P.value.customPalette)),z=et,Dr=m(()=>{let e=tt({debug:ur.value,dataset:s(gr.value,[`serie`,`series`,`data`,`value`,`values`,`num`]),barLineSwitch:P.value.chartIsBarUnderDatasetLength});return!e&&ur.value&&console.error(`VueUiQuickChart : Dataset is not processable`),e}),B=x(Dr.value),Or=m(()=>!!B.value),V=m(()=>B.value?B.value.type:null),kr=m(()=>[E.BAR,E.LINE].includes(V.value)),Ar=m(()=>kr.value&&P.value.zoomXy&&Number(B.value?.maxSeriesLength??0)>1);Ze(()=>V.value,e=>{e||ne({componentName:`VueUiQuickChart`,type:`dataset`,debug:ur.value})},{immediate:!0});let{isPrinting:jr,isImaging:Mr,generatePdf:Nr,generateImage:Pr}=Ee({elementId:`${V.value}_${A.value}`,fileName:P.value.title||V.value,options:P.value.userOptionsPrint}),Fr=m(()=>P.value.showUserOptions&&!P.value.title),H=x({width:P.value.width,height:P.value.height}),Ir=x({showTooltip:P.value.showTooltip});Ze(P,()=>{Ir.value={showTooltip:P.value.showTooltip}},{immediate:!0});let U=Ye(null),Lr=Ye(null),Rr=x(!1),zr=0;Je(()=>{qn.value=!0,ar(),lr.start(),Br(),sr()});function Br(){de(O.dataset)||(_r.value=P.value.loading),P.value.responsive&&(U.value&&(Lr.value&&U.value.unobserve(Lr.value),U.value.disconnect()),U.value=new ResizeObserver(()=>{let{width:e,height:t}=je({chart:k.value,title:P.value.title?Rn.value:null,legend:P.value.showLegend?zn.value:null,slicer:Ar.value?Bn.value:null,source:Un.value,noTitle:Wn.value});cancelAnimationFrame(zr),zr=requestAnimationFrame(()=>{H.value.width=e,H.value.height=t,Rr.value=!0,cr()})}),Lr.value=k.value.parentNode,U.value.observe(Lr.value)),bi(),cr()}qe(()=>{cancelAnimationFrame(zr),lr.stop(),mi(),zi(),U.value&&(Lr.value&&U.value.unobserve(Lr.value),U.value.disconnect(),U.value=null,Lr.value=null)});let Vr=m(()=>{switch(V.value){case E.LINE:return`0 0 ${H.value.width<=0?10:H.value.width} ${H.value.height<=0?10:H.value.height}`;case E.BAR:return`0 0 ${H.value.width<=0?10:H.value.width} ${H.value.height<=0?10:H.value.height}`;case E.DONUT:return`0 0 ${H.value.width<=0?10:H.value.width} ${H.value.height<=0?10:H.value.height}`;default:return`0 0 ${H.value.width<=0?10:H.value.width} ${H.value.height<=0?10:H.value.height}`}});function Hr(e){return[...e].map(e=>e.value).reduce((e,t)=>e+t,0)}function Ur(e){return P.value.blurOnHover&&![null,void 0].includes(M.value)&&M.value!==e?`url(#blur_${A.value})`:``}function Wr(){N.value.length?N.value=[]:V.value===E.DONUT?G.value.legend.forEach(e=>{N.value.push(e.id)}):V.value===E.LINE?Z.value.legend.forEach(e=>{N.value.push(e.id)}):V.value===E.BAR&&Q.value.legend.forEach(e=>{N.value.push(e.id)}),V.value===E.DONUT?z(`selectLegend`,G.value.dataset):V.value===E.LINE?z(`selectLegend`,Z.value.dataset):V.value===E.BAR&&z(`selectLegend`,Q.value.dataset)}function Gr(e,t){N.value.includes(e)?N.value=N.value.filter(t=>t!==e):N.value.length<t&&N.value.push(e)}let Kr=x(null),qr=x(null),Jr=x(!1);function Yr(e,t){Jr.value=!0;let n=e.value,r=Dr.value.dataset.find((t,n)=>e.id===`donut_${n}`).VALUE;if(N.value.includes(e.id)){N.value=N.value.filter(t=>t!==e.id);function t(){n>r?(Jr.value=!1,cancelAnimationFrame(qr.value),B.value={...B.value,dataset:B.value.dataset.map((t,n)=>e.id===`donut_${n}`?{...t,value:r,VALUE:r}:t)},z(`selectLegend`,G.value.dataset)):(n+=r*.025,B.value={...B.value,dataset:B.value.dataset.map((t,r)=>e.id===`donut_${r}`?{...t,value:n,VALUE:n}:t)},qr.value=requestAnimationFrame(t))}t()}else if(t.length>1){function t(){n<r/100?(Jr.value=!1,cancelAnimationFrame(Kr.value),N.value.push(e.id),B.value={...B.value,dataset:B.value.dataset.map((t,n)=>e.id===`donut_${n}`?{...t,value:0,VALUE:0}:t)},z(`selectLegend`,G.value.dataset)):(n/=1.1,B.value={...B.value,dataset:B.value.dataset.map((t,r)=>e.id===`donut_${r}`?{...t,value:n,VALUE:n}:t)},Kr.value=requestAnimationFrame(t))}t()}else z(`selectLegend`,G.value.dataset)}let W=x(null);function Xr(e){W.value=e}let Zr=m(()=>P.value.donutThicknessRatio<.01?.01:P.value.donutThicknessRatio>.4?.4:P.value.donutThicknessRatio),G=m(()=>{if(V.value!==E.DONUT)return null;let e=B.value.dataset.map((e,t)=>({...e,value:e.VALUE||e.DATA||e.SERIE||e.VALUES||e.NUM||0,name:e.NAME||e.DESCRIPTION||e.TITLE||e.LABEL||`Serie ${t}`,id:`donut_${t}`})).map((e,t)=>({...e,color:e.COLOR?ee(e.COLOR):Er.value[t+P.value.paletteStartIndex]||i[t+P.value.paletteStartIndex]||i[(t+P.value.paletteStartIndex)%i.length],immutableValue:e.value}));function t(e,t){return n({v:isNaN(e.value/Hr(t))?0:e.value/Hr(t)*100,s:`%`,r:P.value.dataLabelRoundingPercentage})}function o(e){return e.proportion*100>P.value.donutHideLabelUnderPercentage}function s(e,t){let n=Dr.value.dataset.find((t,n)=>`donut_${n}`===e).VALUE;return Math.abs(String(Number(n.toFixed(0))).length-String(Number(t.toFixed(0))).length)}function c({datapoint:t,seriesIndex:i,triggerMode:a=`pointer`}){Vn.value={datapoint:t,seriesIndex:i,config:P.value,dataset:e},M.value=t.id,I.value=i,L.value=a;let o=P.value.tooltipCustomFormat;if(P.value.events.datapointEnter&&P.value.events.datapointEnter({datapoint:t,seriesIndex:i}),r(o)&&ce(()=>o({datapoint:t,seriesIndex:i,series:e,config:P.value})))Hn.value=o({datapoint:t,seriesIndex:i,series:e,config:P.value});else{let e=``;e+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${P.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`,e+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg>`,e+=`<b>${f(P.value.formatter,t.value,n({p:P.value.valuePrefix,v:t.value,s:P.value.valueSuffix,r:P.value.dataLabelRoundingValue}),{datapoint:t,seriesIndex:i})}</b>`,e+=`<span>(${n({v:t.proportion*100,s:`%`,r:P.value.dataLabelRoundingPercentage})})</span></div>`,Hn.value=`<div>${e}</div>`}j.value=!0}function l({datapoint:e,seriesIndex:t}){P.value.events.datapointLeave&&P.value.events.datapointLeave({datapoint:e,seriesIndex:t}),j.value=!1,M.value=null,W.value=null,I.value=null,L.value=`pointer`}function te({datapoint:e,seriesIndex:t}){P.value.events.datapointClick&&P.value.events.datapointClick({datapoint:e,seriesIndex:t}),z(`selectDatapoint`,e)}let ne={centerX:H.value.width/2,centerY:H.value.height/2},u=e.filter(e=>!N.value.includes(e.id)).map(e=>e.value||0).reduce((e,t)=>e+t,0),re=e.map((e,t)=>({...e,proportion:(e.value||0)/u,value:e.value||0,absoluteValue:Dr.value.dataset.find((t,n)=>`donut_${n}`===e.id).VALUE,shape:`circle`})),d=H.value.width/2,ie=H.value.height/2,ae=H.value.height*P.value.donutRadiusRatio;return{dataset:re.filter(e=>!N.value.includes(e.id)),legend:re,drawingArea:ne,displayArcPercentage:t,isArcBigEnough:o,useTooltip:c,killTooltip:l,selectDatapoint:te,getSpaces:s,total:u,cx:d,cy:ie,radius:ae,chart:a({series:e.filter(e=>!N.value.includes(e.id))},d,ie,ae,ae,1.99999,2,1,360,105.25,H.value.height*Zr.value)}}),K=x({start:0,end:B.value.maxSeriesLength}),Qr=x({...K.value}),$r=x(null),q=x(!1),ei=x(!1),ti=x(!1),J=x(!1),ni=x(!1),ri=x(null),Y=x(null),ii=x(null),ai=x(!1),oi=x({time:0,x:0,y:0,pointerType:null}),si={show:!1,selection:{fill:`#2D353C`,stroke:`transparent`,fillOpacity:.1,strokeOpacity:.5,strokeWidth:1,strokeDasharray:0}},ci=m(()=>{let e=P.value.dragToZoom??{};return{...si,...e,selection:{...si.selection,...e.selection??{}}}}),li=m(()=>kr.value&&ci.value.show&&q.value&&hi()>1&&!hr.value),ui=null,di={};function fi(e,t=K.value){if(!e||typeof e!=`object`)return null;let n=e.start!==void 0&&e.start!==null,r=e.end!==void 0&&e.end!==null;if(!n&&!r)return null;let i=Number(n?e.start:t.start),a=Number(r?e.end:t.end);return!Number.isFinite(i)||!Number.isFinite(a)?null:{start:i,end:a}}function pi(e){let t=fi(e);t&&z(`update:zoomState`,t)}function mi(){ui&&=(cancelAnimationFrame(ui),null),di={}}function hi(){let e=Number(B.value?.maxSeriesLength);return Number.isFinite(e)?Math.max(0,e):0}function gi(e,t=K.value.start){let n=hi();if(n<=0)return 0;let r=Math.max(0,Math.min(Number(t)||0,n-1)),i=Number(e);return Number.isFinite(i)?i>n?n:i<=r?Math.min(r+1,n):Math.max(0,i):Math.min(r+1,n)}function _i(){let e=hi();if(e<=0){K.value={start:0,end:0},Qr.value={...K.value},$r.value&&$r.value.setRangeValues(0,0);return}let t=Number(K.value.start),n=Number(K.value.end);Number.isFinite(t)||(t=0),Number.isFinite(n)||(n=e),t=Math.max(0,Math.min(t,e-1)),n=Math.max(t+1,Math.min(n,e)),K.value={start:t,end:n},Qr.value={start:t,end:n},$r.value&&$r.value.setRangeValues(t,n)}function vi(e){if(!kr.value)return null;let t=fi(e);return t?((t.start!==Number(K.value.start)||t.end!==Number(K.value.end))&&(mi(),K.value={start:t.start,end:t.end},Qr.value={...K.value},_i(),cr()),{start:Number(K.value.start),end:Number(K.value.end)}):null}function yi(e){let t=vi(e);return t?(pi(t),t):null}async function bi({applyControlledZoom:e=!0}={}){if(!ei.value){if(!kr.value)q.value=!1;else{ei.value=!0;try{await Ge(),await Ge();let{zoomStartIndex:t,zoomEndIndex:n}=P.value,r=hi();if(r<=0){K.value={start:0,end:0},Qr.value={...K.value},q.value=!1;return}let i=t==null?0:Number(t),a=n==null?r:gi(Number(n)+1,i);if(e&&fi(O.zoomState)){let e=fi(O.zoomState);i=e.start,a=e.end}ti.value=!0,K.value={start:i,end:a},Qr.value={start:i,end:a},_i(),q.value=!0,await Ge(),$r.value&&$r.value.setRangeValues(K.value.start,K.value.end)}finally{queueMicrotask(()=>{ti.value=!1}),ei.value=!1,cr()}}}}async function xi({applyControlledZoom:e=!1,publish:t=!1}={}){mi(),await bi({applyControlledZoom:e}),t&&(pi({start:Number(K.value.start),end:Number(K.value.end)}),z(`zoomReset`))}function Si(e){di={...di,...e},ui&&cancelAnimationFrame(ui),ui=requestAnimationFrame(()=>{let e={...K.value,...di};di={},ui=null,K.value=e,Qr.value={...e},_i(),pi({start:Number(K.value.start),end:Number(K.value.end)}),cr()})}function Ci(e){if(ei.value||ti.value)return;let t=Number(e);Number.isFinite(t)&&(z(`zoomStart`,{index:t,isZoom:t!==0}),(t!==K.value.start||di.end!==void 0)&&Si({start:t}))}function wi(e){if(ei.value||ti.value)return;let t=di.start===void 0?K.value.start:di.start,n=gi(Number(e),t);z(`zoomEnd`,{index:n,isZoom:n!==hi()}),(n!==K.value.end||di.start!==void 0)&&Si({end:n})}Ze([()=>O.zoomState,kr,()=>Number(B.value?.maxSeriesLength??0)],async([e,t,n])=>{!t||n<=0||!e||(q.value?vi(e):await bi({applyControlledZoom:!0}))},{deep:!0,immediate:!0}),Ze(Dr,async e=>{if(!e){q.value=!1;return}let t=B.value?.type,n=Number(B.value?.maxSeriesLength??0);B.value=e;let r=e.type,i=Number(e.maxSeriesLength??0);[E.BAR,E.LINE].includes(r)?(t!==r||n!==i?(mi(),q.value=!1,K.value={start:0,end:i},Qr.value={...K.value},Kn.value+=1,await Ge(),await bi({applyControlledZoom:!0})):O.zoomState&&vi(O.zoomState),cr()):(mi(),q.value=!1,cr())},{deep:!0});let Ti=m(()=>{if(!P.value.zoomMinimap.show||V.value===E.DONUT)return[];let e=[];D(B.value.dataset)&&(e=B.value.dataset),it(B.value.dataset)&&(e=B.value.dataset.map((e,t)=>({values:e.VALUE||e.DATA||e.SERIE||e.SERIES||e.VALUES||e.NUM||0,id:V.value===E.LINE?`line_${t}`:`bar_${t}`})).filter(e=>!N.value.includes(e.id)));let t=D(e)?e.length:Math.max(...e.map(e=>e.values.length)),n=[];if(D(e))n=e;else for(let r=0;r<t;r+=1)n.push(e.map(e=>e.values[r]||0).reduce((e,t)=>(e||0)+(t||0),0));let r=Math.min(...n);return n.map(e=>e+(r<0?Math.abs(r):0))}),{metrics:Ei,ready:Di,settling:X,update:Oi}=ke({svgRef:R,canMeasure:()=>(!P.value.responsive||Rr.value)&&(![E.LINE,E.BAR].includes(V.value)||Qi.value),initialMetrics:{scale:0,bottom:0,leftOverhang:0},measure:e=>({scale:e(Zn.value).textWidth,bottom:e(Xn.value).height,leftOverhang:e(Xn.value).leftOverhang})});function ki(){return Math.max(Ei.value.scale+4,Ei.value.leftOverhang-P.value.xyPaddingLeft)}let Ai=m(()=>Ei.value.bottom),Z=m(()=>{if(V.value!==E.LINE)return null;let e={height:H.value.height,width:H.value.width},t=ki(),a={left:t+P.value.xyPaddingLeft,top:P.value.xyPaddingTop,right:e.width-P.value.xyPaddingRight,bottom:e.height-P.value.xyPaddingBottom-Ai.value,width:Math.max(10,e.width-P.value.xyPaddingLeft-P.value.xyPaddingRight-t),height:Math.max(10,e.height-P.value.xyPaddingTop-P.value.xyPaddingBottom-Ai.value)},o=[];D(B.value.dataset)&&(o=[{values:B.value.dataset.slice(K.value.start,K.value.end),absoluteValues:B.value.dataset,absoluteIndices:B.value.dataset.map((e,t)=>t).slice(K.value.start,K.value.end),name:P.value.title,color:Er.value[P.value.paletteStartIndex]||i[P.value.paletteStartIndex],id:`line_0`}]),it(B.value.dataset)&&(o=B.value.dataset.map((e,t)=>({...e,values:e.VALUE||e.DATA||e.SERIE||e.SERIES||e.VALUES||e.NUM||0,name:e.NAME||e.DESCRIPTION||e.TITLE||e.LABEL||`Serie ${t}`,id:`line_${t}`})).map((e,t)=>({...e,color:e.COLOR?ee(e.COLOR):Er.value[t+P.value.paletteStartIndex]||i[t+P.value.paletteStartIndex]||i[(t+P.value.paletteStartIndex)%i.length],values:e.values.slice(K.value.start,K.value.end),absoluteValues:e.values,absoluteIndices:e.values.map((e,t)=>t).slice(K.value.start,K.value.end)})));let s={max:Math.max(...o.filter(e=>!N.value.includes(e.id)).flatMap(e=>e.values)),min:Math.min(...o.filter(e=>!N.value.includes(e.id)).flatMap(e=>e.values)),maxSeries:Math.max(...o.map(e=>e.values.length))},c=s.max===s.min?te(Math.min(s.min,0),s.min===0?1:Math.max(s.min,0),P.value.xyScaleSegments):te(s.min<0?s.min:0,s.max<0?0:s.max,P.value.xyScaleSegments),l=s.min<0?Math.abs(s.min):0,ne=s.max<0?a.top:a.bottom-l/(c.max+l)*a.height,u=a.width/s.maxSeries,re=c.ticks.map(e=>({y:a.bottom-a.height*((e+l)/(c.max+l)),x:a.left-8,value:e})),d=o.map((e,t)=>({...e,shape:`circle`,coordinates:e.values.map((e,t)=>({x:a.left+u*(t+1)-u/2,y:a.bottom-(e+l)/(c.max+l)*a.height,value:e}))})).map(e=>{let t=[];return e.coordinates.forEach(e=>{t.push(`${e.x},${e.y} `)}),{...e,linePath:t.join(` `)}});function ie(e){return o.map(t=>({...t,value:t.values[e],absoluteIndex:t.absoluteIndices[e]})).filter(e=>!N.value.includes(e.id))}function ae(e,t=`pointer`){if(J.value&&t===`pointer`)return;M.value=e,W.value=e,I.value=e,L.value=t;let i=ie(e);Vn.value={datapoint:i,seriesIndex:e,config:P.value,dataset:o};let a=P.value.tooltipCustomFormat;if(P.value.events.datapointEnter&&P.value.events.datapointEnter({datapoint:i,seriesIndex:e+K.value.start}),r(a)&&ce(()=>a({datapoint:i,seriesIndex:e,series:o,config:P.value})))Hn.value=a({datapoint:i,seriesIndex:e,series:o,config:P.value});else{let e=``;$.value[i[0].absoluteIndex]&&(e+=`<div style="border-bottom:1px solid ${P.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${$.value[i[0].absoluteIndex].text}</div>`),i.forEach((t,r)=>{e+=`
2
+ <div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
3
+ <svg viewBox="0 0 12 12" height="14" width="12"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg>
4
+ <span>${t.name}:</span>
5
+ <b>${f(P.value.formatter,t.value,n({p:P.value.valuePrefix,v:t.value,s:P.value.valueSuffix,r:P.value.dataLabelRoundingValue}),{datapoint:t,seriesIndex:r})}
6
+ </b>
7
+ </div>
8
+ `}),Hn.value=e}j.value=!0}function oe(e){let t=ie(e);P.value.events.datapointLeave&&P.value.events.datapointLeave({datapoint:t,seriesIndex:e+K.value.start}),M.value=null,W.value=null,j.value=!1,I.value=null,L.value=`pointer`}function se(e){let t=ie(e);P.value.events.datapointClick&&P.value.events.datapointClick({datapoint:t,seriesIndex:e+K.value.start}),z(`selectDatapoint`,t)}return{absoluteZero:ne,dataset:d.filter(e=>!N.value.includes(e.id)),legend:d,drawingArea:a,extremes:s,slotSize:u,yLabels:re,useTooltip:ae,killTooltip:oe,selectDatapoint:se}}),Q=m(()=>{if(V.value!==E.BAR)return null;let e={height:H.value.height,width:H.value.width},t=ki(),a={left:t+P.value.xyPaddingLeft,top:P.value.xyPaddingTop,right:e.width-P.value.xyPaddingRight,bottom:e.height-P.value.xyPaddingBottom-Ai.value,width:Math.max(10,e.width-P.value.xyPaddingLeft-P.value.xyPaddingRight-t),height:Math.max(10,e.height-P.value.xyPaddingTop-P.value.xyPaddingBottom-Ai.value)},o=[];D(B.value.dataset)&&(o=[{values:B.value.dataset.slice(K.value.start,K.value.end),absoluteValues:B.value.dataset,absoluteIndices:B.value.dataset.map((e,t)=>t).slice(K.value.start,K.value.end),name:P.value.title,color:Er.value[P.value.paletteStartIndex]||i[P.value.paletteStartIndex],id:`bar_0`}]),it(B.value.dataset)&&(o=B.value.dataset.map((e,t)=>({...e,values:e.VALUE||e.DATA||e.SERIE||e.SERIES||e.VALUES||e.NUM||0,name:e.NAME||e.DESCRIPTION||e.TITLE||e.LABEL||`Serie ${t}`,id:`bar_${t}`})).map((e,t)=>({...e,color:e.COLOR?ee(e.COLOR):Er.value[t+P.value.paletteStartIndex]||i[t+P.value.paletteStartIndex]||i[(t+P.value.paletteStartIndex)%i.length],values:e.values.slice(K.value.start,K.value.end),absoluteValues:e.values,absoluteIndices:e.values.map((e,t)=>t).slice(K.value.start,K.value.end)})));let s={max:Math.max(...o.filter(e=>!N.value.includes(e.id)).flatMap(e=>e.values))<0?0:Math.max(...o.filter(e=>!N.value.includes(e.id)).flatMap(e=>e.values))??1,min:Math.min(...o.filter(e=>!N.value.includes(e.id)).flatMap(e=>e.values))??0,maxSeries:Math.max(...o.filter(e=>!N.value.includes(e.id)).map(e=>e.values.length))??0},c=s.min===s.max?te(Math.min(s.min,0),s.min===0?1:Math.max(s.min,0),P.value.xyScaleSegments):te(s.min<0?s.min:0,s.max,P.value.xyScaleSegments),l=c.min<0?Math.abs(c.min):0,ne=a.bottom-l/(c.max+l)*a.height,u=a.width/s.maxSeries,re=c.ticks.map(e=>({y:a.bottom-a.height*((e+l)/(c.max+l)),x:a.left-8,value:e})),d=o.map((e,t)=>({...e,shape:`square`,coordinates:e.values.map((e,n)=>{let r=(e+l)/(s.max+l)*a.height,i=Math.abs(e)/Math.abs(s.min)*(a.height-ne),c=l/(s.max+l)*a.height,ee=u/o.filter(e=>!N.value.includes(e.id)).length-P.value.barGap/o.filter(e=>!N.value.includes(e.id)).length;return{x:a.left+u*n+ee*t+P.value.barGap/2,y:e>0?a.bottom-r:ne,height:e>0?r-c:i,value:e,width:ee}})})),ie=o.filter(e=>!N.value.includes(e.id)).map((e,t)=>({...e,coordinates:e.values.map((e,n)=>{let r=(e+l)/(s.max+l)*a.height,i=Math.abs(e)/(s.max+l)*a.height,c=l/(s.max+l)*a.height,ee=u/o.filter(e=>!N.value.includes(e.id)).length-P.value.barGap/o.filter(e=>!N.value.includes(e.id)).length;return{x:a.left+u*n+ee*t+P.value.barGap/2,y:e>0?a.bottom-r:ne,height:e>0?r-c:i,value:e,width:ee}})}));function ae(e){return o.map(t=>({...t,value:t.values[e],absoluteIndex:t.absoluteIndices[e]})).filter(e=>!N.value.includes(e.id))}function oe(e,t=`pointer`){if(J.value&&t===`pointer`)return;M.value=e,W.value=e,I.value=e,L.value=t;let i=ae(e);Vn.value={datapoint:i,seriesIndex:e,config:P.value,dataset:o};let a=P.value.tooltipCustomFormat;if(P.value.events.datapointEnter&&P.value.events.datapointEnter({datapoint:i,seriesIndex:e+K.value.start}),r(a)&&ce(()=>a({datapoint:i,seriesIndex:e,series:o,config:P.value})))Hn.value=a({point:i,seriesIndex:e,series:o,config:P.value});else{let e=``;$.value[i[0].absoluteIndex]&&(e+=`<div style="border-bottom:1px solid ${P.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${$.value[i[0].absoluteIndex].text}</div>`),i.forEach((t,r)=>{e+=`
9
+ <div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
10
+ <svg viewBox="0 0 12 12" height="14" width="12"><rect x=0 y="0" width="12" height="12" rx="1" stroke="none" fill="${t.color}"/></svg>
11
+ <span>${t.name}:</span>
12
+ <b>${f(P.value.formatter,t.value,n({p:P.value.valuePrefix,v:t.value,s:P.value.valueSuffix,r:P.value.dataLabelRoundingValue}),{datapoint:t,seriesIndex:r})}
13
+ </b>
14
+ </div>
15
+ `}),Hn.value=e}j.value=!0}function se(e){let t=ae(e);P.value.events.datapointLeave&&P.value.events.datapointLeave({datapoint:t,seriesIndex:e+K.value.start}),j.value=!1,M.value=null,W.value=null,I.value=null,L.value=`pointer`}function le(e){let t=ae(e);P.value.events.datapointClick&&P.value.events.datapointClick({datapoint:t,seriesIndex:e+K.value.start}),z(`selectDatapoint`,t)}return{absoluteZero:ne,dataset:ie.filter(e=>!N.value.includes(e.id)),absoluteDataset:ie,legend:d,drawingArea:a,extremes:s,slotSize:u,yLabels:re,useTooltip:oe,killTooltip:se,selectDatapoint:le}}),ji=m(()=>V.value===E.LINE?Z.value?.drawingArea??null:V.value===E.BAR?Q.value?.drawingArea??null:null),Mi=m(()=>V.value===E.LINE?Number(Z.value?.slotSize??0):V.value===E.BAR?Number(Q.value?.slotSize??0):0),Ni=m(()=>V.value===E.LINE?Number(Z.value?.extremes?.maxSeries??0):V.value===E.BAR?Number(Q.value?.extremes?.maxSeries??0):0),Pi=m(()=>{let e=ji.value;return!e||!J.value||ri.value==null||Y.value==null?null:{x:Math.min(ri.value,Y.value),y:e.top,width:Math.abs(Y.value-ri.value),height:e.height}}),Fi=m(()=>!q.value||!kr.value?!1:Number(K.value.start)!==0||Number(K.value.end)!==Number(hi()));function Ii(e){let t=R.value;if(!t)return null;if(t.createSVGPoint&&t.getScreenCTM){let n=t.createSVGPoint();n.x=e.clientX,n.y=e.clientY;let r=t.getScreenCTM();if(r){let e=n.matrixTransform(r.inverse());return{x:e.x,y:e.y}}}let n=t.getBoundingClientRect(),r=t.viewBox?.baseVal||{x:0,y:0,width:n.width,height:n.height},i=Math.min(n.width/r.width,n.height/r.height);if(!Number.isFinite(i)||i<=0)return null;let a=r.width*i,o=r.height*i,s=(n.width-a)/2,c=(n.height-o)/2;return{x:(e.clientX-n.left-s)/i+r.x,y:(e.clientY-n.top-c)/i+r.y}}function Li(e){let t=ji.value;return t?Math.min(Math.max(e,t.left),t.right):e}function Ri(){I.value=null,L.value=`pointer`,j.value=!1,M.value=null,W.value=null}function zi(e){let t=e?.pointerId==null?ii.value:e.pointerId;t!=null&&R.value?.hasPointerCapture?.(t)&&R.value.releasePointerCapture(t),J.value=!1,ri.value=null,Y.value=null,ii.value=null}function Bi(){ai.value=!0,setTimeout(()=>{ai.value=!1},0)}function Vi(e){ai.value&&(ai.value=!1,e.preventDefault(),e.stopPropagation())}function Hi(e){if(!li.value||!Fi.value||!e)return!1;let t=Date.now(),n=e.pointerType||`mouse`,r=oi.value,i=n===`touch`?450:350,a=n===`touch`?28:10,o=Math.hypot(e.clientX-r.x,e.clientY-r.y);return r.time>0&&r.pointerType===n&&t-r.time<=i&&o<=a?(oi.value={time:0,x:0,y:0,pointerType:null},Bi(),zi(e),Ri(),xi({applyControlledZoom:!1,publish:!0}),!0):(oi.value={time:t,x:e.clientX,y:e.clientY,pointerType:n},!1)}function Ui(e){let t=ji.value,n=Mi.value,r=Ni.value;if(!t||r<=0||!Number.isFinite(n)||n<=0)return null;let i=Math.floor((Li(e)-t.left)/n);return Math.max(0,Math.min(r-1,i))}function Wi(e,t){let n=Ui(e),r=Ui(t);if(n==null||r==null)return null;let i=Math.min(n,r),a=Math.max(n,r);return a<=i?null:{start:Number(K.value.start)+i,end:Number(K.value.start)+a+1}}function Gi(e){let t=yi(e);return t?(z(`zoomStart`,{index:t.start,isZoom:t.start!==0}),z(`zoomEnd`,{index:t.end,isZoom:t.end!==hi()}),t):null}function Ki(e){if(!li.value||ia.value||e.button!==void 0&&e.button!==0||ii.value!=null&&e.pointerId!==ii.value)return;let t=ji.value,n=Ii(e);if(!t||!n||n.x<t.left||n.x>t.right||n.y<t.top||n.y>t.bottom||Ni.value<=1)return;ni.value=!0,R.value?.focus?.({preventScroll:!0}),Ri();let r=Li(n.x);ii.value=e.pointerId,J.value=!0,ri.value=r,Y.value=r}function qi(e){if(!li.value||!J.value||ii.value!=null&&e.pointerId!==ii.value)return;let t=Ii(e);t&&(Y.value=Li(t.x),Ri(),ri.value!=null&&Math.abs(Y.value-ri.value)>=2&&!R.value?.hasPointerCapture?.(e.pointerId)&&R.value?.setPointerCapture?.(e.pointerId))}function Ji(e){if(!li.value||!J.value||ii.value!=null&&e.pointerId!==ii.value)return;let t=Ii(e);t&&(Y.value=Li(t.x));let n=ri.value,r=Y.value,i=ji.value;if((n==null||r==null?0:Math.abs(r-n))<Math.max(4,Number(i?.width??0)*.01)){if(Hi(e))return;zi(e);return}let a=Wi(Math.min(n,r),Math.max(n,r));a?(zi(e),Gi(a)&&(oi.value={time:0,x:0,y:0,pointerType:null},Ri(),Bi())):zi(e)}let Yi=m(()=>{let e=ji.value,t=H.value.width;return!e||t<=0||!P.value.zoomXyAutoFit?null:e.left/t}),Xi=m(()=>{let e=ji.value,t=H.value.width;return!e||t<=0||!P.value.zoomXyAutoFit?null:(t-e.right)/t}),Zi=m(()=>{if(V.value===E.LINE)return Z.value.legend.map(e=>(Math.min(...e.absoluteValues.map(e=>e??0)),{...e,isVisible:!N.value.includes(e.id),type:`line`,series:e.absoluteValues}));if(V.value===E.BAR)return Q.value.legend.map(e=>(Math.min(...e.absoluteValues.map(e=>e??0)),{...e,isVisible:!N.value.includes(e.id),type:`bar`,series:e.absoluteValues}))}),$=x([]),Qi=x(!1),$i=0;Qe(()=>{let e=++$i;(async()=>{let t=await Te({values:P.value.xyPeriods,maxDatapoints:B.value.maxSeriesLength,formatter:P.value.datetimeFormatter,start:K.value.start,end:K.value.end});e===$i&&($.value=t,Qi.value=!0)})()});let ea=m(()=>{let e=P.value.xyPeriodsModulo;return P.value.xyPeriods.length?Math.min(e,[...new Set($.value.map(e=>e.text))].length):e}),ta=x(!1);function na(e){ta.value=e,Gn.value+=1}function ra(){Ir.value.showTooltip=!Ir.value.showTooltip}let ia=x(!1);function aa(){ia.value=!ia.value}async function oa({scale:e=2}={}){if(!k.value)return;let{width:t,height:n}=k.value.getBoundingClientRect(),r=t/n,{imageUri:i,base64:a}=await ye({domElement:k.value,base64:!0,img:!0,scale:e});return{imageUri:i,base64:a,title:P.value.title,width:t,height:n,aspectRatio:r}}let sa=m(()=>H.value.width),ca=m(()=>H.value.height);Ae({timeLabelsEls:Xn,timeLabels:$,slicer:K,configRef:P,rotationPath:[`xyPeriodLabelsRotation`],autoRotatePath:[`xyPeriodLabelsAutoRotate`,`enable`],isAutoSize:!1,rotation:P.value.xyPeriodLabelsAutoRotate.angle,height:ca.value,width:sa.value});let la=m(()=>P.value.backgroundColor),ua=m(()=>V.value===E.DONUT?G.value.legend:V.value===E.LINE?Z.value.legend:Q.value.legend),da=m(()=>({show:P.value.showLegend,bold:!1,backgroundColor:P.value.backgroundColor,color:P.value.color,fontSize:P.value.legendFontSize,position:P.value.legendPosition})),fa=m(()=>({text:P.value.title,color:P.value.color,fontSize:P.value.titleFontSize,bold:P.value.titleBold,textAlign:P.value.titleTextAlign,subtitle:{text:``}})),{generateSvg:pa,onGenerateImage:ma}=be({svg:R,title:fa,legend:da,legendItems:ua,backgroundColor:la,getSvgCallback:()=>P.value.userOptionsCallbacks.svg,generateImage:Pr});async function ha(){z(`copyAlt`,{config:P.value,dataset:{line:Z.value,bar:Q.value,donut:G.value}}),P.value.userOptionsCallbacks.altCopy?await Promise.resolve(P.value.userOptionsCallbacks.altCopy({config:P.value,dataset:{line:Z.value,bar:Q.value,donut:G.value}})):console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.")}function ga(e,t){(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),t())}let _a=m(()=>V.value===E.DONUT?G.value?.chart?.length??0:V.value===E.LINE?Z.value?.extremes?.maxSeries??0:V.value===E.BAR?Q.value?.extremes?.maxSeries??0:0);function va(){I.value=null,pr.value=!0}function ya(){ni.value=!1,I.value=null,L.value=`pointer`,j.value=!1,M.value=null,W.value=null,pr.value=!1}function ba(e){if(!R.value||ia.value||document.activeElement!==R.value||(ni.value=!1,!_a.value))return;let t=e.key===`ArrowLeft`,n=e.key===`ArrowRight`,r=e.key===`Enter`||e.key===` `,i=e.key===`Escape`;if(!t&&!n&&!r&&!i)return;if(e.preventDefault(),e.stopPropagation(),i){if(li.value&&(Fi.value||J.value)){zi(),Ri(),xi({applyControlledZoom:!1,publish:!0});return}I.value=null,L.value=`pointer`,j.value=!1,M.value=null,W.value=null;return}if(r){if(I.value===null)return;if(V.value===E.DONUT){let e=G.value?.chart?.[I.value];if(!e)return;G.value.selectDatapoint({datapoint:e,seriesIndex:I.value});return}if(V.value===E.LINE){Z.value?.selectDatapoint(I.value);return}if(V.value===E.BAR){Q.value?.selectDatapoint(I.value);return}return}let a=I.value,o=W.value,s=a!==null&&a>=0&&a<_a.value,c=o!==null&&o>=0&&o<_a.value;if(s?n?(a+=1,a>=_a.value&&(a=0)):t&&(--a,a<0&&(a=_a.value-1)):c?(a=n?o+1:o-1,a>=_a.value&&(a=0),a<0&&(a=_a.value-1)):a=n?0:_a.value-1,V.value===E.DONUT){let e=G.value?.chart?.[a];if(!e)return;xa(a),G.value.useTooltip({datapoint:e,seriesIndex:a,triggerMode:`keyboard`})}else V.value===E.LINE?(xa(a),Z.value?.useTooltip(a,`keyboard`)):V.value===E.BAR&&(xa(a),Q.value?.useTooltip(a,`keyboard`))}function xa(e){if(!Number.isFinite(e)||!R.value)return;let t=0,n=0;if(V.value===E.DONUT){let r=G.value?.chart?.[e];if(!r)return;t=d(r,!0).x,n=se(r)}if(V.value===E.LINE){let r=Z.value?.drawingArea,i=Z.value?.slotSize;if(!r||!i)return;t=r.left+i*(e+1)-i/2,n=r.top+r.height/2}if(V.value===E.BAR){let r=Q.value?.drawingArea,i=Q.value?.slotSize;if(!r||!i)return;t=r.left+i*(e+1)-i/2,n=r.top+r.height/2}let r=R.value.getBoundingClientRect();fr.value={x:r.left+t/H.value.width*r.width,y:r.top+n/H.value.height*r.height}}let Sa=m(()=>{if(V.value===E.DONUT)return{headers:[`Series`,`Value`,`Percentage`],rows:(G.value?.dataset??[]).map(e=>{let t=G.value?.total?n({v:e.value/G.value.total*100,s:`%`,r:P.value.dataLabelRoundingPercentage}):`0%`;return[e.name,f(P.value.formatter,e.value,n({p:P.value.valuePrefix,v:e.value,s:P.value.valueSuffix,r:P.value.dataLabelRoundingValue})),t]})};if(V.value===E.LINE||V.value===E.BAR){let e=V.value===E.LINE?Z.value?.dataset??[]:Q.value?.dataset??[],t=V.value===E.LINE?Z.value?.extremes?.maxSeries??0:Q.value?.extremes?.maxSeries??0;return{headers:[`Index`,...e.map(e=>e.name)],rows:Array.from({length:t},(t,r)=>[$.value?.[r+K.value.start]?.text??String(r+K.value.start),...e.map(e=>{let t=e.values?.[r];return f(P.value.formatter,t,n({p:P.value.valuePrefix,v:t,s:P.value.valueSuffix,r:P.value.dataLabelRoundingValue}))})])}}return{headers:[],rows:[]}});ge({getImage:oa,generatePdf:Nr,generateImage:Pr,generateSvg:pa,toggleTooltip:ra,toggleAnnotator:aa,toggleFullscreen:na,copyAlt:ha,resetZoom:()=>xi({applyControlledZoom:!1,publish:!0}),setZoomState:yi}),Ze(()=>[H.value.width,H.value.height,P.value,V.value,$.value,Qi.value,Zn.value,Xn.value,O.dataset,N.value,Rr.value,P.value.fontFamily],Oi,{flush:`post`,deep:!0});let Ca=m(()=>{let e=V.value===E.LINE?Z.value:Q.value;return Ie({enabled:P.value.userOptionsAnnotator?.followZoom,area:ji.value,range:K.value,ticks:e?.yLabels??[]})});return(e,t)=>Or.value?(b(),g(`div`,{key:0,id:`${V.value}_${A.value}`,ref_key:`quickChart`,ref:k,class:v({"vue-data-ui-component":!0,"vue-ui-quick-chart":!0,"vue-data-ui-wrapper-fullscreen":ta.value}),style:y(`background:${P.value.backgroundColor};color:${P.value.color};font-family:${P.value.fontFamily}; position: relative; ${P.value.responsive?`height: 100%`:``}`),onMouseenter:t[1]||=()=>Sr(!0),onMouseleave:t[2]||=()=>Sr(!1)},[_(`div`,{id:`chart-instructions-${A.value}`,class:`sr-only`},[_(`p`,null,w(P.value.a11y.translations.keyboardNavigation),1)],8,ft),Sa.value.rows.length?(b(),ze(Pe,{key:0,uid:A.value,head:Sa.value.headers,body:Sa.value.rows,notice:P.value.a11y.translations.tableAvailable,caption:P.value.a11y.translations.tableCaption},null,8,[`uid`,`head`,`body`,`notice`,`caption`])):h(``,!0),P.value.userOptionsButtons.annotator?(b(),ze(T(at),{key:1,showGroupActions:P.value.userOptionsAnnotator?.showGroupActions??!0,svgRef:T(R),followZoom:P.value.userOptionsAnnotator?.followZoom,annotationViewport:Ca.value,backgroundColor:P.value.backgroundColor,color:P.value.color,active:ia.value,isCursorPointer:dr.value,palette:P.value.annotatorPalette,onClose:aa},Be({_:2},[S(T(Se),t=>({name:t,fn:$e(n=>[C(e.$slots,t,Ke(Ue(T(xe)(t,n))),void 0,!0)])}))]),1032,[`showGroupActions`,`svgRef`,`followZoom`,`annotationViewport`,`backgroundColor`,`color`,`active`,`isCursorPointer`,`palette`])):h(``,!0),Fr.value?(b(),g(`div`,{key:2,ref_key:`noTitle`,ref:Wn,class:`vue-data-ui-no-title-space`,style:`height:36px; width: 100%;background:transparent`},null,512)):h(``,!0),P.value.showUserOptions&&(yr.value||br.value)?(b(),ze(T(st),{ref:`details`,key:`user_option_${Gn.value}`,backgroundColor:P.value.backgroundColor,color:P.value.color,isPrinting:T(jr),isImaging:T(Mr),uid:A.value,hasTooltip:P.value.userOptionsButtons.tooltip&&P.value.showTooltip,hasPdf:P.value.userOptionsButtons.pdf,hasImg:P.value.userOptionsButtons.img,hasSvg:P.value.userOptionsButtons.svg,hasFullscreen:P.value.userOptionsButtons.fullscreen,hasAltCopy:P.value.userOptionsButtons.altCopy,hasXls:!1,isTooltip:Ir.value.showTooltip,isFullscreen:ta.value,titles:{...P.value.userOptionsButtonTitles},chartElement:k.value,position:P.value.userOptionsPosition,hasAnnotator:P.value.userOptionsButtons.annotator,isAnnotation:ia.value,callbacks:P.value.userOptionsCallbacks,printScale:P.value.userOptionsPrint.scale,isCursorPointer:dr.value,onToggleFullscreen:na,onGeneratePdf:T(Nr),onGenerateImage:T(ma),onGenerateSvg:T(pa),onToggleTooltip:ra,onToggleAnnotator:aa,onCopyAlt:ha,style:y({visibility:yr.value?br.value?`visible`:`hidden`:`visible`})},Be({_:2},[S(T(Ce)(e.$slots,`menuIcon optionTooltip optionPdf optionImg optionSvg optionFullscreen optionAnnotator optionAltCopy custom-menu-before custom-menu-after`),t=>({name:t,fn:$e(n=>[C(e.$slots,t,Ke(Ue(T(we)(t,n))),void 0,!0)])}))]),1032,[`backgroundColor`,`color`,`isPrinting`,`isImaging`,`uid`,`hasTooltip`,`hasPdf`,`hasImg`,`hasSvg`,`hasFullscreen`,`hasAltCopy`,`isTooltip`,`isFullscreen`,`titles`,`chartElement`,`position`,`hasAnnotator`,`isAnnotation`,`callbacks`,`printScale`,`isCursorPointer`,`onGeneratePdf`,`onGenerateImage`,`onGenerateSvg`,`style`])):h(``,!0),P.value.title?(b(),g(`div`,{key:4,ref_key:`quickChartTitle`,ref:Rn,class:`vue-ui-quick-chart-title`,style:y(`background:transparent;color:${P.value.color};font-size:${P.value.titleFontSize}px;font-weight:${P.value.titleBold?`bold`:`normal`};text-align:${P.value.titleTextAlign}`)},w(P.value.title),5)):h(``,!0),_(`div`,{id:`legend-top-${A.value}`},null,8,pt),_(`div`,mt,[V.value?(b(),g(`svg`,{key:0,ref_key:`svgRef`,ref:R,xmlns:T(le),"aria-describedby":`chart-instructions-${A.value}`,viewBox:Vr.value,style:y({maxWidth:`100%`,visibility:T(Di)?`visible`:`hidden`,overflow:`visible`,background:`transparent`,color:P.value.color,cursor:li.value?J.value?`col-resize`:`crosshair`:void 0,touchAction:li.value?`pan-y`:void 0,userSelect:li.value?`none`:void 0}),class:v({"vue-data-ui-no-transition":!T(F)||T(X),"vue-ui-quick-chart-zoom-pointer-focus":li.value&&ni.value}),tabindex:`0`,onFocus:va,onBlur:ya,onKeydown:ba,onPointerdown:Ki,onPointermove:qi,onPointerup:Ji,onPointercancel:zi,onClickCapture:Vi},[Ve(T(rt)),e.$slots[`chart-background`]&&V.value===E.BAR?(b(),g(`foreignObject`,{key:0,x:Q.value.drawingArea.left,y:Q.value.drawingArea.top,width:Q.value.drawingArea.width,height:Q.value.drawingArea.height,style:{pointerEvents:`none`}},[C(e.$slots,`chart-background`,{},void 0,!0)],8,gt)):h(``,!0),e.$slots[`chart-background`]&&V.value===E.LINE?(b(),g(`foreignObject`,{key:1,x:Z.value.drawingArea.left,y:Z.value.drawingArea.top,width:Z.value.drawingArea.width,height:Z.value.drawingArea.height,style:{pointerEvents:`none`}},[C(e.$slots,`chart-background`,{},void 0,!0)],8,_t)):h(``,!0),e.$slots[`chart-background`]&&V.value===E.DONUT?(b(),g(`foreignObject`,{key:2,x:0,y:0,width:H.value.width,height:H.value.height,style:{pointerEvents:`none`}},[C(e.$slots,`chart-background`,{},void 0,!0)],8,vt)):h(``,!0),_(`defs`,null,[_(`filter`,{id:`blur_${A.value}`,x:`-50%`,y:`-50%`,width:`200%`,height:`200%`},[_(`feGaussianBlur`,{in:`SourceGraphic`,stdDeviation:2,id:`blur_std_${A.value}`},null,8,bt),t[3]||=_(`feColorMatrix`,{type:`saturate`,values:`0`},null,-1)],8,yt),_(`filter`,{id:`shadow_${A.value}`,"color-interpolation-filters":`sRGB`},[_(`feDropShadow`,{dx:`0`,dy:`0`,stdDeviation:`10`,"flood-opacity":`0.5`,"flood-color":P.value.donutShadowColor},null,8,St)],8,xt)]),V.value===E.DONUT?(b(),g(p,{key:3},[P.value.showDataLabels?(b(),g(`g`,Ct,[(b(!0),g(p,null,S(G.value.chart,(e,t)=>(b(),g(p,null,[G.value.isArcBigEnough(e)?(b(),g(`path`,{key:0,d:T(ie)(e,{x:H.value.width/2,y:H.value.height/2},16,16,!1,!1,H.value.height*Zr.value,12,P.value.donutCurvedMarkers),stroke:e.color,"stroke-width":P.value.donutLabelMarkerStrokeWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`,filter:Ur(e.id)},null,8,wt)):h(``,!0)],64))),256))])):h(``,!0),_(`circle`,{cx:G.value.cx,cy:G.value.cy,r:G.value.radius,fill:P.value.backgroundColor,filter:P.value.donutUseShadow?`url(#shadow_${A.value})`:``},null,8,Tt),_(`g`,Et,[(b(!0),g(p,null,S(G.value.chart,(e,t)=>(b(),g(`path`,{d:e.arcSlice,fill:e.color,stroke:P.value.donutStroke||P.value.backgroundColor,"stroke-width":P.value.donutStrokeWidth,filter:Ur(e.id)},null,8,Dt))),256)),(b(!0),g(p,null,S(G.value.chart,(e,t)=>(b(),g(`path`,{d:e.arcSlice,fill:`transparent`,onMouseenter:n=>G.value.useTooltip({datapoint:e,seriesIndex:t,triggerMode:`pointer`}),onMouseout:n=>G.value.killTooltip({datapoint:e,seriesIndex:t}),onClick:n=>G.value.selectDatapoint({datapoint:e,seriesIndex:t})},null,40,Ot))),256))]),P.value.showDataLabels?(b(),g(`g`,kt,[(b(!0),g(p,null,S(G.value.chart,(e,t)=>(b(),g(p,null,[G.value.isArcBigEnough(e)?(b(),g(`circle`,{key:0,cx:T(d)(e).x,cy:T(se)(e)-3.7,fill:e.color,stroke:P.value.backgroundColor,"stroke-width":1,r:3,filter:Ur(e.id)},null,8,At)):h(``,!0),G.value.isArcBigEnough(e)?(b(),g(`text`,{key:1,"text-anchor":T(d)(e,!0,20).anchor,x:T(d)(e,!0).x,y:T(se)(e),fill:P.value.color,"font-size":P.value.dataLabelFontSize,filter:Ur(e.id)},w(G.value.displayArcPercentage(e,G.value.chart))+` (`+w(T(f)(P.value.formatter,e.value,T(n)({p:P.value.valuePrefix,v:e.value,s:P.value.valueSuffix,r:P.value.dataLabelRoundingValue}),{datapoint:e,seriesIndex:t}))+`) `,9,jt)):h(``,!0),G.value.isArcBigEnough(e,!0,20)?(b(),g(`text`,{key:2,"text-anchor":T(d)(e).anchor,x:T(d)(e,!0).x,y:T(se)(e)+P.value.dataLabelFontSize,fill:P.value.color,"font-size":P.value.dataLabelFontSize,filter:Ur(e.id)},w(e.name),9,Mt)):h(``,!0)],64))),256))])):h(``,!0),P.value.donutShowTotal?(b(),g(`g`,Nt,[_(`text`,{"text-anchor":`middle`,x:G.value.drawingArea.centerX,y:G.value.drawingArea.centerY-P.value.donutTotalLabelFontSize/2,"font-size":P.value.donutTotalLabelFontSize,fill:P.value.color},w(P.value.donutTotalLabelText),9,Pt),_(`text`,{"text-anchor":`middle`,x:G.value.drawingArea.centerX,y:G.value.drawingArea.centerY+P.value.donutTotalLabelFontSize,"font-size":P.value.donutTotalLabelFontSize,fill:P.value.color},w(T(n)({p:P.value.valuePrefix,v:G.value.total,s:P.value.valueSuffix,r:P.value.dataLabelRoundingValue})),9,Ft)])):h(``,!0)],64)):h(``,!0),V.value===E.LINE?(b(),g(p,{key:4},[P.value.xyShowGrid?(b(),g(`g`,It,[(b(!0),g(p,null,S(Z.value.yLabels,e=>(b(),g(p,null,[e.y<=Z.value.drawingArea.bottom?(b(),g(`line`,{key:0,x1:Z.value.drawingArea.left,x2:Z.value.drawingArea.right,y1:e.y,y2:e.y,stroke:P.value.xyGridStroke,"stroke-width":P.value.xyGridStrokeWidth,"stroke-linecap":`round`},null,8,Lt)):h(``,!0)],64))),256)),(b(!0),g(p,null,S(Z.value.extremes.maxSeries+1,(e,t)=>(b(),g(`line`,{x1:Z.value.drawingArea.left+Z.value.slotSize*t,x2:Z.value.drawingArea.left+Z.value.slotSize*t,y1:Z.value.drawingArea.top,y2:Z.value.drawingArea.bottom,stroke:P.value.xyGridStroke,"stroke-width":P.value.xyGridStrokeWidth,"stroke-linecap":`round`},null,8,Rt))),256))])):h(``,!0),P.value.xyShowAxis?(b(),g(`g`,zt,[_(`line`,{x1:Z.value.drawingArea.left,x2:Z.value.drawingArea.left,y1:Z.value.drawingArea.top,y2:Z.value.drawingArea.bottom,stroke:P.value.xyAxisStroke,"stroke-width":P.value.xyAxisStrokeWidth,"stroke-linecap":`round`},null,8,Bt),_(`line`,{x1:Z.value.drawingArea.left,x2:Z.value.drawingArea.right,y1:isNaN(Z.value.absoluteZero)?Z.value.drawingArea.bottom:Z.value.absoluteZero,y2:isNaN(Z.value.absoluteZero)?Z.value.drawingArea.bottom:Z.value.absoluteZero,stroke:P.value.xyAxisStroke,"stroke-width":P.value.xyAxisStrokeWidth,"stroke-linecap":`round`},null,8,Vt)])):h(``,!0),P.value.xyShowScale?(b(),g(`g`,{key:2,class:`yLabels`,ref_key:`scaleLabels`,ref:Zn},[(b(!0),g(p,null,S(Z.value.yLabels,(e,t)=>(b(),g(p,{key:`sl_${t}`},[e.y<=Z.value.drawingArea.bottom?(b(),g(`path`,{key:0,class:v({"vue-data-ui-transition":T(F)&&!T(X)}),d:`M${e.x+4},${e.y} ${Z.value.drawingArea.left},${e.y}`,stroke:P.value.xyAxisStroke,"stroke-width":P.value.xyAxisStrokeWidth,"stroke-linecap":`round`},null,10,Ht)):h(``,!0),e.y<=Z.value.drawingArea.bottom?(b(),g(`text`,{key:1,class:v({"vue-data-ui-transition":T(F)&&!T(X)}),transform:`translate(${e.x}, ${e.y+P.value.xyLabelsYFontSize/3})`,"text-anchor":`end`,"font-size":P.value.xyLabelsYFontSize,fill:P.value.color},w(T(f)(P.value.formatter,e.value,T(n)({p:P.value.valuePrefix,v:e.value,s:P.value.valueSuffix,r:P.value.dataLabelRoundingValue}),{datapoint:e,seriesIndex:t})),11,Ut)):h(``,!0)],64))),128))],512)):h(``,!0),P.value.xyShowScale&&P.value.xyPeriods.length?(b(),g(`g`,Wt,[(b(!0),g(p,null,S($.value.map(e=>e.text),(e,t)=>(b(),g(p,null,[!P.value.xyPeriodsShowOnlyAtModulo||P.value.xyPeriodsShowOnlyAtModulo&&t%Math.floor((K.value.end-K.value.start)/ea.value)===0||K.value.end-K.value.start<=ea.value?(b(),g(`line`,{key:0,x1:Z.value.drawingArea.left+Z.value.slotSize*(t+1)-Z.value.slotSize/2,x2:Z.value.drawingArea.left+Z.value.slotSize*(t+1)-Z.value.slotSize/2,y1:Z.value.drawingArea.bottom,y2:Z.value.drawingArea.bottom+4,stroke:P.value.xyAxisStroke,"stroke-width":P.value.xyAxisStrokeWidth,"stroke-linecap":`round`},null,8,Gt)):h(``,!0)],64))),256)),_(`g`,{ref_key:`timeLabelsEls`,ref:Xn},[(b(!0),g(p,null,S($.value.map(e=>e.text),(e,t)=>(b(),g(p,null,[!P.value.xyPeriodsShowOnlyAtModulo||P.value.xyPeriodsShowOnlyAtModulo&&t%Math.floor((K.value.end-K.value.start)/ea.value)===0||K.value.end-K.value.start<=ea.value?(b(),g(`g`,Kt,[String(e).includes(`
16
+ `)?(b(),g(`text`,{key:1,class:`vue-data-ui-time-label`,"font-size":P.value.xyLabelsXFontSize,"text-anchor":P.value.xyPeriodLabelsRotation>0?`start`:P.value.xyPeriodLabelsRotation<0?`end`:`middle`,fill:P.value.color,transform:`translate(${Z.value.drawingArea.left+Z.value.slotSize*(t+1)-Z.value.slotSize/2}, ${Z.value.drawingArea.bottom+P.value.xyLabelsXFontSize+6}), rotate(${P.value.xyPeriodLabelsRotation})`,innerHTML:T(o)({content:String(e),fontSize:P.value.xyLabelsXFontSize,fill:P.value.color,x:0,y:0})},null,8,Jt)):(b(),g(`text`,{key:0,class:`vue-data-ui-time-label`,"font-size":P.value.xyLabelsXFontSize,"text-anchor":P.value.xyPeriodLabelsRotation>0?`start`:P.value.xyPeriodLabelsRotation<0?`end`:`middle`,fill:P.value.color,transform:`translate(${Z.value.drawingArea.left+Z.value.slotSize*(t+1)-Z.value.slotSize/2}, ${Z.value.drawingArea.bottom+P.value.xyLabelsXFontSize+6}), rotate(${P.value.xyPeriodLabelsRotation})`},w(e),9,qt))])):h(``,!0)],64))),256))],512)])):h(``,!0),_(`g`,Yt,[(b(!0),g(p,null,S(Z.value.dataset,(e,t)=>(b(),g(`g`,{key:`serie_${e.id}`,class:`line-plot-series`},[P.value.lineSmooth?(b(),g(p,{key:0},[_(`path`,{ref_for:!0,ref_key:`pathWrapper`,ref:Jn,d:`M ${T(c)(e.coordinates)}`,stroke:P.value.backgroundColor,"stroke-width":P.value.lineStrokeWidth+1,"stroke-linecap":`round`,fill:`none`,class:v({"vue-data-ui-transition":T(F)&&!T(X)})},null,10,Xt),_(`path`,{ref_for:!0,ref_key:`pathTop`,ref:Yn,d:`M ${T(c)(e.coordinates)}`,stroke:e.color,"stroke-width":P.value.lineStrokeWidth,"stroke-linecap":`round`,fill:`none`,class:v({"vue-data-ui-transition":T(F)&&!T(X)}),style:y({transition:T(hr)?void 0:`all 0.2s ease-in-out`})},null,14,Zt)],64)):(b(),g(p,{key:1},[_(`path`,{ref_for:!0,ref_key:`pathWrapper`,ref:Jn,d:`M ${e.linePath}`,stroke:P.value.backgroundColor,"stroke-width":P.value.lineStrokeWidth+1,"stroke-linecap":`round`,fill:`none`,class:v({"vue-data-ui-transition":T(F)&&!T(X)})},null,10,Qt),_(`path`,{ref_for:!0,ref_key:`pathTop`,ref:Yn,d:`M ${e.linePath}`,stroke:e.color,"stroke-width":P.value.lineStrokeWidth,"stroke-linecap":`round`,fill:`none`,class:v({"vue-data-ui-transition":T(F)&&!T(X)})},null,10,$t)],64)),(b(!0),g(p,null,S(e.coordinates,(t,n)=>(b(),g(`circle`,{key:`dp_${e.id}_${n+K.value.start}`,cx:t.x,cy:T(u)(t.y),r:3,fill:e.color,stroke:P.value.backgroundColor,"stroke-width":`0.5`,class:v({"vue-ui-quick-chart-plot":!0,"vue-data-ui-transition":T(F)&&!T(X)})},null,10,en))),128))]))),128))]),P.value.showDataLabels?(b(),g(`g`,tn,[(b(!0),g(p,null,S(Z.value.dataset,(e,t)=>(b(),g(p,{key:`ds_${e.id}`},[(b(!0),g(p,null,S(e.coordinates,(t,r)=>(b(),g(`text`,{class:v([`vue-ui-quick-chart-label`,{"vue-data-ui-transition":T(F)&&!T(X)}]),key:`plot_${e.id}_${r+K.value.start}`,"text-anchor":`middle`,"font-size":P.value.dataLabelFontSize,fill:e.color,transform:`translate(${t.x}, ${T(u)(t.y)-P.value.dataLabelFontSize/2})`},w(T(f)(P.value.formatter,T(u)(t.value),T(n)({p:P.value.valuePrefix,v:T(u)(t.value),s:P.value.valueSuffix,r:P.value.dataLabelRoundingValue}),{datapoint:t,seriesIndex:r})),11,nn))),128))],64))),128))])):h(``,!0),xr.value?(b(),g(`g`,rn,[(b(!0),g(p,null,S(Z.value.extremes.maxSeries,(e,t)=>(b(),g(`rect`,{x:Z.value.drawingArea.left+t*Z.value.slotSize,y:Z.value.drawingArea.top,height:Z.value.drawingArea.height<=0?1e-5:Z.value.drawingArea.height,width:Z.value.slotSize<=0?1e-5:Z.value.slotSize,fill:[M.value,W.value].includes(t)?P.value.xyHighlighterColor:`transparent`,style:y(`opacity:${P.value.xyHighlighterOpacity}`),onMouseenter:e=>Z.value.useTooltip(t,`pointer`),onMouseleave:e=>Z.value.killTooltip(t),onClick:e=>Z.value.selectDatapoint(t)},null,44,an))),256))])):h(``,!0)],64)):h(``,!0),V.value===E.BAR?(b(),g(p,{key:5},[P.value.xyShowGrid?(b(),g(`g`,on,[(b(!0),g(p,null,S(Q.value.yLabels,e=>(b(),g(p,null,[e.y<=Q.value.drawingArea.bottom?(b(),g(`line`,{key:0,x1:Q.value.drawingArea.left,x2:Q.value.drawingArea.right,y1:e.y,y2:e.y,stroke:P.value.xyGridStroke,"stroke-width":P.value.xyGridStrokeWidth,"stroke-linecap":`round`},null,8,sn)):h(``,!0)],64))),256)),N.value.length<Q.value.legend.length?(b(!0),g(p,{key:0},S(Q.value.extremes.maxSeries+1,(e,t)=>(b(),g(`line`,{x1:Q.value.drawingArea.left+Q.value.slotSize*t,x2:Q.value.drawingArea.left+Q.value.slotSize*t,y1:Q.value.drawingArea.top,y2:Q.value.drawingArea.bottom,stroke:P.value.xyGridStroke,"stroke-width":P.value.xyGridStrokeWidth,"stroke-linecap":`round`},null,8,cn))),256)):h(``,!0)])):h(``,!0),P.value.xyShowAxis?(b(),g(`g`,ln,[_(`line`,{x1:Q.value.drawingArea.left,x2:Q.value.drawingArea.left,y1:Q.value.drawingArea.top,y2:Q.value.drawingArea.bottom,stroke:P.value.xyAxisStroke,"stroke-width":P.value.xyAxisStrokeWidth,"stroke-linecap":`round`},null,8,un),_(`line`,{x1:Q.value.drawingArea.left,x2:Q.value.drawingArea.right,y1:isNaN(Q.value.absoluteZero)?Q.value.drawingArea.bottom:Q.value.absoluteZero,y2:isNaN(Q.value.absoluteZero)?Q.value.drawingArea.bottom:Q.value.absoluteZero,stroke:P.value.xyAxisStroke,"stroke-width":P.value.xyAxisStrokeWidth,"stroke-linecap":`round`},null,8,dn)])):h(``,!0),P.value.xyShowScale?(b(),g(`g`,{key:2,class:`yLabels`,ref_key:`scaleLabels`,ref:Zn},[(b(!0),g(p,null,S(Q.value.yLabels,(e,t)=>(b(),g(p,{key:`sl_${t}`},[e.y<=Q.value.drawingArea.bottom?(b(),g(`path`,{key:0,class:v({"vue-data-ui-transition":T(F)&&!T(X)}),d:`M${e.x+4},${e.y} ${Q.value.drawingArea.left},${e.y}`,stroke:P.value.xyAxisStroke,"stroke-width":P.value.xyAxisStrokeWidth,"stroke-linecap":`round`},null,10,fn)):h(``,!0),e.y<=Q.value.drawingArea.bottom?(b(),g(`text`,{key:1,class:v({"vue-data-ui-transition":T(F)&&!T(X)}),transform:`translate(${e.x}, ${e.y+P.value.xyLabelsYFontSize/3})`,"text-anchor":`end`,"font-size":P.value.xyLabelsYFontSize,fill:P.value.color},w(T(f)(P.value.formatter,e.value,T(n)({p:P.value.valuePrefix,v:e.value,s:P.value.valueSuffix,r:P.value.dataLabelRoundingValue}),{datapoint:e,seriesIndex:t})),11,pn)):h(``,!0)],64))),128))],512)):h(``,!0),P.value.xyShowScale&&P.value.xyPeriods.length?(b(),g(`g`,mn,[(b(!0),g(p,null,S(P.value.xyPeriods.slice(K.value.start,K.value.end),(e,t)=>(b(),g(`line`,{x1:Q.value.drawingArea.left+Q.value.slotSize*(t+1)-Q.value.slotSize/2,x2:Q.value.drawingArea.left+Q.value.slotSize*(t+1)-Q.value.slotSize/2,y1:Q.value.drawingArea.bottom,y2:Q.value.drawingArea.bottom+4,stroke:P.value.xyAxisStroke,"stroke-width":P.value.xyAxisStrokeWidth,"stroke-linecap":`round`},null,8,hn))),256)),_(`g`,{ref_key:`timeLabelsEls`,ref:Xn},[(b(!0),g(p,null,S($.value.map(e=>e.text),(e,t)=>(b(),g(p,null,[!P.value.xyPeriodsShowOnlyAtModulo||P.value.xyPeriodsShowOnlyAtModulo&&t%Math.floor((K.value.end-K.value.start)/ea.value)===0||K.value.end-K.value.start<=ea.value?(b(),g(`g`,gn,[String(e).includes(`
17
+ `)?(b(),g(`text`,{key:1,class:`vue-data-ui-time-label`,"font-size":P.value.xyLabelsXFontSize,"text-anchor":P.value.xyPeriodLabelsRotation>0?`start`:P.value.xyPeriodLabelsRotation<0?`end`:`middle`,fill:P.value.color,transform:`translate(${Q.value.drawingArea.left+Q.value.slotSize*(t+1)-Q.value.slotSize/2}, ${Q.value.drawingArea.bottom+P.value.xyLabelsXFontSize+6}), rotate(${P.value.xyPeriodLabelsRotation})`,innerHTML:T(o)({content:String(e),fontSize:P.value.xyLabelsXFontSize,fill:P.value.color,x:0,y:0})},null,8,vn)):(b(),g(`text`,{key:0,class:`vue-data-ui-time-label`,"font-size":P.value.xyLabelsXFontSize,"text-anchor":P.value.xyPeriodLabelsRotation>0?`start`:P.value.xyPeriodLabelsRotation<0?`end`:`middle`,fill:P.value.color,transform:`translate(${Q.value.drawingArea.left+Q.value.slotSize*(t+1)-Q.value.slotSize/2}, ${Q.value.drawingArea.bottom+P.value.xyLabelsXFontSize+6}), rotate(${P.value.xyPeriodLabelsRotation})`},w(e),9,_n))])):h(``,!0)],64))),256))],512)])):h(``,!0),_(`g`,yn,[(b(!0),g(p,null,S(Q.value.dataset,(e,t)=>(b(),g(p,null,[(b(!0),g(p,null,S(e.coordinates,(t,n)=>(b(),g(`rect`,{x:t.x,width:t.width<=0?1e-5:t.width,height:T(u)(t.height<=0?1e-5:t.height),y:T(u)(t.y),fill:e.color,stroke:P.value.backgroundColor,"stroke-width":P.value.barStrokeWidth,"stroke-linecap":`round`,class:v({"vue-data-ui-transition":T(F)&&!T(X)})},null,10,bn))),256))],64))),256))]),P.value.showDataLabels?(b(),g(`g`,xn,[(b(!0),g(p,null,S(Q.value.dataset,(e,t)=>(b(),g(p,{key:`ds_${e.id}`},[(b(!0),g(p,null,S(e.coordinates,(t,r)=>(b(),g(`text`,{class:v({"vue-data-ui-transition":T(F)&&!T(X)}),key:`plot_${r+K.value.start}`,transform:`translate(${t.x+t.width/2}, ${T(u)(t.y)-P.value.dataLabelFontSize/2})`,"text-anchor":`middle`,"font-size":P.value.dataLabelFontSize,fill:e.color},w(T(f)(P.value.formatter,T(u)(t.value),T(n)({p:P.value.valuePrefix,v:T(u)(t.value),s:P.value.valueSuffix,r:P.value.dataLabelRoundingValue}),{datapoint:t,seriesIndex:r})),11,Sn))),128))],64))),128))])):h(``,!0),xr.value&&N.value.length<Q.value.legend.length?(b(),g(`g`,Cn,[(b(!0),g(p,null,S(Q.value.extremes.maxSeries,(e,t)=>(b(),g(`rect`,{x:Q.value.drawingArea.left+t*Q.value.slotSize,y:Q.value.drawingArea.top,height:Q.value.drawingArea.height<=0?1e-5:Q.value.drawingArea.height,width:Q.value.slotSize<=0?1e-5:Q.value.slotSize,fill:[M.value,W.value].includes(t)?P.value.xyHighlighterColor:`transparent`,style:y(`opacity:${P.value.xyHighlighterOpacity}`),onMouseenter:e=>Q.value.useTooltip(t,`pointer`),onMouseleave:e=>Q.value.killTooltip(t),onClick:e=>Q.value.selectDatapoint(t)},null,44,wn))),256))])):h(``,!0)],64)):h(``,!0),[E.LINE,E.BAR].includes(V.value)?(b(),g(`g`,Tn,[P.value.xAxisLabel&&V.value===E.LINE?(b(),g(`g`,{key:0,ref_key:`xAxisLabel`,ref:Qn},[_(`text`,{"font-size":P.value.axisLabelsFontSize,fill:P.value.color,"text-anchor":`middle`,x:Z.value.drawingArea.left+Z.value.drawingArea.width/2,y:H.value.height-P.value.axisLabelsFontSize/3},w(P.value.xAxisLabel),9,En)],512)):h(``,!0),P.value.xAxisLabel&&V.value===E.BAR?(b(),g(`g`,{key:1,ref_key:`xAxisLabel`,ref:Qn},[_(`text`,{"font-size":P.value.axisLabelsFontSize,fill:P.value.color,"text-anchor":`middle`,x:Q.value.drawingArea.left+Q.value.drawingArea.width/2,y:H.value.height-P.value.axisLabelsFontSize/3},w(P.value.xAxisLabel),9,Dn)],512)):h(``,!0),P.value.yAxisLabel&&V.value===E.LINE?(b(),g(`g`,{key:2,ref_key:`yAxisLabel`,ref:$n},[_(`text`,{"font-size":P.value.axisLabelsFontSize,fill:P.value.color,transform:`translate(${P.value.axisLabelsFontSize}, ${Z.value.drawingArea.top+Z.value.drawingArea.height/2}) rotate(-90)`,"text-anchor":`middle`},w(P.value.yAxisLabel),9,On)],512)):h(``,!0),P.value.yAxisLabel&&V.value===E.BAR?(b(),g(`g`,{key:3,ref_key:`yAxisLabel`,ref:$n},[_(`text`,{"font-size":P.value.axisLabelsFontSize,fill:P.value.color,transform:`translate(${P.value.axisLabelsFontSize}, ${Q.value.drawingArea.top+Q.value.drawingArea.height/2}) rotate(-90)`,"text-anchor":`middle`},w(P.value.yAxisLabel),9,kn)],512)):h(``,!0)])):h(``,!0),Pi.value?(b(),g(`rect`,{key:7,x:Pi.value.x,y:Pi.value.y,width:Pi.value.width,height:Pi.value.height,fill:ci.value.selection.fill,"fill-opacity":ci.value.selection.fillOpacity,stroke:ci.value.selection.stroke,"stroke-opacity":ci.value.selection.strokeOpacity,"stroke-width":ci.value.selection.strokeWidth,"stroke-dasharray":ci.value.selection.strokeDasharray,"stroke-linecap":`round`,"stroke-linejoin":`round`,"pointer-events":`none`},null,8,An)):h(``,!0)],46,ht)):h(``,!0),e.$slots.hint?(b(),g(`div`,jn,[C(e.$slots,`hint`,Ke(Ue({hint:P.value.a11y.translations.keyboardNavigation,isVisible:pr.value})),void 0,!0)])):h(``,!0)]),e.$slots.watermark?(b(),g(`div`,Mn,[C(e.$slots,`watermark`,Ke(Ue({isPrinting:T(jr)||T(Mr)})),void 0,!0)])):h(``,!0),Ar.value?(b(),g(`div`,{key:`slicer_${Kn.value}`,ref_key:`quickChartSlicer`,ref:Bn},[(b(),ze(Me,{ref_key:`slicerComponent`,ref:$r,key:`slicer_${Kn.value}`,timeLabels:$.value,background:P.value.zoomColor,borderColor:P.value.backgroundColor,fontSize:P.value.zoomFontSize,useResetSlot:P.value.zoomUseResetSlot,textColor:P.value.color,inputColor:P.value.zoomColor,selectColor:P.value.zoomHighlightColor,max:B.value.maxSeriesLength,min:0,valueStart:K.value.start,valueEnd:K.value.end,smoothMinimap:P.value.zoomMinimap.smooth,minimapSelectedColor:P.value.zoomMinimap.selectedColor,minimapSelectedColorOpacity:P.value.zoomMinimap.selectedColorOpacity,minimapSelectionRadius:P.value.zoomMinimap.selectionRadius,minimapLineColor:P.value.zoomMinimap.lineColor,minimap:Ti.value,minimapIndicatorColor:P.value.zoomMinimap.indicatorColor,verticalHandles:P.value.zoomMinimap.verticalHandles,minimapSelectedIndex:W.value,"onUpdate:start":Ci,"onUpdate:end":wi,refreshStartPoint:P.value.zoomStartIndex===null?0:P.value.zoomStartIndex,refreshEndPoint:P.value.zoomEndIndex===null?B.value.maxSeriesLength:P.value.zoomEndIndex+1,enableRangeHandles:P.value.zoomEnableRangeHandles,enableSelectionDrag:P.value.zoomEnableSelectionDrag,minimapCompact:P.value.zoomMinimap.compact,minimapMerged:P.value.zoomMinimap.merged,allMinimaps:Zi.value,minimapFrameColor:P.value.zoomMinimap.frameColor,additionalMinimapHeight:P.value.zoomMinimap.additionalHeight,handleType:P.value.zoomMinimap.handleType,handleWidth:P.value.zoomMinimap.handleWidth,handleBorderWidth:P.value.zoomMinimap.handleBorderWidth,handleIconColor:P.value.zoomMinimap.handleIconColor,handleBorderColor:P.value.zoomMinimap.handleBorderColor,handleFill:P.value.zoomMinimap.handleFill,focusOnDrag:P.value.zoomFocusOnDrag,focusRangeRatio:P.value.zoomFocusRangeRatio,maxWidth:P.value.zoomMaxWidth,minimapLeftInsetRatio:Yi.value,minimapRightInsetRatio:Xi.value,onReset:t[0]||=()=>xi({applyControlledZoom:!1,publish:!0}),onTrapMouse:Xr},{"reset-action":$e(({reset:t})=>[C(e.$slots,`reset-action`,Ke(Ue({reset:t})),void 0,!0)]),_:3},8,/* @__PURE__ */ `timeLabels.background.borderColor.fontSize.useResetSlot.textColor.inputColor.selectColor.max.valueStart.valueEnd.smoothMinimap.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectionRadius.minimapLineColor.minimap.minimapIndicatorColor.verticalHandles.minimapSelectedIndex.refreshStartPoint.refreshEndPoint.enableRangeHandles.enableSelectionDrag.minimapCompact.minimapMerged.allMinimaps.minimapFrameColor.additionalMinimapHeight.handleType.handleWidth.handleBorderWidth.handleIconColor.handleBorderColor.handleFill.focusOnDrag.focusRangeRatio.maxWidth.minimapLeftInsetRatio.minimapRightInsetRatio`.split(`.`)))])):h(``,!0),_(`div`,{id:`legend-bottom-${A.value}`},null,8,Nn),qn.value&&P.value.showLegend?(b(),ze(Re,{key:7,to:P.value.legendPosition===`top`?`#legend-top-${A.value}`:`#legend-bottom-${A.value}`},[P.value.showLegend?(b(),g(`div`,{key:0,ref_key:`quickChartLegend`,ref:zn,class:`vue-ui-quick-chart-legend`,style:y(`background:transparent;color:${P.value.color}`)},[(G.value?.legend?.length>2||Z.value?.legend?.length>2||Q.value?.legend?.length>2)&&P.value.showLegendSelectAllToggle&&!T(hr)?(b(),ze(Ne,{key:0,backgroundColor:P.value.legendSelectAllToggleBackgroundColor,color:P.value.legendSelectAllToggleColor,fontSize:P.value.legendFontSize,checked:N.value.length>0,isCursorPointer:dr.value,onToggle:Wr},null,8,[`backgroundColor`,`color`,`fontSize`,`checked`,`isCursorPointer`])):h(``,!0),V.value===E.DONUT?(b(!0),g(p,{key:1},S(G.value.legend,(t,r)=>(b(),g(`div`,{class:`vue-ui-quick-chart-legend-item`,onClick:e=>Yr(t,G.value.dataset),style:y(`cursor: ${G.value.legend.length>1&&dr.value?`pointer`:`default`}; opacity:${N.value.includes(t.id)?`0.5`:`1`}`),role:`button`,tabindex:`0`,onKeydown:e=>{ga(e,()=>{Yr(t,G.value.dataset)})}},[P.value.useCustomLegend?C(e.$slots,`legend`,We({ref_for:!0},{legend:{...t,isSegregated:N.value.includes(t.id),segregate:()=>{Yr(t,G.value.dataset)}}}),void 0,!0,0):(b(),g(p,{key:1},[Ve(T(nt),{name:P.value.legendIcon,stroke:t.color,size:P.value.legendIconSize},null,8,[`name`,`stroke`,`size`]),_(`span`,{style:y(`font-size:${P.value.legendFontSize}px`)},w(t.name),5),_(`span`,{style:y(`font-size:${P.value.legendFontSize}px;font-variant-numeric:tabular-nums`)},w(N.value.includes(t.id)?`-`:T(f)(P.value.formatter,t.absoluteValue,T(n)({p:P.value.valuePrefix,v:t.absoluteValue,s:P.value.valueSuffix,r:P.value.dataLabelRoundingValue}),{datapoint:t,seriesIndex:r})),5),N.value.includes(t.id)?(b(),g(`span`,{key:0,style:y(`font-size:${P.value.legendFontSize}px`)},` ( - % ) `,4)):Jr.value?(b(),g(`span`,{key:1,style:y(`font-size:${P.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)},` ( - % ) `,4)):(b(),g(`span`,{key:2,style:y(`font-size:${P.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)},` (`+w(T(n)({v:t.value/G.value.total*100,s:`%`,r:P.value.dataLabelRoundingPercentage}))+`) `,5))],64))],44,Pn))),256)):h(``,!0),V.value===E.LINE?(b(!0),g(p,{key:2},S(Z.value.legend,(t,n)=>(b(),g(`div`,{class:`vue-ui-quick-chart-legend-item`,onClick:e=>{Gr(t.id,Z.value.legend.length-1),z(`selectLegend`,Z.value.dataset)},style:y(`cursor: ${Z.value.legend.length>1&&dr.value?`pointer`:`default`}; opacity:${N.value.includes(t.id)?`0.5`:`1`}`),role:`button`,tabindex:`0`,onKeydown:e=>{ga(e,()=>{Gr(t.id,Z.value.legend.length-1),z(`selectLegend`,Z.value.dataset)})}},[P.value.useCustomLegend?C(e.$slots,`legend`,We({ref_for:!0},{legend:{...t,isSegregated:N.value.includes(t.id),segregate:()=>{Gr(t.id,Z.value.legend.length-1),z(`selectLegend`,Z.value.dataset)}}}),void 0,!0,0):(b(),g(p,{key:1},[Ve(T(nt),{name:P.value.legendIcon,stroke:t.color,size:P.value.legendIconSize},null,8,[`name`,`stroke`,`size`]),_(`span`,{style:y(`font-size:${P.value.legendFontSize}px`)},w(t.name),5)],64))],44,Fn))),256)):h(``,!0),V.value===E.BAR?(b(!0),g(p,{key:3},S(Q.value.legend,(t,n)=>(b(),g(`div`,{class:`vue-ui-quick-chart-legend-item`,onClick:e=>{Gr(t.id,Q.value.legend.length-1),z(`selectLegend`,Q.value.dataset)},style:y(`cursor: ${Q.value.legend.length>1&&dr.value?`pointer`:`default`}; opacity:${N.value.includes(t.id)?`0.5`:`1`}`),role:`button`,tabindex:`0`,onKeydown:e=>{ga(e,()=>{Gr(t.id,Q.value.legend.length-1),z(`selectLegend`,Q.value.dataset)})}},[P.value.useCustomLegend?C(e.$slots,`legend`,We({ref_for:!0},{legend:{...t,isSegregated:N.value.includes(t.id),segregate:()=>{Gr(t.id,Q.value.legend.length-1),z(`selectLegend`,Q.value.dataset)}}}),void 0,!0,0):(b(),g(p,{key:1},[Ve(T(nt),{name:P.value.legendIcon,stroke:t.color,size:P.value.legendIconSize},null,8,[`name`,`stroke`,`size`]),_(`span`,{style:y(`font-size:${P.value.legendFontSize}px`)},w(t.name),5)],64))],44,In))),256)):h(``,!0)],4)):h(``,!0)],8,[`to`])):h(``,!0),e.$slots.source?(b(),g(`div`,{key:8,ref_key:`source`,ref:Un,dir:`auto`},[C(e.$slots,`source`,{},void 0,!0)],512)):h(``,!0),Ve(T(ot),{teleportTo:P.value.tooltipTeleportTo,show:Ir.value.showTooltip&&j.value,backgroundColor:P.value.backgroundColor,color:P.value.color,borderRadius:P.value.tooltipBorderRadius,borderColor:P.value.tooltipBorderColor,borderWidth:P.value.tooltipBorderWidth,fontSize:P.value.tooltipFontSize,backgroundOpacity:P.value.tooltipBackgroundOpacity,position:P.value.tooltipPosition,offsetX:P.value.tooltipOffsetX,offsetY:P.value.tooltipOffsetY,parent:k.value,content:Hn.value,isFullscreen:ta.value,isCustom:T(r)(P.value.tooltipCustomFormat),smooth:P.value.tooltipSmooth,smoothForce:P.value.tooltipSmoothForce,smoothSnapThreshold:P.value.tooltipSmoothSnapThreshold,backdropFilter:P.value.tooltipBackdropFilter,isA11yMode:L.value===`keyboard`,a11yPosition:fr.value},{"tooltip-before":$e(()=>[C(e.$slots,`tooltip-before`,Ke(Ue({...Vn.value})),void 0,!0)]),tooltip:$e(()=>[C(e.$slots,`tooltip`,Ke(Ue({...Vn.value})),void 0,!0)]),"tooltip-after":$e(()=>[C(e.$slots,`tooltip-after`,Ke(Ue({...Vn.value})),void 0,!0)]),_:3},8,[`teleportTo`,`show`,`backgroundColor`,`color`,`borderRadius`,`borderColor`,`borderWidth`,`fontSize`,`backgroundOpacity`,`position`,`offsetX`,`offsetY`,`parent`,`content`,`isFullscreen`,`isCustom`,`smooth`,`smoothForce`,`smoothSnapThreshold`,`backdropFilter`,`isA11yMode`,`a11yPosition`]),C(e.$slots,`skeleton`,{},()=>[T(hr)?(b(),ze(pe,{key:0})):h(``,!0)],!0)],46,dt)):(b(),g(`div`,Ln,[Ve(T(nt),{name:`circleCancel`,stroke:`red`}),t[4]||=_(`span`,null,`Dataset is not processable`,-1)]))}},[[`__scopeId`,`data-v-76eb6884`]]);export{k as n,Rn as t};