vue-data-ui 3.29.0 → 3.29.1

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 (163) hide show
  1. package/dist/{PackageVersion-B9qiUJPH.js → PackageVersion-BbZ3wNGs.js} +1 -1
  2. package/dist/{StackChartTable-D-31a1zL.js → StackChartTable-rTC6w378.js} +1 -1
  3. package/dist/{XyAnalysisOptions-DKCLKOkA.js → XyAnalysisOptions-BpjGs_2b.js} +1 -1
  4. package/dist/components/vue-ui-3d-bar.js +1 -1
  5. package/dist/components/vue-ui-accordion.js +1 -1
  6. package/dist/components/vue-ui-age-pyramid.js +1 -1
  7. package/dist/components/vue-ui-annotator.js +1 -1
  8. package/dist/components/vue-ui-bullet.js +1 -1
  9. package/dist/components/vue-ui-bump.js +1 -1
  10. package/dist/components/vue-ui-candlestick.js +1 -1
  11. package/dist/components/vue-ui-carousel-table.js +1 -1
  12. package/dist/components/vue-ui-chestnut.js +1 -1
  13. package/dist/components/vue-ui-chord.js +1 -1
  14. package/dist/components/vue-ui-circle-pack.js +1 -1
  15. package/dist/components/vue-ui-cursor.js +1 -1
  16. package/dist/components/vue-ui-dag.js +1 -1
  17. package/dist/components/vue-ui-dashboard.js +1 -1
  18. package/dist/components/vue-ui-digits.js +1 -1
  19. package/dist/components/vue-ui-donut-evolution.js +1 -1
  20. package/dist/components/vue-ui-donut.js +1 -1
  21. package/dist/components/vue-ui-dumbbell.js +1 -1
  22. package/dist/components/vue-ui-flow.js +1 -1
  23. package/dist/components/vue-ui-funnel.js +1 -1
  24. package/dist/components/vue-ui-galaxy.js +1 -1
  25. package/dist/components/vue-ui-gauge.js +1 -1
  26. package/dist/components/vue-ui-geo.js +1 -1
  27. package/dist/components/vue-ui-gizmo.js +1 -1
  28. package/dist/components/vue-ui-graph.js +1 -1
  29. package/dist/components/vue-ui-heatmap.js +1 -1
  30. package/dist/components/vue-ui-hill.js +1 -1
  31. package/dist/components/vue-ui-history-plot.js +1 -1
  32. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  33. package/dist/components/vue-ui-kpi.js +1 -1
  34. package/dist/components/vue-ui-label.js +1 -1
  35. package/dist/components/vue-ui-mini-loader.js +1 -1
  36. package/dist/components/vue-ui-molecule.js +1 -1
  37. package/dist/components/vue-ui-mood-radar.js +1 -1
  38. package/dist/components/vue-ui-nested-donuts.js +1 -1
  39. package/dist/components/vue-ui-onion.js +1 -1
  40. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  41. package/dist/components/vue-ui-quadrant.js +1 -1
  42. package/dist/components/vue-ui-quick-chart.js +1 -1
  43. package/dist/components/vue-ui-radar.js +1 -1
  44. package/dist/components/vue-ui-rating.js +1 -1
  45. package/dist/components/vue-ui-relation-circle.js +1 -1
  46. package/dist/components/vue-ui-ridgeline.js +1 -1
  47. package/dist/components/vue-ui-rings.js +1 -1
  48. package/dist/components/vue-ui-scatter.js +1 -1
  49. package/dist/components/vue-ui-skeleton.js +1 -1
  50. package/dist/components/vue-ui-smiley.js +1 -1
  51. package/dist/components/vue-ui-spark-trend.js +1 -1
  52. package/dist/components/vue-ui-sparkbar.js +1 -1
  53. package/dist/components/vue-ui-sparkgauge.js +1 -1
  54. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  55. package/dist/components/vue-ui-sparkline.js +1 -1
  56. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  57. package/dist/components/vue-ui-stackbar.js +1 -1
  58. package/dist/components/vue-ui-stackline.js +1 -1
  59. package/dist/components/vue-ui-strip-plot.js +1 -1
  60. package/dist/components/vue-ui-table-heatmap.js +1 -1
  61. package/dist/components/vue-ui-table-sparkline.js +1 -1
  62. package/dist/components/vue-ui-table.js +1 -1
  63. package/dist/components/vue-ui-thermometer.js +1 -1
  64. package/dist/components/vue-ui-timer.js +1 -1
  65. package/dist/components/vue-ui-tiremarks.js +1 -1
  66. package/dist/components/vue-ui-treemap.js +1 -1
  67. package/dist/components/vue-ui-vertical-bar.js +1 -1
  68. package/dist/components/vue-ui-waffle.js +1 -1
  69. package/dist/components/vue-ui-wheel.js +1 -1
  70. package/dist/components/vue-ui-word-cloud.js +1 -1
  71. package/dist/components/vue-ui-world.js +1 -1
  72. package/dist/components/vue-ui-xy-canvas.js +1 -1
  73. package/dist/components/vue-ui-xy.js +1 -1
  74. package/dist/package-BsppqqRX.js +1 -0
  75. package/dist/{render-common-DF3B4DW7.js → render-common-Bc3-uPjM.js} +1 -1
  76. package/dist/ssr/vue-ui-donut.js +1 -1
  77. package/dist/ssr/vue-ui-xy.js +1 -1
  78. package/dist/ssr.js +1 -1
  79. package/dist/style.css +1 -1
  80. package/dist/types/vue-data-ui.d.ts +19 -0
  81. package/dist/useConfig-CBXrYhMI.js +1 -0
  82. package/dist/{useObjectBindings-DlxSTJOa.js → useObjectBindings-DDUobNFp.js} +1 -1
  83. package/dist/utils.js +1 -1
  84. package/dist/vue-data-ui-CMig_4IZ.js +1 -0
  85. package/dist/vue-data-ui.js +1 -1
  86. package/dist/{vue-ui-3d-bar-DkehT0SI.js → vue-ui-3d-bar-BXDDF5Hq.js} +1 -1
  87. package/dist/{vue-ui-accordion-CnAwFOgA.js → vue-ui-accordion-CV2dxsXB.js} +1 -1
  88. package/dist/{vue-ui-age-pyramid-DXEyySR3.js → vue-ui-age-pyramid-BDoFrY4Y.js} +1 -1
  89. package/dist/{vue-ui-annotator-DqrdF7bH.js → vue-ui-annotator-DBItXQjx.js} +1 -1
  90. package/dist/{vue-ui-bullet-BNgmEm8g.js → vue-ui-bullet-iOGIwd8G.js} +1 -1
  91. package/dist/{vue-ui-bump-nFpAoRy7.js → vue-ui-bump-CYYE7AYx.js} +1 -1
  92. package/dist/{vue-ui-candlestick-DvBj3KWq.js → vue-ui-candlestick-fQbKxfp6.js} +1 -1
  93. package/dist/{vue-ui-carousel-table-ChEpsK7w.js → vue-ui-carousel-table-DUUhomv3.js} +1 -1
  94. package/dist/{vue-ui-chestnut-C-_fkI6E.js → vue-ui-chestnut-D7bO1IIi.js} +1 -1
  95. package/dist/{vue-ui-chord-WqXXM4Qs.js → vue-ui-chord-Cwg9Vjnn.js} +1 -1
  96. package/dist/{vue-ui-circle-pack-Bti7Wq1h.js → vue-ui-circle-pack-C18kRERE.js} +1 -1
  97. package/dist/{vue-ui-cursor-C_zzn7Ua.js → vue-ui-cursor-BxBeDqnb.js} +1 -1
  98. package/dist/{vue-ui-dag-BevQ37Gp.js → vue-ui-dag-BMBSp7ua.js} +1 -1
  99. package/dist/{vue-ui-dashboard-ruhBa6cl.js → vue-ui-dashboard-wDPL7yQw.js} +1 -1
  100. package/dist/{vue-ui-digits-B9ksORds.js → vue-ui-digits-CVpi-dBr.js} +1 -1
  101. package/dist/{vue-ui-donut-SbqIxWeM.js → vue-ui-donut-BJumteL7.js} +1 -1
  102. package/dist/{vue-ui-donut-DhrhMru7.js → vue-ui-donut-D5LOpVST.js} +1 -1
  103. package/dist/{vue-ui-donut-evolution-BkuALrYS.js → vue-ui-donut-evolution-DNY_zpSw.js} +1 -1
  104. package/dist/{vue-ui-dumbbell-SOI5CdGX.js → vue-ui-dumbbell-CT22NxlP.js} +1 -1
  105. package/dist/{vue-ui-flow-DqVrfXJo.js → vue-ui-flow-ihpQN8B4.js} +1 -1
  106. package/dist/{vue-ui-funnel-Byx_0z_B.js → vue-ui-funnel-CydmxKNq.js} +1 -1
  107. package/dist/{vue-ui-galaxy-BYbvOTrG.js → vue-ui-galaxy-CDdpiwLH.js} +1 -1
  108. package/dist/{vue-ui-gauge-3_cwmDni.js → vue-ui-gauge-Cu6cz42H.js} +1 -1
  109. package/dist/{vue-ui-geo-HaNxzfYO.js → vue-ui-geo-DAtuaLrb.js} +1 -1
  110. package/dist/{vue-ui-gizmo-C38WKy7L.js → vue-ui-gizmo-C-MEb9P1.js} +1 -1
  111. package/dist/{vue-ui-graph-Dp5FNReE.js → vue-ui-graph-CyySb2SE.js} +1 -1
  112. package/dist/{vue-ui-heatmap-DM0tteNh.js → vue-ui-heatmap-CcWLxTbW.js} +1 -1
  113. package/dist/{vue-ui-hill-Dr6Du4gm.js → vue-ui-hill-mvdRA1RD.js} +1 -1
  114. package/dist/{vue-ui-history-plot-C7iVkeuY.js → vue-ui-history-plot-AL9z3mC6.js} +1 -1
  115. package/dist/{vue-ui-horizontal-bar-BP2tt9hA.js → vue-ui-horizontal-bar-D2IV9phG.js} +1 -1
  116. package/dist/{vue-ui-kpi-8BL_aylw.js → vue-ui-kpi-ZCJekvYX.js} +1 -1
  117. package/dist/{vue-ui-label-D9tcQ8rR.js → vue-ui-label-CAMjkZc2.js} +1 -1
  118. package/dist/{vue-ui-mini-loader-D5-HI4Wi.js → vue-ui-mini-loader-B15gWQp1.js} +1 -1
  119. package/dist/{vue-ui-molecule-Bg1GqvBM.js → vue-ui-molecule-H88Xsomv.js} +1 -1
  120. package/dist/{vue-ui-mood-radar-DIiMInOP.js → vue-ui-mood-radar-De_2I7pq.js} +1 -1
  121. package/dist/{vue-ui-nested-donuts-BCyX7Z7n.js → vue-ui-nested-donuts-DGWgyIoR.js} +1 -1
  122. package/dist/{vue-ui-onion-EkxCuuTI.js → vue-ui-onion-QidVWMud.js} +1 -1
  123. package/dist/{vue-ui-parallel-coordinate-plot-CE80aawg.js → vue-ui-parallel-coordinate-plot-DFw19TpK.js} +1 -1
  124. package/dist/{vue-ui-quadrant-DJIuGrF9.js → vue-ui-quadrant-CeMOzfdY.js} +1 -1
  125. package/dist/{vue-ui-quick-chart-BBsBw9K3.js → vue-ui-quick-chart-Tyt1WdUW.js} +1 -1
  126. package/dist/{vue-ui-radar-BMYyMdOg.js → vue-ui-radar-C4U7ohC4.js} +1 -1
  127. package/dist/{vue-ui-rating--jhcSeor.js → vue-ui-rating-BbHvfFsG.js} +1 -1
  128. package/dist/{vue-ui-relation-circle-BLeJaQJH.js → vue-ui-relation-circle-zoBhpcTB.js} +1 -1
  129. package/dist/{vue-ui-ridgeline-w92zZqP2.js → vue-ui-ridgeline-C9ECt2cC.js} +1 -1
  130. package/dist/{vue-ui-rings-DUEitXix.js → vue-ui-rings-kYvvKGXk.js} +1 -1
  131. package/dist/{vue-ui-scatter-D1XzJLsA.js → vue-ui-scatter-Bs5NhtfK.js} +1 -1
  132. package/dist/{vue-ui-skeleton-Bpwe9ox7.js → vue-ui-skeleton-BSM40fOT.js} +1 -1
  133. package/dist/{vue-ui-smiley-AEw3JB0L.js → vue-ui-smiley-BvkpUjyE.js} +1 -1
  134. package/dist/{vue-ui-spark-trend-B3TKtyLN.js → vue-ui-spark-trend-DmJHx3aj.js} +1 -1
  135. package/dist/{vue-ui-sparkbar-CjLLQ0Ja.js → vue-ui-sparkbar-6wKyKgYy.js} +1 -1
  136. package/dist/{vue-ui-sparkgauge-9g7UUVWq.js → vue-ui-sparkgauge-BnZZ2zhe.js} +1 -1
  137. package/dist/{vue-ui-sparkhistogram-B_rUkfjQ.js → vue-ui-sparkhistogram-C9cyazhH.js} +1 -1
  138. package/dist/{vue-ui-sparkline-BJj8LCeA.js → vue-ui-sparkline-a1e4A-Gl.js} +1 -1
  139. package/dist/{vue-ui-sparkstackbar-B5rGYUUe.js → vue-ui-sparkstackbar-BTEpVODr.js} +1 -1
  140. package/dist/{vue-ui-stackbar-k0mVr3qM.js → vue-ui-stackbar-BplckX2c.js} +1 -1
  141. package/dist/vue-ui-stackline-1KSn7Lw-.js +17 -0
  142. package/dist/{vue-ui-strip-plot-bZisAUWl.js → vue-ui-strip-plot-ZCX50Scf.js} +1 -1
  143. package/dist/{vue-ui-table-YFjpQD5z.js → vue-ui-table-BRwwKG0f.js} +1 -1
  144. package/dist/{vue-ui-table-heatmap-Bl_rGqXv.js → vue-ui-table-heatmap-2csQOE2c.js} +1 -1
  145. package/dist/{vue-ui-table-sparkline-D-FHk6aF.js → vue-ui-table-sparkline-VLptltwn.js} +1 -1
  146. package/dist/{vue-ui-thermometer-1gRm4qfW.js → vue-ui-thermometer-DUocWNhm.js} +1 -1
  147. package/dist/{vue-ui-timer-Urv_5Bq7.js → vue-ui-timer-DfFRykEz.js} +2 -2
  148. package/dist/{vue-ui-tiremarks-CUCnVEGx.js → vue-ui-tiremarks-BBtWpWBE.js} +1 -1
  149. package/dist/{vue-ui-treemap-NgjoCq7g.js → vue-ui-treemap-Bz1FshtF.js} +1 -1
  150. package/dist/{vue-ui-waffle-Cy9bR4eg.js → vue-ui-waffle-C7SVznJl.js} +1 -1
  151. package/dist/{vue-ui-wheel-DdwADpJ9.js → vue-ui-wheel-BaZ08ojL.js} +1 -1
  152. package/dist/{vue-ui-word-cloud-I1lrCi6H.js → vue-ui-word-cloud-BOUVu-F2.js} +1 -1
  153. package/dist/{vue-ui-world-CFZoRY_U.js → vue-ui-world-E2JfHzRD.js} +1 -1
  154. package/dist/{vue-ui-xy-BjZ7rM8l.js → vue-ui-xy-CGuTzofF.js} +3 -3
  155. package/dist/{vue-ui-xy-BqivEt9H.js → vue-ui-xy-CmQ5D8Rm.js} +1 -1
  156. package/dist/{vue-ui-xy-canvas-DGniRsGt.js → vue-ui-xy-canvas-FULC8M7D.js} +1 -1
  157. package/dist/vue_ui_stackline-CBl7ydff.js +1 -0
  158. package/package.json +1 -1
  159. package/dist/package-GInOA5jS.js +0 -1
  160. package/dist/useConfig-9oDGTWWG.js +0 -1
  161. package/dist/vue-data-ui-Bx6exT7_.js +0 -1
  162. package/dist/vue-ui-stackline-D1sDzsaB.js +0 -17
  163. package/dist/vue_ui_stackline-B6ylXHBJ.js +0 -1
