vue-data-ui 3.28.8 → 3.28.9
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.
- package/dist/{PackageVersion-Bczw6rsP.js → PackageVersion-D6_O7PmZ.js} +1 -1
- package/dist/UserOptions-B9EyfU9n.js +1 -0
- package/dist/{XyAnalysisOptions-U4UJx51x.js → XyAnalysisOptions-djGOJdKc.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-graph.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/package-BEq7yyhf.js +1 -0
- package/dist/{render-common-DY4sNXDz.js → render-common-BbY81Ao2.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +1 -1
- package/dist/style.css +1 -1
- package/dist/vue-data-ui-BwiGr37w.js +1 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DmRrbXjK.js → vue-ui-3d-bar-C2igj6OX.js} +1 -1
- package/dist/{vue-ui-age-pyramid-CJJIp5gY.js → vue-ui-age-pyramid-DOG_ZOgO.js} +1 -1
- package/dist/{vue-ui-bullet-Br7H7FSM.js → vue-ui-bullet-HUKP90GR.js} +1 -1
- package/dist/{vue-ui-bump-DCDHNvWE.js → vue-ui-bump-BuHuxEzm.js} +1 -1
- package/dist/{vue-ui-candlestick-C_swW8gM.js → vue-ui-candlestick-CZkyowA5.js} +1 -1
- package/dist/{vue-ui-carousel-table-BP_yVdDm.js → vue-ui-carousel-table-B73USTMi.js} +1 -1
- package/dist/{vue-ui-chestnut-CIGNqBsT.js → vue-ui-chestnut-VdMHjsWk.js} +1 -1
- package/dist/{vue-ui-chord-DZRFBkRJ.js → vue-ui-chord-DfWjMAuo.js} +1 -1
- package/dist/{vue-ui-circle-pack-CtdPeMsY.js → vue-ui-circle-pack-ByV3SOkF.js} +1 -1
- package/dist/{vue-ui-cursor-DRQc_V2R.js → vue-ui-cursor-D3E3f7Lc.js} +1 -1
- package/dist/{vue-ui-dag-Cj0CcntI.js → vue-ui-dag-DlllVyCV.js} +1 -1
- package/dist/{vue-ui-dashboard-HyzHqAtX.js → vue-ui-dashboard-C9aGsEAi.js} +1 -1
- package/dist/{vue-ui-digits-CfdB0vaP.js → vue-ui-digits-p2met3a2.js} +1 -1
- package/dist/{vue-ui-donut-Cv-bYyBN.js → vue-ui-donut-BlQXnf7O.js} +1 -1
- package/dist/{vue-ui-donut-Dy4j7B9b.js → vue-ui-donut-CZbBq7bs.js} +1 -1
- package/dist/{vue-ui-donut-evolution-DL112anx.js → vue-ui-donut-evolution-Csq1sqhK.js} +1 -1
- package/dist/{vue-ui-dumbbell-owG24VsQ.js → vue-ui-dumbbell-ChLfyyGq.js} +1 -1
- package/dist/{vue-ui-flow-BMNIydqI.js → vue-ui-flow-DfEHi_Cq.js} +1 -1
- package/dist/{vue-ui-funnel-BsVS3vuI.js → vue-ui-funnel-QCG-rmsx.js} +1 -1
- package/dist/{vue-ui-galaxy-B8HgdBjc.js → vue-ui-galaxy-DFTeXUse.js} +1 -1
- package/dist/{vue-ui-gauge-B1A_NFY6.js → vue-ui-gauge-XTx--A-H.js} +1 -1
- package/dist/{vue-ui-geo-_TG4jaV9.js → vue-ui-geo-BXB5xFcV.js} +1 -1
- package/dist/{vue-ui-gizmo-D0QjzIGt.js → vue-ui-gizmo-COJHVo7O.js} +1 -1
- package/dist/{vue-ui-graph-DScVnTzu.js → vue-ui-graph-BqnyGn9p.js} +1 -1
- package/dist/{vue-ui-heatmap-BbQseEbM.js → vue-ui-heatmap-CPq3bcnS.js} +1 -1
- package/dist/{vue-ui-hill-D3V84h_t.js → vue-ui-hill-DKm3PjHT.js} +1 -1
- package/dist/{vue-ui-history-plot-Bx4WYG6U.js → vue-ui-history-plot-B5OPsHZ1.js} +1 -1
- package/dist/{vue-ui-horizontal-bar-Do0HJy4f.js → vue-ui-horizontal-bar-C8SymyhN.js} +1 -1
- package/dist/{vue-ui-kpi-CF7pAl08.js → vue-ui-kpi-D1Ps7D_O.js} +1 -1
- package/dist/{vue-ui-molecule-bAMGCA2Y.js → vue-ui-molecule-f-GNAQ0p.js} +1 -1
- package/dist/{vue-ui-mood-radar-CFpgxjuR.js → vue-ui-mood-radar-kp-jOb4S.js} +1 -1
- package/dist/{vue-ui-nested-donuts-CWY26iKX.js → vue-ui-nested-donuts-DCCSKIGa.js} +1 -1
- package/dist/{vue-ui-onion-DsBUqL_c.js → vue-ui-onion-KqzGj1z_.js} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-BF3gO85b.js → vue-ui-parallel-coordinate-plot-dn_41Wv5.js} +1 -1
- package/dist/{vue-ui-quadrant-BkNG2LGm.js → vue-ui-quadrant-CP8n4v5B.js} +1 -1
- package/dist/{vue-ui-quick-chart-CYxvgVpD.js → vue-ui-quick-chart-D8PbGpSw.js} +1 -1
- package/dist/{vue-ui-radar-0H8CiLmc.js → vue-ui-radar-ybR3N44-.js} +1 -1
- package/dist/{vue-ui-relation-circle-B0BM4xf8.js → vue-ui-relation-circle-B0PwfFpT.js} +1 -1
- package/dist/{vue-ui-ridgeline-D-fDuE3y.js → vue-ui-ridgeline-BnslUzA-.js} +1 -1
- package/dist/{vue-ui-rings-UtlBiaZZ.js → vue-ui-rings-B-cOW0Dw.js} +1 -1
- package/dist/{vue-ui-scatter-CduaARRt.js → vue-ui-scatter-BX5cTC01.js} +1 -1
- package/dist/{vue-ui-skeleton-an0peDis.js → vue-ui-skeleton-98OnGJ2N.js} +1 -1
- package/dist/{vue-ui-spark-trend-DCP7blHB.js → vue-ui-spark-trend-C4uYyXEy.js} +1 -1
- package/dist/{vue-ui-sparkbar-DT3sDgda.js → vue-ui-sparkbar-BcZyqPB9.js} +1 -1
- package/dist/{vue-ui-sparkgauge-AQt2L5dI.js → vue-ui-sparkgauge-dBZzMqn5.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-a_jc2Dv2.js → vue-ui-sparkhistogram-DcbAY6vr.js} +1 -1
- package/dist/{vue-ui-sparkline-D2-KcHAU.js → vue-ui-sparkline-BizzsAR5.js} +1 -1
- package/dist/{vue-ui-sparkstackbar-CBI4S5cu.js → vue-ui-sparkstackbar-xlg048YB.js} +1 -1
- package/dist/{vue-ui-stackbar-DS_31-a3.js → vue-ui-stackbar-2AX-m3Pb.js} +1 -1
- package/dist/{vue-ui-stackline-CuxohB0U.js → vue-ui-stackline-GKaZJh8y.js} +1 -1
- package/dist/{vue-ui-strip-plot-bYGhsPA5.js → vue-ui-strip-plot-BhxIrd67.js} +1 -1
- package/dist/{vue-ui-table-lzolsJ_n.js → vue-ui-table-D9FJBxrk.js} +1 -1
- package/dist/{vue-ui-table-heatmap-D6gpmHg8.js → vue-ui-table-heatmap-SGJGI5Wq.js} +1 -1
- package/dist/{vue-ui-table-sparkline-By319cB8.js → vue-ui-table-sparkline-B6ynMUGE.js} +1 -1
- package/dist/{vue-ui-thermometer-B3Uv3aWc.js → vue-ui-thermometer-SE_c51TO.js} +1 -1
- package/dist/{vue-ui-timer-C6Pevf4N.js → vue-ui-timer-B1JNZk6j.js} +1 -1
- package/dist/{vue-ui-tiremarks-DeNdCFVD.js → vue-ui-tiremarks-Cr8EG4T5.js} +1 -1
- package/dist/{vue-ui-treemap-Ck9_llHA.js → vue-ui-treemap-DKJVe7v7.js} +1 -1
- package/dist/{vue-ui-waffle-BW2SacnV.js → vue-ui-waffle-DSq3l2sE.js} +1 -1
- package/dist/{vue-ui-wheel-BXDhx5bf.js → vue-ui-wheel-CcYOzS05.js} +1 -1
- package/dist/{vue-ui-word-cloud-DKPtoruY.js → vue-ui-word-cloud-gogYiwIU.js} +1 -1
- package/dist/{vue-ui-world-D9vpDbN7.js → vue-ui-world-C2zGhq_U.js} +1 -1
- package/dist/{vue-ui-xy-Df5gIADT.js → vue-ui-xy-B2lrTGG4.js} +1 -1
- package/dist/{vue-ui-xy-CMckdUft.js → vue-ui-xy-CpS-ASnd.js} +3 -3
- package/dist/{vue-ui-xy-canvas-CBrKi3nN.js → vue-ui-xy-canvas-CXBsRU35.js} +1 -1
- package/package.json +1 -1
- package/dist/UserOptions-DW84OKKr.js +0 -1
- package/dist/package-CNWVs68D.js +0 -1
- package/dist/vue-data-ui-BWqplouA.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{n as t,r as n,t as r}from"./annotationSlots-OLiW25XN.js";import{t as i}from"./useConfig-By3Vb5kz.js";import{$ as a,A as o,B as s,D as c,Dt as l,G as u,Gt as d,H as f,Ht as p,I as m,J as h,Jt as g,K as ee,L as te,M as ne,Mt as re,N as ie,Ot as ae,P as oe,R as se,Rt as ce,S as le,U as ue,V as de,W as fe,X as pe,Yt as me,_ as he,_t as ge,at as _e,b as _,c as ve,d as ye,dt as v,et as be,gt as xe,i as y,in as Se,kt as Ce,l as we,m as Te,n as Ee,nn as De,nt as Oe,o as ke,q as Ae,qt as je,r as Me,rn as Ne,tn as Pe,u as Fe,v as Ie,w as Le,wt as Re,zt as ze}from"./lib-rPeBMZrn.js";import{n as Be,t as Ve}from"./BaseScanner-8NdoBs7B.js";import{n as He,t as Ue}from"./useHints-C-TwxM0Y.js";import{t as b}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as We}from"./useNestedProp-DnGoh-XS.js";import{t as Ge}from"./useThemeCheck-BKNRbGeC.js";import{t as Ke}from"./img-D4RQwASc.js";import{n as qe}from"./Title-BliHuXfT.js";import{t as Je}from"./useChartExport-BZts4KFb.js";import{t as Ye}from"./tableIntegration-CNoJ1CIY.js";import{n as Xe,t as Ze}from"./userOptionsSlots-DYuo-E5m.js";import{n as Qe,r as $e,t as et}from"./useTimeLabels-Das5O74F.js";import{t as tt}from"./usePrinter-DVf3YcG5.js";import{t as nt}from"./useTransitions-ChGGrtrv.js";import{t as rt}from"./useStableElementSize-CegFbRlF.js";import{t as it}from"./useSvgLabelLayout-42Kats14.js";import{t as at}from"./useTimeLabelCollider-BTybMUFi.js";import{t as ot}from"./vue_ui_xy-CJBM9F6W.js";import{t as st}from"./Shape-CRe8woTu.js";import{t as ct}from"./DefGrad-DKMq1REY.js";import{t as lt}from"./SlicerPreview-ChKbdZSU.js";import{t as ut}from"./vue-ui-accordion-DFxSW8ET.js";import{t as dt}from"./BaseLegendToggle-BIzyyI1h.js";import{t as ft}from"./A11yDataTable-DWNlWXzs.js";import{Fragment as x,Teleport as pt,computed as S,createBlock as mt,createCommentVNode as C,createElementBlock as w,createElementVNode as T,createSlots as ht,createTextVNode as gt,createVNode as _t,defineAsyncComponent as vt,getCurrentInstance as yt,guardReactiveProps as bt,mergeProps as xt,nextTick as St,normalizeClass as E,normalizeProps as Ct,normalizeStyle as D,onBeforeUnmount as wt,onMounted as Tt,openBlock as O,ref as k,renderList as A,renderSlot as j,resolveDynamicComponent as Et,shallowRef as M,toDisplayString as Dt,toRefs as Ot,unref as N,useSlots as kt,vModelCheckbox as At,watch as jt,watchEffect as Mt,withCtx as Nt,withDirectives as Pt}from"vue";var Ft=[`minimum`,`maximum`,`average`,`median`,`trend`,`increase`,`decrease`,`change`,`outlier`,`gap`,`threshold`];function It(){return Object.fromEntries(Ft.map(e=>[e,!1]))}function Lt(e,t={}){return Object.fromEntries(Ft.map(n=>[n,t[n]!==!1&&e[n]===!0]))}function Rt(e,t){let n=t.left+t.width;return{labelX:Math.max(t.left+8,Math.min(n-8,e.x+(e.x<(t.left+n)/2?28:-28))),labelY:Math.max(t.top+16,Math.min(t.bottom-16,e.y+(e.y<(t.top+t.bottom)/2?30:-30))),bounds:{left:t.left,right:n,top:t.top,bottom:t.bottom}}}function zt(e,t){let n=(e.length-1)*t,r=Math.floor(n),i=n-r;return e[r]*(1-i)+e[Math.ceil(n)]*i}function Bt(e,t,n){let r=0,i=1,a=t.x-e.x,o=t.y-e.y;for(let[t,s]of[[-a,e.x-n.left],[a,n.left+n.width-e.x],[-o,e.y-n.top],[o,n.bottom-e.y]]){if(t===0){if(s<0)return null;continue}let e=s/t;if(t<0?r=Math.max(r,e):i=Math.min(i,e),r>i)return null}return{fromX:e.x+r*a,fromY:e.y+r*o,x:e.x+i*a,y:e.y+i*o}}function Vt(e,t,n,r,i,a,o){let s=[];if(!Ft.some(e=>![`minimum`,`maximum`].includes(e)&&o[e]))return s;let c=new Intl.NumberFormat(r.locale,{maximumFractionDigits:4}),l=(e,t)=>a?a(e,t):c.format(e),u=e.flatMap(e=>{let r=t.find(t=>t.id===e.id.replace(`series-`,`uniqueId_`));if(!r||!e.points)return[];let a=new Map(e.points.map(e=>[e.index,e])),o=r.plots.flatMap((e,t)=>{let o=e.sourceIndex??(i?r.series[t]?.index:r.sourceIndices?.[t])??(r.analysisSliceStart??0)+t,s=a.get(o),c=1e-7;return!s||s.value!==e.value||!Number.isFinite(e.x)||!Number.isFinite(e.y)||e.x<n.left-c||e.x>n.left+n.width+c||e.y<n.top-c||e.y>n.bottom+c?[]:[{...s,px:Math.max(n.left,Math.min(n.left+n.width,e.x)),py:Math.max(n.top,Math.min(n.bottom,e.y))}]}).sort((e,t)=>e.index-t.index);return[{result:e,series:r,points:o,byIndex:new Map(o.map(e=>[e.index,e]))}]});function d(e,t,i,a,o={},c={}){if(!Number.isFinite(a)||!Number.isFinite(i.x)||!Number.isFinite(i.y))return;let u={series:t.result.name||r.series,value:l(a,t.series),...c},d=(r[`visual${e[0].toUpperCase()}${e.slice(1)}`]||`${e}: {value}`).replace(/\{(\w+)\}/g,(e,t)=>String(u[t]??``));s.push({id:`${t.result.id}-${e}-${s.length}`,...i,...Rt(i,n),label:d,geometry:o})}function f(e,t,n,r,i){n&&r&&d(e,t,{x:r.px,y:r.py},i,{kind:`line`,fromX:n.px,fromY:n.py,x:r.px,y:r.py,arrow:!0})}for(let e of u){let{result:t,series:i,points:a,byIndex:s}=e;if(!a.length)continue;for(let n of[`increase`,`decrease`]){if(!o[n]||!t[n])continue;let r=t[n];f(n,e,s.get(r.from),s.get(r.to),r.value)}o.change&&t.change!==null&&f(`change`,e,s.get(t.points[0].index),s.get(t.points.at(-1).index),t.change);let c=t.points.map(e=>e.value),l=a[0],u=a.find(e=>e.value!==l.value),p=e=>u?l.py+(e-l.value)/(u.value-l.value)*(u.py-l.py):e===l.value?l.py:NaN,m=a.reduce((e,t)=>Math.min(e,t.px),1/0),h=a.reduce((e,t)=>Math.max(e,t.px),-1/0);for(let t of[`average`,`median`]){if(!o[t]||a.length<2||!(h>m))continue;let r=t===`average`?Fe(c):Te(c),i=p(r);i<n.top||i>n.bottom||d(t,e,{x:(m+h)/2,y:i},r,{kind:`line`,fromX:m,fromY:i,x:h,y:i,dashed:!0})}if(o.threshold){let t=[...new Set((r.thresholds||[]).filter(Number.isFinite))],n=0;for(let r=1;r<a.length&&n<3;r+=1){let i=a[r-1],o=a[r];if(!(o.index!==i.index+1||o.x<=i.x||i.value===o.value))for(let r of t){if(!(i.value<r&&o.value>=r||i.value>r&&o.value<=r))continue;let t={x:o.px,y:o.py};if(d(`threshold`,e,t,r,{kind:`circle`,...t}),++n>=3)break}}}if(o.outlier&&c.length>=4){let t=[...c].sort((e,t)=>e-t),n=zt(t,.25),r=zt(t,.75),i=r-n,o=n-1.5*i,s=r+1.5*i,l=0;for(let t of a)if(!(t.value>=o&&t.value<=s)&&(d(`outlier`,e,{x:t.px,y:t.py},t.value,{kind:`circle`,x:t.px,y:t.py}),++l>=3))break}if(o.trend&&t.points.length>=3&&a.length>=2){let r=Fe(t.points.map(e=>e.x)),i=Fe(c),o=0,s=0;for(let e of t.points)o+=(e.x-r)*(e.value-i),s+=(e.x-r)**2;if(!(s>0))continue;let l=o/s,u=a.reduce((e,t)=>e.x<t.x?e:t),f=a.reduce((e,t)=>e.x>t.x?e:t),m={x:u.px,y:p(i+l*(u.x-r))},h={x:f.px,y:p(i+l*(f.x-r))};if(![m.x,m.y,h.x,h.y,l].every(Number.isFinite))continue;let g=Bt(m,h,n);g&&d(`trend`,e,{x:(g.fromX+g.x)/2,y:(g.fromY+g.y)/2},l,{kind:`line`,...g,dashed:!0})}}if(o.gap){let e=0;for(let t=0;t<u.length;t+=1)for(let n=t+1;n<u.length&&e<64;n+=1){e+=1;let i=u[t],a=u[n];if(i.series.analysisUnit!==a.series.analysisUnit)continue;let o=e=>{let t=/* @__PURE__ */ new Map;for(let n of e)t.set(n.x,t.has(n.x)?null:n);return t},s=o(i.points),c=o(a.points),l=null;for(let[e,t]of s){let n=c.get(e);if(!t||!n)continue;let r=Math.abs(t.value-n.value);!Number.isFinite(r)||l&&r<=l.value||(l={p:t,q:n,value:r})}if(!l||l.value===0)continue;let{p:f,q:p,value:m}=l,h=(f.px+p.px)/2;d(`gap`,i,{x:h,y:(f.py+p.py)/2},m,{kind:`bracket`,fromX:h,fromY:f.py,x:h,y:p.py},{other:a.result.name||r.series})}}return s}function Ht(e,t=/* @__PURE__ */ new Set,n=!1){let r=0;for(let[i,a]of e.entries())if(!t.has(a.id??`uniqueId_${i}`)&&[`line`,`bar`,`plot`].includes(a.type)){for(let e of a.series||[])if((n?Number.isFinite(e?.x)&&Number.isFinite(e?.y):Number.isFinite(e))&&(r+=1,r>1))return!0}return!1}function Ut(e,t=!1,n=0){return new Map(e.map((e,r)=>[e.id??`uniqueId_${r}`,new Set(e.series.map((r,i)=>t?r.index:e.sourceIndices?.[i]??Math.trunc(n)+i))]))}function Wt(e,t=/* @__PURE__ */ new Set,n=!1,r=null){return e.flatMap((e,i)=>{if(t.has(`uniqueId_${i}`)||n&&![`line`,`plot`].includes(e.type))return[];let a=r?.get(`uniqueId_${i}`),o=0,s=(e.series||[]).flatMap((e,t)=>{if(r&&!a?.has(t))return[];o+=1;let i=n?e?.y:e;return!Number.isFinite(i)||n&&!Number.isFinite(e?.x)?[]:[{index:t,value:i,x:n?e.x:t}]});if(!s.length)return[];let c=s[0].value,l=c,u=null,d=null;for(let e=0;e<s.length;e+=1){let t=s[e];c=Math.min(c,t.value),l=Math.max(l,t.value);let n=s[e-1];if(!n||t.index!==n.index+1||t.x<=n.x)continue;let r=t.value-n.value;if(!Number.isFinite(r))continue;let i={value:r,from:n.index,to:t.index};r>0&&(!u||r>u.value)&&(u=i),r<0&&(!d||r<d.value)&&(d=i)}let f=s[0],p=s[s.length-1],m=p.value-f.value;return[{id:`series-${i}`,name:e.name||``,points:s,count:s.length,excluded:o-s.length,minimum:{value:c,indices:s.filter(e=>e.value===c).map(e=>e.index)},maximum:{value:l,indices:s.filter(e=>e.value===l).map(e=>e.index)},change:s.length>1&&p.x>f.x&&Number.isFinite(m)?m:null,increase:u,decrease:d}]})}function Gt(e,t){let n=new Intl.NumberFormat(t.locale,{maximumFractionDigits:6}),r=(e,n)=>t[e].replace(/\{(\w+)\}/g,(e,t)=>String(n[t]??``));return e.map(e=>{let i=[r(`summary`,{series:e.name||t.series,count:e.count,excluded:e.excluded})];for(let t of[`minimum`,`maximum`]){let a=e[t];i.push(r(t,{value:n.format(a.value),point:a.indices[0]+1,ties:a.indices.length}))}e.change!==null&&i.push(r(`change`,{value:n.format(e.change)}));for(let t of[`increase`,`decrease`]){let a=e[t];a&&i.push(r(t,{value:n.format(a.value),from:a.from+1,to:a.to+1}))}return i.join(`
|
|
2
2
|
`)}).join(`
|
|
3
3
|
|
|
4
|
-
`)}function Kt(e,t,n,r,i=!1,a=null,o={minimum:!0,maximum:!0}){o=Lt(o,r.options);let s=new Intl.NumberFormat(r.locale,{maximumFractionDigits:4}),c=[],l=n.left+n.width,u=Math.max(1e-7,2**-52*32*Math.max(1,Math.abs(n.left),Math.abs(l),Math.abs(n.top),Math.abs(n.bottom)));for(let d of e){let e=d.id.replace(`series-`,`uniqueId_`),f=t.find(t=>t.id===e);if(f)for(let e of[`minimum`,`maximum`]){if(!o[e]||e===`maximum`&&d.maximum.value===d.minimum.value)continue;let t=d[e],p=new Set(t.indices),m=f.plots.find((e,r)=>{let a=e.sourceIndex??(i?f.series[r]?.index:f.sourceIndices?.[r])??f.analysisSliceStart+r;return p.has(a)&&e.value===t.value&&Number.isFinite(e.x)&&Number.isFinite(e.y)&&e.x>=n.left-u&&e.x<=l+u&&e.y>=n.top-u&&e.y<=n.bottom+u});if(!m)continue;let h=r[e===`minimum`?`visualMinimum`:`visualMaximum`].replace(/\{(series|value)\}/g,(e,n)=>n===`series`?d.name||r.series:a?a(t.value,f):s.format(t.value));c.push({id:`${d.id}-${e}`,x:Math.max(n.left,Math.min(l,m.x)),y:Math.max(n.top,Math.min(n.bottom,m.y)),...Rt(m,n),label:h})}}c.push(...Vt(e,t,n,r,i,a,o));let d=Number.isFinite(r.maxAnnotations)?Math.max(1,Math.min(100,Math.trunc(r.maxAnnotations))):24;return c.slice(0,d)}function qt(e){return![null,void 0,NaN,1/0,-1/0].includes(e)}function Jt(e,t){let n=tn(e),r=Array(n).fill(0);for(let e=0;e<t.length&&e<n;e+=1)r[e]=t[e]??null;return r}function Yt(e,t){let n=Object.create(null);for(let r=0;r<e.length;r+=1){let i=e[r],a=String(t(i));n[a]||(n[a]=[]),n[a].push(i)}return n}function Xt(e){return e&&typeof e==`object`&&Number.isFinite(Number(e.x))&&Number.isFinite(Number(e.y))}function Zt(e,t){let n=Number(e),r=Number(t);return!Number.isFinite(n)||!Number.isFinite(r)?!1:!Object.is(n,r)}function Qt(e){let t=/* @__PURE__ */ new WeakMap;return(n,...r)=>{let i=t.get(n),a=JSON.stringify(r);if(i&&i.has(a))return i.get(a);let o=e(n,...r);return i||(i=/* @__PURE__ */ new Map,t.set(n,i)),i.set(a,o),o}}function $t(e,t){let n=Number.isFinite(e)?e:0,r=Number.isFinite(t)?t:1;return n===r?r=n+1:n>r&&([n,r]=[r,n]),{min:n,max:r}}function en(e,t,n=0){return Number.isFinite(e)&&Number.isFinite(t)&&Math.abs(t)>1e-9?e/t:n}function tn(e){return Number.isFinite(e)?Math.max(0,Math.floor(e)):0}var nn=/* @__PURE__ */ e({default:()=>Gi}),rn=[`id`],an=[`id`],on=[`id`],sn={class:`sr-only`,role:`status`},cn={style:{position:`relative`}},ln=[`viewBox`,`aria-label`,`aria-describedby`],un=[`id`],dn=[`x`,`y`,`width`,`height`],fn=[`x`,`y`,`width`,`height`],pn={key:1},mn={class:`vue-ui-xy-grid`},hn=[`stroke`,`x1`,`x2`,`y1`,`y2`],gn=[`stroke`,`x1`,`x2`,`y1`,`y2`],_n={key:1},vn=[`x1`,`x2`,`y1`,`y2`,`stroke`],yn=[`x1`,`x2`,`y1`,`y2`,`stroke`],bn=[`x1`,`x2`,`y1`,`y2`,`stroke`],xn={key:3},Sn=[`d`,`stroke`],Cn={key:4},wn=[`d`,`stroke`],Tn={key:0},En=[`id`],Dn=[`stop-color`,`offset`],On=[`x`,`y`,`height`,`width`,`fill`],kn=[`x`,`y`,`width`],An={key:0},jn=[`x`,`y`,`height`,`width`,`fill`],Mn=[`clip-path`],Nn=[`x`,`y`,`height`,`width`,`rx`,`fill`,`stroke`,`stroke-width`],Pn=[`x`,`y`,`height`,`width`,`rx`,`fill`,`stroke`,`stroke-width`],Fn=[`width`,`x`,`y`],In=[`stroke`,`x1`,`x2`,`y1`,`y2`],Ln={key:2},Rn=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`,`stroke-dasharray`],zn={key:3,class:`vue-ui-xy-crosshair-selection`},Bn=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`,`stroke-dasharray`],Vn=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`,`stroke-dasharray`],Hn=[`cx`,`cy`,`r`,`fill`,`stroke`,`stroke-width`],Un=[`x`,`y`,`width`,`height`,`stroke`,`stroke-width`,`stroke-linecap`,`stroke-linejoin`,`stroke-dasharray`],Wn=[`opacity`],Gn=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],Kn=[`fill`,`font-size`,`transform`],qn=[`x1`,`x2`,`y1`,`y2`,`stroke`],Jn=[`transform`,`text-anchor`,`font-size`,`fill`],Yn=[`x1`,`x2`,`y1`,`y2`,`stroke`],Xn=[`transform`,`font-size`,`text-anchor`,`fill`],Zn={key:6,class:`vue-ui-xy-crosshair-selection`},Qn=[`transform`,`font-size`,`text-anchor`,`fill`],$n={key:7,class:`vue-ui-xy-crosshair-selection`},er=[`cx`,`cy`,`r`,`fill`,`stroke`,`stroke-width`],tr=[`clip-path`],nr=[`width`,`x`,`y`],rr={style:{width:`100%`}},ir=[`d`,`stroke`,`stroke-width`,`stroke-dasharray`],ar=[`d`,`stroke`,`stroke-width`,`stroke-dasharray`],or=[`d`,`stroke`,`stroke-width`,`stroke-dasharray`],sr=[`d`,`stroke`,`stroke-width`,`stroke-dasharray`],cr=[`d`,`stroke`,`stroke-width`,`stroke-dasharray`],lr={key:0},ur={key:1},dr=[`d`,`fill`,`fill-opacity`],fr={key:0},pr=[`d`,`fill`],mr=[`d`,`fill`],hr=[`d`,`fill`],gr=[`d`,`fill`],_r=[`d`,`stroke`,`stroke-width`,`stroke-dasharray`],vr=[`d`,`stroke`,`stroke-width`,`stroke-dasharray`],yr=[`d`,`stroke`,`stroke-width`,`stroke-dasharray`],br=[`d`,`stroke`,`stroke-width`,`stroke-dasharray`],xr=[`d`,`stroke`,`stroke-width`,`stroke-dasharray`],Sr={class:`vue-ui-xy-line-markers`},Cr=[`width`,`x`,`y`],wr={style:{width:`100%`}},Tr={key:8},Er=[`text-anchor`,`font-size`,`transform`,`fill`,`stroke`,`innerHTML`],Dr=[`transform`,`font-size`,`fill`,`font-weight`],Or={key:9},kr=[`transform`,`text-anchor`,`font-size`,`fill`,`stroke`,`innerHTML`],Ar={key:10},jr=[`x`,`y`],Mr=[`innerHTML`],Nr=[`x`,`y`],Pr=[`innerHTML`],Fr=[`x1`,`x2`,`y1`,`y2`,`stroke`],Ir={key:11},Lr=[`transform`,`text-anchor`,`font-size`,`fill`,`stroke`,`innerHTML`],Rr={key:12},zr=[`x`,`y`],Br=[`innerHTML`],Vr=[`x`,`y`],Hr=[`innerHTML`],Ur=[`x1`,`x2`,`y1`,`y2`,`stroke`],Wr=[`x`,`y`,`font-size`,`fill`,`innerHTML`],Gr=[`x`,`y`,`font-size`,`fill`,`innerHTML`],Kr=[`x`,`y`,`font-size`,`fill`,`innerHTML`],qr=[`x`,`y`,`font-size`,`fill`,`innerHTML`],Jr={key:0},Yr=[`id`],Xr=[`fill`,`stroke`],Zr=[`x1`,`x2`,`y1`,`y2`,`stroke`,`marker-end`],Qr=[`x1`,`x2`,`y1`,`y2`,`stroke`,`marker-end`],$r=[`transform`,`font-size`,`fill`,`stroke`],ei=[`x`,`y`,`width`,`height`,`fill`,`onMouseenter`],ti=[`font-size`,`fill`,`transform`],ni=[`x`,`y`,`font-size`,`fill`],ri=[`opacity`],ii=[`text-anchor`,`font-size`,`fill`,`stroke`,`transform`,`onClick`],ai=[`text-anchor`,`font-size`,`fill`,`transform`,`innerHTML`,`onClick`],oi={key:15},si=[`text-anchor`,`font-size`,`fill`,`transform`,`innerHTML`],ci={key:16},li=[`x1`,`y1`,`x2`,`y2`,`stroke`,`stroke-width`,`stroke-dasharray`],ui=[`x1`,`y1`,`x2`,`y2`,`stroke`,`stroke-width`,`stroke-dasharray`],di=[`y`,`x`,`width`,`height`,`fill`],fi=[`id`,`transform`,`font-size`,`fill`,`text-anchor`],pi={key:17,style:{"pointer-events":`none`}},mi=[`x`,`y`],hi=[`innerHTML`],gi=[`cx`,`cy`,`r`,`fill`],_i=[`x`,`y`,`width`,`height`,`fill`,`fill-opacity`,`stroke`,`stroke-opacity`,`stroke-width`,`stroke-dasharray`],vi=[`data-start`,`data-end`],yi={key:0,style:{position:`absolute`,top:`100%`,left:`0`,width:`100%`},"data-dom-to-png-ignore":``,"aria-hidden":`true`},bi={key:6,class:`vue-data-ui-watermark`},xi={class:`vue-ui-xy-tag-arrow`,height:`20`,viewBox:`0 0 10 20`,style:{position:`absolute`,right:`100%`,top:`50%`,transform:`translateY(-50%)`}},Si=[`fill`],Ci=[`innerHTML`],wi={class:`vue-ui-xy-tag-arrow`,height:`100%`,viewBox:`0 0 10 20`,style:{position:`absolute`,left:`100%`,top:`50%`,transform:`translateY(-50%)`}},Ti=[`fill`],Ei=[`innerHTML`],Di={class:`vue-ui-xy-tag-arrow`,height:`20`,viewBox:`0 0 10 20`,style:{position:`absolute`,right:`100%`,top:`50%`,transform:`translateY(-50%)`}},Oi=[`fill`],ki=[`innerHTML`],Ai={class:`vue-ui-xy-tag-arrow`,height:`100%`,viewBox:`0 0 10 20`,style:{position:`absolute`,left:`100%`,top:`50%`,transform:`translateY(-50%)`}},ji=[`fill`],Mi=[`innerHTML`],Ni=[`id`],Pi=[`onClick`,`onKeydown`],Fi={key:0,viewBox:`0 0 20 12`,height:`1em`,width:`1.43em`,"aria-hidden":`true`},Ii=[`stroke`,`fill`],Li={key:1,viewBox:`0 0 40 40`,height:`1em`,width:`1em`,"aria-hidden":`true`},Ri=[`fill`],zi=[`fill`],Bi={key:2,viewBox:`0 0 12 12`,height:`1em`,width:`1em`,"aria-hidden":`true`},Vi={style:{display:`flex`,"flex-direction":`row`,gap:`6px`,"align-items":`center`,"padding-left":`6px`},"data-dom-to-png-ignore":``},Hi={key:0},Ui={key:1},Wi=280,Gi=/*#__PURE__*/ b({__name:`vue-ui-xy`,props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}},selectedXIndex:{type:Number,default:void 0},zoomState:{type:Object,default:null}},emits:[`selectTimeLabel`,`selectX`,`selectLegend`,`zoomStart`,`zoomEnd`,`zoomReset`,`update:zoomState`,`copyAlt`],setup(e,{expose:Te,emit:Fe}){let b=e,Rt=vt(()=>import(`./DataTable-Dof6yhO7.js`)),zt=vt(()=>import(`./Tooltip-C1q0Qoh7.js`)),Bt=vt(()=>import(`./UserOptions-DW84OKKr.js`).then(e=>e.n)),Vt=vt(()=>import(`./BaseIcon-CoY0vuL3.js`).then(e=>e.n)),nn=vt(()=>import(`./vue-ui-table-sparkline-By319cB8.js`).then(e=>e.n)),Gi=vt(()=>import(`./PackageVersion-Bczw6rsP.js`).then(e=>e.t)),Ki=vt(()=>import(`./PenAndPaper-DoNTA-SV.js`).then(e=>e.t)),qi=vt(()=>import(`./BaseDraggableDialog-BK7dj9O6.js`).then(e=>e.n)),Ji=Fe,Yi=kt(),Xi=yt(),{vue_ui_xy:Zi}=i(),{isThemeValid:Qi,warnInvalidTheme:$i}=Ge(),ea=M(null),ta=M(null),na=M(null),ra=M(null),ia=M(null),aa=M(null),oa=M(null),sa=M(null),ca=M(null),la=M(null),ua=M(null),da=M(null),fa=M(null),pa=M(null),ma=k(0),P=k(null),ha=k(!0),ga=k(600),F=k(1e3),_a=k(`0 0 1000 600`),va=M({x:0,y:0}),ya=M({line:`line`,bar:`bar`,plot:`plot`}),ba=k(!1),xa=k(!1),Sa=k(!1),Ca=k(null),wa=k([]),Ta=S(()=>new Set(wa.value)),I=k(pe()),Ea=k(0),Da=k(0),Oa=k(0),ka=k(!0),Aa=k(0),L=k(null),ja=k(!1),Ma=k(!0),Na=k(!0),R=M(null),Pa=k({}),Fa=M(null),Ia=k(!1),La=M(null),Ra=k(null),z=k(null),za=k(null),Ba=M({x:0,y:0}),Va=M(null),Ha=M(null),Ua=M(null),Wa=M(null),Ga=k(null),Ka=k(null),qa=M(null),Ja=k(!1),Ya=k(0),Xa=k(0),Za=rt({elementRef:qa,minimumWidth:2,minimumHeight:2,stableFramesRequired:2,once:!1,onSizeAccepted:()=>{eo()}});function Qa(){qa.value=ea.value?.parentNode??null}function $a(){return new Promise(e=>{requestAnimationFrame(()=>{requestAnimationFrame(e)})})}async function eo(){let e=++Xa.value;Ja.value=!1,await St(),await $a(),await $a(),e===Xa.value&&(Ya.value+=1,Ja.value=!0)}let to=k(!1);function no(){to.value||(to.value=!0,St(()=>{to.value=!1,Qa(),eo()}))}let ro=S(()=>({height:ga.value,width:F.value})),io=k(!1),ao=k(null),oo=k(null),B=k({xAxis:18,yAxis:12,dataLabels:20,plotLabels:10}),so=k({plot:3,line:3,selectedLine:3}),co=k(1);function lo(){let e=R.value;if(!e)return null;let t=e.getScreenCTM?.();if(t){let e=Math.hypot(Number(t.a),Number(t.b)),n=Math.hypot(Number(t.c),Number(t.d));if(Number.isFinite(e)&&e>0&&Number.isFinite(n)&&n>0)return(e+n)/2}let n=e.getBoundingClientRect?.(),r=e.viewBox?.baseVal;if(n&&r&&Number(n.width)>0&&Number(n.height)>0&&Number(r.width)>0&&Number(r.height)>0){let e=Math.min(Number(n.width)/Number(r.width),Number(n.height)/Number(r.height));if(Number.isFinite(e)&&e>0)return e}return null}function uo(){let e=lo();!Number.isFinite(e)||e<=0||(co.value=e)}function V(e){let t=Number(e);return Number.isFinite(t)?t*co.value:e}let fo=S(()=>Math.max(so.value.line*1.5,so.value.selectedLine));Tt(()=>{uo(),typeof ResizeObserver<`u`&&R.value&&(Ha.value=new ResizeObserver(()=>{uo()}),Ha.value.observe(R.value)),Ia.value=!0,b.dataset.length&&yo.value&&b.dataset.forEach((e,t)=>{[null,void 0].includes(e.series)&&_e({componentName:`VueUiXy`,type:`datasetSerieAttribute`,property:`series (number[])`,index:t})}),Qa(),Za.start(),eo()}),jt([F,ga,xa],async()=>{await St(),uo()},{flush:`post`}),wt(()=>{Ha.value&&=(Ha.value.disconnect(),null)});function po(){if(!Object.keys(b.config||{}).length)return Zi;let e=We({userConfig:b.config,defaultConfig:Zi});b.config&&Re(b.config,`chart.highlightArea`)&&(Array.isArray(b.config.chart.highlightArea)?e.chart.highlightArea=b.config.chart.highlightArea:e.chart.highlightArea=[b.config.chart.highlightArea]),b.config&&Re(b.config,`chart.annotations`)&&Array.isArray(b.config.chart.annotations)&&b.config.chart.annotations.length?e.chart.annotations=b.config.chart.annotations.map(e=>We({defaultConfig:Zi.chart.annotations[0],userConfig:e})):e.chart.annotations=[],b.config&&Re(b.config,`chart.grid.position`)&&b.config.chart.grid.position===`start`&&b.dataset.length&&b.dataset.some(e=>e.type===`bar`)&&(e.chart.grid.position=`middle`,Re(b.config,`debug`)&&console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")),b.config&&Re(b.config,`chart.highlightArea`)&&(Array.isArray(b.config.chart.highlightArea)?e.chart.highlightArea=b.config.chart.highlightArea.map(e=>mo({defaultConfig:Zi.chart.highlightArea,userConfig:e})):e.chart.highlightArea=mo({defaultConfig:Zi.chart.highlightArea,userConfig:b.config.chart.highlightArea})),b.config&&Re(b.config,`chart.grid.labels.xAxisLabels.showFirstAndLast`)&&(e.chart.grid.labels.xAxisLabels.showFirstAndLast=!!b.config.chart.grid.labels.xAxisLabels.showFirstAndLast);let t=e.theme;if(!t)return e;if(!Qi.value(e))return $i(e),e;let n=We({userConfig:ot[t]||b.config,defaultConfig:e}),r=We({userConfig:b.config,defaultConfig:n});return{...r,customPalette:r.customPalette.length?r.customPalette:De[t]||p}}function mo({defaultConfig:e,userConfig:t}){return We({defaultConfig:e,userConfig:t})}let ho=S({get(){return!!b.dataset&&b.dataset.length},set(e){return e}}),H=k(po()),U=S(()=>H.value.chart),W=S(()=>H.value.chart.grid),G=S(()=>H.value.chart.grid.labels);He({config:()=>H.value,dataset:()=>b.dataset,component:`VueUiXy`,rules:[Ue.emptyArray,{test:e=>e.some(e=>e.series.length>365),message:[`👀 One or more series have more than 365 datapoints. Consider if you really need this level of detail.`,``,`▶️ Use larger time scales, or aggregated values`,``,`▶️ Filter the time range by adding date inputs in your UI.`]},{test:e=>e.some(e=>e.series.length>1095),message:[`👀 One or more series have more than 1095 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 will be impacted.`]},{test:e=>e.length>6,message:[`👀 The number of series is greater than 6. If your chart is hard to read, you might consider other ways of charting the data:`,``,`▶️ A summary table with sparklines (custom, with VueUiSparkline), or VueUiTableSparkline.`,``,`▶️ Individual charts for individual series, or fewer series with comparable scopes.`,``,`▶️ Add filters to reduce the number of visible series on the chart, to reduce cognitive load.`]}]});let{transitionEnabled:go}=nt({config:()=>H.value.transitions,dataset:()=>b.dataset}),_o=S(()=>U.value.userOptions.useCursorPointer),K=k({dataLabels:{show:!0},showTooltip:!0,showTable:!1,isStacked:!1,useIndividualScale:!1});function vo(){let e=G.value.yAxis.stacked,t=G.value.yAxis.useIndividualScale;io.value?(K.value.showTooltip=U.value.tooltip.show===!0,e!==ao.value&&(K.value.isStacked=e,ao.value=e),t!==oo.value&&(K.value.useIndividualScale=t,oo.value=t),K.value.isStacked&&(K.value.useIndividualScale=!0)):(K.value={dataLabels:{show:!0},showTooltip:U.value.tooltip.show===!0,showTable:H.value.showTable===!0,isStacked:e,useIndividualScale:t},ao.value=e,oo.value=t,io.value=!0)}let yo=S(()=>H.value.debug),bo=S(()=>Se({defaultConfig:{useCssAnimation:!1,showTable:!1,chart:{annotations:[],highlightArea:[],backgroundColor:`#99999930`,grid:{stroke:`#6A6A6A`,labels:{show:!1,axis:{yLabel:``,xLabel:``},xAxisLabels:{show:!1},yAxis:{commonScaleSteps:10,useNiceScale:!0,scaleMin:0,scaleMax:134},zeroLine:{show:!0}}},padding:{top:12,bottom:24,left:24,right:24},userOptions:{show:!1},zoom:{show:!1,startIndex:null,endIndex:null}},bar:{serieName:{show:!1},labels:{show:!1},border:{useSerieColor:!1,stroke:`#999999`}},line:{dot:{useSerieColor:!1,fill:`#8A8A8A`},labels:{show:!1}}},userConfig:H.value.skeletonConfig??{}})),xo=S(()=>b.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:`#CACACA`}]),{loading:So,FINAL_DATASET:Co,manualLoading:wo}=Be({...Ot(b),FINAL_CONFIG:H,prepareConfig:po,callback:()=>{Promise.resolve().then(async()=>{(!U.value.zoom.keepState||!Dc.value||q.value.start===0&&q.value.end===0)&&await Ac(),K.value.showTable=H.value.showTable})},skeletonDataset:xo.value,skeletonConfig:Se({defaultConfig:H.value,userConfig:bo.value})}),To=Qt((e,t)=>re({data:e,threshold:t})),Eo=e=>To(e,H.value.downsample.threshold),Do=S(()=>{let e=H.value.downsample.threshold;return Co.value.map(t=>To(t.series,e).length)}),Oo=S(()=>{let e=-1/0;for(let t=0;t<Do.value.length;t+=1){let n=Do.value[t];n>e&&(e=n)}return e}),ko=S(()=>{let e=0;for(let t=0;t<Do.value.length;t+=1){let n=Do.value[t];n>e&&(e=n)}return e}),Ao=S(()=>Oo.value),q=k({start:0,end:Ao.value}),jo=k({start:0,end:Ao.value}),Mo=k(!1),No=k(!1),Po=k(!1),Fo=k(`matrix(1, 0, 0, 1, 0, 0)`),Io=k(!1),Lo=0,Ro=0,zo=0,Bo=0,Vo=k(null),Ho=k(null),Uo=k(null),Wo=k(!1),Go=M({time:0,x:0,y:0,pointerType:null}),Ko=S(()=>U.value.zoom.dragToZoom),qo=S(()=>Ko.value.show&&ho.value&&Dc.value&&!So.value),Jo=S(()=>U.value.zoom.preview.enable&&(jo.value.start!==q.value.start||jo.value.end!==q.value.end));function Yo(e,t){jo.value[e]=t}function Xo(e,t){na.value&&(Y.value&&Xc.value?na.value.setRangeValues(-Number(t),-Number(e)):na.value.setRangeValues(e,t))}function Zo(e,t){if(!Y.value||!Xc.value){Yo(e,t);return}let n=Number(t);Number.isFinite(n)&&Yo(e===`start`?`end`:`start`,-n)}function Qo(e,t=q.value){if(!e||typeof e!=`object`)return null;let n=e.start!==void 0&&e.start!==null,r=e.end!==void 0&&e.end!==null;if(!n&&!r)return null;let i=Number(n?e.start:t.start),a=Number(r?e.end:t.end);return!Number.isFinite(i)||!Number.isFinite(a)?null:{start:i,end:a}}function $o(e){let t=Qo(e);t&&Ji(`update:zoomState`,t)}function es(e=q.value){return{start:Number(e.start),end:Number(e.end)}}function ts(e,t){let n=Number(Q.value?.left)||0,r=Math.max(0,Number(Q.value?.width)||0),i=Number(t?.start),a=Number(t?.end)-i;if(!Number.isFinite(e)||!Number.isFinite(a)||a<=0)return n;if(Y.value){let t=(e-i)/a;return t=Xc.value?1-t:t,n+r*t}let o=Math.max(1,a),s=e-i;if(W.value.position===`middle`){let e=r/o;return n+e/2+s*e}return o<=1?n:n+r/(o-1)*s}function ns(){if(K.value.useIndividualScale)return null;let e=Number(J.value?.min),t=Number(J.value?.max),n=Number(Q.value?.bottom)||0,r=Math.max(0,Number(Q.value?.height)||0);return!Number.isFinite(e)||!Number.isFinite(t)||t===e||r<=0?null:{min:e,max:t,bottom:n,height:r,reversed:Kc.value}}function rs(e,t){if(!t)return Number(Q.value?.bottom)||0;let n=t.max-t.min;if(!Number.isFinite(e)||!Number.isFinite(n)||n===0)return t.bottom;let r=(e-t.min)/n;return t.reversed&&(r=1-r),t.bottom-t.height*r}let is=S(()=>{if(!U.value.userOptions.annotator?.followZoom)return null;let e=Q.value,t=es(),n=t.end-t.start,r=Y.value,i=W.value.position===`middle`,a=r||i?n:Math.max(1,n-1);if(!(a>0)||!(e.width>0)||!(e.height>0))return null;let o=e.width/a*(r&&Xc.value?-1:1),s=ts(t.start,t)-t.start*o,c=ns(),l=c?(c.reversed?1:-1)*c.height/(c.max-c.min):-e.height,u=c?rs(0,c):e.bottom,d=Fo.value.match(/matrix\(([^)]+)\)/)?.[1].split(`,`).map(Number);return{motion:d&&d.every(Number.isFinite)?{scaleX:ba.value?1:d[0],scaleY:ba.value?1:d[3],translateX:ba.value?0:d[4],translateY:ba.value?0:d[5],transition:!ba.value&&Io.value?`transform ${Wi}ms cubic-bezier(0.4, 0, 0.2, 1)`:`none`}:null,x:{origin:s,unit:o},y:{origin:u,unit:l},clip:{x:e.left,y:e.top,width:e.width,height:e.height}}});function as({previousRange:e,targetRange:t,previousYScale:n,targetYScale:r}){let i=Number(t.end)-Number(t.start),a=Number(t.start),o=Y.value?Number(t.end):Number(t.end)-1,s=1,c=0;if(Number.isFinite(a)&&Number.isFinite(o)&&(Y.value||i>1)){let n=ts(a,t),r=ts(o,t),i=ts(a,e),l=ts(o,e),u=r-n;Number.isFinite(u)&&Math.abs(u)>1e-9&&(s=(l-i)/u,c=i-s*n)}let l=1,u=0;if(n&&r){let e=r.min,t=r.max,i=rs(e,r),a=rs(t,r),o=rs(e,n),s=rs(t,n),c=a-i;Number.isFinite(c)&&Math.abs(c)>1e-9&&(l=(s-o)/c,u=o-l*i)}return[s,c,l,u].every(Number.isFinite)?`matrix(${s}, 0, 0, ${l}, ${c}, ${u})`:`matrix(1, 0, 0, 1, 0, 0)`}function os({resetTransform:e=!0}={}){Bo+=1,Lo&&=(cancelAnimationFrame(Lo),0),Ro&&=(cancelAnimationFrame(Ro),0),zo&&=(clearTimeout(zo),0),Io.value=!1,Po.value=!1,e&&(Fo.value=`matrix(1, 0, 0, 1, 0, 0)`)}function ss(e,t){return!R.value||So.value||!ho.value||!e||!t||typeof window<`u`&&window.matchMedia?.(`(prefers-reduced-motion: reduce)`)?.matches?!1:Number.isFinite(e.start)&&Number.isFinite(e.end)&&Number.isFinite(t.start)&&Number.isFinite(t.end)&&e.end>e.start&&t.end>t.start}function cs(e,t){let n=es();if(!ss(e,n))return os(),!1;let r=as({previousRange:e,targetRange:n,previousYScale:t,targetYScale:ns()});if(r===`matrix(1, 0, 0, 1, 0, 0)`)return os(),!1;os();let i=++Bo;return Mc.value=!0,Po.value=!0,Io.value=!1,Fo.value=r,Lo=requestAnimationFrame(()=>{Lo=0,Ro=requestAnimationFrame(()=>{Ro=0,i===Bo&&(Io.value=!0,Fo.value=`matrix(1, 0, 0, 1, 0, 0)`,zo=setTimeout(()=>{zo=0,i===Bo&&(Io.value=!1,Po.value=!1,Mc.value=!1)},Wi))})}),!0}let ls=S(()=>({transform:Fo.value,transformOrigin:`0 0`,transformBox:`view-box`,transition:Io.value?`transform ${Wi}ms cubic-bezier(0.4, 0, 0.2, 1)`:`none`,willChange:Po.value?`transform`:void 0}));function us(e){if(!Po.value||!e)return;let t=Fo.value.match(/matrix\(\s*([^,]+),\s*([^,]+),\s*([^,]+),\s*([^,]+),\s*([^,]+),\s*([^\)]+)\s*\)/);if(!t)return;let n=Number(t[1]),r=Number(t[4]),i=Number(t[5]),a=Number(t[6]),o=Number(e.x),s=Number(e.y);if([n,r,i,a,o,s].every(Number.isFinite))return{transform:`matrix(1, 0, 0, 1, ${n*o+i-o}, ${r*s+a-s})`,transformOrigin:`0 0`,transformBox:`view-box`,transition:Io.value?`transform ${Wi}ms cubic-bezier(0.4, 0, 0.2, 1)`:`none`,willChange:`transform`}}let ds=S(()=>Po.value?`url(#vue_ui_xy_zoom_clip_${I.value})`:void 0);function fs(e,{transition:t=!1}={}){let n=Qo(e);if(!n)return null;let{start:r,end:i}=n;if(r!==Number(q.value.start)||i!==Number(q.value.end)){let e=t?es():null,n=t?ns():null;Lc(),Fc={},q.value={start:r,end:i},jo.value={start:r,end:i},ms(),t&&cs(e,n)}return{start:Number(q.value.start),end:Number(q.value.end)}}function ps(e,{transition:t=!0}={}){let n=fs(e,{transition:t});return n?(Ji(`update:zoomState`,n),n):null}function ms(){if(Y.value){let e=Qu.value.min,t=Qu.value.max,n=Number(q.value.start),r=Number(q.value.end);Number.isFinite(n)||(n=e),Number.isFinite(r)||(r=t),n=Math.max(e,Math.min(n,t)),r=Math.max(n,Math.min(r,t)),r<=n&&(n=e,r=t),q.value={start:n,end:r},jo.value.start=n,jo.value.end=r,Xo(n,r);return}let e=Math.max(1,...Co.value.map(e=>Eo(e.series).length)),t=Math.max(0,Math.min(q.value.start??0,e-1)),n=Math.max(t+1,Math.min(q.value.end??e,e));(!Number.isFinite(t)||!Number.isFinite(n)||n<=t)&&(t=0,n=e),q.value={start:t,end:n},jo.value.start=t,jo.value.end=n,Xo(t,n)}let hs=S(()=>{let{left:e,top:t,width:n,height:r}=Q.value,i=q.value.start,a=q.value.end,o=a-i,s=n/o,c=Y.value&&Xc.value,l=c?a-jo.value.end:jo.value.start-i,u=c?a-jo.value.start:jo.value.end-i,d=Math.max(0,Math.min(o,l)),f=Math.max(0,Math.min(o,u));return{x:e+d*s,y:t,width:(f-d)*s,height:r,fill:U.value.zoom.preview.fill,stroke:U.value.zoom.preview.stroke,"stroke-width":U.value.zoom.preview.strokeWidth,"stroke-dasharray":U.value.zoom.preview.strokeDasharray,"stroke-linecap":`round`,"stroke-linejoin":`round`,style:{pointerEvents:`none`,transition:`none !important`,animation:`none !important`}}});jt(()=>b.selectedXIndex,e=>{if([null,void 0].includes(b.selectedXIndex)){z.value=null;return}let t=e-q.value.start;t<0||e>=q.value.end?z.value=null:z.value=t??null},{immediate:!0});let{isPrinting:gs,isImaging:_s,generatePdf:vs,generateImage:ys}=tt({elementId:`vue-ui-xy_${I.value}`,fileName:U.value.title.text||`vue-ui-xy`,options:U.value.userOptions.print}),bs=k(!1),xs=S(()=>Le(H.value.customPalette)),Ss=S(()=>{let e=G.value.yAxis.scaleMin;if(e==null)return null;let t=Number(e);return Number.isFinite(t)?t:null}),Cs=S(()=>{let e=J.value.min,t=J.value.max;return Yc({value:e<=0&&t>=0?0:e>0?e:t,scaleMin:e,scaleMax:t,individualHeight:Q.value.height})}),ws=S(()=>{let e=G.value.yAxis.scaleMax;if(e==null)return null;let t=Number(e);return Number.isFinite(t)?t:null}),Ts=S(()=>Ss.value!==null||ws.value!==null),Es=S(()=>Vu(Fs.value.filter(e=>!Ta.value.has(e.id)),0,1)),Ds=S(()=>{let{min:e,max:t}=Es.value;if(!Ts.value){let t=e;return t>0?0:t}let n=Ss.value===null?e>0?0:e:Ss.value,r=ws.value===null?t:ws.value;return $t(e<n?e:n,t>r?t:r).min}),Os=S(()=>{let{min:e,max:t}=Es.value;if(!Ts.value){let e=t;return Ds.value===e?e+1:e}let n=Ss.value===null?e>0?0:e:Ss.value,r=ws.value===null?t:ws.value;return $t(e<n?e:n,t>r?t:r).max}),J=S(()=>G.value.yAxis.useNiceScale?he(Ds.value,Os.value<0?0:Os.value,G.value.yAxis.commonScaleSteps):Ie(Ds.value,Os.value<0?0:Os.value,G.value.yAxis.commonScaleSteps)),ks=S(()=>[null,void 0].includes(G.value.yAxis.scaleMin)?J.value.min>=0?0:Math.abs(J.value.min):-J.value.min),Y=S(()=>Co.value.some(e=>Array.isArray(e.series)&&e.series.some(Xt)));Mt(()=>{Y.value&&Co.value.some(e=>!Ms(e))&&console.warn(`Vue Data UI - VueUiXy: mixed continuous and non-continuous series are not supported in the same chart.
|
|
4
|
+
`)}function Kt(e,t,n,r,i=!1,a=null,o={minimum:!0,maximum:!0}){o=Lt(o,r.options);let s=new Intl.NumberFormat(r.locale,{maximumFractionDigits:4}),c=[],l=n.left+n.width,u=Math.max(1e-7,2**-52*32*Math.max(1,Math.abs(n.left),Math.abs(l),Math.abs(n.top),Math.abs(n.bottom)));for(let d of e){let e=d.id.replace(`series-`,`uniqueId_`),f=t.find(t=>t.id===e);if(f)for(let e of[`minimum`,`maximum`]){if(!o[e]||e===`maximum`&&d.maximum.value===d.minimum.value)continue;let t=d[e],p=new Set(t.indices),m=f.plots.find((e,r)=>{let a=e.sourceIndex??(i?f.series[r]?.index:f.sourceIndices?.[r])??f.analysisSliceStart+r;return p.has(a)&&e.value===t.value&&Number.isFinite(e.x)&&Number.isFinite(e.y)&&e.x>=n.left-u&&e.x<=l+u&&e.y>=n.top-u&&e.y<=n.bottom+u});if(!m)continue;let h=r[e===`minimum`?`visualMinimum`:`visualMaximum`].replace(/\{(series|value)\}/g,(e,n)=>n===`series`?d.name||r.series:a?a(t.value,f):s.format(t.value));c.push({id:`${d.id}-${e}`,x:Math.max(n.left,Math.min(l,m.x)),y:Math.max(n.top,Math.min(n.bottom,m.y)),...Rt(m,n),label:h})}}c.push(...Vt(e,t,n,r,i,a,o));let d=Number.isFinite(r.maxAnnotations)?Math.max(1,Math.min(100,Math.trunc(r.maxAnnotations))):24;return c.slice(0,d)}function qt(e){return![null,void 0,NaN,1/0,-1/0].includes(e)}function Jt(e,t){let n=tn(e),r=Array(n).fill(0);for(let e=0;e<t.length&&e<n;e+=1)r[e]=t[e]??null;return r}function Yt(e,t){let n=Object.create(null);for(let r=0;r<e.length;r+=1){let i=e[r],a=String(t(i));n[a]||(n[a]=[]),n[a].push(i)}return n}function Xt(e){return e&&typeof e==`object`&&Number.isFinite(Number(e.x))&&Number.isFinite(Number(e.y))}function Zt(e,t){let n=Number(e),r=Number(t);return!Number.isFinite(n)||!Number.isFinite(r)?!1:!Object.is(n,r)}function Qt(e){let t=/* @__PURE__ */ new WeakMap;return(n,...r)=>{let i=t.get(n),a=JSON.stringify(r);if(i&&i.has(a))return i.get(a);let o=e(n,...r);return i||(i=/* @__PURE__ */ new Map,t.set(n,i)),i.set(a,o),o}}function $t(e,t){let n=Number.isFinite(e)?e:0,r=Number.isFinite(t)?t:1;return n===r?r=n+1:n>r&&([n,r]=[r,n]),{min:n,max:r}}function en(e,t,n=0){return Number.isFinite(e)&&Number.isFinite(t)&&Math.abs(t)>1e-9?e/t:n}function tn(e){return Number.isFinite(e)?Math.max(0,Math.floor(e)):0}var nn=/* @__PURE__ */ e({default:()=>Gi}),rn=[`id`],an=[`id`],on=[`id`],sn={class:`sr-only`,role:`status`},cn={style:{position:`relative`}},ln=[`viewBox`,`aria-label`,`aria-describedby`],un=[`id`],dn=[`x`,`y`,`width`,`height`],fn=[`x`,`y`,`width`,`height`],pn={key:1},mn={class:`vue-ui-xy-grid`},hn=[`stroke`,`x1`,`x2`,`y1`,`y2`],gn=[`stroke`,`x1`,`x2`,`y1`,`y2`],_n={key:1},vn=[`x1`,`x2`,`y1`,`y2`,`stroke`],yn=[`x1`,`x2`,`y1`,`y2`,`stroke`],bn=[`x1`,`x2`,`y1`,`y2`,`stroke`],xn={key:3},Sn=[`d`,`stroke`],Cn={key:4},wn=[`d`,`stroke`],Tn={key:0},En=[`id`],Dn=[`stop-color`,`offset`],On=[`x`,`y`,`height`,`width`,`fill`],kn=[`x`,`y`,`width`],An={key:0},jn=[`x`,`y`,`height`,`width`,`fill`],Mn=[`clip-path`],Nn=[`x`,`y`,`height`,`width`,`rx`,`fill`,`stroke`,`stroke-width`],Pn=[`x`,`y`,`height`,`width`,`rx`,`fill`,`stroke`,`stroke-width`],Fn=[`width`,`x`,`y`],In=[`stroke`,`x1`,`x2`,`y1`,`y2`],Ln={key:2},Rn=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`,`stroke-dasharray`],zn={key:3,class:`vue-ui-xy-crosshair-selection`},Bn=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`,`stroke-dasharray`],Vn=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`,`stroke-dasharray`],Hn=[`cx`,`cy`,`r`,`fill`,`stroke`,`stroke-width`],Un=[`x`,`y`,`width`,`height`,`stroke`,`stroke-width`,`stroke-linecap`,`stroke-linejoin`,`stroke-dasharray`],Wn=[`opacity`],Gn=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],Kn=[`fill`,`font-size`,`transform`],qn=[`x1`,`x2`,`y1`,`y2`,`stroke`],Jn=[`transform`,`text-anchor`,`font-size`,`fill`],Yn=[`x1`,`x2`,`y1`,`y2`,`stroke`],Xn=[`transform`,`font-size`,`text-anchor`,`fill`],Zn={key:6,class:`vue-ui-xy-crosshair-selection`},Qn=[`transform`,`font-size`,`text-anchor`,`fill`],$n={key:7,class:`vue-ui-xy-crosshair-selection`},er=[`cx`,`cy`,`r`,`fill`,`stroke`,`stroke-width`],tr=[`clip-path`],nr=[`width`,`x`,`y`],rr={style:{width:`100%`}},ir=[`d`,`stroke`,`stroke-width`,`stroke-dasharray`],ar=[`d`,`stroke`,`stroke-width`,`stroke-dasharray`],or=[`d`,`stroke`,`stroke-width`,`stroke-dasharray`],sr=[`d`,`stroke`,`stroke-width`,`stroke-dasharray`],cr=[`d`,`stroke`,`stroke-width`,`stroke-dasharray`],lr={key:0},ur={key:1},dr=[`d`,`fill`,`fill-opacity`],fr={key:0},pr=[`d`,`fill`],mr=[`d`,`fill`],hr=[`d`,`fill`],gr=[`d`,`fill`],_r=[`d`,`stroke`,`stroke-width`,`stroke-dasharray`],vr=[`d`,`stroke`,`stroke-width`,`stroke-dasharray`],yr=[`d`,`stroke`,`stroke-width`,`stroke-dasharray`],br=[`d`,`stroke`,`stroke-width`,`stroke-dasharray`],xr=[`d`,`stroke`,`stroke-width`,`stroke-dasharray`],Sr={class:`vue-ui-xy-line-markers`},Cr=[`width`,`x`,`y`],wr={style:{width:`100%`}},Tr={key:8},Er=[`text-anchor`,`font-size`,`transform`,`fill`,`stroke`,`innerHTML`],Dr=[`transform`,`font-size`,`fill`,`font-weight`],Or={key:9},kr=[`transform`,`text-anchor`,`font-size`,`fill`,`stroke`,`innerHTML`],Ar={key:10},jr=[`x`,`y`],Mr=[`innerHTML`],Nr=[`x`,`y`],Pr=[`innerHTML`],Fr=[`x1`,`x2`,`y1`,`y2`,`stroke`],Ir={key:11},Lr=[`transform`,`text-anchor`,`font-size`,`fill`,`stroke`,`innerHTML`],Rr={key:12},zr=[`x`,`y`],Br=[`innerHTML`],Vr=[`x`,`y`],Hr=[`innerHTML`],Ur=[`x1`,`x2`,`y1`,`y2`,`stroke`],Wr=[`x`,`y`,`font-size`,`fill`,`innerHTML`],Gr=[`x`,`y`,`font-size`,`fill`,`innerHTML`],Kr=[`x`,`y`,`font-size`,`fill`,`innerHTML`],qr=[`x`,`y`,`font-size`,`fill`,`innerHTML`],Jr={key:0},Yr=[`id`],Xr=[`fill`,`stroke`],Zr=[`x1`,`x2`,`y1`,`y2`,`stroke`,`marker-end`],Qr=[`x1`,`x2`,`y1`,`y2`,`stroke`,`marker-end`],$r=[`transform`,`font-size`,`fill`,`stroke`],ei=[`x`,`y`,`width`,`height`,`fill`,`onMouseenter`],ti=[`font-size`,`fill`,`transform`],ni=[`x`,`y`,`font-size`,`fill`],ri=[`opacity`],ii=[`text-anchor`,`font-size`,`fill`,`stroke`,`transform`,`onClick`],ai=[`text-anchor`,`font-size`,`fill`,`transform`,`innerHTML`,`onClick`],oi={key:15},si=[`text-anchor`,`font-size`,`fill`,`transform`,`innerHTML`],ci={key:16},li=[`x1`,`y1`,`x2`,`y2`,`stroke`,`stroke-width`,`stroke-dasharray`],ui=[`x1`,`y1`,`x2`,`y2`,`stroke`,`stroke-width`,`stroke-dasharray`],di=[`y`,`x`,`width`,`height`,`fill`],fi=[`id`,`transform`,`font-size`,`fill`,`text-anchor`],pi={key:17,style:{"pointer-events":`none`}},mi=[`x`,`y`],hi=[`innerHTML`],gi=[`cx`,`cy`,`r`,`fill`],_i=[`x`,`y`,`width`,`height`,`fill`,`fill-opacity`,`stroke`,`stroke-opacity`,`stroke-width`,`stroke-dasharray`],vi=[`data-start`,`data-end`],yi={key:0,style:{position:`absolute`,top:`100%`,left:`0`,width:`100%`},"data-dom-to-png-ignore":``,"aria-hidden":`true`},bi={key:6,class:`vue-data-ui-watermark`},xi={class:`vue-ui-xy-tag-arrow`,height:`20`,viewBox:`0 0 10 20`,style:{position:`absolute`,right:`100%`,top:`50%`,transform:`translateY(-50%)`}},Si=[`fill`],Ci=[`innerHTML`],wi={class:`vue-ui-xy-tag-arrow`,height:`100%`,viewBox:`0 0 10 20`,style:{position:`absolute`,left:`100%`,top:`50%`,transform:`translateY(-50%)`}},Ti=[`fill`],Ei=[`innerHTML`],Di={class:`vue-ui-xy-tag-arrow`,height:`20`,viewBox:`0 0 10 20`,style:{position:`absolute`,right:`100%`,top:`50%`,transform:`translateY(-50%)`}},Oi=[`fill`],ki=[`innerHTML`],Ai={class:`vue-ui-xy-tag-arrow`,height:`100%`,viewBox:`0 0 10 20`,style:{position:`absolute`,left:`100%`,top:`50%`,transform:`translateY(-50%)`}},ji=[`fill`],Mi=[`innerHTML`],Ni=[`id`],Pi=[`onClick`,`onKeydown`],Fi={key:0,viewBox:`0 0 20 12`,height:`1em`,width:`1.43em`,"aria-hidden":`true`},Ii=[`stroke`,`fill`],Li={key:1,viewBox:`0 0 40 40`,height:`1em`,width:`1em`,"aria-hidden":`true`},Ri=[`fill`],zi=[`fill`],Bi={key:2,viewBox:`0 0 12 12`,height:`1em`,width:`1em`,"aria-hidden":`true`},Vi={style:{display:`flex`,"flex-direction":`row`,gap:`6px`,"align-items":`center`,"padding-left":`6px`},"data-dom-to-png-ignore":``},Hi={key:0},Ui={key:1},Wi=280,Gi=/*#__PURE__*/ b({__name:`vue-ui-xy`,props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}},selectedXIndex:{type:Number,default:void 0},zoomState:{type:Object,default:null}},emits:[`selectTimeLabel`,`selectX`,`selectLegend`,`zoomStart`,`zoomEnd`,`zoomReset`,`update:zoomState`,`copyAlt`],setup(e,{expose:Te,emit:Fe}){let b=e,Rt=vt(()=>import(`./DataTable-Dof6yhO7.js`)),zt=vt(()=>import(`./Tooltip-C1q0Qoh7.js`)),Bt=vt(()=>import(`./UserOptions-B9EyfU9n.js`).then(e=>e.n)),Vt=vt(()=>import(`./BaseIcon-CoY0vuL3.js`).then(e=>e.n)),nn=vt(()=>import(`./vue-ui-table-sparkline-B6ynMUGE.js`).then(e=>e.n)),Gi=vt(()=>import(`./PackageVersion-D6_O7PmZ.js`).then(e=>e.t)),Ki=vt(()=>import(`./PenAndPaper-DoNTA-SV.js`).then(e=>e.t)),qi=vt(()=>import(`./BaseDraggableDialog-BK7dj9O6.js`).then(e=>e.n)),Ji=Fe,Yi=kt(),Xi=yt(),{vue_ui_xy:Zi}=i(),{isThemeValid:Qi,warnInvalidTheme:$i}=Ge(),ea=M(null),ta=M(null),na=M(null),ra=M(null),ia=M(null),aa=M(null),oa=M(null),sa=M(null),ca=M(null),la=M(null),ua=M(null),da=M(null),fa=M(null),pa=M(null),ma=k(0),P=k(null),ha=k(!0),ga=k(600),F=k(1e3),_a=k(`0 0 1000 600`),va=M({x:0,y:0}),ya=M({line:`line`,bar:`bar`,plot:`plot`}),ba=k(!1),xa=k(!1),Sa=k(!1),Ca=k(null),wa=k([]),Ta=S(()=>new Set(wa.value)),I=k(pe()),Ea=k(0),Da=k(0),Oa=k(0),ka=k(!0),Aa=k(0),L=k(null),ja=k(!1),Ma=k(!0),Na=k(!0),R=M(null),Pa=k({}),Fa=M(null),Ia=k(!1),La=M(null),Ra=k(null),z=k(null),za=k(null),Ba=M({x:0,y:0}),Va=M(null),Ha=M(null),Ua=M(null),Wa=M(null),Ga=k(null),Ka=k(null),qa=M(null),Ja=k(!1),Ya=k(0),Xa=k(0),Za=rt({elementRef:qa,minimumWidth:2,minimumHeight:2,stableFramesRequired:2,once:!1,onSizeAccepted:()=>{eo()}});function Qa(){qa.value=ea.value?.parentNode??null}function $a(){return new Promise(e=>{requestAnimationFrame(()=>{requestAnimationFrame(e)})})}async function eo(){let e=++Xa.value;Ja.value=!1,await St(),await $a(),await $a(),e===Xa.value&&(Ya.value+=1,Ja.value=!0)}let to=k(!1);function no(){to.value||(to.value=!0,St(()=>{to.value=!1,Qa(),eo()}))}let ro=S(()=>({height:ga.value,width:F.value})),io=k(!1),ao=k(null),oo=k(null),B=k({xAxis:18,yAxis:12,dataLabels:20,plotLabels:10}),so=k({plot:3,line:3,selectedLine:3}),co=k(1);function lo(){let e=R.value;if(!e)return null;let t=e.getScreenCTM?.();if(t){let e=Math.hypot(Number(t.a),Number(t.b)),n=Math.hypot(Number(t.c),Number(t.d));if(Number.isFinite(e)&&e>0&&Number.isFinite(n)&&n>0)return(e+n)/2}let n=e.getBoundingClientRect?.(),r=e.viewBox?.baseVal;if(n&&r&&Number(n.width)>0&&Number(n.height)>0&&Number(r.width)>0&&Number(r.height)>0){let e=Math.min(Number(n.width)/Number(r.width),Number(n.height)/Number(r.height));if(Number.isFinite(e)&&e>0)return e}return null}function uo(){let e=lo();!Number.isFinite(e)||e<=0||(co.value=e)}function V(e){let t=Number(e);return Number.isFinite(t)?t*co.value:e}let fo=S(()=>Math.max(so.value.line*1.5,so.value.selectedLine));Tt(()=>{uo(),typeof ResizeObserver<`u`&&R.value&&(Ha.value=new ResizeObserver(()=>{uo()}),Ha.value.observe(R.value)),Ia.value=!0,b.dataset.length&&yo.value&&b.dataset.forEach((e,t)=>{[null,void 0].includes(e.series)&&_e({componentName:`VueUiXy`,type:`datasetSerieAttribute`,property:`series (number[])`,index:t})}),Qa(),Za.start(),eo()}),jt([F,ga,xa],async()=>{await St(),uo()},{flush:`post`}),wt(()=>{Ha.value&&=(Ha.value.disconnect(),null)});function po(){if(!Object.keys(b.config||{}).length)return Zi;let e=We({userConfig:b.config,defaultConfig:Zi});b.config&&Re(b.config,`chart.highlightArea`)&&(Array.isArray(b.config.chart.highlightArea)?e.chart.highlightArea=b.config.chart.highlightArea:e.chart.highlightArea=[b.config.chart.highlightArea]),b.config&&Re(b.config,`chart.annotations`)&&Array.isArray(b.config.chart.annotations)&&b.config.chart.annotations.length?e.chart.annotations=b.config.chart.annotations.map(e=>We({defaultConfig:Zi.chart.annotations[0],userConfig:e})):e.chart.annotations=[],b.config&&Re(b.config,`chart.grid.position`)&&b.config.chart.grid.position===`start`&&b.dataset.length&&b.dataset.some(e=>e.type===`bar`)&&(e.chart.grid.position=`middle`,Re(b.config,`debug`)&&console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")),b.config&&Re(b.config,`chart.highlightArea`)&&(Array.isArray(b.config.chart.highlightArea)?e.chart.highlightArea=b.config.chart.highlightArea.map(e=>mo({defaultConfig:Zi.chart.highlightArea,userConfig:e})):e.chart.highlightArea=mo({defaultConfig:Zi.chart.highlightArea,userConfig:b.config.chart.highlightArea})),b.config&&Re(b.config,`chart.grid.labels.xAxisLabels.showFirstAndLast`)&&(e.chart.grid.labels.xAxisLabels.showFirstAndLast=!!b.config.chart.grid.labels.xAxisLabels.showFirstAndLast);let t=e.theme;if(!t)return e;if(!Qi.value(e))return $i(e),e;let n=We({userConfig:ot[t]||b.config,defaultConfig:e}),r=We({userConfig:b.config,defaultConfig:n});return{...r,customPalette:r.customPalette.length?r.customPalette:De[t]||p}}function mo({defaultConfig:e,userConfig:t}){return We({defaultConfig:e,userConfig:t})}let ho=S({get(){return!!b.dataset&&b.dataset.length},set(e){return e}}),H=k(po()),U=S(()=>H.value.chart),W=S(()=>H.value.chart.grid),G=S(()=>H.value.chart.grid.labels);He({config:()=>H.value,dataset:()=>b.dataset,component:`VueUiXy`,rules:[Ue.emptyArray,{test:e=>e.some(e=>e.series.length>365),message:[`👀 One or more series have more than 365 datapoints. Consider if you really need this level of detail.`,``,`▶️ Use larger time scales, or aggregated values`,``,`▶️ Filter the time range by adding date inputs in your UI.`]},{test:e=>e.some(e=>e.series.length>1095),message:[`👀 One or more series have more than 1095 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 will be impacted.`]},{test:e=>e.length>6,message:[`👀 The number of series is greater than 6. If your chart is hard to read, you might consider other ways of charting the data:`,``,`▶️ A summary table with sparklines (custom, with VueUiSparkline), or VueUiTableSparkline.`,``,`▶️ Individual charts for individual series, or fewer series with comparable scopes.`,``,`▶️ Add filters to reduce the number of visible series on the chart, to reduce cognitive load.`]}]});let{transitionEnabled:go}=nt({config:()=>H.value.transitions,dataset:()=>b.dataset}),_o=S(()=>U.value.userOptions.useCursorPointer),K=k({dataLabels:{show:!0},showTooltip:!0,showTable:!1,isStacked:!1,useIndividualScale:!1});function vo(){let e=G.value.yAxis.stacked,t=G.value.yAxis.useIndividualScale;io.value?(K.value.showTooltip=U.value.tooltip.show===!0,e!==ao.value&&(K.value.isStacked=e,ao.value=e),t!==oo.value&&(K.value.useIndividualScale=t,oo.value=t),K.value.isStacked&&(K.value.useIndividualScale=!0)):(K.value={dataLabels:{show:!0},showTooltip:U.value.tooltip.show===!0,showTable:H.value.showTable===!0,isStacked:e,useIndividualScale:t},ao.value=e,oo.value=t,io.value=!0)}let yo=S(()=>H.value.debug),bo=S(()=>Se({defaultConfig:{useCssAnimation:!1,showTable:!1,chart:{annotations:[],highlightArea:[],backgroundColor:`#99999930`,grid:{stroke:`#6A6A6A`,labels:{show:!1,axis:{yLabel:``,xLabel:``},xAxisLabels:{show:!1},yAxis:{commonScaleSteps:10,useNiceScale:!0,scaleMin:0,scaleMax:134},zeroLine:{show:!0}}},padding:{top:12,bottom:24,left:24,right:24},userOptions:{show:!1},zoom:{show:!1,startIndex:null,endIndex:null}},bar:{serieName:{show:!1},labels:{show:!1},border:{useSerieColor:!1,stroke:`#999999`}},line:{dot:{useSerieColor:!1,fill:`#8A8A8A`},labels:{show:!1}}},userConfig:H.value.skeletonConfig??{}})),xo=S(()=>b.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:`#CACACA`}]),{loading:So,FINAL_DATASET:Co,manualLoading:wo}=Be({...Ot(b),FINAL_CONFIG:H,prepareConfig:po,callback:()=>{Promise.resolve().then(async()=>{(!U.value.zoom.keepState||!Dc.value||q.value.start===0&&q.value.end===0)&&await Ac(),K.value.showTable=H.value.showTable})},skeletonDataset:xo.value,skeletonConfig:Se({defaultConfig:H.value,userConfig:bo.value})}),To=Qt((e,t)=>re({data:e,threshold:t})),Eo=e=>To(e,H.value.downsample.threshold),Do=S(()=>{let e=H.value.downsample.threshold;return Co.value.map(t=>To(t.series,e).length)}),Oo=S(()=>{let e=-1/0;for(let t=0;t<Do.value.length;t+=1){let n=Do.value[t];n>e&&(e=n)}return e}),ko=S(()=>{let e=0;for(let t=0;t<Do.value.length;t+=1){let n=Do.value[t];n>e&&(e=n)}return e}),Ao=S(()=>Oo.value),q=k({start:0,end:Ao.value}),jo=k({start:0,end:Ao.value}),Mo=k(!1),No=k(!1),Po=k(!1),Fo=k(`matrix(1, 0, 0, 1, 0, 0)`),Io=k(!1),Lo=0,Ro=0,zo=0,Bo=0,Vo=k(null),Ho=k(null),Uo=k(null),Wo=k(!1),Go=M({time:0,x:0,y:0,pointerType:null}),Ko=S(()=>U.value.zoom.dragToZoom),qo=S(()=>Ko.value.show&&ho.value&&Dc.value&&!So.value),Jo=S(()=>U.value.zoom.preview.enable&&(jo.value.start!==q.value.start||jo.value.end!==q.value.end));function Yo(e,t){jo.value[e]=t}function Xo(e,t){na.value&&(Y.value&&Xc.value?na.value.setRangeValues(-Number(t),-Number(e)):na.value.setRangeValues(e,t))}function Zo(e,t){if(!Y.value||!Xc.value){Yo(e,t);return}let n=Number(t);Number.isFinite(n)&&Yo(e===`start`?`end`:`start`,-n)}function Qo(e,t=q.value){if(!e||typeof e!=`object`)return null;let n=e.start!==void 0&&e.start!==null,r=e.end!==void 0&&e.end!==null;if(!n&&!r)return null;let i=Number(n?e.start:t.start),a=Number(r?e.end:t.end);return!Number.isFinite(i)||!Number.isFinite(a)?null:{start:i,end:a}}function $o(e){let t=Qo(e);t&&Ji(`update:zoomState`,t)}function es(e=q.value){return{start:Number(e.start),end:Number(e.end)}}function ts(e,t){let n=Number(Q.value?.left)||0,r=Math.max(0,Number(Q.value?.width)||0),i=Number(t?.start),a=Number(t?.end)-i;if(!Number.isFinite(e)||!Number.isFinite(a)||a<=0)return n;if(Y.value){let t=(e-i)/a;return t=Xc.value?1-t:t,n+r*t}let o=Math.max(1,a),s=e-i;if(W.value.position===`middle`){let e=r/o;return n+e/2+s*e}return o<=1?n:n+r/(o-1)*s}function ns(){if(K.value.useIndividualScale)return null;let e=Number(J.value?.min),t=Number(J.value?.max),n=Number(Q.value?.bottom)||0,r=Math.max(0,Number(Q.value?.height)||0);return!Number.isFinite(e)||!Number.isFinite(t)||t===e||r<=0?null:{min:e,max:t,bottom:n,height:r,reversed:Kc.value}}function rs(e,t){if(!t)return Number(Q.value?.bottom)||0;let n=t.max-t.min;if(!Number.isFinite(e)||!Number.isFinite(n)||n===0)return t.bottom;let r=(e-t.min)/n;return t.reversed&&(r=1-r),t.bottom-t.height*r}let is=S(()=>{if(!U.value.userOptions.annotator?.followZoom)return null;let e=Q.value,t=es(),n=t.end-t.start,r=Y.value,i=W.value.position===`middle`,a=r||i?n:Math.max(1,n-1);if(!(a>0)||!(e.width>0)||!(e.height>0))return null;let o=e.width/a*(r&&Xc.value?-1:1),s=ts(t.start,t)-t.start*o,c=ns(),l=c?(c.reversed?1:-1)*c.height/(c.max-c.min):-e.height,u=c?rs(0,c):e.bottom,d=Fo.value.match(/matrix\(([^)]+)\)/)?.[1].split(`,`).map(Number);return{motion:d&&d.every(Number.isFinite)?{scaleX:ba.value?1:d[0],scaleY:ba.value?1:d[3],translateX:ba.value?0:d[4],translateY:ba.value?0:d[5],transition:!ba.value&&Io.value?`transform ${Wi}ms cubic-bezier(0.4, 0, 0.2, 1)`:`none`}:null,x:{origin:s,unit:o},y:{origin:u,unit:l},clip:{x:e.left,y:e.top,width:e.width,height:e.height}}});function as({previousRange:e,targetRange:t,previousYScale:n,targetYScale:r}){let i=Number(t.end)-Number(t.start),a=Number(t.start),o=Y.value?Number(t.end):Number(t.end)-1,s=1,c=0;if(Number.isFinite(a)&&Number.isFinite(o)&&(Y.value||i>1)){let n=ts(a,t),r=ts(o,t),i=ts(a,e),l=ts(o,e),u=r-n;Number.isFinite(u)&&Math.abs(u)>1e-9&&(s=(l-i)/u,c=i-s*n)}let l=1,u=0;if(n&&r){let e=r.min,t=r.max,i=rs(e,r),a=rs(t,r),o=rs(e,n),s=rs(t,n),c=a-i;Number.isFinite(c)&&Math.abs(c)>1e-9&&(l=(s-o)/c,u=o-l*i)}return[s,c,l,u].every(Number.isFinite)?`matrix(${s}, 0, 0, ${l}, ${c}, ${u})`:`matrix(1, 0, 0, 1, 0, 0)`}function os({resetTransform:e=!0}={}){Bo+=1,Lo&&=(cancelAnimationFrame(Lo),0),Ro&&=(cancelAnimationFrame(Ro),0),zo&&=(clearTimeout(zo),0),Io.value=!1,Po.value=!1,e&&(Fo.value=`matrix(1, 0, 0, 1, 0, 0)`)}function ss(e,t){return!R.value||So.value||!ho.value||!e||!t||typeof window<`u`&&window.matchMedia?.(`(prefers-reduced-motion: reduce)`)?.matches?!1:Number.isFinite(e.start)&&Number.isFinite(e.end)&&Number.isFinite(t.start)&&Number.isFinite(t.end)&&e.end>e.start&&t.end>t.start}function cs(e,t){let n=es();if(!ss(e,n))return os(),!1;let r=as({previousRange:e,targetRange:n,previousYScale:t,targetYScale:ns()});if(r===`matrix(1, 0, 0, 1, 0, 0)`)return os(),!1;os();let i=++Bo;return Mc.value=!0,Po.value=!0,Io.value=!1,Fo.value=r,Lo=requestAnimationFrame(()=>{Lo=0,Ro=requestAnimationFrame(()=>{Ro=0,i===Bo&&(Io.value=!0,Fo.value=`matrix(1, 0, 0, 1, 0, 0)`,zo=setTimeout(()=>{zo=0,i===Bo&&(Io.value=!1,Po.value=!1,Mc.value=!1)},Wi))})}),!0}let ls=S(()=>({transform:Fo.value,transformOrigin:`0 0`,transformBox:`view-box`,transition:Io.value?`transform ${Wi}ms cubic-bezier(0.4, 0, 0.2, 1)`:`none`,willChange:Po.value?`transform`:void 0}));function us(e){if(!Po.value||!e)return;let t=Fo.value.match(/matrix\(\s*([^,]+),\s*([^,]+),\s*([^,]+),\s*([^,]+),\s*([^,]+),\s*([^\)]+)\s*\)/);if(!t)return;let n=Number(t[1]),r=Number(t[4]),i=Number(t[5]),a=Number(t[6]),o=Number(e.x),s=Number(e.y);if([n,r,i,a,o,s].every(Number.isFinite))return{transform:`matrix(1, 0, 0, 1, ${n*o+i-o}, ${r*s+a-s})`,transformOrigin:`0 0`,transformBox:`view-box`,transition:Io.value?`transform ${Wi}ms cubic-bezier(0.4, 0, 0.2, 1)`:`none`,willChange:`transform`}}let ds=S(()=>Po.value?`url(#vue_ui_xy_zoom_clip_${I.value})`:void 0);function fs(e,{transition:t=!1}={}){let n=Qo(e);if(!n)return null;let{start:r,end:i}=n;if(r!==Number(q.value.start)||i!==Number(q.value.end)){let e=t?es():null,n=t?ns():null;Lc(),Fc={},q.value={start:r,end:i},jo.value={start:r,end:i},ms(),t&&cs(e,n)}return{start:Number(q.value.start),end:Number(q.value.end)}}function ps(e,{transition:t=!0}={}){let n=fs(e,{transition:t});return n?(Ji(`update:zoomState`,n),n):null}function ms(){if(Y.value){let e=Qu.value.min,t=Qu.value.max,n=Number(q.value.start),r=Number(q.value.end);Number.isFinite(n)||(n=e),Number.isFinite(r)||(r=t),n=Math.max(e,Math.min(n,t)),r=Math.max(n,Math.min(r,t)),r<=n&&(n=e,r=t),q.value={start:n,end:r},jo.value.start=n,jo.value.end=r,Xo(n,r);return}let e=Math.max(1,...Co.value.map(e=>Eo(e.series).length)),t=Math.max(0,Math.min(q.value.start??0,e-1)),n=Math.max(t+1,Math.min(q.value.end??e,e));(!Number.isFinite(t)||!Number.isFinite(n)||n<=t)&&(t=0,n=e),q.value={start:t,end:n},jo.value.start=t,jo.value.end=n,Xo(t,n)}let hs=S(()=>{let{left:e,top:t,width:n,height:r}=Q.value,i=q.value.start,a=q.value.end,o=a-i,s=n/o,c=Y.value&&Xc.value,l=c?a-jo.value.end:jo.value.start-i,u=c?a-jo.value.start:jo.value.end-i,d=Math.max(0,Math.min(o,l)),f=Math.max(0,Math.min(o,u));return{x:e+d*s,y:t,width:(f-d)*s,height:r,fill:U.value.zoom.preview.fill,stroke:U.value.zoom.preview.stroke,"stroke-width":U.value.zoom.preview.strokeWidth,"stroke-dasharray":U.value.zoom.preview.strokeDasharray,"stroke-linecap":`round`,"stroke-linejoin":`round`,style:{pointerEvents:`none`,transition:`none !important`,animation:`none !important`}}});jt(()=>b.selectedXIndex,e=>{if([null,void 0].includes(b.selectedXIndex)){z.value=null;return}let t=e-q.value.start;t<0||e>=q.value.end?z.value=null:z.value=t??null},{immediate:!0});let{isPrinting:gs,isImaging:_s,generatePdf:vs,generateImage:ys}=tt({elementId:`vue-ui-xy_${I.value}`,fileName:U.value.title.text||`vue-ui-xy`,options:U.value.userOptions.print}),bs=k(!1),xs=S(()=>Le(H.value.customPalette)),Ss=S(()=>{let e=G.value.yAxis.scaleMin;if(e==null)return null;let t=Number(e);return Number.isFinite(t)?t:null}),Cs=S(()=>{let e=J.value.min,t=J.value.max;return Yc({value:e<=0&&t>=0?0:e>0?e:t,scaleMin:e,scaleMax:t,individualHeight:Q.value.height})}),ws=S(()=>{let e=G.value.yAxis.scaleMax;if(e==null)return null;let t=Number(e);return Number.isFinite(t)?t:null}),Ts=S(()=>Ss.value!==null||ws.value!==null),Es=S(()=>Vu(Fs.value.filter(e=>!Ta.value.has(e.id)),0,1)),Ds=S(()=>{let{min:e,max:t}=Es.value;if(!Ts.value){let t=e;return t>0?0:t}let n=Ss.value===null?e>0?0:e:Ss.value,r=ws.value===null?t:ws.value;return $t(e<n?e:n,t>r?t:r).min}),Os=S(()=>{let{min:e,max:t}=Es.value;if(!Ts.value){let e=t;return Ds.value===e?e+1:e}let n=Ss.value===null?e>0?0:e:Ss.value,r=ws.value===null?t:ws.value;return $t(e<n?e:n,t>r?t:r).max}),J=S(()=>G.value.yAxis.useNiceScale?he(Ds.value,Os.value<0?0:Os.value,G.value.yAxis.commonScaleSteps):Ie(Ds.value,Os.value<0?0:Os.value,G.value.yAxis.commonScaleSteps)),ks=S(()=>[null,void 0].includes(G.value.yAxis.scaleMin)?J.value.min>=0?0:Math.abs(J.value.min):-J.value.min),Y=S(()=>Co.value.some(e=>Array.isArray(e.series)&&e.series.some(Xt)));Mt(()=>{Y.value&&Co.value.some(e=>!Ms(e))&&console.warn(`Vue Data UI - VueUiXy: mixed continuous and non-continuous series are not supported in the same chart.
|
|
5
5
|
|
|
6
6
|
Continuous mode requires all visible 'line' and 'plot' series to use coordinate-based datasets:
|
|
7
7
|
[{ x: number, y: number }]
|
|
@@ -23,5 +23,5 @@ If you need to mix 'bar', 'line', and 'plot' series in the same chart, all serie
|
|
|
23
23
|
</div>
|
|
24
24
|
</div>
|
|
25
25
|
</div>
|
|
26
|
-
`:e+=`<div style="display:flex;flex-direction:row; align-items:center;gap:3px;white-space:nowrap;"><div style="width:20px">${i}</div> ${r.name}: <b>${c}</b> ${U.value.tooltip.showPercentage?`(${a({v:_(Math.abs(r.value)/t*100),s:`%`,r:U.value.tooltip.roundingPercentage})})`:``}</div>`;let l=dd(r.comments,z.value);U.value.comments.showInTooltip&&l&&(e+=`<div class="vue-data-ui-tooltip-comment" style="background:${g(r.color,12.5)}; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${r.color}">${l}</div>`)}}),`<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${U.value.tooltip.color}">${e}</div>`}),kd=S(()=>{if(!Y.value)return[];let e=/* @__PURE__ */ new Set,t=[];return X.value.forEach(n=>{n.series.forEach(n=>{let r=Number(n?.x);if(!Number.isFinite(r))return;let i=String(r);e.has(i)||(e.add(i),t.push(r))})}),t.sort((e,t)=>Xc.value?t-e:e-t)});function Ad(e){let t=Number(e);return Number.isFinite(t)?y(G.value.xAxis.formatter,t,a({v:t,r:H.value.table.rounding}),{datapoint:t,seriesIndex:null}):`-`}function jd(e){return Y.value?Ad(e):H.value.table.useDefaultTimeFormat?oc.value[e]?.text??`-`:Sd.value(e+q.value.start,H.value.table.timeFormat)}let Md=S(()=>{let e=/* @__PURE__ */ new Map;if(!Y.value)return e;for(let t of X.value){let n=/* @__PURE__ */ new Map;for(let e of t.series){let t=Number(e?.x);Number.isFinite(t)&&!n.has(t)&&n.set(t,e)}e.set(t,n)}return e});function Nd(e,t){if(Y.value){let n=Number(t);return Number.isFinite(n)?Md.value.get(e)?.get(n)?.y??null:null}return e.absoluteValues[t]}function Pd(e,t){let n=Nd(e,t);return qt(n)?Number(n.toFixed(H.value.table.rounding)):``}function Fd(e,t){let n=Nd(e,t);return qt(n)?y(e.type===`line`?H.value.line.labels.formatter:e.type===`bar`?H.value.bar.labels.formatter:H.value.plot.labels.formatter,n,a({p:e.prefix||U.value.labels.prefix,v:n,s:e.suffix||U.value.labels.suffix,r:H.value.table.rounding})):``}function Id(e){return X.value.map(t=>Nd(t,e)??0).reduce((e,t)=>e+t,0)}let Ld=S(()=>{if(Y.value)return kd.value.map(e=>{let t=Id(e);return{period:jd(e),csvValues:X.value.map(t=>Pd(t,e)),formattedValues:X.value.map(t=>Fd(t,e)),sum:t,formattedSum:t.toFixed(H.value.table.rounding)}});let e=[];for(let t=0;t<yc.value;t+=1){let n=Id(t);e.push({period:jd(t),csvValues:X.value.map(e=>Pd(e,t)),formattedValues:X.value.map(e=>Fd(e,t)),sum:n,formattedSum:n.toFixed(H.value.table.rounding)})}return e}),Rd=S(()=>Fs.value.length===0?{head:[],body:[],config:{},columnNames:[]}:{head:X.value.map(e=>({label:e.name,color:e.color,type:e.type})),body:Ld.value.map(e=>[e.period].concat(e.csvValues))}),zd=S(()=>{let e=H.value.table.showSum,t=[Y.value?G.value.axis.xLabel||`X`:``].concat(X.value.map(e=>e.name));e&&(t=t.concat(`__SUM__`));let n=Ld.value.map(t=>[t.period].concat(t.formattedValues,e?t.formattedSum:[])),r={th:{backgroundColor:H.value.table.th.backgroundColor,color:H.value.table.th.color,outline:H.value.table.th.outline},td:{backgroundColor:H.value.table.td.backgroundColor,color:H.value.table.td.color,outline:H.value.table.td.outline},breakpoint:H.value.table.responsiveBreakpoint},i=[Y.value?G.value.axis.xLabel||`X`:H.value.table.columnNames.period].concat(X.value.map(e=>e.name),H.value.table.columnNames.total);return{head:t,body:n,config:r,colNames:i}});function Bd(e=null){let t=[[U.value.title.text],[U.value.title.subtitle.text],[``]],n=[Y.value?G.value.axis.xLabel||`X`:H.value.table.columnNames.period,...Rd.value.head.map(e=>e.label)],r=Rd.value.body,i=t.concat([n]).concat(r),a=c(i);e?e(a):Oe({csvContent:a,title:U.value.title.text||`vue-ui-xy`})}function Vd(e,t=null){if(Ls.value)return;Sa.value=e;let n=X.value.map(e=>({...e,name:e.name,value:[null,void 0,NaN].includes(e.absoluteValues[t])?null:e.absoluteValues[t],color:e.color,type:e.type}));e?(z.value=t,H.value.events.datapointEnter&&H.value.events.datapointEnter({datapoint:n,seriesIndex:t+q.value.start})):(z.value=null,H.value.events.datapointLeave&&H.value.events.datapointLeave({datapoint:n,seriesIndex:t+q.value.start}))}function Hd(){K.value.showTable=!K.value.showTable}function Ud(){K.value.dataLabels.show=!K.value.dataLabels.show}function Wd(){K.value.showTooltip=!K.value.showTooltip}function Gd(e){xa.value=e,Ea.value+=1}function Kd(){H.value.responsiveProportionalSizing?(B.value.dataLabels=Ne({relator:ga.value,adjuster:400,source:G.value.fontSize,threshold:10,fallback:10}),B.value.yAxis=Ne({relator:F.value,adjuster:1e3,source:G.value.axis.fontSize,threshold:10,fallback:10}),B.value.xAxis=Ne({relator:F.value,adjuster:1e3,source:G.value.xAxisLabels.fontSize,threshold:10,fallback:10}),B.value.plotLabels=Ne({relator:F.value,adjuster:800,source:U.value.labels.fontSize,threshold:10,fallback:10}),so.value.plot=Ne({relator:F.value,adjuster:800,source:H.value.plot.radius,threshold:1,fallback:1}),so.value.line=Ne({relator:F.value,adjuster:800,source:H.value.line.radius,threshold:1,fallback:0}),so.value.selectedLine=Ne({relator:F.value,adjuster:800,source:H.value.line.dot.selectedRadius,threshold:1,fallback:0})):(B.value.dataLabels=G.value.fontSize,B.value.yAxis=G.value.axis.fontSize,B.value.xAxis=G.value.xAxisLabels.fontSize,B.value.plotLabels=U.value.labels.fontSize,so.value.plot=H.value.plot.radius,so.value.line=H.value.line.radius,so.value.selectedLine=H.value.line.dot.selectedRadius)}function qd(){if(ze(b.dataset)?(_e({componentName:`VueUiXy`,type:`dataset`,debug:yo.value}),wo.value=!0):b.dataset.forEach((e,t)=>{[null,void 0].includes(e.name)&&(_e({componentName:`VueUiXy`,type:`datasetSerieAttribute`,property:`name (string)`,index:t,debug:yo.value}),wo.value=!0)}),yo.value&&b.dataset.forEach(e=>{e.series.forEach((t,n)=>{ae(t)||console.warn(`VueUiXy has detected an unsafe value in your dataset:\n-----> The serie '${e.name}' contains the value '${t}' at index ${n}.\n'${t}' was converted to null to allow the chart to display.`)})}),ze(b.dataset)||(wo.value=H.value.loading),ja.value=U.value.userOptions.showOnChartHover,Ma.value=U.value.userOptions.keepStateOnChartLeave,Na.value=!U.value.userOptions.showOnChartHover,vo(),H.value.responsive){let e=ea.value.parentNode;fa.value&&(pa.value&&fa.value.unobserve(pa.value),fa.value.disconnect(),fa.value=null,pa.value=null);let{height:t,width:n}=e.getBoundingClientRect(),r=null,i=0;U.value.title.show&&ta.value&&(r=ta.value,i=r.getBoundingClientRect().height);let a=null,o=0;U.value.zoom.show&&Ao.value>6&&ho.value&&na.value&&na.value.$el&&(a=na.value.$el,o=a.getBoundingClientRect().height);let s=null,c=0;U.value.legend.show&&ra.value&&(s=ra.value,c=s.getBoundingClientRect().height);let l=0;ia.value&&(l=ia.value.getBoundingClientRect().height);let u=0;aa.value&&(u=aa.value.getBoundingClientRect().height),ga.value=t-i-c-o-l-u-12,F.value=n,_a.value=`0 0 ${F.value<0?10:F.value} ${ga.value<0?10:ga.value}`,Kd();let d=new ResizeObserver(e=>{for(let t of e)i=U.value.title.show&&ta.value?ta.value.getBoundingClientRect().height:0,o=na.value&&na.value.$el?na.value.$el.getBoundingClientRect().height:0,c=ra.value?ra.value.getBoundingClientRect().height:0,l=ia.value?ia.value.getBoundingClientRect().height:0,u=aa.value?aa.value.getBoundingClientRect().height:0,requestAnimationFrame(()=>{ga.value=t.contentRect.height-i-c-o-l-u-12,F.value=t.contentBoxSize[0].inlineSize??t.contentRect.width,_a.value=`0 0 ${F.value<0?10:F.value} ${ga.value<0?10:ga.value}`,Kd(),no()})});fa.value=d,pa.value=e,d.observe(e)}else ga.value=U.value.height,F.value=U.value.width,B.value.dataLabels=G.value.fontSize,B.value.yAxis=G.value.axis.fontSize,B.value.xAxis=G.value.xAxisLabels.fontSize,B.value.plotLabels=U.value.labels.fontSize,so.value.plot=H.value.plot.radius,so.value.line=H.value.line.radius,so.value.selectedLine=H.value.line.dot.selectedRadius,_a.value=`0 0 ${F.value} ${ga.value}`;no()}function Jd(e){va.value={x:e.clientX,y:e.clientY}}Tt(()=>{qd(),Ac(),document.addEventListener(`mousemove`,Jd,{passive:!0}),document.addEventListener(`scroll`,$s,{passive:!0})}),wt(()=>{document.removeEventListener(`scroll`,$s,{passive:!0}),document.removeEventListener(`mousemove`,Jd,{passive:!0}),fa.value&&(pa.value&&fa.value.unobserve(pa.value),fa.value.disconnect(),fa.value=null,pa.value=null),rf(),xl(),Lc(),os()});let{detectTimeLabelCollisionNow:Yd}=at({timeLabelsEls:la,timeLabels:oc,slicer:q,configRef:H,rotationPath:[`chart`,`grid`,`labels`,`xAxisLabels`,`rotation`],autoRotatePath:[`chart`,`grid`,`labels`,`xAxisLabels`,`autoRotate`,`enable`],isAutoSize:bs,height:ga,width:F,rotation:G.value.xAxisLabels.autoRotate.angle,resizeDebounceMs:0}),Xd=k(!1),Zd=M(null),Qd=k(200),$d=S(()=>z.value??L.value??0),ef=S(()=>{if(!Y.value)return null;if(Ce(Ra.value))return Number(Ra.value);let e=ul.value[0];return Ce(e?.point?.x)?Number(e.point.x):null});function tf(){let e=Math.ceil(Qd.value||200);return Math.min(Math.max(e,1),200)}function nf(){let e=tf(),t=(Y.value&&Ce(ef.value)?Zu({x:ef.value}):tu($d.value))-e/2-(200-e)/2,n=Q.value?.left-(200-e)/2,r=Q.value?.right-(200+e)/2;return _(Math.max(n,Math.min(t,r)))}function rf(){Ga.value!==null&&(cancelAnimationFrame(Ga.value),Ga.value=null),Ua.value&&Wa.value&&Ua.value.unobserve(Wa.value),Ua.value&&=(Ua.value.disconnect(),null),Ka.value&&=(Ka.value(),null),Wa.value=null}function af(e){Ga.value!==null&&cancelAnimationFrame(Ga.value),Ga.value=requestAnimationFrame(()=>{Qd.value=Math.min(Math.max(Math.ceil(e||0),1),200),Ga.value=null})}function of(e){Ua.value&&e&&(Wa.value&&Wa.value!==e&&(Ua.value.unobserve(Wa.value),Wa.value=null),e!==Wa.value&&(St(()=>{e.offsetParent!==null&&af(e.offsetWidth||e.getBoundingClientRect().width||200)}),Ua.value.observe(e),Wa.value=e))}Tt(()=>{Ua.value=new ResizeObserver(e=>{let t=e.find(e=>e.target===Wa.value)||e[0];t&&af(t.contentRect.width||200)}),Ka.value=Mt(e=>{let t=Zd.value;t?(of(t),e(()=>{Ua.value&&Wa.value&&Wa.value!==Zd.value&&(Ua.value.unobserve(Wa.value),Wa.value=null)})):Ua.value&&Wa.value&&(Ua.value.unobserve(Wa.value),Wa.value=null)})});let sf=S(()=>{if(Y.value){if(!Number.isFinite(Number(ef.value)))return``}else if([null,void 0].includes(z.value)&&[null,void 0].includes(L.value))return``;let e=(z.value==null?0:z.value)||(L.value==null?0:L.value),t=U.value.timeTag.customFormat;if(Xd.value=!1,Y.value){let e=ef.value;if(l(t))try{let n=t({absoluteIndex:e,seriesIndex:e,datapoint:Lu.value,bars:fd.value,lines:$.value,plots:md.value,config:H.value});if(typeof n==`string`)return Xd.value=!0,n}catch{console.warn(`Custom format cannot be applied on timeTag.`),Xd.value=!1}return a({v:e,r:G.value.xAxis.rounding})}if(l(t))try{let n=t({absoluteIndex:e+q.value.start,seriesIndex:e,datapoint:Lu.value,bars:fd.value,lines:$.value,plots:md.value,config:H.value});if(typeof n==`string`)return Xd.value=!0,n}catch{console.warn(`Custom format cannot be applied on timeTag.`),Xd.value=!1}if(!Xd.value)return[null,void 0].includes(oc.value[e])?``:G.value.xAxisLabels.datetimeFormatter.enable&&!U.value.timeTag.useDefaultFormat?Sd.value(e+q.value.start,U.value.timeTag.timeFormat):oc.value[e].text});function cf({serie:e,plot:t,type:n}){if(!qt(t.value))return``;let r=a({p:e.prefix||U.value.labels.prefix,v:t.value,s:e.suffix||U.value.labels.suffix,r:H.value[n].labels.rounding}),i=t.datasetXValue,o=Y.value&&Ce(i)?`x: ${a({v:i,r:G.value.xAxis.rounding})}\ny: ${r}`:y(H.value[n].labels.formatter,t.value,r,{datapoint:t,serie:e});return h({content:o,fontSize:B.value.plotLabels,fill:H.value[n].labels.color,x:0,y:0})}function lf({plot:e}){let t=H.value.bar.labels.offsetY,n=Math.abs(nl(e)),r=e.value<0,i={x:ol(e)+H.value.bar.labels.offsetX,y:_(e.y)+(H.value.bar.labels.alwaysOnTop?t-(r?n:0):e.value>=0?t:-t*3)};return`translate(${i.x}, ${i.y}) rotate(${H.value.bar.labels.rotation})`}function uf({plot:e,type:t}){let n=H.value[t].labels.offsetY,r={x:e.x+H.value[t].labels.offsetX,y:_(e.y)+(H.value[t].labels.alwaysOnTop||e.value>=0?n:-n*3)};return`translate(${r.x}, ${r.y}) rotate(${H.value[t].labels.rotation})`}function df({plot:e,type:t}){if(H.value[t].labels.textAnchor!=null)return H.value[t].labels.textAnchor;let n=e.value>=0;return H.value[t].labels.rotation===0?`middle`:H.value[t].labels.alwaysOnTop||n?`start`:`end`}let ff=S(()=>Y.value?Ce(Ra.value)?Zu({x:Number(Ra.value)}):Ce(dl.value)?dl.value:null:tu(z.value??L.value??0)),pf=S(()=>U.value.highlighter.crosshairs.show&&Sc.value),mf=S(()=>[...$.value,...md.value,...fd.value].flatMap(e=>(e.plots||[]).map((e,t)=>({plot:e,index:t})).filter(({plot:t,index:n})=>_f(e,t,n)).filter(({plot:e})=>qt(e.value)).map(({plot:t,index:n})=>({...t,index:t.index??n,serie:e,x:_(e.type===`bar`?ol(t):t.x),y:_(t.y)})))),hf=S(()=>{if(!pf.value)return null;if(Y.value){let e=ul.value[0],t=e?.point?.raw?.x??e?.point?.x;return Ce(t)?{x:ff.value,text:y(G.value.xAxis.formatter,t,a({v:t,r:U.value.tooltip.roundingValue}))}:null}let e=z.value===null?L.value:z.value;return e==null?null:{x:tu(e),text:oc.value[e]?.text??``}});function gf(e){return G.value.yAxis.position===`right`?Q.value.right:Q.value.left}function _f(e,t,n){return Y.value?ul.value.some(n=>n.datapoint.id===e.id&&n.index===t.index):z.value!==null&&z.value===n||L.value!==null&&L.value===n}function vf({serie:e,plot:t,index:n,type:r}){return!t||!qt(t.value)||!H.value[r].labels.show||!K.value.dataLabels.show?!1:!Object.hasOwn(e,`dataLabels`)||e.dataLabels===!0||_f(e,t,n)}function yf(e,t){let n=[];return e.forEach((e,r)=>{(Array.isArray(e.plots)?e.plots:[]).forEach((i,a)=>{vf({serie:e,plot:i,index:a,type:t})&&n.push({key:`data_label_${t}_${e.id}_${(i.index??a)+q.value.start}`,serie:e,serieIndex:r,plot:i,plotIndex:a})})}),n}let bf=S(()=>yf(fd.value,`bar`)),xf=S(()=>yf(md.value,`plot`)),Sf=S(()=>yf($.value,`line`));jt(()=>b.dataset,e=>{if(Array.isArray(e)&&e.length>0&&(wo.value=!1),U.value.zoom.keepState){let e=Ao.value;if(e>0){let t=q.value.start,n=q.value.end;if(!Dc.value||t===0&&n===0)Ac();else{let r=Math.max(0,Math.min(t,e-1)),i=Math.max(r+1,Math.min(n,e));q.value={start:r,end:i},jo.value={start:r,end:i},Oc.value=0,kc.value=e}}}else q.value={start:0,end:Ao.value};ma.value+=1,Aa.value+=1,no(),ms()},{deep:!0});function Cf(e){let t=be(e);return t?.chart&&delete t.chart.tooltip,JSON.stringify(t)}let wf=Cf(b.config);jt(()=>b.config,(e,t)=>{let n=Cf(e),r=n!==wf;wf=n;let i=po();r?(So.value||(H.value=i),qd(),Oa.value+=1,Da.value+=1,vo(),U.value.zoom.keepState&&Ao.value>0&&(!Dc.value||q.value.start===0&&q.value.end===0)&&Ac(),ms()):(H.value.chart.tooltip=i.chart.tooltip,K.value.showTooltip=H.value.chart.tooltip.show)},{deep:!0});let Tf=k(!1),Ef=k(!1);function Df(){let e=ea.value?.parentNode;if(!e){Ef.value=Tf.value,Tf.value=!1;return}let t=e.getBoundingClientRect();Ef.value=Tf.value,Tf.value=t.width>0&&t.height>0}function Of(){return!Tf.value||Ef.value||Dc.value?!1:q.value.start===0&&q.value.end===0}Tt(()=>{Df(),Va.value=new ResizeObserver(()=>{if(Df(),!Tf.value)return;let e=!Ef.value;qd(),ms(),Of()&&Ac(),e&&Gs()}),ea.value?.parentNode&&Va.value.observe(ea.value.parentNode)}),jt(H,()=>{vo()},{immediate:!0});let kf=S(()=>Ye({config:H,style:U,mutableConfig:K,dialog:qi,accordion:ut,isFullscreen:xa,parent:ea,maxWidth:800,showTable:()=>H.value.showTable}));jt(()=>K.value.showTable,e=>{H.value.showTable||(e&&H.value.table.useDialog&&La.value?La.value.open():La.value&&La.value.close&&La.value.close())});function Af(){K.value.showTable=!1,da.value&&da.value.setTableIconState(!1)}let jf=S(()=>Is.value.map(e=>({shape:e.type===`bar`?`square`:e.shape??`circle`,color:e.color,name:e.name}))),Mf=S(()=>H.value.chart.backgroundColor),Nf=S(()=>H.value.chart.legend),Pf=S(()=>H.value.chart.title),{isCallbackImaging:Ff,isCallbackSvg:If,generateSvg:Lf,onGenerateImage:Rf}=Je({svg:R,title:Pf,legend:Nf,legendItems:jf,backgroundColor:Mf,getSvgCallback:()=>U.value.userOptions.callbacks.svg,generateImage:ys});async function zf(){Ji(`copyAlt`,{config:{...H.value,formattedDates:oc.value},dataset:{lines:$.value,bars:fd.value,plots:md.value}}),U.value.userOptions.callbacks.altCopy?await Promise.resolve(U.value.userOptions.callbacks.altCopy({config:{...H.value,formattedDates:oc.value},dataset:{lines:$.value,bars:fd.value,plots:md.value}})):console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.")}let Bf=S(()=>U.value.userOptions.buttons.analyze&&!So.value&&Ft.some(e=>H.value.analysis.options?.[e]!==!1)&&Ht(Fs.value,Ta.value,Y.value)),Vf=vt(()=>import(`./XyAnalysisOptions-U4UJx51x.js`)),Hf=k(!1),Uf=k(It()),Wf=k(null),Gf=k(null),Kf=M(null),qf=k(null),Jf=S(()=>Fs.value.filter(e=>!Ta.value.has(e.id)&&[`line`,`bar`,`plot`].includes(e.type)).map(e=>({id:e.id,name:e.name}))),Yf=S(()=>Jf.value.length===1?[Jf.value[0].id]:Wf.value??Jf.value.map(e=>e.id)),Xf=!1;function Zf(){Bf.value&&!Hf.value&&(np.value?.beginGeneratedPreview()?(Xf=ba.value,Gf.value=np.value.getAnalysisAppearance(),Hf.value=!0,Kf.value={options:Uf.value,seriesIds:Yf.value,appearance:Gf.value}):rp.value=H.value.analysis.visualBusy)}function Qf(){Hf.value=!1,Kf.value=null,St(()=>da.value?.$el?.querySelector(`[data-cy="user-options-analyze"]`)?.focus())}function $f(){np.value?.finishGeneratedPreview(!1),ba.value=Xf,rp.value=``,Qf()}function ep({options:e,seriesIds:t,appearance:n}){n&&(Gf.value=n),Kf.value={options:{...e},seriesIds:[...t],appearance:Gf.value},!U.value.userOptions.callbacks.analyze&&(op(t),cp(e,n))}function tp({options:e,seriesIds:t,appearance:n}){qf.value=n||Gf.value||np.value?.getAnalysisAppearance(),Uf.value=Lt(e,H.value.analysis.options),Wf.value=[...t],sp(),ap.value=!U.value.userOptions.callbacks.analyze,np.value?.finishGeneratedPreview(!0),np.value?.setAnalysisAppearance(qf.value),ba.value=Xf,Qf()}let np=M(null),rp=k(``),ip=M([]),ap=k(!1);function op(e=Yf.value){let t=new Set(e);ip.value=Wt(Co.value,Ta.value,Y.value,Ut(Fs.value,Y.value,q.value.start)),ip.value=ip.value.filter(e=>t.has(e.id.replace(`series-`,`uniqueId_`))),rp.value=``}function sp(){if(!Bf.value)return;op();let e=U.value.userOptions.callbacks.analyze;e?e({scope:`visible-datapoints`,options:Lt(Uf.value,H.value.analysis.options),seriesIds:[...Yf.value],appearance:qf.value,range:{...es(),scale:Y.value?`continuous`:`category`},series:ip.value,text:Gt(ip.value,H.value.analysis)}):cp()}function cp(e=Uf.value,t=qf.value){let n=Kt(ip.value,hd.value.map(e=>({...e,analysisSliceStart:Math.trunc(q.value.start),analysisUnit:JSON.stringify([e.prefix||U.value.labels.prefix,e.suffix||U.value.labels.suffix,K.value.useIndividualScale||K.value.isStacked?e.id:e.autoScaling?e.scaleLabel:``])})),Q.value,H.value.analysis,Y.value,(e,t)=>a({v:e,r:H.value[t.type].labels.rounding,locale:H.value.analysis.locale}),e),r=np.value?.replaceGeneratedAnnotations(n,t);rp.value=r?n.length?H.value.analysis.visualAdded.replace(`{count}`,String(n.length)):H.value.analysis.visualEmpty:H.value.analysis.visualBusy,r&&n.length&&Hf.value&&(ba.value=!0)}function lp(){Hf.value&&$f(),ap.value=!1,np.value?.replaceGeneratedAnnotations([]),rp.value=``,ip.value=[]}jt(()=>JSON.stringify(b.dataset.map(({name:e,type:t,series:n})=>({name:e,type:t,series:n}))),lp),jt([()=>q.value.start,()=>q.value.end],lp),jt([hd,()=>K.value.isStacked,()=>K.value.useIndividualScale,()=>H.value.analysis,Bf],async()=>{Hf.value?(await St(),Hf.value&&Kf.value&&ep(Kf.value)):ap.value&&!U.value.userOptions.callbacks.analyze&&(await St(),ap.value&&Bf.value&&(op(),cp()))},{deep:!0,flush:`post`}),wt(()=>np.value?.finishGeneratedPreview(!1));let up=k(!1);function dp(){q.value.end>q.value.start&&(za.value=null),tc.value=!0,up.value=!0}function fp(){Ol(),za.value=null,Pl(),up.value=!1,tc.value=!1}function pp(e){if(!R.value||ba.value||document.activeElement!==R.value)return;if(Ol(),e.key===`Escape`){qo.value&&(vl.value||Mo.value)&&(e.preventDefault(),e.stopPropagation(),xl(),Uc());return}let t=e.key===`ArrowLeft`,n=e.key===`ArrowRight`;if(!t&&!n||!q.value.end&&q.value.end!==0)return;let r=q.value.end-q.value.start;if(r<=0)return;if(e.preventDefault(),e.stopPropagation(),Y.value){let e=ml.value.length;if(!e)return;let r=za.value;r!==null&&r>=0&&r<e?n?(r+=1,r>=e&&(r=0)):t&&(--r,r<0&&(r=e-1)):r=n?0:e-1,hl(r);return}let i=za.value,a=ll.value;i!==null&&i>=0&&i<r?n?(i+=1,i>=r&&(i=0)):t&&(--i,i<0&&(i=r-1)):a!==null&&a>=0&&a<r?(i=n?a+1:a-1,i>=r&&(i=0),i<0&&(i=r-1)):i=n?0:r-1,za.value=i,mp(i),Vd(!0,i)}function mp(e){let t=q.value.end-q.value.start;if(t<=0)return;let n=Q.value.width/t,r=Q.value.left+n*e+n/2,i=Q.value.top+Q.value.height/2,a=Pe(r,i,R.value);a&&(Ba.value=a)}let hp=S(()=>{if(!zd.value)return null;let e=H.value.table.showSum,t=[H.value.table.columnNames.period].concat(X.value.map(e=>e.name));return e&&(t=t.concat(H.value.table.columnNames.total)),{headers:t,rows:zd.value.body}});return Te({getData:Ll,getImage:Rl,generatePdf:vs,generateImage:ys,generateSvg:Lf,generateCsv:Bd,hideSeries:Gl,showSeries:Wl,toggleStack:Cc,toggleTable:Hd,toggleLabels:Ud,toggleTooltip:Wd,toggleAnnotator:ac,toggleFullscreen:Gd,copyAlt:zf,resetZoom:Uc,setZoomState:ps}),jt(()=>[F.value,ga.value,B.value,G.value,U.value.padding,H.value.chart.fontFamily,_c.value,sc.value,Ya.value,b.dataset,wa.value,K.value.useIndividualScale,K.value.isStacked,ua.value,sa.value,ca.value,la.value],Ws,{flush:`post`,deep:!0}),(i,o)=>(O(),w(`div`,{id:`vue-ui-xy_${I.value}`,class:E(`vue-data-ui-component vue-ui-xy ${xa.value?`vue-data-ui-wrapper-fullscreen`:``} ${H.value.useCssAnimation?``:`vue-ui-dna`}`),ref_key:`chart`,ref:ea,style:D(`background:${U.value.backgroundColor}; color:${U.value.color};width:100%;font-family:${U.value.fontFamily};${H.value.responsive?`height: 100%`:``}`),onMouseenter:rc,onMouseleave:ic},[T(`div`,{id:`chart-instructions-${I.value}`,class:`sr-only`},[T(`p`,null,Dt(H.value.a11y.translations.keyboardNavigation),1)],8,an),hp.value?.rows?.length?(O(),mt(ft,{key:0,uid:I.value,head:hp.value.headers,body:hp.value.rows,notice:H.value.a11y.translations.tableAvailable,caption:H.value.a11y.translations.tableCaption},null,8,[`uid`,`head`,`body`,`notice`,`caption`])):C(``,!0),(U.value.userOptions.buttons.annotator||U.value.userOptions.buttons.analyze)&&R.value?(O(),mt(N(Ki),xt({key:1,ref_key:`analysisPen`,ref:np},N(n)(U.value.userOptions.annotator),{svgRef:R.value,followZoom:U.value.userOptions.annotator?.followZoom,annotationViewport:is.value,backgroundColor:U.value.backgroundColor,color:U.value.color,active:ba.value&&!Hf.value,isCursorPointer:_o.value,palette:U.value.userOptions.annotatorPalette,onClose:ac}),ht({_:2},[A(N(r),e=>({name:e,fn:Nt(n=>[j(i.$slots,e,Ct(bt(N(t)(e,n))),void 0,!0)])}))]),1040,[`svgRef`,`followZoom`,`annotationViewport`,`backgroundColor`,`color`,`active`,`isCursorPointer`,`palette`])):C(``,!0),Jl.value?(O(),w(`div`,{key:2,ref_key:`noTitle`,ref:aa,class:`vue-data-ui-no-title-space`,style:`height:36px; width: 100%; background:transparent`},null,512)):C(``,!0),U.value.title.show?(O(),w(`div`,{key:3,ref_key:`chartTitle`,ref:ta,class:`vue-ui-xy-title`,style:D(`font-family:${U.value.fontFamily}`)},[(O(),mt(qe,{key:`title_${Oa.value}`,config:{title:{cy:`xy-div-title`,...U.value.title},subtitle:{cy:`xy-div-subtitle`,...U.value.title.subtitle}}},null,8,[`config`]))],4)):C(``,!0),T(`div`,{id:`legend-top-${I.value}`},null,8,on),U.value.userOptions.show&&(Ma.value||Na.value)?(O(),mt(N(Bt),{ref_key:`userOptionsRef`,ref:da,key:`user_options_${Ea.value}`,backgroundColor:U.value.backgroundColor,color:U.value.color,isPrinting:N(gs),isImaging:N(_s),uid:I.value,hasTooltip:U.value.userOptions.buttons.tooltip&&U.value.tooltip.show,hasPdf:U.value.userOptions.buttons.pdf,hasXls:U.value.userOptions.buttons.csv,hasImg:U.value.userOptions.buttons.img,hasSvg:U.value.userOptions.buttons.svg,hasLabel:U.value.userOptions.buttons.labels,hasTable:U.value.userOptions.buttons.table,hasStack:e.dataset.length>1&&U.value.userOptions.buttons.stack,hasFullscreen:U.value.userOptions.buttons.fullscreen,hasAnalyze:Bf.value,onAnalyze:Zf,hasAltCopy:U.value.userOptions.buttons.altCopy,isStacked:K.value.isStacked,isFullscreen:xa.value,chartElement:i.$refs.chart,position:U.value.userOptions.position,isTooltip:K.value.showTooltip,titles:{...U.value.userOptions.buttonTitles},hasAnnotator:U.value.userOptions.buttons.annotator,isAnnotation:ba.value,callbacks:U.value.userOptions.callbacks,tableDialog:H.value.table.useDialog,printScale:U.value.userOptions.print.scale,isCursorPointer:_o.value,onToggleFullscreen:Gd,onGeneratePdf:N(vs),onGenerateCsv:Bd,onGenerateImage:N(Rf),onGenerateSvg:N(Lf),onToggleTable:Hd,onToggleLabels:Ud,onToggleStack:Cc,onToggleTooltip:Wd,onToggleAnnotator:ac,onCopyAlt:zf,style:D({visibility:Ma.value?Na.value?`visible`:`hidden`:`visible`})},ht({_:2},[A(N(Xe)(i.$slots,`menuIcon optionTooltip optionPdf optionCsv optionImg optionSvg optionTable optionLabels optionFullscreen optionAnnotator optionAltCopy optionAnalyze custom-menu-before custom-menu-after`),e=>({name:e,fn:Nt(t=>[j(i.$slots,e,Ct(bt(N(Ze)(e,t))),void 0,!0)])})),i.$slots.optionStack?{name:`optionStack`,fn:Nt(({isStack:e})=>[j(i.$slots,`optionStack`,Ct(bt({isStack:e})),void 0,!0)]),key:`0`}:void 0]),1032,/* @__PURE__ */ `backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasLabel.hasTable.hasStack.hasFullscreen.hasAnalyze.hasAltCopy.isStacked.isFullscreen.chartElement.position.isTooltip.titles.hasAnnotator.isAnnotation.callbacks.tableDialog.printScale.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style`.split(`.`))):C(``,!0),Hf.value&&Bf.value?(O(),mt(N(Vf),{key:5,messages:H.value.analysis,selected:Uf.value,series:Jf.value,selectedSeries:Yf.value,appearance:Gf.value,palette:U.value.userOptions.annotatorPalette,onPreview:ep,isFullscreen:xa.value,fullscreenParent:i.$refs.chart,fontFamily:U.value.fontFamily,isCursorPointer:_o.value,color:U.value.color,backgroundColor:U.value.backgroundColor,onApply:tp,onCancel:$f},ht({_:2},[i.$slots[`analysis-action-color`]?{name:`analysis-action-color`,fn:Nt(({color:e})=>[j(i.$slots,`analysis-action-color`,Ct(bt({color:e})),void 0,!0)]),key:`0`}:void 0]),1032,[`messages`,`selected`,`series`,`selectedSeries`,`appearance`,`palette`,`isFullscreen`,`fullscreenParent`,`fontFamily`,`isCursorPointer`,`color`,`backgroundColor`])):C(``,!0),T(`p`,sn,Dt(rp.value),1),T(`div`,cn,[(O(),w(`svg`,{ref_key:`svgRef`,ref:R,xmlns:`http://www.w3.org/2000/svg`,class:E([{"vue-data-ui-fullscreen--on":xa.value,"vue-data-ui-fulscreen--off":!xa.value,"vue-data-ui-no-transition":!N(go)||N(Us),"vue-ui-xy-chart-zoom-pointer-focus":qo.value&&No.value},`vue-ui-xy-svg vue-data-ui-svg`]),width:`100%`,viewBox:_a.value,style:D({visibility:N(Hs)?`visible`:`hidden`,background:`transparent`,color:U.value.color,fontFamily:U.value.fontFamily,cursor:qo.value?Mo.value?`col-resize`:`crosshair`:void 0,touchAction:qo.value?`pan-y`:void 0,userSelect:qo.value?`none`:void 0,overflow:`visible`}),"aria-label":Kl.value,"aria-describedby":`chart-instructions-${I.value}`,"aria-live":`polite`,role:`img`,tabindex:`0`,preserveAspectRatio:`xMidYMid`,onMousemove:Nl,onMouseleave:Pl,onClick:Fl,onPointerdown:kl,onPointermove:Al,onPointerup:jl,onPointercancel:xl,onFocus:dp,onBlur:fp,onKeydown:pp},[T(`g`,{ref_key:`G`,ref:oa,class:`vue-data-ui-g`},[_t(N(Gi)),j(i.$slots,`svg-underlayer`,{svg:{...ro.value,slicer:q.value,isPrintingImg:N(gs)||N(_s)||N(Ff),isPrintingSvg:N(If),data:hd.value,drawingArea:Q.value}},void 0,!0),T(`defs`,null,[T(`clipPath`,{id:`vue_ui_xy_zoom_clip_${I.value}`},[T(`rect`,{x:Q.value.left,y:Q.value.top,width:Math.max(0,Q.value.width),height:Math.max(0,Q.value.height)},null,8,dn)],8,un)]),i.$slots[`chart-background`]?(O(),w(`foreignObject`,{key:0,x:Math.max(0,Q.value?.left),y:Q.value?.top,width:Math.max(0,Q.value?.width),height:Math.max(0,Q.value?.height),style:{pointerEvents:`none`}},[j(i.$slots,`chart-background`,{},void 0,!0)],8,fn)):C(``,!0),yc.value>0?(O(),w(`g`,pn,[T(`g`,mn,[G.value.xAxis.showBaseline?(O(),w(`line`,{key:0,stroke:W.value.stroke,"stroke-width":`1`,x1:Q.value?.left,x2:Q.value?.right,y1:N(v)(Q.value?.bottom),y2:N(v)(Q.value?.bottom),"stroke-linecap":`round`,style:{animation:`none !important`}},null,8,hn)):C(``,!0),K.value.useIndividualScale?W.value.showHorizontalLines?(O(!0),w(x,{key:2},A(_d.value,e=>(O(),w(`g`,{key:`individual_grid_${e.groupId||e.id}`},[e.id===P.value&&e.yLabels.length?(O(!0),w(x,{key:0},A(e.yLabels,t=>(O(),w(`line`,{key:`selected_individual_grid_line_${e.groupId||e.id}_${t.value}_${t.y}`,x1:Q.value?.left,x2:Q.value?.right,y1:N(v)(t.y),y2:N(v)(t.y),stroke:e.color,"stroke-width":.5,"stroke-linecap":`round`,style:{animation:`none !important`}},null,8,yn))),128)):e.yLabels.length?(O(!0),w(x,{key:1},A(e.yLabels,t=>(O(),w(`line`,{key:`individual_grid_line_${e.groupId||e.id}_${t.value}_${t.y}`,x1:Q.value?.left,x2:Q.value?.right,y1:N(v)(t.y),y2:N(v)(t.y),stroke:e.stroke,"stroke-width":.5,"stroke-linecap":`round`,style:{animation:`none !important`}},null,8,bn))),128)):C(``,!0)]))),128)):C(``,!0):(O(),w(x,{key:1},[G.value.yAxis.showBaseline?(O(),w(`line`,{key:0,class:`vue-ui-xy-y-axis`,stroke:W.value.stroke,"stroke-width":`1`,x1:Z.value?Q.value?.right:Q.value?.left,x2:Z.value?Q.value?.right:Q.value?.left,y1:N(v)(Q.value?.top),y2:N(v)(Q.value?.bottom),"stroke-linecap":`round`,style:{animation:`none !important`}},null,8,gn)):C(``,!0),W.value.showHorizontalLines?(O(),w(`g`,_n,[(O(!0),w(x,null,A(Ru.value,e=>(O(),w(`line`,{key:`horizontal_grid_line_${e.value}_${e.y}`,x1:Q.value?.left,x2:Q.value?.right,y1:N(v)(e.y),y2:N(v)(e.y),stroke:W.value.stroke,"stroke-width":.5,"stroke-linecap":`round`,style:{animation:`none !important`}},null,8,vn))),128))])):C(``,!0)],64)),W.value.showVerticalLines?(O(),w(`g`,xn,[T(`path`,{d:Ys.value,"stroke-width":.5,stroke:W.value.stroke,"stroke-linecap":`round`,style:{animation:`none !important`}},null,8,Sn)])):C(``,!0),G.value.xAxisLabels.show?(O(),w(`g`,Cn,[T(`path`,{d:Xs.value,stroke:W.value.stroke,"stroke-width":1,"stroke-linecap":`round`,style:{animation:`none !important`}},null,8,wn)])):C(``,!0)]),(O(!0),w(x,null,A(fd.value,(e,t)=>(O(),w(`defs`,{key:`def_rect_${t}`},[i.$slots[`bar-gradient`]?j(i.$slots,`bar-gradient`,xt({ref_for:!0},{series:e,positiveId:`rectGradient_pos_${t}_${I.value}`,negativeId:`rectGradient_neg_${t}_${I.value}`}),void 0,!0,0):(O(),w(x,{key:1},[_t(ct,{t:`linear`,id:`rectGradient_pos_${t}_${I.value}`,x2:`0%`,y2:`100%`,stops:[[`0%`,e.color,1],[`62%`,N(me)(e.color,.02),1],[`100%`,N(me)(e.color,.05),1]]},null,8,[`id`,`stops`]),_t(ct,{t:`linear`,id:`rectGradient_neg_${t}_${I.value}`,x2:`0%`,y2:`100%`,stops:[[`0%`,N(me)(e.color,.05),1],[`38%`,N(me)(e.color,.02),1],[`100%`,e.color,1]]},null,8,[`id`,`stops`])],64))]))),128)),(O(!0),w(x,null,A(md.value,(e,t)=>(O(),w(`defs`,{key:`def_plot_${t}`},[_t(ct,{t:`radial`,id:`plotGradient_${t}_${I.value}`,cx:`50%`,cy:`50%`,r:`50%`,fx:`50%`,fy:`50%`,stops:[[`0%`,N(me)(e.color,.05),1],[`100%`,e.color,1]]},null,8,[`id`,`stops`])]))),128)),(O(!0),w(x,null,A($.value,(e,t)=>(O(),w(x,{key:`def_line_${e.id}`},[T(`defs`,null,[_t(ct,{t:`radial`,id:`lineGradient_${t}_${I.value}`,cx:`50%`,cy:`50%`,r:`50%`,fx:`50%`,fy:`50%`,stops:[[`0%`,N(me)(e.color,.05),1],[`100%`,e.color,1]]},null,8,[`id`,`stops`]),i.$slots[`area-gradient`]?j(i.$slots,`area-gradient`,xt({ref_for:!0},{series:e,id:`areaGradient_${t}_${I.value}`}),void 0,!0,0):(O(),mt(ct,{key:1,t:`linear`,id:`areaGradient_${t}_${I.value}`,x1:`0%`,x2:`100%`,y1:`0%`,y2:`0%`,stops:[[`0%`,N(g)(N(me)(e.color,.03),H.value.line.area.opacity),1],[`100%`,N(g)(e.color,H.value.line.area.opacity),1]]},null,8,[`id`,`stops`]))]),e.temperatureColors&&!e.isFlatTemperatureLine?(O(),w(`defs`,Tn,[T(`linearGradient`,{id:`temperature_grad_line_${t}_${I.value}`,gradientTransform:`rotate(90)`},[(O(!0),w(x,null,A(e.temperatureColors,(n,r)=>(O(),w(`stop`,{key:`temperature_grad_stop_${t}_${r}_${I.value}`,"stop-color":n,offset:N(je)(r,e.temperatureColors.length)},null,8,Dn))),128))],8,En)])):C(``,!0)],64))),128)),(O(!0),w(x,null,A(Yl.value,e=>(O(),w(`g`,{key:`highlight_area_${e.from}_${e.span}_${e.color}`},[e.show?(O(),w(x,{key:0},[(O(!0),w(x,null,A(e.span,(t,n)=>(O(),w(`g`,{key:`highlight_area_rect_${e.from}_${n}`},[T(`rect`,{style:D({transition:`none`,opacity:+(e.from+n>=q.value.start&&e.from+n<=q.value.end-1)}),x:ru(e.from+n-q.value.start),y:Q.value?.top,height:Q.value.height<0?10:Q.value.height,width:iu(e.from+n-q.value.start),fill:N(g)(e.color,e.opacity)},null,12,On)]))),128)),(O(!0),w(x,null,A(e.span,(t,n)=>(O(),w(`g`,{key:`highlight_area_caption_${e.from}_${n}`},[e.caption.text&&n===0?(O(),w(`foreignObject`,{key:0,x:ru(e.from+n-q.value.start)-(e.caption.width===`auto`?0:e.caption.width/2-su(e.span)/2),y:Q.value?.top+e.caption.offsetY,style:D({overflow:`visible`,opacity:+(e.to>=q.value.start&&e.from<q.value.end)}),height:`1`,width:e.caption.width===`auto`?su(e.span):e.caption.width},[T(`div`,{style:D(`padding:${e.caption.padding}px;text-align:${e.caption.textAlign};font-size:${e.caption.fontSize}px;color:${e.caption.color};font-weight:${e.caption.bold?`bold`:`normal`}`)},Dt(e.caption.text),5)],12,kn)):C(``,!0)]))),128))],64)):C(``,!0)]))),128)),tc.value&&!Y.value?(O(),w(`g`,An,[(O(!0),w(x,null,A(yc.value,(e,t)=>(O(),w(`g`,{key:`tooltip_trap_highlighter_${t}`},[T(`rect`,{x:ru(t),y:Q.value?.top,height:Q.value.height<0?10:Q.value.height,width:ou(t),fill:[L.value,z.value,Ca.value].includes(t)?N(g)(U.value.highlighter.color,U.value.highlighter.crosshairs.show?0:U.value.highlighter.opacity):`transparent`,style:{transition:`none !important`,animation:`none !important`}},null,8,jn)]))),128))])):C(``,!0),T(`g`,{"clip-path":ds.value},[T(`g`,{class:E([`vue-ui-xy-zoom-geometry`,{"vue-ui-xy-zoom-geometry--transitioning":Po.value}]),style:D(ls.value)},[fd.value.length?(O(!0),w(x,{key:0},A(fd.value,(e,t)=>(O(),w(`g`,{key:`serie_bar_${e.id}`,class:E(`serie_bar_${t}`),style:D(`opacity:${P.value?P.value===e.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(O(!0),w(x,null,A(e.plots,(n,r)=>(O(),w(`g`,{key:`bar_plot_${t}_${r}`},[N(qt)(n.value)?(O(),w(`rect`,{key:0,x:al(n)+wu.value/2,y:K.value.useIndividualScale?cl(n):sl(n),height:K.value.useIndividualScale?Math.abs(nl(n)):Math.abs(tl(n)),width:Cu.value-wu.value,rx:H.value.bar.borderRadius,fill:H.value.bar.useGradient?n.value>=0?`url(#rectGradient_pos_${t}_${I.value})`:`url(#rectGradient_neg_${t}_${I.value})`:e.color,stroke:H.value.bar.border.useSerieColor?e.color:H.value.bar.border.stroke,"stroke-width":H.value.bar.border.strokeWidth,style:D({transition:N(So)||Po.value||!H.value.bar.showTransition?void 0:`all ${H.value.bar.transitionDurationMs}ms ease-in-out`})},null,12,Nn)):C(``,!0),N(qt)(n.value)&&i.$slots.pattern?(O(),w(`rect`,{key:1,x:al(n)-wu.value/2,y:K.value.useIndividualScale?cl(n):sl(n),height:K.value.useIndividualScale?Math.abs(nl(n)):Math.abs(tl(n)),width:Cu.value-wu.value,rx:H.value.bar.borderRadius,fill:`url(#pattern_${I.value}_${e.slotAbsoluteIndex})`,stroke:H.value.bar.border.useSerieColor?e.color:H.value.bar.border.stroke,"stroke-width":H.value.bar.border.strokeWidth,style:D({transition:N(So)||Po.value||!H.value.bar.showTransition?void 0:`all ${H.value.bar.transitionDurationMs}ms ease-in-out`})},null,12,Pn)):C(``,!0),n.comment&&U.value.comments.show?(O(),w(`foreignObject`,{key:2,style:{overflow:`visible`},height:`12`,width:Cu.value+U.value.comments.width,x:al(n)-U.value.comments.width/2+U.value.comments.offsetX,y:N(_)(n.y)+U.value.comments.offsetY+6},[j(i.$slots,`plot-comment`,{plot:{...n,color:e.color,seriesIndex:t,datapointIndex:r}},void 0,!0)],8,Fn)):C(``,!0)]))),128))],6))),128)):C(``,!0)],6)],8,Mn),!K.value.useIndividualScale&&G.value.zeroLine.show?(O(),w(`line`,{key:1,stroke:W.value.stroke,"stroke-width":`1`,x1:Q.value?.left,x2:Q.value?.right,y1:N(v)(el.value),y2:N(v)(el.value),"stroke-linecap":`round`,style:{animation:`none !important`}},null,8,In)):C(``,!0),!U.value.highlighter.crosshairs.show&&(U.value.highlighter.useLine||Y.value)&&Sc.value?(O(),w(`g`,Ln,[T(`line`,{x1:ff.value,x2:ff.value,y1:N(v)(Q.value?.top),y2:N(v)(Q.value?.bottom),stroke:U.value.highlighter.color,"stroke-width":U.value.highlighter.lineWidth,"stroke-dasharray":U.value.highlighter.lineDasharray,"stroke-linecap":`round`,style:{transition:`none !important`,animation:`none !important`,"pointer-events":`none`}},null,8,Rn)])):C(``,!0),pf.value?(O(),w(`g`,zn,[(O(!0),w(x,null,A(mf.value,e=>(O(),w(`g`,{key:`crosshair_${e.serie.id}_${e.index}`},[T(`line`,{x1:U.value.highlighter.crosshairs.stopOnPoint?N(v)(e.x):Q.value.left,x2:U.value.highlighter.crosshairs.stopOnPoint?N(v)(gf(e.x)):Q.value.right,y1:N(v)(e.y),y2:N(v)(e.y),stroke:U.value.highlighter.crosshairs.stroke,"stroke-width":U.value.highlighter.crosshairs.strokeWidth,"stroke-dasharray":U.value.highlighter.crosshairs.strokeDasharray,"stroke-linecap":`round`,style:{"pointer-events":`none`}},null,8,Bn),T(`line`,{x1:N(v)(e.x),x2:N(v)(e.x),y1:U.value.highlighter.crosshairs.stopOnPoint?N(v)(e.y):Q.value.top,y2:U.value.highlighter.crosshairs.stopOnPoint?N(v)(Q.value.bottom):Q.value.bottom,stroke:U.value.highlighter.crosshairs.stroke,"stroke-width":U.value.highlighter.crosshairs.strokeWidth,"stroke-dasharray":U.value.highlighter.crosshairs.strokeDasharray,"stroke-linecap":`round`,style:{"pointer-events":`none`}},null,8,Vn),T(`circle`,{cx:N(v)(gf(e.x)),cy:N(v)(e.y),r:U.value.highlighter.crosshairs.dot.radius,fill:U.value.highlighter.crosshairs.dot.fill,stroke:U.value.highlighter.crosshairs.dot.stroke,"stroke-width":U.value.highlighter.crosshairs.dot.strokeWidth,style:{"pointer-events":`none`}},null,8,Hn)]))),128))])):C(``,!0),W.value.frame.show?(O(),w(`rect`,{key:4,style:{pointerEvents:`none`,transition:`none`,animation:`none !important`},x:Math.max(0,Q.value?.left),y:Q.value?.top,width:Math.max(0,Q.value?.width),height:Q.value.height<0?0:Q.value.height,fill:`transparent`,stroke:W.value.frame.stroke,"stroke-width":W.value.frame.strokeWidth,"stroke-linecap":W.value.frame.strokeLinecap,"stroke-linejoin":W.value.frame.strokeLinejoin,"stroke-dasharray":W.value.frame.strokeDasharray},null,8,Un)):C(``,!0),G.value.show?(O(),w(`g`,{key:5,ref_key:`scaleLabels`,ref:ua,opacity:pf.value?.2:1,style:{transition:`opacity 0.2s`}},[K.value.useIndividualScale?(O(),w(x,{key:0},[(O(!0),w(x,null,A(_d.value,e=>(O(),w(`g`,{key:`individual_scale_axis_${e.groupId||e.id}`},[T(`line`,{x1:K.value.isStacked?Z.value?Q.value.right:Q.value.left:Z.value?e.x:e.x-Q.value.individualOffsetX,x2:K.value.isStacked?Z.value?Q.value.right:Q.value.left:Z.value?e.x:e.x-Q.value.individualOffsetX,y1:K.value.isStacked?N(v)(Q.value?.bottom-e.yOffset-e.individualHeight):N(v)(Q.value?.top),y2:K.value.isStacked?N(v)(Q.value?.bottom-e.yOffset):N(v)(Q.value?.bottom),stroke:e.color,"stroke-width":W.value.stroke,"stroke-linecap":`round`,style:D(`opacity:${P.value?P.value===e.groupId?1:.3:1};transition:opacity 0.2s ease-in-out; animation: none !important`)},null,12,Gn)]))),128)),(O(!0),w(x,null,A(_d.value,e=>(O(),w(`g`,{key:`individual_scale_label_${e.groupId||e.id}`,style:D(`opacity:${P.value?P.value===e.groupId?1:.3:1};transition:opacity 0.2s ease-in-out`)},[T(`text`,{class:E({"vue-data-ui-transition":N(go)&&!N(Us)}),fill:e.color,"font-size":B.value.dataLabels*.8,"text-anchor":`middle`,transform:`translate(${K.value.isStacked?Z.value?Q.value.right+W.value.labels.yAxis.crosshairSize+W.value.labels.yAxis.scaleValueOffsetX+5+W.value.labels.yAxis.labelWidth+Q.value.individualOffsetX+W.value.labels.axis.yLabelOffsetX:Q.value.left-W.value.labels.yAxis.crosshairSize-W.value.labels.yAxis.scaleValueOffsetX-W.value.labels.yAxis.labelWidth-W.value.labels.axis.yLabelOffsetX:Z.value?e.x+W.value.labels.yAxis.crosshairSize+W.value.labels.yAxis.scaleValueOffsetX+5+W.value.labels.yAxis.labelWidth+W.value.labels.axis.yLabelOffsetX:e.x-B.value.dataLabels*.8/2}, ${K.value.isStacked?Q.value?.bottom-e.yOffset-e.individualHeight/2:Q.value?.top+Q.value.height/2}) rotate(-90)`},Dt(e.name)+` `+Dt(e.scaleLabel&&e.unique&&e.scaleLabel!==e.id?`- ${e.scaleLabel}`:``),11,Kn),(O(!0),w(x,null,A(e.yLabels,(t,n)=>(O(),w(x,{key:`individual_scale_y_crosshair_${e.groupId||e.id}_${t.value}_${n}`},[G.value.yAxis.showCrosshairs?(O(),w(`line`,{key:0,x1:K.value.isStacked?Z.value?Q.value.right:Q.value.left:Z.value?e.x:e.x+3-W.value.labels.yAxis.crosshairSize-Q.value.individualOffsetX,x2:K.value.isStacked?Z.value?Q.value.right+U.value.grid.labels.yAxis.crosshairSize:Q.value.left-U.value.grid.labels.yAxis.crosshairSize:Z.value?e.x+W.value.labels.yAxis.crosshairSize:e.x-Q.value.individualOffsetX,y1:N(v)(t.y),y2:N(v)(t.y),stroke:e.color,"stroke-width":1,"stroke-linecap":`round`,style:{animation:`none !important`}},null,8,qn)):C(``,!0)],64))),128)),(O(!0),w(x,null,A(e.yLabels,(t,n)=>(O(),w(`text`,{class:E({"vue-data-ui-transition":N(go)&&!N(Us)}),key:`individual_scale_y_label_${e.groupId||e.id}_${t.value}_${n}`,transform:`translate(${K.value.isStacked?Z.value?Q.value.right+W.value.labels.yAxis.crosshairSize+W.value.labels.yAxis.scaleValueOffsetX+5:Q.value.left-W.value.labels.yAxis.crosshairSize-W.value.labels.yAxis.scaleValueOffsetX-5:Z.value?e.x+W.value.labels.yAxis.crosshairSize+W.value.labels.yAxis.scaleValueOffsetX+5:e.x-5-Q.value.individualOffsetX}, ${N(v)(t.y)+B.value.dataLabels/3})`,"text-anchor":Z.value?`start`:`end`,"font-size":B.value.dataLabels,fill:e.color},Dt(N(y)(G.value.yAxis.formatter,t.value,N(a)({p:t.prefix,v:t.value,s:t.suffix,r:W.value.labels.yAxis.rounding}),{datapoint:t.datapoint,seriesIndex:n})),11,Jn))),128))],4))),128))],64)):(O(!0),w(x,{key:1},A(Ru.value,(e,t)=>(O(),w(`g`,{key:`yLabel_${t}`},[N(qt)(e)&&e.value>=J.value.min&&e.value<=J.value.max&&G.value.yAxis.showCrosshairs?(O(),w(`line`,{key:0,x1:Z.value?Q.value?.right:Q.value?.left,x2:Z.value?Q.value?.right+G.value.yAxis.crosshairSize:Q.value?.left-G.value.yAxis.crosshairSize,y1:N(v)(e.y),y2:N(v)(e.y),stroke:W.value.stroke,"stroke-width":`1`,"stroke-linecap":`round`,style:{animation:`none !important`}},null,8,Yn)):C(``,!0),e.value>=J.value.min&&e.value<=J.value.max?(O(),w(`text`,{key:1,class:E({"vue-data-ui-transition":N(go)&&!N(Us)}),transform:`translate(${Z.value?Q.value.right+G.value.yAxis.crosshairSize+G.value.yAxis.scaleValueOffsetX+5:Q.value.scaleLabelX-G.value.yAxis.crosshairSize}, ${N(_)(e.y+B.value.dataLabels/3)})`,"font-size":B.value.dataLabels,"text-anchor":Z.value?`start`:`end`,fill:G.value.color},Dt(N(qt)(e.value)?N(y)(W.value.labels.yAxis.formatter,e.value,N(a)({p:e.prefix,v:e.value,s:e.suffix,r:U.value.grid.labels.yAxis.rounding})):``),11,Xn)):C(``,!0)]))),128))],8,Wn)):C(``,!0),pf.value?(O(),w(`g`,Zn,[(O(!0),w(x,null,A(mf.value,e=>(O(),w(`text`,{class:E({"vue-data-ui-transition":N(go)&&!N(Us)}),key:`crosshair_y_label_${e.serie.id}_${e.index}`,transform:`translate(${Z.value?Q.value.right+G.value.yAxis.crosshairSize+G.value.yAxis.scaleValueOffsetX+5:Q.value.scaleLabelX-G.value.yAxis.crosshairSize}, ${N(v)(e.y)+B.value.dataLabels/3})`,"font-size":B.value.dataLabels,"text-anchor":Z.value?`start`:`end`,fill:G.value.color,style:{transition:`none !important`,animation:`none !important`,"pointer-events":`none`}},Dt(N(y)(G.value.yAxis.formatter,e.value,N(a)({p:e.serie.prefix||U.value.labels.prefix,v:e.value,s:e.serie.suffix||U.value.labels.suffix,r:G.value.yAxis.rounding}),{datapoint:e.serie,seriesIndex:e.index})),11,Qn))),128))])):C(``,!0),hf.value?(O(),w(`g`,$n,[T(`circle`,{cx:ff.value,cy:N(v)(Q.value?.bottom),r:U.value.highlighter.crosshairs.dot.radius,fill:U.value.highlighter.crosshairs.dot.fill,stroke:U.value.highlighter.crosshairs.dot.stroke,"stroke-width":U.value.highlighter.crosshairs.dot.strokeWidth,style:{transition:`none !important`,animation:`none !important`,"pointer-events":`none`}},null,8,er)])):C(``,!0),T(`g`,{"clip-path":ds.value},[(O(!0),w(x,null,A(md.value,(e,t)=>(O(),w(`g`,{key:`serie_plot_${e.id}`,class:E(`serie_plot_${t}`),style:D(`opacity:${P.value?P.value===e.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(O(!0),w(x,null,A(e.plots,(n,r)=>(O(),w(`g`,{key:`circle_plot_${e.id}_${r}`,style:D(us(n))},[n&&N(qt)(n.value)?(O(),mt(st,{key:0,shape:[`triangle`,`square`,`diamond`,`pentagon`,`hexagon`,`star`].includes(e.shape)?e.shape:`circle`,color:H.value.plot.useGradient?`url(#plotGradient_${t}_${I.value})`:H.value.plot.dot.useSerieColor?e.color:H.value.plot.dot.fill,plot:{x:N(_)(n.x),y:N(_)(n.y)},radius:_f(e,n,r)?(so.value.plot||6)*1.5:(Bu(e.plots,r),so.value.plot||6),stroke:H.value.plot.dot.useSerieColor?U.value.backgroundColor:e.color,strokeWidth:H.value.plot.dot.strokeWidth,transition:N(So)||Po.value||Mc.value||!H.value.plot.showTransition?void 0:`all ${H.value.plot.transitionDurationMs}ms ease-in-out`,still:Mc.value||Po.value},null,8,[`shape`,`color`,`plot`,`radius`,`stroke`,`strokeWidth`,`transition`,`still`])):C(``,!0),n.comment&&U.value.comments.show?(O(),w(`foreignObject`,{key:1,style:{overflow:`visible`},height:`12`,width:U.value.comments.width,x:n.x-U.value.comments.width/2+U.value.comments.offsetX,y:n.y+U.value.comments.offsetY+6},[T(`div`,rr,[j(i.$slots,`plot-comment`,{plot:{...n,color:e.color,seriesIndex:t,datapointIndex:r}},void 0,!0)])],8,nr)):C(``,!0)],4))),128))],6))),128)),T(`g`,{class:E([`vue-ui-xy-zoom-geometry`,{"vue-ui-xy-zoom-geometry--transitioning":Po.value}]),style:D(ls.value)},[(O(!0),w(x,null,A($.value,(e,t)=>(O(),w(`g`,{key:`serie_line_${e.id}`,class:E(`serie_line_${t}`),style:D(`opacity:${P.value?P.value===e.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},[e.hasDashedSegments?(O(),w(x,{key:0},[e.useStepper?(O(!0),w(x,{key:0},A(e.dashedStepper,(t,n)=>(O(),w(`path`,{"vector-effect":`non-scaling-stroke`,key:`line_coating_stepper_segment_${e.id}_${n}`,fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M ${t.path}`,stroke:U.value.backgroundColor,"stroke-width":V(H.value.line.strokeWidth+1),"stroke-dasharray":e.dashed||t.dashed?V(H.value.line.strokeWidth*2):0,style:D({transition:Ku()})},null,12,ir))),128)):e.smooth?(O(!0),w(x,{key:1},A(e.dashedSmooth,(t,n)=>(O(),w(`path`,{"vector-effect":`non-scaling-stroke`,key:`line_coating_smooth_segment_${e.id}_${n}`,fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M ${t.path}`,stroke:U.value.backgroundColor,"stroke-width":V(H.value.line.strokeWidth+1),"stroke-dasharray":e.dashed||t.dashed?V(H.value.line.strokeWidth*2):0,style:D({transition:Ku()})},null,12,ar))),128)):(O(!0),w(x,{key:2},A(e.dashedStraight,(t,n)=>(O(),w(`path`,{"vector-effect":`non-scaling-stroke`,key:`line_coating_straight_segment_${e.id}_${n}`,fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M ${t.path}`,stroke:U.value.backgroundColor,"stroke-width":V(H.value.line.strokeWidth+1),"stroke-dasharray":e.dashed||t.dashed?V(H.value.line.strokeWidth*2):0,style:D({transition:Ku()})},null,12,or))),128))],64)):e.smooth&&e.plots.length>1&&e.curve?(O(),w(`path`,{key:1,"vector-effect":`non-scaling-stroke`,d:`M${e.curve}`,stroke:U.value.backgroundColor,"stroke-width":V(H.value.line.strokeWidth+1),"stroke-dasharray":e.dashed?V(H.value.line.strokeWidth*2):0,fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`,style:D({transition:Ku()})},null,12,sr)):e.plots.length>1&&e.straight?(O(),w(`path`,{key:2,"vector-effect":`non-scaling-stroke`,d:`M${e.straight}`,stroke:U.value.backgroundColor,"stroke-width":V(H.value.line.strokeWidth+1),"stroke-dasharray":e.dashed?V(H.value.line.strokeWidth*2):0,fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`,style:D({transition:Ku()})},null,12,cr)):C(``,!0)],6))),128)),i.$slots.pattern?(O(),w(`defs`,lr,[(O(!0),w(x,null,A(Fs.value,(e,t)=>j(i.$slots,`pattern`,xt({key:`serie_pattern_slot_${e.id}`},{ref_for:!0},{...e,seriesIndex:e.slotAbsoluteIndex,patternId:`pattern_${I.value}_${t}`}),void 0,!0)),128))])):C(``,!0),vd.value.length&&!K.value.isStacked?(O(),w(`g`,ur,[(O(!0),w(x,null,A(vd.value,e=>(O(),w(`path`,{key:e.key,d:e.d,fill:e.color,"fill-opacity":H.value.line.interLine.fillOpacity,stroke:`none`,"pointer-events":`none`,style:D({transition:Ku()})},null,12,dr))),128))])):C(``,!0),(O(!0),w(x,null,A($.value,(e,t)=>(O(),w(`g`,{key:`serie_line_above_${e.id}`,class:E(`serie_line_${t}`),style:D(`opacity:${P.value?P.value===e.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},[e.useArea&&e.plots.length>1?(O(),w(`g`,fr,[e.smooth?(O(!0),w(x,{key:0},A(e.curveAreas,(n,r)=>(O(),w(x,{key:r},[n?(O(),w(`path`,{key:0,d:n,fill:H.value.line.area.useGradient?`url(#areaGradient_${t}_${I.value})`:N(g)(e.color,H.value.line.area.opacity),style:D({transition:Ku()})},null,12,pr)):C(``,!0),i.$slots.pattern&&n?(O(),w(`path`,{key:1,d:n,fill:`url(#pattern_${I.value}_${e.slotAbsoluteIndex})`,style:D({transition:Ku()})},null,12,mr)):C(``,!0)],64))),128)):(O(!0),w(x,{key:1},A(e.area.split(`;`),(n,r)=>(O(),w(x,{key:r},[n?(O(),w(`path`,{key:0,d:`M${n}Z`,fill:H.value.line.area.useGradient?`url(#areaGradient_${t}_${I.value})`:N(g)(e.color,H.value.line.area.opacity),style:D({transition:Ku()})},null,12,hr)):C(``,!0),i.$slots.pattern&&n?(O(),w(`path`,{key:1,d:`M${n}Z`,fill:`url(#pattern_${I.value}_${e.slotAbsoluteIndex})`,style:D({transition:Ku()})},null,12,gr)):C(``,!0)],64))),128))])):C(``,!0),!e.hasDashedSegments&&e.smooth&&e.plots.length>1&&e.curve?(O(),w(`path`,{key:1,"vector-effect":`non-scaling-stroke`,d:`M${e.curve}`,stroke:e.temperatureColors&&!e.isFlatTemperatureLine?`url(#temperature_grad_line_${t}_${I.value})`:e.color,"stroke-width":V(H.value.line.strokeWidth),"stroke-dasharray":e.dashed?V(H.value.line.strokeWidth*2):0,fill:`none`,"stroke-linecap":`round`,style:D({transition:Ku()})},null,12,_r)):e.hasDashedSegments?(O(),w(x,{key:2},[e.useStepper?(O(!0),w(x,{key:0},A(e.dashedStepper,(n,r)=>(O(),w(`path`,{"vector-effect":`non-scaling-stroke`,key:`line_stepper_segment_${e.id}_${r}`,fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M ${n.path}`,stroke:e.temperatureColors&&!e.isFlatTemperatureLine?`url(#temperature_grad_line_${t}_${I.value})`:e.color,"stroke-width":V(H.value.line.strokeWidth),"stroke-dasharray":e.dashed||n.dashed?V(H.value.line.strokeWidth*2):0,style:D({transition:Ku()})},null,12,vr))),128)):e.smooth?(O(!0),w(x,{key:1},A(e.dashedSmooth,(n,r)=>(O(),w(`path`,{"vector-effect":`non-scaling-stroke`,key:`line_smooth_segment_${e.id}_${r}`,fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M ${n.path}`,stroke:e.temperatureColors&&!e.isFlatTemperatureLine?`url(#temperature_grad_line_${t}_${I.value})`:e.color,"stroke-width":V(H.value.line.strokeWidth),"stroke-dasharray":e.dashed||n.dashed?V(H.value.line.strokeWidth*2):0,style:D({transition:Ku()})},null,12,yr))),128)):(O(!0),w(x,{key:2},A(e.dashedStraight,(n,r)=>(O(),w(`path`,{"vector-effect":`non-scaling-stroke`,key:`line_straight_segment_${e.id}_${r}`,fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M ${n.path}`,stroke:e.temperatureColors&&!e.isFlatTemperatureLine?`url(#temperature_grad_line_${t}_${I.value})`:e.color,"stroke-width":V(H.value.line.strokeWidth),"stroke-dasharray":e.dashed||n.dashed?V(H.value.line.strokeWidth*2):0,style:D({transition:Ku()})},null,12,br))),128))],64)):e.plots.length>1&&e.straight?(O(),w(`path`,{key:3,"vector-effect":`non-scaling-stroke`,d:`M${e.straight}`,stroke:e.temperatureColors&&!e.isFlatTemperatureLine?`url(#temperature_grad_line_${t}_${I.value})`:e.color,"stroke-width":V(H.value.line.strokeWidth),"stroke-dasharray":e.dashed?V(H.value.line.strokeWidth*2):0,fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`,style:D({transition:Ku()})},null,12,xr)):C(``,!0)],6))),128))],6),T(`g`,Sr,[(O(!0),w(x,null,A($.value,(e,t)=>(O(),w(`g`,{key:`serie_line_markers_${e.id}`,style:D(`opacity:${P.value?P.value===e.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(O(!0),w(x,null,A(e.plots,(n,r)=>(O(),w(`g`,{key:`circle_line_${e.id}_${r}`,class:`vue-ui-xy-line-marker`,style:D(us(n))},[!ql.value.linePlot&&n&&N(qt)(n.value)||ql.value.linePlot&&n&&N(qt)(n.value)&&(z.value!==null&&z.value===r||L.value!==null&&L.value===r)||Bu(e.plots,r)?(O(),mt(st,{key:0,shape:[`triangle`,`square`,`diamond`,`pentagon`,`hexagon`,`star`].includes(e.shape)?e.shape:`circle`,color:H.value.line.useGradient?`url(#lineGradient_${t}_${I.value})`:H.value.line.dot.useSerieColor?e.color:H.value.line.dot.fill,plot:{x:N(_)(n.x),y:N(_)(n.y)},radius:_f(e,n,r)?fo.value||0:(Bu(e.plots,r),so.value.line||0),stroke:H.value.line.dot.useSerieColor?U.value.backgroundColor:e.color,strokeWidth:H.value.line.dot.strokeWidth,transition:N(So)||Po.value||Mc.value||!H.value.line.showTransition?void 0:`all ${H.value.line.transitionDurationMs}ms ease-in-out`,still:Mc.value||Po.value},null,8,[`shape`,`color`,`plot`,`radius`,`stroke`,`strokeWidth`,`transition`,`still`])):C(``,!0),n.comment&&U.value.comments.show?(O(),w(`foreignObject`,{key:1,style:{overflow:`visible`},height:`12`,width:U.value.comments.width,x:n.x-U.value.comments.width/2+U.value.comments.offsetX,y:n.y+U.value.comments.offsetY+6},[T(`div`,wr,[j(i.$slots,`plot-comment`,{plot:{...n,color:e.color,seriesIndex:t,datapointIndex:r}},void 0,!0)])],8,Cr)):C(``,!0)],4))),128))],4))),128))])],8,tr),(H.value.bar.labels.show||H.value.bar.serieName.show)&&K.value.dataLabels.show?(O(),w(`g`,Tr,[(O(!0),w(x,null,A(bf.value,e=>(O(),w(`text`,{key:e.key,class:E({"vue-data-ui-transition":N(go)&&!N(Us)}),"text-anchor":df({plot:e.plot,type:`bar`}),"font-size":B.value.plotLabels,transform:lf({plot:e.plot}),fill:H.value.bar.labels.color,stroke:U.value.backgroundColor,"paint-order":`stroke`,style:D(`opacity:${P.value?P.value===e.serie.groupId?1:.2:1};`),innerHTML:cf({serie:e.serie,plot:e.plot,type:`bar`})},null,14,Er))),128)),(O(!0),w(x,null,A(fd.value,(e,t)=>(O(),w(x,{key:`xLabel_bar_${e.id}`},[(O(!0),w(x,null,A(e.plots,(n,r)=>(O(),w(x,{key:`xLabel_bar_${t}_${r}`},[n&&H.value.bar.serieName.show?(O(),w(`text`,{key:0,class:E({"vue-data-ui-transition":N(go)&&!N(Us)}),transform:`translate(${K.value.useIndividualScale&&K.value.isStacked?n.x+rl.value.line/2:n.x+il()*1.1}, ${n.y+(n.value>0?H.value.bar.serieName.offsetY:-H.value.bar.serieName.offsetY*3)})`,"text-anchor":`middle`,"font-size":B.value.plotLabels,fill:H.value.bar.serieName.useSerieColor?e.color:H.value.bar.serieName.color,"font-weight":H.value.bar.serieName.bold?`bold`:`normal`,style:D(`opacity:${P.value?P.value===e.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},Dt(H.value.bar.serieName.useAbbreviation?N(Ee)({source:e.name,length:H.value.bar.serieName.abbreviationSize}):e.name),15,Dr)):C(``,!0)],64))),128))],64))),128))])):C(``,!0),H.value.plot.labels.show&&K.value.dataLabels.show?(O(),w(`g`,Or,[(O(!0),w(x,null,A(xf.value,e=>(O(),w(`text`,{key:e.key,class:E({"vue-data-ui-transition":N(go)&&!N(Us)}),transform:uf({plot:e.plot,type:`plot`}),"text-anchor":df({plot:e.plot,type:`plot`}),"font-size":B.value.plotLabels,fill:H.value.plot.labels.color,stroke:U.value.backgroundColor,"paint-order":`stroke`,style:D(`opacity:${P.value?P.value===e.serie.groupId?1:.2:1}`),innerHTML:cf({serie:e.serie,plot:e.plot,type:`plot`})},null,14,kr))),128))])):(O(),w(`g`,Ar,[(O(!0),w(x,null,A(md.value,(e,t)=>(O(),w(x,{key:`xLabel_plot_${e.id}`},[(O(!0),w(x,null,A(e.plots,(n,r)=>(O(),w(x,{key:`xLabel_plot_${t}_${r}`},[H.value.plot.tag.followValue?(O(),w(x,{key:1},[[L.value,z.value,Ca.value].includes(r)&&e.useTag?(O(),w(`line`,{key:0,class:`vue-ui-xy-tag-plot`,x1:Q.value?.left,x2:Q.value?.right,y1:n.y,y2:n.y,"stroke-width":1,"stroke-linecap":`round`,"stroke-dasharray":`2`,stroke:e.color},null,8,Fr)):C(``,!0)],64)):(O(),w(x,{key:0},[n&&r===0&&e.useTag&&e.useTag===`start`?(O(),w(`foreignObject`,{key:0,x:n.x,y:n.y-20,height:24,width:`150`,style:D(`overflow: visible; opacity:${P.value?P.value===e.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},[T(`div`,{style:D(`padding: 3px; background:${N(g)(e.color,80)};color:${N(Me)(e.color)};width:fit-content;font-size:${B.value.plotLabels}px;border-radius: 2px;`),innerHTML:N(y)(H.value.plot.tag.formatter,n.value,e.name,{datapoint:n,seriesIndex:r,serieName:e.name})},null,12,Mr)],12,jr)):C(``,!0),n&&r===e.plots.length-1&&e.useTag&&e.useTag===`end`?(O(),w(`foreignObject`,{key:1,x:n.x-e.name.length*(B.value.plotLabels/2),y:n.y-20,height:24,width:`150`,style:D(`overflow: visible; opacity:${P.value?P.value===e.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},[T(`div`,{style:D(`padding: 3px; background:${N(g)(e.color,80)};color:${N(Me)(e.color)};width:fit-content;font-size:${B.value.plotLabels}px;border-radius: 2px;`),innerHTML:N(y)(H.value.plot.tag.formatter,n.value,e.name,{datapoint:n,seriesIndex:r,serieName:e.name})},null,12,Pr)],12,Nr)):C(``,!0)],64))],64))),128))],64))),128))])),H.value.line.labels.show&&K.value.dataLabels.show?(O(),w(`g`,Ir,[(O(!0),w(x,null,A(Sf.value,e=>(O(),w(`text`,{key:e.key,class:E({"vue-data-ui-transition":N(go)&&!N(Us)}),transform:uf({plot:e.plot,type:`line`}),"text-anchor":df({plot:e.plot,type:`line`}),"font-size":B.value.plotLabels,fill:H.value.line.labels.color,stroke:U.value.backgroundColor,"paint-order":`stroke`,style:D(`opacity:${P.value?P.value===e.serie.groupId?1:.2:1};`),innerHTML:cf({serie:e.serie,plot:e.plot,type:`line`})},null,14,Lr))),128))])):(O(),w(`g`,Rr,[(O(!0),w(x,null,A($.value,(e,t)=>(O(),w(x,{key:`xLabel_line_${e.id}`},[(O(!0),w(x,null,A(e.plots,(n,r)=>(O(),w(x,{key:`xLabel_line_${t}_${r}`},[H.value.line.tag.followValue?(O(),w(x,{key:1},[[L.value,z.value,Ca.value].includes(r)&&e.useTag?(O(),w(`line`,{key:0,class:`vue-ui-xy-tag-line`,x1:Q.value?.left,x2:Q.value?.right,y1:n.y,y2:n.y,"stroke-width":1,"stroke-linecap":`round`,"stroke-dasharray":`2`,stroke:e.color},null,8,Ur)):C(``,!0)],64)):(O(),w(x,{key:0},[n&&r===0&&e.useTag&&e.useTag===`start`?(O(),w(`foreignObject`,{key:0,x:n.x,y:n.y-20,height:24,width:`150`,style:D(`overflow: visible; opacity:${P.value?P.value===e.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},[T(`div`,{style:D(`padding: 3px; background:${N(g)(e.color,80)};color:${N(Me)(e.color)};width:fit-content;font-size:${B.value.plotLabels}px;border-radius: 2px;`),innerHTML:N(y)(H.value.line.tag.formatter,n.value,e.name,{datapoint:n,seriesIndex:r,serieName:e.name})},null,12,Br)],12,zr)):C(``,!0),n&&r===e.plots.length-1&&e.useTag&&e.useTag===`end`?(O(),w(`foreignObject`,{key:1,x:n.x,y:n.y-20,height:24,width:`150`,style:D(`overflow: visible; opacity:${P.value?P.value===e.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},[T(`div`,{style:D(`padding: 3px; background:${N(g)(e.color,80)};color:${N(Me)(e.color)};width:fit-content;font-size:${B.value.plotLabels}px;border-radius: 2px;`),innerHTML:N(y)(H.value.line.tag.formatter,n.value,e.name,{datapoint:n,seriesIndex:r,serieName:e.name})},null,12,Hr)],12,Vr)):C(``,!0)],64))],64))),128))],64))),128))])),(O(!0),w(x,null,A($.value,(e,t)=>(O(),w(x,{key:`xLabel_line_${e.id}`},[(O(!0),w(x,null,A(e.plots,(n,r)=>(O(),w(x,{key:`xLabel_line_${t}_${r}`},[n&&r===0&&e.showSerieName&&e.showSerieName===`start`?(O(),w(`text`,{key:0,x:n.x-B.value.plotLabels,y:n.y,"font-size":B.value.plotLabels,"text-anchor":`end`,fill:e.color,innerHTML:N(Ae)({content:e.name,fontSize:B.value.plotLabels,fill:e.color,x:n.x-B.value.plotLabels,y:n.y,maxWords:2}),style:D(`opacity:${P.value?P.value===e.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},null,12,Wr)):C(``,!0),n&&r===e.plots.length-1&&e.showSerieName&&e.showSerieName===`end`?(O(),w(`text`,{key:1,x:n.x+B.value.plotLabels,y:n.y,"font-size":B.value.plotLabels,"text-anchor":`start`,fill:e.color,innerHTML:N(Ae)({content:e.name,fontSize:B.value.plotLabels,fill:e.color,x:n.x+B.value.plotLabels,y:n.y,maxWords:2}),style:D(`opacity:${P.value?P.value===e.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},null,12,Gr)):C(``,!0)],64))),128))],64))),128)),(O(!0),w(x,null,A(md.value,(e,t)=>(O(),w(x,{key:`xLabel_plot_${e.id}`},[(O(!0),w(x,null,A(e.plots,(n,r)=>(O(),w(x,{key:`xLabel_plot_${t}_${r}`},[n&&r===0&&e.showSerieName&&e.showSerieName===`start`?(O(),w(`text`,{key:0,x:n.x-B.value.plotLabels,y:n.y,"font-size":B.value.plotLabels,"text-anchor":`end`,fill:e.color,innerHTML:N(Ae)({content:e.name,fontSize:B.value.plotLabels,fill:e.color,x:n.x-B.value.plotLabels,y:n.y,maxWords:2}),style:D(`opacity:${P.value?P.value===e.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},null,12,Kr)):C(``,!0),n&&r===e.plots.length-1&&e.showSerieName&&e.showSerieName===`end`?(O(),w(`text`,{key:1,x:n.x+B.value.plotLabels,y:n.y,"font-size":B.value.plotLabels,"text-anchor":`start`,fill:e.color,innerHTML:N(Ae)({content:e.name,fontSize:B.value.plotLabels,fill:e.color,x:n.x+B.value.plotLabels,y:n.y,maxWords:2}),style:D(`opacity:${P.value?P.value===e.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},null,12,qr)):C(``,!0)],64))),128))],64))),128)),(O(!0),w(x,null,A([...md.value,...$.value,...fd.value],(e,t)=>(O(),w(x,{key:`progression-${t}`},[Object.hasOwn(e,`useProgression`)&&e.useProgression===!0&&!isNaN(N(ye)(e.plots).trend)?(O(),w(`g`,Jr,[T(`defs`,null,[T(`marker`,{id:`progression_arrow_${t}`,markerWidth:`9`,markerHeight:`9`,viewBox:`-1 -1 9 9`,markerUnits:`userSpaceOnUse`,refX:`7`,refY:7/2,orient:`auto`,overflow:`visible`},[T(`polygon`,{points:`0,0 7,3.5 0,7`,fill:e.color,stroke:U.value.backgroundColor,"stroke-width":`1`,"stroke-linejoin":`round`},null,8,Xr)],8,Yr)]),e.plots.length>1?(O(),w(`line`,{key:0,x1:N(ye)(e.plots).x1+(e.type===`bar`?il():0),x2:N(ye)(e.plots).x2+(e.type===`bar`?il():0),y1:N(v)(N(ye)(e.plots).y1),y2:N(v)(N(ye)(e.plots).y2),"stroke-width":1,stroke:U.value.backgroundColor,"stroke-dasharray":2,"stroke-linecap":`round`,"stroke-linejoin":`round`,"marker-end":`url(#progression_arrow_${t})`},null,8,Zr)):C(``,!0),e.plots.length>1?(O(),w(`line`,{key:1,x1:N(ye)(e.plots).x1+(e.type===`bar`?il():0),x2:N(ye)(e.plots).x2+(e.type===`bar`?il():0),y1:N(v)(N(ye)(e.plots).y1),y2:N(v)(N(ye)(e.plots).y2),"stroke-width":1,stroke:e.color,"stroke-dasharray":2,"stroke-linecap":`round`,"stroke-linejoin":`round`,"marker-end":`url(#progression_arrow_${t})`},null,8,Qr)):C(``,!0),e.plots.length>1?(O(),w(`text`,{key:2,class:E({"vue-data-ui-transition":N(go)&&!N(Us)}),"text-anchor":`middle`,transform:`translate(${N(ye)(e.plots).x2+(e.type===`bar`?il():0)}, ${N(ye)(e.plots).y2-12})`,"font-size":B.value.plotLabels,fill:e.color,stroke:U.value.backgroundColor,"stroke-width":4,"stroke-linecap":`round`,"stroke-linejoin":`round`,"paint-order":`stroke fill`},Dt(N(a)({v:N(ye)(e.plots).trend*100,s:`%`,r:2})),11,$r)):C(``,!0)])):C(``,!0)],64))),128)),K.value.useIndividualScale&&!K.value.isStacked?(O(),w(x,{key:13},[T(`defs`,null,[(O(!0),w(x,null,A(_d.value,(e,t)=>(O(),mt(ct,{t:`linear`,key:`individual_scale_gradient_${e.groupId||e.id||t}`,id:`individual_scale_gradient_${I.value}_${t}`,x1:Z.value?`100%`:`0%`,x2:Z.value?`0%`:`100%`,y1:`0%`,y2:`0%`,stops:[[`0%`,U.value.backgroundColor,0],[`100%`,e.color,.2]]},null,8,[`id`,`x1`,`x2`,`stops`]))),128))]),(O(!0),w(x,null,A(_d.value,(e,t)=>(O(),w(`rect`,{key:`individual_scale_background_${e.groupId||e.id||t}`,x:Z.value?e.x:e.x-G.value.yAxis.labelWidth-Q.value.individualOffsetX,y:Q.value?.top,width:(Z.value,G.value.yAxis.labelWidth+Q.value.individualOffsetX),height:Q.value.height<0?10:Q.value.height,fill:P.value===e.groupId?`url(#individual_scale_gradient_${I.value}_${t})`:`transparent`,onMouseenter:t=>P.value=e.groupId,onMouseleave:o[0]||=e=>P.value=null},null,40,ei))),128))],64)):C(``,!0),T(`g`,null,[G.value.axis.yLabel&&!K.value.useIndividualScale?(O(),w(`text`,{key:0,ref_key:`yAxisLabel`,ref:ca,"font-size":B.value.yAxis,fill:G.value.color,transform:`translate(${Z.value?Q.value.right+Q.value.scaleLabelsOffset+G.value.axis.yLabelOffsetX+B.value.yAxis:G.value.axis.fontSize+G.value.axis.yLabelOffsetX}, ${Q.value?.top+Q.value.height/2}) rotate(-90)`,"text-anchor":`middle`,style:{transition:`none`}},Dt(G.value.axis.yLabel),9,ti)):C(``,!0),G.value.axis.xLabel?(O(),w(`text`,{key:1,ref_key:`xAxisLabel`,ref:sa,"text-anchor":`middle`,x:F.value/2,y:ga.value-3,"font-size":B.value.yAxis,fill:G.value.color},Dt(G.value.axis.xLabel),9,ni)):C(``,!0)]),G.value.xAxisLabels.show?(O(),w(`g`,{key:14,ref_key:`timeLabelsEls`,ref:la,opacity:pf.value?.1:1,style:{transition:`opacity 0.2s`}},[i.$slots[`time-label`]?(O(!0),w(x,{key:0},A(Yu.value,(e,t)=>j(i.$slots,`time-label`,xt({ref_for:!0},{x:Xu(e,t),y:Q.value?.bottom,fontSize:B.value.xAxis,fill:G.value.xAxisLabels.color,transform:`translate(${Xu(e,t)}, ${Q.value?.bottom+B.value.xAxis*1.3+G.value.xAxisLabels.yOffset}), rotate(${G.value.xAxisLabels.rotation})`,absoluteIndex:e.absoluteIndex,content:e.text,textAnchor:G.value.xAxisLabels.rotation>0?`start`:W.value.labels.xAxisLabels.rotation<0?`end`:`middle`,show:e&&e.text}),void 0,!0,`time_label_${e.id}`)),128)):(O(!0),w(x,{key:1},A(Yu.value,(e,t)=>(O(),w(`g`,{key:`time_label_${t}`},[e&&e.text?(O(),w(x,{key:0},[String(e.text).includes(`
|
|
27
|
-
`)?(O(),w(`text`,{key:1,class:`vue-data-ui-time-label`,"text-anchor":G.value.xAxisLabels.rotation>0?`start`:W.value.labels.xAxisLabels.rotation<0?`end`:`middle`,"font-size":B.value.xAxis,fill:G.value.xAxisLabels.color,transform:`translate(${Xu(e,t)}, ${Q.value?.bottom+B.value.xAxis*1.5}), rotate(${G.value.xAxisLabels.rotation})`,style:D({cursor:Zs()&&_o.value?`pointer`:`default`}),innerHTML:N(h)({content:String(e.text),fontSize:B.value.xAxis,fill:U.value.grid.labels.xAxisLabels.color,stroke:U.value.backgroundColor,x:0,y:0}),onClick:n=>vc(e,t)},null,12,ai)):(O(),w(`text`,{key:0,class:`vue-data-ui-time-label`,"text-anchor":G.value.xAxisLabels.rotation>0?`start`:W.value.labels.xAxisLabels.rotation<0?`end`:`middle`,"font-size":B.value.xAxis,fill:G.value.xAxisLabels.color,stroke:U.value.backgroundColor,"stroke-width":`3`,"stroke-linejoin":`round`,"stroke-linecap":`round`,"paint-order":`stroke fill`,transform:`translate(${Xu(e,t)}, ${Q.value?.bottom+B.value.xAxis*1.5}), rotate(${G.value.xAxisLabels.rotation})`,style:D({cursor:Zs()&&_o.value?`pointer`:`default`}),onClick:n=>vc(e,t)},Dt(e.text||``),13,ii))],64)):C(``,!0)]))),128))],8,ri)):C(``,!0),hf.value?(O(),w(`g`,oi,[T(`text`,{class:`vue-data-ui-time-label`,"text-anchor":G.value.xAxisLabels.rotation>0?`start`:G.value.xAxisLabels.rotation<0?`end`:`middle`,"font-size":B.value.xAxis,fill:G.value.xAxisLabels.color,transform:`translate(${hf.value.x}, ${Q.value?.bottom+B.value.xAxis*1.5}), rotate(${G.value.xAxisLabels.rotation})`,"font-weight":`bold`,style:{transition:`none !important`,animation:`none !important`,"pointer-events":`none`},innerHTML:N(h)({content:String(hf.value.text),fontSize:B.value.xAxis,fill:G.value.xAxisLabels.color,x:0,y:0})},null,8,si)])):C(``,!0),zu.value.length&&!K.value.isStacked?(O(),w(`g`,ci,[(O(!0),w(x,null,A(zu.value,e=>(O(),w(`g`,{key:e.id},[e.yTop&&e.show&&isFinite(e.yTop)?(O(),w(`line`,{key:0,x1:e.x1,y1:e.yTop,x2:e.x2,y2:e.yTop,stroke:e.config.line.stroke,"stroke-width":e.config.line.strokeWidth,"stroke-dasharray":e.config.line.strokeDasharray,"stroke-linecap":`round`,style:{animation:`none !important`}},null,8,li)):C(``,!0),e.yBottom&&e.show&&isFinite(e.yBottom)?(O(),w(`line`,{key:1,x1:e.x1,y1:e.yBottom,x2:e.x2,y2:e.yBottom,stroke:e.config.line.stroke,"stroke-width":e.config.line.strokeWidth,"stroke-dasharray":e.config.line.strokeDasharray,"stroke-linecap":`round`,style:{animation:`none !important`}},null,8,ui)):C(``,!0),e.hasArea&&e.show&&isFinite(e.yTop)&&isFinite(e.yBottom)?(O(),w(`rect`,{key:2,y:Math.min(e.yTop,e.yBottom),x:e.x1,width:Q.value.width,height:N(_)(e.areaHeight,0),fill:N(g)(e.config.area.fill,e.config.area.opacity),style:{animation:`none !important`}},null,8,di)):C(``,!0),e.config.label.text&&e.show&&isFinite(e._box.y)?(O(),w(`rect`,xt({key:3,class:`vue-ui-xy-annotation-label-box`},{ref_for:!0},e._box,{style:{animation:`none !important`,transition:`none !important`}}),null,16)):C(``,!0),e.config.label.text&&e.show&&isFinite(e._text.y)?(O(),w(`text`,{key:4,id:e.id,class:E([`vue-ui-xy-annotation-label`,{"vue-data-ui-transition":N(go)&&!N(Us)}]),transform:`translate(${e._text.x}, ${e._text.y})`,"font-size":e.config.label.fontSize,fill:e.config.label.color,"text-anchor":e.config.label.textAnchor},Dt(e.config.label.text),11,fi)):C(``,!0)]))),128))])):C(``,!0),!pf.value&&U.value.timeTag.show&&(Y.value?N(Ce)(ef.value):![null,void 0].includes(z.value)||![null,void 0].includes(L.value))?(O(),w(`g`,pi,[(O(),w(`foreignObject`,{x:nf(),y:Q.value?.bottom,width:`200`,height:`40`,style:{overflow:`visible !important`}},[T(`div`,{ref_key:`timeTagEl`,ref:Zd,class:`vue-ui-xy-time-tag`,style:D(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${U.value.timeTag.backgroundColor};color:${U.value.timeTag.color};font-size:${U.value.timeTag.fontSize}px`),innerHTML:sf.value},null,12,hi)],8,mi)),T(`circle`,{cx:Y.value&&N(Ce)(ef.value)?Zu({x:ef.value}):tu((z.value===null?0:z.value)||(L.value===null?0:L.value)),cy:Q.value?.bottom,r:U.value.timeTag.circleMarker.radius,fill:U.value.timeTag.circleMarker.color},null,8,gi)])):C(``,!0)])):C(``,!0),_l.value?(O(),w(`rect`,{key:2,x:_l.value.x,y:_l.value.y,width:_l.value.width,height:_l.value.height,fill:Ko.value.selection.fill,"fill-opacity":Ko.value.selection.fillOpacity,stroke:Ko.value.selection.stroke,"stroke-opacity":Ko.value.selection.strokeOpacity,"stroke-width":Ko.value.selection.strokeWidth,"stroke-dasharray":Ko.value.selection.strokeDasharray,"stroke-linecap":`round`,"stroke-linejoin":`round`,"pointer-events":`none`},null,8,_i)):C(``,!0),Jo.value?(O(),w(`rect`,xt({key:3},hs.value,{"data-start":q.value.start,"data-end":q.value.end}),null,16,vi)):C(``,!0),j(i.$slots,`svg`,{svg:{...ro.value,slicer:q.value,isPrintingImg:N(gs)||N(_s)||N(Ff),isPrintingSvg:N(If),data:hd.value,drawingArea:Q.value}},void 0,!0)],512)],46,ln)),i.$slots.hint?(O(),w(`div`,yi,[j(i.$slots,`hint`,Ct(bt({hint:H.value.a11y.translations.keyboardNavigation,isVisible:up.value})),void 0,!0)])):C(``,!0)]),i.$slots.watermark?(O(),w(`div`,bi,[j(i.$slots,`watermark`,Ct(bt({isPrinting:N(gs)||N(_s)||N(Ff)||N(If)})),void 0,!0)])):C(``,!0),(O(!0),w(x,null,A($.value,(e,t)=>(O(),w(x,{key:`tag_line_${e.id}`},[(O(!0),w(x,null,A(e.plots,(n,r)=>(O(),w(x,{key:`tag_line_${t}_${r}`},[[L.value,z.value,Ca.value].includes(r)&&e.useTag&&e.useTag===`end`&&H.value.line.tag.followValue?(O(),w(`div`,{key:0,ref_for:!0,ref:e=>ec(t,r,e,`right`,`line`),class:`vue-ui-xy-tag`,"data-tag":`right`,style:D({position:`fixed`,top:N(d)({svgElement:R.value,x:Q.value?.right+H.value.line.tag.fontSize/1.5,y:n.y,element:Pa.value[`${t}_${r}_right_line`],position:`right`})?.top+`px`,left:N(d)({svgElement:R.value,x:Q.value?.right+H.value.line.tag.fontSize/1.5,y:n.y,element:Pa.value[`${t}_${r}_right_line`],position:`right`})?.left+`px`,height:`fit-content`,width:`fit-content`,background:e.color,color:N(Me)(e.color),padding:`0 6px`,fontSize:H.value.line.tag.fontSize+`px`,opacity:1})},[(O(),w(`svg`,xi,[T(`path`,{d:`M 0,10 10,0 10,20 Z`,fill:e.color,stroke:`none`},null,8,Si)])),T(`div`,{class:`vue-ui-xy-tag-content`,innerHTML:N(y)(H.value.line.tag.formatter,n.value,e.name,{datapoint:n,seriesIndex:r,serieName:e.name})},null,8,Ci)],4)):C(``,!0),[L.value,z.value,Ca.value].includes(r)&&e.useTag&&e.useTag===`start`&&H.value.line.tag.followValue?(O(),w(`div`,{key:1,ref_for:!0,ref:e=>ec(t,r,e,`left`,`line`),class:`vue-ui-xy-tag`,"data-tag":`left`,style:D({position:`fixed`,top:N(d)({svgElement:R.value,x:Q.value?.left-H.value.line.tag.fontSize/1.5,y:n.y,element:Pa.value[`${t}_${r}_left_line`],position:`left`})?.top+`px`,left:N(d)({svgElement:R.value,x:Q.value?.left-H.value.line.tag.fontSize/1.5,y:n.y,element:Pa.value[`${t}_${r}_left_line`],position:`left`})?.left+`px`,height:`fit-content`,width:`fit-content`,background:e.color,color:N(Me)(e.color),padding:`0 6px`,fontSize:H.value.line.tag.fontSize+`px`,opacity:1})},[(O(),w(`svg`,wi,[T(`path`,{d:`M 0,0 10,10 0,20 Z`,fill:e.color,stroke:`none`},null,8,Ti)])),T(`div`,{class:`vue-ui-xy-tag-content`,innerHTML:N(y)(H.value.line.tag.formatter,n.value,e.name,{datapoint:n,seriesIndex:r,serieName:e.name})},null,8,Ei)],4)):C(``,!0)],64))),128))],64))),128)),(O(!0),w(x,null,A(md.value,(e,t)=>(O(),w(x,{key:`tag_plot_${e.id}`},[(O(!0),w(x,null,A(e.plots,(n,r)=>(O(),w(x,{key:`tag_plot_${t}_${r}`},[[L.value,z.value,Ca.value].includes(r)&&e.useTag&&e.useTag===`end`&&H.value.plot.tag.followValue?(O(),w(`div`,{key:0,ref_for:!0,ref:e=>ec(t,r,e,`right`,`plot`),class:`vue-ui-xy-tag`,"data-tag":`right`,style:D({position:`fixed`,top:N(d)({svgElement:R.value,x:Q.value?.right+H.value.plot.tag.fontSize/1.5,y:n.y,element:Pa.value[`${t}_${r}_right_plot`],position:`right`})?.top+`px`,left:N(d)({svgElement:R.value,x:Q.value?.right+H.value.plot.tag.fontSize/1.5,y:n.y,element:Pa.value[`${t}_${r}_right_plot`],position:`right`})?.left+`px`,height:`fit-content`,width:`fit-content`,background:e.color,color:N(Me)(e.color),padding:`0 6px`,fontSize:H.value.plot.tag.fontSize+`px`,opacity:1})},[(O(),w(`svg`,Di,[T(`path`,{d:`M 0,10 10,0 10,20 Z`,fill:e.color,stroke:`none`},null,8,Oi)])),T(`div`,{class:`vue-ui-xy-tag-content`,innerHTML:N(y)(H.value.plot.tag.formatter,n.value,e.name,{datapoint:n,seriesIndex:r,serieName:e.name})},null,8,ki)],4)):C(``,!0),[L.value,z.value,Ca.value].includes(r)&&e.useTag&&e.useTag===`start`&&H.value.plot.tag.followValue?(O(),w(`div`,{key:1,ref_for:!0,ref:e=>ec(t,r,e,`left`,`plot`),class:`vue-ui-xy-tag`,"data-tag":`left`,style:D({position:`fixed`,top:N(d)({svgElement:R.value,x:Q.value?.left-H.value.plot.tag.fontSize/1.5,y:n.y,element:Pa.value[`${t}_${r}_left_plot`],position:`left`})?.top+`px`,left:N(d)({svgElement:R.value,x:Q.value?.left-H.value.plot.tag.fontSize/1.5,y:n.y,element:Pa.value[`${t}_${r}_left_plot`],position:`left`})?.left+`px`,height:`fit-content`,width:`fit-content`,background:e.color,color:N(Me)(e.color),padding:`0 6px`,fontSize:H.value.plot.tag.fontSize+`px`,opacity:1})},[(O(),w(`svg`,Ai,[T(`path`,{d:`M 0,0 10,10 0,20 Z`,fill:e.color,stroke:`none`},null,8,ji)])),T(`div`,{class:`vue-ui-xy-tag-content`,innerHTML:N(y)(H.value.plot.tag.formatter,n.value,e.name,{datapoint:n,seriesIndex:r,serieName:e.name})},null,8,Mi)],4)):C(``,!0)],64))),128))],64))),128)),U.value.zoom.show&&Ao.value>6&&ho.value&&Dc.value?(O(),mt(lt,{key:7,ref_key:`chartSlicer`,ref:na,uuid:I.value,allMinimaps:Du.value,background:U.value.zoom.color,borderColor:U.value.backgroundColor,customFormat:U.value.zoom.customFormat,cutNullValues:H.value.line.cutNullValues,enableRangeHandles:U.value.zoom.enableRangeHandles,enableSelectionDrag:U.value.zoom.enableSelectionDrag,end:ju.value,focusOnDrag:U.value.zoom.focusOnDrag,focusRangeRatio:U.value.zoom.focusRangeRatio,fontSize:U.value.zoom.fontSize,useResetSlot:U.value.zoom.useResetSlot,immediate:!U.value.zoom.preview.enable,inputColor:U.value.zoom.color,isPreview:Jo.value,labelLeft:Fu.value,labelRight:Iu.value,max:ku.value,min:Ou.value,precision:Y.value?G.value.xAxis.rounding:0,useValueRange:Y.value,minimap:Tu.value,minimapCompact:U.value.zoom.minimap.compact,minimapFrameColor:U.value.zoom.minimap.frameColor,minimapIndicatorColor:U.value.zoom.minimap.indicatorColor,minimapLineColor:U.value.zoom.minimap.lineColor,minimapMerged:U.value.zoom.minimap.merged,minimapSelectedColor:U.value.zoom.minimap.selectedColor,minimapSelectedColorOpacity:U.value.zoom.minimap.selectedColorOpacity,minimapSelectedIndex:Y.value?Mu.value:z.value??L.value,minimapSelectionRadius:U.value.zoom.minimap.selectionRadius,preciseLabels:Cd.value.length?Cd.value:cc.value,refreshStartPoint:Y.value?Ou.value:U.value.zoom.startIndex===null?0:U.value.zoom.startIndex,refreshEndPoint:Y.value?ku.value:U.value.zoom.endIndex===null?Math.max(...e.dataset.map(e=>Eo(e.series).length)):U.value.zoom.endIndex+1,selectColor:U.value.zoom.highlightColor,selectedSeries:Lu.value,smoothMinimap:U.value.zoom.minimap.smooth,start:Au.value,textColor:U.value.color,timeLabels:cc.value,usePreciseLabels:G.value.xAxisLabels.datetimeFormatter.enable&&!U.value.zoom.useDefaultFormat,valueEnd:ju.value,valueStart:Au.value,verticalHandles:U.value.zoom.minimap.verticalHandles,minScale:Nu.value,maxScale:Pu.value,maxWidth:U.value.zoom.maxWidth,minimapLeftInsetRatio:F.value>0&&U.value.zoom.autoFit?Q.value.left/F.value:null,minimapRightInsetRatio:F.value>0&&U.value.zoom.autoFit?(F.value-Q.value.right)/F.value:null,additionalMinimapHeight:U.value.zoom.minimap.additionalHeight,handleType:U.value.zoom.minimap.handleType,handleIconColor:U.value.zoom.minimap.handleIconColor,handleBorderWidth:U.value.zoom.minimap.handleBorderWidth,handleBorderColor:U.value.zoom.minimap.handleBorderColor,handleFill:U.value.zoom.minimap.handleFill,handleWidth:U.value.zoom.minimap.handleWidth,isCursorPointer:_o.value,onFutureEnd:o[1]||=e=>Zo(`end`,e),onFutureStart:o[2]||=e=>Zo(`start`,e),onReset:Uc,onTrapMouse:bc,onTrapMouseValue:xc,"onUpdate:end":Bc,"onUpdate:start":zc},{"reset-action":Nt(({reset:e})=>[j(i.$slots,`reset-action`,Ct(bt({reset:e})),void 0,!0)]),_:3},8,/* @__PURE__ */ `uuid.allMinimaps.background.borderColor.customFormat.cutNullValues.enableRangeHandles.enableSelectionDrag.end.focusOnDrag.focusRangeRatio.fontSize.useResetSlot.immediate.inputColor.isPreview.labelLeft.labelRight.max.min.precision.useValueRange.minimap.minimapCompact.minimapFrameColor.minimapIndicatorColor.minimapLineColor.minimapMerged.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectedIndex.minimapSelectionRadius.preciseLabels.refreshStartPoint.refreshEndPoint.selectColor.selectedSeries.smoothMinimap.start.textColor.timeLabels.usePreciseLabels.valueEnd.valueStart.verticalHandles.minScale.maxScale.maxWidth.minimapLeftInsetRatio.minimapRightInsetRatio.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth.isCursorPointer`.split(`.`))):C(``,!0),T(`div`,{id:`legend-bottom-${I.value}`},null,8,Ni),Ia.value&&(U.value.legend.show||i.$slots.legend)?(O(),mt(pt,{key:8,to:U.value.legend.position===`top`?`#legend-top-${I.value}`:`#legend-bottom-${I.value}`},[T(`div`,{ref_key:`chartLegend`,ref:ra},[j(i.$slots,`legend`,{legend:Is.value},()=>[U.value.legend.show?(O(),w(`div`,{key:0,class:`vue-ui-xy-legend`,style:D({fontSize:`var(--legend-font-size, ${U.value.legend.fontSize??14}px)`})},[U.value.legend.selectAllToggle.show&&Is.value.length>2&&!N(So)?(O(),mt(dt,{key:0,backgroundColor:U.value.legend.selectAllToggle.backgroundColor,color:U.value.legend.selectAllToggle.color,fontSize:U.value.legend.fontSize,checked:wa.value.length>0,onToggle:zl},null,8,[`backgroundColor`,`color`,`fontSize`,`checked`])):C(``,!0),(O(!0),w(x,null,A(Is.value,(e,t)=>(O(),w(`div`,{key:`div_legend_item_${t}`,onClick:t=>Hl(e),onKeydown:t=>Bl(t,e),role:`button`,tabindex:`0`,class:E({"vue-ui-xy-legend-item-alone":Is.value.length===1,"vue-ui-xy-legend-item":!0,"vue-ui-xy-legend-item-segregated":Ta.value.has(e.id)}),style:D({cursor:_o.value?`pointer`:`default`})},[ya.value[e.type]===`line`?(O(),w(`svg`,Fi,[T(`rect`,{x:`0`,y:`7.5`,rx:`1.5`,stroke:U.value.backgroundColor,"stroke-width":.5,height:`3`,width:`20`,fill:e.color},null,8,Ii),_t(st,{plot:{x:10,y:9},radius:4,color:e.color,shape:[`triangle`,`square`,`diamond`,`pentagon`,`hexagon`,`star`].includes(e.shape)?e.shape:`circle`,stroke:U.value.backgroundColor,strokeWidth:.5},null,8,[`color`,`shape`,`stroke`])])):ya.value[e.type]===`bar`?(O(),w(`svg`,Li,[ya.value[e.type]===`bar`&&i.$slots.pattern?(O(),w(`rect`,{key:0,x:`4`,y:`4`,rx:`1`,height:`32`,width:`32`,stroke:`none`,fill:e.color},null,8,Ri)):C(``,!0),ya.value[e.type]===`bar`?(O(),w(`rect`,{key:1,x:`4`,y:`4`,rx:`1`,height:`32`,width:`32`,stroke:`none`,fill:i.$slots.pattern?`url(#pattern_${I.value}_${e.slotAbsoluteIndex})`:e.color},null,8,zi)):C(``,!0)])):(O(),w(`svg`,Bi,[_t(st,{plot:{x:6,y:6},radius:5,color:e.color,shape:[`triangle`,`square`,`diamond`,`pentagon`,`hexagon`,`star`].includes(e.shape)?e.shape:`circle`},null,8,[`color`,`shape`])])),T(`span`,{style:D(`color:${U.value.legend.color}`)},Dt(e.name),5)],46,Pi))),128))],4)):C(``,!0)],!0)],512)],8,[`to`])):C(``,!0),i.$slots.source?(O(),w(`div`,{key:9,ref_key:`source`,ref:ia,dir:`auto`},[j(i.$slots,`source`,{},void 0,!0)],512)):C(``,!0),_t(N(zt),{teleportTo:U.value.tooltip.teleportTo,show:K.value.showTooltip&&Sa.value,backgroundColor:U.value.tooltip.backgroundColor,color:U.value.tooltip.color,fontSize:U.value.tooltip.fontSize,borderRadius:U.value.tooltip.borderRadius,borderColor:U.value.tooltip.borderColor,borderWidth:U.value.tooltip.borderWidth,backgroundOpacity:U.value.tooltip.backgroundOpacity,position:U.value.tooltip.position,offsetX:U.value.tooltip.offsetX,offsetY:U.value.tooltip.offsetY,parent:i.$refs.chart,content:Od.value,isFullscreen:xa.value,isCustom:U.value.tooltip.customFormat&&typeof U.value.tooltip.customFormat==`function`,smooth:U.value.tooltip.smooth,backdropFilter:U.value.tooltip.backdropFilter,smoothForce:U.value.tooltip.smoothForce,smoothSnapThreshold:U.value.tooltip.smoothSnapThreshold,isA11yMode:za.value!=null,a11yPosition:Ba.value},{"tooltip-before":Nt(()=>[j(i.$slots,`tooltip-before`,Ct(bt({...yd.value})),void 0,!0)]),tooltip:Nt(()=>[j(i.$slots,`tooltip`,Ct(bt({...yd.value})),void 0,!0)]),"tooltip-after":Nt(()=>[j(i.$slots,`tooltip-after`,Ct(bt({...yd.value})),void 0,!0)]),_:3},8,[`teleportTo`,`show`,`backgroundColor`,`color`,`fontSize`,`borderRadius`,`borderColor`,`borderWidth`,`backgroundOpacity`,`position`,`offsetX`,`offsetY`,`parent`,`content`,`isFullscreen`,`isCustom`,`smooth`,`backdropFilter`,`smoothForce`,`smoothSnapThreshold`,`isA11yMode`,`a11yPosition`]),ho.value&&U.value.userOptions.buttons.table?(O(),mt(Et(kf.value.component),xt({key:10},kf.value.props,{ref_key:`tableUnit`,ref:La,onClose:Af}),ht({content:Nt(()=>[T(`div`,{style:D(`${N(gs)||H.value.table.useDialog?``:`max-height:400px`};${H.value.table.useDialog?`height: fit-content; `:``};overflow:auto;width:100%;${H.value.table.useDialog?``:`margin-top:48px`}`)},[T(`div`,Vi,[Pt(T(`input`,{type:`checkbox`,"onUpdate:modelValue":o[4]||=e=>ka.value=e},null,512),[[At,ka.value]]),T(`div`,{onClick:o[5]||=e=>ka.value=!ka.value,style:D({cursor:_o.value?`pointer`:`default`})},[_t(N(Vt),{name:`chartLine`,size:20,stroke:U.value.color},null,8,[`stroke`])],4)]),ka.value?(O(),mt(N(nn),{key:`sparkline_${Aa.value}`,dataset:Zl.value,config:Ql.value},null,8,[`dataset`,`config`])):(O(),mt(N(Rt),{key:`table_${Da.value}`,colNames:zd.value.colNames,head:zd.value.head,body:zd.value.body,config:zd.value.config,title:H.value.table.useDialog?``:kf.value.title,withCloseButton:!H.value.table.useDialog,onClose:Af},{th:Nt(({th:e})=>[e===`__SUM__`?(O(),w(`div`,Hi,[_t(N(Vt),{name:`sigma`,stroke:zd.value.config.th.color,size:16},null,8,[`stroke`])])):(O(),w(`div`,Ui,Dt(e),1))]),td:Nt(({td:e})=>[gt(Dt(isNaN(Number(e))?e:N(a)({p:U.value.labels.prefix,v:e,s:U.value.labels.suffix,r:H.value.table.rounding})),1)]),_:1},8,[`colNames`,`head`,`body`,`config`,`title`,`withCloseButton`]))],4)]),_:2},[H.value.table.useDialog?{name:`title`,fn:Nt(()=>[gt(Dt(kf.value.title),1)]),key:`0`}:void 0,H.value.table.useDialog?{name:`actions`,fn:Nt(()=>[T(`button`,{tabindex:`0`,class:`vue-ui-user-options-button`,onClick:o[3]||=e=>Bd(U.value.userOptions.callbacks.csv)},[_t(N(Vt),{name:`fileCsv`,stroke:kf.value.props.color},null,8,[`stroke`])])]),key:`1`}:void 0]),1040)):C(``,!0),j(i.$slots,`skeleton`,{},()=>[N(So)?(O(),mt(Ve,{key:0})):C(``,!0)],!0)],46,rn))}},[[`__scopeId`,`data-v-44b376ad`]]);export{Ft as a,Lt as i,nn as n,It as r,Gi as t};
|
|
26
|
+
`:e+=`<div style="display:flex;flex-direction:row; align-items:center;gap:3px;white-space:nowrap;"><div style="width:20px">${i}</div> ${r.name}: <b>${c}</b> ${U.value.tooltip.showPercentage?`(${a({v:_(Math.abs(r.value)/t*100),s:`%`,r:U.value.tooltip.roundingPercentage})})`:``}</div>`;let l=dd(r.comments,z.value);U.value.comments.showInTooltip&&l&&(e+=`<div class="vue-data-ui-tooltip-comment" style="background:${g(r.color,12.5)}; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${r.color}">${l}</div>`)}}),`<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${U.value.tooltip.color}">${e}</div>`}),kd=S(()=>{if(!Y.value)return[];let e=/* @__PURE__ */ new Set,t=[];return X.value.forEach(n=>{n.series.forEach(n=>{let r=Number(n?.x);if(!Number.isFinite(r))return;let i=String(r);e.has(i)||(e.add(i),t.push(r))})}),t.sort((e,t)=>Xc.value?t-e:e-t)});function Ad(e){let t=Number(e);return Number.isFinite(t)?y(G.value.xAxis.formatter,t,a({v:t,r:H.value.table.rounding}),{datapoint:t,seriesIndex:null}):`-`}function jd(e){return Y.value?Ad(e):H.value.table.useDefaultTimeFormat?oc.value[e]?.text??`-`:Sd.value(e+q.value.start,H.value.table.timeFormat)}let Md=S(()=>{let e=/* @__PURE__ */ new Map;if(!Y.value)return e;for(let t of X.value){let n=/* @__PURE__ */ new Map;for(let e of t.series){let t=Number(e?.x);Number.isFinite(t)&&!n.has(t)&&n.set(t,e)}e.set(t,n)}return e});function Nd(e,t){if(Y.value){let n=Number(t);return Number.isFinite(n)?Md.value.get(e)?.get(n)?.y??null:null}return e.absoluteValues[t]}function Pd(e,t){let n=Nd(e,t);return qt(n)?Number(n.toFixed(H.value.table.rounding)):``}function Fd(e,t){let n=Nd(e,t);return qt(n)?y(e.type===`line`?H.value.line.labels.formatter:e.type===`bar`?H.value.bar.labels.formatter:H.value.plot.labels.formatter,n,a({p:e.prefix||U.value.labels.prefix,v:n,s:e.suffix||U.value.labels.suffix,r:H.value.table.rounding})):``}function Id(e){return X.value.map(t=>Nd(t,e)??0).reduce((e,t)=>e+t,0)}let Ld=S(()=>{if(Y.value)return kd.value.map(e=>{let t=Id(e);return{period:jd(e),csvValues:X.value.map(t=>Pd(t,e)),formattedValues:X.value.map(t=>Fd(t,e)),sum:t,formattedSum:t.toFixed(H.value.table.rounding)}});let e=[];for(let t=0;t<yc.value;t+=1){let n=Id(t);e.push({period:jd(t),csvValues:X.value.map(e=>Pd(e,t)),formattedValues:X.value.map(e=>Fd(e,t)),sum:n,formattedSum:n.toFixed(H.value.table.rounding)})}return e}),Rd=S(()=>Fs.value.length===0?{head:[],body:[],config:{},columnNames:[]}:{head:X.value.map(e=>({label:e.name,color:e.color,type:e.type})),body:Ld.value.map(e=>[e.period].concat(e.csvValues))}),zd=S(()=>{let e=H.value.table.showSum,t=[Y.value?G.value.axis.xLabel||`X`:``].concat(X.value.map(e=>e.name));e&&(t=t.concat(`__SUM__`));let n=Ld.value.map(t=>[t.period].concat(t.formattedValues,e?t.formattedSum:[])),r={th:{backgroundColor:H.value.table.th.backgroundColor,color:H.value.table.th.color,outline:H.value.table.th.outline},td:{backgroundColor:H.value.table.td.backgroundColor,color:H.value.table.td.color,outline:H.value.table.td.outline},breakpoint:H.value.table.responsiveBreakpoint},i=[Y.value?G.value.axis.xLabel||`X`:H.value.table.columnNames.period].concat(X.value.map(e=>e.name),H.value.table.columnNames.total);return{head:t,body:n,config:r,colNames:i}});function Bd(e=null){let t=[[U.value.title.text],[U.value.title.subtitle.text],[``]],n=[Y.value?G.value.axis.xLabel||`X`:H.value.table.columnNames.period,...Rd.value.head.map(e=>e.label)],r=Rd.value.body,i=t.concat([n]).concat(r),a=c(i);e?e(a):Oe({csvContent:a,title:U.value.title.text||`vue-ui-xy`})}function Vd(e,t=null){if(Ls.value)return;Sa.value=e;let n=X.value.map(e=>({...e,name:e.name,value:[null,void 0,NaN].includes(e.absoluteValues[t])?null:e.absoluteValues[t],color:e.color,type:e.type}));e?(z.value=t,H.value.events.datapointEnter&&H.value.events.datapointEnter({datapoint:n,seriesIndex:t+q.value.start})):(z.value=null,H.value.events.datapointLeave&&H.value.events.datapointLeave({datapoint:n,seriesIndex:t+q.value.start}))}function Hd(){K.value.showTable=!K.value.showTable}function Ud(){K.value.dataLabels.show=!K.value.dataLabels.show}function Wd(){K.value.showTooltip=!K.value.showTooltip}function Gd(e){xa.value=e,Ea.value+=1}function Kd(){H.value.responsiveProportionalSizing?(B.value.dataLabels=Ne({relator:ga.value,adjuster:400,source:G.value.fontSize,threshold:10,fallback:10}),B.value.yAxis=Ne({relator:F.value,adjuster:1e3,source:G.value.axis.fontSize,threshold:10,fallback:10}),B.value.xAxis=Ne({relator:F.value,adjuster:1e3,source:G.value.xAxisLabels.fontSize,threshold:10,fallback:10}),B.value.plotLabels=Ne({relator:F.value,adjuster:800,source:U.value.labels.fontSize,threshold:10,fallback:10}),so.value.plot=Ne({relator:F.value,adjuster:800,source:H.value.plot.radius,threshold:1,fallback:1}),so.value.line=Ne({relator:F.value,adjuster:800,source:H.value.line.radius,threshold:1,fallback:0}),so.value.selectedLine=Ne({relator:F.value,adjuster:800,source:H.value.line.dot.selectedRadius,threshold:1,fallback:0})):(B.value.dataLabels=G.value.fontSize,B.value.yAxis=G.value.axis.fontSize,B.value.xAxis=G.value.xAxisLabels.fontSize,B.value.plotLabels=U.value.labels.fontSize,so.value.plot=H.value.plot.radius,so.value.line=H.value.line.radius,so.value.selectedLine=H.value.line.dot.selectedRadius)}function qd(){if(ze(b.dataset)?(_e({componentName:`VueUiXy`,type:`dataset`,debug:yo.value}),wo.value=!0):b.dataset.forEach((e,t)=>{[null,void 0].includes(e.name)&&(_e({componentName:`VueUiXy`,type:`datasetSerieAttribute`,property:`name (string)`,index:t,debug:yo.value}),wo.value=!0)}),yo.value&&b.dataset.forEach(e=>{e.series.forEach((t,n)=>{ae(t)||console.warn(`VueUiXy has detected an unsafe value in your dataset:\n-----> The serie '${e.name}' contains the value '${t}' at index ${n}.\n'${t}' was converted to null to allow the chart to display.`)})}),ze(b.dataset)||(wo.value=H.value.loading),ja.value=U.value.userOptions.showOnChartHover,Ma.value=U.value.userOptions.keepStateOnChartLeave,Na.value=!U.value.userOptions.showOnChartHover,vo(),H.value.responsive){let e=ea.value.parentNode;fa.value&&(pa.value&&fa.value.unobserve(pa.value),fa.value.disconnect(),fa.value=null,pa.value=null);let{height:t,width:n}=e.getBoundingClientRect(),r=null,i=0;U.value.title.show&&ta.value&&(r=ta.value,i=r.getBoundingClientRect().height);let a=null,o=0;U.value.zoom.show&&Ao.value>6&&ho.value&&na.value&&na.value.$el&&(a=na.value.$el,o=a.getBoundingClientRect().height);let s=null,c=0;U.value.legend.show&&ra.value&&(s=ra.value,c=s.getBoundingClientRect().height);let l=0;ia.value&&(l=ia.value.getBoundingClientRect().height);let u=0;aa.value&&(u=aa.value.getBoundingClientRect().height),ga.value=t-i-c-o-l-u-12,F.value=n,_a.value=`0 0 ${F.value<0?10:F.value} ${ga.value<0?10:ga.value}`,Kd();let d=new ResizeObserver(e=>{for(let t of e)i=U.value.title.show&&ta.value?ta.value.getBoundingClientRect().height:0,o=na.value&&na.value.$el?na.value.$el.getBoundingClientRect().height:0,c=ra.value?ra.value.getBoundingClientRect().height:0,l=ia.value?ia.value.getBoundingClientRect().height:0,u=aa.value?aa.value.getBoundingClientRect().height:0,requestAnimationFrame(()=>{ga.value=t.contentRect.height-i-c-o-l-u-12,F.value=t.contentBoxSize[0].inlineSize??t.contentRect.width,_a.value=`0 0 ${F.value<0?10:F.value} ${ga.value<0?10:ga.value}`,Kd(),no()})});fa.value=d,pa.value=e,d.observe(e)}else ga.value=U.value.height,F.value=U.value.width,B.value.dataLabels=G.value.fontSize,B.value.yAxis=G.value.axis.fontSize,B.value.xAxis=G.value.xAxisLabels.fontSize,B.value.plotLabels=U.value.labels.fontSize,so.value.plot=H.value.plot.radius,so.value.line=H.value.line.radius,so.value.selectedLine=H.value.line.dot.selectedRadius,_a.value=`0 0 ${F.value} ${ga.value}`;no()}function Jd(e){va.value={x:e.clientX,y:e.clientY}}Tt(()=>{qd(),Ac(),document.addEventListener(`mousemove`,Jd,{passive:!0}),document.addEventListener(`scroll`,$s,{passive:!0})}),wt(()=>{document.removeEventListener(`scroll`,$s,{passive:!0}),document.removeEventListener(`mousemove`,Jd,{passive:!0}),fa.value&&(pa.value&&fa.value.unobserve(pa.value),fa.value.disconnect(),fa.value=null,pa.value=null),rf(),xl(),Lc(),os()});let{detectTimeLabelCollisionNow:Yd}=at({timeLabelsEls:la,timeLabels:oc,slicer:q,configRef:H,rotationPath:[`chart`,`grid`,`labels`,`xAxisLabels`,`rotation`],autoRotatePath:[`chart`,`grid`,`labels`,`xAxisLabels`,`autoRotate`,`enable`],isAutoSize:bs,height:ga,width:F,rotation:G.value.xAxisLabels.autoRotate.angle,resizeDebounceMs:0}),Xd=k(!1),Zd=M(null),Qd=k(200),$d=S(()=>z.value??L.value??0),ef=S(()=>{if(!Y.value)return null;if(Ce(Ra.value))return Number(Ra.value);let e=ul.value[0];return Ce(e?.point?.x)?Number(e.point.x):null});function tf(){let e=Math.ceil(Qd.value||200);return Math.min(Math.max(e,1),200)}function nf(){let e=tf(),t=(Y.value&&Ce(ef.value)?Zu({x:ef.value}):tu($d.value))-e/2-(200-e)/2,n=Q.value?.left-(200-e)/2,r=Q.value?.right-(200+e)/2;return _(Math.max(n,Math.min(t,r)))}function rf(){Ga.value!==null&&(cancelAnimationFrame(Ga.value),Ga.value=null),Ua.value&&Wa.value&&Ua.value.unobserve(Wa.value),Ua.value&&=(Ua.value.disconnect(),null),Ka.value&&=(Ka.value(),null),Wa.value=null}function af(e){Ga.value!==null&&cancelAnimationFrame(Ga.value),Ga.value=requestAnimationFrame(()=>{Qd.value=Math.min(Math.max(Math.ceil(e||0),1),200),Ga.value=null})}function of(e){Ua.value&&e&&(Wa.value&&Wa.value!==e&&(Ua.value.unobserve(Wa.value),Wa.value=null),e!==Wa.value&&(St(()=>{e.offsetParent!==null&&af(e.offsetWidth||e.getBoundingClientRect().width||200)}),Ua.value.observe(e),Wa.value=e))}Tt(()=>{Ua.value=new ResizeObserver(e=>{let t=e.find(e=>e.target===Wa.value)||e[0];t&&af(t.contentRect.width||200)}),Ka.value=Mt(e=>{let t=Zd.value;t?(of(t),e(()=>{Ua.value&&Wa.value&&Wa.value!==Zd.value&&(Ua.value.unobserve(Wa.value),Wa.value=null)})):Ua.value&&Wa.value&&(Ua.value.unobserve(Wa.value),Wa.value=null)})});let sf=S(()=>{if(Y.value){if(!Number.isFinite(Number(ef.value)))return``}else if([null,void 0].includes(z.value)&&[null,void 0].includes(L.value))return``;let e=(z.value==null?0:z.value)||(L.value==null?0:L.value),t=U.value.timeTag.customFormat;if(Xd.value=!1,Y.value){let e=ef.value;if(l(t))try{let n=t({absoluteIndex:e,seriesIndex:e,datapoint:Lu.value,bars:fd.value,lines:$.value,plots:md.value,config:H.value});if(typeof n==`string`)return Xd.value=!0,n}catch{console.warn(`Custom format cannot be applied on timeTag.`),Xd.value=!1}return a({v:e,r:G.value.xAxis.rounding})}if(l(t))try{let n=t({absoluteIndex:e+q.value.start,seriesIndex:e,datapoint:Lu.value,bars:fd.value,lines:$.value,plots:md.value,config:H.value});if(typeof n==`string`)return Xd.value=!0,n}catch{console.warn(`Custom format cannot be applied on timeTag.`),Xd.value=!1}if(!Xd.value)return[null,void 0].includes(oc.value[e])?``:G.value.xAxisLabels.datetimeFormatter.enable&&!U.value.timeTag.useDefaultFormat?Sd.value(e+q.value.start,U.value.timeTag.timeFormat):oc.value[e].text});function cf({serie:e,plot:t,type:n}){if(!qt(t.value))return``;let r=a({p:e.prefix||U.value.labels.prefix,v:t.value,s:e.suffix||U.value.labels.suffix,r:H.value[n].labels.rounding}),i=t.datasetXValue,o=Y.value&&Ce(i)?`x: ${a({v:i,r:G.value.xAxis.rounding})}\ny: ${r}`:y(H.value[n].labels.formatter,t.value,r,{datapoint:t,serie:e});return h({content:o,fontSize:B.value.plotLabels,fill:H.value[n].labels.color,x:0,y:0})}function lf({plot:e}){let t=H.value.bar.labels.offsetY,n=Math.abs(nl(e)),r=e.value<0,i={x:ol(e)+H.value.bar.labels.offsetX,y:_(e.y)+(H.value.bar.labels.alwaysOnTop?t-(r?n:0):e.value>=0?t:-t*3)};return`translate(${i.x}, ${i.y}) rotate(${H.value.bar.labels.rotation})`}function uf({plot:e,type:t}){let n=H.value[t].labels.offsetY,r={x:e.x+H.value[t].labels.offsetX,y:_(e.y)+(H.value[t].labels.alwaysOnTop||e.value>=0?n:-n*3)};return`translate(${r.x}, ${r.y}) rotate(${H.value[t].labels.rotation})`}function df({plot:e,type:t}){if(H.value[t].labels.textAnchor!=null)return H.value[t].labels.textAnchor;let n=e.value>=0;return H.value[t].labels.rotation===0?`middle`:H.value[t].labels.alwaysOnTop||n?`start`:`end`}let ff=S(()=>Y.value?Ce(Ra.value)?Zu({x:Number(Ra.value)}):Ce(dl.value)?dl.value:null:tu(z.value??L.value??0)),pf=S(()=>U.value.highlighter.crosshairs.show&&Sc.value),mf=S(()=>[...$.value,...md.value,...fd.value].flatMap(e=>(e.plots||[]).map((e,t)=>({plot:e,index:t})).filter(({plot:t,index:n})=>_f(e,t,n)).filter(({plot:e})=>qt(e.value)).map(({plot:t,index:n})=>({...t,index:t.index??n,serie:e,x:_(e.type===`bar`?ol(t):t.x),y:_(t.y)})))),hf=S(()=>{if(!pf.value)return null;if(Y.value){let e=ul.value[0],t=e?.point?.raw?.x??e?.point?.x;return Ce(t)?{x:ff.value,text:y(G.value.xAxis.formatter,t,a({v:t,r:U.value.tooltip.roundingValue}))}:null}let e=z.value===null?L.value:z.value;return e==null?null:{x:tu(e),text:oc.value[e]?.text??``}});function gf(e){return G.value.yAxis.position===`right`?Q.value.right:Q.value.left}function _f(e,t,n){return Y.value?ul.value.some(n=>n.datapoint.id===e.id&&n.index===t.index):z.value!==null&&z.value===n||L.value!==null&&L.value===n}function vf({serie:e,plot:t,index:n,type:r}){return!t||!qt(t.value)||!H.value[r].labels.show||!K.value.dataLabels.show?!1:!Object.hasOwn(e,`dataLabels`)||e.dataLabels===!0||_f(e,t,n)}function yf(e,t){let n=[];return e.forEach((e,r)=>{(Array.isArray(e.plots)?e.plots:[]).forEach((i,a)=>{vf({serie:e,plot:i,index:a,type:t})&&n.push({key:`data_label_${t}_${e.id}_${(i.index??a)+q.value.start}`,serie:e,serieIndex:r,plot:i,plotIndex:a})})}),n}let bf=S(()=>yf(fd.value,`bar`)),xf=S(()=>yf(md.value,`plot`)),Sf=S(()=>yf($.value,`line`));jt(()=>b.dataset,e=>{if(Array.isArray(e)&&e.length>0&&(wo.value=!1),U.value.zoom.keepState){let e=Ao.value;if(e>0){let t=q.value.start,n=q.value.end;if(!Dc.value||t===0&&n===0)Ac();else{let r=Math.max(0,Math.min(t,e-1)),i=Math.max(r+1,Math.min(n,e));q.value={start:r,end:i},jo.value={start:r,end:i},Oc.value=0,kc.value=e}}}else q.value={start:0,end:Ao.value};ma.value+=1,Aa.value+=1,no(),ms()},{deep:!0});function Cf(e){let t=be(e);return t?.chart&&delete t.chart.tooltip,JSON.stringify(t)}let wf=Cf(b.config);jt(()=>b.config,(e,t)=>{let n=Cf(e),r=n!==wf;wf=n;let i=po();r?(So.value||(H.value=i),qd(),Oa.value+=1,Da.value+=1,vo(),U.value.zoom.keepState&&Ao.value>0&&(!Dc.value||q.value.start===0&&q.value.end===0)&&Ac(),ms()):(H.value.chart.tooltip=i.chart.tooltip,K.value.showTooltip=H.value.chart.tooltip.show)},{deep:!0});let Tf=k(!1),Ef=k(!1);function Df(){let e=ea.value?.parentNode;if(!e){Ef.value=Tf.value,Tf.value=!1;return}let t=e.getBoundingClientRect();Ef.value=Tf.value,Tf.value=t.width>0&&t.height>0}function Of(){return!Tf.value||Ef.value||Dc.value?!1:q.value.start===0&&q.value.end===0}Tt(()=>{Df(),Va.value=new ResizeObserver(()=>{if(Df(),!Tf.value)return;let e=!Ef.value;qd(),ms(),Of()&&Ac(),e&&Gs()}),ea.value?.parentNode&&Va.value.observe(ea.value.parentNode)}),jt(H,()=>{vo()},{immediate:!0});let kf=S(()=>Ye({config:H,style:U,mutableConfig:K,dialog:qi,accordion:ut,isFullscreen:xa,parent:ea,maxWidth:800,showTable:()=>H.value.showTable}));jt(()=>K.value.showTable,e=>{H.value.showTable||(e&&H.value.table.useDialog&&La.value?La.value.open():La.value&&La.value.close&&La.value.close())});function Af(){K.value.showTable=!1,da.value&&da.value.setTableIconState(!1)}let jf=S(()=>Is.value.map(e=>({shape:e.type===`bar`?`square`:e.shape??`circle`,color:e.color,name:e.name}))),Mf=S(()=>H.value.chart.backgroundColor),Nf=S(()=>H.value.chart.legend),Pf=S(()=>H.value.chart.title),{isCallbackImaging:Ff,isCallbackSvg:If,generateSvg:Lf,onGenerateImage:Rf}=Je({svg:R,title:Pf,legend:Nf,legendItems:jf,backgroundColor:Mf,getSvgCallback:()=>U.value.userOptions.callbacks.svg,generateImage:ys});async function zf(){Ji(`copyAlt`,{config:{...H.value,formattedDates:oc.value},dataset:{lines:$.value,bars:fd.value,plots:md.value}}),U.value.userOptions.callbacks.altCopy?await Promise.resolve(U.value.userOptions.callbacks.altCopy({config:{...H.value,formattedDates:oc.value},dataset:{lines:$.value,bars:fd.value,plots:md.value}})):console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.")}let Bf=S(()=>U.value.userOptions.buttons.analyze&&!So.value&&Ft.some(e=>H.value.analysis.options?.[e]!==!1)&&Ht(Fs.value,Ta.value,Y.value)),Vf=vt(()=>import(`./XyAnalysisOptions-djGOJdKc.js`)),Hf=k(!1),Uf=k(It()),Wf=k(null),Gf=k(null),Kf=M(null),qf=k(null),Jf=S(()=>Fs.value.filter(e=>!Ta.value.has(e.id)&&[`line`,`bar`,`plot`].includes(e.type)).map(e=>({id:e.id,name:e.name}))),Yf=S(()=>Jf.value.length===1?[Jf.value[0].id]:Wf.value??Jf.value.map(e=>e.id)),Xf=!1;function Zf(){Bf.value&&!Hf.value&&(np.value?.beginGeneratedPreview()?(Xf=ba.value,Gf.value=np.value.getAnalysisAppearance(),da.value?.close(),Hf.value=!0,Kf.value={options:Uf.value,seriesIds:Yf.value,appearance:Gf.value}):rp.value=H.value.analysis.visualBusy)}function Qf(){Hf.value=!1,Kf.value=null,St(()=>da.value?.$el?.querySelector(`[data-cy="user-options-summary"]`)?.focus())}function $f(){np.value?.finishGeneratedPreview(!1),ba.value=Xf,rp.value=``,Qf()}function ep({options:e,seriesIds:t,appearance:n}){n&&(Gf.value=n),Kf.value={options:{...e},seriesIds:[...t],appearance:Gf.value},!U.value.userOptions.callbacks.analyze&&(op(t),cp(e,n))}function tp({options:e,seriesIds:t,appearance:n}){qf.value=n||Gf.value||np.value?.getAnalysisAppearance(),Uf.value=Lt(e,H.value.analysis.options),Wf.value=[...t],sp(),ap.value=!U.value.userOptions.callbacks.analyze,np.value?.finishGeneratedPreview(!0),np.value?.setAnalysisAppearance(qf.value),ba.value=Xf,Qf()}let np=M(null),rp=k(``),ip=M([]),ap=k(!1);function op(e=Yf.value){let t=new Set(e);ip.value=Wt(Co.value,Ta.value,Y.value,Ut(Fs.value,Y.value,q.value.start)),ip.value=ip.value.filter(e=>t.has(e.id.replace(`series-`,`uniqueId_`))),rp.value=``}function sp(){if(!Bf.value)return;op();let e=U.value.userOptions.callbacks.analyze;e?e({scope:`visible-datapoints`,options:Lt(Uf.value,H.value.analysis.options),seriesIds:[...Yf.value],appearance:qf.value,range:{...es(),scale:Y.value?`continuous`:`category`},series:ip.value,text:Gt(ip.value,H.value.analysis)}):cp()}function cp(e=Uf.value,t=qf.value){let n=Kt(ip.value,hd.value.map(e=>({...e,analysisSliceStart:Math.trunc(q.value.start),analysisUnit:JSON.stringify([e.prefix||U.value.labels.prefix,e.suffix||U.value.labels.suffix,K.value.useIndividualScale||K.value.isStacked?e.id:e.autoScaling?e.scaleLabel:``])})),Q.value,H.value.analysis,Y.value,(e,t)=>a({v:e,r:H.value[t.type].labels.rounding,locale:H.value.analysis.locale}),e),r=np.value?.replaceGeneratedAnnotations(n,t);rp.value=r?n.length?H.value.analysis.visualAdded.replace(`{count}`,String(n.length)):H.value.analysis.visualEmpty:H.value.analysis.visualBusy,r&&n.length&&Hf.value&&(ba.value=!0)}function lp(){Hf.value&&$f(),ap.value=!1,np.value?.replaceGeneratedAnnotations([]),rp.value=``,ip.value=[]}jt(()=>JSON.stringify(b.dataset.map(({name:e,type:t,series:n})=>({name:e,type:t,series:n}))),lp),jt([()=>q.value.start,()=>q.value.end],lp),jt([hd,()=>K.value.isStacked,()=>K.value.useIndividualScale,()=>H.value.analysis,Bf],async()=>{Hf.value?(await St(),Hf.value&&Kf.value&&ep(Kf.value)):ap.value&&!U.value.userOptions.callbacks.analyze&&(await St(),ap.value&&Bf.value&&(op(),cp()))},{deep:!0,flush:`post`}),wt(()=>np.value?.finishGeneratedPreview(!1));let up=k(!1);function dp(){q.value.end>q.value.start&&(za.value=null),tc.value=!0,up.value=!0}function fp(){Ol(),za.value=null,Pl(),up.value=!1,tc.value=!1}function pp(e){if(!R.value||ba.value||document.activeElement!==R.value)return;if(Ol(),e.key===`Escape`){qo.value&&(vl.value||Mo.value)&&(e.preventDefault(),e.stopPropagation(),xl(),Uc());return}let t=e.key===`ArrowLeft`,n=e.key===`ArrowRight`;if(!t&&!n||!q.value.end&&q.value.end!==0)return;let r=q.value.end-q.value.start;if(r<=0)return;if(e.preventDefault(),e.stopPropagation(),Y.value){let e=ml.value.length;if(!e)return;let r=za.value;r!==null&&r>=0&&r<e?n?(r+=1,r>=e&&(r=0)):t&&(--r,r<0&&(r=e-1)):r=n?0:e-1,hl(r);return}let i=za.value,a=ll.value;i!==null&&i>=0&&i<r?n?(i+=1,i>=r&&(i=0)):t&&(--i,i<0&&(i=r-1)):a!==null&&a>=0&&a<r?(i=n?a+1:a-1,i>=r&&(i=0),i<0&&(i=r-1)):i=n?0:r-1,za.value=i,mp(i),Vd(!0,i)}function mp(e){let t=q.value.end-q.value.start;if(t<=0)return;let n=Q.value.width/t,r=Q.value.left+n*e+n/2,i=Q.value.top+Q.value.height/2,a=Pe(r,i,R.value);a&&(Ba.value=a)}let hp=S(()=>{if(!zd.value)return null;let e=H.value.table.showSum,t=[H.value.table.columnNames.period].concat(X.value.map(e=>e.name));return e&&(t=t.concat(H.value.table.columnNames.total)),{headers:t,rows:zd.value.body}});return Te({getData:Ll,getImage:Rl,generatePdf:vs,generateImage:ys,generateSvg:Lf,generateCsv:Bd,hideSeries:Gl,showSeries:Wl,toggleStack:Cc,toggleTable:Hd,toggleLabels:Ud,toggleTooltip:Wd,toggleAnnotator:ac,toggleFullscreen:Gd,copyAlt:zf,resetZoom:Uc,setZoomState:ps}),jt(()=>[F.value,ga.value,B.value,G.value,U.value.padding,H.value.chart.fontFamily,_c.value,sc.value,Ya.value,b.dataset,wa.value,K.value.useIndividualScale,K.value.isStacked,ua.value,sa.value,ca.value,la.value],Ws,{flush:`post`,deep:!0}),(i,o)=>(O(),w(`div`,{id:`vue-ui-xy_${I.value}`,class:E(`vue-data-ui-component vue-ui-xy ${xa.value?`vue-data-ui-wrapper-fullscreen`:``} ${H.value.useCssAnimation?``:`vue-ui-dna`}`),ref_key:`chart`,ref:ea,style:D(`background:${U.value.backgroundColor}; color:${U.value.color};width:100%;font-family:${U.value.fontFamily};${H.value.responsive?`height: 100%`:``}`),onMouseenter:rc,onMouseleave:ic},[T(`div`,{id:`chart-instructions-${I.value}`,class:`sr-only`},[T(`p`,null,Dt(H.value.a11y.translations.keyboardNavigation),1)],8,an),hp.value?.rows?.length?(O(),mt(ft,{key:0,uid:I.value,head:hp.value.headers,body:hp.value.rows,notice:H.value.a11y.translations.tableAvailable,caption:H.value.a11y.translations.tableCaption},null,8,[`uid`,`head`,`body`,`notice`,`caption`])):C(``,!0),(U.value.userOptions.buttons.annotator||U.value.userOptions.buttons.analyze)&&R.value?(O(),mt(N(Ki),xt({key:1,ref_key:`analysisPen`,ref:np},N(n)(U.value.userOptions.annotator),{svgRef:R.value,followZoom:U.value.userOptions.annotator?.followZoom,annotationViewport:is.value,backgroundColor:U.value.backgroundColor,color:U.value.color,active:ba.value&&!Hf.value,isCursorPointer:_o.value,palette:U.value.userOptions.annotatorPalette,onClose:ac}),ht({_:2},[A(N(r),e=>({name:e,fn:Nt(n=>[j(i.$slots,e,Ct(bt(N(t)(e,n))),void 0,!0)])}))]),1040,[`svgRef`,`followZoom`,`annotationViewport`,`backgroundColor`,`color`,`active`,`isCursorPointer`,`palette`])):C(``,!0),Jl.value?(O(),w(`div`,{key:2,ref_key:`noTitle`,ref:aa,class:`vue-data-ui-no-title-space`,style:`height:36px; width: 100%; background:transparent`},null,512)):C(``,!0),U.value.title.show?(O(),w(`div`,{key:3,ref_key:`chartTitle`,ref:ta,class:`vue-ui-xy-title`,style:D(`font-family:${U.value.fontFamily}`)},[(O(),mt(qe,{key:`title_${Oa.value}`,config:{title:{cy:`xy-div-title`,...U.value.title},subtitle:{cy:`xy-div-subtitle`,...U.value.title.subtitle}}},null,8,[`config`]))],4)):C(``,!0),T(`div`,{id:`legend-top-${I.value}`},null,8,on),U.value.userOptions.show&&(Ma.value||Na.value)?(O(),mt(N(Bt),{ref_key:`userOptionsRef`,ref:da,key:`user_options_${Ea.value}`,backgroundColor:U.value.backgroundColor,color:U.value.color,isPrinting:N(gs),isImaging:N(_s),uid:I.value,hasTooltip:U.value.userOptions.buttons.tooltip&&U.value.tooltip.show,hasPdf:U.value.userOptions.buttons.pdf,hasXls:U.value.userOptions.buttons.csv,hasImg:U.value.userOptions.buttons.img,hasSvg:U.value.userOptions.buttons.svg,hasLabel:U.value.userOptions.buttons.labels,hasTable:U.value.userOptions.buttons.table,hasStack:e.dataset.length>1&&U.value.userOptions.buttons.stack,hasFullscreen:U.value.userOptions.buttons.fullscreen,hasAnalyze:Bf.value,onAnalyze:Zf,hasAltCopy:U.value.userOptions.buttons.altCopy,isStacked:K.value.isStacked,isFullscreen:xa.value,chartElement:i.$refs.chart,position:U.value.userOptions.position,isTooltip:K.value.showTooltip,titles:{...U.value.userOptions.buttonTitles},hasAnnotator:U.value.userOptions.buttons.annotator,isAnnotation:ba.value,callbacks:U.value.userOptions.callbacks,tableDialog:H.value.table.useDialog,printScale:U.value.userOptions.print.scale,isCursorPointer:_o.value,onToggleFullscreen:Gd,onGeneratePdf:N(vs),onGenerateCsv:Bd,onGenerateImage:N(Rf),onGenerateSvg:N(Lf),onToggleTable:Hd,onToggleLabels:Ud,onToggleStack:Cc,onToggleTooltip:Wd,onToggleAnnotator:ac,onCopyAlt:zf,style:D({visibility:Ma.value?Na.value?`visible`:`hidden`:`visible`})},ht({_:2},[A(N(Xe)(i.$slots,`menuIcon optionTooltip optionPdf optionCsv optionImg optionSvg optionTable optionLabels optionFullscreen optionAnnotator optionAltCopy optionAnalyze custom-menu-before custom-menu-after`),e=>({name:e,fn:Nt(t=>[j(i.$slots,e,Ct(bt(N(Ze)(e,t))),void 0,!0)])})),i.$slots.optionStack?{name:`optionStack`,fn:Nt(({isStack:e})=>[j(i.$slots,`optionStack`,Ct(bt({isStack:e})),void 0,!0)]),key:`0`}:void 0]),1032,/* @__PURE__ */ `backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasLabel.hasTable.hasStack.hasFullscreen.hasAnalyze.hasAltCopy.isStacked.isFullscreen.chartElement.position.isTooltip.titles.hasAnnotator.isAnnotation.callbacks.tableDialog.printScale.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style`.split(`.`))):C(``,!0),Hf.value&&Bf.value?(O(),mt(N(Vf),{key:5,messages:H.value.analysis,selected:Uf.value,series:Jf.value,selectedSeries:Yf.value,appearance:Gf.value,palette:U.value.userOptions.annotatorPalette,onPreview:ep,isFullscreen:xa.value,fullscreenParent:i.$refs.chart,fontFamily:U.value.fontFamily,isCursorPointer:_o.value,color:U.value.color,backgroundColor:U.value.backgroundColor,onApply:tp,onCancel:$f},ht({_:2},[i.$slots[`analysis-action-color`]?{name:`analysis-action-color`,fn:Nt(({color:e})=>[j(i.$slots,`analysis-action-color`,Ct(bt({color:e})),void 0,!0)]),key:`0`}:void 0]),1032,[`messages`,`selected`,`series`,`selectedSeries`,`appearance`,`palette`,`isFullscreen`,`fullscreenParent`,`fontFamily`,`isCursorPointer`,`color`,`backgroundColor`])):C(``,!0),T(`p`,sn,Dt(rp.value),1),T(`div`,cn,[(O(),w(`svg`,{ref_key:`svgRef`,ref:R,xmlns:`http://www.w3.org/2000/svg`,class:E([{"vue-data-ui-fullscreen--on":xa.value,"vue-data-ui-fulscreen--off":!xa.value,"vue-data-ui-no-transition":!N(go)||N(Us),"vue-ui-xy-chart-zoom-pointer-focus":qo.value&&No.value},`vue-ui-xy-svg vue-data-ui-svg`]),width:`100%`,viewBox:_a.value,style:D({visibility:N(Hs)?`visible`:`hidden`,background:`transparent`,color:U.value.color,fontFamily:U.value.fontFamily,cursor:qo.value?Mo.value?`col-resize`:`crosshair`:void 0,touchAction:qo.value?`pan-y`:void 0,userSelect:qo.value?`none`:void 0,overflow:`visible`}),"aria-label":Kl.value,"aria-describedby":`chart-instructions-${I.value}`,"aria-live":`polite`,role:`img`,tabindex:`0`,preserveAspectRatio:`xMidYMid`,onMousemove:Nl,onMouseleave:Pl,onClick:Fl,onPointerdown:kl,onPointermove:Al,onPointerup:jl,onPointercancel:xl,onFocus:dp,onBlur:fp,onKeydown:pp},[T(`g`,{ref_key:`G`,ref:oa,class:`vue-data-ui-g`},[_t(N(Gi)),j(i.$slots,`svg-underlayer`,{svg:{...ro.value,slicer:q.value,isPrintingImg:N(gs)||N(_s)||N(Ff),isPrintingSvg:N(If),data:hd.value,drawingArea:Q.value}},void 0,!0),T(`defs`,null,[T(`clipPath`,{id:`vue_ui_xy_zoom_clip_${I.value}`},[T(`rect`,{x:Q.value.left,y:Q.value.top,width:Math.max(0,Q.value.width),height:Math.max(0,Q.value.height)},null,8,dn)],8,un)]),i.$slots[`chart-background`]?(O(),w(`foreignObject`,{key:0,x:Math.max(0,Q.value?.left),y:Q.value?.top,width:Math.max(0,Q.value?.width),height:Math.max(0,Q.value?.height),style:{pointerEvents:`none`}},[j(i.$slots,`chart-background`,{},void 0,!0)],8,fn)):C(``,!0),yc.value>0?(O(),w(`g`,pn,[T(`g`,mn,[G.value.xAxis.showBaseline?(O(),w(`line`,{key:0,stroke:W.value.stroke,"stroke-width":`1`,x1:Q.value?.left,x2:Q.value?.right,y1:N(v)(Q.value?.bottom),y2:N(v)(Q.value?.bottom),"stroke-linecap":`round`,style:{animation:`none !important`}},null,8,hn)):C(``,!0),K.value.useIndividualScale?W.value.showHorizontalLines?(O(!0),w(x,{key:2},A(_d.value,e=>(O(),w(`g`,{key:`individual_grid_${e.groupId||e.id}`},[e.id===P.value&&e.yLabels.length?(O(!0),w(x,{key:0},A(e.yLabels,t=>(O(),w(`line`,{key:`selected_individual_grid_line_${e.groupId||e.id}_${t.value}_${t.y}`,x1:Q.value?.left,x2:Q.value?.right,y1:N(v)(t.y),y2:N(v)(t.y),stroke:e.color,"stroke-width":.5,"stroke-linecap":`round`,style:{animation:`none !important`}},null,8,yn))),128)):e.yLabels.length?(O(!0),w(x,{key:1},A(e.yLabels,t=>(O(),w(`line`,{key:`individual_grid_line_${e.groupId||e.id}_${t.value}_${t.y}`,x1:Q.value?.left,x2:Q.value?.right,y1:N(v)(t.y),y2:N(v)(t.y),stroke:e.stroke,"stroke-width":.5,"stroke-linecap":`round`,style:{animation:`none !important`}},null,8,bn))),128)):C(``,!0)]))),128)):C(``,!0):(O(),w(x,{key:1},[G.value.yAxis.showBaseline?(O(),w(`line`,{key:0,class:`vue-ui-xy-y-axis`,stroke:W.value.stroke,"stroke-width":`1`,x1:Z.value?Q.value?.right:Q.value?.left,x2:Z.value?Q.value?.right:Q.value?.left,y1:N(v)(Q.value?.top),y2:N(v)(Q.value?.bottom),"stroke-linecap":`round`,style:{animation:`none !important`}},null,8,gn)):C(``,!0),W.value.showHorizontalLines?(O(),w(`g`,_n,[(O(!0),w(x,null,A(Ru.value,e=>(O(),w(`line`,{key:`horizontal_grid_line_${e.value}_${e.y}`,x1:Q.value?.left,x2:Q.value?.right,y1:N(v)(e.y),y2:N(v)(e.y),stroke:W.value.stroke,"stroke-width":.5,"stroke-linecap":`round`,style:{animation:`none !important`}},null,8,vn))),128))])):C(``,!0)],64)),W.value.showVerticalLines?(O(),w(`g`,xn,[T(`path`,{d:Ys.value,"stroke-width":.5,stroke:W.value.stroke,"stroke-linecap":`round`,style:{animation:`none !important`}},null,8,Sn)])):C(``,!0),G.value.xAxisLabels.show?(O(),w(`g`,Cn,[T(`path`,{d:Xs.value,stroke:W.value.stroke,"stroke-width":1,"stroke-linecap":`round`,style:{animation:`none !important`}},null,8,wn)])):C(``,!0)]),(O(!0),w(x,null,A(fd.value,(e,t)=>(O(),w(`defs`,{key:`def_rect_${t}`},[i.$slots[`bar-gradient`]?j(i.$slots,`bar-gradient`,xt({ref_for:!0},{series:e,positiveId:`rectGradient_pos_${t}_${I.value}`,negativeId:`rectGradient_neg_${t}_${I.value}`}),void 0,!0,0):(O(),w(x,{key:1},[_t(ct,{t:`linear`,id:`rectGradient_pos_${t}_${I.value}`,x2:`0%`,y2:`100%`,stops:[[`0%`,e.color,1],[`62%`,N(me)(e.color,.02),1],[`100%`,N(me)(e.color,.05),1]]},null,8,[`id`,`stops`]),_t(ct,{t:`linear`,id:`rectGradient_neg_${t}_${I.value}`,x2:`0%`,y2:`100%`,stops:[[`0%`,N(me)(e.color,.05),1],[`38%`,N(me)(e.color,.02),1],[`100%`,e.color,1]]},null,8,[`id`,`stops`])],64))]))),128)),(O(!0),w(x,null,A(md.value,(e,t)=>(O(),w(`defs`,{key:`def_plot_${t}`},[_t(ct,{t:`radial`,id:`plotGradient_${t}_${I.value}`,cx:`50%`,cy:`50%`,r:`50%`,fx:`50%`,fy:`50%`,stops:[[`0%`,N(me)(e.color,.05),1],[`100%`,e.color,1]]},null,8,[`id`,`stops`])]))),128)),(O(!0),w(x,null,A($.value,(e,t)=>(O(),w(x,{key:`def_line_${e.id}`},[T(`defs`,null,[_t(ct,{t:`radial`,id:`lineGradient_${t}_${I.value}`,cx:`50%`,cy:`50%`,r:`50%`,fx:`50%`,fy:`50%`,stops:[[`0%`,N(me)(e.color,.05),1],[`100%`,e.color,1]]},null,8,[`id`,`stops`]),i.$slots[`area-gradient`]?j(i.$slots,`area-gradient`,xt({ref_for:!0},{series:e,id:`areaGradient_${t}_${I.value}`}),void 0,!0,0):(O(),mt(ct,{key:1,t:`linear`,id:`areaGradient_${t}_${I.value}`,x1:`0%`,x2:`100%`,y1:`0%`,y2:`0%`,stops:[[`0%`,N(g)(N(me)(e.color,.03),H.value.line.area.opacity),1],[`100%`,N(g)(e.color,H.value.line.area.opacity),1]]},null,8,[`id`,`stops`]))]),e.temperatureColors&&!e.isFlatTemperatureLine?(O(),w(`defs`,Tn,[T(`linearGradient`,{id:`temperature_grad_line_${t}_${I.value}`,gradientTransform:`rotate(90)`},[(O(!0),w(x,null,A(e.temperatureColors,(n,r)=>(O(),w(`stop`,{key:`temperature_grad_stop_${t}_${r}_${I.value}`,"stop-color":n,offset:N(je)(r,e.temperatureColors.length)},null,8,Dn))),128))],8,En)])):C(``,!0)],64))),128)),(O(!0),w(x,null,A(Yl.value,e=>(O(),w(`g`,{key:`highlight_area_${e.from}_${e.span}_${e.color}`},[e.show?(O(),w(x,{key:0},[(O(!0),w(x,null,A(e.span,(t,n)=>(O(),w(`g`,{key:`highlight_area_rect_${e.from}_${n}`},[T(`rect`,{style:D({transition:`none`,opacity:+(e.from+n>=q.value.start&&e.from+n<=q.value.end-1)}),x:ru(e.from+n-q.value.start),y:Q.value?.top,height:Q.value.height<0?10:Q.value.height,width:iu(e.from+n-q.value.start),fill:N(g)(e.color,e.opacity)},null,12,On)]))),128)),(O(!0),w(x,null,A(e.span,(t,n)=>(O(),w(`g`,{key:`highlight_area_caption_${e.from}_${n}`},[e.caption.text&&n===0?(O(),w(`foreignObject`,{key:0,x:ru(e.from+n-q.value.start)-(e.caption.width===`auto`?0:e.caption.width/2-su(e.span)/2),y:Q.value?.top+e.caption.offsetY,style:D({overflow:`visible`,opacity:+(e.to>=q.value.start&&e.from<q.value.end)}),height:`1`,width:e.caption.width===`auto`?su(e.span):e.caption.width},[T(`div`,{style:D(`padding:${e.caption.padding}px;text-align:${e.caption.textAlign};font-size:${e.caption.fontSize}px;color:${e.caption.color};font-weight:${e.caption.bold?`bold`:`normal`}`)},Dt(e.caption.text),5)],12,kn)):C(``,!0)]))),128))],64)):C(``,!0)]))),128)),tc.value&&!Y.value?(O(),w(`g`,An,[(O(!0),w(x,null,A(yc.value,(e,t)=>(O(),w(`g`,{key:`tooltip_trap_highlighter_${t}`},[T(`rect`,{x:ru(t),y:Q.value?.top,height:Q.value.height<0?10:Q.value.height,width:ou(t),fill:[L.value,z.value,Ca.value].includes(t)?N(g)(U.value.highlighter.color,U.value.highlighter.crosshairs.show?0:U.value.highlighter.opacity):`transparent`,style:{transition:`none !important`,animation:`none !important`}},null,8,jn)]))),128))])):C(``,!0),T(`g`,{"clip-path":ds.value},[T(`g`,{class:E([`vue-ui-xy-zoom-geometry`,{"vue-ui-xy-zoom-geometry--transitioning":Po.value}]),style:D(ls.value)},[fd.value.length?(O(!0),w(x,{key:0},A(fd.value,(e,t)=>(O(),w(`g`,{key:`serie_bar_${e.id}`,class:E(`serie_bar_${t}`),style:D(`opacity:${P.value?P.value===e.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(O(!0),w(x,null,A(e.plots,(n,r)=>(O(),w(`g`,{key:`bar_plot_${t}_${r}`},[N(qt)(n.value)?(O(),w(`rect`,{key:0,x:al(n)+wu.value/2,y:K.value.useIndividualScale?cl(n):sl(n),height:K.value.useIndividualScale?Math.abs(nl(n)):Math.abs(tl(n)),width:Cu.value-wu.value,rx:H.value.bar.borderRadius,fill:H.value.bar.useGradient?n.value>=0?`url(#rectGradient_pos_${t}_${I.value})`:`url(#rectGradient_neg_${t}_${I.value})`:e.color,stroke:H.value.bar.border.useSerieColor?e.color:H.value.bar.border.stroke,"stroke-width":H.value.bar.border.strokeWidth,style:D({transition:N(So)||Po.value||!H.value.bar.showTransition?void 0:`all ${H.value.bar.transitionDurationMs}ms ease-in-out`})},null,12,Nn)):C(``,!0),N(qt)(n.value)&&i.$slots.pattern?(O(),w(`rect`,{key:1,x:al(n)-wu.value/2,y:K.value.useIndividualScale?cl(n):sl(n),height:K.value.useIndividualScale?Math.abs(nl(n)):Math.abs(tl(n)),width:Cu.value-wu.value,rx:H.value.bar.borderRadius,fill:`url(#pattern_${I.value}_${e.slotAbsoluteIndex})`,stroke:H.value.bar.border.useSerieColor?e.color:H.value.bar.border.stroke,"stroke-width":H.value.bar.border.strokeWidth,style:D({transition:N(So)||Po.value||!H.value.bar.showTransition?void 0:`all ${H.value.bar.transitionDurationMs}ms ease-in-out`})},null,12,Pn)):C(``,!0),n.comment&&U.value.comments.show?(O(),w(`foreignObject`,{key:2,style:{overflow:`visible`},height:`12`,width:Cu.value+U.value.comments.width,x:al(n)-U.value.comments.width/2+U.value.comments.offsetX,y:N(_)(n.y)+U.value.comments.offsetY+6},[j(i.$slots,`plot-comment`,{plot:{...n,color:e.color,seriesIndex:t,datapointIndex:r}},void 0,!0)],8,Fn)):C(``,!0)]))),128))],6))),128)):C(``,!0)],6)],8,Mn),!K.value.useIndividualScale&&G.value.zeroLine.show?(O(),w(`line`,{key:1,stroke:W.value.stroke,"stroke-width":`1`,x1:Q.value?.left,x2:Q.value?.right,y1:N(v)(el.value),y2:N(v)(el.value),"stroke-linecap":`round`,style:{animation:`none !important`}},null,8,In)):C(``,!0),!U.value.highlighter.crosshairs.show&&(U.value.highlighter.useLine||Y.value)&&Sc.value?(O(),w(`g`,Ln,[T(`line`,{x1:ff.value,x2:ff.value,y1:N(v)(Q.value?.top),y2:N(v)(Q.value?.bottom),stroke:U.value.highlighter.color,"stroke-width":U.value.highlighter.lineWidth,"stroke-dasharray":U.value.highlighter.lineDasharray,"stroke-linecap":`round`,style:{transition:`none !important`,animation:`none !important`,"pointer-events":`none`}},null,8,Rn)])):C(``,!0),pf.value?(O(),w(`g`,zn,[(O(!0),w(x,null,A(mf.value,e=>(O(),w(`g`,{key:`crosshair_${e.serie.id}_${e.index}`},[T(`line`,{x1:U.value.highlighter.crosshairs.stopOnPoint?N(v)(e.x):Q.value.left,x2:U.value.highlighter.crosshairs.stopOnPoint?N(v)(gf(e.x)):Q.value.right,y1:N(v)(e.y),y2:N(v)(e.y),stroke:U.value.highlighter.crosshairs.stroke,"stroke-width":U.value.highlighter.crosshairs.strokeWidth,"stroke-dasharray":U.value.highlighter.crosshairs.strokeDasharray,"stroke-linecap":`round`,style:{"pointer-events":`none`}},null,8,Bn),T(`line`,{x1:N(v)(e.x),x2:N(v)(e.x),y1:U.value.highlighter.crosshairs.stopOnPoint?N(v)(e.y):Q.value.top,y2:U.value.highlighter.crosshairs.stopOnPoint?N(v)(Q.value.bottom):Q.value.bottom,stroke:U.value.highlighter.crosshairs.stroke,"stroke-width":U.value.highlighter.crosshairs.strokeWidth,"stroke-dasharray":U.value.highlighter.crosshairs.strokeDasharray,"stroke-linecap":`round`,style:{"pointer-events":`none`}},null,8,Vn),T(`circle`,{cx:N(v)(gf(e.x)),cy:N(v)(e.y),r:U.value.highlighter.crosshairs.dot.radius,fill:U.value.highlighter.crosshairs.dot.fill,stroke:U.value.highlighter.crosshairs.dot.stroke,"stroke-width":U.value.highlighter.crosshairs.dot.strokeWidth,style:{"pointer-events":`none`}},null,8,Hn)]))),128))])):C(``,!0),W.value.frame.show?(O(),w(`rect`,{key:4,style:{pointerEvents:`none`,transition:`none`,animation:`none !important`},x:Math.max(0,Q.value?.left),y:Q.value?.top,width:Math.max(0,Q.value?.width),height:Q.value.height<0?0:Q.value.height,fill:`transparent`,stroke:W.value.frame.stroke,"stroke-width":W.value.frame.strokeWidth,"stroke-linecap":W.value.frame.strokeLinecap,"stroke-linejoin":W.value.frame.strokeLinejoin,"stroke-dasharray":W.value.frame.strokeDasharray},null,8,Un)):C(``,!0),G.value.show?(O(),w(`g`,{key:5,ref_key:`scaleLabels`,ref:ua,opacity:pf.value?.2:1,style:{transition:`opacity 0.2s`}},[K.value.useIndividualScale?(O(),w(x,{key:0},[(O(!0),w(x,null,A(_d.value,e=>(O(),w(`g`,{key:`individual_scale_axis_${e.groupId||e.id}`},[T(`line`,{x1:K.value.isStacked?Z.value?Q.value.right:Q.value.left:Z.value?e.x:e.x-Q.value.individualOffsetX,x2:K.value.isStacked?Z.value?Q.value.right:Q.value.left:Z.value?e.x:e.x-Q.value.individualOffsetX,y1:K.value.isStacked?N(v)(Q.value?.bottom-e.yOffset-e.individualHeight):N(v)(Q.value?.top),y2:K.value.isStacked?N(v)(Q.value?.bottom-e.yOffset):N(v)(Q.value?.bottom),stroke:e.color,"stroke-width":W.value.stroke,"stroke-linecap":`round`,style:D(`opacity:${P.value?P.value===e.groupId?1:.3:1};transition:opacity 0.2s ease-in-out; animation: none !important`)},null,12,Gn)]))),128)),(O(!0),w(x,null,A(_d.value,e=>(O(),w(`g`,{key:`individual_scale_label_${e.groupId||e.id}`,style:D(`opacity:${P.value?P.value===e.groupId?1:.3:1};transition:opacity 0.2s ease-in-out`)},[T(`text`,{class:E({"vue-data-ui-transition":N(go)&&!N(Us)}),fill:e.color,"font-size":B.value.dataLabels*.8,"text-anchor":`middle`,transform:`translate(${K.value.isStacked?Z.value?Q.value.right+W.value.labels.yAxis.crosshairSize+W.value.labels.yAxis.scaleValueOffsetX+5+W.value.labels.yAxis.labelWidth+Q.value.individualOffsetX+W.value.labels.axis.yLabelOffsetX:Q.value.left-W.value.labels.yAxis.crosshairSize-W.value.labels.yAxis.scaleValueOffsetX-W.value.labels.yAxis.labelWidth-W.value.labels.axis.yLabelOffsetX:Z.value?e.x+W.value.labels.yAxis.crosshairSize+W.value.labels.yAxis.scaleValueOffsetX+5+W.value.labels.yAxis.labelWidth+W.value.labels.axis.yLabelOffsetX:e.x-B.value.dataLabels*.8/2}, ${K.value.isStacked?Q.value?.bottom-e.yOffset-e.individualHeight/2:Q.value?.top+Q.value.height/2}) rotate(-90)`},Dt(e.name)+` `+Dt(e.scaleLabel&&e.unique&&e.scaleLabel!==e.id?`- ${e.scaleLabel}`:``),11,Kn),(O(!0),w(x,null,A(e.yLabels,(t,n)=>(O(),w(x,{key:`individual_scale_y_crosshair_${e.groupId||e.id}_${t.value}_${n}`},[G.value.yAxis.showCrosshairs?(O(),w(`line`,{key:0,x1:K.value.isStacked?Z.value?Q.value.right:Q.value.left:Z.value?e.x:e.x+3-W.value.labels.yAxis.crosshairSize-Q.value.individualOffsetX,x2:K.value.isStacked?Z.value?Q.value.right+U.value.grid.labels.yAxis.crosshairSize:Q.value.left-U.value.grid.labels.yAxis.crosshairSize:Z.value?e.x+W.value.labels.yAxis.crosshairSize:e.x-Q.value.individualOffsetX,y1:N(v)(t.y),y2:N(v)(t.y),stroke:e.color,"stroke-width":1,"stroke-linecap":`round`,style:{animation:`none !important`}},null,8,qn)):C(``,!0)],64))),128)),(O(!0),w(x,null,A(e.yLabels,(t,n)=>(O(),w(`text`,{class:E({"vue-data-ui-transition":N(go)&&!N(Us)}),key:`individual_scale_y_label_${e.groupId||e.id}_${t.value}_${n}`,transform:`translate(${K.value.isStacked?Z.value?Q.value.right+W.value.labels.yAxis.crosshairSize+W.value.labels.yAxis.scaleValueOffsetX+5:Q.value.left-W.value.labels.yAxis.crosshairSize-W.value.labels.yAxis.scaleValueOffsetX-5:Z.value?e.x+W.value.labels.yAxis.crosshairSize+W.value.labels.yAxis.scaleValueOffsetX+5:e.x-5-Q.value.individualOffsetX}, ${N(v)(t.y)+B.value.dataLabels/3})`,"text-anchor":Z.value?`start`:`end`,"font-size":B.value.dataLabels,fill:e.color},Dt(N(y)(G.value.yAxis.formatter,t.value,N(a)({p:t.prefix,v:t.value,s:t.suffix,r:W.value.labels.yAxis.rounding}),{datapoint:t.datapoint,seriesIndex:n})),11,Jn))),128))],4))),128))],64)):(O(!0),w(x,{key:1},A(Ru.value,(e,t)=>(O(),w(`g`,{key:`yLabel_${t}`},[N(qt)(e)&&e.value>=J.value.min&&e.value<=J.value.max&&G.value.yAxis.showCrosshairs?(O(),w(`line`,{key:0,x1:Z.value?Q.value?.right:Q.value?.left,x2:Z.value?Q.value?.right+G.value.yAxis.crosshairSize:Q.value?.left-G.value.yAxis.crosshairSize,y1:N(v)(e.y),y2:N(v)(e.y),stroke:W.value.stroke,"stroke-width":`1`,"stroke-linecap":`round`,style:{animation:`none !important`}},null,8,Yn)):C(``,!0),e.value>=J.value.min&&e.value<=J.value.max?(O(),w(`text`,{key:1,class:E({"vue-data-ui-transition":N(go)&&!N(Us)}),transform:`translate(${Z.value?Q.value.right+G.value.yAxis.crosshairSize+G.value.yAxis.scaleValueOffsetX+5:Q.value.scaleLabelX-G.value.yAxis.crosshairSize}, ${N(_)(e.y+B.value.dataLabels/3)})`,"font-size":B.value.dataLabels,"text-anchor":Z.value?`start`:`end`,fill:G.value.color},Dt(N(qt)(e.value)?N(y)(W.value.labels.yAxis.formatter,e.value,N(a)({p:e.prefix,v:e.value,s:e.suffix,r:U.value.grid.labels.yAxis.rounding})):``),11,Xn)):C(``,!0)]))),128))],8,Wn)):C(``,!0),pf.value?(O(),w(`g`,Zn,[(O(!0),w(x,null,A(mf.value,e=>(O(),w(`text`,{class:E({"vue-data-ui-transition":N(go)&&!N(Us)}),key:`crosshair_y_label_${e.serie.id}_${e.index}`,transform:`translate(${Z.value?Q.value.right+G.value.yAxis.crosshairSize+G.value.yAxis.scaleValueOffsetX+5:Q.value.scaleLabelX-G.value.yAxis.crosshairSize}, ${N(v)(e.y)+B.value.dataLabels/3})`,"font-size":B.value.dataLabels,"text-anchor":Z.value?`start`:`end`,fill:G.value.color,style:{transition:`none !important`,animation:`none !important`,"pointer-events":`none`}},Dt(N(y)(G.value.yAxis.formatter,e.value,N(a)({p:e.serie.prefix||U.value.labels.prefix,v:e.value,s:e.serie.suffix||U.value.labels.suffix,r:G.value.yAxis.rounding}),{datapoint:e.serie,seriesIndex:e.index})),11,Qn))),128))])):C(``,!0),hf.value?(O(),w(`g`,$n,[T(`circle`,{cx:ff.value,cy:N(v)(Q.value?.bottom),r:U.value.highlighter.crosshairs.dot.radius,fill:U.value.highlighter.crosshairs.dot.fill,stroke:U.value.highlighter.crosshairs.dot.stroke,"stroke-width":U.value.highlighter.crosshairs.dot.strokeWidth,style:{transition:`none !important`,animation:`none !important`,"pointer-events":`none`}},null,8,er)])):C(``,!0),T(`g`,{"clip-path":ds.value},[(O(!0),w(x,null,A(md.value,(e,t)=>(O(),w(`g`,{key:`serie_plot_${e.id}`,class:E(`serie_plot_${t}`),style:D(`opacity:${P.value?P.value===e.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(O(!0),w(x,null,A(e.plots,(n,r)=>(O(),w(`g`,{key:`circle_plot_${e.id}_${r}`,style:D(us(n))},[n&&N(qt)(n.value)?(O(),mt(st,{key:0,shape:[`triangle`,`square`,`diamond`,`pentagon`,`hexagon`,`star`].includes(e.shape)?e.shape:`circle`,color:H.value.plot.useGradient?`url(#plotGradient_${t}_${I.value})`:H.value.plot.dot.useSerieColor?e.color:H.value.plot.dot.fill,plot:{x:N(_)(n.x),y:N(_)(n.y)},radius:_f(e,n,r)?(so.value.plot||6)*1.5:(Bu(e.plots,r),so.value.plot||6),stroke:H.value.plot.dot.useSerieColor?U.value.backgroundColor:e.color,strokeWidth:H.value.plot.dot.strokeWidth,transition:N(So)||Po.value||Mc.value||!H.value.plot.showTransition?void 0:`all ${H.value.plot.transitionDurationMs}ms ease-in-out`,still:Mc.value||Po.value},null,8,[`shape`,`color`,`plot`,`radius`,`stroke`,`strokeWidth`,`transition`,`still`])):C(``,!0),n.comment&&U.value.comments.show?(O(),w(`foreignObject`,{key:1,style:{overflow:`visible`},height:`12`,width:U.value.comments.width,x:n.x-U.value.comments.width/2+U.value.comments.offsetX,y:n.y+U.value.comments.offsetY+6},[T(`div`,rr,[j(i.$slots,`plot-comment`,{plot:{...n,color:e.color,seriesIndex:t,datapointIndex:r}},void 0,!0)])],8,nr)):C(``,!0)],4))),128))],6))),128)),T(`g`,{class:E([`vue-ui-xy-zoom-geometry`,{"vue-ui-xy-zoom-geometry--transitioning":Po.value}]),style:D(ls.value)},[(O(!0),w(x,null,A($.value,(e,t)=>(O(),w(`g`,{key:`serie_line_${e.id}`,class:E(`serie_line_${t}`),style:D(`opacity:${P.value?P.value===e.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},[e.hasDashedSegments?(O(),w(x,{key:0},[e.useStepper?(O(!0),w(x,{key:0},A(e.dashedStepper,(t,n)=>(O(),w(`path`,{"vector-effect":`non-scaling-stroke`,key:`line_coating_stepper_segment_${e.id}_${n}`,fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M ${t.path}`,stroke:U.value.backgroundColor,"stroke-width":V(H.value.line.strokeWidth+1),"stroke-dasharray":e.dashed||t.dashed?V(H.value.line.strokeWidth*2):0,style:D({transition:Ku()})},null,12,ir))),128)):e.smooth?(O(!0),w(x,{key:1},A(e.dashedSmooth,(t,n)=>(O(),w(`path`,{"vector-effect":`non-scaling-stroke`,key:`line_coating_smooth_segment_${e.id}_${n}`,fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M ${t.path}`,stroke:U.value.backgroundColor,"stroke-width":V(H.value.line.strokeWidth+1),"stroke-dasharray":e.dashed||t.dashed?V(H.value.line.strokeWidth*2):0,style:D({transition:Ku()})},null,12,ar))),128)):(O(!0),w(x,{key:2},A(e.dashedStraight,(t,n)=>(O(),w(`path`,{"vector-effect":`non-scaling-stroke`,key:`line_coating_straight_segment_${e.id}_${n}`,fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M ${t.path}`,stroke:U.value.backgroundColor,"stroke-width":V(H.value.line.strokeWidth+1),"stroke-dasharray":e.dashed||t.dashed?V(H.value.line.strokeWidth*2):0,style:D({transition:Ku()})},null,12,or))),128))],64)):e.smooth&&e.plots.length>1&&e.curve?(O(),w(`path`,{key:1,"vector-effect":`non-scaling-stroke`,d:`M${e.curve}`,stroke:U.value.backgroundColor,"stroke-width":V(H.value.line.strokeWidth+1),"stroke-dasharray":e.dashed?V(H.value.line.strokeWidth*2):0,fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`,style:D({transition:Ku()})},null,12,sr)):e.plots.length>1&&e.straight?(O(),w(`path`,{key:2,"vector-effect":`non-scaling-stroke`,d:`M${e.straight}`,stroke:U.value.backgroundColor,"stroke-width":V(H.value.line.strokeWidth+1),"stroke-dasharray":e.dashed?V(H.value.line.strokeWidth*2):0,fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`,style:D({transition:Ku()})},null,12,cr)):C(``,!0)],6))),128)),i.$slots.pattern?(O(),w(`defs`,lr,[(O(!0),w(x,null,A(Fs.value,(e,t)=>j(i.$slots,`pattern`,xt({key:`serie_pattern_slot_${e.id}`},{ref_for:!0},{...e,seriesIndex:e.slotAbsoluteIndex,patternId:`pattern_${I.value}_${t}`}),void 0,!0)),128))])):C(``,!0),vd.value.length&&!K.value.isStacked?(O(),w(`g`,ur,[(O(!0),w(x,null,A(vd.value,e=>(O(),w(`path`,{key:e.key,d:e.d,fill:e.color,"fill-opacity":H.value.line.interLine.fillOpacity,stroke:`none`,"pointer-events":`none`,style:D({transition:Ku()})},null,12,dr))),128))])):C(``,!0),(O(!0),w(x,null,A($.value,(e,t)=>(O(),w(`g`,{key:`serie_line_above_${e.id}`,class:E(`serie_line_${t}`),style:D(`opacity:${P.value?P.value===e.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},[e.useArea&&e.plots.length>1?(O(),w(`g`,fr,[e.smooth?(O(!0),w(x,{key:0},A(e.curveAreas,(n,r)=>(O(),w(x,{key:r},[n?(O(),w(`path`,{key:0,d:n,fill:H.value.line.area.useGradient?`url(#areaGradient_${t}_${I.value})`:N(g)(e.color,H.value.line.area.opacity),style:D({transition:Ku()})},null,12,pr)):C(``,!0),i.$slots.pattern&&n?(O(),w(`path`,{key:1,d:n,fill:`url(#pattern_${I.value}_${e.slotAbsoluteIndex})`,style:D({transition:Ku()})},null,12,mr)):C(``,!0)],64))),128)):(O(!0),w(x,{key:1},A(e.area.split(`;`),(n,r)=>(O(),w(x,{key:r},[n?(O(),w(`path`,{key:0,d:`M${n}Z`,fill:H.value.line.area.useGradient?`url(#areaGradient_${t}_${I.value})`:N(g)(e.color,H.value.line.area.opacity),style:D({transition:Ku()})},null,12,hr)):C(``,!0),i.$slots.pattern&&n?(O(),w(`path`,{key:1,d:`M${n}Z`,fill:`url(#pattern_${I.value}_${e.slotAbsoluteIndex})`,style:D({transition:Ku()})},null,12,gr)):C(``,!0)],64))),128))])):C(``,!0),!e.hasDashedSegments&&e.smooth&&e.plots.length>1&&e.curve?(O(),w(`path`,{key:1,"vector-effect":`non-scaling-stroke`,d:`M${e.curve}`,stroke:e.temperatureColors&&!e.isFlatTemperatureLine?`url(#temperature_grad_line_${t}_${I.value})`:e.color,"stroke-width":V(H.value.line.strokeWidth),"stroke-dasharray":e.dashed?V(H.value.line.strokeWidth*2):0,fill:`none`,"stroke-linecap":`round`,style:D({transition:Ku()})},null,12,_r)):e.hasDashedSegments?(O(),w(x,{key:2},[e.useStepper?(O(!0),w(x,{key:0},A(e.dashedStepper,(n,r)=>(O(),w(`path`,{"vector-effect":`non-scaling-stroke`,key:`line_stepper_segment_${e.id}_${r}`,fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M ${n.path}`,stroke:e.temperatureColors&&!e.isFlatTemperatureLine?`url(#temperature_grad_line_${t}_${I.value})`:e.color,"stroke-width":V(H.value.line.strokeWidth),"stroke-dasharray":e.dashed||n.dashed?V(H.value.line.strokeWidth*2):0,style:D({transition:Ku()})},null,12,vr))),128)):e.smooth?(O(!0),w(x,{key:1},A(e.dashedSmooth,(n,r)=>(O(),w(`path`,{"vector-effect":`non-scaling-stroke`,key:`line_smooth_segment_${e.id}_${r}`,fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M ${n.path}`,stroke:e.temperatureColors&&!e.isFlatTemperatureLine?`url(#temperature_grad_line_${t}_${I.value})`:e.color,"stroke-width":V(H.value.line.strokeWidth),"stroke-dasharray":e.dashed||n.dashed?V(H.value.line.strokeWidth*2):0,style:D({transition:Ku()})},null,12,yr))),128)):(O(!0),w(x,{key:2},A(e.dashedStraight,(n,r)=>(O(),w(`path`,{"vector-effect":`non-scaling-stroke`,key:`line_straight_segment_${e.id}_${r}`,fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M ${n.path}`,stroke:e.temperatureColors&&!e.isFlatTemperatureLine?`url(#temperature_grad_line_${t}_${I.value})`:e.color,"stroke-width":V(H.value.line.strokeWidth),"stroke-dasharray":e.dashed||n.dashed?V(H.value.line.strokeWidth*2):0,style:D({transition:Ku()})},null,12,br))),128))],64)):e.plots.length>1&&e.straight?(O(),w(`path`,{key:3,"vector-effect":`non-scaling-stroke`,d:`M${e.straight}`,stroke:e.temperatureColors&&!e.isFlatTemperatureLine?`url(#temperature_grad_line_${t}_${I.value})`:e.color,"stroke-width":V(H.value.line.strokeWidth),"stroke-dasharray":e.dashed?V(H.value.line.strokeWidth*2):0,fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`,style:D({transition:Ku()})},null,12,xr)):C(``,!0)],6))),128))],6),T(`g`,Sr,[(O(!0),w(x,null,A($.value,(e,t)=>(O(),w(`g`,{key:`serie_line_markers_${e.id}`,style:D(`opacity:${P.value?P.value===e.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},[(O(!0),w(x,null,A(e.plots,(n,r)=>(O(),w(`g`,{key:`circle_line_${e.id}_${r}`,class:`vue-ui-xy-line-marker`,style:D(us(n))},[!ql.value.linePlot&&n&&N(qt)(n.value)||ql.value.linePlot&&n&&N(qt)(n.value)&&(z.value!==null&&z.value===r||L.value!==null&&L.value===r)||Bu(e.plots,r)?(O(),mt(st,{key:0,shape:[`triangle`,`square`,`diamond`,`pentagon`,`hexagon`,`star`].includes(e.shape)?e.shape:`circle`,color:H.value.line.useGradient?`url(#lineGradient_${t}_${I.value})`:H.value.line.dot.useSerieColor?e.color:H.value.line.dot.fill,plot:{x:N(_)(n.x),y:N(_)(n.y)},radius:_f(e,n,r)?fo.value||0:(Bu(e.plots,r),so.value.line||0),stroke:H.value.line.dot.useSerieColor?U.value.backgroundColor:e.color,strokeWidth:H.value.line.dot.strokeWidth,transition:N(So)||Po.value||Mc.value||!H.value.line.showTransition?void 0:`all ${H.value.line.transitionDurationMs}ms ease-in-out`,still:Mc.value||Po.value},null,8,[`shape`,`color`,`plot`,`radius`,`stroke`,`strokeWidth`,`transition`,`still`])):C(``,!0),n.comment&&U.value.comments.show?(O(),w(`foreignObject`,{key:1,style:{overflow:`visible`},height:`12`,width:U.value.comments.width,x:n.x-U.value.comments.width/2+U.value.comments.offsetX,y:n.y+U.value.comments.offsetY+6},[T(`div`,wr,[j(i.$slots,`plot-comment`,{plot:{...n,color:e.color,seriesIndex:t,datapointIndex:r}},void 0,!0)])],8,Cr)):C(``,!0)],4))),128))],4))),128))])],8,tr),(H.value.bar.labels.show||H.value.bar.serieName.show)&&K.value.dataLabels.show?(O(),w(`g`,Tr,[(O(!0),w(x,null,A(bf.value,e=>(O(),w(`text`,{key:e.key,class:E({"vue-data-ui-transition":N(go)&&!N(Us)}),"text-anchor":df({plot:e.plot,type:`bar`}),"font-size":B.value.plotLabels,transform:lf({plot:e.plot}),fill:H.value.bar.labels.color,stroke:U.value.backgroundColor,"paint-order":`stroke`,style:D(`opacity:${P.value?P.value===e.serie.groupId?1:.2:1};`),innerHTML:cf({serie:e.serie,plot:e.plot,type:`bar`})},null,14,Er))),128)),(O(!0),w(x,null,A(fd.value,(e,t)=>(O(),w(x,{key:`xLabel_bar_${e.id}`},[(O(!0),w(x,null,A(e.plots,(n,r)=>(O(),w(x,{key:`xLabel_bar_${t}_${r}`},[n&&H.value.bar.serieName.show?(O(),w(`text`,{key:0,class:E({"vue-data-ui-transition":N(go)&&!N(Us)}),transform:`translate(${K.value.useIndividualScale&&K.value.isStacked?n.x+rl.value.line/2:n.x+il()*1.1}, ${n.y+(n.value>0?H.value.bar.serieName.offsetY:-H.value.bar.serieName.offsetY*3)})`,"text-anchor":`middle`,"font-size":B.value.plotLabels,fill:H.value.bar.serieName.useSerieColor?e.color:H.value.bar.serieName.color,"font-weight":H.value.bar.serieName.bold?`bold`:`normal`,style:D(`opacity:${P.value?P.value===e.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},Dt(H.value.bar.serieName.useAbbreviation?N(Ee)({source:e.name,length:H.value.bar.serieName.abbreviationSize}):e.name),15,Dr)):C(``,!0)],64))),128))],64))),128))])):C(``,!0),H.value.plot.labels.show&&K.value.dataLabels.show?(O(),w(`g`,Or,[(O(!0),w(x,null,A(xf.value,e=>(O(),w(`text`,{key:e.key,class:E({"vue-data-ui-transition":N(go)&&!N(Us)}),transform:uf({plot:e.plot,type:`plot`}),"text-anchor":df({plot:e.plot,type:`plot`}),"font-size":B.value.plotLabels,fill:H.value.plot.labels.color,stroke:U.value.backgroundColor,"paint-order":`stroke`,style:D(`opacity:${P.value?P.value===e.serie.groupId?1:.2:1}`),innerHTML:cf({serie:e.serie,plot:e.plot,type:`plot`})},null,14,kr))),128))])):(O(),w(`g`,Ar,[(O(!0),w(x,null,A(md.value,(e,t)=>(O(),w(x,{key:`xLabel_plot_${e.id}`},[(O(!0),w(x,null,A(e.plots,(n,r)=>(O(),w(x,{key:`xLabel_plot_${t}_${r}`},[H.value.plot.tag.followValue?(O(),w(x,{key:1},[[L.value,z.value,Ca.value].includes(r)&&e.useTag?(O(),w(`line`,{key:0,class:`vue-ui-xy-tag-plot`,x1:Q.value?.left,x2:Q.value?.right,y1:n.y,y2:n.y,"stroke-width":1,"stroke-linecap":`round`,"stroke-dasharray":`2`,stroke:e.color},null,8,Fr)):C(``,!0)],64)):(O(),w(x,{key:0},[n&&r===0&&e.useTag&&e.useTag===`start`?(O(),w(`foreignObject`,{key:0,x:n.x,y:n.y-20,height:24,width:`150`,style:D(`overflow: visible; opacity:${P.value?P.value===e.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},[T(`div`,{style:D(`padding: 3px; background:${N(g)(e.color,80)};color:${N(Me)(e.color)};width:fit-content;font-size:${B.value.plotLabels}px;border-radius: 2px;`),innerHTML:N(y)(H.value.plot.tag.formatter,n.value,e.name,{datapoint:n,seriesIndex:r,serieName:e.name})},null,12,Mr)],12,jr)):C(``,!0),n&&r===e.plots.length-1&&e.useTag&&e.useTag===`end`?(O(),w(`foreignObject`,{key:1,x:n.x-e.name.length*(B.value.plotLabels/2),y:n.y-20,height:24,width:`150`,style:D(`overflow: visible; opacity:${P.value?P.value===e.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},[T(`div`,{style:D(`padding: 3px; background:${N(g)(e.color,80)};color:${N(Me)(e.color)};width:fit-content;font-size:${B.value.plotLabels}px;border-radius: 2px;`),innerHTML:N(y)(H.value.plot.tag.formatter,n.value,e.name,{datapoint:n,seriesIndex:r,serieName:e.name})},null,12,Pr)],12,Nr)):C(``,!0)],64))],64))),128))],64))),128))])),H.value.line.labels.show&&K.value.dataLabels.show?(O(),w(`g`,Ir,[(O(!0),w(x,null,A(Sf.value,e=>(O(),w(`text`,{key:e.key,class:E({"vue-data-ui-transition":N(go)&&!N(Us)}),transform:uf({plot:e.plot,type:`line`}),"text-anchor":df({plot:e.plot,type:`line`}),"font-size":B.value.plotLabels,fill:H.value.line.labels.color,stroke:U.value.backgroundColor,"paint-order":`stroke`,style:D(`opacity:${P.value?P.value===e.serie.groupId?1:.2:1};`),innerHTML:cf({serie:e.serie,plot:e.plot,type:`line`})},null,14,Lr))),128))])):(O(),w(`g`,Rr,[(O(!0),w(x,null,A($.value,(e,t)=>(O(),w(x,{key:`xLabel_line_${e.id}`},[(O(!0),w(x,null,A(e.plots,(n,r)=>(O(),w(x,{key:`xLabel_line_${t}_${r}`},[H.value.line.tag.followValue?(O(),w(x,{key:1},[[L.value,z.value,Ca.value].includes(r)&&e.useTag?(O(),w(`line`,{key:0,class:`vue-ui-xy-tag-line`,x1:Q.value?.left,x2:Q.value?.right,y1:n.y,y2:n.y,"stroke-width":1,"stroke-linecap":`round`,"stroke-dasharray":`2`,stroke:e.color},null,8,Ur)):C(``,!0)],64)):(O(),w(x,{key:0},[n&&r===0&&e.useTag&&e.useTag===`start`?(O(),w(`foreignObject`,{key:0,x:n.x,y:n.y-20,height:24,width:`150`,style:D(`overflow: visible; opacity:${P.value?P.value===e.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},[T(`div`,{style:D(`padding: 3px; background:${N(g)(e.color,80)};color:${N(Me)(e.color)};width:fit-content;font-size:${B.value.plotLabels}px;border-radius: 2px;`),innerHTML:N(y)(H.value.line.tag.formatter,n.value,e.name,{datapoint:n,seriesIndex:r,serieName:e.name})},null,12,Br)],12,zr)):C(``,!0),n&&r===e.plots.length-1&&e.useTag&&e.useTag===`end`?(O(),w(`foreignObject`,{key:1,x:n.x,y:n.y-20,height:24,width:`150`,style:D(`overflow: visible; opacity:${P.value?P.value===e.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},[T(`div`,{style:D(`padding: 3px; background:${N(g)(e.color,80)};color:${N(Me)(e.color)};width:fit-content;font-size:${B.value.plotLabels}px;border-radius: 2px;`),innerHTML:N(y)(H.value.line.tag.formatter,n.value,e.name,{datapoint:n,seriesIndex:r,serieName:e.name})},null,12,Hr)],12,Vr)):C(``,!0)],64))],64))),128))],64))),128))])),(O(!0),w(x,null,A($.value,(e,t)=>(O(),w(x,{key:`xLabel_line_${e.id}`},[(O(!0),w(x,null,A(e.plots,(n,r)=>(O(),w(x,{key:`xLabel_line_${t}_${r}`},[n&&r===0&&e.showSerieName&&e.showSerieName===`start`?(O(),w(`text`,{key:0,x:n.x-B.value.plotLabels,y:n.y,"font-size":B.value.plotLabels,"text-anchor":`end`,fill:e.color,innerHTML:N(Ae)({content:e.name,fontSize:B.value.plotLabels,fill:e.color,x:n.x-B.value.plotLabels,y:n.y,maxWords:2}),style:D(`opacity:${P.value?P.value===e.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},null,12,Wr)):C(``,!0),n&&r===e.plots.length-1&&e.showSerieName&&e.showSerieName===`end`?(O(),w(`text`,{key:1,x:n.x+B.value.plotLabels,y:n.y,"font-size":B.value.plotLabels,"text-anchor":`start`,fill:e.color,innerHTML:N(Ae)({content:e.name,fontSize:B.value.plotLabels,fill:e.color,x:n.x+B.value.plotLabels,y:n.y,maxWords:2}),style:D(`opacity:${P.value?P.value===e.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},null,12,Gr)):C(``,!0)],64))),128))],64))),128)),(O(!0),w(x,null,A(md.value,(e,t)=>(O(),w(x,{key:`xLabel_plot_${e.id}`},[(O(!0),w(x,null,A(e.plots,(n,r)=>(O(),w(x,{key:`xLabel_plot_${t}_${r}`},[n&&r===0&&e.showSerieName&&e.showSerieName===`start`?(O(),w(`text`,{key:0,x:n.x-B.value.plotLabels,y:n.y,"font-size":B.value.plotLabels,"text-anchor":`end`,fill:e.color,innerHTML:N(Ae)({content:e.name,fontSize:B.value.plotLabels,fill:e.color,x:n.x-B.value.plotLabels,y:n.y,maxWords:2}),style:D(`opacity:${P.value?P.value===e.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},null,12,Kr)):C(``,!0),n&&r===e.plots.length-1&&e.showSerieName&&e.showSerieName===`end`?(O(),w(`text`,{key:1,x:n.x+B.value.plotLabels,y:n.y,"font-size":B.value.plotLabels,"text-anchor":`start`,fill:e.color,innerHTML:N(Ae)({content:e.name,fontSize:B.value.plotLabels,fill:e.color,x:n.x+B.value.plotLabels,y:n.y,maxWords:2}),style:D(`opacity:${P.value?P.value===e.groupId?1:.2:1};transition:opacity 0.2s ease-in-out`)},null,12,qr)):C(``,!0)],64))),128))],64))),128)),(O(!0),w(x,null,A([...md.value,...$.value,...fd.value],(e,t)=>(O(),w(x,{key:`progression-${t}`},[Object.hasOwn(e,`useProgression`)&&e.useProgression===!0&&!isNaN(N(ye)(e.plots).trend)?(O(),w(`g`,Jr,[T(`defs`,null,[T(`marker`,{id:`progression_arrow_${t}`,markerWidth:`9`,markerHeight:`9`,viewBox:`-1 -1 9 9`,markerUnits:`userSpaceOnUse`,refX:`7`,refY:7/2,orient:`auto`,overflow:`visible`},[T(`polygon`,{points:`0,0 7,3.5 0,7`,fill:e.color,stroke:U.value.backgroundColor,"stroke-width":`1`,"stroke-linejoin":`round`},null,8,Xr)],8,Yr)]),e.plots.length>1?(O(),w(`line`,{key:0,x1:N(ye)(e.plots).x1+(e.type===`bar`?il():0),x2:N(ye)(e.plots).x2+(e.type===`bar`?il():0),y1:N(v)(N(ye)(e.plots).y1),y2:N(v)(N(ye)(e.plots).y2),"stroke-width":1,stroke:U.value.backgroundColor,"stroke-dasharray":2,"stroke-linecap":`round`,"stroke-linejoin":`round`,"marker-end":`url(#progression_arrow_${t})`},null,8,Zr)):C(``,!0),e.plots.length>1?(O(),w(`line`,{key:1,x1:N(ye)(e.plots).x1+(e.type===`bar`?il():0),x2:N(ye)(e.plots).x2+(e.type===`bar`?il():0),y1:N(v)(N(ye)(e.plots).y1),y2:N(v)(N(ye)(e.plots).y2),"stroke-width":1,stroke:e.color,"stroke-dasharray":2,"stroke-linecap":`round`,"stroke-linejoin":`round`,"marker-end":`url(#progression_arrow_${t})`},null,8,Qr)):C(``,!0),e.plots.length>1?(O(),w(`text`,{key:2,class:E({"vue-data-ui-transition":N(go)&&!N(Us)}),"text-anchor":`middle`,transform:`translate(${N(ye)(e.plots).x2+(e.type===`bar`?il():0)}, ${N(ye)(e.plots).y2-12})`,"font-size":B.value.plotLabels,fill:e.color,stroke:U.value.backgroundColor,"stroke-width":4,"stroke-linecap":`round`,"stroke-linejoin":`round`,"paint-order":`stroke fill`},Dt(N(a)({v:N(ye)(e.plots).trend*100,s:`%`,r:2})),11,$r)):C(``,!0)])):C(``,!0)],64))),128)),K.value.useIndividualScale&&!K.value.isStacked?(O(),w(x,{key:13},[T(`defs`,null,[(O(!0),w(x,null,A(_d.value,(e,t)=>(O(),mt(ct,{t:`linear`,key:`individual_scale_gradient_${e.groupId||e.id||t}`,id:`individual_scale_gradient_${I.value}_${t}`,x1:Z.value?`100%`:`0%`,x2:Z.value?`0%`:`100%`,y1:`0%`,y2:`0%`,stops:[[`0%`,U.value.backgroundColor,0],[`100%`,e.color,.2]]},null,8,[`id`,`x1`,`x2`,`stops`]))),128))]),(O(!0),w(x,null,A(_d.value,(e,t)=>(O(),w(`rect`,{key:`individual_scale_background_${e.groupId||e.id||t}`,x:Z.value?e.x:e.x-G.value.yAxis.labelWidth-Q.value.individualOffsetX,y:Q.value?.top,width:(Z.value,G.value.yAxis.labelWidth+Q.value.individualOffsetX),height:Q.value.height<0?10:Q.value.height,fill:P.value===e.groupId?`url(#individual_scale_gradient_${I.value}_${t})`:`transparent`,onMouseenter:t=>P.value=e.groupId,onMouseleave:o[0]||=e=>P.value=null},null,40,ei))),128))],64)):C(``,!0),T(`g`,null,[G.value.axis.yLabel&&!K.value.useIndividualScale?(O(),w(`text`,{key:0,ref_key:`yAxisLabel`,ref:ca,"font-size":B.value.yAxis,fill:G.value.color,transform:`translate(${Z.value?Q.value.right+Q.value.scaleLabelsOffset+G.value.axis.yLabelOffsetX+B.value.yAxis:G.value.axis.fontSize+G.value.axis.yLabelOffsetX}, ${Q.value?.top+Q.value.height/2}) rotate(-90)`,"text-anchor":`middle`,style:{transition:`none`}},Dt(G.value.axis.yLabel),9,ti)):C(``,!0),G.value.axis.xLabel?(O(),w(`text`,{key:1,ref_key:`xAxisLabel`,ref:sa,"text-anchor":`middle`,x:F.value/2,y:ga.value-3,"font-size":B.value.yAxis,fill:G.value.color},Dt(G.value.axis.xLabel),9,ni)):C(``,!0)]),G.value.xAxisLabels.show?(O(),w(`g`,{key:14,ref_key:`timeLabelsEls`,ref:la,opacity:pf.value?.1:1,style:{transition:`opacity 0.2s`}},[i.$slots[`time-label`]?(O(!0),w(x,{key:0},A(Yu.value,(e,t)=>j(i.$slots,`time-label`,xt({ref_for:!0},{x:Xu(e,t),y:Q.value?.bottom,fontSize:B.value.xAxis,fill:G.value.xAxisLabels.color,transform:`translate(${Xu(e,t)}, ${Q.value?.bottom+B.value.xAxis*1.3+G.value.xAxisLabels.yOffset}), rotate(${G.value.xAxisLabels.rotation})`,absoluteIndex:e.absoluteIndex,content:e.text,textAnchor:G.value.xAxisLabels.rotation>0?`start`:W.value.labels.xAxisLabels.rotation<0?`end`:`middle`,show:e&&e.text}),void 0,!0,`time_label_${e.id}`)),128)):(O(!0),w(x,{key:1},A(Yu.value,(e,t)=>(O(),w(`g`,{key:`time_label_${t}`},[e&&e.text?(O(),w(x,{key:0},[String(e.text).includes(`
|
|
27
|
+
`)?(O(),w(`text`,{key:1,class:`vue-data-ui-time-label`,"text-anchor":G.value.xAxisLabels.rotation>0?`start`:W.value.labels.xAxisLabels.rotation<0?`end`:`middle`,"font-size":B.value.xAxis,fill:G.value.xAxisLabels.color,transform:`translate(${Xu(e,t)}, ${Q.value?.bottom+B.value.xAxis*1.5}), rotate(${G.value.xAxisLabels.rotation})`,style:D({cursor:Zs()&&_o.value?`pointer`:`default`}),innerHTML:N(h)({content:String(e.text),fontSize:B.value.xAxis,fill:U.value.grid.labels.xAxisLabels.color,stroke:U.value.backgroundColor,x:0,y:0}),onClick:n=>vc(e,t)},null,12,ai)):(O(),w(`text`,{key:0,class:`vue-data-ui-time-label`,"text-anchor":G.value.xAxisLabels.rotation>0?`start`:W.value.labels.xAxisLabels.rotation<0?`end`:`middle`,"font-size":B.value.xAxis,fill:G.value.xAxisLabels.color,stroke:U.value.backgroundColor,"stroke-width":`3`,"stroke-linejoin":`round`,"stroke-linecap":`round`,"paint-order":`stroke fill`,transform:`translate(${Xu(e,t)}, ${Q.value?.bottom+B.value.xAxis*1.5}), rotate(${G.value.xAxisLabels.rotation})`,style:D({cursor:Zs()&&_o.value?`pointer`:`default`}),onClick:n=>vc(e,t)},Dt(e.text||``),13,ii))],64)):C(``,!0)]))),128))],8,ri)):C(``,!0),hf.value?(O(),w(`g`,oi,[T(`text`,{class:`vue-data-ui-time-label`,"text-anchor":G.value.xAxisLabels.rotation>0?`start`:G.value.xAxisLabels.rotation<0?`end`:`middle`,"font-size":B.value.xAxis,fill:G.value.xAxisLabels.color,transform:`translate(${hf.value.x}, ${Q.value?.bottom+B.value.xAxis*1.5}), rotate(${G.value.xAxisLabels.rotation})`,"font-weight":`bold`,style:{transition:`none !important`,animation:`none !important`,"pointer-events":`none`},innerHTML:N(h)({content:String(hf.value.text),fontSize:B.value.xAxis,fill:G.value.xAxisLabels.color,x:0,y:0})},null,8,si)])):C(``,!0),zu.value.length&&!K.value.isStacked?(O(),w(`g`,ci,[(O(!0),w(x,null,A(zu.value,e=>(O(),w(`g`,{key:e.id},[e.yTop&&e.show&&isFinite(e.yTop)?(O(),w(`line`,{key:0,x1:e.x1,y1:e.yTop,x2:e.x2,y2:e.yTop,stroke:e.config.line.stroke,"stroke-width":e.config.line.strokeWidth,"stroke-dasharray":e.config.line.strokeDasharray,"stroke-linecap":`round`,style:{animation:`none !important`}},null,8,li)):C(``,!0),e.yBottom&&e.show&&isFinite(e.yBottom)?(O(),w(`line`,{key:1,x1:e.x1,y1:e.yBottom,x2:e.x2,y2:e.yBottom,stroke:e.config.line.stroke,"stroke-width":e.config.line.strokeWidth,"stroke-dasharray":e.config.line.strokeDasharray,"stroke-linecap":`round`,style:{animation:`none !important`}},null,8,ui)):C(``,!0),e.hasArea&&e.show&&isFinite(e.yTop)&&isFinite(e.yBottom)?(O(),w(`rect`,{key:2,y:Math.min(e.yTop,e.yBottom),x:e.x1,width:Q.value.width,height:N(_)(e.areaHeight,0),fill:N(g)(e.config.area.fill,e.config.area.opacity),style:{animation:`none !important`}},null,8,di)):C(``,!0),e.config.label.text&&e.show&&isFinite(e._box.y)?(O(),w(`rect`,xt({key:3,class:`vue-ui-xy-annotation-label-box`},{ref_for:!0},e._box,{style:{animation:`none !important`,transition:`none !important`}}),null,16)):C(``,!0),e.config.label.text&&e.show&&isFinite(e._text.y)?(O(),w(`text`,{key:4,id:e.id,class:E([`vue-ui-xy-annotation-label`,{"vue-data-ui-transition":N(go)&&!N(Us)}]),transform:`translate(${e._text.x}, ${e._text.y})`,"font-size":e.config.label.fontSize,fill:e.config.label.color,"text-anchor":e.config.label.textAnchor},Dt(e.config.label.text),11,fi)):C(``,!0)]))),128))])):C(``,!0),!pf.value&&U.value.timeTag.show&&(Y.value?N(Ce)(ef.value):![null,void 0].includes(z.value)||![null,void 0].includes(L.value))?(O(),w(`g`,pi,[(O(),w(`foreignObject`,{x:nf(),y:Q.value?.bottom,width:`200`,height:`40`,style:{overflow:`visible !important`}},[T(`div`,{ref_key:`timeTagEl`,ref:Zd,class:`vue-ui-xy-time-tag`,style:D(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${U.value.timeTag.backgroundColor};color:${U.value.timeTag.color};font-size:${U.value.timeTag.fontSize}px`),innerHTML:sf.value},null,12,hi)],8,mi)),T(`circle`,{cx:Y.value&&N(Ce)(ef.value)?Zu({x:ef.value}):tu((z.value===null?0:z.value)||(L.value===null?0:L.value)),cy:Q.value?.bottom,r:U.value.timeTag.circleMarker.radius,fill:U.value.timeTag.circleMarker.color},null,8,gi)])):C(``,!0)])):C(``,!0),_l.value?(O(),w(`rect`,{key:2,x:_l.value.x,y:_l.value.y,width:_l.value.width,height:_l.value.height,fill:Ko.value.selection.fill,"fill-opacity":Ko.value.selection.fillOpacity,stroke:Ko.value.selection.stroke,"stroke-opacity":Ko.value.selection.strokeOpacity,"stroke-width":Ko.value.selection.strokeWidth,"stroke-dasharray":Ko.value.selection.strokeDasharray,"stroke-linecap":`round`,"stroke-linejoin":`round`,"pointer-events":`none`},null,8,_i)):C(``,!0),Jo.value?(O(),w(`rect`,xt({key:3},hs.value,{"data-start":q.value.start,"data-end":q.value.end}),null,16,vi)):C(``,!0),j(i.$slots,`svg`,{svg:{...ro.value,slicer:q.value,isPrintingImg:N(gs)||N(_s)||N(Ff),isPrintingSvg:N(If),data:hd.value,drawingArea:Q.value}},void 0,!0)],512)],46,ln)),i.$slots.hint?(O(),w(`div`,yi,[j(i.$slots,`hint`,Ct(bt({hint:H.value.a11y.translations.keyboardNavigation,isVisible:up.value})),void 0,!0)])):C(``,!0)]),i.$slots.watermark?(O(),w(`div`,bi,[j(i.$slots,`watermark`,Ct(bt({isPrinting:N(gs)||N(_s)||N(Ff)||N(If)})),void 0,!0)])):C(``,!0),(O(!0),w(x,null,A($.value,(e,t)=>(O(),w(x,{key:`tag_line_${e.id}`},[(O(!0),w(x,null,A(e.plots,(n,r)=>(O(),w(x,{key:`tag_line_${t}_${r}`},[[L.value,z.value,Ca.value].includes(r)&&e.useTag&&e.useTag===`end`&&H.value.line.tag.followValue?(O(),w(`div`,{key:0,ref_for:!0,ref:e=>ec(t,r,e,`right`,`line`),class:`vue-ui-xy-tag`,"data-tag":`right`,style:D({position:`fixed`,top:N(d)({svgElement:R.value,x:Q.value?.right+H.value.line.tag.fontSize/1.5,y:n.y,element:Pa.value[`${t}_${r}_right_line`],position:`right`})?.top+`px`,left:N(d)({svgElement:R.value,x:Q.value?.right+H.value.line.tag.fontSize/1.5,y:n.y,element:Pa.value[`${t}_${r}_right_line`],position:`right`})?.left+`px`,height:`fit-content`,width:`fit-content`,background:e.color,color:N(Me)(e.color),padding:`0 6px`,fontSize:H.value.line.tag.fontSize+`px`,opacity:1})},[(O(),w(`svg`,xi,[T(`path`,{d:`M 0,10 10,0 10,20 Z`,fill:e.color,stroke:`none`},null,8,Si)])),T(`div`,{class:`vue-ui-xy-tag-content`,innerHTML:N(y)(H.value.line.tag.formatter,n.value,e.name,{datapoint:n,seriesIndex:r,serieName:e.name})},null,8,Ci)],4)):C(``,!0),[L.value,z.value,Ca.value].includes(r)&&e.useTag&&e.useTag===`start`&&H.value.line.tag.followValue?(O(),w(`div`,{key:1,ref_for:!0,ref:e=>ec(t,r,e,`left`,`line`),class:`vue-ui-xy-tag`,"data-tag":`left`,style:D({position:`fixed`,top:N(d)({svgElement:R.value,x:Q.value?.left-H.value.line.tag.fontSize/1.5,y:n.y,element:Pa.value[`${t}_${r}_left_line`],position:`left`})?.top+`px`,left:N(d)({svgElement:R.value,x:Q.value?.left-H.value.line.tag.fontSize/1.5,y:n.y,element:Pa.value[`${t}_${r}_left_line`],position:`left`})?.left+`px`,height:`fit-content`,width:`fit-content`,background:e.color,color:N(Me)(e.color),padding:`0 6px`,fontSize:H.value.line.tag.fontSize+`px`,opacity:1})},[(O(),w(`svg`,wi,[T(`path`,{d:`M 0,0 10,10 0,20 Z`,fill:e.color,stroke:`none`},null,8,Ti)])),T(`div`,{class:`vue-ui-xy-tag-content`,innerHTML:N(y)(H.value.line.tag.formatter,n.value,e.name,{datapoint:n,seriesIndex:r,serieName:e.name})},null,8,Ei)],4)):C(``,!0)],64))),128))],64))),128)),(O(!0),w(x,null,A(md.value,(e,t)=>(O(),w(x,{key:`tag_plot_${e.id}`},[(O(!0),w(x,null,A(e.plots,(n,r)=>(O(),w(x,{key:`tag_plot_${t}_${r}`},[[L.value,z.value,Ca.value].includes(r)&&e.useTag&&e.useTag===`end`&&H.value.plot.tag.followValue?(O(),w(`div`,{key:0,ref_for:!0,ref:e=>ec(t,r,e,`right`,`plot`),class:`vue-ui-xy-tag`,"data-tag":`right`,style:D({position:`fixed`,top:N(d)({svgElement:R.value,x:Q.value?.right+H.value.plot.tag.fontSize/1.5,y:n.y,element:Pa.value[`${t}_${r}_right_plot`],position:`right`})?.top+`px`,left:N(d)({svgElement:R.value,x:Q.value?.right+H.value.plot.tag.fontSize/1.5,y:n.y,element:Pa.value[`${t}_${r}_right_plot`],position:`right`})?.left+`px`,height:`fit-content`,width:`fit-content`,background:e.color,color:N(Me)(e.color),padding:`0 6px`,fontSize:H.value.plot.tag.fontSize+`px`,opacity:1})},[(O(),w(`svg`,Di,[T(`path`,{d:`M 0,10 10,0 10,20 Z`,fill:e.color,stroke:`none`},null,8,Oi)])),T(`div`,{class:`vue-ui-xy-tag-content`,innerHTML:N(y)(H.value.plot.tag.formatter,n.value,e.name,{datapoint:n,seriesIndex:r,serieName:e.name})},null,8,ki)],4)):C(``,!0),[L.value,z.value,Ca.value].includes(r)&&e.useTag&&e.useTag===`start`&&H.value.plot.tag.followValue?(O(),w(`div`,{key:1,ref_for:!0,ref:e=>ec(t,r,e,`left`,`plot`),class:`vue-ui-xy-tag`,"data-tag":`left`,style:D({position:`fixed`,top:N(d)({svgElement:R.value,x:Q.value?.left-H.value.plot.tag.fontSize/1.5,y:n.y,element:Pa.value[`${t}_${r}_left_plot`],position:`left`})?.top+`px`,left:N(d)({svgElement:R.value,x:Q.value?.left-H.value.plot.tag.fontSize/1.5,y:n.y,element:Pa.value[`${t}_${r}_left_plot`],position:`left`})?.left+`px`,height:`fit-content`,width:`fit-content`,background:e.color,color:N(Me)(e.color),padding:`0 6px`,fontSize:H.value.plot.tag.fontSize+`px`,opacity:1})},[(O(),w(`svg`,Ai,[T(`path`,{d:`M 0,0 10,10 0,20 Z`,fill:e.color,stroke:`none`},null,8,ji)])),T(`div`,{class:`vue-ui-xy-tag-content`,innerHTML:N(y)(H.value.plot.tag.formatter,n.value,e.name,{datapoint:n,seriesIndex:r,serieName:e.name})},null,8,Mi)],4)):C(``,!0)],64))),128))],64))),128)),U.value.zoom.show&&Ao.value>6&&ho.value&&Dc.value?(O(),mt(lt,{key:7,ref_key:`chartSlicer`,ref:na,uuid:I.value,allMinimaps:Du.value,background:U.value.zoom.color,borderColor:U.value.backgroundColor,customFormat:U.value.zoom.customFormat,cutNullValues:H.value.line.cutNullValues,enableRangeHandles:U.value.zoom.enableRangeHandles,enableSelectionDrag:U.value.zoom.enableSelectionDrag,end:ju.value,focusOnDrag:U.value.zoom.focusOnDrag,focusRangeRatio:U.value.zoom.focusRangeRatio,fontSize:U.value.zoom.fontSize,useResetSlot:U.value.zoom.useResetSlot,immediate:!U.value.zoom.preview.enable,inputColor:U.value.zoom.color,isPreview:Jo.value,labelLeft:Fu.value,labelRight:Iu.value,max:ku.value,min:Ou.value,precision:Y.value?G.value.xAxis.rounding:0,useValueRange:Y.value,minimap:Tu.value,minimapCompact:U.value.zoom.minimap.compact,minimapFrameColor:U.value.zoom.minimap.frameColor,minimapIndicatorColor:U.value.zoom.minimap.indicatorColor,minimapLineColor:U.value.zoom.minimap.lineColor,minimapMerged:U.value.zoom.minimap.merged,minimapSelectedColor:U.value.zoom.minimap.selectedColor,minimapSelectedColorOpacity:U.value.zoom.minimap.selectedColorOpacity,minimapSelectedIndex:Y.value?Mu.value:z.value??L.value,minimapSelectionRadius:U.value.zoom.minimap.selectionRadius,preciseLabels:Cd.value.length?Cd.value:cc.value,refreshStartPoint:Y.value?Ou.value:U.value.zoom.startIndex===null?0:U.value.zoom.startIndex,refreshEndPoint:Y.value?ku.value:U.value.zoom.endIndex===null?Math.max(...e.dataset.map(e=>Eo(e.series).length)):U.value.zoom.endIndex+1,selectColor:U.value.zoom.highlightColor,selectedSeries:Lu.value,smoothMinimap:U.value.zoom.minimap.smooth,start:Au.value,textColor:U.value.color,timeLabels:cc.value,usePreciseLabels:G.value.xAxisLabels.datetimeFormatter.enable&&!U.value.zoom.useDefaultFormat,valueEnd:ju.value,valueStart:Au.value,verticalHandles:U.value.zoom.minimap.verticalHandles,minScale:Nu.value,maxScale:Pu.value,maxWidth:U.value.zoom.maxWidth,minimapLeftInsetRatio:F.value>0&&U.value.zoom.autoFit?Q.value.left/F.value:null,minimapRightInsetRatio:F.value>0&&U.value.zoom.autoFit?(F.value-Q.value.right)/F.value:null,additionalMinimapHeight:U.value.zoom.minimap.additionalHeight,handleType:U.value.zoom.minimap.handleType,handleIconColor:U.value.zoom.minimap.handleIconColor,handleBorderWidth:U.value.zoom.minimap.handleBorderWidth,handleBorderColor:U.value.zoom.minimap.handleBorderColor,handleFill:U.value.zoom.minimap.handleFill,handleWidth:U.value.zoom.minimap.handleWidth,isCursorPointer:_o.value,onFutureEnd:o[1]||=e=>Zo(`end`,e),onFutureStart:o[2]||=e=>Zo(`start`,e),onReset:Uc,onTrapMouse:bc,onTrapMouseValue:xc,"onUpdate:end":Bc,"onUpdate:start":zc},{"reset-action":Nt(({reset:e})=>[j(i.$slots,`reset-action`,Ct(bt({reset:e})),void 0,!0)]),_:3},8,/* @__PURE__ */ `uuid.allMinimaps.background.borderColor.customFormat.cutNullValues.enableRangeHandles.enableSelectionDrag.end.focusOnDrag.focusRangeRatio.fontSize.useResetSlot.immediate.inputColor.isPreview.labelLeft.labelRight.max.min.precision.useValueRange.minimap.minimapCompact.minimapFrameColor.minimapIndicatorColor.minimapLineColor.minimapMerged.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectedIndex.minimapSelectionRadius.preciseLabels.refreshStartPoint.refreshEndPoint.selectColor.selectedSeries.smoothMinimap.start.textColor.timeLabels.usePreciseLabels.valueEnd.valueStart.verticalHandles.minScale.maxScale.maxWidth.minimapLeftInsetRatio.minimapRightInsetRatio.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth.isCursorPointer`.split(`.`))):C(``,!0),T(`div`,{id:`legend-bottom-${I.value}`},null,8,Ni),Ia.value&&(U.value.legend.show||i.$slots.legend)?(O(),mt(pt,{key:8,to:U.value.legend.position===`top`?`#legend-top-${I.value}`:`#legend-bottom-${I.value}`},[T(`div`,{ref_key:`chartLegend`,ref:ra},[j(i.$slots,`legend`,{legend:Is.value},()=>[U.value.legend.show?(O(),w(`div`,{key:0,class:`vue-ui-xy-legend`,style:D({fontSize:`var(--legend-font-size, ${U.value.legend.fontSize??14}px)`})},[U.value.legend.selectAllToggle.show&&Is.value.length>2&&!N(So)?(O(),mt(dt,{key:0,backgroundColor:U.value.legend.selectAllToggle.backgroundColor,color:U.value.legend.selectAllToggle.color,fontSize:U.value.legend.fontSize,checked:wa.value.length>0,onToggle:zl},null,8,[`backgroundColor`,`color`,`fontSize`,`checked`])):C(``,!0),(O(!0),w(x,null,A(Is.value,(e,t)=>(O(),w(`div`,{key:`div_legend_item_${t}`,onClick:t=>Hl(e),onKeydown:t=>Bl(t,e),role:`button`,tabindex:`0`,class:E({"vue-ui-xy-legend-item-alone":Is.value.length===1,"vue-ui-xy-legend-item":!0,"vue-ui-xy-legend-item-segregated":Ta.value.has(e.id)}),style:D({cursor:_o.value?`pointer`:`default`})},[ya.value[e.type]===`line`?(O(),w(`svg`,Fi,[T(`rect`,{x:`0`,y:`7.5`,rx:`1.5`,stroke:U.value.backgroundColor,"stroke-width":.5,height:`3`,width:`20`,fill:e.color},null,8,Ii),_t(st,{plot:{x:10,y:9},radius:4,color:e.color,shape:[`triangle`,`square`,`diamond`,`pentagon`,`hexagon`,`star`].includes(e.shape)?e.shape:`circle`,stroke:U.value.backgroundColor,strokeWidth:.5},null,8,[`color`,`shape`,`stroke`])])):ya.value[e.type]===`bar`?(O(),w(`svg`,Li,[ya.value[e.type]===`bar`&&i.$slots.pattern?(O(),w(`rect`,{key:0,x:`4`,y:`4`,rx:`1`,height:`32`,width:`32`,stroke:`none`,fill:e.color},null,8,Ri)):C(``,!0),ya.value[e.type]===`bar`?(O(),w(`rect`,{key:1,x:`4`,y:`4`,rx:`1`,height:`32`,width:`32`,stroke:`none`,fill:i.$slots.pattern?`url(#pattern_${I.value}_${e.slotAbsoluteIndex})`:e.color},null,8,zi)):C(``,!0)])):(O(),w(`svg`,Bi,[_t(st,{plot:{x:6,y:6},radius:5,color:e.color,shape:[`triangle`,`square`,`diamond`,`pentagon`,`hexagon`,`star`].includes(e.shape)?e.shape:`circle`},null,8,[`color`,`shape`])])),T(`span`,{style:D(`color:${U.value.legend.color}`)},Dt(e.name),5)],46,Pi))),128))],4)):C(``,!0)],!0)],512)],8,[`to`])):C(``,!0),i.$slots.source?(O(),w(`div`,{key:9,ref_key:`source`,ref:ia,dir:`auto`},[j(i.$slots,`source`,{},void 0,!0)],512)):C(``,!0),_t(N(zt),{teleportTo:U.value.tooltip.teleportTo,show:K.value.showTooltip&&Sa.value,backgroundColor:U.value.tooltip.backgroundColor,color:U.value.tooltip.color,fontSize:U.value.tooltip.fontSize,borderRadius:U.value.tooltip.borderRadius,borderColor:U.value.tooltip.borderColor,borderWidth:U.value.tooltip.borderWidth,backgroundOpacity:U.value.tooltip.backgroundOpacity,position:U.value.tooltip.position,offsetX:U.value.tooltip.offsetX,offsetY:U.value.tooltip.offsetY,parent:i.$refs.chart,content:Od.value,isFullscreen:xa.value,isCustom:U.value.tooltip.customFormat&&typeof U.value.tooltip.customFormat==`function`,smooth:U.value.tooltip.smooth,backdropFilter:U.value.tooltip.backdropFilter,smoothForce:U.value.tooltip.smoothForce,smoothSnapThreshold:U.value.tooltip.smoothSnapThreshold,isA11yMode:za.value!=null,a11yPosition:Ba.value},{"tooltip-before":Nt(()=>[j(i.$slots,`tooltip-before`,Ct(bt({...yd.value})),void 0,!0)]),tooltip:Nt(()=>[j(i.$slots,`tooltip`,Ct(bt({...yd.value})),void 0,!0)]),"tooltip-after":Nt(()=>[j(i.$slots,`tooltip-after`,Ct(bt({...yd.value})),void 0,!0)]),_:3},8,[`teleportTo`,`show`,`backgroundColor`,`color`,`fontSize`,`borderRadius`,`borderColor`,`borderWidth`,`backgroundOpacity`,`position`,`offsetX`,`offsetY`,`parent`,`content`,`isFullscreen`,`isCustom`,`smooth`,`backdropFilter`,`smoothForce`,`smoothSnapThreshold`,`isA11yMode`,`a11yPosition`]),ho.value&&U.value.userOptions.buttons.table?(O(),mt(Et(kf.value.component),xt({key:10},kf.value.props,{ref_key:`tableUnit`,ref:La,onClose:Af}),ht({content:Nt(()=>[T(`div`,{style:D(`${N(gs)||H.value.table.useDialog?``:`max-height:400px`};${H.value.table.useDialog?`height: fit-content; `:``};overflow:auto;width:100%;${H.value.table.useDialog?``:`margin-top:48px`}`)},[T(`div`,Vi,[Pt(T(`input`,{type:`checkbox`,"onUpdate:modelValue":o[4]||=e=>ka.value=e},null,512),[[At,ka.value]]),T(`div`,{onClick:o[5]||=e=>ka.value=!ka.value,style:D({cursor:_o.value?`pointer`:`default`})},[_t(N(Vt),{name:`chartLine`,size:20,stroke:U.value.color},null,8,[`stroke`])],4)]),ka.value?(O(),mt(N(nn),{key:`sparkline_${Aa.value}`,dataset:Zl.value,config:Ql.value},null,8,[`dataset`,`config`])):(O(),mt(N(Rt),{key:`table_${Da.value}`,colNames:zd.value.colNames,head:zd.value.head,body:zd.value.body,config:zd.value.config,title:H.value.table.useDialog?``:kf.value.title,withCloseButton:!H.value.table.useDialog,onClose:Af},{th:Nt(({th:e})=>[e===`__SUM__`?(O(),w(`div`,Hi,[_t(N(Vt),{name:`sigma`,stroke:zd.value.config.th.color,size:16},null,8,[`stroke`])])):(O(),w(`div`,Ui,Dt(e),1))]),td:Nt(({td:e})=>[gt(Dt(isNaN(Number(e))?e:N(a)({p:U.value.labels.prefix,v:e,s:U.value.labels.suffix,r:H.value.table.rounding})),1)]),_:1},8,[`colNames`,`head`,`body`,`config`,`title`,`withCloseButton`]))],4)]),_:2},[H.value.table.useDialog?{name:`title`,fn:Nt(()=>[gt(Dt(kf.value.title),1)]),key:`0`}:void 0,H.value.table.useDialog?{name:`actions`,fn:Nt(()=>[T(`button`,{tabindex:`0`,class:`vue-ui-user-options-button`,onClick:o[3]||=e=>Bd(U.value.userOptions.callbacks.csv)},[_t(N(Vt),{name:`fileCsv`,stroke:kf.value.props.color},null,8,[`stroke`])])]),key:`1`}:void 0]),1040)):C(``,!0),j(i.$slots,`skeleton`,{},()=>[N(So)?(O(),mt(Ve,{key:0})):C(``,!0)],!0)],46,rn))}},[[`__scopeId`,`data-v-6c8de165`]]);export{Ft as a,Lt as i,nn as n,It as r,Gi as t};
|