@@ -1,4 +1,4 @@
1
- import{n as e,t}from"./xyScales-Cb-Z9Qso.js";import{$ as n,A as r,G as i,Ht as a,I as o,J as s,Jt as c,L as l,N as u,P as d,S as f,U as p,V as m,W as h,X as g,Yt as _,_ as v,c as y,gt as b,i as x,in as S,k as C,l as w,nn as T,o as ee,qt as E,st as D,t as O,v as k,wt as A}from"./lib-rPeBMZrn.js";import{t as te}from"./useConfig-9oDGTWWG.js";import{t as ne}from"./vue_ui_xy-BfaXjpvS.js";import{t as re}from"./xyScaleTicks-DMX-D9Wd.js";import{_ as j,d as M,f as N,g as P,h as ie,l as ae,m as oe,p as F,u as I,v as L}from"./render-common-DF3B4DW7.js";import{t as se}from"./useTimeLabels-Das5O74F.js";var{vue_ui_xy:R}=te();function ce({config:e={},dataset:t=[]}={}){let n=e??{},r=S({userConfig:n,defaultConfig:R});A(n,`chart.highlightArea`)&&(Array.isArray(n.chart.highlightArea)?r.chart.highlightArea=n.chart.highlightArea.map(e=>S({defaultConfig:R.chart.highlightArea,userConfig:e})):r.chart.highlightArea=[S({defaultConfig:R.chart.highlightArea,userConfig:n.chart.highlightArea})]),A(n,`chart.annotations`)&&Array.isArray(n.chart.annotations)&&n.chart.annotations.length?r.chart.annotations=n.chart.annotations.map(e=>S({defaultConfig:R.chart.annotations[0],userConfig:e})):r.chart.annotations=[],A(n,`chart.grid.position`)&&n.chart.grid.position===`start`&&t.some(e=>e.type===`bar`)&&(r.chart.grid.position=`middle`);let i=r.theme;if(!i)return{...r,customPalette:r.customPalette?.length?r.customPalette:a};let o=S({userConfig:ne[i]||{},defaultConfig:r}),s=S({userConfig:n,defaultConfig:o});return{...s,customPalette:s.customPalette?.length?s.customPalette:T[i]||a}}function le(e){return e&&typeof e==`object`&&Number.isFinite(Number(e.x))&&Number.isFinite(Number(e.y))}function ue(e){return e!=null&&Number.isFinite(Number(e))}function de(e){return e.flatMap(e=>Array.isArray(e.series)?e.series:[]).filter(le).map(e=>Number(e.x))}function fe({dataset:e,config:t}){let n=de(e);if(!n.length)return{min:0,max:1,ticks:[0,1]};let r=t?.chart?.grid?.labels?.xAxis?.scaleMin,i=t?.chart?.grid?.labels?.xAxis?.scaleMax,a=ue(r)?Number(r):Math.min(...n),o=ue(i)?Number(i):Math.max(...n),s=a===o?a-1:a,c=a===o?o+1:o,l=Number.isFinite(Number(t?.chart?.grid?.labels?.xAxis?.scaleSteps))?Number(t.chart.grid.labels.xAxis.scaleSteps):6;return v(s,c,l)}function pe({xValue:e,xScale:t,drawingArea:n,config:r}){let i=(Number(e)-t.min)/(t.max-t.min||1),a=r?.chart?.grid?.labels?.xAxis?.reverse?1-i:i;return n.left+n.width*a}function me({dataset:n=[],config:r={},width:i=1e3,height:o=600,selectedXIndex:s,additionalSvgContent:c=``,svgTitle:l=``}={}){let u=ce({config:r,dataset:n}),d={top:u.chart.padding.top,left:u.chart.padding.left,right:i-u.chart.padding.right,bottom:o-u.chart.padding.bottom};d.width=d.right-d.left,d.height=d.bottom-d.top;let p=n.flatMap(e=>Array.isArray(e.series)?e.series.map(e=>Number(typeof e==`object`&&e?e.y:e)):[]),m=p.filter(Number.isFinite),h=Math.min(0,...m),g=Math.max(1,...m),_=u.chart.grid.labels.yAxis,y=_.scale===`log`,b=y||_.scale===`symlog`,x=b?t(p,{mode:_.scale,constant:_.symlogConstant,min:_.scaleMin,max:_.scaleMax,nice:_.useNiceScale}):v(h,g,6),S=n.some(e=>Array.isArray(e.series)?e.series.some(le):!1),C=S?fe({dataset:n,config:u}):null,w=Math.max(0,...n.map(e=>e.series?.length||0)),T=e=>w<=1?d.left+d.width/2:d.left+e/(w-1)*d.width,ee=(e,t)=>S?le(e)?pe({xValue:e.x,xScale:C,drawingArea:d,config:u}):null:T(t),E=b?e(x.min,x.max,{mode:_.scale,constant:_.symlogConstant}):null,D=e=>{let t=E?E(Number(e)):(Number(e)-x.min)/(x.max-x.min||1);return d.bottom-(_.reverse?1-t:t)*d.height},O=Array.isArray(u.customPalette)?u.customPalette:[],k=O.length?O:a;return{width:i,height:o,selectedXIndex:s,dataset:n,config:u,drawingArea:d,scale:x,xScale:C,isContinuous:S,series:n.map((e,t)=>{let n=(e.color?f(e.color):``)||k[t%k.length],r=(e.series||[]).map((e,t)=>{let n=e==null?null:typeof e==`object`?e.y??null:Number(e);return{x:ee(e,t),y:n===null||!Number.isFinite(Number(n))||y&&!(n>0)?null:D(n),value:n,logOmitted:y&&Number.isFinite(n)&&n<=0,index:t,rawX:le(e)?Number(e.x):null,label:e?.name??e?.x??String(t)}});return{...e,color:n,type:e.type||`line`,plots:r}}),additionalSvgContent:c,svgTitle:l}}function z(e){return F(e,`chart.grid.labels.yAxis.scale`,`linear`)===`log`}function B(e){return[`log`,`symlog`].includes(F(e,`chart.grid.labels.yAxis.scale`,`linear`))}function he(e,t){return F(e,`chart.grid.labels.yAxis.scale`,`linear`)===`symlog`?re(t,J(e).dataLabels):t}function V(e,t,n){let r=B(e)?n.project(t):(t-n.min)/(n.max-n.min||1);return F(e,`chart.grid.labels.yAxis.reverse`,!1)?1-r:r}function ge(n,r,i,a){let o=t(r,{mode:n.chart.grid.labels.yAxis.scale,constant:n.chart.grid.labels.yAxis.symlogConstant,min:i,max:a,nice:F(n,`chart.grid.labels.yAxis.useNiceScale`,!1)});return{...o,project:e(o.min,o.max,{mode:n.chart.grid.labels.yAxis.scale,constant:n.chart.grid.labels.yAxis.symlogConstant})}}function H(e){return!!F(e,`chart.grid.labels.yAxis.useIndividualScale`,!1)}function _e(e){return String(e.scaleLabel??e.id??e.name??``)}function ve(e){return j(F(e,`chart.grid.labels.yAxis.labelWidth`,40),40)+36}function ye(e){return P(e).flatMap(e=>P(e.plots)).map(e=>e?.value===null||e?.value===void 0?null:Number(e.value)).filter(Number.isFinite)}function be(e,t,n){let r=ye(n);if(B(e))return ge(e,r,e.chart.grid.labels.yAxis.scaleMin,e.chart.grid.labels.yAxis.scaleMax);let i=F(e,`chart.grid.labels.yAxis.scaleMin`,null),a=F(e,`chart.grid.labels.yAxis.scaleMax`,null),o=Z(i)?Number(i):Math.min(0,...r),s=Z(a)?Number(a):Math.max(1,...r),c=j(F(e,`chart.grid.labels.yAxis.commonScaleSteps`,6),6);return!r.length&&!Z(i)&&!Z(a)?t:Ie(e,o,s===o?o+1:s,c)}function xe(e,t){let{drawingArea:n}=e,r=j(t.__yOffset,0),i=j(t.__individualHeight,n.height);return{top:n.bottom-r-i,bottom:n.bottom-r}}function U(e,t,n,r){let i=xe(e,t),a=Math.min(n.y,r),o=Math.max(n.y,r),s=Math.max(i.top,a),c=Math.min(i.bottom,o);return{y:s,height:Math.max(1e-5,c-s)}}function Se(e,t){let n={};return P(t).forEach((t,r)=>{let i=_e(t)||`serie_${r}`,a=P(t.plots).map(e=>Number(e.value)).filter(Number.isFinite);n[i]||(n[i]={scaleLabel:i,name:t.name??i,color:F(e,`chart.grid.labels.yAxis.groupColor`,null)||t.color,series:[],values:[]}),n[i].series.push(t),n[i].values.push(...a)}),Object.values(n).forEach(t=>{t.scale=Le(e,{...t.series[0],plots:t.series.flatMap(e=>P(e.plots))})}),n}function Ce(e,t,n,r,i,a){return!i&&!a?r:n[_e(t)]?.scale??Le(e,t)}function we(e){return e===`bar`||e===`line`||e===`plot`?e:`line`}function Te(e){return P(e.series).map(e=>({...e,type:we(e.type),plots:P(e.plots).filter(e=>e&&oe(e.x))}))}function W(e){let{drawingArea:t,scale:n}=e;if(z(e.config))return t.bottom-V(e.config,n.min,n)*t.height;let r=V(e.config,0,n);return t.bottom-r*t.height}var Ee=g();function G(e){return Ee}function K(e,t,n){return`rectGradient_${n}_${t}_${G(e)}`}function De(e,t){return`lineGradient_${t}_${G(e)}`}function Oe(e,t){return`temperature_grad_line_${t}_${G(e)}`}function ke(e,t,n){return t.temperatureColors&&!t.isFlatTemperatureLine?`url(#${Oe(e,n)})`:t.color}function Ae(e,t){return`plotGradient_${t}_${G(e)}`}function je(e,t,n){let{config:r}=e;return F(r,`line.useGradient`,!1)?`url(#${De(e,n)})`:F(r,`line.dot.useSerieColor`,!0)?t.color:F(r,`line.dot.fill`,`#FFFFFF`)}function Me(e,t,n){let{config:r}=e;return F(r,`line.area.useGradient`,!1)?`url(#${dt(e,n)})`:c(t.color,j(F(r,`line.area.opacity`,30),30))}function q(e,t,n,r){return F(e.config,`bar.useGradient`,!1)?r>=0?`url(#${K(e,n,`pos`)})`:`url(#${K(e,n,`neg`)})`:t.color}function Ne(e,t){let{config:n}=e,r=[];return F(n,`bar.useGradient`,!1)&&t.filter(e=>e.type===`bar`).forEach((t,n)=>{r.push(I(`linearGradient`,{id:K(e,n,`pos`),x2:`0%`,y2:`100%`},[M(`stop`,{offset:`0%`,"stop-color":f(t.color)}),M(`stop`,{offset:`62%`,"stop-color":_(f(t.color),.02)}),M(`stop`,{offset:`100%`,"stop-color":_(f(t.color),.05)})].join(``))),r.push(I(`linearGradient`,{id:K(e,n,`neg`),x2:`0%`,y2:`100%`},[M(`stop`,{offset:`0%`,"stop-color":_(f(t.color),.05)}),M(`stop`,{offset:`38%`,"stop-color":_(f(t.color),.02)}),M(`stop`,{offset:`100%`,"stop-color":f(t.color)})].join(``)))}),t.filter(e=>e.type===`line`).forEach((t,i)=>{F(n,`line.useGradient`,!1)&&r.push(I(`radialGradient`,{id:De(e,i),cx:`50%`,cy:`50%`,r:`50%`,fx:`50%`,fy:`50%`},[M(`stop`,{offset:`0%`,"stop-color":_(f(t.color),.05)}),M(`stop`,{offset:`100%`,"stop-color":f(t.color)})].join(``))),t.temperatureColors&&!t.isFlatTemperatureLine&&r.push(I(`linearGradient`,{id:Oe(e,i),gradientTransform:`rotate(90)`},t.temperatureColors.map((e,n)=>M(`stop`,{offset:E(n,t.temperatureColors.length),"stop-color":f(e)})).join(``)))}),t.filter(e=>e.type===`plot`).forEach((t,i)=>{F(n,`plot.useGradient`,!1)&&r.push(I(`radialGradient`,{id:Ae(e,i),cx:`50%`,cy:`50%`,r:`50%`,fx:`50%`,fy:`50%`},[M(`stop`,{offset:`0%`,"stop-color":_(f(t.color),.05)}),M(`stop`,{offset:`100%`,"stop-color":f(t.color)})].join(``)))}),r.length?I(`defs`,{"data-layer":`gradients`},r.join(``)):``}function Pe(e){let t=F(e.config,`chart.backgroundColor`,`#FFFFFF`);return M(`rect`,{width:e.width,height:e.height,fill:t})}function J(e){return{dataLabels:j(F(e,`chart.grid.labels.fontSize`,12),12),xAxis:j(F(e,`chart.grid.labels.xAxisLabels.fontSize`,12),12),yAxis:j(F(e,`chart.grid.labels.axis.fontSize`,12),12)}}function Y(e){return F(e,`chart.grid.labels.yAxis.position`,`left`)===`right`}function Fe(e,t){let r=B(t)?`${F(t,`chart.labels.prefix`,``)}${e}${F(t,`chart.labels.suffix`,``)}`:n({p:F(t,`chart.labels.prefix`,``),v:e,s:F(t,`chart.labels.suffix`,``),r:F(t,`chart.grid.labels.yAxis.rounding`,0)});return x(F(t,`chart.grid.labels.yAxis.formatter`,null),e,r,t)}function X(e){return!!F(e,`chart.grid.labels.yAxis.stacked`,!1)}function Z(e){return e!=null&&Number.isFinite(Number(e))}function Ie(e,t,n,r){return B(e)?ge(e,[t,n]):F(e,`chart.grid.labels.yAxis.useNiceScale`,!0)?v(t,n,r):k(t,n,r)}function Le(e,t){let n=P(t.plots).map(e=>Number(e.value)).filter(Number.isFinite),r=F(e,`chart.grid.labels.yAxis.scaleMin`,null),i=F(e,`chart.grid.labels.yAxis.scaleMax`,null);if(B(e))return ge(e,n,t.scaleMin??r,t.scaleMax??i);let a=Z(r)?Number(r):Z(t.scaleMin)?Number(t.scaleMin):Math.min(0,...n),o=Z(i)?Number(i):Z(t.scaleMax)?Number(t.scaleMax):Math.max(1,...n);return Ie(e,a,o===a?a+1:o,j(t.scaleSteps??F(e,`chart.grid.labels.yAxis.commonScaleSteps`,6),6))}function Re(e,t,n=[]){let r=J(e),i=X(e),a=H(e),o=ve(e);if(a&&!i){let t=Object.keys(Se(e,n)).length;return{left:Y(e)?0:t*o,right:Y(e)?t*o:0,scaleLabelsOffset:t*o,yAxisLabelWidth:0}}if(a&&i)return{left:Y(e)?0:o,right:Y(e)?o:0,scaleLabelsOffset:o,yAxisLabelWidth:0};let s=(i?n.flatMap(t=>Le(e,t).ticks):P(t.ticks)).reduce((t,n)=>Math.max(t,N(Fe(n,e),r.dataLabels)),0),c=F(e,`chart.grid.labels.axis.yLabel`,``)?r.yAxis*2+24+j(F(e,`chart.grid.labels.axis.yLabelOffsetX`,0),0)+r.yAxis:0,l=s+j(F(e,`chart.grid.labels.yAxis.scaleValueOffsetX`,0),0)+j(F(e,`chart.grid.labels.yAxis.crosshairSize`,0),0);return{left:Y(e)?0:l+c,right:Y(e)?l+c:0,scaleLabelsOffset:l,yAxisLabelWidth:c}}function ze(e,t){let{config:n,scale:r,width:i,height:a}=e,o=J(n);e.drawingArea;let s=Re(n,r,t),c=F(n,`chart.legend.position`,`bottom`),l=F(n,`chart.legend.show`,!0),u=l?lt({...e,width:i,height:a},t):{height:0},d=l&&c===`top`?u.height:0,f=l&&c!==`top`?u.height:0,p=F(n,`chart.grid.labels.axis.xLabel`,``),m=F(n,`chart.grid.labels.xAxisLabels.show`,!0)?o.xAxis*2:0,h=(p?o.yAxis*1.5:0)+m+o.xAxis,g=Tt(n)+j(F(n,`chart.labels.fontSize`,12),12)*1.1,_=j(F(n,`chart.padding.top`,12),12),v=j(F(n,`chart.padding.right`,12),12),y=j(F(n,`chart.padding.bottom`,12),12),b=j(F(n,`chart.padding.left`,12),12),x=j(F(n,`chart.grid.labels.axis.xLabelOffsetY`,0),0),S=j(F(n,`chart.grid.labels.yAxis.crosshairSize`,0),0),C=s.left,w=s.right,T=i-C-w-6-b-v,E={top:_+g+d,right:C+(Y(n)?0:S)+b+T,bottom:a-h-y-x-f,left:C+(Y(n)?0:S)+b,width:Math.max(1,T),height:1,scaleLabelX:C,rightScaleLabelX:w,scaleLabelsOffset:s.scaleLabelsOffset,yAxisLabelWidth:s.yAxisLabelWidth,individualOffsetX:36};E.height=Math.max(1,E.bottom-E.top);let D=X(n),O=D?ee(t):t,k=Math.max(1,O.length),A=D?j(F(n,`chart.grid.labels.yAxis.gap`,12),12):0,te=A*Math.max(0,k-1),ne=Math.max(1,E.height-te),re=H(n),M=Se(n,t),N=Math.max(1,...t.map(e=>P(e.plots).length));function ie(t,n){if(Q(e)){let n=Number(t.rawX);return Number.isFinite(n)?Qe({...e,drawingArea:E},n):null}return $({...e,drawingArea:E},t.index??n,N)}let ae=t.map((e,t)=>{let i=e.id!==void 0&&e.id!==null?O.find(t=>t.id===e.id)??O[t]??e:O[t]??e,a=Ce(n,e,M,r,re,D),o=j(i.stackIndex,t),s=j(i.stackRatio,1/k),c=j(i.cumulatedStackRatio,s*(o+1)),l=k-1-o,u=D?1-c:0,d=D?ne*u+A*l:0,f=D?ne*s:E.height;function p(e){let t=V(n,e,a);return E.bottom-d-t*f}let m=p(z(n)?a.min:0);return{...e,__scale:a,__yOffset:d,__individualHeight:f,__zeroY:m,__scaleYLabels:he(n,P(a.ticks).map(t=>({value:t,y:p(t),serie:e}))),plots:e.plots.map((e,t)=>{let r=e.value===null||e.value===void 0?null:Number(e.value);return{...e,value:r,x:ie(e,t),y:r===null||!Number.isFinite(r)||z(n)&&!(r>0)?null:p(r)}})}});return{...e,drawingArea:E,series:ae,__scaleGroups:M,__useIndividualScale:re}}function Be(e){let{config:t,drawingArea:n,scale:r,series:i}=e;if(!F(t,`chart.grid.labels.show`,!0)||!F(t,`chart.grid.labels.yAxis.show`,!0))return``;let a=H(t),o=X(t);if(a)return Ve(e);let s=J(t),c=Y(t),l=F(t,`chart.grid.labels.yAxis.showCrosshairs`,!1),u=j(F(t,`chart.grid.labels.yAxis.crosshairSize`,0),0),d=j(F(t,`chart.grid.labels.yAxis.scaleValueOffsetX`,0),0),f=F(t,`chart.grid.labels.color`,`#2A2A2A`),p=F(t,`chart.grid.stroke`,`#CCCCCC`),m=Ke(e),h=[];return m.forEach(e=>{Number.isFinite(e.y)&&(l&&h.push(M(`line`,{"data-cy":`axis-y-tick`,x1:c?n.right:n.left,x2:c?n.right+u:n.left-u,y1:e.y,y2:e.y,stroke:p,"stroke-width":1,"stroke-linecap":`round`})),h.push(L(Fe(e.value,t),{"data-cy":`axis-y-label`,transform:`translate(${c?n.right+u+d+5:n.scaleLabelX-u}, ${e.y+s.dataLabels/3})`,"font-size":s.dataLabels,"text-anchor":c?`start`:`end`,fill:o&&e.serie?.color?F(t,`chart.grid.labels.yAxis.groupColor`,null)||e.serie.color:f})))}),I(`g`,{"data-layer":`scale-labels`},h.join(``))}function Ve(e){let{config:t,drawingArea:n,series:r}=e,i=J(t),a=Y(t),o=X(t),s=e.__scaleGroups??Se(t,r),c=F(t,`chart.grid.labels.yAxis.showCrosshairs`,!1),l=j(F(t,`chart.grid.labels.yAxis.crosshairSize`,0),0),u=j(F(t,`chart.grid.labels.yAxis.scaleValueOffsetX`,0),0),d=j(F(t,`chart.grid.labels.yAxis.labelWidth`,40),40),f=j(n.individualOffsetX,36),p=[],m=Object.values(s);return m.forEach((e,s)=>{let h=r.find(t=>_e(t)===e.scaleLabel)??r[s];if(!h)return;let g=o?a?n.right:n.left:a?n.right+ve(t)*s:n.left-ve(t)*(m.length-s-1),_=j(h.__yOffset,0),v=j(h.__individualHeight,n.height),y=o?n.bottom-_-v:n.top,b=o?n.bottom-_:n.bottom;p.push(M(`line`,{x1:o||a?g:g-f,x2:o||a?g:g-f,y1:y,y2:b,stroke:e.color,"stroke-width":F(t,`chart.grid.strokeWidth`,1),"stroke-linecap":`round`}));let x=o?a?n.right+l+u+5+d+f:n.left-l-u-d:a?g+l+u+5+d:g-i.dataLabels/2;p.push(L(e.name,{transform:`translate(${x}, ${y+(b-y)/2}) rotate(-90)`,"font-size":i.dataLabels*.8,"text-anchor":`middle`,fill:e.color})),he(t,P(e.scale.ticks).map(n=>({value:n,y:b-V(t,n,e.scale)*(b-y)}))).forEach(({value:r,y:s})=>{Number.isFinite(s)&&(c&&p.push(M(`line`,{"data-cy":`axis-y-tick`,x1:o||a?g:g+3-l-f,x2:o?a?g+l:g-l:a?g+l:g-f,y1:s,y2:s,stroke:e.color,"stroke-width":1,"stroke-linecap":`round`})),p.push(L(Fe(r,t),{"data-cy":`axis-y-label`,transform:`translate(${o?a?n.right+l+u+5:n.left-l-u-5:a?g+l+u+5:g-5-f}, ${s+i.dataLabels/3})`,"font-size":i.dataLabels,"text-anchor":a?`start`:`end`,fill:e.color})))})}),I(`g`,{"data-layer":`individual-scale-labels`},p.join(``))}function He(e){return[...new Set(e.flatMap(e=>P(e.plots)).map(e=>Number(e.x)).filter(Number.isFinite))].sort((e,t)=>e-t)}function Ue(e,t,n=1){let{drawingArea:r,config:i}=e,a=He(t),o=r.width*.05;if(a.length<2)return Math.max(1e-5,o/Math.max(1,n));let s=a.slice(1).reduce((e,t,n)=>{let r=a[n],i=Math.abs(t-r);return i>0?Math.min(e,i):e},1/0),c=j(F(i,`bar.periodGap`,.2),.2),l=Number.isFinite(s)&&s>0?s*(1-c):o;return Math.max(1e-5,l/Math.max(1,n))}function We(e,t,n){let{config:r}=e,i=j(F(r,`bar.innerGap`,.05),.05),a=F(r,`bar.borderRadius`,0),o=[];if(n){let n=Ue(e,t,1),r=n*Math.min(Math.abs(i),.95),s=Math.max(1e-5,n-r);return t.forEach((t,n)=>{let r=Number.isFinite(Number(t.__zeroY))?Number(t.__zeroY):W(e);P(t.plots).forEach(i=>{if(!i||i.value===null||i.value===void 0||!Number.isFinite(Number(i.value))||!Number.isFinite(Number(i.x))||!Number.isFinite(Number(i.y)))return;let c=i.x-s/2,{y:l,height:u}=U(e,t,i,r);i.__barLabelX=i.x,o.push(M(`rect`,{"data-cy":`datapoint-bar`,x:c,y:l,width:s,height:u,rx:a,fill:q(e,t,n,Number(i.value)),...vt(e,t)}))})}),I(`g`,{"data-layer":`bars`},o.join(``))}let s=Math.max(1,t.length),c=Ue(e,t,s),l=c*Math.min(Math.abs(i),.95),u=Math.max(1e-5,c-l),d=c*s;return t.forEach((t,n)=>{let r=Number.isFinite(Number(t.__zeroY))?Number(t.__zeroY):W(e);P(t.plots).forEach(i=>{if(!i||i.value===null||i.value===void 0||!Number.isFinite(Number(i.value))||!Number.isFinite(Number(i.x))||!Number.isFinite(Number(i.y)))return;let s=i.x-d/2+c*n+l/2,{y:f,height:p}=U(e,t,i,r);i.__barLabelX=s+u/2,o.push(M(`rect`,{"data-cy":`datapoint-bar`,x:s,y:f,width:u,height:p,rx:a,fill:q(e,t,n,Number(i.value)),...vt(e,t)}))})}),I(`g`,{"data-layer":`bars`},o.join(``))}function Ge(e,t){let{config:n,drawingArea:r}=e,i=X(n),a=t.filter(e=>e.type===`bar`);if(!a.length)return``;if(Q(e))return We(e,a,i);let o=Math.max(1,...t.map(e=>P(e.plots).length)),s=r.width/o,c=j(F(n,`bar.periodGap`,.2),.2),l=j(F(n,`bar.innerGap`,.05),.05),u=F(n,`bar.borderRadius`,0),d=[];if(i){let t=Math.max(1e-5,s*.9),n=t*Math.min(Math.abs(l),.95);return a.forEach((i,a)=>{let o=Number.isFinite(Number(i.__zeroY))?Number(i.__zeroY):W(e);P(i.plots).forEach((c,l)=>{if(!c||c.value===null||c.value===void 0||!Number.isFinite(Number(c.value))||!Number.isFinite(Number(c.y)))return;let f=r.left+s*l+s*.05+n/2,{y:p,height:m}=U(e,i,c,o);c.__barLabelX=f+Math.max(1e-5,t-n)/2,d.push(M(`rect`,{"data-cy":`datapoint-bar`,x:f,y:p,width:Math.max(1e-5,t-n),height:m,rx:u,fill:q(e,i,a,Number(c.value)),...vt(e,i)}))})}),I(`g`,{"data-layer":`bars`},d.join(``))}let f=s*(1-c),p=f/Math.max(1,a.length),m=p*Math.min(Math.abs(l),.95);return W(e),a.forEach((t,n)=>{let i=Number.isFinite(Number(t.__zeroY))?Number(t.__zeroY):W(e);P(t.plots).forEach((a,o)=>{if(!a||a.value===null||a.value===void 0||!Number.isFinite(Number(a.value))||!Number.isFinite(Number(a.y)))return;let c=r.left+s*o+(s-f)/2+p*n+m/2,{y:l,height:h}=U(e,t,a,i);a.__barLabelX=c+Math.max(1e-5,p-m)/2,d.push(M(`rect`,{"data-cy":`datapoint-bar`,x:c,y:l,width:Math.max(1e-5,p-m),height:h,rx:u,fill:q(e,t,n,Number(a.value)),...vt(e,t)}))})}),I(`g`,{"data-layer":`bars`},d.join(``))}function Ke(e){let{config:t,drawingArea:n,scale:r,series:i}=e;return H(t)||X(t)?i.flatMap(e=>P(e.__scaleYLabels)):he(t,P(r.ticks).map(e=>{let i=V(t,e,r);return{value:e,y:n.bottom-i*n.height}}))}function qe(e,t,n){let{drawingArea:r}=e,i=r.width/Math.max(1,n);return r.left+i*t}function Je(e,t){let{config:n,drawingArea:r}=e,i=Math.max(1,...t.map(e=>P(e.plots).length)),a=r.top,o=r.bottom;if(Q(e)){let e=[...new Set(t.flatMap(e=>P(e.plots)).map(e=>Number(e.x)).filter(Number.isFinite))].sort((e,t)=>e-t);return e.length?F(n,`chart.grid.position`,`middle`)===`middle`?e.map((e,t,n)=>{if(t===0)return null;let r=n[t-1],i=r+(e-r)/2;return`M${i},${a} L${i},${o}`}).filter(Boolean).join(` `):e.map(e=>`M${e},${a} L${e},${o}`).join(` `):``}let s=i+ +(F(n,`chart.grid.position`,`middle`)===`middle`);return Array.from({length:s}).map((t,r)=>{let s=F(n,`chart.grid.position`,`middle`)===`middle`?qe(e,r,i):$(e,r,i);return`M${s},${a} L${s},${o}`}).join(` `)}function Ye(e){let{config:t,drawingArea:n,scale:r,series:i}=e,a=F(t,`chart.grid.show`,!0),o=F(t,`chart.grid.showHorizontalLines`,!0),s=F(t,`chart.grid.showVerticalLines`,!1),c=F(t,`chart.grid.stroke`,`#CCCCCC`),l=j(F(t,`chart.grid.strokeWidth`,.5),.5),u=[];if(a&&o&&Ke(e).forEach(e=>{Number.isFinite(Number(e.y))&&u.push(M(`line`,{"data-cy":`xy-grid-horizontal-line`,x1:n.left,x2:n.right,y1:e.y,y2:e.y,stroke:c,"stroke-width":l,"stroke-linecap":`round`}))}),a&&s){let t=Je(e,i);t&&u.push(M(`path`,{"data-cy":`xy-grid-vertical-line`,d:t,stroke:c,"stroke-width":l,"stroke-linecap":`round`}))}u.push(M(`line`,{x1:n.left,y1:n.bottom,x2:n.right,y2:n.bottom,stroke:c,"stroke-width":l,"stroke-linecap":`round`}));let d=Y(t)?n.right:n.left;return u.push(M(`line`,{x1:d,y1:n.top,x2:d,y2:n.bottom,stroke:c,"stroke-width":l,"stroke-linecap":`round`})),r.min<0&&r.max>0&&u.push(M(`line`,{x1:n.left,y1:W(e),x2:n.right,y2:W(e),stroke:c,"stroke-width":l,"stroke-dasharray":4,"stroke-linecap":`round`})),I(`g`,{"data-layer":`grid`},u.join(``))}function Xe(e){return e&&typeof e==`object`&&Number.isFinite(Number(e.x))&&Number.isFinite(Number(e.y))}function Q(e){return e.isContinuous?!0:P(e.series).some(e=>P(e.series).some(Xe))}function Ze(e){if(e.xScale&&Number.isFinite(Number(e.xScale.min))&&Number.isFinite(Number(e.xScale.max)))return{min:Number(e.xScale.min),max:Number(e.xScale.max)};let t=P(e.series).flatMap(e=>P(e.series)).filter(Xe).map(e=>Number(e.x));if(!t.length)return{min:0,max:1};let n=Math.min(...t),r=Math.max(...t);return n===r?{min:n-1,max:r+1}:{min:n,max:r}}function Qe(e,t){let{drawingArea:n,config:r}=e,i=Ze(e),a=(Number(t)-i.min)/(i.max-i.min||1),o=F(r,`chart.grid.labels.xAxis.reverse`,!1)?1-a:a;return n.left+n.width*o}function $e(e,t,r){let{config:i}=e,a=n({v:t,p:F(i,`chart.labels.prefix`,``),s:F(i,`chart.labels.suffix`,``),r:F(i,`chart.grid.labels.xAxis.rounding`,0)});return x(F(i,`chart.grid.labels.xAxis.formatter`,null),t,a,{datapoint:t,seriesIndex:null})}function et(e){let{xScale:t,config:n}=e,r=P(t?.ticks);return(F(n,`chart.grid.labels.xAxis.reverse`,!1)?[...r].reverse():r).map((t,n)=>({id:`continuous_x_label_${n}`,text:$e(e,t,n),value:t,x:Qe(e,t),index:n,absoluteIndex:n}))}function $(e,t,n){let{drawingArea:r,config:i}=e,a=F(i,`chart.grid.position`,`middle`),o=r.width,s=a===`middle`?o/Math.max(1,n):o/Math.max(1,n-1);return a===`middle`?r.left+s/2+s*t:r.left+s*t}async function tt(e,t){let{config:n}=e,r=Math.max(0,...t.map(e=>P(e.plots).length));return await se({values:F(n,`chart.grid.labels.xAxisLabels.values`,[]),maxDatapoints:r,formatter:F(n,`chart.grid.labels.xAxisLabels.datetimeFormatter`,null),start:j(e.slotStartIndex??e.startAbs,0),end:j(e.slotEndIndex??e.endAbs,r)})}async function nt(e,t){let{config:n}=e,r=F(n,`chart.grid.labels.xAxisLabels`,{}),i=P(F(n,`chart.grid.labels.xAxisLabels.values`,[])),a=Math.max(0,...t.map(e=>P(e.plots).length)),o=e.slotStartIndex!==void 0||e.startAbs!==void 0,s=e.slotEndIndex!==void 0||e.endAbs!==void 0,c=o||s,l=Math.max(0,Math.floor(j(e.slotStartIndex??e.startAbs,0))),u=Math.max(l,Math.floor(j(e.slotEndIndex??e.endAbs,l+a))),d=await tt(e,t),f=c?Math.max(a,i.length,u):a,p=await se({values:i,maxDatapoints:f,formatter:F(n,`chart.grid.labels.xAxisLabels.datetimeFormatter`,null),start:0,end:f}),m=d.map(e=>e?.text??``),h=p.map(e=>e?.text??``),g=Math.max(1,Math.floor(j(r.modulo,1))),_=p.length||f,v=b({configuredModulo:g,visibleTexts:m,allTexts:h,startAbs:l,isZoomed:c&&_>0&&(l>0||u<_)}),x=y(!!r.showOnlyFirstAndLast,!!r.showOnlyAtModulo,v,m,h,l,e.selectedXIndex??null,m.length);if(!r.showFirstAndLast||r.showOnlyFirstAndLast||!x.length)return x;let S=x.length-1;return x.map((e,t)=>t!==0&&t!==S?e:{...e,text:m[t]??``})}async function rt(e,t){return Q(e)?et(e):await nt(e,t)}function it(e,t,n,r){return Q(e)?t.x:$(e,n,r)}function at(e){let t=e.userConfig??e.sourceConfig??e.props?.config??{};return A(t,`chart.grid.labels.xAxisLabels.rotation`)?j(F(e.config,`chart.grid.labels.xAxisLabels.rotation`,0),0):F(e.config,`chart.grid.labels.xAxisLabels.autoRotate.enable`,!1)?j(F(e.config,`chart.grid.labels.xAxisLabels.autoRotate.angle`,0),0):j(F(e.config,`chart.grid.labels.xAxisLabels.rotation`,0),0)}async function ot(e,t){let{config:n,drawingArea:r}=e;if(!t[0]||!F(n,`chart.grid.labels.xAxisLabels.show`,!0))return``;F(n,`chart.grid.labels.xAxisLabels`,{});let i=j(F(n,`chart.grid.labels.xAxisLabels.fontSize`,12),12),a=F(n,`chart.grid.labels.xAxisLabels.color`,F(n,`chart.grid.labels.color`,`#2A2A2A`)),o=at(e),c=Math.max(1,t[0].plots.length),l=await rt(e,t),u=o>0?`start`:o<0?`end`:`middle`,d=l.map((t,l)=>{let d=typeof t==`string`?t:t?.text;if(!d)return``;let f=`translate(${it(e,t,l,c)}, ${r.bottom+i*1.5}), rotate(${o})`;return String(d).includes(`
1
+ import{n as e,t}from"./xyScales-Cb-Z9Qso.js";import{$ as n,A as r,G as i,Ht as a,I as o,J as s,Jt as c,L as l,N as u,P as d,S as f,U as p,V as m,W as h,X as g,Yt as _,_ as v,c as y,gt as b,i as x,in as S,k as C,l as w,nn as T,o as ee,qt as E,st as D,t as O,v as k,wt as A}from"./lib-rPeBMZrn.js";import{t as te}from"./useConfig-CBXrYhMI.js";import{t as ne}from"./vue_ui_xy-BfaXjpvS.js";import{t as re}from"./xyScaleTicks-DMX-D9Wd.js";import{_ as j,d as M,f as N,g as P,h as ie,l as ae,m as oe,p as F,u as I,v as L}from"./render-common-Bc3-uPjM.js";import{t as se}from"./useTimeLabels-Das5O74F.js";var{vue_ui_xy:R}=te();function ce({config:e={},dataset:t=[]}={}){let n=e??{},r=S({userConfig:n,defaultConfig:R});A(n,`chart.highlightArea`)&&(Array.isArray(n.chart.highlightArea)?r.chart.highlightArea=n.chart.highlightArea.map(e=>S({defaultConfig:R.chart.highlightArea,userConfig:e})):r.chart.highlightArea=[S({defaultConfig:R.chart.highlightArea,userConfig:n.chart.highlightArea})]),A(n,`chart.annotations`)&&Array.isArray(n.chart.annotations)&&n.chart.annotations.length?r.chart.annotations=n.chart.annotations.map(e=>S({defaultConfig:R.chart.annotations[0],userConfig:e})):r.chart.annotations=[],A(n,`chart.grid.position`)&&n.chart.grid.position===`start`&&t.some(e=>e.type===`bar`)&&(r.chart.grid.position=`middle`);let i=r.theme;if(!i)return{...r,customPalette:r.customPalette?.length?r.customPalette:a};let o=S({userConfig:ne[i]||{},defaultConfig:r}),s=S({userConfig:n,defaultConfig:o});return{...s,customPalette:s.customPalette?.length?s.customPalette:T[i]||a}}function le(e){return e&&typeof e==`object`&&Number.isFinite(Number(e.x))&&Number.isFinite(Number(e.y))}function ue(e){return e!=null&&Number.isFinite(Number(e))}function de(e){return e.flatMap(e=>Array.isArray(e.series)?e.series:[]).filter(le).map(e=>Number(e.x))}function fe({dataset:e,config:t}){let n=de(e);if(!n.length)return{min:0,max:1,ticks:[0,1]};let r=t?.chart?.grid?.labels?.xAxis?.scaleMin,i=t?.chart?.grid?.labels?.xAxis?.scaleMax,a=ue(r)?Number(r):Math.min(...n),o=ue(i)?Number(i):Math.max(...n),s=a===o?a-1:a,c=a===o?o+1:o,l=Number.isFinite(Number(t?.chart?.grid?.labels?.xAxis?.scaleSteps))?Number(t.chart.grid.labels.xAxis.scaleSteps):6;return v(s,c,l)}function pe({xValue:e,xScale:t,drawingArea:n,config:r}){let i=(Number(e)-t.min)/(t.max-t.min||1),a=r?.chart?.grid?.labels?.xAxis?.reverse?1-i:i;return n.left+n.width*a}function me({dataset:n=[],config:r={},width:i=1e3,height:o=600,selectedXIndex:s,additionalSvgContent:c=``,svgTitle:l=``}={}){let u=ce({config:r,dataset:n}),d={top:u.chart.padding.top,left:u.chart.padding.left,right:i-u.chart.padding.right,bottom:o-u.chart.padding.bottom};d.width=d.right-d.left,d.height=d.bottom-d.top;let p=n.flatMap(e=>Array.isArray(e.series)?e.series.map(e=>Number(typeof e==`object`&&e?e.y:e)):[]),m=p.filter(Number.isFinite),h=Math.min(0,...m),g=Math.max(1,...m),_=u.chart.grid.labels.yAxis,y=_.scale===`log`,b=y||_.scale===`symlog`,x=b?t(p,{mode:_.scale,constant:_.symlogConstant,min:_.scaleMin,max:_.scaleMax,nice:_.useNiceScale}):v(h,g,6),S=n.some(e=>Array.isArray(e.series)?e.series.some(le):!1),C=S?fe({dataset:n,config:u}):null,w=Math.max(0,...n.map(e=>e.series?.length||0)),T=e=>w<=1?d.left+d.width/2:d.left+e/(w-1)*d.width,ee=(e,t)=>S?le(e)?pe({xValue:e.x,xScale:C,drawingArea:d,config:u}):null:T(t),E=b?e(x.min,x.max,{mode:_.scale,constant:_.symlogConstant}):null,D=e=>{let t=E?E(Number(e)):(Number(e)-x.min)/(x.max-x.min||1);return d.bottom-(_.reverse?1-t:t)*d.height},O=Array.isArray(u.customPalette)?u.customPalette:[],k=O.length?O:a;return{width:i,height:o,selectedXIndex:s,dataset:n,config:u,drawingArea:d,scale:x,xScale:C,isContinuous:S,series:n.map((e,t)=>{let n=(e.color?f(e.color):``)||k[t%k.length],r=(e.series||[]).map((e,t)=>{let n=e==null?null:typeof e==`object`?e.y??null:Number(e);return{x:ee(e,t),y:n===null||!Number.isFinite(Number(n))||y&&!(n>0)?null:D(n),value:n,logOmitted:y&&Number.isFinite(n)&&n<=0,index:t,rawX:le(e)?Number(e.x):null,label:e?.name??e?.x??String(t)}});return{...e,color:n,type:e.type||`line`,plots:r}}),additionalSvgContent:c,svgTitle:l}}function z(e){return F(e,`chart.grid.labels.yAxis.scale`,`linear`)===`log`}function B(e){return[`log`,`symlog`].includes(F(e,`chart.grid.labels.yAxis.scale`,`linear`))}function he(e,t){return F(e,`chart.grid.labels.yAxis.scale`,`linear`)===`symlog`?re(t,J(e).dataLabels):t}function V(e,t,n){let r=B(e)?n.project(t):(t-n.min)/(n.max-n.min||1);return F(e,`chart.grid.labels.yAxis.reverse`,!1)?1-r:r}function ge(n,r,i,a){let o=t(r,{mode:n.chart.grid.labels.yAxis.scale,constant:n.chart.grid.labels.yAxis.symlogConstant,min:i,max:a,nice:F(n,`chart.grid.labels.yAxis.useNiceScale`,!1)});return{...o,project:e(o.min,o.max,{mode:n.chart.grid.labels.yAxis.scale,constant:n.chart.grid.labels.yAxis.symlogConstant})}}function H(e){return!!F(e,`chart.grid.labels.yAxis.useIndividualScale`,!1)}function _e(e){return String(e.scaleLabel??e.id??e.name??``)}function ve(e){return j(F(e,`chart.grid.labels.yAxis.labelWidth`,40),40)+36}function ye(e){return P(e).flatMap(e=>P(e.plots)).map(e=>e?.value===null||e?.value===void 0?null:Number(e.value)).filter(Number.isFinite)}function be(e,t,n){let r=ye(n);if(B(e))return ge(e,r,e.chart.grid.labels.yAxis.scaleMin,e.chart.grid.labels.yAxis.scaleMax);let i=F(e,`chart.grid.labels.yAxis.scaleMin`,null),a=F(e,`chart.grid.labels.yAxis.scaleMax`,null),o=Z(i)?Number(i):Math.min(0,...r),s=Z(a)?Number(a):Math.max(1,...r),c=j(F(e,`chart.grid.labels.yAxis.commonScaleSteps`,6),6);return!r.length&&!Z(i)&&!Z(a)?t:Ie(e,o,s===o?o+1:s,c)}function xe(e,t){let{drawingArea:n}=e,r=j(t.__yOffset,0),i=j(t.__individualHeight,n.height);return{top:n.bottom-r-i,bottom:n.bottom-r}}function U(e,t,n,r){let i=xe(e,t),a=Math.min(n.y,r),o=Math.max(n.y,r),s=Math.max(i.top,a),c=Math.min(i.bottom,o);return{y:s,height:Math.max(1e-5,c-s)}}function Se(e,t){let n={};return P(t).forEach((t,r)=>{let i=_e(t)||`serie_${r}`,a=P(t.plots).map(e=>Number(e.value)).filter(Number.isFinite);n[i]||(n[i]={scaleLabel:i,name:t.name??i,color:F(e,`chart.grid.labels.yAxis.groupColor`,null)||t.color,series:[],values:[]}),n[i].series.push(t),n[i].values.push(...a)}),Object.values(n).forEach(t=>{t.scale=Le(e,{...t.series[0],plots:t.series.flatMap(e=>P(e.plots))})}),n}function Ce(e,t,n,r,i,a){return!i&&!a?r:n[_e(t)]?.scale??Le(e,t)}function we(e){return e===`bar`||e===`line`||e===`plot`?e:`line`}function Te(e){return P(e.series).map(e=>({...e,type:we(e.type),plots:P(e.plots).filter(e=>e&&oe(e.x))}))}function W(e){let{drawingArea:t,scale:n}=e;if(z(e.config))return t.bottom-V(e.config,n.min,n)*t.height;let r=V(e.config,0,n);return t.bottom-r*t.height}var Ee=g();function G(e){return Ee}function K(e,t,n){return`rectGradient_${n}_${t}_${G(e)}`}function De(e,t){return`lineGradient_${t}_${G(e)}`}function Oe(e,t){return`temperature_grad_line_${t}_${G(e)}`}function ke(e,t,n){return t.temperatureColors&&!t.isFlatTemperatureLine?`url(#${Oe(e,n)})`:t.color}function Ae(e,t){return`plotGradient_${t}_${G(e)}`}function je(e,t,n){let{config:r}=e;return F(r,`line.useGradient`,!1)?`url(#${De(e,n)})`:F(r,`line.dot.useSerieColor`,!0)?t.color:F(r,`line.dot.fill`,`#FFFFFF`)}function Me(e,t,n){let{config:r}=e;return F(r,`line.area.useGradient`,!1)?`url(#${dt(e,n)})`:c(t.color,j(F(r,`line.area.opacity`,30),30))}function q(e,t,n,r){return F(e.config,`bar.useGradient`,!1)?r>=0?`url(#${K(e,n,`pos`)})`:`url(#${K(e,n,`neg`)})`:t.color}function Ne(e,t){let{config:n}=e,r=[];return F(n,`bar.useGradient`,!1)&&t.filter(e=>e.type===`bar`).forEach((t,n)=>{r.push(I(`linearGradient`,{id:K(e,n,`pos`),x2:`0%`,y2:`100%`},[M(`stop`,{offset:`0%`,"stop-color":f(t.color)}),M(`stop`,{offset:`62%`,"stop-color":_(f(t.color),.02)}),M(`stop`,{offset:`100%`,"stop-color":_(f(t.color),.05)})].join(``))),r.push(I(`linearGradient`,{id:K(e,n,`neg`),x2:`0%`,y2:`100%`},[M(`stop`,{offset:`0%`,"stop-color":_(f(t.color),.05)}),M(`stop`,{offset:`38%`,"stop-color":_(f(t.color),.02)}),M(`stop`,{offset:`100%`,"stop-color":f(t.color)})].join(``)))}),t.filter(e=>e.type===`line`).forEach((t,i)=>{F(n,`line.useGradient`,!1)&&r.push(I(`radialGradient`,{id:De(e,i),cx:`50%`,cy:`50%`,r:`50%`,fx:`50%`,fy:`50%`},[M(`stop`,{offset:`0%`,"stop-color":_(f(t.color),.05)}),M(`stop`,{offset:`100%`,"stop-color":f(t.color)})].join(``))),t.temperatureColors&&!t.isFlatTemperatureLine&&r.push(I(`linearGradient`,{id:Oe(e,i),gradientTransform:`rotate(90)`},t.temperatureColors.map((e,n)=>M(`stop`,{offset:E(n,t.temperatureColors.length),"stop-color":f(e)})).join(``)))}),t.filter(e=>e.type===`plot`).forEach((t,i)=>{F(n,`plot.useGradient`,!1)&&r.push(I(`radialGradient`,{id:Ae(e,i),cx:`50%`,cy:`50%`,r:`50%`,fx:`50%`,fy:`50%`},[M(`stop`,{offset:`0%`,"stop-color":_(f(t.color),.05)}),M(`stop`,{offset:`100%`,"stop-color":f(t.color)})].join(``)))}),r.length?I(`defs`,{"data-layer":`gradients`},r.join(``)):``}function Pe(e){let t=F(e.config,`chart.backgroundColor`,`#FFFFFF`);return M(`rect`,{width:e.width,height:e.height,fill:t})}function J(e){return{dataLabels:j(F(e,`chart.grid.labels.fontSize`,12),12),xAxis:j(F(e,`chart.grid.labels.xAxisLabels.fontSize`,12),12),yAxis:j(F(e,`chart.grid.labels.axis.fontSize`,12),12)}}function Y(e){return F(e,`chart.grid.labels.yAxis.position`,`left`)===`right`}function Fe(e,t){let r=B(t)?`${F(t,`chart.labels.prefix`,``)}${e}${F(t,`chart.labels.suffix`,``)}`:n({p:F(t,`chart.labels.prefix`,``),v:e,s:F(t,`chart.labels.suffix`,``),r:F(t,`chart.grid.labels.yAxis.rounding`,0)});return x(F(t,`chart.grid.labels.yAxis.formatter`,null),e,r,t)}function X(e){return!!F(e,`chart.grid.labels.yAxis.stacked`,!1)}function Z(e){return e!=null&&Number.isFinite(Number(e))}function Ie(e,t,n,r){return B(e)?ge(e,[t,n]):F(e,`chart.grid.labels.yAxis.useNiceScale`,!0)?v(t,n,r):k(t,n,r)}function Le(e,t){let n=P(t.plots).map(e=>Number(e.value)).filter(Number.isFinite),r=F(e,`chart.grid.labels.yAxis.scaleMin`,null),i=F(e,`chart.grid.labels.yAxis.scaleMax`,null);if(B(e))return ge(e,n,t.scaleMin??r,t.scaleMax??i);let a=Z(r)?Number(r):Z(t.scaleMin)?Number(t.scaleMin):Math.min(0,...n),o=Z(i)?Number(i):Z(t.scaleMax)?Number(t.scaleMax):Math.max(1,...n);return Ie(e,a,o===a?a+1:o,j(t.scaleSteps??F(e,`chart.grid.labels.yAxis.commonScaleSteps`,6),6))}function Re(e,t,n=[]){let r=J(e),i=X(e),a=H(e),o=ve(e);if(a&&!i){let t=Object.keys(Se(e,n)).length;return{left:Y(e)?0:t*o,right:Y(e)?t*o:0,scaleLabelsOffset:t*o,yAxisLabelWidth:0}}if(a&&i)return{left:Y(e)?0:o,right:Y(e)?o:0,scaleLabelsOffset:o,yAxisLabelWidth:0};let s=(i?n.flatMap(t=>Le(e,t).ticks):P(t.ticks)).reduce((t,n)=>Math.max(t,N(Fe(n,e),r.dataLabels)),0),c=F(e,`chart.grid.labels.axis.yLabel`,``)?r.yAxis*2+24+j(F(e,`chart.grid.labels.axis.yLabelOffsetX`,0),0)+r.yAxis:0,l=s+j(F(e,`chart.grid.labels.yAxis.scaleValueOffsetX`,0),0)+j(F(e,`chart.grid.labels.yAxis.crosshairSize`,0),0);return{left:Y(e)?0:l+c,right:Y(e)?l+c:0,scaleLabelsOffset:l,yAxisLabelWidth:c}}function ze(e,t){let{config:n,scale:r,width:i,height:a}=e,o=J(n);e.drawingArea;let s=Re(n,r,t),c=F(n,`chart.legend.position`,`bottom`),l=F(n,`chart.legend.show`,!0),u=l?lt({...e,width:i,height:a},t):{height:0},d=l&&c===`top`?u.height:0,f=l&&c!==`top`?u.height:0,p=F(n,`chart.grid.labels.axis.xLabel`,``),m=F(n,`chart.grid.labels.xAxisLabels.show`,!0)?o.xAxis*2:0,h=(p?o.yAxis*1.5:0)+m+o.xAxis,g=Tt(n)+j(F(n,`chart.labels.fontSize`,12),12)*1.1,_=j(F(n,`chart.padding.top`,12),12),v=j(F(n,`chart.padding.right`,12),12),y=j(F(n,`chart.padding.bottom`,12),12),b=j(F(n,`chart.padding.left`,12),12),x=j(F(n,`chart.grid.labels.axis.xLabelOffsetY`,0),0),S=j(F(n,`chart.grid.labels.yAxis.crosshairSize`,0),0),C=s.left,w=s.right,T=i-C-w-6-b-v,E={top:_+g+d,right:C+(Y(n)?0:S)+b+T,bottom:a-h-y-x-f,left:C+(Y(n)?0:S)+b,width:Math.max(1,T),height:1,scaleLabelX:C,rightScaleLabelX:w,scaleLabelsOffset:s.scaleLabelsOffset,yAxisLabelWidth:s.yAxisLabelWidth,individualOffsetX:36};E.height=Math.max(1,E.bottom-E.top);let D=X(n),O=D?ee(t):t,k=Math.max(1,O.length),A=D?j(F(n,`chart.grid.labels.yAxis.gap`,12),12):0,te=A*Math.max(0,k-1),ne=Math.max(1,E.height-te),re=H(n),M=Se(n,t),N=Math.max(1,...t.map(e=>P(e.plots).length));function ie(t,n){if(Q(e)){let n=Number(t.rawX);return Number.isFinite(n)?Qe({...e,drawingArea:E},n):null}return $({...e,drawingArea:E},t.index??n,N)}let ae=t.map((e,t)=>{let i=e.id!==void 0&&e.id!==null?O.find(t=>t.id===e.id)??O[t]??e:O[t]??e,a=Ce(n,e,M,r,re,D),o=j(i.stackIndex,t),s=j(i.stackRatio,1/k),c=j(i.cumulatedStackRatio,s*(o+1)),l=k-1-o,u=D?1-c:0,d=D?ne*u+A*l:0,f=D?ne*s:E.height;function p(e){let t=V(n,e,a);return E.bottom-d-t*f}let m=p(z(n)?a.min:0);return{...e,__scale:a,__yOffset:d,__individualHeight:f,__zeroY:m,__scaleYLabels:he(n,P(a.ticks).map(t=>({value:t,y:p(t),serie:e}))),plots:e.plots.map((e,t)=>{let r=e.value===null||e.value===void 0?null:Number(e.value);return{...e,value:r,x:ie(e,t),y:r===null||!Number.isFinite(r)||z(n)&&!(r>0)?null:p(r)}})}});return{...e,drawingArea:E,series:ae,__scaleGroups:M,__useIndividualScale:re}}function Be(e){let{config:t,drawingArea:n,scale:r,series:i}=e;if(!F(t,`chart.grid.labels.show`,!0)||!F(t,`chart.grid.labels.yAxis.show`,!0))return``;let a=H(t),o=X(t);if(a)return Ve(e);let s=J(t),c=Y(t),l=F(t,`chart.grid.labels.yAxis.showCrosshairs`,!1),u=j(F(t,`chart.grid.labels.yAxis.crosshairSize`,0),0),d=j(F(t,`chart.grid.labels.yAxis.scaleValueOffsetX`,0),0),f=F(t,`chart.grid.labels.color`,`#2A2A2A`),p=F(t,`chart.grid.stroke`,`#CCCCCC`),m=Ke(e),h=[];return m.forEach(e=>{Number.isFinite(e.y)&&(l&&h.push(M(`line`,{"data-cy":`axis-y-tick`,x1:c?n.right:n.left,x2:c?n.right+u:n.left-u,y1:e.y,y2:e.y,stroke:p,"stroke-width":1,"stroke-linecap":`round`})),h.push(L(Fe(e.value,t),{"data-cy":`axis-y-label`,transform:`translate(${c?n.right+u+d+5:n.scaleLabelX-u}, ${e.y+s.dataLabels/3})`,"font-size":s.dataLabels,"text-anchor":c?`start`:`end`,fill:o&&e.serie?.color?F(t,`chart.grid.labels.yAxis.groupColor`,null)||e.serie.color:f})))}),I(`g`,{"data-layer":`scale-labels`},h.join(``))}function Ve(e){let{config:t,drawingArea:n,series:r}=e,i=J(t),a=Y(t),o=X(t),s=e.__scaleGroups??Se(t,r),c=F(t,`chart.grid.labels.yAxis.showCrosshairs`,!1),l=j(F(t,`chart.grid.labels.yAxis.crosshairSize`,0),0),u=j(F(t,`chart.grid.labels.yAxis.scaleValueOffsetX`,0),0),d=j(F(t,`chart.grid.labels.yAxis.labelWidth`,40),40),f=j(n.individualOffsetX,36),p=[],m=Object.values(s);return m.forEach((e,s)=>{let h=r.find(t=>_e(t)===e.scaleLabel)??r[s];if(!h)return;let g=o?a?n.right:n.left:a?n.right+ve(t)*s:n.left-ve(t)*(m.length-s-1),_=j(h.__yOffset,0),v=j(h.__individualHeight,n.height),y=o?n.bottom-_-v:n.top,b=o?n.bottom-_:n.bottom;p.push(M(`line`,{x1:o||a?g:g-f,x2:o||a?g:g-f,y1:y,y2:b,stroke:e.color,"stroke-width":F(t,`chart.grid.strokeWidth`,1),"stroke-linecap":`round`}));let x=o?a?n.right+l+u+5+d+f:n.left-l-u-d:a?g+l+u+5+d:g-i.dataLabels/2;p.push(L(e.name,{transform:`translate(${x}, ${y+(b-y)/2}) rotate(-90)`,"font-size":i.dataLabels*.8,"text-anchor":`middle`,fill:e.color})),he(t,P(e.scale.ticks).map(n=>({value:n,y:b-V(t,n,e.scale)*(b-y)}))).forEach(({value:r,y:s})=>{Number.isFinite(s)&&(c&&p.push(M(`line`,{"data-cy":`axis-y-tick`,x1:o||a?g:g+3-l-f,x2:o?a?g+l:g-l:a?g+l:g-f,y1:s,y2:s,stroke:e.color,"stroke-width":1,"stroke-linecap":`round`})),p.push(L(Fe(r,t),{"data-cy":`axis-y-label`,transform:`translate(${o?a?n.right+l+u+5:n.left-l-u-5:a?g+l+u+5:g-5-f}, ${s+i.dataLabels/3})`,"font-size":i.dataLabels,"text-anchor":a?`start`:`end`,fill:e.color})))})}),I(`g`,{"data-layer":`individual-scale-labels`},p.join(``))}function He(e){return[...new Set(e.flatMap(e=>P(e.plots)).map(e=>Number(e.x)).filter(Number.isFinite))].sort((e,t)=>e-t)}function Ue(e,t,n=1){let{drawingArea:r,config:i}=e,a=He(t),o=r.width*.05;if(a.length<2)return Math.max(1e-5,o/Math.max(1,n));let s=a.slice(1).reduce((e,t,n)=>{let r=a[n],i=Math.abs(t-r);return i>0?Math.min(e,i):e},1/0),c=j(F(i,`bar.periodGap`,.2),.2),l=Number.isFinite(s)&&s>0?s*(1-c):o;return Math.max(1e-5,l/Math.max(1,n))}function We(e,t,n){let{config:r}=e,i=j(F(r,`bar.innerGap`,.05),.05),a=F(r,`bar.borderRadius`,0),o=[];if(n){let n=Ue(e,t,1),r=n*Math.min(Math.abs(i),.95),s=Math.max(1e-5,n-r);return t.forEach((t,n)=>{let r=Number.isFinite(Number(t.__zeroY))?Number(t.__zeroY):W(e);P(t.plots).forEach(i=>{if(!i||i.value===null||i.value===void 0||!Number.isFinite(Number(i.value))||!Number.isFinite(Number(i.x))||!Number.isFinite(Number(i.y)))return;let c=i.x-s/2,{y:l,height:u}=U(e,t,i,r);i.__barLabelX=i.x,o.push(M(`rect`,{"data-cy":`datapoint-bar`,x:c,y:l,width:s,height:u,rx:a,fill:q(e,t,n,Number(i.value)),...vt(e,t)}))})}),I(`g`,{"data-layer":`bars`},o.join(``))}let s=Math.max(1,t.length),c=Ue(e,t,s),l=c*Math.min(Math.abs(i),.95),u=Math.max(1e-5,c-l),d=c*s;return t.forEach((t,n)=>{let r=Number.isFinite(Number(t.__zeroY))?Number(t.__zeroY):W(e);P(t.plots).forEach(i=>{if(!i||i.value===null||i.value===void 0||!Number.isFinite(Number(i.value))||!Number.isFinite(Number(i.x))||!Number.isFinite(Number(i.y)))return;let s=i.x-d/2+c*n+l/2,{y:f,height:p}=U(e,t,i,r);i.__barLabelX=s+u/2,o.push(M(`rect`,{"data-cy":`datapoint-bar`,x:s,y:f,width:u,height:p,rx:a,fill:q(e,t,n,Number(i.value)),...vt(e,t)}))})}),I(`g`,{"data-layer":`bars`},o.join(``))}function Ge(e,t){let{config:n,drawingArea:r}=e,i=X(n),a=t.filter(e=>e.type===`bar`);if(!a.length)return``;if(Q(e))return We(e,a,i);let o=Math.max(1,...t.map(e=>P(e.plots).length)),s=r.width/o,c=j(F(n,`bar.periodGap`,.2),.2),l=j(F(n,`bar.innerGap`,.05),.05),u=F(n,`bar.borderRadius`,0),d=[];if(i){let t=Math.max(1e-5,s*.9),n=t*Math.min(Math.abs(l),.95);return a.forEach((i,a)=>{let o=Number.isFinite(Number(i.__zeroY))?Number(i.__zeroY):W(e);P(i.plots).forEach((c,l)=>{if(!c||c.value===null||c.value===void 0||!Number.isFinite(Number(c.value))||!Number.isFinite(Number(c.y)))return;let f=r.left+s*l+s*.05+n/2,{y:p,height:m}=U(e,i,c,o);c.__barLabelX=f+Math.max(1e-5,t-n)/2,d.push(M(`rect`,{"data-cy":`datapoint-bar`,x:f,y:p,width:Math.max(1e-5,t-n),height:m,rx:u,fill:q(e,i,a,Number(c.value)),...vt(e,i)}))})}),I(`g`,{"data-layer":`bars`},d.join(``))}let f=s*(1-c),p=f/Math.max(1,a.length),m=p*Math.min(Math.abs(l),.95);return W(e),a.forEach((t,n)=>{let i=Number.isFinite(Number(t.__zeroY))?Number(t.__zeroY):W(e);P(t.plots).forEach((a,o)=>{if(!a||a.value===null||a.value===void 0||!Number.isFinite(Number(a.value))||!Number.isFinite(Number(a.y)))return;let c=r.left+s*o+(s-f)/2+p*n+m/2,{y:l,height:h}=U(e,t,a,i);a.__barLabelX=c+Math.max(1e-5,p-m)/2,d.push(M(`rect`,{"data-cy":`datapoint-bar`,x:c,y:l,width:Math.max(1e-5,p-m),height:h,rx:u,fill:q(e,t,n,Number(a.value)),...vt(e,t)}))})}),I(`g`,{"data-layer":`bars`},d.join(``))}function Ke(e){let{config:t,drawingArea:n,scale:r,series:i}=e;return H(t)||X(t)?i.flatMap(e=>P(e.__scaleYLabels)):he(t,P(r.ticks).map(e=>{let i=V(t,e,r);return{value:e,y:n.bottom-i*n.height}}))}function qe(e,t,n){let{drawingArea:r}=e,i=r.width/Math.max(1,n);return r.left+i*t}function Je(e,t){let{config:n,drawingArea:r}=e,i=Math.max(1,...t.map(e=>P(e.plots).length)),a=r.top,o=r.bottom;if(Q(e)){let e=[...new Set(t.flatMap(e=>P(e.plots)).map(e=>Number(e.x)).filter(Number.isFinite))].sort((e,t)=>e-t);return e.length?F(n,`chart.grid.position`,`middle`)===`middle`?e.map((e,t,n)=>{if(t===0)return null;let r=n[t-1],i=r+(e-r)/2;return`M${i},${a} L${i},${o}`}).filter(Boolean).join(` `):e.map(e=>`M${e},${a} L${e},${o}`).join(` `):``}let s=i+ +(F(n,`chart.grid.position`,`middle`)===`middle`);return Array.from({length:s}).map((t,r)=>{let s=F(n,`chart.grid.position`,`middle`)===`middle`?qe(e,r,i):$(e,r,i);return`M${s},${a} L${s},${o}`}).join(` `)}function Ye(e){let{config:t,drawingArea:n,scale:r,series:i}=e,a=F(t,`chart.grid.show`,!0),o=F(t,`chart.grid.showHorizontalLines`,!0),s=F(t,`chart.grid.showVerticalLines`,!1),c=F(t,`chart.grid.stroke`,`#CCCCCC`),l=j(F(t,`chart.grid.strokeWidth`,.5),.5),u=[];if(a&&o&&Ke(e).forEach(e=>{Number.isFinite(Number(e.y))&&u.push(M(`line`,{"data-cy":`xy-grid-horizontal-line`,x1:n.left,x2:n.right,y1:e.y,y2:e.y,stroke:c,"stroke-width":l,"stroke-linecap":`round`}))}),a&&s){let t=Je(e,i);t&&u.push(M(`path`,{"data-cy":`xy-grid-vertical-line`,d:t,stroke:c,"stroke-width":l,"stroke-linecap":`round`}))}u.push(M(`line`,{x1:n.left,y1:n.bottom,x2:n.right,y2:n.bottom,stroke:c,"stroke-width":l,"stroke-linecap":`round`}));let d=Y(t)?n.right:n.left;return u.push(M(`line`,{x1:d,y1:n.top,x2:d,y2:n.bottom,stroke:c,"stroke-width":l,"stroke-linecap":`round`})),r.min<0&&r.max>0&&u.push(M(`line`,{x1:n.left,y1:W(e),x2:n.right,y2:W(e),stroke:c,"stroke-width":l,"stroke-dasharray":4,"stroke-linecap":`round`})),I(`g`,{"data-layer":`grid`},u.join(``))}function Xe(e){return e&&typeof e==`object`&&Number.isFinite(Number(e.x))&&Number.isFinite(Number(e.y))}function Q(e){return e.isContinuous?!0:P(e.series).some(e=>P(e.series).some(Xe))}function Ze(e){if(e.xScale&&Number.isFinite(Number(e.xScale.min))&&Number.isFinite(Number(e.xScale.max)))return{min:Number(e.xScale.min),max:Number(e.xScale.max)};let t=P(e.series).flatMap(e=>P(e.series)).filter(Xe).map(e=>Number(e.x));if(!t.length)return{min:0,max:1};let n=Math.min(...t),r=Math.max(...t);return n===r?{min:n-1,max:r+1}:{min:n,max:r}}function Qe(e,t){let{drawingArea:n,config:r}=e,i=Ze(e),a=(Number(t)-i.min)/(i.max-i.min||1),o=F(r,`chart.grid.labels.xAxis.reverse`,!1)?1-a:a;return n.left+n.width*o}function $e(e,t,r){let{config:i}=e,a=n({v:t,p:F(i,`chart.labels.prefix`,``),s:F(i,`chart.labels.suffix`,``),r:F(i,`chart.grid.labels.xAxis.rounding`,0)});return x(F(i,`chart.grid.labels.xAxis.formatter`,null),t,a,{datapoint:t,seriesIndex:null})}function et(e){let{xScale:t,config:n}=e,r=P(t?.ticks);return(F(n,`chart.grid.labels.xAxis.reverse`,!1)?[...r].reverse():r).map((t,n)=>({id:`continuous_x_label_${n}`,text:$e(e,t,n),value:t,x:Qe(e,t),index:n,absoluteIndex:n}))}function $(e,t,n){let{drawingArea:r,config:i}=e,a=F(i,`chart.grid.position`,`middle`),o=r.width,s=a===`middle`?o/Math.max(1,n):o/Math.max(1,n-1);return a===`middle`?r.left+s/2+s*t:r.left+s*t}async function tt(e,t){let{config:n}=e,r=Math.max(0,...t.map(e=>P(e.plots).length));return await se({values:F(n,`chart.grid.labels.xAxisLabels.values`,[]),maxDatapoints:r,formatter:F(n,`chart.grid.labels.xAxisLabels.datetimeFormatter`,null),start:j(e.slotStartIndex??e.startAbs,0),end:j(e.slotEndIndex??e.endAbs,r)})}async function nt(e,t){let{config:n}=e,r=F(n,`chart.grid.labels.xAxisLabels`,{}),i=P(F(n,`chart.grid.labels.xAxisLabels.values`,[])),a=Math.max(0,...t.map(e=>P(e.plots).length)),o=e.slotStartIndex!==void 0||e.startAbs!==void 0,s=e.slotEndIndex!==void 0||e.endAbs!==void 0,c=o||s,l=Math.max(0,Math.floor(j(e.slotStartIndex??e.startAbs,0))),u=Math.max(l,Math.floor(j(e.slotEndIndex??e.endAbs,l+a))),d=await tt(e,t),f=c?Math.max(a,i.length,u):a,p=await se({values:i,maxDatapoints:f,formatter:F(n,`chart.grid.labels.xAxisLabels.datetimeFormatter`,null),start:0,end:f}),m=d.map(e=>e?.text??``),h=p.map(e=>e?.text??``),g=Math.max(1,Math.floor(j(r.modulo,1))),_=p.length||f,v=b({configuredModulo:g,visibleTexts:m,allTexts:h,startAbs:l,isZoomed:c&&_>0&&(l>0||u<_)}),x=y(!!r.showOnlyFirstAndLast,!!r.showOnlyAtModulo,v,m,h,l,e.selectedXIndex??null,m.length);if(!r.showFirstAndLast||r.showOnlyFirstAndLast||!x.length)return x;let S=x.length-1;return x.map((e,t)=>t!==0&&t!==S?e:{...e,text:m[t]??``})}async function rt(e,t){return Q(e)?et(e):await nt(e,t)}function it(e,t,n,r){return Q(e)?t.x:$(e,n,r)}function at(e){let t=e.userConfig??e.sourceConfig??e.props?.config??{};return A(t,`chart.grid.labels.xAxisLabels.rotation`)?j(F(e.config,`chart.grid.labels.xAxisLabels.rotation`,0),0):F(e.config,`chart.grid.labels.xAxisLabels.autoRotate.enable`,!1)?j(F(e.config,`chart.grid.labels.xAxisLabels.autoRotate.angle`,0),0):j(F(e.config,`chart.grid.labels.xAxisLabels.rotation`,0),0)}async function ot(e,t){let{config:n,drawingArea:r}=e;if(!t[0]||!F(n,`chart.grid.labels.xAxisLabels.show`,!0))return``;F(n,`chart.grid.labels.xAxisLabels`,{});let i=j(F(n,`chart.grid.labels.xAxisLabels.fontSize`,12),12),a=F(n,`chart.grid.labels.xAxisLabels.color`,F(n,`chart.grid.labels.color`,`#2A2A2A`)),o=at(e),c=Math.max(1,t[0].plots.length),l=await rt(e,t),u=o>0?`start`:o<0?`end`:`middle`,d=l.map((t,l)=>{let d=typeof t==`string`?t:t?.text;if(!d)return``;let f=`translate(${it(e,t,l,c)}, ${r.bottom+i*1.5}), rotate(${o})`;return String(d).includes(`
2
2
  `)?I(`text`,{class:`vue-data-ui-time-label`,"data-cy":`time-label`,"text-anchor":u,"font-size":i,stroke:F(n,`chart.backgroundColor`,`#FFFFFF`),"stroke-linecap":`round`,"stroke-linejoin":`round`,"paint-order":`stroke fill`,fill:a,transform:f},s({content:String(d),fontSize:i,fill:a,stroke:F(n,`chart.backgroundColor`,`#FFFFFF`),x:0,y:0})):L(d,{class:`vue-data-ui-time-label`,"data-cy":`time-label`,"text-anchor":u,"font-size":i,stroke:F(n,`chart.backgroundColor`,`#FFFFFF`),"stroke-linecap":`round`,"stroke-linejoin":`round`,"paint-order":`stroke fill`,fill:a,transform:f})}).join(``);return I(`g`,{"data-layer":`x-axis-labels`},d)}function st(e){let{config:t,drawingArea:n,height:r}=e,i=J(t),a=F(t,`chart.grid.labels.axis.xLabel`,``),o=F(t,`chart.grid.labels.axis.yLabel`,``),s=F(t,`chart.grid.labels.axis.color`,F(t,`chart.grid.labels.color`,`#2A2A2A`)),c=j(F(t,`chart.grid.labels.axis.yLabelOffsetX`,0),0),l=j(F(t,`chart.grid.labels.axis.xLabelOffsetY`,0),0),u=j(F(t,`chart.grid.labels.yAxis.crosshairSize`,0),0),d=j(F(t,`chart.grid.labels.yAxis.scaleValueOffsetX`,0),0),f=j(F(t,`chart.grid.labels.yAxis.labelWidth`,0),0),p=Y(t),m=[];if(a&&m.push(L(a,{x:n.left+n.width/2,y:Math.min(r-4,n.bottom+i.xAxis*3+l),"font-size":i.yAxis,"text-anchor":`middle`,fill:s})),o){let e=p?n.right+u+d+5+f+c:n.scaleLabelX-u-d-f-c,t=n.top+n.height/2;m.push(L(o,{x:e,y:t,transform:`rotate(-90 ${e} ${t})`,"font-size":i.yAxis,"text-anchor":`middle`,fill:s}))}return I(`g`,{"data-layer":`axis-labels`},m.join(``))}async function ct(e,t){let{config:n,drawingArea:r}=e,i=F(n,`chart.grid.labels.xAxisLabels.show`,!0),a=F(n,`chart.grid.labels.xAxis.showCrosshairs`,!1);if(!i||!a||!t[0])return``;let o=j(F(n,`chart.grid.labels.xAxis.crosshairSize`,6),6),s=!!F(n,`chart.grid.labels.xAxis.crosshairsAlwaysAtZero`,!1),c=Math.max(1,t[0].plots.length),l=await rt(e,t),u=W(e),d=l.map((t,n)=>{if(!(typeof t==`string`?t:t?.text))return``;let i=Q(e)?t.x:$(e,n,c);return`M${i},${s?u-(u===r.bottom?0:o/2):r.bottom} L${i},${s?u+o/(u===r.bottom?1:2):r.bottom+o}`}).filter(Boolean).join(` `);return d?I(`g`,{"data-layer":`x-axis-ticks`},M(`path`,{d,stroke:F(n,`chart.grid.stroke`,`#CCCCCC`),"stroke-width":1,"stroke-linecap":`round`,"data-cy":`axis-x-tick`})):``}function lt(e,t){let{config:n,width:r}=e,i=F(n,`chart.legend`,{}),a=j(i.fontSize,12),o=j(i.markerSize,10),s=j(i.itemGap,16),c=j(i.rowGap,8),l=j(i.padding,8),u=Math.max(1,r-l*2),d=[],f=[],p=0;return t.forEach(e=>{let t=String(e.name??``),n=o+6+N(t,a)+s;f.length&&p+n>u&&(d.push({items:f,width:p}),f=[],p=0),f.push({serie:e,label:t,itemWidth:n}),p+=n}),f.length&&d.push({items:f,width:p}),{rows:d,fontSize:a,markerSize:o,itemGap:s,rowGap:c,padding:l,height:d.length*Math.max(o,a)+Math.max(0,d.length-1)*c+l*2}}function ut(e,t){let{config:n,width:r,height:i}=e;if(!F(n,`chart.legend.show`,!0)||!t.length)return``;let a=F(n,`chart.legend`,{}),o=a.position||`bottom`,s=a.color||F(n,`chart.color`,`#2A2A2A`),c=lt(e,t),l=Math.max(c.markerSize,c.fontSize),u=o===`top`?c.padding+l:i-c.height+c.padding+l,d=[];return c.rows.forEach((e,t)=>{let n=Math.max(c.padding,r/2-e.width/2),i=u+t*(l+c.rowGap);e.items.forEach(({serie:e,label:t,itemWidth:r})=>{d.push(M(`rect`,{x:n,y:i-c.markerSize/2,width:c.markerSize,height:c.markerSize,rx:2,fill:e.color})),d.push(L(t,{x:n+c.markerSize+6,y:i+2,"font-size":c.fontSize,"dominant-baseline":`middle`,fill:s})),n+=r})}),I(`g`,{"data-layer":`legend`},d.join(``))}function dt(e,t){return`areaGradient_${t}_${G()}`}function ft(e,t){let{config:n}=e;if(!F(n,`line.area.useGradient`,!1))return``;let r=j(F(n,`line.area.opacity`,30),30),i=t.filter(e=>e.type===`line`&&e.useArea).map((t,n)=>I(`linearGradient`,{id:dt(e,n),x1:`0%`,x2:`0%`,y1:`0%`,y2:`100%`},[M(`stop`,{offset:`0%`,"stop-color":c(_(f(t.color),.03),r),"stop-opacity":1}),M(`stop`,{offset:`100%`,"stop-color":t.color,"stop-opacity":0})].join(``))).join(``);return i?I(`defs`,{},i):``}function pt(e,t){let{config:n}=e,i=!!F(n,`line.cutNullValues`,!1),a=[];return t.filter(e=>e.type===`line`&&e.useArea).forEach((t,n)=>{let o=P(t.plots).filter(e=>!e.logOmitted),s=o.filter(e=>e&&e.value!==null);if(s.length<2)return;let c=Number.isFinite(Number(t.__zeroY))?Number(t.__zeroY):W(e),l=Me(e,t,n);t.smooth&&!t.useStepper?u(i?o:s,c,i).forEach(e=>{e&&a.push(M(`path`,{d:e,fill:l,"data-cy":`datapoint-line-area-smooth`}))}):(t.useStepper?m(i?o:s,c):i?r(o,c):C(s,c)).split(`;`).filter(Boolean).forEach(e=>{a.push(M(`path`,{d:`M${e}Z`,fill:l,"data-cy":`datapoint-line-area-straight`}))})}),I(`g`,{"data-layer":`line-areas`},a.join(``))}function mt(e,t){let n=j(t.slotStartIndex??t.startAbs,0);return P(e.dashIndices).map(e=>Number(e)-n).filter(Number.isFinite)}function ht(e,t,n,r,i){let{config:a}=e,o=j(t.strokeWidth||F(a,`line.strokeWidth`,2),2);return M(`path`,{d:`M${r}`,fill:`none`,stroke:ke(e,t,n),"stroke-width":o,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-dasharray":i?o*2:0})}function gt(e,t){let{config:n}=e,r=t.filter(e=>e.type===`line`),a=!!F(n,`line.cutNullValues`,!1),s=[];return r.forEach((t,r)=>{let c=P(t.plots).filter(e=>!e.logOmitted),u=a?c:c.filter(e=>e.value!==null),f=u.filter(e=>e.value!==null);if(!(f.length<2)){if(P(t.dashIndices).length>0&&!t.useStepper){let a=mt(t,e);(t.smooth||F(n,`line.smooth`,!1)?l(u,a):i(u,a)).forEach(n=>{n?.path&&s.push(ht(e,t,r,n.path,!!n.dashed))})}else(t.useStepper?m(u).split(`;`).filter(Boolean):[t.smooth||F(n,`line.smooth`,!1)?a?o(u):d(f):a?h(u):p(f,!1,!0)]).forEach(n=>{n&&s.push(ht(e,t,r,n,!!t.dashed))})}}),I(`g`,{"data-layer":`lines`},s.join(``))}function _t(e,t,n){let{config:r}=e;return F(r,`plot.useGradient`,!1)?`url(#${Ae(e,n)})`:F(r,`plot.dot.useSerieColor`,!0)?t.color:F(r,`plot.dot.fill`,t.color)}function vt(e,t){let n=F(e.config,`bar.border`,{});return{stroke:n.useSerieColor?t.color:n.stroke,"stroke-width":j(n.strokeWidth,0)}}function yt(e,t){let{config:n}=e,r=t.filter(e=>e.type===`plot`),i=F(n,`plot.radius`,4),a=F(n,`plot.dot.strokeWidth`,2),o=F(n,`chart.backgroundColor`,`#FFFFFF`),s=[];return r.forEach((t,r)=>{t.plots.forEach((c,l)=>{oe(c.value)&&s.push(ie({dataCy:`xy-plot-${r}-${l}`,shape:t.shape,plot:c,radius:t.radius||i,fill:_t(e,t,r),stroke:F(n,`plot.dot.useSerieColor`,!0)?o:t.color,strokeWidth:a}))})}),I(`g`,{"data-layer":`plots`},s.join(``))}function bt(e){return![null,void 0,NaN,1/0,-1/0].includes(e)}function xt(e,t,n){let r=e[t-1],i=e[t+1],a=!!r&&!!i&&r.value==null&&i.value==null||!r&&!!i&&i.value==null||!!r&&!i&&r.value==null;return bt(e[t]?.value)&&a&&!!F(n,`line.cutNullValues`,!1)}function St(e,t,n,r,i){let{config:a}=e;if(!n||!bt(n.value))return!1;if(!(i>j(F(a,`line.dot.hideAboveMaxSerieLength`,1/0),1/0)))return!0;let o=e.selectedSerieIndex??null,s=e.selectedMinimapIndex??null;return o!==null&&o===r||s!==null&&s===r||xt(t.plots,r,a)}function Ct(e,t){let{config:n}=e,r=t.filter(e=>e.type===`line`),i=Math.max(0,...r.map(e=>P(e.plots).length)),a=F(n,`line.radius`,4),o=F(n,`line.dot.strokeWidth`,2),s=F(n,`chart.backgroundColor`,`#FFFFFF`),c=[];return r.forEach((t,r)=>{t.plots.forEach((l,u)=>{St(e,t,l,u,i)&&c.push(ie({dataCy:`datapoint-line-plot`,shape:t.shape,plot:l,radius:t.radius||a,fill:je(e,t,r),stroke:F(n,`line.dot.useSerieColor`,!0)?s:t.color,strokeWidth:o}))})}),I(`g`,{"data-layer":`line-dots`},c.join(``))}function wt(e,t){let{config:n}=e;if(X(n))return``;let r=F(n,`line.interLine`,{}),i=P(r.pairs),a=P(r.colors);if(!i.length)return``;let o=t.filter(e=>e.type===`line`),s=j(r.fillOpacity,.2),c=!!F(n,`line.cutNullValues`,!1),l=[];return i.forEach((e,t)=>{let[r,i]=Array.isArray(e)?e:[e?.a,e?.b];if(!r||!i)return;let u=o.find(e=>e.name===r),d=o.find(e=>e.name===i);if(!u||!d)return;let f=a?.[t]?.[0]??u.color,p=a?.[t]?.[1]??d.color;w({lineA:P(u.plots).filter(e=>!e.logOmitted),lineB:P(d.plots).filter(e=>!e.logOmitted),smoothA:!!u.smooth,smoothB:!!d.smooth,colorLineA:F(n,`chart.grid.labels.yAxis.reverse`,!1)?p:f,colorLineB:F(n,`chart.grid.labels.yAxis.reverse`,!1)?f:p,sampleStepPx:2,cutNullValues:c}).forEach((e,n)=>{l.push(M(`path`,{"data-cy":`interline-area`,d:e.d,fill:e.color,"fill-opacity":s,stroke:`none`,"pointer-events":`none`,"data-key":`inter_${r}_${i}_${t}_${n}`}))})}),l.length?I(`g`,{"data-layer":`interline-areas`},l.join(``)):``}function Tt(e){let t=F(e,`chart.title`,{}),n=F(t,`subtitle`,{});if(!t.show)return 0;let r=j(t.fontSize,20),i=n.text?j(n.fontSize,14):0,a=j(t.paddingTop,12),o=j(t.paddingBottom,6);return a+r+(n.text?i+4:0)+o}function Et(e){let{config:t,width:n}=e,r=F(t,`chart.title`,{}),i=F(r,`subtitle`,{});if(!r.show||!r.text)return``;let a=r.textAlign||`center`,o=a===`left`?j(r.paddingLeft,12):a===`right`?n-j(r.paddingRight,12):n/2,s=a===`left`?`start`:a===`right`?`end`:`middle`,c=j(r.fontSize,20),l=j(i.fontSize,14),u=j(r.paddingTop,12)+c,d=[L(r.text,{"data-cy":`xy-div-title`,x:o,y:u,"font-size":c,"font-weight":r.bold?`700`:`400`,"text-anchor":s,fill:r.color||F(t,`chart.color`,`#2A2A2A`)})];return i.text&&d.push(L(i.text,{"data-cy":`xy-div-subtitle`,x:o,y:u+l+4,"font-size":l,"font-weight":i.bold?`700`:`400`,"text-anchor":s,fill:i.color||r.color||F(t,`chart.color`,`#2A2A2A`)})),I(`g`,{"data-layer":`title`},d.join(``))}function Dt(e){if(!e.svgTitle)return``;let t=[e.svgTitle];return I(`desc`,{"aria-hidden":`true`},t.join(``))}function Ot(e,t,n,r,i){return!n||n.value===null||n.value===void 0||!Number.isFinite(Number(n.value))||!F(e.config,`dataLabels.show`,!0)||!F(e.config,`${i}.labels.show`,!1)?!1:!Object.hasOwn(t,`dataLabels`)||t.dataLabels===!0||e.selectedSerieIndex===r||e.selectedMinimapIndex===r}function kt(e,t,r,i){let{config:a}=e,o=j(F(a,`${i}.labels.fontSize`,F(a,`chart.labels.fontSize`,12)),12),c=F(a,`${i}.labels.color`,F(a,`chart.color`,`#2A2A2A`)),l=n({p:t.prefix||F(a,`chart.labels.prefix`,``),v:r.value,s:t.suffix||F(a,`chart.labels.suffix`,``),r:F(a,`${i}.labels.rounding`,0)}),u=Q(e)&&Number.isFinite(Number(r.x))?`x: ${n({v:r.x,r:F(a,`chart.grid.labels.xAxis.rounding`,0)})}\ny: ${l}`:x(F(a,`${i}.labels.formatter`,null),r.value,l,{datapoint:r,serie:t});return s({content:u,fontSize:o,fill:c,x:0,y:0})}function At(e,t,n){let r=F(e.config,`${n}.labels.textAnchor`,null);return r===null?j(F(e.config,`${n}.labels.rotation`,0),0)===0?`middle`:F(e.config,`${n}.labels.alwaysOnTop`,!1)||t.value>=0?`start`:`end`:r}function jt(e,t,n){let r=j(F(e.config,`${n}.labels.offsetX`,0),0),i=j(F(e.config,`${n}.labels.offsetY`,-12),-12),a=j(F(e.config,`${n}.labels.rotation`,0),0),o=!!F(e.config,`${n}.labels.alwaysOnTop`,!1);return`translate(${t.x+r}, ${t.y+(o||t.value>=0?i:-i*3)}) rotate(${a})`}function Mt(e,t,n){let r=j(F(e.config,`bar.labels.offsetX`,0),0),i=j(F(e.config,`bar.labels.offsetY`,-6),-6),a=j(F(e.config,`bar.labels.rotation`,0),0),o=!!F(e.config,`bar.labels.alwaysOnTop`,!1),s=Number.isFinite(Number(t.__zeroY))?Number(t.__zeroY):W(e),c=Math.abs(s-n.y),l=n.__barLabelX??n.x,u=n.y+(o?i-(n.value<0?c:0):n.value>=0?i:-i*3);return`translate(${l+r}, ${u}) rotate(${a})`}function Nt(e,t){let{config:n}=e,r=j(F(n,`chart.labels.fontSize`,12),12),i=F(n,`chart.backgroundColor`,`#FFFFFF`),a=[];return t.forEach(t=>{P(t.plots).forEach((o,s)=>{let c=t.type;[`line`,`bar`,`plot`].includes(c)&&Ot(e,t,o,s,c)&&a.push(I(`text`,{"data-cy":`datapoint-${c}-label`,transform:c===`bar`?Mt(e,t,o):jt(e,o,c),"text-anchor":At(e,o,c),"font-size":F(n,`${c}.labels.fontSize`,r),fill:F(n,`${c}.labels.color`,F(n,`chart.color`,`#2A2A2A`)),stroke:i,"paint-order":`stroke`},kt(e,t,o,c)))})}),I(`g`,{"data-layer":`datapoint-labels`},a.join(``))}function Pt(e){return j(e.slotStartIndex??e.startAbs,0)}function Ft(e,t){let n=Math.max(0,...t.map(e=>P(e.plots).length));return j(e.slotEndIndex??e.endAbs,n)}function It(e,t){let{drawingArea:n,config:r}=e;return F(r,`chart.grid.position`,`middle`)===`middle`?n.width/Math.max(1,t):n.width/Math.max(1,t-1)}function Lt(e,t,n){let{drawingArea:r,config:i}=e,a=It(e,n);return F(i,`chart.grid.position`,`middle`)===`middle`?r.left+a*t:r.left+a*t-a/2}function Rt(e,t){return It(e,t)}function zt(e,t,n,r,i,a){let{drawingArea:o}=e,s=t.caption??{};if(!s.text)return``;let c=Rt(e,a)*i,l=s.width===`auto`?c:j(s.width,c),u=Lt(e,r,a)-(s.width===`auto`?0:l/2-c/2),d=o.top+j(s.offsetY,0);return I(`foreignObject`,{"data-key":`highlight_area_caption_${n}`,x:u,y:d,width:l,height:1,overflow:`visible`},I(`div`,{xmlns:`http://www.w3.org/1999/xhtml`,"data-cy":`highlight-area-caption`,style:[`padding:${j(s.padding,0)}px`,`text-align:${s.textAlign||`center`}`,`font-size:${j(s.fontSize,12)}px`,`color:${s.color||`#2A2A2A`}`,`font-weight:${s.bold?`bold`:`normal`}`].join(`;`)},D(s.text)))}function Bt(e,t){let{config:n,drawingArea:r}=e,i=P(F(n,`chart.highlightArea`,[]));if(!i.length)return``;let a=Math.max(1,...t.map(e=>P(e.plots).length)),o=Pt(e),s=Ft(e,t),l=[];return i.forEach((t,n)=>{if(!t?.show)return;let i=j(t.from,0),u=Math.min(j(t.to,i),a-1);if(u<i)return;for(let d=i;d<=u;d+=1){if(d<o||d>s-1)continue;let i=d-o;l.push(M(`rect`,{"data-cy":`highlight-area`,"data-key":`highlight_area_${n}_${d}`,x:Lt(e,i,a),y:r.top,width:Rt(e,a),height:Math.max(1,r.height),fill:c(t.color,j(t.opacity,20)),"pointer-events":`none`}))}let d=Math.max(i,o);d<=Math.min(u,s-1)&&l.push(zt(e,t,n,d-o,u-i+1,a))}),l.length?I(`g`,{"data-layer":`highlight-areas`},l.join(``)):``}function Vt(e,t){if(t==null)return null;let{drawingArea:n,scale:r}=e;if(B(e.config)||F(e.config,`chart.grid.labels.yAxis.reverse`,!1))return z(e.config)&&!(t>0)?null:n.bottom-V(e.config,Number(t),r)*n.height;let i=W(e),a=r.max-r.min||1;return i-(Number(t)-0)/a*n.height}function Ht(e){return N(e.text,j(e.fontSize,12))}function Ut(e,t,n){let r=j(e.fontSize,12),i=e.padding??{},a=e.border??{},o=Ht(e),s=r,c;return c=e.textAnchor===`middle`?t-o/2-j(i.left,0):e.textAnchor===`end`?t-o-j(i.right,0):t-j(i.left,0),{x:c,y:n-s*.75-j(i.top,0),width:o+j(i.left,0)+j(i.right,0),height:s+j(i.top,0)+j(i.bottom,0),fill:e.backgroundColor,stroke:a.stroke,rx:a.rx,ry:a.ry,"stroke-width":a.strokeWidth}}function Wt(e){let{config:t,drawingArea:n}=e;if(X(t))return``;let r=P(F(t,`chart.annotations`,[])).filter(e=>e?.show&&(e.yAxis?.yTop!==null||e.yAxis?.yBottom!==null)&&(e.yAxis?.yTop!==void 0||e.yAxis?.yBottom!==void 0));if(!r.length)return``;let i=[];return r.forEach((t,r)=>{let a=t.yAxis??{},o=a.label??{},s=a.line??{},l=a.area??{},u=a.yTop,d=a.yBottom,f=u!=null&&d!=null&&u!==d,p=Vt(e,u),m=Vt(e,d),h=Number.isFinite(p),g=Number.isFinite(m);if(!h&&!g)return;let _=[];if(h&&_.push(M(`line`,{x1:n.left,y1:p,x2:n.right,y2:p,stroke:s.stroke,"stroke-width":s.strokeWidth,"stroke-dasharray":s.strokeDasharray,"stroke-linecap":`round`,"data-cy":`xy-annotation-y-top-line`})),g&&_.push(M(`line`,{x1:n.left,y1:m,x2:n.right,y2:m,stroke:s.stroke,"stroke-width":s.strokeWidth,"stroke-dasharray":s.strokeDasharray,"stroke-linecap":`round`,"data-cy":`xy-annotation-y-bottom-line`})),f&&h&&g&&_.push(M(`rect`,{x:n.left,y:Math.min(p,m),width:n.width,height:Math.abs(p-m),fill:c(l.fill,j(l.opacity,20)),"data-cy":`xy-annotation-y-area`,"pointer-events":`none`})),o.text){let e=o.padding??{},t=h&&g?Math.min(p,m):h?p:m,r=(o.position===`start`?n.left+j(e.left,0):n.right-j(e.right,0))+j(o.offsetX,0),i=t-j(o.fontSize,12)/3+j(o.offsetY,0)-j(e.top,0),a=Ut(o,r,i);Number.isFinite(a.y)&&Number.isFinite(i)&&(_.push(M(`rect`,{class:`vue-ui-xy-annotation-label-box`,...a,"data-cy":`xy-annotation-label-box`})),_.push(L(o.text,{class:`vue-ui-xy-annotation-label`,x:r,y:i,"font-size":o.fontSize,fill:o.color,"text-anchor":o.textAnchor,"data-cy":`xy-annotation-label`})))}i.push(I(`g`,{"data-layer":`annotation`,"data-key":`annotation_y_${r}`},_.join(``)))}),i.length?I(`g`,{"data-layer":`annotations`},i.join(``)):``}function Gt(e,t){let n=e.additionalSvgContent;return typeof n==`function`?n({width:e.width,height:e.height,drawingArea:e.drawingArea,scale:e.scale,config:e.config,series:t.map(e=>({...e,plots:P(e.plots).map(e=>({...e}))}))})??``:n??``}async function Kt(e){let t=e.config,n=j(e.width,t.chart.width??1e3),r=j(e.height,t.chart.height??600),i=Te({...e,config:t,width:n,height:r}),a=ze({...e,config:t,width:n,height:r,scale:be(t,e.scale,i)},i),o=a.series;return`
3
3
  <svg
4
4
  xmlns="${O}"
@@ -1,4 +1,4 @@
1
- import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{n as t,r as n,t as r}from"./userOptionsSlots-CWtXN5Q6.js";import{n as i,t as a}from"./tableIntegration-CNoJ1CIY.js";import{$ as o,D as s,Dt as ee,Ft as c,Ht as l,Jt as te,Kt as ne,Mt as re,S as ie,X as ae,Zt as oe,_ as se,_t as ce,at as le,i as ue,in as de,nn as fe,nt as pe,o as me,pt as he,w as ge,wt as _e,zt as ve}from"./lib-rPeBMZrn.js";import{a as ye,c as be,i as u,n as xe,o as Se,s as Ce,t as we}from"./canvas-lib-22VpOI4_.js";import{n as Te,t as Ee}from"./useHints-C-TwxM0Y.js";import{n as De,r as Oe,t as ke}from"./useTimeLabels-Das5O74F.js";import{t as Ae}from"./useConfig-9oDGTWWG.js";import{t as je}from"./useLoading-BwiplGDB.js";import{t as Me}from"./usePrinter-DVf3YcG5.js";import{t as Ne}from"./useNestedProp-DnGoh-XS.js";import{t as Pe}from"./useResponsive-CENUxfEL.js";import{t as Fe}from"./useThemeCheck-BKNRbGeC.js";import{t as Ie}from"./useUserOptionState-CXlFnwPv.js";import{t as Le}from"./useChartAccessibility-DOMuYJfm.js";import{t as Re}from"./img-D4RQwASc.js";import{t as ze}from"./vue_ui_xy_canvas-cQVme5sy.js";import{t as Be}from"./Legend-W9YVYVX-.js";import{n as Ve}from"./Title-BliHuXfT.js";import{t as He}from"./BaseIcon-CoY0vuL3.js";import{t as Ue}from"./vue-ui-accordion-CnAwFOgA.js";import{t as We}from"./SlicerPreview-Ks9FNVzh.js";import{t as Ge}from"./BaseScanner-m6QR9rwD.js";import{t as Ke}from"./BaseLegendToggle-VzX69MCo.js";import{t as qe}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{Teleport as Je,computed as d,createBlock as f,createCommentVNode as p,createElementBlock as Ye,createElementVNode as m,createSlots as Xe,createTextVNode as Ze,createVNode as Qe,defineAsyncComponent as $e,guardReactiveProps as h,mergeProps as et,nextTick as tt,normalizeClass as nt,normalizeProps as g,normalizeStyle as rt,onBeforeUnmount as it,onMounted as at,openBlock as _,ref as v,renderList as ot,renderSlot as y,resolveDynamicComponent as st,shallowRef as ct,toDisplayString as lt,toRefs as ut,unref as b,useSlots as dt,watch as x,watchEffect as ft,withCtx as S}from"vue";var pt=/* @__PURE__ */ e({default:()=>Dt}),mt=[`id`],ht=[`id`],gt={class:`sr-only`,"aria-live":`polite`,"aria-atomic":`true`},_t=[`id`],vt=[`aria-label`,`aria-describedby`],yt=[`viewBox`],bt=[`x`,`y`,`width`,`height`,`fill`,`fill-opacity`,`stroke`,`stroke-opacity`,`stroke-width`,`stroke-dasharray`],xt={key:1,style:{position:`absolute`,top:`100%`,left:`0`,width:`100%`},"data-dom-to-png-ignore":``,"aria-hidden":`true`},St=[`id`],Ct=[`onClick`],wt={key:4,class:`vue-data-ui-watermark`},Tt={key:0},Et={key:1},Dt=/*#__PURE__*/ qe({__name:`vue-ui-xy-canvas`,props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}},selectedXIndex:{type:Number,default:void 0},zoomState:{type:Object,default:null}},emits:[`selectLegend`,`selectX`,`zoomStart`,`zoomEnd`,`zoomReset`,`update:zoomState`,`copyAlt`],setup(e,{expose:qe,emit:pt}){let Dt=$e(()=>import(`./Tooltip-B432XpvC.js`)),Ot=$e(()=>import(`./DataTable-KeuZB1JM.js`)),kt=$e(()=>import(`./UserOptions-K1N7zQRx.js`).then(e=>e.n)),At=$e(()=>import(`./NonSvgPenAndPaper-B2kuh5Yb.js`)),jt=$e(()=>import(`./BaseDraggableDialog-DVstuNhT.js`).then(e=>e.n)),{vue_ui_xy_canvas:Mt}=Ae(),{isThemeValid:Nt,warnInvalidTheme:Pt}=Fe(),C=e,Ft=v(ae()),It=v(null),Lt=v(null),w=v(null),T=v(1),Rt=v(1),zt=v(!1),E=v(null),Bt=v(``),Vt=v(null),D=v([]),Ht=v(1),O=v(!0),Ut=v(!0),Wt=v(null),Gt=v(0),Kt=v(!1),qt=v(null),Jt=v(null),Yt=v(null),Xt=v(null),Zt=v(0),Qt=v(0),$t=v(0),k=v(null),en=v(!1),tn=v(null),nn=v(null),rn=v(!1),an=v(!1),on=v(!1),A=v(null),sn=v(!1),cn=v(!1),ln=v(!1),j=v(null),un=v({x:0,y:0}),M=d(()=>Array.isArray(yn.value)&&yn.value.length>0),N=pt,dn=dt(),P=v(Tn()),F=d(()=>P.value.userOptions),I=d(()=>P.value.style.chart.tooltip),L=d(()=>P.value.style.chart.grid.y.verticalLines),fn=d(()=>P.value.style.chart.grid.x.horizontalLines),R=d(()=>P.value.style.chart.grid.y.axisLabels),z=d(()=>P.value.style.chart.grid.x.timeLabels),B=d(()=>P.value.style.chart.grid),V=d(()=>P.value.style.chart.dataLabels),H=d(()=>P.value.style.chart);Te({config:()=>P.value,dataset:()=>C.dataset,component:`VueUiXyCanvas`,rules:[Ee.emptyArray,{test:e=>e.every(e=>e.series.length<300),message:[`👀 Series have < 300 datapoints. Consider:`,``,`▶️ Using VueUiXy instead, if you need more options, or more customization possibilities.`]},{test:e=>e.some(e=>e.series.length>1e4),message:[`👀 The dataset has > 10_000 datapoints. Above this threshold, the dataset is computed through an LTTB algorithm, to preserve the shape of the data without increasing the number of datapoints.`,``,`▶️ If you need this level of detail, you can change config.downsample.threshold and set a higher value. Note that performance can be impacted. JS runtime might crash with > 100_000 datapoints.`]}]});let pn=d(()=>{let e=H.value.title.text||`XY chart`,t=X.value.end-X.value.start;return`${e}. ${Y.value.filter(e=>!D.value.includes(e.absoluteIndex)).length} series. ${t} visible data points.`}),mn=d(()=>{if(j.value===null)return``;let e=j.value+X.value.start;return`${vi.value[j.value]?I.value.useDefaultTimeFormat?yi.value[j.value]?.text:Fr.value[j.value]?.text:$.value[e]?.text??`Point ${e+1}`}. ${Y.value.filter(e=>!D.value.includes(e.absoluteIndex)).map(e=>{let t=e.series[j.value],n=t?.value??t??null;return`${e.name}: ${n}`}).join(`. `)}.`}),hn=d(()=>F.value.useCursorPointer),gn=d(()=>P.value.debug);at(()=>{dn[`chart-background`]&&gn.value&&console.warn(`VueUiXyCanvas does not support the #chart-background slot.`)});let _n=d(()=>de({defaultConfig:{userOptions:{show:!1},table:{show:!1},style:{chart:{backgroundColor:`#99999930`,grid:{x:{axisColor:`#6A6A6A`,timeLabels:{show:!1},axisName:``,horizontalLines:{color:`#6A6A6A`}},y:{axisColor:`#6A6A6A`,axisLabels:{show:!1},axisName:``,verticalLines:{color:`#6A6A6A`}},zeroLine:{color:`#6A6A6A`}},legend:{backgroundColor:`#99999930`},paddingProportions:{left:.05},scale:{max:null,min:null},zoom:{endIndex:null,startIndex:null}}}},userConfig:P.value.skeletonConfig??{}})),{loading:vn,FINAL_DATASET:yn}=je({...ut(C),FINAL_CONFIG:P,prepareConfig:Tn,skeletonDataset:C.config?.skeletonDataset??[{name:``,series:[0,1,2,3,5,8,13,21,34,55,89,134],type:`line`,smooth:!0,color:`#BABABA`},{name:``,series:[0,.5,1,1.5,2.5,4,6.5,10.5,17,27.5,44.5,67],type:`bar`,color:`#AAAAAA`}],skeletonConfig:de({defaultConfig:P.value,userConfig:_n.value})}),{userOptionsVisible:bn,setUserOptionsVisibility:xn,keepUserOptionState:Sn}=Ie({config:P.value}),{svgRef:U}=Le({config:H.value.title});function Cn(){xn(!0)}function wn(){xn(!1),N(`selectX`,{dataset:null,index:null,indexLabel:null}),E.value=null}function Tn(){let e=Ne({userConfig:C.config,defaultConfig:Mt}),t={},n=e.theme;if(n){if(!Nt.value(e))Pt(e),t=e;else{let r=Ne({userConfig:ze[n]||C.config,defaultConfig:e});t={...Ne({userConfig:C.config,defaultConfig:r}),customPalette:e.customPalette.length?e.customPalette:fe[n]||l}}}else t=e;return C.config&&_e(C.config,`style.chart.grid.y.timeLabels`)&&(console.warn(`VueUiXyCanvas: you are using the deprecated config.style.chart.grid.y.timeLabels. It is recommended to move this configuration to config.style.chart.grid.x.timeLabels.`),t.style.chart.grid.x.timeLabels=Ne({defaultConfig:t.style.chart.grid.x.timeLabels,userConfig:C.config.style.chart.grid.y.timeLabels})),t}let En=oe(C.config);x(()=>C.config,(e,t)=>{let n=oe(e),r=n!==En;En=n;let i=Tn();r?(vn.value||(P.value=i),bn.value=!F.value.showOnChartHover,Pi(),Zt.value+=1,Qt.value+=1,$t.value+=1,W.value.showTable=P.value.table.show,W.value.showDataLabels=V.value.show,W.value.stacked=H.value.stacked,W.value.showTooltip=I.value.show):(P.value.style.chart.tooltip=i.style.chart.tooltip,W.value.showTooltip=P.value.style.chart.tooltip.show)},{deep:!0}),x(()=>C.dataset,async e=>{Array.isArray(e)&&e.length!==0&&(await tt(),U.value&&!w.value&&(w.value=U.value.getContext(`2d`,{willReadFrequently:!0})),O.value=!0,Ut.value=!0,await mr(),wr(),Zt.value+=1,Qt.value+=1,$t.value+=1)},{deep:!0});let Dn=v(H.value.aspectRatio),{isPrinting:On,isImaging:kn,generatePdf:An,generateImage:jn}=Me({elementId:`xy_canvas_${Ft.value}`,fileName:H.value.title.text||`vue-ui-xy-canvas`,options:F.value.print}),W=v({showTable:P.value.table.show,showDataLabels:V.value.show,stacked:H.value.stacked,showTooltip:I.value.show});function Mn(e){Kt.value=e,Gt.value+=1}let Nn=d(()=>ge(P.value.customPalette)),Pn=d(()=>D.value.length===J.value.length),G=d(()=>J.value?Math.max(...J.value.filter((e,t)=>Pn.value?!0:!D.value.includes(e.absoluteIndex)).map(e=>e.series.length)):0);function Fn(e){A.value=e,Yr()}let In=v(0),Ln=v(0);function Rn(){if(!w.value||!z.value.show)return 0;let e=$.value||[],t=X.value.start??0,n=X.value.end??0;if(!Math.max(0,n-t))return 0;let r=Math.round(T.value/40*z.value.fontSizeRatio),i=`${z.value.bold?`bold `:``}${r}px ${P.value.style.fontFamily}`;w.value.save(),w.value.font=i;let a=0;for(let r=t;r<n;r+=1){let t=e[r]?.text??`${r+1}`,n=w.value.measureText(String(t));n.width>a&&(a=n.width)}w.value.restore();let o=(z.value.rotation||0)*Math.PI/180,s=r,ee=Math.abs(Math.sin(o))*a+Math.abs(Math.cos(o))*s,c=z.value.offsetY||1,l=T.value/c;return Math.max(0,l+ee+4)}function zn(){In.value=Rn()}function Bn(){Ln.value&&cancelAnimationFrame(Ln.value),Ln.value=requestAnimationFrame(()=>{requestAnimationFrame(()=>{zn()})})}it(()=>{Ln.value&&cancelAnimationFrame(Ln.value)});let K=d(()=>{let e=T.value-T.value*(H.value.paddingProportions.left+H.value.paddingProportions.right),t=Rt.value*H.value.paddingProportions.top,n=Rt.value*H.value.paddingProportions.bottom,r=In.value,i=Rt.value-n-r,a=Rt.value-(t+n)-r;return{canvasWidth:T.value,canvasHeight:Rt.value,left:T.value*H.value.paddingProportions.left,top:t,right:T.value-T.value*H.value.paddingProportions.right,bottom:i,width:e,height:a,slot:e/(X.value.end-X.value.start)}});function Vn(e,t){return e/t}function Hn({hasAutoScale:e,series:t,min:n,max:r,scale:i,yOffset:a,individualHeight:o,stackIndex:s=null}){return t.map((t,n)=>{let r=i.min<0?Math.abs(i.min):0,ee=Vn(t+r,r+i.max),c,l;e&&(c=i.min,l=Vn(t-c,i.max-c));let te=0;return te=s===null?K.value.bottom-K.value.height*(e?l:ee):K.value.bottom-a-o*(e?l:ee),{x:K.value.left+K.value.slot*n+K.value.slot/2,y:te,value:t}})}let Un=d(()=>{let e=/* @__PURE__ */ new Map;for(let t of J.value){let n=1/0,r=-1/0;for(let e of t.series.slice(X.value.start,X.value.end))n=Math.min(n,e),r=Math.max(r,e);e.set(t.absoluteIndex,{min:n,max:r})}return e}),Wn=d(()=>{let e=1/0,t=-1/0;for(let n of J.value){if(D.value.includes(n.absoluteIndex))continue;let r=Un.value.get(n.absoluteIndex);e=Math.min(e,r.min),t=Math.max(t,r.max)}return{min:e,max:t}}),q=d(()=>{let e=H.value.scale.min===null?Wn.value.min:H.value.scale.min,t=H.value.scale.max===null?Wn.value.max:H.value.scale.max,n=se(e<0?e:0,t===e?e+1<0?0:e+1:t<0?0:t,H.value.scale.ticks),r=n.min<0?Math.abs(n.min):0,i=K.value.bottom-K.value.height*(r/(n.max+r));return{absoluteMin:r,max:t,min:e,scale:n,yLabels:n.ticks.map(e=>({y:K.value.bottom-K.value.height*((e+r)/(n.max+r)),x:K.value.left-8,value:e})),zero:i}}),Gn=d(()=>Y.value.map(e=>`
1
+ import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{n as t,r as n,t as r}from"./userOptionsSlots-CWtXN5Q6.js";import{n as i,t as a}from"./tableIntegration-CNoJ1CIY.js";import{$ as o,D as s,Dt as ee,Ft as c,Ht as l,Jt as te,Kt as ne,Mt as re,S as ie,X as ae,Zt as oe,_ as se,_t as ce,at as le,i as ue,in as de,nn as fe,nt as pe,o as me,pt as he,w as ge,wt as _e,zt as ve}from"./lib-rPeBMZrn.js";import{a as ye,c as be,i as u,n as xe,o as Se,s as Ce,t as we}from"./canvas-lib-22VpOI4_.js";import{n as Te,t as Ee}from"./useHints-C-TwxM0Y.js";import{n as De,r as Oe,t as ke}from"./useTimeLabels-Das5O74F.js";import{t as Ae}from"./useConfig-CBXrYhMI.js";import{t as je}from"./useLoading-BwiplGDB.js";import{t as Me}from"./usePrinter-DVf3YcG5.js";import{t as Ne}from"./useNestedProp-DnGoh-XS.js";import{t as Pe}from"./useResponsive-CENUxfEL.js";import{t as Fe}from"./useThemeCheck-BKNRbGeC.js";import{t as Ie}from"./useUserOptionState-CXlFnwPv.js";import{t as Le}from"./useChartAccessibility-DOMuYJfm.js";import{t as Re}from"./img-D4RQwASc.js";import{t as ze}from"./vue_ui_xy_canvas-cQVme5sy.js";import{t as Be}from"./Legend-W9YVYVX-.js";import{n as Ve}from"./Title-BliHuXfT.js";import{t as He}from"./BaseIcon-CoY0vuL3.js";import{t as Ue}from"./vue-ui-accordion-CV2dxsXB.js";import{t as We}from"./SlicerPreview-Ks9FNVzh.js";import{t as Ge}from"./BaseScanner-m6QR9rwD.js";import{t as Ke}from"./BaseLegendToggle-VzX69MCo.js";import{t as qe}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{Teleport as Je,computed as d,createBlock as f,createCommentVNode as p,createElementBlock as Ye,createElementVNode as m,createSlots as Xe,createTextVNode as Ze,createVNode as Qe,defineAsyncComponent as $e,guardReactiveProps as h,mergeProps as et,nextTick as tt,normalizeClass as nt,normalizeProps as g,normalizeStyle as rt,onBeforeUnmount as it,onMounted as at,openBlock as _,ref as v,renderList as ot,renderSlot as y,resolveDynamicComponent as st,shallowRef as ct,toDisplayString as lt,toRefs as ut,unref as b,useSlots as dt,watch as x,watchEffect as ft,withCtx as S}from"vue";var pt=/* @__PURE__ */ e({default:()=>Dt}),mt=[`id`],ht=[`id`],gt={class:`sr-only`,"aria-live":`polite`,"aria-atomic":`true`},_t=[`id`],vt=[`aria-label`,`aria-describedby`],yt=[`viewBox`],bt=[`x`,`y`,`width`,`height`,`fill`,`fill-opacity`,`stroke`,`stroke-opacity`,`stroke-width`,`stroke-dasharray`],xt={key:1,style:{position:`absolute`,top:`100%`,left:`0`,width:`100%`},"data-dom-to-png-ignore":``,"aria-hidden":`true`},St=[`id`],Ct=[`onClick`],wt={key:4,class:`vue-data-ui-watermark`},Tt={key:0},Et={key:1},Dt=/*#__PURE__*/ qe({__name:`vue-ui-xy-canvas`,props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}},selectedXIndex:{type:Number,default:void 0},zoomState:{type:Object,default:null}},emits:[`selectLegend`,`selectX`,`zoomStart`,`zoomEnd`,`zoomReset`,`update:zoomState`,`copyAlt`],setup(e,{expose:qe,emit:pt}){let Dt=$e(()=>import(`./Tooltip-B432XpvC.js`)),Ot=$e(()=>import(`./DataTable-KeuZB1JM.js`)),kt=$e(()=>import(`./UserOptions-K1N7zQRx.js`).then(e=>e.n)),At=$e(()=>import(`./NonSvgPenAndPaper-B2kuh5Yb.js`)),jt=$e(()=>import(`./BaseDraggableDialog-DVstuNhT.js`).then(e=>e.n)),{vue_ui_xy_canvas:Mt}=Ae(),{isThemeValid:Nt,warnInvalidTheme:Pt}=Fe(),C=e,Ft=v(ae()),It=v(null),Lt=v(null),w=v(null),T=v(1),Rt=v(1),zt=v(!1),E=v(null),Bt=v(``),Vt=v(null),D=v([]),Ht=v(1),O=v(!0),Ut=v(!0),Wt=v(null),Gt=v(0),Kt=v(!1),qt=v(null),Jt=v(null),Yt=v(null),Xt=v(null),Zt=v(0),Qt=v(0),$t=v(0),k=v(null),en=v(!1),tn=v(null),nn=v(null),rn=v(!1),an=v(!1),on=v(!1),A=v(null),sn=v(!1),cn=v(!1),ln=v(!1),j=v(null),un=v({x:0,y:0}),M=d(()=>Array.isArray(yn.value)&&yn.value.length>0),N=pt,dn=dt(),P=v(Tn()),F=d(()=>P.value.userOptions),I=d(()=>P.value.style.chart.tooltip),L=d(()=>P.value.style.chart.grid.y.verticalLines),fn=d(()=>P.value.style.chart.grid.x.horizontalLines),R=d(()=>P.value.style.chart.grid.y.axisLabels),z=d(()=>P.value.style.chart.grid.x.timeLabels),B=d(()=>P.value.style.chart.grid),V=d(()=>P.value.style.chart.dataLabels),H=d(()=>P.value.style.chart);Te({config:()=>P.value,dataset:()=>C.dataset,component:`VueUiXyCanvas`,rules:[Ee.emptyArray,{test:e=>e.every(e=>e.series.length<300),message:[`👀 Series have < 300 datapoints. Consider:`,``,`▶️ Using VueUiXy instead, if you need more options, or more customization possibilities.`]},{test:e=>e.some(e=>e.series.length>1e4),message:[`👀 The dataset has > 10_000 datapoints. Above this threshold, the dataset is computed through an LTTB algorithm, to preserve the shape of the data without increasing the number of datapoints.`,``,`▶️ If you need this level of detail, you can change config.downsample.threshold and set a higher value. Note that performance can be impacted. JS runtime might crash with > 100_000 datapoints.`]}]});let pn=d(()=>{let e=H.value.title.text||`XY chart`,t=X.value.end-X.value.start;return`${e}. ${Y.value.filter(e=>!D.value.includes(e.absoluteIndex)).length} series. ${t} visible data points.`}),mn=d(()=>{if(j.value===null)return``;let e=j.value+X.value.start;return`${vi.value[j.value]?I.value.useDefaultTimeFormat?yi.value[j.value]?.text:Fr.value[j.value]?.text:$.value[e]?.text??`Point ${e+1}`}. ${Y.value.filter(e=>!D.value.includes(e.absoluteIndex)).map(e=>{let t=e.series[j.value],n=t?.value??t??null;return`${e.name}: ${n}`}).join(`. `)}.`}),hn=d(()=>F.value.useCursorPointer),gn=d(()=>P.value.debug);at(()=>{dn[`chart-background`]&&gn.value&&console.warn(`VueUiXyCanvas does not support the #chart-background slot.`)});let _n=d(()=>de({defaultConfig:{userOptions:{show:!1},table:{show:!1},style:{chart:{backgroundColor:`#99999930`,grid:{x:{axisColor:`#6A6A6A`,timeLabels:{show:!1},axisName:``,horizontalLines:{color:`#6A6A6A`}},y:{axisColor:`#6A6A6A`,axisLabels:{show:!1},axisName:``,verticalLines:{color:`#6A6A6A`}},zeroLine:{color:`#6A6A6A`}},legend:{backgroundColor:`#99999930`},paddingProportions:{left:.05},scale:{max:null,min:null},zoom:{endIndex:null,startIndex:null}}}},userConfig:P.value.skeletonConfig??{}})),{loading:vn,FINAL_DATASET:yn}=je({...ut(C),FINAL_CONFIG:P,prepareConfig:Tn,skeletonDataset:C.config?.skeletonDataset??[{name:``,series:[0,1,2,3,5,8,13,21,34,55,89,134],type:`line`,smooth:!0,color:`#BABABA`},{name:``,series:[0,.5,1,1.5,2.5,4,6.5,10.5,17,27.5,44.5,67],type:`bar`,color:`#AAAAAA`}],skeletonConfig:de({defaultConfig:P.value,userConfig:_n.value})}),{userOptionsVisible:bn,setUserOptionsVisibility:xn,keepUserOptionState:Sn}=Ie({config:P.value}),{svgRef:U}=Le({config:H.value.title});function Cn(){xn(!0)}function wn(){xn(!1),N(`selectX`,{dataset:null,index:null,indexLabel:null}),E.value=null}function Tn(){let e=Ne({userConfig:C.config,defaultConfig:Mt}),t={},n=e.theme;if(n){if(!Nt.value(e))Pt(e),t=e;else{let r=Ne({userConfig:ze[n]||C.config,defaultConfig:e});t={...Ne({userConfig:C.config,defaultConfig:r}),customPalette:e.customPalette.length?e.customPalette:fe[n]||l}}}else t=e;return C.config&&_e(C.config,`style.chart.grid.y.timeLabels`)&&(console.warn(`VueUiXyCanvas: you are using the deprecated config.style.chart.grid.y.timeLabels. It is recommended to move this configuration to config.style.chart.grid.x.timeLabels.`),t.style.chart.grid.x.timeLabels=Ne({defaultConfig:t.style.chart.grid.x.timeLabels,userConfig:C.config.style.chart.grid.y.timeLabels})),t}let En=oe(C.config);x(()=>C.config,(e,t)=>{let n=oe(e),r=n!==En;En=n;let i=Tn();r?(vn.value||(P.value=i),bn.value=!F.value.showOnChartHover,Pi(),Zt.value+=1,Qt.value+=1,$t.value+=1,W.value.showTable=P.value.table.show,W.value.showDataLabels=V.value.show,W.value.stacked=H.value.stacked,W.value.showTooltip=I.value.show):(P.value.style.chart.tooltip=i.style.chart.tooltip,W.value.showTooltip=P.value.style.chart.tooltip.show)},{deep:!0}),x(()=>C.dataset,async e=>{Array.isArray(e)&&e.length!==0&&(await tt(),U.value&&!w.value&&(w.value=U.value.getContext(`2d`,{willReadFrequently:!0})),O.value=!0,Ut.value=!0,await mr(),wr(),Zt.value+=1,Qt.value+=1,$t.value+=1)},{deep:!0});let Dn=v(H.value.aspectRatio),{isPrinting:On,isImaging:kn,generatePdf:An,generateImage:jn}=Me({elementId:`xy_canvas_${Ft.value}`,fileName:H.value.title.text||`vue-ui-xy-canvas`,options:F.value.print}),W=v({showTable:P.value.table.show,showDataLabels:V.value.show,stacked:H.value.stacked,showTooltip:I.value.show});function Mn(e){Kt.value=e,Gt.value+=1}let Nn=d(()=>ge(P.value.customPalette)),Pn=d(()=>D.value.length===J.value.length),G=d(()=>J.value?Math.max(...J.value.filter((e,t)=>Pn.value?!0:!D.value.includes(e.absoluteIndex)).map(e=>e.series.length)):0);function Fn(e){A.value=e,Yr()}let In=v(0),Ln=v(0);function Rn(){if(!w.value||!z.value.show)return 0;let e=$.value||[],t=X.value.start??0,n=X.value.end??0;if(!Math.max(0,n-t))return 0;let r=Math.round(T.value/40*z.value.fontSizeRatio),i=`${z.value.bold?`bold `:``}${r}px ${P.value.style.fontFamily}`;w.value.save(),w.value.font=i;let a=0;for(let r=t;r<n;r+=1){let t=e[r]?.text??`${r+1}`,n=w.value.measureText(String(t));n.width>a&&(a=n.width)}w.value.restore();let o=(z.value.rotation||0)*Math.PI/180,s=r,ee=Math.abs(Math.sin(o))*a+Math.abs(Math.cos(o))*s,c=z.value.offsetY||1,l=T.value/c;return Math.max(0,l+ee+4)}function zn(){In.value=Rn()}function Bn(){Ln.value&&cancelAnimationFrame(Ln.value),Ln.value=requestAnimationFrame(()=>{requestAnimationFrame(()=>{zn()})})}it(()=>{Ln.value&&cancelAnimationFrame(Ln.value)});let K=d(()=>{let e=T.value-T.value*(H.value.paddingProportions.left+H.value.paddingProportions.right),t=Rt.value*H.value.paddingProportions.top,n=Rt.value*H.value.paddingProportions.bottom,r=In.value,i=Rt.value-n-r,a=Rt.value-(t+n)-r;return{canvasWidth:T.value,canvasHeight:Rt.value,left:T.value*H.value.paddingProportions.left,top:t,right:T.value-T.value*H.value.paddingProportions.right,bottom:i,width:e,height:a,slot:e/(X.value.end-X.value.start)}});function Vn(e,t){return e/t}function Hn({hasAutoScale:e,series:t,min:n,max:r,scale:i,yOffset:a,individualHeight:o,stackIndex:s=null}){return t.map((t,n)=>{let r=i.min<0?Math.abs(i.min):0,ee=Vn(t+r,r+i.max),c,l;e&&(c=i.min,l=Vn(t-c,i.max-c));let te=0;return te=s===null?K.value.bottom-K.value.height*(e?l:ee):K.value.bottom-a-o*(e?l:ee),{x:K.value.left+K.value.slot*n+K.value.slot/2,y:te,value:t}})}let Un=d(()=>{let e=/* @__PURE__ */ new Map;for(let t of J.value){let n=1/0,r=-1/0;for(let e of t.series.slice(X.value.start,X.value.end))n=Math.min(n,e),r=Math.max(r,e);e.set(t.absoluteIndex,{min:n,max:r})}return e}),Wn=d(()=>{let e=1/0,t=-1/0;for(let n of J.value){if(D.value.includes(n.absoluteIndex))continue;let r=Un.value.get(n.absoluteIndex);e=Math.min(e,r.min),t=Math.max(t,r.max)}return{min:e,max:t}}),q=d(()=>{let e=H.value.scale.min===null?Wn.value.min:H.value.scale.min,t=H.value.scale.max===null?Wn.value.max:H.value.scale.max,n=se(e<0?e:0,t===e?e+1<0?0:e+1:t<0?0:t,H.value.scale.ticks),r=n.min<0?Math.abs(n.min):0,i=K.value.bottom-K.value.height*(r/(n.max+r));return{absoluteMin:r,max:t,min:e,scale:n,yLabels:n.ticks.map(e=>({y:K.value.bottom-K.value.height*((e+r)/(n.max+r)),x:K.value.left-8,value:e})),zero:i}}),Gn=d(()=>Y.value.map(e=>`
2
2
  <div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
3
3
  <svg viewBox="0 0 10 10" height="12" width="12">
4
4
  <circle cx="5" cy="5" r="5" fill="${e.color}"/>
@@ -0,0 +1 @@
1
+ import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./unpackTheme-CNsFKCeq.js";var n=/* @__PURE__ */ e({default:()=>i}),r=[[],[`userOptions`,`style`],[`show`],[`chart`],[`legend`,`lines`,`zoom`],[`gradient`],[`minimap`],[`show`,`frameColor`],[`userOptions`,`table`,`style`],[`th`,`td`],[`backgroundColor`,`color`],[`backgroundColor`,`color`,`title`,`legend`,`zoom`,`highlighter`,`tooltip`,`lines`,`grid`,`timeTag`],[`color`,`subtitle`],[`color`],[`show`,`backgroundColor`,`color`,`selectAllToggle`],[`color`,`highlightColor`,`preview`,`minimap`,`dragToZoom`],[`fill`,`stroke`],[`show`,`selectedColor`,`lineColor`,`indicatorColor`,`frameColor`],[`selection`],[`backgroundColor`,`backgroundOpacity`,`color`,`borderColor`],[`path`,`gradient`,`totalValues`,`dataLabels`,`dot`],[`stroke`],[`x`,`y`],[`axisColor`,`linesColor`,`axisName`,`timeLabels`],[`axisColor`,`linesColor`,`axisName`,`axisLabels`],[`backgroundColor`,`color`,`circleMarker`],[`table`,`style`],[`backgroundColor`,`color`,`selectAllToggle`],[`selectedColor`,`lineColor`,`indicatorColor`],[`path`,`totalValues`,`dataLabels`,`dot`],[`axisColor`,`axisName`,`timeLabels`],[`axisColor`,`axisName`,`axisLabels`],[`indicatorColor`],[`backgroundColor`,`color`,`borderColor`],[`selectedColor`,`indicatorColor`],[`showAxis`,`axisName`,`timeLabels`],[`showAxis`,`axisName`,`axisLabels`],[`showHorizontalLines`,`axisColor`,`axisName`,`timeLabels`],[`showVerticalLines`,`axisColor`,`axisName`,`axisLabels`]],i={default:/* @__PURE__ */ t([0],r),minimal:/* @__PURE__ */ t([1,[2,!1],[3,[4,[2,!1],[5,[2,!1]],[6,[7,!0,`transparent`]]]]],r),minimalDark:/* @__PURE__ */ t([8,[2,!1],[9,[10,`#1A1A1A`,`#CCCCCC`],[10,`#1A1A1A`,`#CCCCCC`]],[3,[11,`#1A1A1A`,`#CCCCCC`,[12,`#CCCCCC`,[13,`#757575`]],[14,!1,`#1A1A1A`,`#CCCCCC`,[10,`#3A3A3A`,`#CCCCCC`]],[15,`#4A4A4A`,`#9A9A9A`,[16,`#8A8A8A20`,`#8A8A8A70`],[17,!0,`#8A8A8A`,`#424242`,`#CCCCCC`,`transparent`],[18,[16,`#8A8A8A`,`#8A8A8A`]]],[13,`#CCCCCC`],[19,`#1A1A1A`,70,`#CCCCCC`,`#3A3A3A`],[20,[21,`#1A1A1A`],[2,!1],[13,`#CCCCCC`],[13,`#CCCCCC`],[16,`#1A1A1A`,`#1A1A1A`]],[22,[23,`#5A5A5A`,`#4A4A4A`,[13,`#CCCCCC`],[13,`#CCCCCC`]],[24,`#5A5A5A`,`#4A4A4A`,[13,`#CCCCCC`],[13,`#CCCCCC`]]],[25,`#2A2A2A`,`#CCCCCC`,[13,`#2A2A2A`]]]]],r),dark:/* @__PURE__ */ t([26,[9,[10,`#1A1A1A`,`#CCCCCC`],[10,`#1A1A1A`,`#CCCCCC`]],[3,[11,`#1A1A1A`,`#CCCCCC`,[12,`#CCCCCC`,[13,`#757575`]],[27,`#1A1A1A`,`#CCCCCC`,[10,`#3A3A3A`,`#CCCCCC`]],[15,`#4A4A4A`,`#9A9A9A`,[16,`#8A8A8A20`,`#8A8A8A70`],[28,`#8A8A8A`,`#424242`,`#CCCCCC`],[18,[16,`#8A8A8A`,`#8A8A8A`]]],[13,`#CCCCCC`],[19,`#1A1A1A`,70,`#CCCCCC`,`#5A5A5A`],[29,[21,`#1A1A1A`],[13,`#CCCCCC`],[13,`#CCCCCC`],[16,`#1A1A1A`,`#1A1A1A`]],[22,[23,`#5A5A5A`,`#4A4A4A`,[13,`#CCCCCC`],[13,`#CCCCCC`]],[24,`#5A5A5A`,`#4A4A4A`,[13,`#CCCCCC`],[13,`#CCCCCC`]]],[25,`#2A2A2A`,`#CCCCCC`,[13,`#2A2A2A`]]]]],r),celebration:/* @__PURE__ */ t([26,[9,[10,`#FFF8E1`,`#424242`],[10,`#FFF8E1`,`#424242`]],[3,[11,`#FFF8E1`,`#424242`,[12,`#424242`,[13,`#757575`]],[27,`#FFF8E1`,`#424242`,[10,`#5D4037`,`#FFF8E1`]],[15,`#5D4037`,`#FF8A65`,[16,`#FF8A6520`,`#FF8A6570`],[28,`#FF8A65`,`#424242`,`#FF8A65`],[18,[16,`#FF8A65`,`#FF8A65`]]],[13,`#424242`],[19,`#FFECB3`,30,`#424242`,`#FF8A65`],[29,[21,`#FFF8E1`],[13,`#424242`],[13,`#424242`],[16,`#FFF8E1`,`#FFF8E1`]],[22,[30,`#5D403780`,[13,`#424242`],[13,`#424242`]],[31,`#5D403780`,[13,`#424242`],[13,`#424242`]]],[25,`#424242`,`#FFF8E1`,[13,`#424242`]]]]],r),celebrationNight:/* @__PURE__ */ t([26,[9,[10,`#1E1E1E`,`#BDBDBD`],[10,`#1E1E1E`,`#BDBDBD`]],[3,[11,`#1E1E1E`,`#BDBDBD`,[12,`#FFF8E1`,[13,`#BDBDBD`]],[27,`#1E1E1E`,`#BDBDBD`,[10,`#3A3A3A`,`#BDBDBD`]],[15,`#5D4037`,`#FF8A65`,[16,`#FF8A6520`,`#FF8A6570`],[28,`#FF8A65`,`#FF6B6B`,`#FF8A65`],[18,[16,`#FF8A65`,`#FF8A65`]]],[13,`#FFF8E1`],[19,`#1E1E1E`,30,`#FFF8E1`,`#FF8A65`],[29,[21,`#1E1E1E`],[13,`#BDBDBD`],[13,`#BDBDBD`],[16,`#1E1E1E`,`#1E1E1E`]],[22,[30,`#5D403740`,[13,`#BDBDBD`],[13,`#BDBDBD`]],[31,`#5D4037`,[13,`#BDBDBD`],[13,`#BDBDBD`]]],[25,`#5D4037`,`#FFF8E1`,[13,`#5D4037`]]]]],r),hack:/* @__PURE__ */ t([26,[9,[10,`#1A1A1A`,`#99AA99`],[10,`#1A1A1A`,`#AACCAA`]],[3,[11,`#1A1A1A`,`#99AA99`,[12,`#66CC66`,[13,`#99AA99`]],[27,`#1A1A1A`,`#99AA99`,[10,`#3A3A3A`,`#99AA99`]],[15,`#5F6A5F`,`#66CC66`,[16,`#66CC6620`,`#66CC6670`],[32,`#5F6A5F`],[18,[16,`#66CC66`,`#66CC66`]]],[13,`#66CC66`],[33,`#2A2F2A`,`#AACCAA`,`#66CC66`],[29,[21,`#1A1A1A`],[13,`#99AA99`],[13,`#99AA99`],[16,`#1A1A1A`,`#1A1A1A`]],[22,[30,`#5F6A5F`,[13,`#66CC66`],[13,`#99AA99`]],[31,`#5F6A5F`,[13,`#66CC66`],[13,`#99AA99`]]],[25,`#1A1A1A`,`#66CC66`,[13,`#66CC66`]]]]],r),zen:/* @__PURE__ */ t([26,[9,[10,`#1A1A1A`,`#99AA99`],[10,`#1A1A1A`,`#AACCAA`]],[3,[11,`#fbfafa`,`#8A9892`,[12,`#8A9892`,[13,`#99AA99`]],[27,`#fbfafa`,`#99AA99`,[10,`#E0CFC3`,`#8F837A`]],[15,`#E0CFC3`,`#8F837A`,[16,`#8F837A20`,`#8F837A70`],[34,`#8F837A`,`#8A9892`],[18,[16,`#8F837A`,`#8F837A`]]],[13,`#8F837A`],[10,`#fbfafa`,`#8A9892`],[29,[21,`#FBFAFA`],[2,!1],[2,!1],[16,`#FBFAFA`,`#FBFAFA`]],[22,[35,!1,[13,`#8F837A`],[2,!1]],[36,!1,[13,`#8F837A`],[2,!1]]],[25,`#fbfafa`,`#8A9892`,[13,`#8A9892`]]]]],r),concrete:/* @__PURE__ */ t([26,[9,[10,`#f6f6fb`,`#50606C`],[10,`#f6f6fb`,`#50606C`]],[3,[11,`#f6f6fb`,`#50606C`,[12,`#50606C`,[13,`#718890`]],[27,`#f6f6fb`,`#61747E`,[10,`#50606C`,`#f6f6fb`]],[15,`#92B0AB`,`#50606C`,[16,`#50606C20`,`#50606C70`],[34,`#50606C`,`#50606C`],[18,[16,`#50606C`,`#50606C`]]],[13,`#7DA9B5`],[10,`#f6f6fb`,`#50606C`],[29,[21,`#F6F6FB`],[13,`#50606C`],[13,`#50606C`],[16,`#F6F6FB`,`#F6F6FB`]],[22,[37,!0,`#829C98`,[13,`#50606C`],[13,`#61747E`]],[38,!0,`#829C98`,[13,`#50606C`],[13,`#61747E`]]],[25,`#f6f6fb`,`#50606C`,[13,`#50606C`]]]]],r)};export{n,i as t};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vue-data-ui",
3
3
  "private": false,
4
- "version": "3.29.0",
4
+ "version": "3.29.1",
5
5
  "type": "module",
6
6
  "description": "A user-empowering data visualization Vue 3 components library for eloquent data storytelling",
7
7
  "keywords": [
@@ -1 +0,0 @@
1
- var e=`3.29.0`;export{e as t};
@@ -1 +0,0 @@
1
- import{et as e}from"./lib-rPeBMZrn.js";var t={responsive:!1,theme:``,a11y:{translations:{keyboardNavigation:`Use arrow keys to navigate nodes, Home or End to jump, Enter or Space to select, and Escape to clear selection.`}},loading:!1,skeletonDataset:null,skeletonConfig:null,debug:!1,devHints:{enable:!1},customPalette:[],events:{datapointEnter:null,datapointLeave:null,datapointClick:null},style:{chart:{width:600,height:600,padding:36,backgroundColor:`#FFFFFF`,color:`#2D353C`,fontFamily:`inherit`,title:{text:``},controls:{position:`bottom`,show:!0,backgroundColor:`#e1e5e8`,buttonColor:`#e1e5e8`,color:`#2D353C`,fontSize:14,border:`1px solid #e1e5e8`,padding:`0.5rem`,borderRadius:`0.25rem`},nodes:{radius:7,minRadius:4,maxRadius:24,sizeByValue:!0,sizeByDegree:!1,colorByGroup:!0,color:`#42A5F5`,opacity:1,strokeWidth:1,stroke:`#FFFFFF`,gradient:!0,gradientColor:`#FFFFFF`,glow:{show:!1,blur:6,opacity:.6},hover:{stroke:`#2D353C`,strokeWidth:3},selected:{stroke:`#FFB74D`,strokeWidth:3},labels:{show:!0,strokeWidth:3,fontSize:11,color:`#2D353C`,position:`bottom`,offsetY:0,hoverOnly:!1,selectedOnly:!1,maxCount:150,minZoom:0,maxLength:40}},links:{color:`#A1A1A1`,opacity:.5,width:1,widthByValue:!1,maxWidth:6,arrows:{show:!1,showOnHover:!0},pulses:{show:!1,showOnHover:!1,reverse:!1,colorBySource:!0,color:`#FFB74D`,radius:2,opacity:1,duration:1500},glow:!1}}},layout:{chargeStrength:-120,linkDistance:80,linkStrength:.08,centerStrength:.015,collisionPadding:3,friction:.85,clusterStrength:0,iterations:300,strength:1,theta:.8},interaction:{zoom:{enabled:!0,min:.2,max:5,fitOnDoubleClick:!0},pan:{enabled:!0},drag:{enabled:!0,pinOnRelease:!1},highlight:{enabled:!0,neighbors:!0,keepSelection:!0,dimOpacity:.12}},tooltip:{show:!0,backgroundColor:`#FFFFFF`,color:`#2D353C`,borderColor:`#CCCCCC`,fontSize:13,showMetadata:!1,customFormat:null},animation:{enabled:!0,duration:300},userOptions:{show:!0,useCursorPointer:!0},viewport:{initialFit:!0,fitOnResize:!1,fitOnUpdate:!1},performance:{effectThreshold:300,stepsPerFrame:1,nodeBatchThreshold:300}};function n(n={}){let r=`#2D353C`,i=`#A1A1A1`,a=`#e1e5e8`,o=`#CCCCCC`,s=`#4A4A4A`,c=`#FFFFFF`,l=`#fafafa`,u=`#1f77b4`,d=`#d62728`,f=`#2ca02c`,p=`#42d392`,m=`#FFD055`,h=[`#000000`,`#FFFFFF`,`#FF5733`,`#33FF57`,`#3357FF`,`#FFC300`,`#800080`,`#FF1493`,`#00CED1`],g=n.colorBackground??c,_=n.colorTextPrimary??r,v=n.colorTextSecondary??i,y=n.colorGrid??a,b=n.colorBorder??a,x={includeTable:!1,translations:{keyboardNavigation:`Use the left and right arrow keys to move between data points.`,tableAvailable:`A data table for this chart is available below.`,tableCaption:`Chart data table`}},S={_6:6,_8:8,_10:10,_12:12,_14:14,_16:16,_18:18,_20:20,_24:24,_32:32,_48:48},C=S._6,w={LINE:`line`,SQUARE:`square`,ROUND:`round`,CIRCLE:`circle`,CURVED:`curved`,BAR:`bar`,STAR:`star`},T={LEFT:`left`,CENTER:`center`,RIGHT:`right`,BOTTOM:`bottom`,TOP:`top`},ee={ASC:`asc`,DESC:`desc`,NONE:`none`},E={threshold:1095},D={enable:!1},O={showValueFirst:!0,usePercentageParens:!0,useValueParens:!1},k={text:``,color:_,fontSize:S._20,bold:!0,textAlign:T.CENTER,paddingLeft:0,paddingRight:0,subtitle:{color:v,text:``,fontSize:S._16,bold:!1}},A={show:!0,bold:!1,backgroundColor:g,color:_,fontSize:S._14,selectAllToggle:{show:!1,backgroundColor:b,color:_}},j={show:!0,color:_,backgroundColor:g,fontSize:S._14,customFormat:null,borderRadius:4,borderColor:b,borderWidth:1,backgroundOpacity:100,position:T.CENTER,offsetX:0,offsetY:24,smooth:!0,backdropFilter:!0,smoothForce:.18,smoothSnapThreshold:.25,teleportTo:`body`},M={enable:!0,pauseOnLoad:!0,pauseOnDatasetChange:!1,activationDelayMs:300},N={enable:!1,locale:`en`,useUTC:!1,januaryAsYear:!1,options:{year:`yyyy`,month:`MMM 'yy`,day:`dd MMM`,hour:`HH:mm`,minute:`HH:mm:ss`,second:`HH:mm:ss`}},P=({tooltip:e=!1,pdf:t=!1,csv:n=!1,img:r=!1,table:i=!1,labels:a=!1,fullscreen:o=!1,sort:s=!1,stack:c=!1,animation:l=!1,annotator:u=!1,svg:d=!1,zoom:f=!1,altCopy:p=!1,analyze:m=!1})=>{let g={analyze:`Analyze dataset`,open:`Open options`,close:`Close options`,tooltip:`Toggle tooltip`,pdf:`Download PDF`,csv:`Download CSV`,img:`Download PNG`,table:`Toggle table`,labels:`Toggle labels`,fullscreen:`Toggle fullscreen`,sort:`Toggle sort`,stack:`Toggle stack mode`,animation:`Toggle animation`,annotator:`Toggle annotator`,svg:`Download SVG`,zoom:`Toggle zoom lock`,altCopy:`Copy alt text`};return e||delete g.tooltip,t||delete g.pdf,n||delete g.csv,r||delete g.img,i||delete g.table,a||delete g.labels,o||delete g.fullscreen,s||delete g.sort,c||delete g.stack,l||delete g.animation,u||delete g.annotator,d||delete g.svg,f||delete g.zoom,{show:!0,showOnChartHover:!1,keepStateOnChartLeave:!0,position:`right`,buttons:{tooltip:e,pdf:t,csv:n,img:r,table:i,labels:a,fullscreen:o,sort:s,stack:c,animation:l,annotator:u,svg:d,zoom:f,altCopy:p,analyze:m},callbacks:{analyze:null,animation:null,annotator:null,csv:null,fullscreen:null,img:null,labels:null,pdf:null,sort:null,stack:null,table:null,tooltip:null,svg:null,zoom:null,altCopy:null},buttonTitles:g,print:{scale:2,orientation:`auto`,overflowTolerance:.2},useCursorPointer:!1,annotatorPalette:h,annotator:{showGroupActions:!0,followZoom:!0,useOutline:!0,outlineThickness:1,outlineColor:null}}},F=e=>({top:e[0],right:e[1],bottom:e[2],left:e[3]}),I={backgroundColor:g,color:_,outline:`none`},L={backgroundColor:g,color:_,outline:`none`},R={show:!1,responsiveBreakpoint:400},z={show:!0,autoFit:!1,color:o,highlightColor:s,fontSize:S._14,useResetSlot:!1,startIndex:null,endIndex:null,enableRangeHandles:!0,enableSelectionDrag:!0,focusOnDrag:!1,focusRangeRatio:.2,maxWidth:null,keepState:!1,dragToZoom:{show:!1,selection:{fill:u,stroke:i,fillOpacity:.2,strokeOpacity:.5,strokeWidth:1,strokeDasharray:0}}},B={show:!1,selectedColor:u,selectedColorOpacity:.2,indicatorColor:r,verticalHandles:!1,compact:!0,frameColor:i,additionalHeight:0,handleIconColor:null,handleBorderWidth:1,handleBorderColor:null,handleFill:null,handleWidth:20,handleType:`grab`},V={...B,smooth:!1,lineColor:r,selectionRadius:2,merged:!1},te={devHints:D,loading:!1,readonly:!1,editing:!1,theme:``,customPalette:[],transitions:M,userOptions:P({tooltip:!1,pdf:!0,csv:!0,img:!0,table:!1,labels:!1,fullscreen:!0,annotator:!0,svg:!0}),a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right arrow keys to adjust the selected datapoint.`,topOfHill:`Top of the hill`}},events:{edit:null,save:null,cancel:null,change:null,dragStart:null,dragEnd:null,datapointEnter:null,datapointLeave:null,selectDatapoint:null},interaction:{keyboardStep:.01,peakTolerance:.005},style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,width:800,height:300,title:k,toolbar:{show:!0,status:{lastUpdated:`Last updated just now`,editInstruction:`Drag each dot to adjust its position`,color:_,fontSize:S._14,bold:!1,lineHeight:1.3},buttons:{translations:{edit:`Edit`,cancel:`Cancel`,save:`Save`}}},layout:{hill:{geometry:{horizontalPaddingRatio:.05,topPaddingRatio:.15,bottomPaddingRatio:.15,curvature:.7},baseline:{show:!0,stroke:o,strokeWidth:1,strokeDasharray:0},midline:{show:!0,stroke:o,strokeWidth:1,strokeDasharray:`2.5 3.5`},curve:{stroke:i,strokeWidth:1.5,strokeDasharray:0}},plots:{radius:10,hitRadius:10,stroke:g,strokeWidth:2,mutedOpacity:.4,disabledOpacity:.4,shadow:{show:!0,color:_,offsetX:0,offsetY:.5,blur:.4},stacking:{show:!0,overlapThresholdRatio:.8,gap:5,overflow:{show:!0,transitionDuration:300,marker:{radius:10,stroke:g,strokeWidth:1,labelColor:_,labelOffsetY:0,fontSize:S._14,bold:!1,fill:o},menu:{width:220,maxHeight:220,backgroundColor:g,color:_,borderColor:`transparent`,borderRadius:3,title:``}}},dragMarker:{show:!0,strokeWidth:1.5,crossPath:`M-5 0H5M0-5V5`,positionIndicator:{show:!0,useSerieColor:!0,color:a,strokeWidth:1,strokeDasharray:`2 4`,circle:{show:!0,radius:3,stroke:g,strokeWidth:1},value:{show:!0,offsetY:0,fontSize:S._12,useSerieColor:!1,color:_,formatter:null,rounding:0}}}},labels:{item:{ellipsisThresholdChars:24,show:!0,useSerieColor:!1,color:_,fontSize:S._14,bold:!1,offsetX:0,offsetY:0,autoSideThreshold:.75,stroke:g,strokeWidth:5},phases:{show:!0,color:v,fontSize:S._14,bold:!0,letterSpacing:`0.1em`,offsetY:0,left:{text:`FIGURING THINGS OUT`},right:{text:`MAKING IT HAPPEN`}}},stackbar:{show:!0,paddingTop:0,paddingBottom:12,height:14,stroke:g,strokeWidth:1.5,gutterColor:a,label:{show:!0,color:_,fontSize:S._12,formatter:null}}}}}},ne={devHints:D,skeletonDataset:null,skeletonConfig:null,loading:!1,debug:!1,theme:``,responsive:!1,a11y:x,transitions:M,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},customPalette:[],useCssAnimation:!1,table:{...R,useDialog:!1,columnNames:{period:`Period`,total:`Total`},th:I,td:{...L,roundingValue:0}},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!0,fullscreen:!0,annotator:!0,svg:!0}),style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,height:500,width:800,padding:F([12,12,12,12]),title:k,legend:{...A,position:`bottom`},zoom:{...z,minimap:B,preview:{enable:!0,fill:`#CCCCCC50`,stroke:`#6A6A6A`,strokeWidth:2,strokeDasharray:0},useDefaultFormat:!0,timeFormat:`yyyy-MM-dd HH:mm:ss`,customFormat:null},highlighter:{color:_,opacity:5,useLine:!1,lineDasharray:2,lineWidth:1},tooltip:{...j,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0,showTimeLabel:!0,showTotal:!1,totalTranslation:`Total`,useDefaultTimeFormat:!0,timeFormat:`yyyy-MM-dd HH:mm:ss`},grid:{scale:{ticks:10,scaleMin:null,scaleMax:null},frame:{show:!1,stroke:y,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,strokeDasharray:0},x:{showAxis:!0,showHorizontalLines:!1,axisColor:y,linesColor:y,linesThickness:1,linesStrokeDasharray:0,axisThickness:2,axisName:{show:!0,text:``,fontSize:S._14,color:_,bold:!1,offsetY:0},timeLabels:{show:!0,values:[],datetimeFormatter:N,offsetY:0,rotation:0,autoRotate:{enable:!0,angle:-30},fontSize:S._14,color:_,bold:!1,showOnlyFirstAndLast:!1,showFirstAndLast:!0,showOnlyAtModulo:!1,modulo:2}},y:{position:`left`,showAxis:!0,showVerticalLines:!1,linesColor:y,linesThickness:1,linesStrokeDasharray:0,axisColor:y,axisThickness:2,axisName:{show:!0,text:``,fontSize:S._14,color:_,bold:!1,offsetX:0},axisLabels:{formatter:null,show:!0,color:_,fontSize:S._14,bold:!1,rounding:0}}},lines:{useArea:!0,smooth:!1,areaOpacity:.5,distributed:!1,showDistributedPercentage:!0,strokeWidth:1,gradient:{show:!0,intensity:40},path:{useSerieColor:!0,stroke:c},dot:{show:!0,showOnHover:!0,hideAboveMaxSerieLength:62,useSerieColor:!0,fill:c,stroke:c,strokeWidth:.5,radius:4},totalValues:{show:!0,offsetY:0,fontSize:S._16,bold:!0,color:_},dataLabels:{hideAboveMaxSerieLength:62,offsetY:0,show:!0,hideEmptyValues:!0,hideUnderValue:null,hideEmptyPercentages:!0,hideUnderPercentage:null,color:_,fontSize:S._14,bold:!1,rounding:0,prefix:``,suffix:``,formatter:null}}}}},re={devHints:D,skeletonDataset:null,skeletonConfig:null,loading:!1,debug:!1,theme:``,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},transitions:M,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},customPalette:[],useCssAnimation:!1,orientation:`vertical`,table:{...R,useDialog:!1,columnNames:{period:`Period`,total:`Total`},th:I,td:{...L,roundingValue:0}},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!0,fullscreen:!0,annotator:!0,svg:!0}),style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,height:500,width:800,padding:F([12,12,12,12]),title:k,legend:{...A,position:`bottom`},waterfall:{bars:{gapRatio:.5,borderRadius:0,strokeWidth:1,stroke:g,gradient:{show:!0,intensity:20}},colors:{useSeriesColor:!0,positive:`#36A783`,negative:`#E76F51`,total:`#4C7899`,subtotal:`#8192B0`,neutral:`#A3A3A3`},connectors:{show:!0,stroke:`#8B8B8B`,strokeWidth:1,strokeDasharray:`3 3`,adaptToRadius:!1,inset:0},categoryLabels:{show:!0,fontSize:S._14,color:r,bold:!1,rotation:0,offsetY:0},segmentLabels:{show:!0,fontSize:S._14,bold:!1,color:r,adaptColorToBackground:!0,minHeight:14,minWidth:26,showZero:!1,prefix:``,suffix:``,rounding:0,formatter:null},stepLabels:{show:!0,fontSize:S._14,color:r,bold:!1,prefix:``,suffix:``,rounding:0,offset:0,showPlusSign:!1,showZero:!0,useBalanceForTotals:!0,formatter:null},tooltip:{showBalance:!0,showChange:!0,showStart:!1,balanceTranslation:`Balance`,changeTranslation:`Change`,startTranslation:`Previous balance`,totalTranslation:`Total`,subtotalTranslation:`Subtotal`,rounding:0},table:{showKind:!0,showBalance:!0,kindTranslation:`Type`,balanceTranslation:`Balance`,changeTranslation:`Change`}},zoom:{...z,minimap:B,preview:{enable:!0,fill:`#CCCCCC50`,stroke:`#6A6A6A`,strokeWidth:2,strokeDasharray:0},useDefaultFormat:!0,timeFormat:`yyyy-MM-dd HH:mm:ss`,customFormat:null},tooltip:{...j,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0,showTimeLabel:!0,showTotal:!1,totalTranslation:`Total`,useDefaultTimeFormat:!0,timeFormat:`yyyy-MM-dd HH:mm:ss`},highlighter:{color:_,opacity:5},bars:{gapRatio:.5,distributed:!1,showDistributedPercentage:!0,borderRadius:0,strokeWidth:1,gradient:{show:!0,intensity:20},totalValues:{show:!0,offsetY:0,offsetX:0,fontSize:S._16,bold:!1,color:_},dataLabels:{show:!0,hideEmptyValues:!1,hideUnderValue:null,hideEmptyPercentages:!1,hideUnderPercentage:null,adaptColorToBackground:!0,color:_,fontSize:S._14,bold:!1,rounding:0,prefix:``,suffix:``,formatter:null}},grid:{scale:{ticks:10,scaleMin:null,scaleMax:null},frame:{show:!1,stroke:y,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,strokeDasharray:0},x:{showAxis:!0,showHorizontalLines:!1,axisColor:y,linesColor:y,linesThickness:1,linesStrokeDasharray:0,axisThickness:2,axisName:{show:!0,text:``,fontSize:S._14,color:_,bold:!1,offsetY:0},timeLabels:{show:!0,values:[],datetimeFormatter:N,offsetY:0,rotation:0,autoRotate:{enable:!0,angle:-30},fontSize:S._14,color:_,bold:!1,showOnlyFirstAndLast:!1,showFirstAndLast:!0,showOnlyAtModulo:!1,modulo:2}},y:{position:`left`,showAxis:!0,showVerticalLines:!1,linesColor:y,linesThickness:1,linesStrokeDasharray:0,axisColor:y,axisThickness:2,axisName:{show:!0,text:``,fontSize:S._14,color:_,bold:!1,offsetX:0},axisLabels:{formatter:null,show:!0,color:_,fontSize:S._14,bold:!1,rounding:0}}}}}},H={analysis:{options:{minimum:!0,maximum:!0,increase:!0,decrease:!0,change:!0,average:!0,median:!0,threshold:!0,outlier:!0,gap:!0,trend:!0},optionsTitle:`Analysis annotations`,seriesTitle:`Series to annotate`,appearanceTitle:`Annotation appearance`,colorLabel:`Color`,fontSizeLabel:`Font size`,strokeWidthLabel:`Arrow stroke width`,apply:`Apply`,cancel:`Cancel`,thresholdUnavailable:`No thresholds defined.`,thresholds:[],maxAnnotations:24,optionLabels:{minimum:`Minimum`,maximum:`Maximum`,increase:`Largest increase`,decrease:`Largest decrease`,change:`First-to-last change`,average:`Average`,median:`Median`,threshold:`Threshold crossings`,outlier:`Outlier candidates (1.5 x IQR)`,gap:`Largest gap between comparable series`,trend:`Linear trend`},visualIncrease:`{series}: largest increase {value}`,visualDecrease:`{series}: largest decrease {value}`,visualChange:`{series}: first-to-last change {value}`,visualAverage:`{series}: average {value}`,visualMedian:`{series}: median {value}`,visualThreshold:`{series}: crossed threshold {value}`,visualOutlier:`{series}: outlier candidate {value} (1.5 x IQR)`,visualGap:`{series} / {other}: largest gap {value}`,visualTrend:`{series}: fitted slope {value} per x-unit`,visualMinimum:`{series}: minimum {value}`,visualMaximum:`{series}: maximum {value}`,visualAdded:`{count} annotations added.`,visualEmpty:`No eligible annotations for the selected options in this view.`,visualBusy:`Finish your current annotation edit and try again.`,locale:`en`,series:`Series`,summary:`{series}: {count} observations; {excluded} excluded.`,minimum:`Minimum: {value} (point {point}, {ties} tied).`,maximum:`Maximum: {value} (point {point}, {ties} tied).`,change:`First-to-last change: {value}.`,increase:`Largest consecutive increase: {value} (points {from}–{to}).`,decrease:`Largest consecutive decrease: {value} (points {from}–{to}).`},devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,theme:``,responsive:!1,loading:!1,a11y:x,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},responsiveProportionalSizing:!0,customPalette:[],useCssAnimation:!1,downsample:E,transitions:M,chart:{fontFamily:`inherit`,backgroundColor:g,color:_,height:600,width:1e3,annotations:[{show:!1,yAxis:{yTop:null,yBottom:null,label:{text:``,textAnchor:`start`,position:`start`,offsetX:0,offsetY:0,padding:F([12,12,12,12]),border:{stroke:c,strokeWidth:1,rx:0,ry:0},fontSize:14,color:_,backgroundColor:y},line:{stroke:r,strokeWidth:1,strokeDasharray:0},area:{fill:y,opacity:30}}}],zoom:{...z,minimap:V,preview:{enable:!0,fill:`#CCCCCC50`,stroke:`#6A6A6A`,strokeWidth:2,strokeDasharray:0},useDefaultFormat:!0,timeFormat:`yyyy-MM-dd HH:mm:ss`,customFormat:null},padding:F([12,12,6,6]),highlighter:{color:_,opacity:5,useLine:!1,lineDasharray:2,lineWidth:1,crosshairs:{show:!1,stroke:r,strokeWidth:1,strokeDasharray:3,stopOnPoint:!1,dot:{radius:2,fill:r,stroke:c,strokeWidth:1}}},highlightArea:{show:!1,from:0,to:0,color:r,opacity:20,caption:{text:``,fontSize:S._10,color:_,bold:!1,offsetY:0,width:`auto`,padding:3,textAlign:T.CENTER}},timeTag:{show:!1,backgroundColor:y,color:_,fontSize:S._12,circleMarker:{radius:3,color:_},useDefaultFormat:!0,timeFormat:`yyyy-MM-dd HH:mm:ss`,customFormat:null},grid:{stroke:y,showVerticalLines:!1,showHorizontalLines:!1,position:`middle`,frame:{show:!1,stroke:y,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,strokeDasharray:0},labels:{show:!0,color:_,fontSize:S._16,axis:{yLabel:``,yLabelOffsetX:0,xLabel:``,xLabelOffsetY:0,fontSize:S._14},zeroLine:{show:!0},xAxis:{showBaseline:!1,showCrosshairs:!0,crosshairsAlwaysAtZero:!1,crosshairSize:6,commonScaleSteps:10,useNiceScale:!0,scaleMin:null,scaleMax:null,rounding:1,formatter:null,reverse:!1},yAxis:{scale:`linear`,symlogConstant:1,reverse:!1,position:`left`,showBaseline:!0,showCrosshairs:!0,crosshairSize:6,commonScaleSteps:10,useIndividualScale:!1,useNiceScale:!1,stacked:!1,gap:12,labelWidth:64,formatter:null,scaleMin:null,scaleMax:null,groupColor:null,scaleLabelOffsetX:0,scaleValueOffsetX:0,rounding:1,serieNameFormatter:null},xAxisLabels:{color:_,show:!0,values:[],datetimeFormatter:N,fontSize:S._14,showOnlyFirstAndLast:!1,showFirstAndLast:!0,showOnlyAtModulo:!1,modulo:2,yOffset:24,rotation:0,autoRotate:{enable:!0,angle:-30}}}},comments:{show:!0,showInTooltip:!0,width:200,offsetX:0,offsetY:0},labels:{fontSize:S._10,prefix:``,suffix:``},legend:{color:_,show:!0,fontSize:S._14,position:`bottom`,selectAllToggle:{show:!1,backgroundColor:b,color:_}},title:{...k,show:!0},tooltip:{...j,showTimeLabel:!0,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0,useDefaultTimeFormat:!0,timeFormat:`yyyy-MM-dd HH:mm:ss`},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!0,fullscreen:!0,stack:!0,annotator:!0,svg:!0})},bar:{showTransition:!0,transitionDurationMs:300,borderRadius:2,useGradient:!0,periodGap:.1,innerGap:0,border:{useSerieColor:!1,strokeWidth:0,stroke:c},labels:{show:!1,offsetY:-6,offsetX:0,rotation:0,textAnchor:null,alwaysOnTop:!1,rounding:0,color:_,formatter:null},serieName:{show:!1,offsetY:-6,useAbbreviation:!0,abbreviationSize:3,useSerieColor:!0,color:_,bold:!1}},line:{showTransition:!0,transitionDurationMs:300,radius:3,useGradient:!0,strokeWidth:3,cutNullValues:!1,nullDashes:{show:!1},interLine:{pairs:[],colors:[],fillOpacity:.25},dot:{selectedRadius:4.5,hideAboveMaxSerieLength:62,useSerieColor:!0,fill:c,strokeWidth:.5},labels:{show:!1,offsetY:-6,offsetX:0,rotation:0,rounding:0,color:_,formatter:null,textAnchor:null,alwaysOnTop:!1},area:{useGradient:!0,opacity:30},tag:{followValue:!0,formatter:null,fontSize:S._14}},plot:{showTransition:!0,transitionDurationMs:300,radius:3,useGradient:!0,dot:{useSerieColor:!0,fill:c,strokeWidth:.5},labels:{show:!1,offsetY:-6,offsetX:0,rotation:0,rounding:0,color:_,formatter:null,textAnchor:null,alwaysOnTop:!1},tag:{followValue:!0,formatter:null,fontSize:S._14}},table:{useDialog:!1,responsiveBreakpoint:400,rounding:0,sparkline:!0,showSum:!0,columnNames:{period:`Period`,total:`Total`},th:I,td:L,useDefaultTimeFormat:!0,timeFormat:`yyyy-MM-dd HH:mm:ss`},showTable:!1},U={sorted:!0,devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,type:`classic`,loading:!1,pie:!1,autoSize:!0,responsive:!1,theme:``,customPalette:[],useCssAnimation:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},serieToggleAnimation:{show:!0,durationMs:500},startAnimation:{show:!1,durationMs:1e3,staggerMs:50},useBlurOnHover:!0,userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!0,fullscreen:!0,annotator:!0,svg:!0}),translations:{total:`Total`,average:`Average`},table:{...R,useDialog:!1,th:I,td:{...L,roundingValue:0,roundingPercentage:0},columnNames:{series:`Series`,value:`Value`,percentage:`Percentage`}},style:{fontFamily:`inherit`,chart:{useGradient:!0,gradientIntensity:40,backgroundColor:g,color:_,padding:F([0,0,0,0]),width:512,height:360,layout:{curvedMarkers:!1,labels:{dataLabels:{...O,show:!0,useLabelSlots:!1,hideUnderValue:3,smallArcClusterThreshold:8,smallArcClusterFontSize:S._12,oneLine:!1,prefix:``,suffix:``},value:{rounding:0,show:!0,formatter:null},percentage:{show:!0,color:_,bold:!0,fontSize:S._18,minFontSize:C,rounding:0,formatter:null},name:{show:!0,color:_,bold:!1,fontSize:S._14,minFontSize:C},hollow:{show:!0,total:{show:!0,bold:!1,fontSize:S._18,color:_,text:`Total`,offsetY:0,value:{color:_,fontSize:S._18,bold:!0,suffix:``,prefix:``,offsetY:0,rounding:0,formatter:null}},average:{show:!0,bold:!1,fontSize:S._18,color:v,text:`Average`,offsetY:0,value:{color:_,fontSize:S._18,bold:!0,suffix:``,prefix:``,offsetY:0,rounding:0,formatter:null}}}},donut:{radiusRatio:.3,strokeWidth:64,borderWidth:1,useShadow:!1,shadowColor:r,emptyFill:y,selectedColor:`#0000001A`,borderColorAuto:!0,borderColor:b}},comments:{show:!0,showInTooltip:!0,width:100,offsetY:0,offsetX:0},legend:{...A,...O,roundingValue:0,roundingPercentage:0,showPercentage:!0,showValue:!0,position:`bottom`},tooltip:{...j,...O,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0},title:k}}},W={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},transitions:M,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0,zoom:!0}),style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,height:500,width:800,padding:F([0,0,0,0]),layout:{sorted:!0,rects:{stroke:y,strokeWidth:1,borderRadius:0,colorRatio:.3,gradient:{show:!0,intensity:30},group:{stroke:y,strokeWidth:1,useSeriesBackgroundColor:!1,backgroundLighterRatio:.4,label:{adaptColorToBackground:!1,color:_}},selected:{stroke:y,strokeWidth:1,unselectedOpacity:.6}},labels:{showDefaultLabels:!0,fontSize:S._24,fontSizeZoomFactor:6,minFontSize:S._10,hideUnderProportion:0,prefix:``,suffix:``,rounding:0,formatter:null,name:{show:!0,bold:!0},value:{show:!0,bold:!1}}},legend:{...A,roundingValue:0,roundingPercentage:0,showValue:!0,showPercentage:!0,position:`bottom`},title:k,tooltip:{...j,roundingValue:1},zoom:{show:!1}}},table:{...R,useDialog:!1,columnNames:{series:`Series`,value:`Value`,percentage:`Percentage`},th:I,td:{...L,roundingValue:0,roundingPercentage:0}}},G={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,transitions:M,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],useBlurOnHover:!0,useCustomCells:!1,useAnimation:!0,style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,layout:{labels:{dataLabels:{...O,prefix:``,suffix:``,formatter:null},captions:{show:!1,showSerieName:!1,serieNameAbbreviation:!0,serieNameMaxAbbreviationSize:3,fontSize:S._12,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0,offsetX:0,offsetY:0}},grid:{size:10,spaceBetween:2,vertical:!1},rect:{rounded:!0,rounding:2,stroke:_,strokeWidth:1,useGradient:!0,gradientIntensity:40,merged:!1,selection:{unselectedOpacity:.6,wrap:{show:!0,stroke:_,strokeWidth:3,strokeLinejoin:`round`}}}},title:k,tooltip:{...j,...O,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0},legend:{...A,...O,roundingValue:0,roundingPercentage:0,showValue:!0,showPercentage:!0,position:`bottom`}}},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),table:{...R,useDialog:!1,columnNames:{series:`Series`,value:`Value`,percentage:`Percentage`},th:I,td:{...L,roundingValue:0,roundingPercentage:0}}},K={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],useCssAnimation:!1,style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,layout:{scaleToAxisMax:!1,targetReference:{show:!1,stroke:r,strokeWidth:1,strokeDasharray:4,showInLegend:!0,legendLabel:`Target`},plots:{show:!0,radius:2},outerPolygon:{stroke:o,strokeWidth:1},dataPolygon:{strokeWidth:1,transparent:!1,opacity:20,useGradient:!0},grid:{show:!0,rotation:0,stroke:y,strokeWidth:.5,graduations:5},labels:{dataLabels:{show:!0,fontSize:S._12,color:_,offset:0}}},title:k,tooltip:{...j,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0,animation:{show:!0,animationFrames:60}},legend:{...A,roundingPercentage:0,position:`bottom`}}},table:{...R,useDialog:!1,th:I,td:{...L,roundingValue:0,roundingPercentage:0}},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),translations:{target:`Target`,value:`Value`,datapoint:`Datapoint`}},q={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],useCssAnimation:!1,zoomAnimationFrames:20,zoomEnabled:!0,downsample:E,style:{fontFamily:`inherit`,chart:{height:512,width:512,backgroundColor:g,color:_,layout:{labels:{quadrantLabels:{show:!0,tl:{text:``,color:_,fontSize:S._16,bold:!0},tr:{text:``,color:_,fontSize:S._16,bold:!0},br:{text:``,color:_,fontSize:S._16,bold:!0},bl:{text:``,color:_,fontSize:S._16,bold:!0}},plotLabels:{showAsTag:!1,show:!0,fontSize:S._10,color:_,offsetY:8,rounding:0,x:{formatter:null},y:{formatter:null}},axisLabels:{show:!0,fontSize:S._14,color:{positive:_,negative:_}}},grid:{stroke:y,strokeWidth:1.5,showArrows:!0,graduations:{stroke:y,strokeWidth:.5,show:!0,steps:5,fill:!0,color:y,roundingForce:10},xAxis:{min:-100,max:100,auto:!0,name:``,show:!0},yAxis:{min:-100,max:100,auto:!0,name:``,show:!0}},plots:{radius:6,outline:!0,outlineColor:c,outlineWidth:1},areas:{show:!0,opacity:40,useGradient:!0}},title:k,tooltip:{...j,roundingValue:0,showShape:!0},legend:{...A,position:`bottom`}}},table:{...R,useDialog:!1,th:I,td:{...L,roundingValue:0}},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!0,fullscreen:!0,annotator:!0,svg:!0}),translations:{category:`Category`,item:`Item`,side:`Side`}},J={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,theme:``,customPalette:[],style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,animation:{use:!0,speed:1,acceleration:1},layout:{radiusRatio:1,track:{size:1,useGradient:!0,gradientIntensity:20},markers:{show:!0,color:_,bold:!0,fontSizeRatio:1,offsetY:0,roundingValue:0,formatter:null,prefix:``,suffix:``},segmentSeparators:{show:!1,offsetOut:0,offsetIn:0,stroke:r,strokeWidth:2},segmentNames:{show:!0,curved:!0,offsetRatio:1.1,fontSize:S._16,minFontSize:C,useSerieColor:!0,color:_,bold:!1},indicatorArc:{show:!1,radius:123,fill:y},pointer:{show:!0,type:`pointy`,size:1,stroke:c,strokeWidth:12,useRatingColor:!0,color:o,circle:{radius:10,stroke:r,strokeWidth:2,color:c}}},legend:{show:!0,fontSize:S._48,prefix:``,suffix:``,roundingValue:1,showPlusSymbol:!0,useRatingColor:!0,color:_,formatter:null},title:k}},userOptions:P({pdf:!0,img:!0,fullscreen:!0,annotator:!0,svg:!0}),translations:{base:`Base`}},Y={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,theme:``,layout:`classic`,style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,animation:{use:!0,speed:.5,acceleration:1},layout:{wheel:{radiusRatio:1,tiltAngle3d:50,ticks:{type:`classic`,rounded:!0,inactiveColor:y,activeColor:u,sizeRatio:.9,quantity:100,strokeWidth:5,stroke:`transparent`,spacingRatio3d:1,shadeColorRatio3d:.15,depth3d:0,gradient:{show:!0,shiftHueIntensity:100}}},innerCircle:{show:!0,stroke:y,strokeWidth:1,radiusRatio:1},percentage:{show:!0,fontSize:S._48,rounding:1,bold:!0,formatter:null,offsetX:0,offsetY:0,stroke:`transparent`,strokeWidth:0}},title:k}},userOptions:P({pdf:!0,img:!0,fullscreen:!0,annotator:!0,svg:!0})},X={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,theme:``,style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,width:312,height:56,animation:{use:!0,speed:.5,acceleration:1},layout:{display:`horizontal`,crescendo:!1,curved:!1,curveAngleX:10,curveAngleY:10,activeColor:u,inactiveColor:y,ticks:{gradient:{show:!0,shiftHueIntensity:100}}},percentage:{show:!0,useGradientColor:!0,color:u,fontSize:S._16,bold:!0,rounding:1,verticalPosition:T.BOTTOM,horizontalPosition:T.LEFT,formatter:null},title:k}},userOptions:P({pdf:!0,img:!0,fullscreen:!0,annotator:!0,svg:!0})},ie={devHints:D,debug:!1,loading:!1,theme:``,customPalette:[],a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,layout:{grandTotal:{show:!0,fontSize:S._20,bold:!0,prefix:``,suffix:``,roundingValue:0,color:_,text:`Grand total`,offsetY:0,formatter:null},roots:{stroke:c,strokeWidth:5,useGradient:!0,gradientIntensity:20,underlayerColor:c,labels:{show:!0,fontSize:S._16,adaptColorToBackground:!0,color:c,bold:!0,roundingValue:0,prefix:``,suffix:``,formatter:null,name:{color:_,fontSize:S._16,bold:!0}}},verticalSeparator:{stroke:c,strokeWidth:5},links:{opacity:10},branches:{stroke:c,strokeWidth:0,borderRadius:6,useGradient:!0,gradientIntensity:20,underlayerColor:c,widthRatio:1.5,labels:{show:!0,fontSize:S._14,color:_,bold:!0,dataLabels:{show:!0,hideUnderValue:5,fontSize:S._14,roundingValue:0,roundingPercentage:0,prefix:``,suffix:``,formatter:null}}},nuts:{offsetX:20,useGradient:!0,gradientIntensity:30,selected:{useMotion:!0,useGradient:!0,gradientIntensity:40,roundingValue:0,roundingPercentage:0,labels:{dataLabels:{hideUnderValue:5,color:_,fontSize:S._12,bold:!0,prefix:``,suffix:``,formatter:null},core:{total:{color:_,fontSize:S._24,bold:!1},value:{color:_,fontSize:S._24,bold:!0,prefix:``,suffix:``}}}}},legend:{fontSize:S._16,color:_,roundingValue:0,roundingPercentage:0,prefix:``,suffix:``},title:{...k,offsetY:0,subtitle:{...k.subtitle,offsetY:0}}}}},table:{...R,useDialog:!1,th:{...I,translations:{rootName:`root name`,rootValue:`root value`,rootToTotal:`%/total`,branchName:`branch name`,branchValue:`branch value`,branchToRoot:`%/root`,branchToTotal:`%/total`,nutName:`nut name`,nutValue:`nut value`,nutToBranch:`%/branch`,nutToRoot:`%/root`,nutToTotal:`%/total`}},td:{...L,roundingValue:0,roundingPercentage:0}},userOptions:P({pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),translations:{total:`Total`,proportionToTree:`of grand total`,of:`of`}},ae={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},transitions:M,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],useCssAnimation:!1,useStartAnimation:!0,useBlurOnHover:!0,style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,useGradient:!0,gradientIntensity:20,layout:{maxThickness:64,gutter:{color:y,width:.62},track:{width:.62},labels:{...O,show:!0,fontSize:S._14,minFontSize:C,color:_,roundingValue:0,roundingPercentage:0,bold:!0,offsetX:0,offsetY:0,value:{show:!0,formatter:null},percentage:{show:!0}}},title:k,legend:{...A,...O,roundingValue:0,roundingPercentage:0,showValue:!0,showPercentage:!0,position:`bottom`},tooltip:{...j,...O,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0}}},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),table:{...R,useDialog:!1,th:I,td:{...L,roundingValue:0,roundingPercentage:0},translations:{value:`Value`,percentage:`Percentage`,serie:`Serie`}}},Z={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,autoSize:!0,responsive:!1,theme:``,customPalette:[],useCssAnimation:!1,transitions:M,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,width:512,height:316,layout:{bars:{rowColor:null,rowRadius:4,sort:ee.DESC,useStroke:!1,strokeWidth:2,height:32,gap:6,borderRadius:4,offsetX:12,paddingRight:0,useGradient:!0,gradientIntensity:20,fillOpacity:90,underlayerColor:c,dataLabels:{color:_,bold:!0,fontSize:S._14,value:{show:!0,roundingValue:0,prefix:``,suffix:``,formatter:null},percentage:{show:!0,roundingPercentage:0},offsetX:0},nameLabels:{show:!0,color:_,bold:!1,fontSize:S._14,offsetX:0},parentLabels:{show:!0,color:_,bold:!1,fontSize:S._14,offsetX:0,paddingBottom:0}},highlighter:{color:r,opacity:5},separators:{show:!1,color:y,strokeWidth:1,fullWidth:!0}},title:k,legend:{...A,position:T.TOP,roundingValue:0,roundingPercentage:0,prefix:``,suffix:``,showValue:!0},tooltip:{...j,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0,prefix:``,suffix:``}}},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,sort:!0,fullscreen:!0,annotator:!0,svg:!0}),table:{...R,useDialog:!1,th:I,td:{...L,roundingValue:0,roundingPercentage:0,prefix:``,suffix:``}},translations:{parentName:`Serie`,childName:`Child`,value:`value`,percentageToTotal:`%/total`,percentageToSerie:`%/serie`}},oe=Z,se={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,style:{fontFamily:`inherit`,backgroundColor:g,color:_,layout:{height:300,width:1e3,padding:F([0,0,0,0]),crosshairs:{show:!1,stroke:r,strokeWidth:1,strokeDasharray:0},cells:{scaleMax:null,scaleMin:null,rowTotal:{value:{show:!1},color:{show:!1}},columnTotal:{value:{show:!1,rotation:0,autoRotate:{enable:!0,angle:-30},offsetX:0,offsetY:0},color:{show:!1}},value:{show:!1,fontSize:S._18,bold:!1,roundingValue:0,color:_,formatter:null},colors:{hot:d,cold:u,underlayer:c},spacing:2,selected:{border:4,color:r}},dataLabels:{prefix:``,suffix:``,xAxis:{show:!0,values:[],datetimeFormatter:N,showOnlyAtModulo:null,rotation:0,autoRotate:{enable:!0,angle:-30},fontSize:S._10,color:_,bold:!1,offsetX:0,offsetY:0},yAxis:{show:!0,values:[],datetimeFormatter:N,fontSize:S._10,color:_,bold:!1,offsetX:0,offsetY:0}}},title:k,legend:{...A,fontSize:S._12,roundingValue:0,width:24},tooltip:{...j,roundingValue:0}},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),table:{...R,useDialog:!1,colNames:{xAxis:`X`},th:I,td:{...L,roundingValue:0}}},ce={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},transitions:M,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],useCssAnimation:!1,downsample:E,usePerformanceMode:!1,style:{fontFamily:`inherit`,backgroundColor:g,color:_,layout:{height:316,width:512,padding:F([0,0,0,0]),axis:{show:!0,stroke:y,strokeWidth:1,xMin:null,xMax:null,yMin:null,yMax:null},marginalBars:{show:!1,size:40,tranches:20,opacity:.6,fill:r,strokeWidth:1,offset:20,borderRadius:2,useGradient:!0,showLines:!1,linesStrokeWidth:1,highlighter:{show:!0,opacity:.1,color:r,stroke:r,strokeWidth:.5,strokeDasharray:2,highlightBothAxes:!1}},plots:{radius:2,hoverRadiusRatio:2,stroke:c,strokeWidth:.3,opacity:.6,opacityNotSelected:.6,name:{show:!1,fontSize:12,offsetY:0,color:r},significance:{show:!0,useDistanceOpacity:!1,deviationThreshold:10,opacity:.3},deviation:{translation:`deviation`,roundingValue:1},giftWrap:{show:!1,strokeWidth:1,strokeDasharray:0,fillOpacity:.2},selectors:{show:!0,stroke:r,strokeWidth:.7,strokeDasharray:0,labels:{fontSize:S._12,color:_,rounding:2,bold:!1,showName:!0,prefix:``,suffix:``,x:{formatter:null},y:{formatter:null}},markers:{radius:1.5,stroke:c,strokeWidth:.5,fill:r}}},correlation:{show:!0,strokeDasharray:2,strokeWidth:1,label:{show:!0,fontSize:S._12,color:_,bold:!0,roundingValue:2,useSerieColor:!0}},dataLabels:{reverseAxisLabels:!1,xAxis:{name:``,show:!0,fontSize:S._10,color:_,bold:!1,offsetX:0,offsetY:0,roundingValue:0,showValue:!0,scales:{show:!1,steps:10,useNiceScale:!0,labels:{formatter:null,color:r,fontSize:12,offsetY:0},verticalLines:{show:!1,stroke:a,strokeWidth:1}}},yAxis:{name:``,show:!0,fontSize:S._10,color:_,bold:!1,offsetX:0,offsetY:0,roundingValue:0,showValue:!0,scales:{show:!1,steps:10,useNiceScale:!0,labels:{formatter:null,color:r,fontSize:12,offsetX:0},horizontalLines:{show:!1,stroke:a,strokeWidth:1}}}}},title:k,legend:{...A,roundingValue:0,position:`bottom`},tooltip:{...j,roundingValue:2,showShape:!0,prefix:``,suffix:``}},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),table:{...R,useDialog:!1,th:I,td:{...L,roundingValue:2,roundingAverage:1},translations:{correlationCoefficient:`Correlation Coef.`,nbrPlots:`Nbr plots`,average:`Average`,series:`Series`}}},le={devHints:D,skeletonDataset:null,skeletonConfig:null,type:`candlestick`,debug:!1,loading:!1,responsive:!1,responsiveProportionalSizing:!0,a11y:x,transitions:M,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,useCssAnimation:!1,style:{fontFamily:`inherit`,backgroundColor:g,color:_,height:316,width:512,layout:{padding:F([0,0,0,0]),selector:{color:y,opacity:10},grid:{show:!0,stroke:y,strokeWidth:.5,verticalLines:{show:!1,strokeDasharray:0,strokeWidth:.5,stroke:y},horizontalLines:{show:!1,strokeDasharray:0,strokeWidth:.5,stroke:y},xAxis:{ticks:{show:!0},dataLabels:{show:!0,fontSize:S._10,color:_,offsetY:0,bold:!1,rotation:0,autoRotate:{enable:!0,angle:-30},datetimeFormatter:N,showOnlyFirstAndLast:!1,showFirstAndLast:!0,showOnlyAtModulo:!1,modulo:2}},yAxis:{position:`left`,scale:{min:null,max:null},dataLabels:{show:!0,fontSize:S._12,color:_,roundingValue:0,offsetX:0,bold:!1,steps:10,prefix:``,suffix:``}}},wick:{stroke:r,strokeWidth:.5,extremity:{shape:w.LINE,size:`auto`,color:r}},candle:{borderRadius:1,stroke:r,strokeWidth:.5,colors:{bearish:d,bullish:f},gradient:{show:!0,underlayer:c},widthRatio:.5}},zoom:{...z,minimap:B,preview:{enable:!0,fill:`#CCCCCC50`,stroke:`#6A6A6A`,strokeWidth:2,strokeDasharray:0},useDefaultFormat:!0,timeFormat:`yyyy-MM-dd HH:mm:ss`,customFormat:null},title:k,tooltip:{...j,roundingValue:0,prefix:``,suffix:``,showChart:!0,useDefaultTimeFormat:!0,timeFormat:`yyyy-MM-dd HH:mm:ss`}},translations:{period:`Period`,open:`Open`,high:`High`,low:`Low`,last:`Close`,volume:`Volume`},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),table:{...R,th:I,useDialog:!1,td:{...L,roundingValue:2,prefix:``,suffix:``}}},ue={useCursorPointer:!1,devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,theme:``,responsive:!1,type:w.LINE,downsample:E,a11y:x,translations:{period:`period`,value:`value`},gradientPath:{show:!1,segments:256,colors:{high:`#34eb96`,low:`#eb4034`}},temperatureColors:{show:!1,colors:[`#34eb96`,`#eb4034`]},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},style:{chartWidth:290,animation:{show:!1,animationFrames:360},padding:F([12,12,3,0]),fontFamily:`inherit`,backgroundColor:g,scaleMin:null,scaleMax:null,line:{color:u,strokeWidth:2,smooth:!1,cutNullValues:!1,nullDashes:{show:!1},dashIndices:[],dashArray:4,pulse:{show:!1,loop:!0,color:c,durationMs:4e3,easing:`ease-in-out`,radius:2,cubicBezier:[.45,.45,.55,.55],trail:{show:!1,length:6,opacity:.75}}},bar:{borderRadius:3,color:u},zeroLine:{color:r,strokeWidth:1},plot:{show:!0,radius:4,stroke:c,strokeWidth:1},verticalIndicator:{show:!0,strokeWidth:1.5,color:u,strokeDasharray:3},dataLabel:{show:!0,position:T.LEFT,offsetX:0,offsetY:0,fontSize:S._20,bold:!0,color:_,roundingValue:0,valueType:`latest`,prefix:``,suffix:``,formatter:null,datetimeFormatter:N},title:{show:!0,textAlign:T.LEFT,color:_,fontSize:S._16,bold:!0,text:``},tooltip:{show:!1,fontSize:S._14,color:_,backgroundColor:g,offsetY:0,borderWidth:0,borderColor:b,borderRadius:2,backgroundOpacity:100},area:{show:!0,useGradient:!0,opacity:30,color:u},zoom:{show:!1,selection:{fill:r,stroke:`transparent`,fillOpacity:.1,strokeOpacity:.5,strokeWidth:1,strokeDasharray:0},resetButton:{show:!0,title:`Reset zoom · double-click chart or press Esc`,ariaLabel:`Reset zoom`,color:r}}}},de={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],style:{fontFamily:`inherit`,backgroundColor:g,animation:{show:!0,animationFrames:60},layout:{independant:!0,percentage:!0,target:0,showTargetValue:!1,targetValueText:``},gutter:{backgroundColor:y,opacity:100},bar:{borderRadius:null,gradient:{show:!0,intensity:40,underlayerColor:c}},labels:{fontSize:S._16,name:{position:`top-left`,width:`100%`,color:_,bold:!1},value:{show:!0,bold:!0}},title:{text:``,color:_,fontSize:S._16,bold:!0,textAlign:T.LEFT,margin:`0 0 6px 0`,subtitle:{color:v,text:``,fontSize:S._12,bold:!1}},gap:4}},fe={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,useCursorPointer:!1,a11y:{...x,translations:{...x.translations,series:`Series`,percentage:`Percentage`,value:`Value`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],style:{fontFamily:`inherit`,backgroundColor:g,animation:{show:!0,animationFrames:60},bar:{borderRadius:null,gradient:{show:!0,intensity:40,underlayerColor:c}},legend:{show:!0,textAlign:T.LEFT,fontSize:S._12,margin:`6px 0 0 0`,name:{color:_,bold:!1},value:{show:!0,bold:!1,color:_,prefix:``,suffix:``,rounding:0,formatter:null},percentage:{show:!0,bold:!0,color:_,rounding:1},selectAllToggle:{show:!1,backgroundColor:b,color:_}},title:{...k,textAlign:T.LEFT,margin:`0 0 6px 0`},tooltip:{...j}}},pe={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,series:`Series`,time:`Time`,value:`Value`,label:`Label`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,style:{fontFamily:`inherit`,backgroundColor:g,animation:{show:!0,speedMs:500},layout:{height:96,width:640,padding:F([24,0,36,0])},bars:{shape:w.SQUARE,strokeWidth:0,colors:{positive:u,negative:d,gradient:{show:!0}},borderRadius:24,gap:12},labels:{value:{show:!0,fontSize:S._14,minFontSize:C,color:_,bold:!0,rounding:1,prefix:``,suffix:``,offsetY:0,formatter:null},valueLabel:{show:!0,fontSize:S._14,minFontSize:C,color:_,bold:!1,rounding:0},timeLabel:{show:!0,fontSize:S._12,minFontSize:C,color:_,bold:!1}},selector:{stroke:u,fill:`#2D353C10`,strokeWidth:2,strokeDasharray:0,borderRadius:2},title:{text:``,color:_,fontSize:S._16,bold:!0,textAlign:T.LEFT,subtitle:{color:v,text:``,fontSize:S._12,bold:!1},margin:`0 0 6px 0`}}},me={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,theme:``,style:{fontFamily:`inherit`,background:c,height:84,basePosition:72,animation:{show:!0,speedMs:150},title:{show:!0,fontSize:S._12,position:T.TOP,textAlign:T.CENTER,bold:!1,color:_},dataLabel:{fontSize:S._20,autoColor:!0,color:_,offsetY:0,bold:!0,rounding:0,prefix:``,suffix:``,formatter:null},colors:{min:d,max:f,showGradient:!0},track:{autoColor:!0,color:u,strokeLinecap:w.ROUND},gutter:{color:y,strokeLinecap:w.ROUND}}},he={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,theme:``,downsample:E,style:{fontFamily:`inherit`,backgroundColor:g,height:80,width:300,animation:{show:!0,animationFrames:20},line:{stroke:r,strokeWidth:2,strokeLinecap:w.ROUND,strokeLinejoin:w.ROUND,smooth:!0,useColorTrend:!0},area:{show:!0,useGradient:!0,opacity:20},dataLabel:{show:!0,useColorTrend:!0,color:_,fontSize:S._14,bold:!1,prefix:``,suffix:``,rounding:0,formatter:null},trendLabel:{trendType:`global`,useColorTrend:!0,color:_,fontSize:S._14,bold:!0,rounding:0},arrow:{colors:{positive:f,neutral:i,negative:d}},padding:F([12,12,12,82])}},ge={annotatorPalette:h,devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,a11y:x,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},transitions:M,responsive:!1,theme:``,axisLabelsFontSize:S._12,backgroundColor:g,barGap:12,barAnimated:!0,barStrokeWidth:1,blurOnHover:!0,chartIsBarUnderDatasetLength:6,color:_,customPalette:[],dataLabelFontSize:S._14,dataLabelRoundingPercentage:1,dataLabelRoundingValue:0,donutHideLabelUnderPercentage:3,donutCurvedMarkers:!0,donutLabelMarkerStrokeWidth:1,donutRadiusRatio:.4,donutShowTotal:!0,donutStrokeWidth:2,donutStroke:g,donutThicknessRatio:.18,donutTotalLabelFontSize:S._24,donutTotalLabelOffsetY:0,donutTotalLabelText:`Total`,donutUseShadow:!1,donutShadowColor:r,fontFamily:`inherit`,formatter:null,height:338,legendFontSize:S._12,legendIcon:`circleFill`,legendIconSize:S._12,legendPosition:`bottom`,showLegendSelectAllToggle:!1,legendSelectAllToggleBackgroundColor:b,legendSelectAllToggleColor:_,lineAnimated:!0,lineSmooth:!0,lineStrokeWidth:2,paletteStartIndex:0,showDataLabels:!0,showLegend:!0,showTooltip:!0,showUserOptions:!0,userOptionsPosition:`right`,showUserOptionsOnChartHover:!1,keepUserOptionsStateOnChartLeave:!0,useCursorPointer:!1,userOptionsAnnotator:{showGroupActions:!0,followZoom:!0,useOutline:!0,outlineThickness:1,outlineColor:null},userOptionsButtons:{tooltip:!0,pdf:!0,img:!0,fullscreen:!0,annotator:!0,svg:!0,altCopy:!1},userOptionsButtonTitles:{open:`Open options`,close:`Close options`,tooltip:`Toggle tooltip`,pdf:`Download PDF`,img:`Download PNG`,fullscreen:`Toggle fullscreen`,annotator:`Toggle annotator`,svg:`Download SVG`,altCopy:`Copy alt text`},userOptionsPrint:{overflowTolerance:.2,orientation:`auto`,scale:2},userOptionsCallbacks:{tooltip:null,pdf:null,img:null,fullscreen:null,annotator:null,svg:null,altCopy:null},title:``,titleBold:!0,titleFontSize:S._16,titleTextAlign:`center`,tooltipTeleportTo:`body`,tooltipCustomFormat:null,tooltipBackgroundOpacity:100,tooltipBorderRadius:4,tooltipBorderColor:a,tooltipBorderWidth:1,tooltipFontSize:S._14,tooltipPosition:T.CENTER,tooltipOffsetX:0,tooltipOffsetY:24,tooltipSmooth:!0,tooltipSmoothForce:.18,tooltipSmoothSnapThreshold:.25,tooltipBackdropFilter:!0,useCustomLegend:!1,valuePrefix:``,valueSuffix:``,width:512,xAxisLabel:``,xyAxisStroke:y,xyAxisStrokeWidth:1,xyGridStroke:y,xyGridStrokeWidth:.5,xyHighlighterColor:r,xyHighlighterOpacity:.05,xyLabelsXFontSize:S._10,xyLabelsYFontSize:S._12,xyPaddingBottom:12,xyPaddingLeft:12,xyPaddingRight:12,xyPaddingTop:12,xyPeriodLabelsRotation:0,xyPeriodLabelsAutoRotate:{enable:!0,angle:-30},xyPeriods:[],datetimeFormatter:N,xyPeriodsShowOnlyAtModulo:!1,xyPeriodsModulo:12,xyScaleSegments:15,xyShowAxis:!0,xyShowGrid:!0,xyShowScale:!0,yAxisLabel:``,zoomXy:!0,zoomXyAutoFit:!1,zoomColor:o,zoomHighlightColor:s,zoomFontSize:S._14,zoomUseResetSlot:!1,zoomMinimap:V,zoomStartIndex:null,zoomEndIndex:null,zoomEnableRangeHandles:!0,zoomEnableSelectionDrag:!0,zoomFocusOnDrag:!1,zoomFocusRangeRatio:.2,zoomMaxWidth:null,dragToZoom:{show:!1,selection:{fill:u,stroke:i,fillOpacity:.2,strokeOpacity:.5,strokeWidth:1,strokeDasharray:0}}},_e={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,style:{fontFamily:`inherit`,backgroundColor:g,color:_,height:500,width:500,layout:{padding:F([12,12,36,12]),grid:{show:!0,stroke:y,strokeWidth:1},dataLabels:{sideTitles:{show:!0,fontSize:S._18,color:_,useSideColor:!0,bold:!1,offsetY:0},xAxis:{show:!0,fontSize:S._12,color:_,bold:!1,scale:1e3,translation:`in thousands`,formatter:null,rotation:0,autoRotate:{enable:!0,angle:-30}},yAxis:{show:!0,display:`age`,fontSize:S._12,color:_,bold:!1,showEvery:5,formatter:null}},centerSlit:{width:20},bars:{gap:2,borderRadius:2,left:{color:d},right:{color:u},gradient:{show:!0,underlayer:c,intensity:60,shiftHue:.05},labels:{show:!0,showOnHover:!0,fontSize:S._12,color:_,bold:!1,formatter:null,offsetX:0}}},highlighter:{color:r,opacity:5},title:k,tooltip:{...j,roundingValue:0}},translations:{age:`age`,male:`male`,female:`female`,total:`total`,year:`year`},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),table:{...R,useDialog:!1,th:I,td:L}},ve={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},responsiveProportionalSizing:!0,theme:``,customPalette:[],style:{fontFamily:`inherit`,backgroundColor:g,color:_,size:400,limit:50,animation:{show:!0,speedMs:300},labels:{color:_,fontSize:S._14,minFontSize:C},weightLabels:{size:8,show:!0,formatter:null,prefix:``,suffix:``,rounding:0},links:{curved:!1,maxWidth:3},circle:{radiusProportion:.2,stroke:o,strokeWidth:1,offsetY:0},plot:{radius:3,useSerieColor:!0,color:r},title:k},userOptions:P({pdf:!0,img:!0,fullscreen:!0,annotator:!0,svg:!0})},ye={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,theme:``,customPalette:[],style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,height:360,width:256,thermometer:{width:48},padding:{top:12,bottom:12},graduations:{show:!0,sides:`both`,height:2,stroke:y,strokeWidth:1,showIntermediate:!0,gradient:{show:!0,intensity:20}},animation:{use:!0,speedMs:1e3},label:{show:!0,fontSize:S._20,minFontSize:C,rounding:1,bold:!0,color:_,prefix:``,suffix:``,formatter:null}},title:k},userOptions:P({pdf:!0,img:!0,fullscreen:!0,annotator:!0,svg:!0})},be={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},transitions:M,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],useCssAnimation:!1,useBlurOnHover:!0,style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,size:360,layout:{labels:{dataLabels:{...O,prefix:``,suffix:``,formatter:null,show:!1,offsetX:0,fontSize:10,color:_,bold:!1,roundingValue:0,roundingPercentage:0,showValue:!0,showPercentage:!0,markers:{stroke:`#8A8A8A`,strokeWidth:1,radius:3,position:`right`}}},rings:{strokeWidth:2,stroke:y,gradient:{show:!0,intensity:40,underlayerColor:c},useShadow:!0}},legend:{...A,roundingValue:0,roundingPercentage:0,showValue:!0,showPercentage:!0,position:`bottom`},title:k,tooltip:{...j,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0}}},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0,labels:!0}),table:{...R,useDialog:!1,columnNames:{series:`Series`,value:`Value`,percentage:`Percentage`},th:I,td:{...L,roundingValue:0,roundingPercentage:0}}},xe={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,theme:``,a11y:x,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},transitions:M,customPalette:[],style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,zoom:z,donuts:{hover:{hideLabelsUnderValue:5}},dialog:{show:!0,backgroundColor:g,color:_,header:{backgroundColor:g,color:_},donutChart:{...U,responsive:!0,userOptions:{...U.userOptions,buttons:{...U.userOptions.buttons,pdf:!1}},style:{...U.style,chart:{...U.style.chart,layout:{...U.style.chart.layout,donut:{...U.style.chart.layout.donut,strokeWidth:64},labels:{...U.style.chart.layout.labels,percentage:{...U.style.chart.layout.labels.percentage,fontSize:16},name:{...U.style.chart.layout.labels.name,fontSize:12},hollow:{...U.style.chart.layout.labels.hollow,average:{...U.style.chart.layout.labels.hollow.average,show:!1}}}}}}}},layout:{height:316,width:512,padding:F([5,10,5,10]),grid:{show:!0,stroke:y,strokeWidth:.7,showVerticalLines:!0,axis:{yLabel:``,yLabelOffsetX:0,xLabel:``,xLabelOffsetY:0,fontSize:S._14,color:_},yAxis:{position:`left`,scaleMin:null,scaleMax:null,autoScale:!1,dataLabels:{show:!0,fontSize:S._10,color:_,roundingValue:0,offsetX:0,bold:!1,steps:10}},xAxis:{dataLabels:{show:!0,values:[],datetimeFormatter:N,fontSize:S._10,showOnlyFirstAndLast:!1,color:_,rotation:0,autoRotate:{enable:!0,angle:-30},offsetY:0}}},line:{show:!0,stroke:o,strokeWidth:4},highlighter:{color:r,opacity:5},dataLabels:{show:!0,fontSize:S._10,color:_,bold:!1,rounding:0,prefix:``,suffix:``,offsetY:0,formatter:null}},title:k,legend:{...A,roundingValue:0,roundingPercentage:0,showValue:!0,showPercentage:!0,position:`bottom`}}},userOptions:P({pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),table:{...R,useDialog:!1,columnNames:{period:`Period`,total:`Total`},th:I,td:{...L,roundingValue:0,roundingPercentage:0}}},Se={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,layout:{grid:{show:!0,stroke:y,strokeWidth:.5},outerPolygon:{stroke:y,strokeWidth:1},dataPolygon:{color:u,opacity:60,gradient:{show:!0,intensity:1},stroke:u,strokeWidth:0},smileys:{strokeWidth:1,colors:{1:`#e20001`,2:`#ff9f03`,3:`#ffd004`,4:`#9ac900`,5:`#059f00`}},dataLabel:{color:_,roundingValue:0,roundingPercentage:0,bold:!0,prefix:``,suffix:``,formatter:null}},title:k,legend:{...A,roundingValue:0,roundingPercentage:0,position:`bottom`}}},userOptions:P({pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),table:{...R,useDialog:!1,columnNames:{series:`Series`,value:`Value`,percentage:`Percentage`},th:I,td:{...L,roundingValue:0,roundingPercentage:0}}},Ce={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,nodes:{stroke:c,strokeHovered:r},links:{stroke:o,strokeWidth:2,useChildColor:!1},title:k,tooltip:j,zoom:{show:!0,speed:1}}},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!0,fullscreen:!0,annotator:!0,svg:!0,zoom:!0}),table:{...R,useDialog:!1,th:I,td:L,translations:{nodeName:`Node name`,details:`Details`,ancestor:`Parent node`}}},we={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,theme:``,customPalette:[],useCssAnimation:!1,useBlurOnHover:!0,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},serieToggleAnimation:{show:!0,durationMs:500},startAnimation:{show:!1,durationMs:1e3,staggerMs:50},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!0,fullscreen:!0,annotator:!0,svg:!0}),style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,useGradient:!0,gradientIntensity:40,padding:F([0,0,0,0]),width:512,height:512,layout:{labels:{dataLabels:{...O,show:!0,prefix:``,suffix:``,hideUnderValue:3,fontSize:S._14,offsetX:4,offsetY:12,useSerieColor:!1,color:_,showValue:!0,showPercentage:!0,boldValue:!1,boldPercentage:!0,roundingValue:0,roundingPercentage:0,showDonutName:!0,boldDonutName:!0,curvedDonutName:!0,donutNameAbbreviation:!1,donutNameMaxAbbreviationSize:3,donutNameOffsetY:0,formatter:null}},donut:{strokeWidth:200,borderWidth:2,spacingRatio:.5,useShadow:!1,shadowColor:r,emptyFill:y,selectedColor:`#0000001A`,borderColorAuto:!0,borderColor:b}},legend:{...A,...O,roundingValue:0,roundingPercentage:0,showValue:!0,showPercentage:!0,position:`bottom`},title:k,tooltip:{...j,...O,showAllItemsAtIndex:!0,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0}}},table:{...R,useDialog:!1,columnNames:{series:`Series`,value:`Value`,percentage:`Percentage`},th:I,td:{...L,roundingValue:0,roundingPercentage:0}}},Te={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},transitions:M,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],useCssAnimation:!1,useBlurOnHover:!0,style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,layout:{arcs:{strokeWidth:24,borderWidth:12,offsetX:0,offsetY:0,hoverEffect:{show:!0,multiplicator:1.1},gradient:{show:!0,intensity:30,color:c}},labels:{dataLabels:{...O,prefix:``,suffix:``,formatter:null}}},legend:{...A,roundingValue:0,roundingPercentage:0,showValue:!0,showPercentage:!0,position:`bottom`},title:k,tooltip:{...j,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0}}},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),table:{...R,useDialog:!1,columnNames:{series:`Series`,value:`Value`,percentage:`Percentage`},th:I,td:{...L,roundingValue:0,roundingPercentage:0}}},Ee={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,type:0,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},transitions:M,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},responsiveProportionalSizing:!0,theme:``,customPalette:[],useCssAnimation:!0,userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!0,fullscreen:!0,annotator:!0,svg:!0}),style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,height:600,width:600,padding:F([12,12,12,12]),grid:{show:!0,stroke:o,strokeWidth:1,scaleSteps:10,scaleMin:null,scaleMax:null,horizontalGrid:{show:!0,stroke:o,strokeWidth:.5,strokeDasharray:4},verticalGrid:{show:!0,stroke:o,strokeWidth:.5,strokeDasharray:4}},plots:{opacity:.9,radius:4,stroke:c,strokeWidth:1,shape:w.CIRCLE,gradient:{show:!0,intensity:40}},violin:{widthRatio:1,strokeWidth:1,opacity:.2,strokeOpacity:.35,useSerieColor:!0,stroke:`#5A5A5A`,fill:`#5A5A5A`,boxPlot:{show:!0,widthRatio:1,useSerieColor:!0,color:`#5A5A5A`,medianCircleRadiusRatio:1,medianCircleFill:c},tooltipLabels:{upperAdjacent:`Upper adjacent`,q3:`Q3`,median:`Median`,q1:`Q1`,lowerAdjacent:`Lower adjacent`,iqr:`IQR`,count:`Count`}},labels:{prefix:``,suffix:``,formatter:null,bestPlotLabel:{show:!0,showValue:!0,fontSize:S._14,color:_,rounding:0,offsetY:0},axis:{xLabel:``,xLabelOffsetY:0,yLabel:``,yLabelOffsetX:0,fontSize:S._14,color:_},xAxisLabels:{show:!0,color:_,fontSize:S._14,offsetY:0,rotation:0,autoRotate:{enable:!0,angle:-30}},yAxisLabels:{show:!0,color:_,fontSize:S._14,rounding:0,offsetX:0}},title:k,tooltip:{...j,roundingValue:0}}},table:{...R,useDialog:!1,columnNames:{series:`Series`,value:`Value`},th:I,td:{...L,roundingValue:0}}},De={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,useAnimation:!1,animationSpeed:2,userOptions:P({pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,width:600,rowHeight:48,padding:F([12,24,12,12]),plots:{startColor:d,endColor:u,evaluationColors:{enable:!1,positive:`#2ca02c`,negative:`#d62728`,neutral:`#c7c7c7`},radius:6,stroke:c,strokeWidth:1,link:{strokeWidth:2,type:w.CURVED},gradient:{show:!0,intensity:40}},grid:{strokeWidth:1,scaleSteps:10,scaleMin:null,scaleMax:null,horizontalGrid:{show:!0,stroke:o,strokeWidth:.5,strokeDasharray:0},verticalGrid:{show:!0,stroke:o,strokeWidth:.5,strokeDasharray:0}},comparisonLines:{show:!0,strokeWidth:1,strokeDasharray:4,showRect:!0,rectColor:r,rectOpacity:5,showLabel:!0,labelColor:r,labelFontSize:S._12},highlighter:{color:r,opacity:5},labels:{prefix:``,suffix:``,formatter:null,axis:{yLabel:``,yLabelOffsetX:0,xLabel:``,xLabelOffsetY:0,fontSize:S._14,color:_},yAxisLabels:{show:!0,fontSize:S._14,color:_,offsetX:0,bold:!0,showProgression:!0,rounding:1,formatter:null},xAxisLabels:{show:!0,fontSize:S._14,color:_,offsetY:0,bold:!1,rounding:0,rotation:0,autoRotate:{enable:!0,angle:-30}},startLabels:{show:!0,fontSize:S._10,color:_,offsetY:0,rounding:0,useStartColor:!0,useEvaluationColor:!0},endLabels:{show:!0,fontSize:S._10,color:_,offsetY:0,rounding:0,useEndColor:!0,useEvaluationColor:!0}},legend:{...A,labelStart:`start`,labelEnd:`end`,labelPositive:`positive`,labelNegative:`negative`,labelNeutral:`neutral`,position:`bottom`},title:k}},table:{...R,useDialog:!1,columnNames:{series:`Series`,start:`Start value`,end:`End value`,progression:`Progression`},th:I,td:{...L,roundingValue:0,roundingPercentage:0}}},Oe={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],useCssAnimation:!1,style:{fontFamily:`inherit`,shape:w.BAR,chart:{animation:{use:!0,speed:1,acceleration:1},backgroundColor:g,color:_,bar:{color:u,stroke:u,strokeWidth:.7,shadeColor:r},box:{stroke:o,strokeWidth:.7,strokeDasharray:2,dimensions:{width:128,height:256,top:27,bottom:9,left:24,right:24,perspective:18}},title:k,legend:{showDefault:!0,fontSize:S._10,color:_,bold:!1,roundingValue:0,roundingPercentage:0,prefix:``,suffix:``,hideUnderPercentage:3},dataLabel:{show:!0,bold:!0,color:u,fontSize:S._12,rounding:1,formatter:null}}},userOptions:P({pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),table:{...R,useDialog:!1,columnNames:{series:`Series`,value:`Value`,percentage:`Percentage`},th:I,td:{...L,roundingValue:0,roundingPercentage:0}}},ke={debug:!1,devHints:D,theme:``,customPalette:[],responsiveBreakpoint:500,showAverage:!0,showMedian:!0,showTotal:!0,roundingAverage:0,roundingMedian:0,roundingValues:0,roundingTotal:0,prefix:``,suffix:``,formatter:null,showSparklines:!0,fontFamily:`inherit`,colNames:[],sortedDataColumnIndices:[],sortedSeriesName:!1,sortedSum:!1,sortedAverage:!1,sortedMedian:!1,resetSortOnClickOutside:!1,sparkline:{useGradient:!0,showArea:!0,strokeWidth:2,type:w.LINE,smooth:!0,cutNullValues:!1,dimensions:{width:150,heightRatio:1},animation:{show:!0,animationFrames:360}},translations:{serie:`Serie`,total:`Total`,average:`Average`,median:`Median`,chart:`Evolution`},title:{text:``,color:_,fontSize:S._20,bold:!0,textAlign:`center`,backgroundColor:g,subtitle:{color:v,text:``,fontSize:S._16,bold:!1}},thead:{backgroundColor:g,color:_,fontSize:S._14,outline:`none`,textAlign:T.LEFT,bold:!1},tbody:{showColorMarker:!0,backgroundColor:g,color:_,fontSize:S._14,outline:`none`,textAlign:T.LEFT,bold:!1,selectedColor:{useSerieColor:!0,fallback:y}},userOptions:P({pdf:!0,csv:!0,img:!0,fullscreen:!0})},Ae={debug:!1,devHints:D,theme:``,style:{fontFamily:`inherit`,backgroundColor:g,color:_,shapeSize:S._14,heatmapColors:{useIndividualScale:!1,min:c,max:u}},table:{responsiveBreakpoint:400,borderWidth:1,showSum:!1,showAverage:!1,showMedian:!1,head:{backgroundColor:g,color:_,values:[]}},userOptions:P({pdf:!0,csv:!0,img:!0,fullscreen:!0})},je={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],useCssAnimation:!1,animationDelayMs:20,quality:`fast`,strictPixelPadding:!0,userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0,zoom:!0}),nodeCategories:{},nodeCategoryColors:{},style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,height:512,width:512,zoom:{show:!0},controls:{position:`bottom`,show:!0,backgroundColor:y,buttonColor:y,color:_,fontSize:14,border:`1px solid ${b}`,padding:`0.5rem`,borderRadius:`0.25rem`},words:{maxFontSize:100,minFontSize:S._10,bold:!1,proximity:0,packingWeight:1,color:_,usePalette:!0,hoverOpacity:.5,selectedStroke:`transparent`},title:k,tooltip:{...j,roundingValue:0}}},table:{...R,useDialog:!1,columnNames:{series:`Word`,value:`Value`},th:I,td:{...L,roundingValue:0,prefix:``,suffix:``}}},Me={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,theme:``,customPalette:[],a11y:x,downsample:{threshold:1e4},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!0,fullscreen:!0,stack:!0,annotator:!0}),events:{datapointEnter:null,datapointLeave:null,datapointClick:null},style:{fontFamily:`Arial`,chart:{backgroundColor:g,color:_,aspectRatio:`12 / 9`,stacked:!1,stackGap:20,scale:{ticks:10,min:null,max:null},zoom:{...z,minimap:V,preview:{enable:!1,fill:`#CCCCCC50`,stroke:`#6A6A6A`,strokeWidth:2,strokeDasharray:0},useDefaultFormat:!0,timeFormat:`yyyy-MM-dd HH:mm:ss`,customFormat:null},selector:{show:!0,color:r,dashed:!0,showHorizontalSelector:!1},tooltip:{...j,showTimeLabel:!0,useDefaultTimeFormat:!0,timeFormat:`yyyy-MM-dd HH:mm:ss`},legend:{...A,position:`bottom`},title:k,grid:{y:{showAxis:!0,axisColor:r,axisThickness:2,axisName:``,axisLabels:{show:!0,fontSizeRatio:1,color:_,offsetX:0,rounding:1,prefix:``,suffix:``,bold:!1},verticalLines:{show:!0,color:o,hideUnderXLength:20,position:`middle`}},x:{showAxis:!0,axisColor:r,axisThickness:2,axisName:``,horizontalLines:{show:!0,color:o,alternate:!0,opacity:20},timeLabels:{show:!0,showMarker:!0,fontSizeRatio:.8,values:[],datetimeFormatter:N,rotation:0,offsetY:30,color:_,modulo:12,bold:!1}},zeroLine:{show:!0,color:r,dashed:!0}},line:{cutNullValues:!0,plots:{show:!0,radiusRatio:1}},bar:{gradient:{show:!0}},area:{opacity:60},dataLabels:{show:!0,fontSizeRatio:1,useSerieColor:!0,color:_,offsetY:-12,formatter:null,bold:!0},paddingProportions:{top:.1,right:.05,bottom:.1,left:.1}}},table:{...R,useDialog:!1,rounding:1,columnNames:{period:`Period`,total:`Total`},th:I,td:L}},Ne={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],userOptions:P({pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,tooltip:!0,svg:!0}),nodeCategories:{},nodeCategoryColors:{},style:{fontFamily:`inherit`,chart:{backgroundColor:g,width:1e3,height:600,color:_,padding:F([12,12,12,12]),title:k,tooltip:{...j,showPercentage:!0,roundingPercentage:0,translations:{from:`From:`,to:`To:`,percentOfTotal:`Percent of total:`}},legend:{...A,position:`bottom`},nodes:{gap:10,width:40,labels:{show:!0,showValue:!0,fontSize:S._14,abbreviation:{use:!0,length:3},prefix:``,suffix:``,rounding:0,formatter:null},stroke:c,strokeWidth:1,borderRadius:0},links:{opacity:.8,stroke:c,strokeWidth:1,smooth:!0}}},table:{...R,useDialog:!1,columnNames:{source:`Source`,target:`Target`,value:`Value`},th:I,td:L}},Pe={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},transitions:M,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},responsiveProportionalSizing:!0,theme:``,useCssAnimation:!1,customPalette:[],userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!0,fullscreen:!0,annotator:!0,svg:!0}),style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,height:600,width:1e3,padding:F([0,0,0,0]),comments:{show:!0,showInTooltip:!0,width:200,offsetX:0,offsetY:0},lines:{smooth:!0,strokeWidth:2,opacity:.8},plots:{show:!0,radius:6,opacity:.8},yAxis:{scaleTicks:10,stroke:r,strokeWidth:1,labels:{showAxisNames:!0,axisNames:[],axisNamesRotation:0,axisNamesAutoRotate:{enable:!0,angle:-30},axisNamesColor:_,axisNamesFontSize:S._16,axisNamesBold:!0,roundings:[],prefixes:[],suffixes:[],formatters:[],ticks:{show:!0,fontSize:S._14,color:_,bold:!1,offsetX:0,offsetY:0},datapoints:{show:!0,fontSize:S._14,useSerieColor:!0,color:_,offsetX:0,offsetY:0,bold:!0}}},title:k,legend:{...A,position:`bottom`},tooltip:j}},table:{...R,useDialog:!1,columnNames:{series:`Series`,item:`Item`},th:I,td:L}},Fe={devHints:D,type:`stopwatch`,responsive:!1,responsiveProportionalSizing:!0,useCursorPointer:!1,style:{fontFamily:`inherit`,backgroundColor:g,height:300,width:300,title:k},stopwatch:{showHours:!1,showHundredth:!0,cycleSeconds:5,track:{radiusRatio:1,stroke:y,fill:c,strokeWidth:2},tracker:{radiusRatio:1,stroke:c,strokeWidth:1,fill:r,gradient:{show:!0,color:c},aura:{show:!0,radiusRatio:1,fill:r,stroke:c,strokeWidth:0}},cycleTrack:{show:!0,stroke:r,strokeWidth:3},label:{fontSize:S._24,color:_,bold:!1},legend:{backgroundColor:g,buttons:{start:!0,pause:!0,reset:!0,restart:!0,lap:!0,iconColor:r},buttonTitles:{start:`Start`,pause:`Pause`,resume:`Resume`,reset:`Reset`,restart:`Restart`,lap:`Lap`}}}},Ie={bubbleEffect:!0,bubbleEffectColor:c,bubbleEffectOpacity:.1,centerCircleColor:c,centerCircleDasharray:0,centerCircleOpacity:0,centerCircleRadius:50,centerCircleStroke:o,centerCircleStrokeWidth:.5,coordinatesColor:o,coordinatesFontSize:S._10,coordinatesOffset:0,crosshairDasharray:0,crosshairStroke:o,crosshairStrokeWidth:.5,intersectCirclesFill:o,intersectCirclesRadius:2,isLoading:!1,parentId:``,showCenterCircle:!0,showCoordinates:!0,showCrosshair:!0,showIntersectCircles:!0,useWaveOnClick:!0},Le={open:!1,maxHeight:2e3,useCursorPointer:!1,head:{useArrowSlot:!1,backgroundColor:g,color:_,iconColor:u,iconSize:20,icon:`arrowRight`,padding:`12px 6px`},body:{backgroundColor:g,color:_}},Re={devHints:D,debug:!1,animationFrames:60,animationValueStart:0,backgroundColor:g,fontFamily:`inherit`,layoutClass:``,layoutCss:``,prefix:``,suffix:``,title:``,titleBold:!0,titleColor:_,titleClass:``,titleCss:``,titleFontSize:S._16,useAnimation:!0,valueBold:!0,valueColor:u,valueClass:``,valueCss:``,valueFontSize:S._32,valueRounding:0,formatter:null,analogDigits:{show:!1,height:40,color:_,skeletonColor:y}},ze={devHints:D,type:`onion`,onion:{gutterColor:o,gutterOpacity:.3,gutterBlur:0,trackHueRotate:20,trackBlur:1,trackColor:p},line:{gutterColor:o,gutterOpacity:.3,gutterBlur:0,trackHueRotate:20,trackBlur:1,trackColor:p},bar:{gutterColor:o,gutterOpacity:.3,gutterBlur:0,trackHueRotate:20,trackBlur:1,trackColor:p}},Be={debug:!1,devHints:D,readonly:!1,useCursorPointer:!1,style:{fontFamily:`inherit`,itemSize:32,backgroundColor:g,colors:{activeReadonly:[`#e20001`,`#ff9f03`,`#ffd004`,`#61c900`,`#059f00`],active:[`#e20001`,`#ff9f03`,`#ffd004`,`#61c900`,`#059f00`],inactive:[y,y,y,y,y]},icons:{filled:!1,useGradient:!0},title:{...k,textAlign:T.CENTER,offsetY:6,subtitle:{...k.subtitle,offsetY:12}},rating:{show:!0,fontSize:S._24,bold:!0,roundingValue:1,position:T.BOTTOM,offsetX:0,offsetY:0,formatter:null},tooltip:{show:!0,fontSize:S._14,offsetY:0,color:_,bold:!0,backgroundColor:g,borderColor:b,borderRadius:4,boxShadow:`0 6px 12px -6px rgba(0,0,0,0.2)`,roundingValue:0,formatter:null}}},Ve={debug:!1,devHints:D,type:w.STAR,readonly:!1,from:1,to:5,useCursorPointer:!1,style:{fontFamily:`inherit`,animated:!0,itemSize:32,backgroundColor:g,star:{activeColor:m,borderColor:m,borderWidth:3,apexes:5,inactiveColor:y,useGradient:!0},image:{src:``,inactiveOpacity:.3,alt:`rating image`},title:{textAlign:T.CENTER,fontSize:S._20,color:_,bold:!0,text:``,offsetY:6,subtitle:{fontSize:S._14,color:o,bold:!1,text:``,offsetY:12}},rating:{show:!0,fontSize:S._24,bold:!0,roundingValue:1,position:T.BOTTOM,offsetY:0,offsetX:0,formatter:null},tooltip:{show:!0,fontSize:S._14,offsetY:0,color:_,bold:!0,backgroundColor:g,borderColor:b,borderRadius:4,boxShadow:`0 6px 12px -6px rgba(0,0,0,0.2)`,roundingValue:0,formatter:null}}},He={devHints:D,alwaysVisible:!1,useCursorPointer:!1,style:{backgroundColor:g,color:_,fontFamily:`inherit`,showPrint:!1,showSave:!0,showImage:!0,showTooltips:!0,paletteColor:`#2D353C`,palette:h,buttons:{borderRadius:6,controls:{backgroundColor:g,color:_,border:`1px solid #262626`,selected:{backgroundColor:r,color:l,border:`1px solid ${b}`}},shapes:{backgroundColor:g,color:_,border:`1px solid #262626`,selected:{backgroundColor:_,color:g,border:`1px solid ${b}`}}},tooltips:{backgroundColor:l,color:_,border:`1px solid ${b}`,borderRadius:6,boxShadow:`0 6px 12px -6px rgba(0,0,0,0.2)`}},translations:{colorAlpha:`Color alpha`,dashedLines:`Dashed lines`,filled:`Filled`,fontSize:`Font size`,thickness:`Thickness`,title:`Annotations`,tooltipGroup:`Select & group`,tooltipDelete:`Delete`,tooltipMove:`Move`,tooltipResize:`Resize`,tooltipBringToFront:`Bring to front`,tooltipBringToBack:`Bring to back`,tooltipDuplicate:`Duplicate`,tooltipUndo:`Undo last shape`,tooltipRedo:`Redo last shape`,tooltipPdf:`Save pdf`,tooltipSave:`Save annotations`,tooltipShapeCircle:`Draw circle`,tooltipShapeRect:`Draw rect`,tooltipShapeArrow:`Draw arrow`,tooltipShapeFreehand:`Freehand line`,tooltipShapeText:`Text mode`,tooltipShapeTextLeft:`Align left`,tooltipShapeTextCenter:`Align center`,tooltipShapeTextRight:`Align right`,tooltipShapeTextBullet:`Bullet points`,tooltipShapeTextBold:`Bold`,tooltipShapeTextItalic:`Italic`,tooltipShapeTextUnderline:`Underlined`,tooltipShapeColor:`Color`,tooltipImage:`Download PNG`}},Ue={devHints:D,locked:!1,allowPrint:!1,style:{board:{backgroundColor:g,color:_,aspectRatio:`1/1.4141`,border:`none`},item:{backgroundColor:g,borderColor:b},resizeHandles:{backgroundColor:_}},userOptions:{annotatorPalette:h,annotator:{showGroupActions:!0,useOutline:!0,outlineThickness:1,outlineColor:null},show:!0,useCursorPointer:!1,showOnChartHover:!1,keepStateOnChartLeave:!0,position:`right`,buttons:{pdf:!0,img:!0,annotator:!0,altCopy:!1},callbacks:{pdf:null,img:null,annotator:null,altCopy:null},buttonTitles:{pdf:`Download PDF`,img:`Download PNG`,annotator:`Toggle annotator`,altCopy:`Copy alt text`},print:{scale:2,filename:``}}},We={devHints:D,type:w.LINE,style:{backgroundColor:g,color:_,maxHeight:500,animated:!0,chord:{color:y},ridgeline:{color:y},circlePack:{color:y},historyPlot:{color:y},bullet:{color:y},flow:{color:y},parallelCoordinatePlot:{color:y},treemap:{color:y},dumbbell:{color:y},stripPlot:{color:y},galaxy:{color:y},bar3d:{color:y},sparkHistogram:{color:y},sparkStackbar:{color:y},sparkbar:{color:y},thermometer:{color:y},relationCircle:{color:y},molecule:{color:y},tiremarks:{color:y},chestnut:{color:y},sparkline:{color:y,strokeWidth:.7},donutEvolution:{axis:{show:!0,color:y,strokeWidth:.5},donuts:{strokeWidth:.5,color:y}},line:{axis:{show:!0,color:y,strokeWidth:.5},path:{color:y,strokeWidth:1,showPlots:!0}},bar:{axis:{show:!0,color:y,strokeWidth:.5},borderRadius:.5,color:y,barWidth:9},donut:{color:y,strokeWidth:64},onion:{color:y},gauge:{color:y},quadrant:{grid:{color:y,strokeWidth:.5},plots:{radius:1.5,color:y}},radar:{grid:{color:y,strokeWidth:.5},shapes:{color:y}},waffle:{color:y},table:{th:{color:y},td:{color:y,strokeWidth:.5}},rating:{useSmiley:!1,color:y,filled:!0,strokeWidth:1,maxWidth:200},verticalBar:{axis:{show:!0,color:y,strokeWidth:.5},borderRadius:.5,color:y},heatmap:{cellsX:26,cellsY:7,color:y},candlesticks:{axis:{show:!0,color:y,strokeWidth:.5},candle:{color:y,strokeWidth:1}},pyramid:{color:y},wheel:{color:y},rings:{color:y}}},Ge={devHints:D,fontFamily:`inherit`,maxHeight:500,rowsPerPage:25,useCursorPointer:!1,style:{title:{...k,backgroundColor:g},th:{backgroundColor:y,color:_,outline:`1px solid ${c}`,selected:{backgroundColor:u,color:c},buttons:{filter:{inactive:{backgroundColor:y,color:_},active:{backgroundColor:u,color:c}},cancel:{inactive:{backgroundColor:y,color:r},active:{backgroundColor:`#F17171`,color:c}}}},rows:{outline:`1px solid ${g}`,even:{backgroundColor:`#f3f5f7`,color:_,selectedCell:{backgroundColor:`#1f77b45b`,color:_},selectedNeighbors:{backgroundColor:`#63dd821e`,color:_}},odd:{backgroundColor:g,color:_,selectedCell:{backgroundColor:`#1f77b45b`,color:_},selectedNeighbors:{backgroundColor:`#63dd821e`,color:_}}},inputs:{backgroundColor:g,color:_,border:`1px solid ${b}`,accentColor:u},dropdowns:{backgroundColor:y,color:_,icons:{selected:{color:f,unicode:`✔`},unselected:{color:d,unicode:`✖`}}},infoBar:{backgroundColor:y,color:_},pagination:{buttons:{backgroundColor:y,color:_,opacityDisabled:.5},navigationIndicator:{backgroundColor:u}},exportMenu:{show:!0,backgroundColor:y,color:_,buttons:{backgroundColor:l,color:_},filename:``},closeButtons:{backgroundColor:`transparent`,color:_,borderRadius:`50%`},chart:{modal:{backgroundColor:y,color:_,buttons:{selected:{backgroundColor:u,color:c},unselected:{backgroundColor:g,color:_}}},layout:{backgroundColor:g,axis:{stroke:`#ccd1d4`,strokeWidth:2},bar:{fill:u,stroke:c,strokeWidth:0},line:{smooth:!0,useArea:!1,stroke:u,strokeWidth:4,plot:{fill:u,stroke:c,strokeWidth:1,radius:{selected:6,unselected:4}},selector:{stroke:`#ccc`,strokeWidth:1,strokeDasharray:5}},labels:{color:_},progression:{stroke:r,strokeWidth:2,strokeDasharray:4,arrowSize:7},timeLabels:{showOnlyAtModulo:!0,modulo:2},datetimeFormatter:{...N,enable:!0},zoom:{show:!0,autoFit:!0}}}},translations:{average:`Average`,by:`by`,chooseCategoryColumn:`Choose category column`,exportAllButton:`CSV all`,exportAllLabel:`Export all rows of your current filtered dataset`,exportPageButton:`CSV page`,exportPageLabel:`Export rows of the current page`,from:`From`,inputPlaceholder:`Search...`,makeDonut:`Generate`,nb:`Nb`,page:`Page`,paginatorLabel:`Rows per page`,sizeWarning:`Displaying too many rows at a time can lead to slower performance`,sum:`Sum`,to:`To`,total:`Total`,totalRows:`Total rows`,filename:`File name`,xAxisLabels:`X axis labels`},useChart:!0},Ke={devHints:D,height:`100%`,width:null,backgroundColor:g,digits:{color:_,skeletonColor:y,thickness:1}},qe={debug:!1,devHints:D,responsiveBreakpoint:400,userOptions:P({tooltip:!1,pdf:!0,csv:!0,img:!0,table:!1,labels:!1,fullscreen:!0,stack:!1,animation:!0}),animation:{type:`scroll`,use:!0,speedMs:1e3,pauseOnHover:!0},style:{backgroundColor:g,color:_,fontFamily:`inherit`},border:{size:0,color:r},caption:{text:``,padding:F([12,12,12,12]),style:{backgroundColor:g,color:_,fontSize:`${S._16}px`,fontWeight:`bold`,textAlign:`left`}},scrollbar:{showOnlyOnHover:!1,hide:!1},thead:{style:{verticalAlign:`middle`},tr:{height:32,border:{size:0,color:r},style:{backgroundColor:g,color:_,boxShadow:`0px 6px 12px -6px ${r}50`},th:{border:{size:0,color:r},padding:F([0,12,0,0]),style:{borderSpacing:0,border:`none`,textAlign:`right`,fontVariantNumeric:`tabular-nums`}}}},tbody:{backgroundColor:g,tr:{visible:5,height:32,border:{size:0,color:r},style:{backgroundColor:g,color:_},td:{alternateColor:!0,alternateOpacity:.5,border:{size:0,color:r},padding:F([0,12,0,0]),style:{fontVariantNumeric:`tabular-nums`,textAlign:`right`,backgroundColor:y}}}}},Je={devHints:D,a11y:{translations:{label:`Progress`}},skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,type:`battery`,size:64,stroke:o,color:u,useGradient:!0,gradientColor:`#9db5ed`,showPercentage:!0,textColor:r,fontFamily:`inherit`,formatter:null},Ye={devHints:D,debug:!1,loading:!1,responsive:!1,theme:``,userOptions:P({tooltip:!1,pdf:!0,csv:!1,img:!0,table:!1,labels:!1,fullscreen:!0,stack:!1,annotator:!0,svg:!0}),style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,height:96,width:600,padding:F([24,24,24,12]),animation:{show:!0,animationFrames:60},segments:{baseColor:`#9A9A9A`,dataLabels:{show:!0,color:_,fontSize:S._10,formatter:null,bold:!1,prefix:``,suffix:``,rounding:0,offsetY:0},ticks:{show:!0,divisions:10,stroke:`#8A8A8A`}},target:{show:!0,onTop:!0,color:_,rounded:!0,heightRatio:.8,stroke:c,strokeWidth:1,width:6},valueBar:{color:`#3A3A3A`,heightRatio:.33,stroke:c,strokeWidth:1,label:{show:!0,color:_,fontSize:S._14,bold:!0,offsetY:0}},title:{...k,textAlign:T.LEFT,paddingLeft:12},legend:{...A,roundingValue:0,position:`bottom`}}}},Q={debug:!1,devHints:D,theme:``,responsive:!1,responsiveProportionalSizing:!0,useCssAnimation:!0,table:{...R,useDialog:!1,th:I,td:{...L,roundingValue:0,roundingPercentage:0},columnNames:{series:`Step`,value:`Value`,percentage:`Percentage`}},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!1,fullscreen:!0,stack:!1,annotator:!0,svg:!0}),style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,width:600,height:500,title:k,padding:F([12,128,24,24]),barCircleSpacingRatio:.05,circles:{stroke:c,strokeWidth:1,dataLabels:{formatter:null,fontSize:S._16,offsetY:0,adaptColorToBackground:!0,color:_,rounding:1,bold:!0}},circleLinks:{show:!0,color:y,widthRatio:1},area:{show:!0,color:y},bars:{stroke:c,defaultColor:u,strokeWidth:1,gapRatio:.2,borderRadius:3,dataLabels:{name:{fontSize:S._16,color:_,bold:!0,offsetX:0,offsetY:0},value:{formatter:null,fontSize:S._16,rounding:0,bold:!1,color:_,prefix:``,suffix:``,offsetX:0,offsetY:0}}}}}},Xe={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},transitions:M,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},responsiveProportionalSizing:!0,theme:``,customPalette:[],useCssAnimation:!1,userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!1,fullscreen:!0,stack:!1,annotator:!0,svg:!0}),table:{...R,useDialog:!1,th:I,td:{...L,roundingValue:0},columnNames:{series:`Series`,datapoint:`Datapoint`,x:`x`,y:`y`}},style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,height:500,width:600,padding:F([12,12,12,12]),grid:{xAxis:{show:!0,stroke:y,strokeWidth:1},horizontalLines:{show:!0,stroke:y,strokeWidth:.6},yAxis:{show:!0,stroke:y,strokeWidth:1},verticalLines:{show:!0,stroke:y,strokeWidth:.6}},axes:{x:{scaleMin:null,scaleMax:null,ticks:10,labels:{show:!0,fontSize:S._16,color:_,bold:!1,rounding:1,offsetY:0,rotation:0,autoRotate:{enable:!0,angle:-30},formatter:null,prefix:``,suffix:``},name:{text:``,fontSize:S._16,offsetX:0,offsetY:0,bold:!1,color:_}},y:{scaleMin:null,scaleMax:null,ticks:10,labels:{show:!0,fontSize:S._16,color:_,bold:!1,rounding:1,offsetX:0,formatter:null,prefix:``,suffix:``},name:{text:``,fontSize:S._16,offsetX:0,offsetY:0,bold:!1,color:_}}},plots:{radius:16,stroke:c,strokeWidth:1,unselectedOpacity:.1,gradient:{show:!0,intensity:40},indexLabels:{show:!0,startAtZero:!1,adaptColorToBackground:!0,color:_,fontSize:S._16,bold:!1,offsetY:0,offsetX:0},labels:{show:!0,fontSize:S._10,color:_,bold:!1,offsetY:0,offsetX:0}},paths:{show:!0,strokeWidth:1.6,useSerieColor:!0,stroke:r},legend:{...A,position:`bottom`},title:k,tooltip:j}}},Ze={devHints:D,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},transitions:M,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!1,fullscreen:!0,stack:!1,annotator:!0,svg:!0,zoom:!0}),table:{...R,useDialog:!1,th:I,td:L,columnNames:{datapoint:`Datapoint`,parent:`Parent`,depth:`Depth`,value:`Value`}},style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,title:k,width:512,height:316,circles:{stroke:c,strokeWidth:1,selectedShadowColor:r,gradient:{show:!0,intensity:40},labels:{parents:{show:!1},children:{show:!0},name:{fontSizeRatio:1,show:!0,bold:!1,offsetY:0,color:`auto`},value:{fontSizeRatio:1,show:!0,color:`auto`,rounding:0,prefix:``,suffix:``,formatter:null,bold:!1,offsetY:0}}},parentTooltips:{show:!0,fontSizeRatio:1,borderRadiusRatio:1,color:r,filter:`drop-shadow(0 2px 4px #2D353C30)`,backgroundColor:c,strokeWidth:1,useSerieColor:!0,stroke:r,link:{strokeWidth:1,strokeDasharray:0,opacity:.6,useSerieColor:!1,stroke:r}},tooltip:j,zoom:{show:!0,speed:1}}}},Qe={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!1,fullscreen:!0,stack:!1,annotator:!0,svg:!0}),customPalette:[],projection:`globe`,style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,padding:F([12,12,12,12]),dataLabels:{prefix:``,suffix:``,rounding:0,formatter:null},dimensions:{height:null,width:null},globe:{center:{x:0,y:0},waterColor:u},territory:{stroke:`#666666`,emptyColor:`#E0E0E0`,strokeWidth:.5,strokeWidthSelected:2,colors:{min:`#E0E0E0`,max:null},showTaiwanAsPartOfChina:!1},tooltip:{...j,showMinimap:!0},title:k,legend:{...A,position:`bottom`}}},table:{...R,useDialog:!1,th:I,td:{...L,roundingValue:0},columnNames:{series:`Country`,value:`Value`,category:`Category`}}},$e={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],useCssAnimation:!1,userOptions:P({tooltip:!1,pdf:!0,csv:!0,img:!0,table:!0,labels:!1,fullscreen:!0,stack:!1,annotator:!0,svg:!0}),table:{...R,useDialog:!1,th:I,td:{...L,roundingValue:0},columnNames:{series:`Series`}},style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,padding:F([12,0,0,12]),title:k,legend:A,dialog:{show:!0,backgroundColor:g,color:_,header:{backgroundColor:y,color:_},xyChart:{...H,responsive:!0,line:{...H.line,showTransition:!1,labels:{...H.line.labels,show:!0}},chart:{...H.chart,tooltip:{...H.chart.tooltip,showPercentage:!1},userOptions:{...H.chart.userOptions,buttons:{...H.chart.userOptions.buttons,pdf:!1,fullscreen:!1}},zoom:{...H.chart.zoom,autoFit:!0,minimap:{...H.chart.zoom.minimap,show:!0}}}}},areas:{height:60,rowHeight:30,strokeWidth:1,stroke:{useSerieColor:!1,color:c},smooth:!0,opacity:.9,useCommonColor:!1,useGradient:!0,maxPoint:{show:!0,adaptStrokeToBackground:!0,stroke:r,strokeWidth:1,strokeDasharray:4}},selector:{show:!0,stroke:o,strokeWidth:1,strokeDasharray:2,labels:{fontSize:12,formatter:null,rounding:0,color:_,showLast:!1},dot:{radius:4,useDatapointColor:!0,fill:o,stroke:c,strokeWidth:.5}},zeroLine:{show:!0,strokeWidth:1,strokeDasharray:0,useSerieColor:!1,stroke:o},xAxis:{labels:{prefix:``,suffix:``,rotation:0,autoRotate:{enable:!0,angle:-30},values:[],datetimeFormatter:N,color:_,fontSize:14,bold:!1,showOnlyAtModulo:!1,modulo:2,showOnlyFirstAndLast:!1,offsetY:0}},yAxis:{labels:{fontSize:16,bold:!1,color:_,offsetX:0,offsetY:0,centered:!1}}}}},et={devHints:D,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],enableRotation:!0,initialRotation:0,useCssAnimation:!1,userOptions:P({tooltip:!1,pdf:!0,csv:!0,img:!0,table:!0,labels:!1,fullscreen:!0,stack:!1,annotator:!0,svg:!0}),table:{...R,useDialog:!1,th:I,td:L},style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,legend:{...A,position:`bottom`},title:k,arcs:{innerRadiusRatio:1,outerRadiusRatio:1,padAngle:5,stroke:c,strokeWidth:1,labels:{show:!0,fontSize:14,bold:!1,curved:!1,adaptColorToBackground:!0,color:_,offset:0,showPercentage:!0,roundingPercentage:0}},ribbons:{stroke:c,strokeWidth:1,underlayerOpacity:1,labels:{show:!0,formatter:null,prefix:``,suffix:``,rounding:0,fontSize:14,bold:!1,useSerieColor:!1,color:_,offset:0,minSeparationDeg:3,connector:{stroke:r,strokeWidth:1},marker:{show:!0,radius:3,stroke:c,strokeWidth:1}}}}}},tt={devHints:D,skeletonConfig:null,skeletonDataset:null,loading:!1,debug:!1,responsive:!1,theme:``,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},userOptions:P({tooltip:!1,pdf:!0,csv:!1,img:!0,fullscreen:!0,annotator:!0,svg:!0,zoom:!0}),style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,width:null,height:null,backgroundPattern:{show:!1,spacingRatio:3,dotRadiusRatio:5,dotColor:y,opacity:1},layout:{rankDirection:`TB`,rankSeparation:60,nodeSeparation:50,edgeSeparation:30,nodeWidth:100,nodeHeight:40,curvedEdges:!0,padding:48,arrowShape:`vee`,arrowSize:8,align:void 0},nodes:{stroke:o,strokeWidth:1,borderRadius:3,backgroundColor:g,labels:{color:_,fontSize:S._12,bold:!1},tooltip:{showOnClick:!1,backgroundColor:y,color:_,maxWidth:`300px`},selected:{stroke:null,strokeWidth:null,backgroundColor:null,labelColor:null,downstreamEdges:{stroke:null,animated:null},upstreamEdges:{stroke:null,animated:null}}},edges:{stroke:o,strokeWidth:1,animations:{dasharray:`2 6`,animationDurationMs:1e3}},midpoints:{show:!1,radius:4,stroke:o,fill:c,strokeWidth:1,tooltip:{maxWidth:`300px`,backgroundColor:y,color:_},selectedEdge:{stroke:null,animated:null}},controls:{position:`bottom`,show:!0,backgroundColor:y,buttonColor:y,color:_,fontSize:14,border:`1px solid ${b}`,padding:`0.5rem`,borderRadius:`0.25rem`},zoom:{active:!0},title:k}}},nt={devHints:D,skeletonDataset:null,skeletonConfig:null,loading:!1,debug:!1,responsive:!1,projection:`equirectangular`,theme:``,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},userOptions:P({tooltip:!0,pdf:!0,csv:!1,img:!0,svg:!0,table:!1,labels:!1,fullscreen:!0,annotator:!0,zoom:!0}),map:{geoJson:null,center:[0,0],fitPadding:0},events:{datapointEnter:null,datapointLeave:null,datapointClick:null,territoryEnter:null,territoryLeave:null,territoryClick:null},style:{fontFamily:`inherit`,chart:{dimensions:{width:null,height:null},backgroundColor:g,color:_,territory:{fill:`#F2F3F5`,stroke:`#D0D4D8`,strokeWidth:1,hover:{enabledWhenEmpty:!1,fill:y,stroke:o,strokeWidth:1.5}},points:{radius:1,stroke:c,strokeWidth:1,fill:s,hoverRadiusRatio:1.2,labels:{show:!0,fontSizeRatio:1,color:_,offsetY:0}},controls:{position:`bottom`,show:!0,backgroundColor:y,buttonColor:y,color:_,fontSize:14,border:`1px solid ${b}`,padding:`0.5rem`,borderRadius:`0.25rem`},title:k,tooltip:j,zoom:{active:!0}}}},rt={devHints:D,skeletonConfig:null,skeletonDataset:null,loading:!1,debug:!1,responsive:!1,theme:``,customPalette:[],useCssAnimation:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},userOptions:P({tooltip:!1,pdf:!0,csv:!0,img:!0,svg:!0,table:!0,labels:!1,fullscreen:!0,sort:!1,stack:!1,animation:!1,annotator:!0,zoom:!1}),table:{...R,useDialog:!1,columnNames:{series:`Series`,period:`Period`,values:`Values`,ranking:`Ranking`},th:I,td:{...L,roundingValue:0}},style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,height:500,width:800,layout:{timeLabels:{show:!0,values:[],datetimeFormatter:N,offsetY:0,rotation:0,autoRotate:{enable:!0,angle:-30},fontSize:S._14,color:_,bold:!1,showOnlyFirstAndLast:!1,showOnlyAtModulo:!1,modulo:2},lines:{smooth:!0,strokeWidth:4,coatingColor:c},plots:{stroke:c,strokeWidth:1,radius:12,labels:{color:`auto`,show:!0,bold:!0,displayedValue:`value`,fontSize:S._12,prefix:``,suffix:``,rounding:0,formatter:null}},nameLabels:{fontSize:S._14,color:_,useSerieColor:!1,bold:!1,offsetX:0,leftLabels:{show:!0},rightLabels:{show:!0}}},padding:F([12,12,12,12]),title:k}}},it={theme:``,a11y:{translations:{keyboardNavigation:`Use the arrow keys to move this label. Hold Shift while pressing an arrow key to move it by a larger step.`}},title:{text:``,color:_,fontSize:14,lineHeight:14,bold:!1,textAlign:`left`,gap:6,marker:{color:null,shape:`circle`,beforeText:!0,size:14,offsetY:0}},content:{text:``,color:_,fontSize:12,lineHeight:12,bold:!1,textAlign:`left`},position:`auto`,link:{show:!0,stroke:_,strokeWidth:1,strokeDasharray:`0`,length:20,targetPlot:{show:!0,radius:2,stroke:g,strokeWidth:1}},box:{show:!0,backgroundColor:g,borderColor:_,borderWidth:1,borderRadius:3,padding:F([8,8,8,8]),maxWidth:200},drag:{enable:!0,handlePosition:`left`,handleWidth:18,showSeparator:!1,iconColor:_,iconOpacity:.6,iconSize:16},overflow:!1,overlap:!1,collisionGap:0},$=e(t);return{vue_ui_graph:{...$,tooltip:{...j,...$.tooltip},userOptions:{...P({pdf:!0,csv:!0,img:!0,svg:!0,table:!0,fullscreen:!0,zoom:!0,tooltip:!0,annotator:!0}),useCursorPointer:$.userOptions.useCursorPointer},table:{...R,useDialog:!1,columnNames:{nodes:`Nodes`,links:`Links`,id:`ID`,label:`Label`,group:`Group`,value:`Value`,connections:`Connections`,source:`Source`,target:`Target`,directed:`Directed`,metadata:`Metadata`},th:{...I},td:{...L}},style:{...$.style,chart:{...$.style.chart,title:{...k,subtitle:{...k.subtitle}}}}},vue_ui_xy:H,vue_ui_donut:U,vue_ui_treemap:W,vue_ui_waffle:G,vue_ui_radar:K,vue_ui_quadrant:q,vue_ui_gauge:J,vue_ui_wheel:Y,vue_ui_tiremarks:X,vue_ui_chestnut:ie,vue_ui_onion:ae,vue_ui_vertical_bar:Z,vue_ui_horizontal_bar:oe,vue_ui_heatmap:se,vue_ui_scatter:ce,vue_ui_candlestick:le,vue_ui_sparkline:ue,vue_ui_sparkbar:de,vue_ui_sparkstackbar:fe,vue_ui_sparkhistogram:pe,vue_ui_sparkgauge:me,vue_ui_spark_trend:he,vue_ui_quick_chart:ge,vue_ui_age_pyramid:_e,vue_ui_relation_circle:ve,vue_ui_thermometer:ye,vue_ui_rings:be,vue_ui_donut_evolution:xe,vue_ui_mood_radar:Se,vue_ui_molecule:Ce,vue_ui_nested_donuts:we,vue_ui_galaxy:Te,vue_ui_strip_plot:Ee,vue_ui_dumbbell:De,vue_ui_3d_bar:Oe,vue_ui_table_sparkline:ke,vue_ui_table_heatmap:Ae,vue_ui_word_cloud:je,vue_ui_xy_canvas:Me,vue_ui_flow:Ne,vue_ui_parallel_coordinate_plot:Pe,vue_ui_timer:Fe,vue_ui_carousel_table:qe,vue_ui_gizmo:Je,vue_ui_stackbar:re,vue_ui_bullet:Ye,vue_ui_funnel:Q,vue_ui_history_plot:Xe,vue_ui_world:Qe,vue_ui_ridgeline:$e,vue_ui_chord:et,vue_ui_stackline:ne,vue_ui_dag:tt,vue_ui_geo:nt,vue_ui_bump:rt,vue_ui_circle_pack:Ze,vue_ui_cursor:Ie,vue_ui_accordion:Le,vue_ui_kpi:Re,vue_ui_mini_loader:ze,vue_ui_smiley:Be,vue_ui_rating:Ve,vue_ui_annotator:He,vue_ui_dashboard:Ue,vue_ui_skeleton:We,vue_ui_table:Ge,vue_ui_digits:Ke,vue_ui_hill:te,vue_ui_label:it}}export{n as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./BaseIcon-CoY0vuL3.js";import{computed as n,createBlock as r,createCommentVNode as i,createElementBlock as a,createElementVNode as o,createSlots as s,createTextVNode as c,defineAsyncComponent as l,guardReactiveProps as u,mergeProps as d,normalizeProps as f,normalizeStyle as p,onMounted as m,openBlock as h,ref as g,renderList as _,renderSlot as v,resolveDynamicComponent as y,toDisplayString as b,useAttrs as x,watch as S,withCtx as C}from"vue";var w=/* @__PURE__ */ e({default:()=>E}),T={style:{width:`36px`}},E=/*@__PURE__*/ Object.assign({inheritAttrs:!1},{__name:`vue-data-ui`,props:{component:{type:String},dataset:{type:[Object,Array,Number,String]},config:{type:Object}},setup(e,{expose:w}){let E=e,D=x(),O={VueUiGraph:l(()=>import(`./vue-ui-graph-Dp5FNReE.js`).then(e=>e.n)),VueUi3dBar:l(()=>import(`./vue-ui-3d-bar-DkehT0SI.js`).then(e=>e.n)),VueUiAgePyramid:l(()=>import(`./vue-ui-age-pyramid-DXEyySR3.js`).then(e=>e.n)),VueUiAnnotator:l(()=>import(`./vue-ui-annotator-DqrdF7bH.js`).then(e=>e.n)),VueUiCandlestick:l(()=>import(`./vue-ui-candlestick-DvBj3KWq.js`).then(e=>e.n)),VueUiChestnut:l(()=>import(`./vue-ui-chestnut-C-_fkI6E.js`).then(e=>e.n)),VueUiDashboard:l(()=>import(`./vue-ui-dashboard-ruhBa6cl.js`).then(e=>e.n)),VueUiDigits:l(()=>import(`./vue-ui-digits-B9ksORds.js`).then(e=>e.n)),VueUiDonut:l(()=>import(`./vue-ui-donut-SbqIxWeM.js`).then(e=>e.n)),VueUiDonutEvolution:l(()=>import(`./vue-ui-donut-evolution-BkuALrYS.js`).then(e=>e.n)),VueUiGalaxy:l(()=>import(`./vue-ui-galaxy-BYbvOTrG.js`).then(e=>e.n)),VueUiGauge:l(()=>import(`./vue-ui-gauge-3_cwmDni.js`).then(e=>e.n)),VueUiHeatmap:l(()=>import(`./vue-ui-heatmap-DM0tteNh.js`).then(e=>e.n)),VueUiKpi:l(()=>import(`./vue-ui-kpi-8BL_aylw.js`).then(e=>e.n)),VueUiMiniLoader:l(()=>import(`./vue-ui-mini-loader-D5-HI4Wi.js`).then(e=>e.n)),VueUiMolecule:l(()=>import(`./vue-ui-molecule-Bg1GqvBM.js`).then(e=>e.n)),VueUiMoodRadar:l(()=>import(`./vue-ui-mood-radar-DIiMInOP.js`).then(e=>e.n)),VueUiNestedDonuts:l(()=>import(`./vue-ui-nested-donuts-BCyX7Z7n.js`).then(e=>e.n)),VueUiOnion:l(()=>import(`./vue-ui-onion-EkxCuuTI.js`).then(e=>e.n)),VueUiQuadrant:l(()=>import(`./vue-ui-quadrant-DJIuGrF9.js`).then(e=>e.n)),VueUiRadar:l(()=>import(`./vue-ui-radar-BMYyMdOg.js`).then(e=>e.n)),VueUiRating:l(()=>import(`./vue-ui-rating--jhcSeor.js`).then(e=>e.n)),VueUiRelationCircle:l(()=>import(`./vue-ui-relation-circle-BLeJaQJH.js`).then(e=>e.n)),VueUiRings:l(()=>import(`./vue-ui-rings-DUEitXix.js`).then(e=>e.n)),VueUiScatter:l(()=>import(`./vue-ui-scatter-D1XzJLsA.js`).then(e=>e.n)),VueUiSkeleton:l(()=>import(`./vue-ui-skeleton-Bpwe9ox7.js`).then(e=>e.n)),VueUiSmiley:l(()=>import(`./vue-ui-smiley-AEw3JB0L.js`).then(e=>e.n)),VueUiSparkbar:l(()=>import(`./vue-ui-sparkbar-CjLLQ0Ja.js`).then(e=>e.n)),VueUiSparkgauge:l(()=>import(`./vue-ui-sparkgauge-9g7UUVWq.js`).then(e=>e.n)),VueUiSparkHistogram:l(()=>import(`./vue-ui-sparkhistogram-B_rUkfjQ.js`).then(e=>e.n)),VueUiSparkline:l(()=>import(`./vue-ui-sparkline-BJj8LCeA.js`).then(e=>e.n)),VueUiSparkStackbar:l(()=>import(`./vue-ui-sparkstackbar-B5rGYUUe.js`).then(e=>e.n)),VueUiTable:l(()=>import(`./vue-ui-table-YFjpQD5z.js`).then(e=>e.n)),VueUiTableSparkline:l(()=>import(`./vue-ui-table-sparkline-D-FHk6aF.js`).then(e=>e.n)),VueUiThermometer:l(()=>import(`./vue-ui-thermometer-1gRm4qfW.js`).then(e=>e.n)),VueUiTiremarks:l(()=>import(`./vue-ui-tiremarks-CUCnVEGx.js`).then(e=>e.n)),VueUiTreemap:l(()=>import(`./vue-ui-treemap-NgjoCq7g.js`).then(e=>e.n)),VueUiVerticalBar:l(()=>import(`./vue-ui-horizontal-bar-BP2tt9hA.js`).then(e=>e.n)),VueUiHorizontalBar:l(()=>import(`./vue-ui-horizontal-bar-BP2tt9hA.js`).then(e=>e.n)),VueUiWaffle:l(()=>import(`./vue-ui-waffle-Cy9bR4eg.js`).then(e=>e.n)),VueUiWheel:l(()=>import(`./vue-ui-wheel-DdwADpJ9.js`).then(e=>e.n)),VueUiXy:l(()=>import(`./vue-ui-xy-BjZ7rM8l.js`).then(e=>e.n)),VueUiTableHeatmap:l(()=>import(`./vue-ui-table-heatmap-Bl_rGqXv.js`).then(e=>e.n)),VueUiAccordion:l(()=>import(`./vue-ui-accordion-CnAwFOgA.js`).then(e=>e.n)),VueUiQuickChart:l(()=>import(`./vue-ui-quick-chart-BBsBw9K3.js`).then(e=>e.n)),VueUiCursor:l(()=>import(`./vue-ui-cursor-C_zzn7Ua.js`).then(e=>e.n)),VueUiSparkTrend:l(()=>import(`./vue-ui-spark-trend-B3TKtyLN.js`).then(e=>e.n)),VueUiStripPlot:l(()=>import(`./vue-ui-strip-plot-bZisAUWl.js`).then(e=>e.n)),VueUiDumbbell:l(()=>import(`./vue-ui-dumbbell-SOI5CdGX.js`).then(e=>e.n)),VueUiWordCloud:l(()=>import(`./vue-ui-word-cloud-I1lrCi6H.js`).then(e=>e.n)),VueUiXyCanvas:l(()=>import(`./vue-ui-xy-canvas-DGniRsGt.js`).then(e=>e.n)),VueUiFlow:l(()=>import(`./vue-ui-flow-DqVrfXJo.js`).then(e=>e.n)),VueUiParallelCoordinatePlot:l(()=>import(`./vue-ui-parallel-coordinate-plot-CE80aawg.js`).then(e=>e.n)),VueUiTimer:l(()=>import(`./vue-ui-timer-Urv_5Bq7.js`).then(e=>e.n)),VueUiCarouselTable:l(()=>import(`./vue-ui-carousel-table-ChEpsK7w.js`).then(e=>e.n)),VueUiGizmo:l(()=>import(`./vue-ui-gizmo-C38WKy7L.js`).then(e=>e.n)),VueUiStackbar:l(()=>import(`./vue-ui-stackbar-k0mVr3qM.js`).then(e=>e.n)),VueUiStackline:l(()=>import(`./vue-ui-stackline-D1sDzsaB.js`).then(e=>e.n)),VueUiBullet:l(()=>import(`./vue-ui-bullet-BNgmEm8g.js`).then(e=>e.n)),VueUiFunnel:l(()=>import(`./vue-ui-funnel-Byx_0z_B.js`).then(e=>e.n)),VueUiHistoryPlot:l(()=>import(`./vue-ui-history-plot-C7iVkeuY.js`).then(e=>e.n)),VueUiCirclePack:l(()=>import(`./vue-ui-circle-pack-Bti7Wq1h.js`).then(e=>e.n)),VueUiWorld:l(()=>import(`./vue-ui-world-CFZoRY_U.js`).then(e=>e.n)),VueUiRidgeline:l(()=>import(`./vue-ui-ridgeline-w92zZqP2.js`).then(e=>e.n)),VueUiChord:l(()=>import(`./vue-ui-chord-WqXXM4Qs.js`).then(e=>e.n)),VueUiDag:l(()=>import(`./vue-ui-dag-BevQ37Gp.js`).then(e=>e.n)),VueUiGeo:l(()=>import(`./vue-ui-geo-HaNxzfYO.js`).then(e=>e.n)),VueUiBump:l(()=>import(`./vue-ui-bump-nFpAoRy7.js`).then(e=>e.n)),VueUiHill:l(()=>import(`./vue-ui-hill-Dr6Du4gm.js`).then(e=>e.n)),VueUiLabel:l(()=>import(`./vue-ui-label-D9tcQ8rR.js`).then(e=>e.n))},k=/* @__PURE__ */ new Set([`VueUiMiniLoader`,`VueUiSkeleton`,`VueUiAccordion`,`VueUiCursor`,`VueUiTimer`]),A=/* @__PURE__ */ `fitToView.focusNode.resetLayout.autoSize.cancel.close.copyAlt.focusLocation.generateCsv.generateImage.generatePdf.generateSvg.getItemsPositions.hideSeries.lap.pause.pauseAnimation.recalculateHeight.reset.resetZoom.restart.restoreOrder.resumeAnimation.save.selectGroup.selectNode.selectRibbon.setZoomState.shoot.showSeries.start.switchOrientation.toggleAnimation.toggleAnnotator.toggleLabels.toggleLock.toggleReadonly.toggleSort.toggleStack.toggleTable.toggleFullscreen.toggleTooltip.toggleZoom.zoomIn.zoomOut`.split(`.`),j=g(null),M=n(()=>!O[E.component]),N=n(()=>O[E.component]||null);function P(){let e={...D,config:E.config};return k.has(E.component)||(e.dataset=E.dataset),e}let F=[];function I(e,t){return new Promise((n,r)=>{F.push({method:e,args:t,resolve:n,reject:r})})}function L(e){return/* @__PURE__ */ Error(`Method "${e}" not found on ${E.component}`)}function R(e,t){let n=j.value;if(!n)return null;let r=n[e];return typeof r==`function`?r.apply(n,t):null}function z(e,t){let n=j.value;if(!n)return I(e,t);let r=n[e];return typeof r==`function`?r.apply(n,t):Promise.reject(L(e))}S(j,e=>{if(e)for(;F.length;){let{method:t,args:n,resolve:r,reject:i}=F.shift(),a=e[t];typeof a==`function`?Promise.resolve().then(()=>a.apply(e,n)).then(r).catch(i):i(L(t))}}),w({getData(...e){return z(`getData`,e)},getImage(e={}){let{scale:t=2}=e;return z(`getImage`,[{scale:t}])},...Object.fromEntries(A.map(e=>[e,(...t)=>R(e,t)]))}),m(()=>{M.value&&console.error(`\n\nVue Data UI exception:\nThe provided component "${E.component}" does not exist. Check the spelling.\n\nAvailable components:\n\n${Object.keys(O).map(e=>`. ${e}\n`).join(``)}`)});let B=n(()=>{let e=`The provided component ${E.component} does not exist.`;return[`VueUiIcon`,`VueUiPattern`,`Arrow`].includes(E.component)?(e=`${E.component} is not supported by the VueDataUi universal component. You must import it individually.`,console.warn(e),{status:`notSupported`,message:e}):(console.warn(e),{status:`unknown`,message:e})});return(e,n)=>M.value?(h(),a(`div`,{key:0,style:p({width:`100%`,display:`flex`,gap:`6px`,alignItems:`center`,color:B.value.status===`notSupported`?`#FF9000`:`#FF0000`})},[o(`div`,T,[B.value.status===`unknown`?(h(),r(t,{key:0,name:`moodFlat`,stroke:`#FF0000`})):i(``,!0),B.value.status===`notSupported`?(h(),r(t,{key:1,name:`circleExclamation`,stroke:`#FF9000`})):i(``,!0)]),c(` `+b(B.value.message),1)],4)):(h(),r(y(N.value),d({key:1,ref_key:`currentComponentRef`,ref:j},P()),s({_:2},[_(e.$slots,(t,n)=>({name:n,fn:C(t=>[v(e.$slots,n,f(u(t)))])}))]),1040))}});export{w as n,E as t};