vue-data-ui 3.28.3 → 3.28.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BaseDraggableDialog-DHgIPVmz.js → BaseDraggableDialog-9d30Yx8c.js} +1 -1
- package/dist/{BaseIcon-Cm-IJ179.js → BaseIcon-fYK0iID8.js} +1 -1
- package/dist/{BaseLegendToggle-Q3TiW9u1.js → BaseLegendToggle-aT9fOoGO.js} +1 -1
- package/dist/{BaseZoomControls-ByS_7fmI.js → BaseZoomControls-1OdFWrHW.js} +1 -1
- package/dist/ColorPicker-DEJOjcmD.js +1 -0
- package/dist/{DataTable-0Vv-aGHD.js → DataTable-5Ug6gMAX.js} +1 -1
- package/dist/{HillActions-qz6J_uK7.js → HillActions-C8am4I5c.js} +1 -1
- package/dist/{NonSvgPenAndPaper-Do6RcwEr.js → NonSvgPenAndPaper-CawVDtNj.js} +1 -1
- package/dist/{PackageVersion-CXT-eAuk.js → PackageVersion-DWlHsdPa.js} +1 -1
- package/dist/PenAndPaper-r50tK3S4.js +1 -0
- package/dist/{SlicerPreview-CFFUOlQr.js → SlicerPreview-DYuyE9u9.js} +1 -1
- package/dist/{UserOptions-uWHV_zPB.js → UserOptions-Em_JgDXM.js} +1 -1
- package/dist/annotationSlots-RvQBEO9-.js +1 -0
- package/dist/annotationViewport-X8fvs7pz.js +1 -0
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.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-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.js +1 -1
- package/dist/components/vue-ui-mini-loader.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-rating.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-smiley.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-CM94W_P5.js +1 -0
- package/dist/{render-common-C70bnUVe.js → render-common-Dkf3n13B.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/types/vue-data-ui.d.ts +26 -1
- package/dist/types/vue-ui-xy.d.ts +3 -0
- package/dist/useConfig-D3ZfFSE5.js +1 -0
- package/dist/{useObjectBindings-C15PEyQD.js → useObjectBindings-BCi3Az41.js} +1 -1
- package/dist/utils.js +1 -1
- package/dist/vue-data-ui-B2f_qLvD.js +1 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-ljsy2rX6.js → vue-ui-3d-bar-Bm-Oe_kr.js} +2 -2
- package/dist/{vue-ui-accordion-S3nRtTU-.js → vue-ui-accordion-D4FHxzsL.js} +1 -1
- package/dist/{vue-ui-age-pyramid-a6CK7z3a.js → vue-ui-age-pyramid-DeN6_pms.js} +1 -1
- package/dist/{vue-ui-annotator-DCJdieNC.js → vue-ui-annotator-DuAQovkf.js} +1 -1
- package/dist/{vue-ui-bullet-DX4A2Qwo.js → vue-ui-bullet-CXCjzBCa.js} +2 -2
- package/dist/{vue-ui-bump-IvRdB6MD.js → vue-ui-bump-DrphtYb-.js} +2 -2
- package/dist/vue-ui-candlestick-CAdTTZzx.js +22 -0
- package/dist/{vue-ui-carousel-table-D01DGfA0.js → vue-ui-carousel-table-D-PSQEuw.js} +1 -1
- package/dist/vue-ui-chestnut-BhnQd90d.js +1 -0
- package/dist/{vue-ui-chord-CwzQ7QbP.js → vue-ui-chord-C6swlh_I.js} +3 -3
- package/dist/vue-ui-circle-pack-CXhm9rwh.js +13 -0
- package/dist/{vue-ui-cursor-CTFfbDX8.js → vue-ui-cursor-CCx0hL1b.js} +1 -1
- package/dist/vue-ui-dag-BNYDTrHG.js +9 -0
- package/dist/{vue-ui-dashboard-D98rMHjI.js → vue-ui-dashboard-C2KQNeNt.js} +1 -1
- package/dist/{vue-ui-digits-AoPCgSfP.js → vue-ui-digits-Bcg9Ocwc.js} +1 -1
- package/dist/{vue-ui-donut-BYUkblpv.js → vue-ui-donut-CU-L5W3v.js} +2 -2
- package/dist/vue-ui-donut-CqasvTv0.js +22 -0
- package/dist/vue-ui-donut-evolution-DgLZRZkG.js +2 -0
- package/dist/{vue-ui-dumbbell-DR7rjMt0.js → vue-ui-dumbbell-DCYDSSZf.js} +2 -2
- package/dist/{vue-ui-flow-DtQlRSK_.js → vue-ui-flow-BzGZdOi-.js} +2 -2
- package/dist/{vue-ui-funnel-BP3chlZy.js → vue-ui-funnel-pJc9jVJO.js} +1 -1
- package/dist/{vue-ui-galaxy-B7ogrJ6f.js → vue-ui-galaxy-DHheME5Z.js} +1 -1
- package/dist/{vue-ui-gauge-CrmzNkjT.js → vue-ui-gauge-C4v_qdpm.js} +1 -1
- package/dist/vue-ui-geo-Fras0OVo.js +1 -0
- package/dist/{vue-ui-gizmo-C3wgMKwb.js → vue-ui-gizmo-Bqea3ZMn.js} +1 -1
- package/dist/{vue-ui-graph-CzUVEiO-.js → vue-ui-graph-BZs3jwhv.js} +2 -2
- package/dist/vue-ui-heatmap-2ALnM7Oj.js +1 -0
- package/dist/{vue-ui-hill-BDOd7LrC.js → vue-ui-hill-B8dCg3x5.js} +1 -1
- package/dist/{vue-ui-history-plot-0-vs_CVn.js → vue-ui-history-plot-CegRxR-x.js} +2 -2
- package/dist/vue-ui-horizontal-bar-DuRnq32M.js +4 -0
- package/dist/{vue-ui-kpi-Dfhsk0U1.js → vue-ui-kpi-DSwSDLcO.js} +1 -1
- package/dist/{vue-ui-label-B_1kM28r.js → vue-ui-label-0lSeoxvv.js} +1 -1
- package/dist/{vue-ui-mini-loader-Bbupx66Y.js → vue-ui-mini-loader-C6vhrfx3.js} +1 -1
- package/dist/vue-ui-molecule-DF9I7IDy.js +1 -0
- package/dist/{vue-ui-mood-radar-B1N5AwX_.js → vue-ui-mood-radar-BpDzg6P1.js} +1 -1
- package/dist/{vue-ui-nested-donuts-CfHH-cU6.js → vue-ui-nested-donuts-CYU90SX-.js} +2 -2
- package/dist/{vue-ui-onion-DRN-jIvq.js → vue-ui-onion-C9Y96_Pe.js} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-UUPjQABF.js → vue-ui-parallel-coordinate-plot-CEX33A1e.js} +3 -3
- package/dist/{vue-ui-quadrant-zmtzn0lM.js → vue-ui-quadrant-BzD-dhcs.js} +2 -2
- package/dist/vue-ui-quick-chart-DDXK6KTi.js +17 -0
- package/dist/{vue-ui-radar-BGSoxRaK.js → vue-ui-radar-fgVruUz1.js} +1 -1
- package/dist/{vue-ui-rating-ChWXrWNJ.js → vue-ui-rating-7RAJA7I4.js} +1 -1
- package/dist/{vue-ui-relation-circle-XUw5UMrt.js → vue-ui-relation-circle-TA-KH-2J.js} +1 -1
- package/dist/{vue-ui-ridgeline-B5RJcFyA.js → vue-ui-ridgeline-GJ_EyeMs.js} +2 -2
- package/dist/{vue-ui-rings-BJaCLH2Q.js → vue-ui-rings-CQ4CQa-D.js} +1 -1
- package/dist/{vue-ui-scatter-BA0hk_Tf.js → vue-ui-scatter-ecBr_qgs.js} +2 -2
- package/dist/{vue-ui-skeleton-DpzaXPO3.js → vue-ui-skeleton-BqHwNz2O.js} +1 -1
- package/dist/{vue-ui-smiley--VTlUAdp.js → vue-ui-smiley-BdhxsPGW.js} +1 -1
- package/dist/{vue-ui-spark-trend-DJ63XtgQ.js → vue-ui-spark-trend-DULUucQY.js} +1 -1
- package/dist/{vue-ui-sparkbar-C5wP9R67.js → vue-ui-sparkbar-CUzfk9Y4.js} +1 -1
- package/dist/{vue-ui-sparkgauge-DQcAOGuG.js → vue-ui-sparkgauge-CEYIZNGr.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-BBiCxX6W.js → vue-ui-sparkhistogram-BATfvYil.js} +1 -1
- package/dist/{vue-ui-sparkline-B_GkB9V_.js → vue-ui-sparkline-B2jYjPFT.js} +1 -1
- package/dist/{vue-ui-sparkstackbar-DSRXhqhJ.js → vue-ui-sparkstackbar-CN-Xz72S.js} +1 -1
- package/dist/vue-ui-stackbar-D9hp_pkz.js +29 -0
- package/dist/vue-ui-stackline-BKcbKdrA.js +39 -0
- package/dist/{vue-ui-strip-plot-d3UoFFrf.js → vue-ui-strip-plot-CKk6MJhD.js} +2 -2
- package/dist/{vue-ui-table-CHFjZzW7.js → vue-ui-table-D-jfpSh1.js} +1 -1
- package/dist/{vue-ui-table-heatmap-DzvPQnY9.js → vue-ui-table-heatmap-IYPQ7LMg.js} +1 -1
- package/dist/{vue-ui-table-sparkline-BkZ7sn4X.js → vue-ui-table-sparkline-295WMuHK.js} +1 -1
- package/dist/vue-ui-thermometer-Ccasz0jb.js +1 -0
- package/dist/{vue-ui-timer-DmwEWrDh.js → vue-ui-timer-DeTZUIxO.js} +2 -2
- package/dist/{vue-ui-tiremarks-160Gx7-3.js → vue-ui-tiremarks-DWrBN1nz.js} +1 -1
- package/dist/vue-ui-treemap-D8Se3_RA.js +1 -0
- package/dist/{vue-ui-waffle-BhzLg5ip.js → vue-ui-waffle-BSfHWe_Z.js} +1 -1
- package/dist/vue-ui-wheel-BRaABy8K.js +1 -0
- package/dist/vue-ui-word-cloud-9YYx_Xrj.js +4 -0
- package/dist/{vue-ui-world-BD9acchj.js → vue-ui-world-BmICer9M.js} +2 -2
- package/dist/{vue-ui-xy-CB3lQs2m.js → vue-ui-xy-D7IJvizz.js} +1 -1
- package/dist/vue-ui-xy-DYnPKTpK.js +24 -0
- package/dist/{vue-ui-xy-canvas-Do4P4ajB.js → vue-ui-xy-canvas-CjrbWdJJ.js} +1 -1
- package/package.json +1 -1
- package/dist/ColorPicker-Dmus34hN.js +0 -1
- package/dist/PenAndPaper-BGEp-TUm.js +0 -1
- package/dist/annotationSlots-BRR85CqJ.js +0 -1
- package/dist/package-CgIKu3rP.js +0 -1
- package/dist/useConfig-6jO1fkp5.js +0 -1
- package/dist/vue-data-ui-CrOhFey9.js +0 -1
- package/dist/vue-ui-candlestick-BgyUo13S.js +0 -22
- package/dist/vue-ui-chestnut-DYrMSzmQ.js +0 -1
- package/dist/vue-ui-circle-pack-DQHNM9sC.js +0 -13
- package/dist/vue-ui-dag-DF29_9Gg.js +0 -9
- package/dist/vue-ui-donut-BQGnUso2.js +0 -22
- package/dist/vue-ui-donut-evolution-wxHDTKlg.js +0 -2
- package/dist/vue-ui-geo-BbTvWbfX.js +0 -1
- package/dist/vue-ui-heatmap-BxR2ccwd.js +0 -1
- package/dist/vue-ui-horizontal-bar-C5pNTRKB.js +0 -4
- package/dist/vue-ui-molecule-DUX1NUIY.js +0 -1
- package/dist/vue-ui-quick-chart-DgU_IhKY.js +0 -17
- package/dist/vue-ui-stackbar-QjOQHbld.js +0 -29
- package/dist/vue-ui-stackline-CoII13bc.js +0 -39
- package/dist/vue-ui-thermometer-B--g_Lkt.js +0 -1
- package/dist/vue-ui-treemap-B-Yjtob0.js +0 -1
- package/dist/vue-ui-wheel-DHb4G42X.js +0 -1
- package/dist/vue-ui-word-cloud-BcpreM7A.js +0 -4
- package/dist/vue-ui-xy-C-2Phexw.js +0 -24
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./useConfig-6jO1fkp5.js";import{$ as n,D as r,Dt as i,Ft as a,Ht as o,Jt as s,Kt as ee,Mt as c,S as l,X as te,Zt as ne,_ as re,_t as ie,at as ae,i as oe,in as se,nn as ce,nt as le,o as ue,pt as de,w as fe,wt as pe,zt as me}from"./lib-rPeBMZrn.js";import{n as he,t as ge}from"./BaseScanner-8NdoBs7B.js";import{n as _e,t as ve}from"./useHints-C-TwxM0Y.js";import{t as ye}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as be}from"./useNestedProp-DnGoh-XS.js";import{t as xe}from"./useThemeCheck-BKNRbGeC.js";import{t as Se}from"./img-D4RQwASc.js";import{t as Ce}from"./BaseIcon-Cm-IJ179.js";import{n as we}from"./Title-BliHuXfT.js";import{n as Te,t as Ee}from"./tableIntegration-CNoJ1CIY.js";import{n as De,t as Oe}from"./userOptionsSlots-DYuo-E5m.js";import{n as ke,r as Ae,t as je}from"./useTimeLabels-Das5O74F.js";import{t as Me}from"./usePrinter-DVf3YcG5.js";import{a as Ne,c as Pe,i as u,n as Fe,o as Ie,r as Le,s as Re,t as ze}from"./canvas-lib-22VpOI4_.js";import{t as Be}from"./useResponsive-CENUxfEL.js";import{t as Ve}from"./SlicerPreview-CFFUOlQr.js";import{t as He}from"./vue-ui-accordion-S3nRtTU-.js";import{t as Ue}from"./BaseLegendToggle-Q3TiW9u1.js";import{t as We}from"./useUserOptionState-CXlFnwPv.js";import{t as Ge}from"./useChartAccessibility-DOMuYJfm.js";import{t as Ke}from"./Legend-DM0ClX3D.js";import{t as qe}from"./vue_ui_xy_canvas-CT-FN9rU.js";import{Teleport as Je,computed as d,createBlock as Ye,createCommentVNode as f,createElementBlock as Xe,createElementVNode as p,createSlots as Ze,createTextVNode as Qe,createVNode as $e,defineAsyncComponent as et,guardReactiveProps as m,mergeProps as tt,nextTick as nt,normalizeClass as rt,normalizeProps as h,normalizeStyle as it,onBeforeUnmount as at,onMounted as ot,openBlock as g,ref as _,renderList as st,renderSlot as v,resolveDynamicComponent as ct,shallowRef as lt,toDisplayString as ut,toRefs as dt,unref as y,useSlots as ft,watch as b,watchEffect as pt,withCtx as x}from"vue";var mt=/* @__PURE__ */ e({default:()=>Ot}),ht=[`id`],gt=[`id`],_t={class:`sr-only`,"aria-live":`polite`,"aria-atomic":`true`},vt=[`id`],yt=[`aria-label`,`aria-describedby`],bt=[`viewBox`],xt=[`x`,`y`,`width`,`height`,`fill`,`fill-opacity`,`stroke`,`stroke-opacity`,`stroke-width`,`stroke-dasharray`],St={key:1,style:{position:`absolute`,top:`100%`,left:`0`,width:`100%`},"data-dom-to-png-ignore":``,"aria-hidden":`true`},Ct=[`id`],wt=[`onClick`],Tt={key:4,class:`vue-data-ui-watermark`},Et={key:0},Dt={key:1},Ot=/*#__PURE__*/ ye({__name:`vue-ui-xy-canvas`,props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}},selectedXIndex:{type:Number,default:void 0},zoomState:{type:Object,default:null}},emits:[`selectLegend`,`selectX`,`zoomStart`,`zoomEnd`,`zoomReset`,`update:zoomState`,`copyAlt`],setup(e,{expose:ye,emit:mt}){let Ot=et(()=>import(`./Tooltip-C1q0Qoh7.js`)),kt=et(()=>import(`./DataTable-0Vv-aGHD.js`)),At=et(()=>import(`./UserOptions-uWHV_zPB.js`).then(e=>e.n)),jt=et(()=>import(`./NonSvgPenAndPaper-Do6RcwEr.js`)),Mt=et(()=>import(`./BaseDraggableDialog-DHgIPVmz.js`).then(e=>e.n)),{vue_ui_xy_canvas:Nt}=t(),{isThemeValid:Pt,warnInvalidTheme:Ft}=xe(),S=e,It=_(te()),Lt=_(null),Rt=_(null),C=_(null),w=_(1),zt=_(1),Bt=_(!1),T=_(null),Vt=_(``),Ht=_(null),E=_([]),Ut=_(1),D=_(!0),O=_(!0),Wt=_(null),Gt=_(0),Kt=_(!1),qt=_(null),Jt=_(null),Yt=_(null),Xt=_(null),Zt=_(0),Qt=_(0),$t=_(0),k=_(null),en=_(!1),tn=_(null),nn=_(null),rn=_(!1),an=_(!1),on=_(!1),A=_(null),sn=_(!1),cn=_(!1),ln=_(!1),j=_(null),un=_({x:0,y:0}),M=d(()=>Array.isArray(yn.value)&&yn.value.length>0),N=mt,dn=ft(),P=_(Tn()),F=d(()=>P.value.userOptions),I=d(()=>P.value.style.chart.tooltip),L=d(()=>P.value.style.chart.grid.y.verticalLines),fn=d(()=>P.value.style.chart.grid.x.horizontalLines),R=d(()=>P.value.style.chart.grid.y.axisLabels),z=d(()=>P.value.style.chart.grid.x.timeLabels),B=d(()=>P.value.style.chart.grid),V=d(()=>P.value.style.chart.dataLabels),H=d(()=>P.value.style.chart);_e({config:()=>P.value,dataset:()=>S.dataset,component:`VueUiXyCanvas`,rules:[ve.emptyArray,{test:e=>e.every(e=>e.series.length<300),message:[`👀 Series have < 300 datapoints. Consider:`,``,`▶️ Using VueUiXy instead, if you need more options, or more customization possibilities.`]},{test:e=>e.some(e=>e.series.length>1e4),message:[`👀 The dataset has > 10_000 datapoints. Above this threshold, the dataset is computed through an LTTB algorithm, to preserve the shape of the data without increasing the number of datapoints.`,``,`▶️ If you need this level of detail, you can change config.downsample.threshold and set a higher value. Note that performance can be impacted. JS runtime might crash with > 100_000 datapoints.`]}]});let pn=d(()=>{let e=H.value.title.text||`XY chart`,t=X.value.end-X.value.start;return`${e}. ${Y.value.filter(e=>!E.value.includes(e.absoluteIndex)).length} series. ${t} visible data points.`}),mn=d(()=>{if(j.value===null)return``;let e=j.value+X.value.start;return`${z.value.values.slice(X.value.start,X.value.end)[j.value]?I.value.useDefaultTimeFormat?$.value.slice(X.value.start,X.value.end)[j.value]?.text:Nr.value[j.value]?.text:$.value[e]?.text??`Point ${e+1}`}. ${Y.value.filter(e=>!E.value.includes(e.absoluteIndex)).map(e=>{let t=e.series[j.value],n=t?.value??t??null;return`${e.name}: ${n}`}).join(`. `)}.`}),hn=d(()=>F.value.useCursorPointer),gn=d(()=>P.value.debug);ot(()=>{dn[`chart-background`]&&gn.value&&console.warn(`VueUiXyCanvas does not support the #chart-background slot.`)});let _n=d(()=>se({defaultConfig:{userOptions:{show:!1},table:{show:!1},style:{chart:{backgroundColor:`#99999930`,grid:{x:{axisColor:`#6A6A6A`,timeLabels:{show:!1},axisName:``,horizontalLines:{color:`#6A6A6A`}},y:{axisColor:`#6A6A6A`,axisLabels:{show:!1},axisName:``,verticalLines:{color:`#6A6A6A`}},zeroLine:{color:`#6A6A6A`}},legend:{backgroundColor:`#99999930`},paddingProportions:{left:.05},scale:{max:null,min:null},zoom:{endIndex:null,startIndex:null}}}},userConfig:P.value.skeletonConfig??{}})),{loading:vn,FINAL_DATASET:yn}=he({...dt(S),FINAL_CONFIG:P,prepareConfig:Tn,skeletonDataset:S.config?.skeletonDataset??[{name:``,series:[0,1,2,3,5,8,13,21,34,55,89,134],type:`line`,smooth:!0,color:`#BABABA`},{name:``,series:[0,.5,1,1.5,2.5,4,6.5,10.5,17,27.5,44.5,67],type:`bar`,color:`#AAAAAA`}],skeletonConfig:se({defaultConfig:P.value,userConfig:_n.value})}),{userOptionsVisible:bn,setUserOptionsVisibility:xn,keepUserOptionState:Sn}=We({config:P.value}),{svgRef:U}=Ge({config:H.value.title});function Cn(){xn(!0)}function wn(){xn(!1),N(`selectX`,{dataset:null,index:null,indexLabel:null}),T.value=null}function Tn(){let e=be({userConfig:S.config,defaultConfig:Nt}),t={},n=e.theme;if(n){if(!Pt.value(e))Ft(e),t=e;else{let r=be({userConfig:qe[n]||S.config,defaultConfig:e});t={...be({userConfig:S.config,defaultConfig:r}),customPalette:e.customPalette.length?e.customPalette:ce[n]||o}}}else t=e;return S.config&&pe(S.config,`style.chart.grid.y.timeLabels`)&&(console.warn(`VueUiXyCanvas: you are using the deprecated config.style.chart.grid.y.timeLabels. It is recommended to move this configuration to config.style.chart.grid.x.timeLabels.`),t.style.chart.grid.x.timeLabels=be({defaultConfig:t.style.chart.grid.x.timeLabels,userConfig:S.config.style.chart.grid.y.timeLabels})),t}let En=ne(S.config);b(()=>S.config,(e,t)=>{let n=ne(e),r=n!==En;En=n;let i=Tn();r?(vn.value||(P.value=i),bn.value=!F.value.showOnChartHover,Di(),Zt.value+=1,Qt.value+=1,$t.value+=1,W.value.showTable=P.value.table.show,W.value.showDataLabels=V.value.show,W.value.stacked=H.value.stacked,W.value.showTooltip=I.value.show):(P.value.style.chart.tooltip=i.style.chart.tooltip,W.value.showTooltip=P.value.style.chart.tooltip.show)},{deep:!0}),b(()=>S.dataset,async e=>{Array.isArray(e)&&e.length!==0&&(await nt(),U.value&&!C.value&&(C.value=U.value.getContext(`2d`,{willReadFrequently:!0})),D.value=!0,O.value=!0,await fr(),Sr(),Zt.value+=1,Qt.value+=1,$t.value+=1)},{deep:!0});let Dn=_(H.value.aspectRatio),{isPrinting:On,isImaging:kn,generatePdf:An,generateImage:jn}=Me({elementId:`xy_canvas_${It.value}`,fileName:H.value.title.text||`vue-ui-xy-canvas`,options:F.value.print}),W=_({showTable:P.value.table.show,showDataLabels:V.value.show,stacked:H.value.stacked,showTooltip:I.value.show});function Mn(e){Kt.value=e,Gt.value+=1}let Nn=d(()=>fe(P.value.customPalette)),Pn=d(()=>E.value.length===J.value.length),G=d(()=>J.value?Math.max(...J.value.filter((e,t)=>Pn.value?!0:!E.value.includes(e.absoluteIndex)).map(e=>e.series.length)):0);function Fn(e){A.value=e,Wr()}let In=_(0),Ln=_(0);function Rn(){if(!C.value||!z.value.show)return 0;let e=$.value||[],t=X.value.start??0,n=X.value.end??0;if(!Math.max(0,n-t))return 0;let r=Math.round(w.value/40*z.value.fontSizeRatio),i=`${z.value.bold?`bold `:``}${r}px ${P.value.style.fontFamily}`;C.value.save(),C.value.font=i;let a=0;for(let r=t;r<n;r+=1){let t=e[r]?.text??`${r+1}`,n=C.value.measureText(String(t));n.width>a&&(a=n.width)}C.value.restore();let o=(z.value.rotation||0)*Math.PI/180,s=r,ee=Math.abs(Math.sin(o))*a+Math.abs(Math.cos(o))*s,c=z.value.offsetY||1,l=w.value/c;return Math.max(0,l+ee+4)}function zn(){In.value=Rn()}function Bn(){Ln.value&&cancelAnimationFrame(Ln.value),Ln.value=requestAnimationFrame(()=>{requestAnimationFrame(()=>{zn()})})}at(()=>{Ln.value&&cancelAnimationFrame(Ln.value)});let K=d(()=>{let e=w.value-w.value*(H.value.paddingProportions.left+H.value.paddingProportions.right),t=zt.value*H.value.paddingProportions.top,n=zt.value*H.value.paddingProportions.bottom,r=In.value,i=zt.value-n-r,a=zt.value-(t+n)-r;return{canvasWidth:w.value,canvasHeight:zt.value,left:w.value*H.value.paddingProportions.left,top:t,right:w.value-w.value*H.value.paddingProportions.right,bottom:i,width:e,height:a,slot:e/(X.value.end-X.value.start)}});function Vn(e,t){return e/t}function Hn({hasAutoScale:e,series:t,min:n,max:r,scale:i,yOffset:a,individualHeight:o,stackIndex:s=null}){return t.map((t,n)=>{let r=i.min<0?Math.abs(i.min):0,ee=Vn(t+r,r+i.max),c,l;e&&(c=i.min,l=Vn(t-c,i.max-c));let te=0;return te=s===null?K.value.bottom-K.value.height*(e?l:ee):K.value.bottom-a-o*(e?l:ee),{x:K.value.left+K.value.slot*n+K.value.slot/2,y:te,value:t}})}let q=d(()=>{let e=H.value.scale.min===null?Math.min(...J.value.filter((e,t)=>!E.value.includes(e.absoluteIndex)).flatMap(e=>e.series.slice(X.value.start,X.value.end))):H.value.scale.min,t=H.value.scale.max===null?Math.max(...J.value.filter((e,t)=>!E.value.includes(e.absoluteIndex)).flatMap(e=>e.series.slice(X.value.start,X.value.end))):H.value.scale.max,n=re(e<0?e:0,t===e?e+1<0?0:e+1:t<0?0:t,H.value.scale.ticks),r=n.min<0?Math.abs(n.min):0,i=K.value.bottom-K.value.height*(r/(n.max+r));return{absoluteMin:r,max:t,min:e,scale:n,yLabels:n.ticks.map(e=>({y:K.value.bottom-K.value.height*((e+r)/(n.max+r)),x:K.value.left-8,value:e})),zero:i}}),Un=d(()=>Y.value.map(e=>`
|
|
1
|
+
import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./useConfig-D3ZfFSE5.js";import{$ as n,D as r,Dt as i,Ft as a,Ht as o,Jt as s,Kt as ee,Mt as c,S as l,X as te,Zt as ne,_ as re,_t as ie,at as ae,i as oe,in as se,nn as ce,nt as le,o as ue,pt as de,w as fe,wt as pe,zt as me}from"./lib-rPeBMZrn.js";import{n as he,t as ge}from"./BaseScanner-8NdoBs7B.js";import{n as _e,t as ve}from"./useHints-C-TwxM0Y.js";import{t as ye}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as be}from"./useNestedProp-DnGoh-XS.js";import{t as xe}from"./useThemeCheck-BKNRbGeC.js";import{t as Se}from"./img-D4RQwASc.js";import{t as Ce}from"./BaseIcon-fYK0iID8.js";import{n as we}from"./Title-BliHuXfT.js";import{n as Te,t as Ee}from"./tableIntegration-CNoJ1CIY.js";import{n as De,t as Oe}from"./userOptionsSlots-DYuo-E5m.js";import{n as ke,r as Ae,t as je}from"./useTimeLabels-Das5O74F.js";import{t as Me}from"./usePrinter-DVf3YcG5.js";import{a as Ne,c as Pe,i as u,n as Fe,o as Ie,r as Le,s as Re,t as ze}from"./canvas-lib-22VpOI4_.js";import{t as Be}from"./useResponsive-CENUxfEL.js";import{t as Ve}from"./SlicerPreview-DYuyE9u9.js";import{t as He}from"./vue-ui-accordion-D4FHxzsL.js";import{t as Ue}from"./BaseLegendToggle-aT9fOoGO.js";import{t as We}from"./useUserOptionState-CXlFnwPv.js";import{t as Ge}from"./useChartAccessibility-DOMuYJfm.js";import{t as Ke}from"./Legend-DM0ClX3D.js";import{t as qe}from"./vue_ui_xy_canvas-CT-FN9rU.js";import{Teleport as Je,computed as d,createBlock as Ye,createCommentVNode as f,createElementBlock as Xe,createElementVNode as p,createSlots as Ze,createTextVNode as Qe,createVNode as $e,defineAsyncComponent as et,guardReactiveProps as m,mergeProps as tt,nextTick as nt,normalizeClass as rt,normalizeProps as h,normalizeStyle as it,onBeforeUnmount as at,onMounted as ot,openBlock as g,ref as _,renderList as st,renderSlot as v,resolveDynamicComponent as ct,shallowRef as lt,toDisplayString as ut,toRefs as dt,unref as y,useSlots as ft,watch as b,watchEffect as pt,withCtx as x}from"vue";var mt=/* @__PURE__ */ e({default:()=>Ot}),ht=[`id`],gt=[`id`],_t={class:`sr-only`,"aria-live":`polite`,"aria-atomic":`true`},vt=[`id`],yt=[`aria-label`,`aria-describedby`],bt=[`viewBox`],xt=[`x`,`y`,`width`,`height`,`fill`,`fill-opacity`,`stroke`,`stroke-opacity`,`stroke-width`,`stroke-dasharray`],St={key:1,style:{position:`absolute`,top:`100%`,left:`0`,width:`100%`},"data-dom-to-png-ignore":``,"aria-hidden":`true`},Ct=[`id`],wt=[`onClick`],Tt={key:4,class:`vue-data-ui-watermark`},Et={key:0},Dt={key:1},Ot=/*#__PURE__*/ ye({__name:`vue-ui-xy-canvas`,props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}},selectedXIndex:{type:Number,default:void 0},zoomState:{type:Object,default:null}},emits:[`selectLegend`,`selectX`,`zoomStart`,`zoomEnd`,`zoomReset`,`update:zoomState`,`copyAlt`],setup(e,{expose:ye,emit:mt}){let Ot=et(()=>import(`./Tooltip-C1q0Qoh7.js`)),kt=et(()=>import(`./DataTable-5Ug6gMAX.js`)),At=et(()=>import(`./UserOptions-Em_JgDXM.js`).then(e=>e.n)),jt=et(()=>import(`./NonSvgPenAndPaper-CawVDtNj.js`)),Mt=et(()=>import(`./BaseDraggableDialog-9d30Yx8c.js`).then(e=>e.n)),{vue_ui_xy_canvas:Nt}=t(),{isThemeValid:Pt,warnInvalidTheme:Ft}=xe(),S=e,It=_(te()),Lt=_(null),Rt=_(null),C=_(null),w=_(1),zt=_(1),Bt=_(!1),T=_(null),Vt=_(``),Ht=_(null),E=_([]),Ut=_(1),D=_(!0),O=_(!0),Wt=_(null),Gt=_(0),Kt=_(!1),qt=_(null),Jt=_(null),Yt=_(null),Xt=_(null),Zt=_(0),Qt=_(0),$t=_(0),k=_(null),en=_(!1),tn=_(null),nn=_(null),rn=_(!1),an=_(!1),on=_(!1),A=_(null),sn=_(!1),cn=_(!1),ln=_(!1),j=_(null),un=_({x:0,y:0}),M=d(()=>Array.isArray(yn.value)&&yn.value.length>0),N=mt,dn=ft(),P=_(Tn()),F=d(()=>P.value.userOptions),I=d(()=>P.value.style.chart.tooltip),L=d(()=>P.value.style.chart.grid.y.verticalLines),fn=d(()=>P.value.style.chart.grid.x.horizontalLines),R=d(()=>P.value.style.chart.grid.y.axisLabels),z=d(()=>P.value.style.chart.grid.x.timeLabels),B=d(()=>P.value.style.chart.grid),V=d(()=>P.value.style.chart.dataLabels),H=d(()=>P.value.style.chart);_e({config:()=>P.value,dataset:()=>S.dataset,component:`VueUiXyCanvas`,rules:[ve.emptyArray,{test:e=>e.every(e=>e.series.length<300),message:[`👀 Series have < 300 datapoints. Consider:`,``,`▶️ Using VueUiXy instead, if you need more options, or more customization possibilities.`]},{test:e=>e.some(e=>e.series.length>1e4),message:[`👀 The dataset has > 10_000 datapoints. Above this threshold, the dataset is computed through an LTTB algorithm, to preserve the shape of the data without increasing the number of datapoints.`,``,`▶️ If you need this level of detail, you can change config.downsample.threshold and set a higher value. Note that performance can be impacted. JS runtime might crash with > 100_000 datapoints.`]}]});let pn=d(()=>{let e=H.value.title.text||`XY chart`,t=X.value.end-X.value.start;return`${e}. ${Y.value.filter(e=>!E.value.includes(e.absoluteIndex)).length} series. ${t} visible data points.`}),mn=d(()=>{if(j.value===null)return``;let e=j.value+X.value.start;return`${z.value.values.slice(X.value.start,X.value.end)[j.value]?I.value.useDefaultTimeFormat?$.value.slice(X.value.start,X.value.end)[j.value]?.text:Nr.value[j.value]?.text:$.value[e]?.text??`Point ${e+1}`}. ${Y.value.filter(e=>!E.value.includes(e.absoluteIndex)).map(e=>{let t=e.series[j.value],n=t?.value??t??null;return`${e.name}: ${n}`}).join(`. `)}.`}),hn=d(()=>F.value.useCursorPointer),gn=d(()=>P.value.debug);ot(()=>{dn[`chart-background`]&&gn.value&&console.warn(`VueUiXyCanvas does not support the #chart-background slot.`)});let _n=d(()=>se({defaultConfig:{userOptions:{show:!1},table:{show:!1},style:{chart:{backgroundColor:`#99999930`,grid:{x:{axisColor:`#6A6A6A`,timeLabels:{show:!1},axisName:``,horizontalLines:{color:`#6A6A6A`}},y:{axisColor:`#6A6A6A`,axisLabels:{show:!1},axisName:``,verticalLines:{color:`#6A6A6A`}},zeroLine:{color:`#6A6A6A`}},legend:{backgroundColor:`#99999930`},paddingProportions:{left:.05},scale:{max:null,min:null},zoom:{endIndex:null,startIndex:null}}}},userConfig:P.value.skeletonConfig??{}})),{loading:vn,FINAL_DATASET:yn}=he({...dt(S),FINAL_CONFIG:P,prepareConfig:Tn,skeletonDataset:S.config?.skeletonDataset??[{name:``,series:[0,1,2,3,5,8,13,21,34,55,89,134],type:`line`,smooth:!0,color:`#BABABA`},{name:``,series:[0,.5,1,1.5,2.5,4,6.5,10.5,17,27.5,44.5,67],type:`bar`,color:`#AAAAAA`}],skeletonConfig:se({defaultConfig:P.value,userConfig:_n.value})}),{userOptionsVisible:bn,setUserOptionsVisibility:xn,keepUserOptionState:Sn}=We({config:P.value}),{svgRef:U}=Ge({config:H.value.title});function Cn(){xn(!0)}function wn(){xn(!1),N(`selectX`,{dataset:null,index:null,indexLabel:null}),T.value=null}function Tn(){let e=be({userConfig:S.config,defaultConfig:Nt}),t={},n=e.theme;if(n){if(!Pt.value(e))Ft(e),t=e;else{let r=be({userConfig:qe[n]||S.config,defaultConfig:e});t={...be({userConfig:S.config,defaultConfig:r}),customPalette:e.customPalette.length?e.customPalette:ce[n]||o}}}else t=e;return S.config&&pe(S.config,`style.chart.grid.y.timeLabels`)&&(console.warn(`VueUiXyCanvas: you are using the deprecated config.style.chart.grid.y.timeLabels. It is recommended to move this configuration to config.style.chart.grid.x.timeLabels.`),t.style.chart.grid.x.timeLabels=be({defaultConfig:t.style.chart.grid.x.timeLabels,userConfig:S.config.style.chart.grid.y.timeLabels})),t}let En=ne(S.config);b(()=>S.config,(e,t)=>{let n=ne(e),r=n!==En;En=n;let i=Tn();r?(vn.value||(P.value=i),bn.value=!F.value.showOnChartHover,Di(),Zt.value+=1,Qt.value+=1,$t.value+=1,W.value.showTable=P.value.table.show,W.value.showDataLabels=V.value.show,W.value.stacked=H.value.stacked,W.value.showTooltip=I.value.show):(P.value.style.chart.tooltip=i.style.chart.tooltip,W.value.showTooltip=P.value.style.chart.tooltip.show)},{deep:!0}),b(()=>S.dataset,async e=>{Array.isArray(e)&&e.length!==0&&(await nt(),U.value&&!C.value&&(C.value=U.value.getContext(`2d`,{willReadFrequently:!0})),D.value=!0,O.value=!0,await fr(),Sr(),Zt.value+=1,Qt.value+=1,$t.value+=1)},{deep:!0});let Dn=_(H.value.aspectRatio),{isPrinting:On,isImaging:kn,generatePdf:An,generateImage:jn}=Me({elementId:`xy_canvas_${It.value}`,fileName:H.value.title.text||`vue-ui-xy-canvas`,options:F.value.print}),W=_({showTable:P.value.table.show,showDataLabels:V.value.show,stacked:H.value.stacked,showTooltip:I.value.show});function Mn(e){Kt.value=e,Gt.value+=1}let Nn=d(()=>fe(P.value.customPalette)),Pn=d(()=>E.value.length===J.value.length),G=d(()=>J.value?Math.max(...J.value.filter((e,t)=>Pn.value?!0:!E.value.includes(e.absoluteIndex)).map(e=>e.series.length)):0);function Fn(e){A.value=e,Wr()}let In=_(0),Ln=_(0);function Rn(){if(!C.value||!z.value.show)return 0;let e=$.value||[],t=X.value.start??0,n=X.value.end??0;if(!Math.max(0,n-t))return 0;let r=Math.round(w.value/40*z.value.fontSizeRatio),i=`${z.value.bold?`bold `:``}${r}px ${P.value.style.fontFamily}`;C.value.save(),C.value.font=i;let a=0;for(let r=t;r<n;r+=1){let t=e[r]?.text??`${r+1}`,n=C.value.measureText(String(t));n.width>a&&(a=n.width)}C.value.restore();let o=(z.value.rotation||0)*Math.PI/180,s=r,ee=Math.abs(Math.sin(o))*a+Math.abs(Math.cos(o))*s,c=z.value.offsetY||1,l=w.value/c;return Math.max(0,l+ee+4)}function zn(){In.value=Rn()}function Bn(){Ln.value&&cancelAnimationFrame(Ln.value),Ln.value=requestAnimationFrame(()=>{requestAnimationFrame(()=>{zn()})})}at(()=>{Ln.value&&cancelAnimationFrame(Ln.value)});let K=d(()=>{let e=w.value-w.value*(H.value.paddingProportions.left+H.value.paddingProportions.right),t=zt.value*H.value.paddingProportions.top,n=zt.value*H.value.paddingProportions.bottom,r=In.value,i=zt.value-n-r,a=zt.value-(t+n)-r;return{canvasWidth:w.value,canvasHeight:zt.value,left:w.value*H.value.paddingProportions.left,top:t,right:w.value-w.value*H.value.paddingProportions.right,bottom:i,width:e,height:a,slot:e/(X.value.end-X.value.start)}});function Vn(e,t){return e/t}function Hn({hasAutoScale:e,series:t,min:n,max:r,scale:i,yOffset:a,individualHeight:o,stackIndex:s=null}){return t.map((t,n)=>{let r=i.min<0?Math.abs(i.min):0,ee=Vn(t+r,r+i.max),c,l;e&&(c=i.min,l=Vn(t-c,i.max-c));let te=0;return te=s===null?K.value.bottom-K.value.height*(e?l:ee):K.value.bottom-a-o*(e?l:ee),{x:K.value.left+K.value.slot*n+K.value.slot/2,y:te,value:t}})}let q=d(()=>{let e=H.value.scale.min===null?Math.min(...J.value.filter((e,t)=>!E.value.includes(e.absoluteIndex)).flatMap(e=>e.series.slice(X.value.start,X.value.end))):H.value.scale.min,t=H.value.scale.max===null?Math.max(...J.value.filter((e,t)=>!E.value.includes(e.absoluteIndex)).flatMap(e=>e.series.slice(X.value.start,X.value.end))):H.value.scale.max,n=re(e<0?e:0,t===e?e+1<0?0:e+1:t<0?0:t,H.value.scale.ticks),r=n.min<0?Math.abs(n.min):0,i=K.value.bottom-K.value.height*(r/(n.max+r));return{absoluteMin:r,max:t,min:e,scale:n,yLabels:n.ticks.map(e=>({y:K.value.bottom-K.value.height*((e+r)/(n.max+r)),x:K.value.left-8,value:e})),zero:i}}),Un=d(()=>Y.value.map(e=>`
|
|
2
2
|
<div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
|
|
3
3
|
<svg viewBox="0 0 10 10" height="12" width="12">
|
|
4
4
|
<circle cx="5" cy="5" r="5" fill="${e.color}"/>
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./lib-rPeBMZrn.js";import{t}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as n}from"./BaseIcon-Cm-IJ179.js";import{t as r}from"./vClickOutside-BxNzkY17.js";import{Fragment as i,Teleport as a,computed as o,createBlock as s,createCommentVNode as c,createElementBlock as l,createElementVNode as u,createVNode as d,guardReactiveProps as f,nextTick as p,normalizeProps as m,normalizeStyle as h,onBeforeUnmount as g,onMounted as _,openBlock as v,ref as y,renderList as b,renderSlot as x,unref as ee,useCssVars as te,watch as S,watchEffect as C,withDirectives as w,withKeys as T,withModifiers as E}from"vue";var D=[`aria-expanded`,`aria-label`],O=[`aria-label`,`aria-pressed`,`onClick`],k={style:{position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%, -46%)`}},A=[`value`],j=[`onClick`],ne={style:{position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%, -46%)`}},re=[`value`],M=/*#__PURE__*/ t({__name:`ColorPicker`,props:{value:{type:String,default:`#ffffff`},size:{type:String,default:`50px`},backgroundColor:{type:String,default:`#FFFFFF`},buttonBorderColor:{type:String,default:`#FFFFFF`},teleported:{type:Boolean,default:!1},isCursorPointer:{type:Boolean,default:!1},palette:{type:Array,default:()=>[`#000000`,`#FFFFFF`,`#FF5733`,`#33FF57`,`#3357FF`,`#FFC300`,`#800080`,`#FF1493`,`#00CED1`]}},emits:[`update:value`],setup(t,{emit:M}){te(e=>({v22adcab1:t.buttonBorderColor}));let N=t,P=M,F=y(null),I=y(null),L=y(null),R=y(!1),z=y(!1),B=y({top:0,left:0}),V=o(()=>({backgroundColor:N.value,width:`100%`,height:`100%`,cursor:N.isCursorPointer?`pointer`:`default`})),H=o(()=>e(N.value));function U(e){P(`update:value`,e),R.value=!1}function W(e){P(`update:value`,e.target.value)}function G(e){e?.stopPropagation?.(),z.value=!0,L.value?.click()}function K(){R.value=!1}function q(){!z.value&&R.value&&K()}async function J(){R.value=!R.value,R.value&&N.teleported&&(await p(),Y())}function Y(){if(!I.value)return;let e=I.value.getBoundingClientRect();B.value={top:e.top+36,left:e.right-48}}function X(){R.value&&N.teleported&&Y()}function Z(){setTimeout(()=>z.value=!1,0)}C(e=>{let t=L.value;if(!t)return;let n=()=>Z(),r=()=>Z(),i=()=>{};t.addEventListener(`blur`,n),t.addEventListener(`change`,r),t.addEventListener(`input`,i),e(()=>{t.removeEventListener(`blur`,n),t.removeEventListener(`change`,r),t.removeEventListener(`input`,i)})});function Q(){Z()}function $(){document.visibilityState===`visible`&&Z()}return _(()=>{window.addEventListener(`scroll`,X,{passive:!0}),window.addEventListener(`resize`,X,{passive:!0}),window.addEventListener(`focus`,Q),document.addEventListener(`visibilitychange`,$)}),g(()=>{window.removeEventListener(`scroll`,X),window.removeEventListener(`resize`,X),window.removeEventListener(`focus`,Q),document.removeEventListener(`visibilitychange`,$)}),S(()=>N.value,e=>{L.value&&(L.value.value=e)}),(e,o)=>w((v(),l(`div`,{ref_key:`wrapperRef`,ref:F,onKeydown:T(q,[`esc`]),style:{height:`100%`,width:`100%`,position:`relative`},"aria-expanded":R.value?`true`:`false`,"aria-haspopup":`dialog`,"aria-label":`Choose color. Current color ${t.value}`},[u(`button`,{ref_key:`buttonRef`,ref:I,class:`icon`,onClick:J,style:h(V.value),type:`button`},[x(e.$slots,`annotator-action-color`,m(f({color:H.value})),()=>[d(n,{name:`palette`,stroke:H.value,size:22},null,8,[`stroke`])],!0)],4),R.value&&!t.teleported?(v(),l(`div`,{key:0,class:`vue-ui-color-picker`,role:`dialog`,"aria-label":`Color picker`,style:h({backgroundColor:t.backgroundColor,position:`absolute`,left:`calc(100% + 30px)`,top:`50%`,transform:`translateY(-18%)`}),onMousedown:o[2]||=E(()=>{},[`stop`]),onClick:o[3]||=E(()=>{},[`stop`]),onTouchstart:o[4]||=E(()=>{},[`stop`]),onKeydown:T(q,[`esc`])},[(v(!0),l(i,null,b(t.palette,e=>(v(),l(`button`,{key:e,"aria-label":`Select color ${e}`,"aria-pressed":t.value===e?`true`:`false`,class:`vue-ui-color-picker-option`,type:`button`,style:h({backgroundColor:e,outline:`1px solid ${t.buttonBorderColor}`,cursor:t.isCursorPointer?`pointer`:`default`}),onClick:()=>U(e)},null,12,O))),128)),u(`button`,{class:`vue-ui-color-picker-option`,type:`button`,style:h({backgroundColor:t.value,outline:`1px solid ${t.buttonBorderColor}`,cursor:t.isCursorPointer?`pointer`:`default`}),"aria-label":`Open native color picker`,onClick:E(G,[`stop`]),onMousedown:o[0]||=E(()=>{},[`stop`]),onTouchstart:o[1]||=E(()=>{},[`stop`])},[u(`div`,k,[d(n,{name:`colorPicker`,stroke:H.value,size:22},null,8,[`stroke`])]),u(`input`,{ref_key:`colorInput`,ref:L,type:`color`,value:t.value,class:`hidden-input`,onInput:W},null,40,A)],36)],36)):c(``,!0),R.value&&t.teleported?(v(),s(a,{key:1,to:`body`},[u(`div`,{tabindex:`0`,class:`vue-ui-color-picker`,style:h({backgroundColor:t.backgroundColor,position:`fixed`,top:B.value.top+`px`,left:B.value.left+`px`,zIndex:2147483647}),onMousedown:o[7]||=E(()=>{},[`stop`]),onClick:o[8]||=E(()=>{},[`stop`]),onTouchstart:o[9]||=E(()=>{},[`stop`])},[(v(!0),l(i,null,b(t.palette,e=>(v(),l(`button`,{key:e,class:`vue-ui-color-picker-option`,type:`button`,style:h({backgroundColor:e,outline:`1px solid ${t.buttonBorderColor}`,cursor:t.isCursorPointer?`pointer`:`default`}),onClick:()=>U(e)},null,12,j))),128)),u(`button`,{class:`vue-ui-color-picker-option`,type:`button`,style:h({backgroundColor:t.value,outline:`1px solid ${t.buttonBorderColor}`,cursor:t.isCursorPointer?`cursor`:`default`}),onClick:E(G,[`stop`]),onMousedown:o[5]||=E(()=>{},[`stop`]),onTouchstart:o[6]||=E(()=>{},[`stop`])},[u(`div`,ne,[d(n,{name:`colorPicker`,stroke:H.value,size:22},null,8,[`stroke`])]),u(`input`,{ref_key:`colorInput`,ref:L,type:`color`,value:t.value,class:`hidden-input`,onInput:W},null,40,re)],36)],36)])):c(``,!0)],40,D)),[[ee(r),q]])}},[[`__scopeId`,`data-v-f18faf44`]]);export{M as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{$ as t,Ft as n,X as r,t as i}from"./lib-rPeBMZrn.js";import{t as a}from"./BaseIcon-Cm-IJ179.js";import{t as o}from"./ColorPicker-Dmus34hN.js";import{computed as s,createCommentVNode as c,createElementBlock as l,createElementVNode as u,createVNode as d,guardReactiveProps as f,nextTick as p,normalizeClass as m,normalizeProps as h,normalizeStyle as g,onBeforeUnmount as ee,onMounted as te,openBlock as ne,ref as _,renderSlot as v,toDisplayString as re,unref as ie,vModelText as ae,watch as y,withCtx as oe,withDirectives as se}from"vue";var ce=/* @__PURE__ */ e({default:()=>b}),le={"aria-hidden":`true`,viewBox:`0 0 6 12`,style:{width:`100%`}},ue=[`fill`],de=[`fill`],fe=[`fill`],pe=[`disabled`],me=750,he=8,ge=2,b={__name:`PenAndPaper`,props:{svgRef:{type:[Object,null,void 0],required:!0},color:{type:String,default:`#2D353C`},backgroundColor:{type:String,default:`#FFFFFF`},active:{type:Boolean,default:!1},scale:{type:Number,default:1},isCursorPointer:{type:Boolean,default:!1},palette:{type:Array,default:()=>[`#000000`,`#FFFFFF`,`#FF5733`,`#33FF57`,`#3357FF`,`#FFC300`,`#800080`,`#FF1493`,`#00CED1`]}},emits:[`close`],setup(e,{emit:ce}){let b=e,_e=ce,x=_([]),S=_([]),C=_(b.color),w=_(2),T=_(!1),ve=_(``),E=_(null),D=_(null),O=_(null),ye=_(null),k=_(null),be=_(null),A=_(!1),j=_(null),xe=_(``),M=_(``),N=_(!1),Se=_(!1),P=_(null),Ce=_(null),we=_(!1),F=_(``),Te=/* @__PURE__ */ new Map,Ee=_(`arrow-def-${r()}`),I=_(!1),L=_(null),De=_({x:0,y:0}),R=_([``]),z=_({row:0,col:0}),B=_(16),Oe=_(!1),ke=_(``),Ae=_(!1),je=[`arrow`,`text`,`line`,`draw`],V=_(0),H=s(()=>je[V.value]),Me={arrow:`plotArrow`,text:`text`,line:`plotLine`,draw:`annotator`},Ne=_(`url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAABg2lDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw0AcxV9TpSIVh2YQcchQnSyIijhKFYtgobQVWnUwufQLmjQkKS6OgmvBwY/FqoOLs64OroIg+AHi6OSk6CIl/i8ptIjx4Lgf7+497t4BQrPKNKtnAtB020wn4lIuvyqFXhGGiAhCiMnMMpKZxSx8x9c9Any9i/Es/3N/jgG1YDEgIBHPMcO0iTeIZzZtg/M+scjKskp8Tjxu0gWJH7muePzGueSywDNFM5ueJxaJpVIXK13MyqZGPE0cVTWd8oWcxyrnLc5atc7a9+QvDBf0lQzXaY4ggSUkkYIEBXVUUIWNGK06KRbStB/38Q+7/hS5FHJVwMixgBo0yK4f/A9+d2sVpya9pHAc6H1xnI9RILQLtBqO833sOK0TIPgMXOkdf60JzH6S3uho0SNgcBu4uO5oyh5wuQMMPRmyKbtSkKZQLALvZ/RNeSByC/Sveb2193H6AGSpq+Ub4OAQGCtR9rrPu/u6e/v3TLu/H5C7crM1WjgWAAAABmJLR0QAqwB5AHWF+8OUAAAACXBIWXMAAC4jAAAuIwF4pT92AAAAB3RJTUUH5gwUExIUagzGcQAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAABfSURBVBjTldAxDoNQDIPhL0+q1L33P1AvAhN7xfK6WAgoLfSfrNiykpQtE+7RLzx2vgF9D3o8lWDmn1QVVMP0LZQGmNtqp1/cmou0XHdG/+sYeGZwFBqPCub8rkcvvAGvsi1VYarR8wAAAABJRU5ErkJggg==') 5 5, auto`);function Pe(e){let t=e?.target;if(!(t instanceof Element))return null;let n=t.closest(`.vue-data-ui-doodle`);return n&&E.value?.contains(n)?n:null}function Fe(e){let t=e?.target;if(!(t instanceof Element))return null;let n=t.closest(`.vue-data-ui-selection-handle`);return n&&E.value?.contains(n)?n:null}function Ie(e){let t=e?.target;if(!(t instanceof Element))return null;let n=t.closest(`.vue-data-ui-selection-delete`);return n&&E.value?.contains(n)?n:null}function Le(e){if(!e)return``;let t=e.getAttribute(`data-doodle-id`);return t||(t=r(),e.setAttribute(`data-doodle-id`,t)),t}function U(){return E.value?Array.from(E.value.children).filter(e=>e.classList?.contains(`vue-data-ui-doodle`)).map(e=>e.outerHTML).join(``):``}function Re(e){if(!E.value)return;K();let t=E.value.querySelector(`.vue-data-ui-svg-caret`);if(t&&t.remove(),Array.from(E.value.children).forEach(e=>{e.classList?.contains(`vue-data-ui-doodle`)&&e.remove()}),e){let t=document.createElementNS(i,`g`);t.innerHTML=e,Array.from(t.children).forEach(e=>E.value.appendChild(e))}}function W(e,t=null){if(e===U())return;let n=Date.now(),r=x.value[x.value.length-1];t&&r?.mergeKey===t&&n-r.timestamp<=me?r.timestamp=n:x.value.push({state:e,mergeKey:t,timestamp:n}),S.value=[]}function ze(e){let t=e.touches?.[0]||e.changedTouches?.[0];return{x:t?t.clientX:e.clientX,y:t?t.clientY:e.clientY}}function Be(e,t){let n=b.svgRef;if(!n||!e)return null;let{x:r,y:i}=ze(t),a=n.createSVGPoint();a.x=r,a.y=i;let o=e.getScreenCTM()?.inverse();return o?a.matrixTransform(o):null}function Ve(e,t,n,r,i,a){let o=i-n,s=a-r,c=o*o+s*s;if(!c)return Math.hypot(e-n,t-r);let l=Math.max(0,Math.min(1,((e-n)*o+(t-r)*s)/c)),u=n+l*o,d=r+l*s;return Math.hypot(e-u,t-d)}function He(e,t){let n=Be(e,t);if(!n)return!1;let r=e.tagName.toLowerCase(),i=he*b.scale;if(r===`line`){let t=Number(e.getAttribute(`x1`)),r=Number(e.getAttribute(`y1`)),a=Number(e.getAttribute(`x2`)),o=Number(e.getAttribute(`y2`)),s=Number(e.getAttribute(`stroke-width`))||0;return Ve(n.x,n.y,t,r,a,o)<=Math.max(i,s/2)}if(r===`circle`){let t=Number(e.getAttribute(`cx`)),r=Number(e.getAttribute(`cy`)),a=Number(e.getAttribute(`r`))||0;return Math.hypot(n.x-t,n.y-r)<=a+i}if(r===`text`)try{let t=e.getBBox();return n.x>=t.x-i&&n.x<=t.x+t.width+i&&n.y>=t.y-i&&n.y<=t.y+t.height+i}catch{return!1}if(r===`path`)try{let t=e.getBBox();if(n.x<t.x-i||n.x>t.x+t.width+i||n.y<t.y-i||n.y>t.y+t.height+i)return!1;if(typeof e.isPointInStroke==`function`){let t=e.getAttribute(`stroke-width`),r=Math.max(Number(t)||0,i*2);e.setAttribute(`stroke-width`,r);let a=e.isPointInStroke(n);return t===null?e.removeAttribute(`stroke-width`):e.setAttribute(`stroke-width`,t),a}let r=e.getTotalLength(),a=Math.max(2*b.scale,2);for(let t=0;t<=r;t+=a){let r=e.getPointAtLength(t);if(Math.hypot(n.x-r.x,n.y-r.y)<=i)return!0}}catch{return!1}return!1}function Ue(e){return Pe(e)||E.value&&Array.from(E.value.querySelectorAll(`.vue-data-ui-doodle`)).reverse().find(t=>He(t,e))||null}function We(){be.value?.parentNode&&be.value.parentNode.removeChild(be.value),be.value=null}function G(){if(We(),!I.value&&b.active&&E.value&&k.value&&E.value.contains(k.value))try{let e=k.value,t=e.getBBox(),n=4*b.scale,r=document.createElementNS(i,`g`);r.setAttribute(`class`,`vue-data-ui-selection-overlay`);let a=document.createElementNS(i,`rect`);if(a.setAttribute(`class`,`vue-data-ui-selection-box`),a.setAttribute(`x`,t.x-n),a.setAttribute(`y`,t.y-n),a.setAttribute(`width`,Math.max(t.width+n*2,n*2)),a.setAttribute(`height`,Math.max(t.height+n*2,n*2)),a.setAttribute(`fill`,`none`),a.setAttribute(`stroke`,b.color),a.setAttribute(`stroke-width`,Math.max(1,b.scale)),a.setAttribute(`stroke-dasharray`,`${4*b.scale} ${3*b.scale}`),a.setAttribute(`pointer-events`,`none`),r.appendChild(a),e.tagName.toLowerCase()===`line`){let t=Math.max(4,5*b.scale),n=Math.max(1,1.5*b.scale);[{endpoint:`start`,x:Number(e.getAttribute(`x1`)),y:Number(e.getAttribute(`y1`))},{endpoint:`end`,x:Number(e.getAttribute(`x2`)),y:Number(e.getAttribute(`y2`))}].forEach(({endpoint:e,x:a,y:o})=>{let s=document.createElementNS(i,`circle`);s.setAttribute(`class`,`vue-data-ui-selection-handle`),s.setAttribute(`data-line-endpoint`,e),s.setAttribute(`cx`,a),s.setAttribute(`cy`,o),s.setAttribute(`r`,t),s.setAttribute(`fill`,b.backgroundColor),s.setAttribute(`stroke`,b.color),s.setAttribute(`stroke-width`,n),s.setAttribute(`pointer-events`,`all`),r.appendChild(s)})}let o=Math.max(20,24*b.scale),s=Math.max(1,b.scale),c=t.x+t.width+n+4*b.scale,l=t.y-n-o-4*b.scale,u=document.createElementNS(i,`g`);u.setAttribute(`class`,`vue-data-ui-selection-delete`),u.setAttribute(`role`,`button`),u.setAttribute(`tabindex`,`0`),u.setAttribute(`aria-label`,`Delete selected drawing`),u.setAttribute(`pointer-events`,`all`);let d=document.createElementNS(i,`rect`);d.setAttribute(`x`,c),d.setAttribute(`y`,l),d.setAttribute(`width`,o),d.setAttribute(`height`,o),d.setAttribute(`rx`,4*b.scale),d.setAttribute(`fill`,b.backgroundColor),d.setAttribute(`stroke`,J.value),d.setAttribute(`stroke-width`,s),d.setAttribute(`vector-effect`,`non-scaling-stroke`);let f=o/24,p=document.createElementNS(i,`path`);p.setAttribute(`d`,`M 8 8 L 16 16 M 16 8 L 8 16`),p.setAttribute(`transform`,`translate(${c} ${l}) scale(${f})`),p.setAttribute(`fill`,`none`),p.setAttribute(`stroke`,b.color),p.setAttribute(`stroke-width`,Math.max(1.25,1.5*b.scale)),p.setAttribute(`stroke-linecap`,`round`),p.setAttribute(`stroke-linejoin`,`round`),p.setAttribute(`vector-effect`,`non-scaling-stroke`),p.setAttribute(`pointer-events`,`none`),u.appendChild(d),u.appendChild(p),u.addEventListener(`keydown`,e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),Ge(e))}),r.appendChild(u);let m=e.getAttribute(`transform`);m&&r.setAttribute(`transform`,m),E.value.appendChild(r),be.value=r}catch{We()}}function K(){k.value=null,A.value=!1,j.value=null,xe.value=``,M.value=``,N.value=!1,Se.value=!1,P.value=null,Ce.value=null,We(),Z()}function Ge(e=null){if(!b.active||!k.value||!E.value||!E.value.contains(k.value))return;e?.cancelable&&e.preventDefault(),e?.stopPropagation?.(),e?.stopImmediatePropagation?.();let t=U();k.value.remove(),W(t),K()}function Ke(e){return e?e.tagName.toLowerCase()===`text`||e.tagName.toLowerCase()===`circle`?e.getAttribute(`fill`):e.getAttribute(`stroke`):null}function qe(e){if(e){we.value=!0;try{let t=e.tagName.toLowerCase(),n=Ke(e);if(n&&(C.value=n),t===`text`){V.value=je.indexOf(`text`);let t=Number(e.getAttribute(`font-size`));Number.isFinite(t)&&b.scale&&(B.value=t/b.scale);return}if(t===`line`?V.value=e.hasAttribute(`marker-end`)?je.indexOf(`arrow`):je.indexOf(`line`):V.value=je.indexOf(`draw`),t===`circle`){let t=Number(e.getAttribute(`r`));Number.isFinite(t)&&b.scale&&(w.value=t*2/b.scale)}else{let t=Number(e.getAttribute(`stroke-width`));Number.isFinite(t)&&b.scale&&(w.value=t/b.scale)}}finally{p(()=>{we.value=!1})}}}function Je(e){b.active&&e&&E.value?.contains(e)&&(Le(e),k.value=e,qe(e),p(G))}function Ye(e){if(!b.active||!E.value||I.value)return;if(Ie(e)){Ge(e);return}let t=Fe(e);if(t&&k.value&&k.value.tagName.toLowerCase()===`line`){e.cancelable&&e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation?.();let n=t.getAttribute(`data-line-endpoint`);if(![`start`,`end`].includes(n))return;P.value=n,Ce.value=Be(k.value,e),A.value=!1,N.value=!1,Se.value=!1,M.value=U(),Z(e);return}let n=Ue(e);if(!n){K();return}e.cancelable&&e.preventDefault(),Se.value=k.value===n,Je(n);let{x:r,y:i}=Y(e);A.value=!0,N.value=!1,j.value={x:r,y:i},xe.value=n.getAttribute(`transform`)||``,M.value=U(),Z(e)}function Xe(e){if(!b.active||!k.value)return;if(Z(e),P.value){let t=Be(k.value,e);if(!t)return;let n=Ce.value;if(!N.value&&n&&Math.hypot(t.x-n.x,t.y-n.y)<ge*b.scale)return;e.cancelable&&e.preventDefault(),N.value=!0,P.value===`start`?(k.value.setAttribute(`x1`,t.x),k.value.setAttribute(`y1`,t.y)):(k.value.setAttribute(`x2`,t.x),k.value.setAttribute(`y2`,t.y)),G();return}if(!A.value||!j.value)return;let{x:t,y:n}=Y(e),r=t-j.value.x,i=n-j.value.y,a=Math.hypot(r,i);if(!N.value&&a<ge*b.scale)return;e.cancelable&&e.preventDefault(),N.value=!0;let o=xe.value.trim();k.value.setAttribute(`transform`,`${o?`${o} `:``}translate(${r} ${i})`),G()}function q(e){let t=k.value,n=!P.value&&t&&t.tagName.toLowerCase()===`text`&&Se.value&&!N.value&&!I.value;N.value&&M.value&&W(M.value),A.value=!1,j.value=null,M.value=``,N.value=!1,Se.value=!1,P.value=null,Ce.value=null,xe.value=t?.getAttribute(`transform`)||``,t&&E.value?.contains(t)&&G(),n&&t&&E.value?.contains(t)&&nt(t,e),Z(e)}function Ze(e){if(!b.active||!k.value||we.value)return;let t=k.value,n=t.tagName.toLowerCase();if(Ke(t)===e)return;let r=U();if(n===`text`||n===`circle`)t.setAttribute(`fill`,e);else if(t.setAttribute(`stroke`,e),n===`line`&&t.hasAttribute(`marker-end`)){let n=_t(e);n&&t.setAttribute(`marker-end`,`url(#${n})`)}I.value&&t===L.value||W(r,`color:${Le(t)}`),G(),I.value&&t===L.value&&ct()}function Qe(e){if(!b.active||!k.value||we.value)return;let t=k.value,n=t.tagName.toLowerCase();if(n===`text`)return;let r=Number(e)*b.scale;if((n===`circle`?Number(t.getAttribute(`r`))*2:Number(t.getAttribute(`stroke-width`)))===r)return;let i=U();n===`circle`?t.setAttribute(`r`,r/2):t.setAttribute(`stroke-width`,r),W(i,`size:${Le(t)}`),G()}function $e(e){if(!b.active||!k.value||we.value)return;let t=k.value;if(t.tagName.toLowerCase()!==`text`)return;let n=Number(e)*b.scale;if(Number(t.getAttribute(`font-size`))===n)return;let r=U();t.setAttribute(`font-size`,n),Array.from(t.children).forEach((e,t)=>{e.setAttribute(`dy`,t===0?`0`:`${n*1.2}`)}),I.value&&t===L.value||W(r,`font-size:${Le(t)}`),G(),I.value&&t===L.value&&ct()}y(C,Ze),y(w,Qe),y(B,$e);function et(){V.value+1>=je.length?V.value=0:V.value+=1}function tt(e){if(!E.value||!b.active||H.value!==`text`||I.value||Fe(e)||Ue(e))return;K();let t=U(),{x:n,y:a}=Y(e);De.value={x:n,y:a},R.value=[``],z.value={row:0,col:0},Oe.value=!1,ke.value=t,Ae.value=!1;let o=document.createElementNS(i,`text`);o.setAttribute(`x`,n),o.setAttribute(`y`,a),o.setAttribute(`fill`,C.value),o.setAttribute(`font-size`,B.value*b.scale),o.setAttribute(`font-family`,`sans-serif`),o.setAttribute(`class`,`vue-data-ui-doodle`),o.setAttribute(`data-doodle-id`,r()),o.setAttribute(`dominant-baseline`,`hanging`),o.setAttribute(`pointer-events`,`all`);let s=document.createElementNS(i,`tspan`);s.setAttribute(`x`,n),s.setAttribute(`dy`,`0`),s.setAttribute(`dominant-baseline`,`hanging`),s.textContent=``,o.appendChild(s),o.style.pointerEvents=`none`,o.style.userSelect=`none`,E.value.appendChild(o),k.value=o,L.value=o,I.value=!0,We(),window.addEventListener(`keydown`,rt),window.addEventListener(`mousedown`,lt,!0),it(),ct()}function nt(e){if(!b.active||!E.value||I.value||!e||e.tagName.toLowerCase()!==`text`||!E.value.contains(e))return;let t=U();k.value=e,qe(e);let n=Number(e.getAttribute(`x`))||0,r=Number(e.getAttribute(`y`))||0,i=Array.from(e.children).map(e=>{let t=e.textContent||``;return t===``?``:t.split(``).join(``)}),a=i.length?i:[e.textContent||``],o=Math.max(0,a.length-1);De.value={x:n,y:r},R.value=a,z.value={row:o,col:a[o]?.length||0},ke.value=t,Ae.value=!0,Oe.value=!0,L.value=e,I.value=!0,e.style.pointerEvents=`none`,We(),window.addEventListener(`keydown`,rt),window.addEventListener(`mousedown`,lt,!0),it(),ct()}function rt(e){if(!I.value)return;let{row:t,col:n}=z.value,r=R.value.slice(),i=!1;if(e.key===`Enter`){let a=r[t],o=a.slice(0,n),s=a.slice(n);r.splice(t,1,o,s),t+=1,n=0,i=!0,e.preventDefault()}else if(e.key===`Backspace`){if(n>0)r[t]=r[t].slice(0,n-1)+r[t].slice(n),--n,i=!0;else if(t>0){let e=r[t-1].length;r[t-1]+=r[t],r.splice(t,1),--t,n=e,i=!0}e.preventDefault()}else if(e.key===`Delete`)n<r[t].length?(r[t]=r[t].slice(0,n)+r[t].slice(n+1),i=!0):t<r.length-1&&(r[t]+=r[t+1],r.splice(t+1,1),i=!0),e.preventDefault();else if(e.key===`ArrowLeft`)n>0?--n:t>0&&(--t,n=r[t].length),i=!0,e.preventDefault();else if(e.key===`ArrowRight`)n<r[t].length?n+=1:t<r.length-1&&(t+=1,n=0),i=!0,e.preventDefault();else if(e.key===`ArrowUp`)t>0&&(--t,n=Math.min(n,r[t].length),i=!0),e.preventDefault();else if(e.key===`ArrowDown`)t<r.length-1&&(t+=1,n=Math.min(n,r[t].length),i=!0),e.preventDefault();else if(e.key.length===1&&!e.ctrlKey&&!e.metaKey&&!e.altKey)r[t]=r[t].slice(0,n)+e.key+r[t].slice(n),n+=1,i=!0,e.preventDefault();else if(e.key===`Escape`){ut(!1,!0);return}else e.key===`Tab`&&e.preventDefault();i&&(R.value=r,z.value={row:t,col:n},it(),ct())}function it(){let e=L.value;if(!e)return;let{x:t}=De.value;for(;e.firstChild;)e.removeChild(e.firstChild);R.value.forEach((n,r)=>{let a=document.createElementNS(i,`tspan`);a.setAttribute(`x`,t),a.setAttribute(`dominant-baseline`,`hanging`),a.setAttribute(`dy`,r===0?`0`:`${B.value*1.2*b.scale}`),a.textContent=n.length?n:``,e.appendChild(a)})}let at=_(null);function ot(){at.value!==null&&(clearInterval(at.value),at.value=null)}function st(e){ot();let t=!0;e.style.opacity=`1`,at.value=setInterval(()=>{!E.value||!e||!E.value.contains(e)?ot():(t=!t,e.style.opacity=t?`1`:`0`)},500)}function ct(){let e=E.value?.querySelector(`.vue-data-ui-svg-caret`);e&&E.value&&E.value.removeChild(e);let t=L.value;if(!t||!E.value)return;let{x:n,y:r}=De.value,{row:a,col:o}=z.value,s=B.value*b.scale,c=t.childNodes[a];if(!c)return;let l=c.textContent.slice(0,o);l.endsWith(` `)&&(l+=`\xA0`);let u=document.createElementNS(i,`text`);u.setAttribute(`x`,n),u.setAttribute(`y`,r),u.setAttribute(`font-size`,s),u.setAttribute(`font-family`,`sans-serif`),u.textContent=l||``,E.value.appendChild(u);let d=u.getBBox();E.value.removeChild(u);let f=r+a*s*1.2,p=n+d.width,m=document.createElementNS(i,`rect`);m.setAttribute(`x`,p),m.setAttribute(`y`,f),m.setAttribute(`rx`,1),m.setAttribute(`width`,2),m.setAttribute(`height`,s),m.setAttribute(`fill`,C.value),m.setAttribute(`class`,`vue-data-ui-svg-caret`),m.setAttribute(`pointer-events`,`none`);let h=t.getAttribute(`transform`);h&&m.setAttribute(`transform`,h),E.value.appendChild(m),st(m)}function lt(e){L.value&&(L.value.contains(e.target)||ut(!1))}function ut(e=!1,t=!1){window.removeEventListener(`keydown`,rt),window.removeEventListener(`mousedown`,lt,!0),ot();let n=E.value?.querySelector(`.vue-data-ui-svg-caret`);n&&n.remove();let r=L.value,i=ke.value,a=R.value.every(e=>!e.length);t?(I.value=!1,L.value=null,R.value=[``],z.value={row:0,col:0},Oe.value=!1,ke.value=``,Ae.value=!1,Re(i)):(r&&E.value?.contains(r)&&(e||a?r.remove():r.style.pointerEvents=`all`),I.value=!1,L.value=null,R.value=[``],z.value={row:0,col:0},Oe.value=!1,ke.value=``,Ae.value=!1,W(i),r&&E.value?.contains(r)?Je(r):K())}let J=s(()=>n(b.color,.6));function dt(){if(!E.value)return;let e=E.value.querySelector(`.vue-data-ui-mask`);if(e&&E.value.removeChild(e),b.active){let e=document.createElementNS(`http://www.w3.org/2000/svg`,`rect`);e.setAttribute(`class`,`vue-data-ui-mask`),e.setAttribute(`width`,`100%`),e.setAttribute(`height`,`100%`),e.setAttribute(`fill`,`transparent`),e.setAttribute(`pointer-events`,`all`),E.value.insertBefore(e,E.value.firstChild)}}function Y(e){let t=b.svgRef;if(!t)return{x:0,y:0};let n=t.createSVGPoint(),r=e.touches?.length||e.changedTouches?.length?e.touches?.[0]||e.changedTouches?.[0]:null,i=r?r.clientX:e.clientX,a=r?r.clientY:e.clientY;n.x=i,n.y=a;let o=t.getScreenCTM()?.inverse();return o?n.matrixTransform(o):{x:0,y:0}}function ft(e){let t=e.trim().split(/\s+/);if(t.length<4)return e;let n=t.slice(1).map(Number);if(n.length%2!=0)return e;let r=pt(n),i=[`M ${r[0]} ${r[1]}`];for(let e=2;e<r.length-2;e+=2){let t=r[e-2],n=r[e-1],a=r[e],o=r[e+1],s=(t+a)/2,c=(n+o)/2;i.push(`Q ${t} ${n} ${s} ${c}`)}let a=r[r.length-2],o=r[r.length-1];return i.push(`L ${a} ${o}`),i.join(` `)}function pt(e,t=1){let n=[...e];for(let r=2;r<e.length-2;r+=2){let i=e[r],a=e[r+1],o=e[r-2],s=e[r-1],c=e[r+2],l=e[r+3];n[r]=i+t*((o+c)/2-i),n[r+1]=a+t*((s+l)/2-a)}return n}function mt(e){let t=e.trim().split(/\s+/),n=``,r=``,i=null,a=null;for(let e=0;e<t.length;e+=1){let o=t[e];if(isNaN(o)){if(r=o,r===`M`||r===`L`)i=parseFloat(t[++e]),a=parseFloat(t[++e]),n+=`${r}${i} ${a}`;else if(r===`Q`){let r=parseFloat(t[++e]),o=parseFloat(t[++e]),s=parseFloat(t[++e]),c=parseFloat(t[++e]);n+=r===i&&o===a?`t${s-i} ${c-a}`:`q${r-i} ${o-a} ${s-i} ${c-a}`,i=s,a=c}}else{let s=parseFloat(o),c=parseFloat(t[++e]);if(r===`L`){let e=s-i,t=c-a;n+=e===0?`v${t}`:t===0?`h${e}`:`l${e} ${t}`,i=s,a=c}else if(r===`Q`){let r=s,o=c,l=parseFloat(t[++e]),u=parseFloat(t[++e]);n+=r===i&&o===a?`t${l-i} ${u-a}`:`q${r-i} ${o-a} ${l-i} ${u-a}`,i=l,a=u}}}return n}function ht(e){if(H.value!==`draw`||!b.active||!E.value||Fe(e)||Ue(e))return;e.cancelable&&e.preventDefault(),K(),F.value=U(),T.value=!0;let{x:t,y:n}=Y(e);ye.value={x:t,y:n},ve.value=`M ${t} ${n}`,D.value=document.createElementNS(i,`path`),D.value.setAttribute(`stroke`,C.value),D.value.setAttribute(`stroke-width`,w.value*b.scale),D.value.setAttribute(`fill`,`none`),D.value.setAttribute(`stroke-linecap`,`round`),D.value.setAttribute(`stroke-linejoin`,`round`),D.value.setAttribute(`class`,`vue-data-ui-doodle`),D.value.setAttribute(`data-doodle-id`,r()),D.value.setAttribute(`pointer-events`,`stroke`),E.value.appendChild(D.value)}function gt(e){if(e.cancelable&&e.preventDefault(),!T.value||!E.value||!D.value)return;let{x:t,y:n}=Y(e);ve.value+=` ${t} ${n}`,D.value.setAttribute(`d`,ve.value)}function _t(e){let t=b.svgRef;if(!t)return null;let n=t.querySelector(`defs#${Ee.value}`);n||(n=document.createElementNS(i,`defs`),n.setAttribute(`id`,Ee.value),t.appendChild(n));let a=String(e).trim();if(Te.has(a))return Te.get(a);let o=`arrow-${r()}`,s=document.createElementNS(i,`marker`);s.setAttribute(`id`,o),s.setAttribute(`markerUnits`,`strokeWidth`),s.setAttribute(`markerWidth`,`6`),s.setAttribute(`markerHeight`,`6`),s.setAttribute(`refX`,`4`),s.setAttribute(`refY`,`3`),s.setAttribute(`orient`,`auto`),s.setAttribute(`viewBox`,`0 0 6 6`);let c=document.createElementNS(i,`path`);return c.setAttribute(`d`,`M 0 0 L 6 3 L 0 6 z`),c.setAttribute(`fill`,e),c.setAttribute(`stroke`,`none`),s.appendChild(c),n.appendChild(s),Te.set(a,o),o}function vt(e){if(![`line`,`arrow`].includes(H.value)||!b.active||!E.value||Fe(e)||Ue(e))return;e.cancelable&&e.preventDefault(),K(),F.value=U(),T.value=!0;let{x:t,y:n}=Y(e);if(ye.value={x:t,y:n},O.value=document.createElementNS(i,`line`),O.value.setAttribute(`stroke`,C.value),O.value.setAttribute(`stroke-width`,w.value*b.scale),O.value.setAttribute(`stroke-linecap`,`round`),O.value.setAttribute(`class`,`vue-data-ui-doodle`),O.value.setAttribute(`data-doodle-id`,r()),O.value.setAttribute(`pointer-events`,`stroke`),O.value.setAttribute(`x1`,t),O.value.setAttribute(`y1`,n),O.value.setAttribute(`x2`,t),O.value.setAttribute(`y2`,n),H.value===`arrow`){let e=_t(C.value);e&&O.value.setAttribute(`marker-end`,`url(#${e})`)}E.value.appendChild(O.value)}function yt(e){if(e.cancelable&&e.preventDefault(),![`line`,`arrow`].includes(H.value)||!T.value||!E.value||!O.value)return;let{x:t,y:n}=Y(e);O.value.setAttribute(`x2`,t),O.value.setAttribute(`y2`,n)}function bt(e){if(T.value&&E.value&&O.value){let{x:t,y:n}=Y(e);O.value.setAttribute(`x2`,t),O.value.setAttribute(`y2`,n),W(F.value),O.value=null,F.value=``}T.value=!1}function X(e){if(T.value&&E.value&&D.value){let{x:t,y:n}=Y(e);if(ye.value&&ye.value.x===t&&ye.value.y===n){D.value.remove();let e=document.createElementNS(i,`circle`);e.setAttribute(`cx`,t),e.setAttribute(`cy`,n),e.setAttribute(`r`,w.value*b.scale/2),e.setAttribute(`fill`,C.value),e.setAttribute(`class`,`vue-data-ui-doodle`),e.setAttribute(`data-doodle-id`,r()),e.setAttribute(`pointer-events`,`all`),E.value.appendChild(e)}else D.value.setAttribute(`d`,mt(ft(ve.value)));W(F.value),F.value=``,D.value=null}T.value=!1}function xt(){if(!x.value.length||!E.value)return;let e=U(),t=x.value.pop();S.value.push({state:e,mergeKey:null,timestamp:Date.now()}),Re(t.state)}function St(){if(!S.value.length||!E.value)return;let e=U(),t=S.value.pop();x.value.push({state:e,mergeKey:null,timestamp:Date.now()}),Re(t.state)}function Ct(){I.value&&ut(!1),K(),E.value&&(E.value.innerHTML=``),x.value=[],S.value=[],Oe.value=!1,ke.value=``,Ae.value=!1,F.value=``,dt()}y(H,()=>{b.active&&(Tt(),wt(),Z())});function wt(){b.svgRef&&b.active&&(b.svgRef.addEventListener(`mousedown`,Ye),b.svgRef.addEventListener(`mousemove`,Xe),b.svgRef.addEventListener(`mouseup`,q),b.svgRef.addEventListener(`mouseleave`,q),b.svgRef.addEventListener(`touchstart`,Ye,{passive:!1}),b.svgRef.addEventListener(`touchmove`,Xe,{passive:!1}),b.svgRef.addEventListener(`touchend`,q),b.svgRef.addEventListener(`touchcancel`,q),H.value===`draw`?(b.svgRef.addEventListener(`mousedown`,ht),b.svgRef.addEventListener(`mousemove`,gt),b.svgRef.addEventListener(`mouseup`,X),b.svgRef.addEventListener(`mouseleave`,X),b.svgRef.addEventListener(`touchstart`,ht,{passive:!1}),b.svgRef.addEventListener(`touchmove`,gt,{passive:!1}),b.svgRef.addEventListener(`touchend`,X),b.svgRef.addEventListener(`touchcancel`,X)):[`line`,`arrow`].includes(H.value)?(b.svgRef.addEventListener(`mousedown`,vt),b.svgRef.addEventListener(`mousemove`,yt),b.svgRef.addEventListener(`mouseup`,bt),b.svgRef.addEventListener(`touchstart`,vt,{passive:!1}),b.svgRef.addEventListener(`touchmove`,yt,{passive:!1}),b.svgRef.addEventListener(`touchend`,bt),b.svgRef.addEventListener(`touchcancel`,bt)):H.value===`text`&&(b.svgRef.addEventListener(`mousedown`,tt),b.svgRef.addEventListener(`touchstart`,tt,{passive:!1})),E.value&&(E.value.style.pointerEvents=`auto`))}function Tt(){b.svgRef&&(b.svgRef.removeEventListener(`mousedown`,Ye),b.svgRef.removeEventListener(`mousemove`,Xe),b.svgRef.removeEventListener(`mouseup`,q),b.svgRef.removeEventListener(`mouseleave`,q),b.svgRef.removeEventListener(`touchstart`,Ye),b.svgRef.removeEventListener(`touchmove`,Xe),b.svgRef.removeEventListener(`touchend`,q),b.svgRef.removeEventListener(`touchcancel`,q),b.svgRef.removeEventListener(`mousedown`,ht),b.svgRef.removeEventListener(`mousemove`,gt),b.svgRef.removeEventListener(`mouseup`,X),b.svgRef.removeEventListener(`mouseleave`,X),b.svgRef.removeEventListener(`touchstart`,ht),b.svgRef.removeEventListener(`touchmove`,gt),b.svgRef.removeEventListener(`touchend`,X),b.svgRef.removeEventListener(`touchcancel`,X),b.svgRef.removeEventListener(`mousedown`,vt),b.svgRef.removeEventListener(`mousemove`,yt),b.svgRef.removeEventListener(`mouseup`,bt),b.svgRef.removeEventListener(`touchstart`,vt),b.svgRef.removeEventListener(`touchmove`,yt),b.svgRef.removeEventListener(`touchend`,bt),b.svgRef.removeEventListener(`touchcancel`,bt),b.svgRef.removeEventListener(`mousedown`,tt),b.svgRef.removeEventListener(`touchstart`,tt),E.value&&(E.value.style.pointerEvents=`none`))}y(()=>b.active,e=>{e?wt():(K(),Tt()),Z()}),y(()=>b.active,()=>{p(()=>{dt()})}),y(()=>b.active,e=>{b.svgRef&&(e?b.svgRef.style.touchAction=`none`:b.svgRef.style.touchAction=``)},{immediate:!0});function Z(e=null){E.value&&(b.active?I.value?E.value.style.cursor=`text`:e&&Ie(e)?E.value.style.cursor=`pointer`:P.value||e&&Fe(e)?E.value.style.cursor=`move`:A.value&&k.value?E.value.style.cursor=`grabbing`:e&&k.value&&E.value.contains(k.value)&&He(k.value,e)?E.value.style.cursor=`grab`:H.value===`text`?E.value.style.cursor=`text`:[`line`,`arrow`].includes(H.value)?E.value.style.cursor=`crosshair`:E.value.style.cursor=Ne.value:E.value.style.cursor=``)}let Q=_(null),Et=_(null),Dt=_(!1),$=_({x:0,y:0}),Ot=_(null),kt=_(null),At=s(()=>({backgroundColor:b.backgroundColor,"--vue-ui-pen-and-paper-drag-x":`${$.value.x}px`,"--vue-ui-pen-and-paper-drag-y":`${$.value.y}px`}));function jt(){return{width:document.documentElement.clientWidth||window.innerWidth,height:document.documentElement.clientHeight||window.innerHeight}}function Mt(){if(!Q.value)return null;let e=[Q.value,Q.value.querySelector(`.vue-ui-pen-and-paper-drag-handle`),Q.value.querySelector(`.vertical-range`)].filter(Boolean).map(e=>e.getBoundingClientRect());return{left:Math.min(...e.map(e=>e.left)),top:Math.min(...e.map(e=>e.top)),right:Math.max(...e.map(e=>e.right)),bottom:Math.max(...e.map(e=>e.bottom))}}function Nt(e){if(e.pointerType===`mouse`&&e.button!==0||!Q.value)return;e.preventDefault(),e.stopPropagation();let t=Mt();t&&(Dt.value=!0,kt.value=e.pointerId,Ot.value={clientX:e.clientX,clientY:e.clientY,offsetX:$.value.x,offsetY:$.value.y,rect:t},window.addEventListener(`pointermove`,Pt),window.addEventListener(`pointerup`,Ft),window.addEventListener(`pointercancel`,Ft))}function Pt(e){if(!Dt.value||!Ot.value||e.pointerId!==kt.value)return;e.preventDefault();let t=Ot.value,{width:n,height:r}=jt(),i=e.clientX-t.clientX,a=e.clientY-t.clientY,o=Math.min(Math.max(i,-t.rect.left),n-t.rect.right),s=Math.min(Math.max(a,-t.rect.top),r-t.rect.bottom);$.value={x:t.offsetX+o,y:t.offsetY+s}}function Ft(e){(e?.pointerId===void 0||kt.value===null||e.pointerId===kt.value)&&(Dt.value=!1,Ot.value=null,kt.value=null,window.removeEventListener(`pointermove`,Pt),window.removeEventListener(`pointerup`,Ft),window.removeEventListener(`pointercancel`,Ft))}function It(){if(!Q.value||!b.active)return;let e=Mt();if(!e)return;let{width:t,height:n}=jt(),r=0,i=0;e.left<0?r=-e.left:e.right>t&&(r=t-e.right),e.top<0?i=-e.top:e.bottom>n&&(i=n-e.bottom),(r||i)&&($.value={x:$.value.x+r,y:$.value.y+i})}return te(()=>{window.addEventListener(`resize`,It),p(()=>{b.svgRef&&(E.value=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),E.value.setAttribute(`class`,`vue-data-ui-doodles`),b.svgRef.appendChild(E.value),Z(),b.active?wt():Tt(),dt())})}),y(()=>b.active,async e=>{e?(await p(),Et.value?.focus()):(Ft(),$.value={x:0,y:0})},{flush:`post`}),ee(()=>{ot(),K(),Ft(),window.removeEventListener(`resize`,It),E.value&&b.svgRef&&(E.value.remove(),Tt())}),(n,r)=>e.active?(ne(),l(`div`,{key:0,ref_key:`menuRef`,ref:Q,"data-dom-to-png-ignore":``,class:m([`vue-ui-pen-and-paper-actions`,{"vue-ui-pen-and-paper-actions-dragging":Dt.value}]),style:g(At.value)},[u(`button`,{type:`button`,class:`vue-ui-pen-and-paper-drag-handle`,"aria-label":`Move drawing toolbar`,style:g({backgroundColor:e.backgroundColor,border:`1px solid ${J.value}`,color:e.color}),onPointerdown:Nt},[(ne(),l(`svg`,le,[u(`circle`,{fill:e.color,cx:`3`,cy:`3`,r:`0.7`},null,8,ue),u(`circle`,{fill:e.color,cx:`3`,cy:`6`,r:`0.7`},null,8,de),u(`circle`,{fill:e.color,cx:`3`,cy:`9`,r:`0.7`},null,8,fe)]))],36),u(`button`,{ref_key:`buttonToggle`,ref:Et,class:`vue-ui-pen-and-paper-action`,onClick:r[0]||=e=>_e(`close`),style:g({backgroundColor:e.backgroundColor,border:`1px solid ${J.value}`,cursor:e.isCursorPointer?`pointer`:`default`})},[v(n.$slots,`annotator-action-close`,{},()=>[d(a,{name:`close`,stroke:e.color},null,8,[`stroke`])])],4),u(`button`,{class:`vue-ui-pen-and-paper-action`,tabindex:`-1`,style:g(`padding: 0 !important; cursor: ${e.isCursorPointer?`pointer`:`default`}`)},[d(o,{value:C.value,"onUpdate:value":r[1]||=e=>C.value=e,backgroundColor:e.backgroundColor,buttonBorderColor:J.value,isCursorPointer:e.isCursorPointer,palette:e.palette},{"annotator-action-color":oe(({color:e})=>[v(n.$slots,`annotator-action-color`,h(f({color:e})))]),_:3},8,[`value`,`backgroundColor`,`buttonBorderColor`,`isCursorPointer`,`palette`])],4),u(`button`,{class:m([`vue-ui-pen-and-paper-action`,{"vue-ui-pen-and-paper-action-active":H.value===`text`}]),onClick:r[2]||=e=>et(),style:g({backgroundColor:e.backgroundColor,border:`1px solid ${J.value}`,cursor:e.isCursorPointer?`pointer`:`default`})},[v(n.$slots,`annotator-action-draw`,h(f({mode:H.value})),()=>[d(a,{name:Me[H.value],stroke:e.color},null,8,[`name`,`stroke`])]),u(`div`,{style:g({position:`absolute`,bottom:`-20px`,color:J.value,width:`100%`,textAlign:`center`,fontSize:`12px`,fontVariantNumeric:`tabular-nums`})},re(ie(t)({v:H.value===`text`?Math.round(B.value):Math.round(w.value),s:`px`,r:1})),5)],6),u(`button`,{class:m([`vue-ui-pen-and-paper-action`,{"vue-ui-pen-and-paper-action-disabled":!x.value.length}]),disabled:!x.value.length,onClick:xt,style:g({backgroundColor:e.backgroundColor,border:`1px solid ${J.value}`,marginTop:`20px`,cursor:e.isCursorPointer?`pointer`:`default`})},[v(n.$slots,`annotator-action-undo`,h(f({disabled:!x.value.length})),()=>[d(a,{name:`refresh`,stroke:e.color},null,8,[`stroke`])])],14,pe),u(`button`,{class:m([`vue-ui-pen-and-paper-action`,{"vue-ui-pen-and-paper-action-disabled":!S.value.length}]),onClick:St,style:g({backgroundColor:e.backgroundColor,border:`1px solid ${J.value}`,cursor:e.isCursorPointer?`pointer`:`default`})},[v(n.$slots,`annotator-action-redo`,h(f({disabled:!S.value.length})),()=>[d(a,{name:`refresh`,stroke:e.color,style:{transform:`scaleX(-1)`}},null,8,[`stroke`])])],6),u(`button`,{class:m([`vue-ui-pen-and-paper-action`,{"vue-ui-pen-and-paper-action-disabled":!x.value.length}]),onClick:Ct,style:g({backgroundColor:e.backgroundColor,border:`1px solid ${J.value}`,cursor:e.isCursorPointer?`pointer`:`default`})},[v(n.$slots,`annotator-action-delete`,h(f({disabled:!x.value.length})),()=>[d(a,{name:`trash`,stroke:e.color},null,8,[`stroke`])])],6),H.value===`text`?se((ne(),l(`input`,{key:0,ref:`range`,type:`range`,class:`vertical-range`,min:3,max:48,step:1,"onUpdate:modelValue":r[3]||=e=>B.value=e,style:g({accentColor:e.color})},null,4)),[[ae,B.value]]):se((ne(),l(`input`,{key:1,ref:`range`,type:`range`,class:`vertical-range`,min:.5,max:12,step:.1,"onUpdate:modelValue":r[4]||=e=>w.value=e,style:g({accentColor:e.color})},null,4)),[[ae,w.value]])],6)):c(``,!0)}};export{b as n,ce as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=[`annotator-action-close`,`annotator-action-color`,`annotator-action-draw`,`annotator-action-undo`,`annotator-action-redo`,`annotator-action-delete`];function t(e,t){switch(e){case`annotator-action-color`:return{color:t.color};case`annotator-action-draw`:return{mode:t.mode};case`annotator-action-undo`:case`annotator-action-redo`:case`annotator-action-delete`:return{disabled:t.disabled};default:return{}}}export{t as n,e as t};
|
package/dist/package-CgIKu3rP.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=`3.28.3`;export{e as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{et as e}from"./lib-rPeBMZrn.js";var t={responsive:!1,theme:``,a11y:{translations:{keyboardNavigation:`Use arrow keys to navigate nodes, Home or End to jump, Enter or Space to select, and Escape to clear selection.`}},loading:!1,skeletonDataset:null,skeletonConfig:null,debug:!1,devHints:{enable:!1},customPalette:[],events:{datapointEnter:null,datapointLeave:null,datapointClick:null},style:{chart:{width:600,height:600,padding:36,backgroundColor:`#FFFFFF`,color:`#2D353C`,fontFamily:`inherit`,title:{text:``},controls:{position:`bottom`,show:!0,backgroundColor:`#e1e5e8`,buttonColor:`#e1e5e8`,color:`#2D353C`,fontSize:14,border:`1px solid #e1e5e8`,padding:`0.5rem`,borderRadius:`0.25rem`},nodes:{radius:7,minRadius:4,maxRadius:24,sizeByValue:!0,sizeByDegree:!1,colorByGroup:!0,color:`#42A5F5`,opacity:1,strokeWidth:1,stroke:`#FFFFFF`,gradient:!0,gradientColor:`#FFFFFF`,glow:{show:!1,blur:6,opacity:.6},hover:{stroke:`#2D353C`,strokeWidth:3},selected:{stroke:`#FFB74D`,strokeWidth:3},labels:{show:!0,strokeWidth:3,fontSize:11,color:`#2D353C`,position:`bottom`,offsetY:0,hoverOnly:!1,selectedOnly:!1,maxCount:150,minZoom:0,maxLength:40}},links:{color:`#A1A1A1`,opacity:.5,width:1,widthByValue:!1,maxWidth:6,arrows:{show:!1,showOnHover:!0},pulses:{show:!1,showOnHover:!1,reverse:!1,colorBySource:!0,color:`#FFB74D`,radius:2,opacity:1,duration:1500},glow:!1}}},layout:{chargeStrength:-120,linkDistance:80,linkStrength:.08,centerStrength:.015,collisionPadding:3,friction:.85,clusterStrength:0,iterations:300,strength:1,theta:.8},interaction:{zoom:{enabled:!0,min:.2,max:5,fitOnDoubleClick:!0},pan:{enabled:!0},drag:{enabled:!0,pinOnRelease:!1},highlight:{enabled:!0,neighbors:!0,keepSelection:!0,dimOpacity:.12}},tooltip:{show:!0,backgroundColor:`#FFFFFF`,color:`#2D353C`,borderColor:`#CCCCCC`,fontSize:13,showMetadata:!1,customFormat:null},animation:{enabled:!0,duration:300},userOptions:{show:!0,useCursorPointer:!0},viewport:{initialFit:!0,fitOnResize:!1,fitOnUpdate:!1},performance:{effectThreshold:300,stepsPerFrame:1,nodeBatchThreshold:300}};function n(n={}){let r=`#2D353C`,i=`#A1A1A1`,a=`#e1e5e8`,o=`#CCCCCC`,s=`#4A4A4A`,c=`#FFFFFF`,l=`#fafafa`,u=`#1f77b4`,d=`#d62728`,f=`#2ca02c`,p=`#42d392`,m=`#FFD055`,h=[`#000000`,`#FFFFFF`,`#FF5733`,`#33FF57`,`#3357FF`,`#FFC300`,`#800080`,`#FF1493`,`#00CED1`],g=n.colorBackground??c,_=n.colorTextPrimary??r,v=n.colorTextSecondary??i,y=n.colorGrid??a,b=n.colorBorder??a,x={translations:{keyboardNavigation:`Use the left and right arrow keys to move between data points.`,tableAvailable:`A data table for this chart is available below.`,tableCaption:`Chart data table`}},S={_6:6,_8:8,_10:10,_12:12,_14:14,_16:16,_18:18,_20:20,_24:24,_32:32,_48:48},C=S._6,w={LINE:`line`,SQUARE:`square`,ROUND:`round`,CIRCLE:`circle`,CURVED:`curved`,BAR:`bar`,STAR:`star`},T={LEFT:`left`,CENTER:`center`,RIGHT:`right`,BOTTOM:`bottom`,TOP:`top`},ee={ASC:`asc`,DESC:`desc`,NONE:`none`},E={threshold:1095},D={enable:!1},O={showValueFirst:!0,usePercentageParens:!0,useValueParens:!1},k={text:``,color:_,fontSize:S._20,bold:!0,textAlign:T.CENTER,paddingLeft:0,paddingRight:0,subtitle:{color:v,text:``,fontSize:S._16,bold:!1}},A={show:!0,bold:!1,backgroundColor:g,color:_,fontSize:S._14,selectAllToggle:{show:!1,backgroundColor:b,color:_}},j={show:!0,color:_,backgroundColor:g,fontSize:S._14,customFormat:null,borderRadius:4,borderColor:b,borderWidth:1,backgroundOpacity:100,position:T.CENTER,offsetX:0,offsetY:24,smooth:!0,backdropFilter:!0,smoothForce:.18,smoothSnapThreshold:.25,teleportTo:`body`},M={enable:!0,pauseOnLoad:!0,pauseOnDatasetChange:!1,activationDelayMs:300},N={enable:!1,locale:`en`,useUTC:!1,januaryAsYear:!1,options:{year:`yyyy`,month:`MMM 'yy`,day:`dd MMM`,hour:`HH:mm`,minute:`HH:mm:ss`,second:`HH:mm:ss`}},P=({tooltip:e=!1,pdf:t=!1,csv:n=!1,img:r=!1,table:i=!1,labels:a=!1,fullscreen:o=!1,sort:s=!1,stack:c=!1,animation:l=!1,annotator:u=!1,svg:d=!1,zoom:f=!1,altCopy:p=!1})=>{let m={open:`Open options`,close:`Close options`,tooltip:`Toggle tooltip`,pdf:`Download PDF`,csv:`Download CSV`,img:`Download PNG`,table:`Toggle table`,labels:`Toggle labels`,fullscreen:`Toggle fullscreen`,sort:`Toggle sort`,stack:`Toggle stack mode`,animation:`Toggle animation`,annotator:`Toggle annotator`,svg:`Download SVG`,zoom:`Toggle zoom lock`,altCopy:`Copy alt text`};return e||delete m.tooltip,t||delete m.pdf,n||delete m.csv,r||delete m.img,i||delete m.table,a||delete m.labels,o||delete m.fullscreen,s||delete m.sort,c||delete m.stack,l||delete m.animation,u||delete m.annotator,d||delete m.svg,f||delete m.zoom,{show:!0,showOnChartHover:!1,keepStateOnChartLeave:!0,position:`right`,buttons:{tooltip:e,pdf:t,csv:n,img:r,table:i,labels:a,fullscreen:o,sort:s,stack:c,animation:l,annotator:u,svg:d,zoom:f,altCopy:p},callbacks:{animation:null,annotator:null,csv:null,fullscreen:null,img:null,labels:null,pdf:null,sort:null,stack:null,table:null,tooltip:null,svg:null,zoom:null,altCopy:null},buttonTitles:m,print:{scale:2,orientation:`auto`,overflowTolerance:.2},useCursorPointer:!1,annotatorPalette:h}},F=e=>({top:e[0],right:e[1],bottom:e[2],left:e[3]}),I={backgroundColor:g,color:_,outline:`none`},L={backgroundColor:g,color:_,outline:`none`},R={show:!1,responsiveBreakpoint:400},z={show:!0,autoFit:!1,color:o,highlightColor:s,fontSize:S._14,useResetSlot:!1,startIndex:null,endIndex:null,enableRangeHandles:!0,enableSelectionDrag:!0,focusOnDrag:!1,focusRangeRatio:.2,maxWidth:null,keepState:!1,dragToZoom:{show:!1,selection:{fill:u,stroke:i,fillOpacity:.2,strokeOpacity:.5,strokeWidth:1,strokeDasharray:0}}},B={show:!1,selectedColor:u,selectedColorOpacity:.2,indicatorColor:r,verticalHandles:!1,compact:!0,frameColor:i,additionalHeight:0,handleIconColor:null,handleBorderWidth:1,handleBorderColor:null,handleFill:null,handleWidth:20,handleType:`grab`},V={...B,smooth:!1,lineColor:r,selectionRadius:2,merged:!1},te={devHints:D,loading:!1,readonly:!1,editing:!1,theme:``,customPalette:[],transitions:M,userOptions:P({tooltip:!1,pdf:!0,csv:!0,img:!0,table:!1,labels:!1,fullscreen:!0,annotator:!0,svg:!0}),a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right arrow keys to adjust the selected datapoint.`,topOfHill:`Top of the hill`}},events:{edit:null,save:null,cancel:null,change:null,dragStart:null,dragEnd:null,datapointEnter:null,datapointLeave:null,selectDatapoint:null},interaction:{keyboardStep:.01,peakTolerance:.005},style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,width:800,height:300,title:k,toolbar:{show:!0,status:{lastUpdated:`Last updated just now`,editInstruction:`Drag each dot to adjust its position`,color:_,fontSize:S._14,bold:!1,lineHeight:1.3},buttons:{translations:{edit:`Edit`,cancel:`Cancel`,save:`Save`}}},layout:{hill:{geometry:{horizontalPaddingRatio:.05,topPaddingRatio:.15,bottomPaddingRatio:.15,curvature:.7},baseline:{show:!0,stroke:o,strokeWidth:1,strokeDasharray:0},midline:{show:!0,stroke:o,strokeWidth:1,strokeDasharray:`2.5 3.5`},curve:{stroke:i,strokeWidth:1.5,strokeDasharray:0}},plots:{radius:10,hitRadius:10,stroke:g,strokeWidth:2,mutedOpacity:.4,disabledOpacity:.4,shadow:{show:!0,color:_,offsetX:0,offsetY:.5,blur:.4},stacking:{show:!0,overlapThresholdRatio:.8,gap:5,overflow:{show:!0,transitionDuration:300,marker:{radius:10,stroke:g,strokeWidth:1,labelColor:_,labelOffsetY:0,fontSize:S._14,bold:!1,fill:o},menu:{width:220,maxHeight:220,backgroundColor:g,color:_,borderColor:`transparent`,borderRadius:3,title:``}}},dragMarker:{show:!0,strokeWidth:1.5,crossPath:`M-5 0H5M0-5V5`,positionIndicator:{show:!0,useSerieColor:!0,color:a,strokeWidth:1,strokeDasharray:`2 4`,circle:{show:!0,radius:3,stroke:g,strokeWidth:1},value:{show:!0,offsetY:0,fontSize:S._12,useSerieColor:!1,color:_,formatter:null,rounding:0}}}},labels:{item:{ellipsisThresholdChars:24,show:!0,useSerieColor:!1,color:_,fontSize:S._14,bold:!1,offsetX:0,offsetY:0,autoSideThreshold:.75,stroke:g,strokeWidth:5},phases:{show:!0,color:v,fontSize:S._14,bold:!0,letterSpacing:`0.1em`,offsetY:0,left:{text:`FIGURING THINGS OUT`},right:{text:`MAKING IT HAPPEN`}}},stackbar:{show:!0,paddingTop:0,paddingBottom:12,height:14,stroke:g,strokeWidth:1.5,gutterColor:a,label:{show:!0,color:_,fontSize:S._12,formatter:null}}}}}},ne={devHints:D,skeletonDataset:null,skeletonConfig:null,loading:!1,debug:!1,theme:``,responsive:!1,a11y:x,transitions:M,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},customPalette:[],useCssAnimation:!1,table:{...R,useDialog:!1,columnNames:{period:`Period`,total:`Total`},th:I,td:{...L,roundingValue:0}},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!0,fullscreen:!0,annotator:!0,svg:!0}),style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,height:500,width:800,padding:F([12,12,12,12]),title:k,legend:{...A,position:`bottom`},zoom:{...z,minimap:B,preview:{enable:!0,fill:`#CCCCCC50`,stroke:`#6A6A6A`,strokeWidth:2,strokeDasharray:0},useDefaultFormat:!0,timeFormat:`yyyy-MM-dd HH:mm:ss`,customFormat:null},highlighter:{color:_,opacity:5,useLine:!1,lineDasharray:2,lineWidth:1},tooltip:{...j,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0,showTimeLabel:!0,showTotal:!1,totalTranslation:`Total`,useDefaultTimeFormat:!0,timeFormat:`yyyy-MM-dd HH:mm:ss`},grid:{scale:{ticks:10,scaleMin:null,scaleMax:null},frame:{show:!1,stroke:y,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,strokeDasharray:0},x:{showAxis:!0,showHorizontalLines:!1,axisColor:y,linesColor:y,linesThickness:1,linesStrokeDasharray:0,axisThickness:2,axisName:{show:!0,text:``,fontSize:S._14,color:_,bold:!1,offsetY:0},timeLabels:{show:!0,values:[],datetimeFormatter:N,offsetY:0,rotation:0,autoRotate:{enable:!0,angle:-30},fontSize:S._14,color:_,bold:!1,showOnlyFirstAndLast:!1,showFirstAndLast:!0,showOnlyAtModulo:!1,modulo:2}},y:{position:`left`,showAxis:!0,showVerticalLines:!1,linesColor:y,linesThickness:1,linesStrokeDasharray:0,axisColor:y,axisThickness:2,axisName:{show:!0,text:``,fontSize:S._14,color:_,bold:!1,offsetX:0},axisLabels:{formatter:null,show:!0,color:_,fontSize:S._14,bold:!1,rounding:0}}},lines:{useArea:!0,smooth:!1,areaOpacity:.5,distributed:!1,showDistributedPercentage:!0,strokeWidth:1,gradient:{show:!0,intensity:40},path:{useSerieColor:!0,stroke:c},dot:{hideAboveMaxSerieLength:62,useSerieColor:!0,fill:c,stroke:c,strokeWidth:.5,radius:4},totalValues:{show:!0,offsetY:0,fontSize:S._16,bold:!0,color:_},dataLabels:{hideAboveMaxSerieLength:62,offsetY:0,show:!0,hideEmptyValues:!0,hideUnderValue:null,hideEmptyPercentages:!0,hideUnderPercentage:null,color:_,fontSize:S._14,bold:!1,rounding:0,prefix:``,suffix:``,formatter:null}}}}},re={devHints:D,skeletonDataset:null,skeletonConfig:null,loading:!1,debug:!1,theme:``,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},transitions:M,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},customPalette:[],useCssAnimation:!1,orientation:`vertical`,table:{...R,useDialog:!1,columnNames:{period:`Period`,total:`Total`},th:I,td:{...L,roundingValue:0}},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!0,fullscreen:!0,annotator:!0,svg:!0}),style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,height:500,width:800,padding:F([12,12,12,12]),title:k,legend:{...A,position:`bottom`},waterfall:{bars:{gapRatio:.5,borderRadius:0,strokeWidth:1,stroke:g,gradient:{show:!0,intensity:20}},colors:{useSeriesColor:!0,positive:`#36A783`,negative:`#E76F51`,total:`#4C7899`,subtotal:`#8192B0`,neutral:`#A3A3A3`},connectors:{show:!0,stroke:`#8B8B8B`,strokeWidth:1,strokeDasharray:`3 3`,adaptToRadius:!1,inset:0},categoryLabels:{show:!0,fontSize:S._14,color:r,bold:!1,rotation:0,offsetY:0},segmentLabels:{show:!0,fontSize:S._14,bold:!1,color:r,adaptColorToBackground:!0,minHeight:14,minWidth:26,showZero:!1,prefix:``,suffix:``,rounding:0,formatter:null},stepLabels:{show:!0,fontSize:S._14,color:r,bold:!1,prefix:``,suffix:``,rounding:0,offset:0,showPlusSign:!1,showZero:!0,useBalanceForTotals:!0,formatter:null},tooltip:{showBalance:!0,showChange:!0,showStart:!1,balanceTranslation:`Balance`,changeTranslation:`Change`,startTranslation:`Previous balance`,totalTranslation:`Total`,subtotalTranslation:`Subtotal`,rounding:0},table:{showKind:!0,showBalance:!0,kindTranslation:`Type`,balanceTranslation:`Balance`,changeTranslation:`Change`}},zoom:{...z,minimap:B,preview:{enable:!0,fill:`#CCCCCC50`,stroke:`#6A6A6A`,strokeWidth:2,strokeDasharray:0},useDefaultFormat:!0,timeFormat:`yyyy-MM-dd HH:mm:ss`,customFormat:null},tooltip:{...j,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0,showTimeLabel:!0,showTotal:!1,totalTranslation:`Total`,useDefaultTimeFormat:!0,timeFormat:`yyyy-MM-dd HH:mm:ss`},highlighter:{color:_,opacity:5},bars:{gapRatio:.5,distributed:!1,showDistributedPercentage:!0,borderRadius:0,strokeWidth:1,gradient:{show:!0,intensity:20},totalValues:{show:!0,offsetY:0,offsetX:0,fontSize:S._16,bold:!1,color:_},dataLabels:{show:!0,hideEmptyValues:!1,hideUnderValue:null,hideEmptyPercentages:!1,hideUnderPercentage:null,adaptColorToBackground:!0,color:_,fontSize:S._14,bold:!1,rounding:0,prefix:``,suffix:``,formatter:null}},grid:{scale:{ticks:10,scaleMin:null,scaleMax:null},frame:{show:!1,stroke:y,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,strokeDasharray:0},x:{showAxis:!0,showHorizontalLines:!1,axisColor:y,linesColor:y,linesThickness:1,linesStrokeDasharray:0,axisThickness:2,axisName:{show:!0,text:``,fontSize:S._14,color:_,bold:!1,offsetY:0},timeLabels:{show:!0,values:[],datetimeFormatter:N,offsetY:0,rotation:0,autoRotate:{enable:!0,angle:-30},fontSize:S._14,color:_,bold:!1,showOnlyFirstAndLast:!1,showFirstAndLast:!0,showOnlyAtModulo:!1,modulo:2}},y:{position:`left`,showAxis:!0,showVerticalLines:!1,linesColor:y,linesThickness:1,linesStrokeDasharray:0,axisColor:y,axisThickness:2,axisName:{show:!0,text:``,fontSize:S._14,color:_,bold:!1,offsetX:0},axisLabels:{formatter:null,show:!0,color:_,fontSize:S._14,bold:!1,rounding:0}}}}}},H={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,theme:``,responsive:!1,loading:!1,a11y:x,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},responsiveProportionalSizing:!0,customPalette:[],useCssAnimation:!1,downsample:E,transitions:M,chart:{fontFamily:`inherit`,backgroundColor:g,color:_,height:600,width:1e3,annotations:[{show:!1,yAxis:{yTop:null,yBottom:null,label:{text:``,textAnchor:`start`,position:`start`,offsetX:0,offsetY:0,padding:F([12,12,12,12]),border:{stroke:c,strokeWidth:1,rx:0,ry:0},fontSize:14,color:_,backgroundColor:y},line:{stroke:r,strokeWidth:1,strokeDasharray:0},area:{fill:y,opacity:30}}}],zoom:{...z,minimap:V,preview:{enable:!0,fill:`#CCCCCC50`,stroke:`#6A6A6A`,strokeWidth:2,strokeDasharray:0},useDefaultFormat:!0,timeFormat:`yyyy-MM-dd HH:mm:ss`,customFormat:null},padding:F([12,12,6,6]),highlighter:{color:_,opacity:5,useLine:!1,lineDasharray:2,lineWidth:1,crosshairs:{show:!1,stroke:r,strokeWidth:1,strokeDasharray:3,stopOnPoint:!1,dot:{radius:2,fill:r,stroke:c,strokeWidth:1}}},highlightArea:{show:!1,from:0,to:0,color:r,opacity:20,caption:{text:``,fontSize:S._10,color:_,bold:!1,offsetY:0,width:`auto`,padding:3,textAlign:T.CENTER}},timeTag:{show:!1,backgroundColor:y,color:_,fontSize:S._12,circleMarker:{radius:3,color:_},useDefaultFormat:!0,timeFormat:`yyyy-MM-dd HH:mm:ss`,customFormat:null},grid:{stroke:y,showVerticalLines:!1,showHorizontalLines:!1,position:`middle`,frame:{show:!1,stroke:y,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,strokeDasharray:0},labels:{show:!0,color:_,fontSize:S._16,axis:{yLabel:``,yLabelOffsetX:0,xLabel:``,xLabelOffsetY:0,fontSize:S._14},zeroLine:{show:!0},xAxis:{showBaseline:!1,showCrosshairs:!0,crosshairsAlwaysAtZero:!1,crosshairSize:6,commonScaleSteps:10,useNiceScale:!0,scaleMin:null,scaleMax:null,rounding:1,formatter:null,reverse:!1},yAxis:{reverse:!1,position:`left`,showBaseline:!0,showCrosshairs:!0,crosshairSize:6,commonScaleSteps:10,useIndividualScale:!1,useNiceScale:!1,stacked:!1,gap:12,labelWidth:64,formatter:null,scaleMin:null,scaleMax:null,groupColor:null,scaleLabelOffsetX:0,scaleValueOffsetX:0,rounding:1,serieNameFormatter:null},xAxisLabels:{color:_,show:!0,values:[],datetimeFormatter:N,fontSize:S._14,showOnlyFirstAndLast:!1,showFirstAndLast:!0,showOnlyAtModulo:!1,modulo:2,yOffset:24,rotation:0,autoRotate:{enable:!0,angle:-30}}}},comments:{show:!0,showInTooltip:!0,width:200,offsetX:0,offsetY:0},labels:{fontSize:S._10,prefix:``,suffix:``},legend:{color:_,show:!0,fontSize:S._14,position:`bottom`,selectAllToggle:{show:!1,backgroundColor:b,color:_}},title:{...k,show:!0},tooltip:{...j,showTimeLabel:!0,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0,useDefaultTimeFormat:!0,timeFormat:`yyyy-MM-dd HH:mm:ss`},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!0,fullscreen:!0,stack:!0,annotator:!0,svg:!0})},bar:{showTransition:!0,transitionDurationMs:300,borderRadius:2,useGradient:!0,periodGap:.1,innerGap:0,border:{useSerieColor:!1,strokeWidth:0,stroke:c},labels:{show:!1,offsetY:-6,offsetX:0,rotation:0,textAnchor:null,alwaysOnTop:!1,rounding:0,color:_,formatter:null},serieName:{show:!1,offsetY:-6,useAbbreviation:!0,abbreviationSize:3,useSerieColor:!0,color:_,bold:!1}},line:{showTransition:!0,transitionDurationMs:300,radius:3,useGradient:!0,strokeWidth:3,cutNullValues:!1,nullDashes:{show:!1},interLine:{pairs:[],colors:[],fillOpacity:.25},dot:{selectedRadius:4.5,hideAboveMaxSerieLength:62,useSerieColor:!0,fill:c,strokeWidth:.5},labels:{show:!1,offsetY:-6,offsetX:0,rotation:0,rounding:0,color:_,formatter:null,textAnchor:null,alwaysOnTop:!1},area:{useGradient:!0,opacity:30},tag:{followValue:!0,formatter:null,fontSize:S._14}},plot:{showTransition:!0,transitionDurationMs:300,radius:3,useGradient:!0,dot:{useSerieColor:!0,fill:c,strokeWidth:.5},labels:{show:!1,offsetY:-6,offsetX:0,rotation:0,rounding:0,color:_,formatter:null,textAnchor:null,alwaysOnTop:!1},tag:{followValue:!0,formatter:null,fontSize:S._14}},table:{useDialog:!1,responsiveBreakpoint:400,rounding:0,sparkline:!0,showSum:!0,columnNames:{period:`Period`,total:`Total`},th:I,td:L,useDefaultTimeFormat:!0,timeFormat:`yyyy-MM-dd HH:mm:ss`},showTable:!1},U={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,type:`classic`,loading:!1,pie:!1,autoSize:!0,responsive:!1,theme:``,customPalette:[],useCssAnimation:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},serieToggleAnimation:{show:!0,durationMs:500},startAnimation:{show:!1,durationMs:1e3,staggerMs:50},useBlurOnHover:!0,userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!0,fullscreen:!0,annotator:!0,svg:!0}),translations:{total:`Total`,average:`Average`},table:{...R,useDialog:!1,th:I,td:{...L,roundingValue:0,roundingPercentage:0},columnNames:{series:`Series`,value:`Value`,percentage:`Percentage`}},style:{fontFamily:`inherit`,chart:{useGradient:!0,gradientIntensity:40,backgroundColor:g,color:_,padding:F([0,0,0,0]),width:512,height:360,layout:{curvedMarkers:!1,labels:{dataLabels:{...O,show:!0,useLabelSlots:!1,hideUnderValue:3,smallArcClusterThreshold:8,smallArcClusterFontSize:S._12,oneLine:!1,prefix:``,suffix:``},value:{rounding:0,show:!0,formatter:null},percentage:{show:!0,color:_,bold:!0,fontSize:S._18,minFontSize:C,rounding:0,formatter:null},name:{show:!0,color:_,bold:!1,fontSize:S._14,minFontSize:C},hollow:{show:!0,total:{show:!0,bold:!1,fontSize:S._18,color:_,text:`Total`,offsetY:0,value:{color:_,fontSize:S._18,bold:!0,suffix:``,prefix:``,offsetY:0,rounding:0,formatter:null}},average:{show:!0,bold:!1,fontSize:S._18,color:v,text:`Average`,offsetY:0,value:{color:_,fontSize:S._18,bold:!0,suffix:``,prefix:``,offsetY:0,rounding:0,formatter:null}}}},donut:{radiusRatio:.3,strokeWidth:64,borderWidth:1,useShadow:!1,shadowColor:r,emptyFill:y,selectedColor:`#0000001A`,borderColorAuto:!0,borderColor:b}},comments:{show:!0,showInTooltip:!0,width:100,offsetY:0,offsetX:0},legend:{...A,...O,roundingValue:0,roundingPercentage:0,showPercentage:!0,showValue:!0,position:`bottom`},tooltip:{...j,...O,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0},title:k}}},W={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},transitions:M,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0,zoom:!0}),style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,height:500,width:800,padding:F([0,0,0,0]),layout:{sorted:!0,rects:{stroke:y,strokeWidth:1,borderRadius:0,colorRatio:.3,gradient:{show:!0,intensity:30},group:{stroke:y,strokeWidth:1,useSeriesBackgroundColor:!1,backgroundLighterRatio:.4,label:{adaptColorToBackground:!1,color:_}},selected:{stroke:y,strokeWidth:1,unselectedOpacity:.6}},labels:{showDefaultLabels:!0,fontSize:S._24,fontSizeZoomFactor:6,minFontSize:S._10,hideUnderProportion:0,prefix:``,suffix:``,rounding:0,formatter:null,name:{show:!0,bold:!0},value:{show:!0,bold:!1}}},legend:{...A,roundingValue:0,roundingPercentage:0,showValue:!0,showPercentage:!0,position:`bottom`},title:k,tooltip:{...j,roundingValue:1},zoom:{show:!1}}},table:{...R,useDialog:!1,columnNames:{series:`Series`,value:`Value`,percentage:`Percentage`},th:I,td:{...L,roundingValue:0,roundingPercentage:0}}},G={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,transitions:M,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],useBlurOnHover:!0,useCustomCells:!1,useAnimation:!0,style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,layout:{labels:{dataLabels:{...O,prefix:``,suffix:``,formatter:null},captions:{show:!1,showSerieName:!1,serieNameAbbreviation:!0,serieNameMaxAbbreviationSize:3,fontSize:S._12,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0,offsetX:0,offsetY:0}},grid:{size:10,spaceBetween:2,vertical:!1},rect:{rounded:!0,rounding:2,stroke:_,strokeWidth:1,useGradient:!0,gradientIntensity:40,merged:!1,selection:{unselectedOpacity:.6,wrap:{show:!0,stroke:_,strokeWidth:3,strokeLinejoin:`round`}}}},title:k,tooltip:{...j,...O,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0},legend:{...A,...O,roundingValue:0,roundingPercentage:0,showValue:!0,showPercentage:!0,position:`bottom`}}},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),table:{...R,useDialog:!1,columnNames:{series:`Series`,value:`Value`,percentage:`Percentage`},th:I,td:{...L,roundingValue:0,roundingPercentage:0}}},K={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],useCssAnimation:!1,style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,layout:{scaleToAxisMax:!1,targetReference:{show:!1,stroke:r,strokeWidth:1,strokeDasharray:4,showInLegend:!0,legendLabel:`Target`},plots:{show:!0,radius:2},outerPolygon:{stroke:o,strokeWidth:1},dataPolygon:{strokeWidth:1,transparent:!1,opacity:20,useGradient:!0},grid:{show:!0,rotation:0,stroke:y,strokeWidth:.5,graduations:5},labels:{dataLabels:{show:!0,fontSize:S._12,color:_,offset:0}}},title:k,tooltip:{...j,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0,animation:{show:!0,animationFrames:60}},legend:{...A,roundingPercentage:0,position:`bottom`}}},table:{...R,useDialog:!1,th:I,td:{...L,roundingValue:0,roundingPercentage:0}},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),translations:{target:`Target`,value:`Value`,datapoint:`Datapoint`}},q={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],useCssAnimation:!1,zoomAnimationFrames:20,zoomEnabled:!0,downsample:E,style:{fontFamily:`inherit`,chart:{height:512,width:512,backgroundColor:g,color:_,layout:{labels:{quadrantLabels:{show:!0,tl:{text:``,color:_,fontSize:S._16,bold:!0},tr:{text:``,color:_,fontSize:S._16,bold:!0},br:{text:``,color:_,fontSize:S._16,bold:!0},bl:{text:``,color:_,fontSize:S._16,bold:!0}},plotLabels:{showAsTag:!1,show:!0,fontSize:S._10,color:_,offsetY:8,rounding:0,x:{formatter:null},y:{formatter:null}},axisLabels:{show:!0,fontSize:S._14,color:{positive:_,negative:_}}},grid:{stroke:y,strokeWidth:1.5,showArrows:!0,graduations:{stroke:y,strokeWidth:.5,show:!0,steps:5,fill:!0,color:y,roundingForce:10},xAxis:{min:-100,max:100,auto:!0,name:``,show:!0},yAxis:{min:-100,max:100,auto:!0,name:``,show:!0}},plots:{radius:6,outline:!0,outlineColor:c,outlineWidth:1},areas:{show:!0,opacity:40,useGradient:!0}},title:k,tooltip:{...j,roundingValue:0,showShape:!0},legend:{...A,position:`bottom`}}},table:{...R,useDialog:!1,th:I,td:{...L,roundingValue:0}},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!0,fullscreen:!0,annotator:!0,svg:!0}),translations:{category:`Category`,item:`Item`,side:`Side`}},J={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,theme:``,customPalette:[],style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,animation:{use:!0,speed:1,acceleration:1},layout:{radiusRatio:1,track:{size:1,useGradient:!0,gradientIntensity:20},markers:{show:!0,color:_,bold:!0,fontSizeRatio:1,offsetY:0,roundingValue:0,formatter:null,prefix:``,suffix:``},segmentSeparators:{show:!1,offsetOut:0,offsetIn:0,stroke:r,strokeWidth:2},segmentNames:{show:!0,curved:!0,offsetRatio:1.1,fontSize:S._16,minFontSize:C,useSerieColor:!0,color:_,bold:!1},indicatorArc:{show:!1,radius:123,fill:y},pointer:{show:!0,type:`pointy`,size:1,stroke:c,strokeWidth:12,useRatingColor:!0,color:o,circle:{radius:10,stroke:r,strokeWidth:2,color:c}}},legend:{show:!0,fontSize:S._48,prefix:``,suffix:``,roundingValue:1,showPlusSymbol:!0,useRatingColor:!0,color:_,formatter:null},title:k}},userOptions:P({pdf:!0,img:!0,fullscreen:!0,annotator:!0,svg:!0}),translations:{base:`Base`}},Y={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,theme:``,layout:`classic`,style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,animation:{use:!0,speed:.5,acceleration:1},layout:{wheel:{radiusRatio:1,tiltAngle3d:50,ticks:{type:`classic`,rounded:!0,inactiveColor:y,activeColor:u,sizeRatio:.9,quantity:100,strokeWidth:5,stroke:`transparent`,spacingRatio3d:1,shadeColorRatio3d:.15,depth3d:0,gradient:{show:!0,shiftHueIntensity:100}}},innerCircle:{show:!0,stroke:y,strokeWidth:1,radiusRatio:1},percentage:{show:!0,fontSize:S._48,rounding:1,bold:!0,formatter:null,offsetX:0,offsetY:0,stroke:`transparent`,strokeWidth:0}},title:k}},userOptions:P({pdf:!0,img:!0,fullscreen:!0,annotator:!0,svg:!0})},X={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,theme:``,style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,width:312,height:56,animation:{use:!0,speed:.5,acceleration:1},layout:{display:`horizontal`,crescendo:!1,curved:!1,curveAngleX:10,curveAngleY:10,activeColor:u,inactiveColor:y,ticks:{gradient:{show:!0,shiftHueIntensity:100}}},percentage:{show:!0,useGradientColor:!0,color:u,fontSize:S._16,bold:!0,rounding:1,verticalPosition:T.BOTTOM,horizontalPosition:T.LEFT,formatter:null},title:k}},userOptions:P({pdf:!0,img:!0,fullscreen:!0,annotator:!0,svg:!0})},ie={devHints:D,debug:!1,loading:!1,theme:``,customPalette:[],a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,layout:{grandTotal:{show:!0,fontSize:S._20,bold:!0,prefix:``,suffix:``,roundingValue:0,color:_,text:`Grand total`,offsetY:0,formatter:null},roots:{stroke:c,strokeWidth:5,useGradient:!0,gradientIntensity:20,underlayerColor:c,labels:{show:!0,fontSize:S._16,adaptColorToBackground:!0,color:c,bold:!0,roundingValue:0,prefix:``,suffix:``,formatter:null,name:{color:_,fontSize:S._16,bold:!0}}},verticalSeparator:{stroke:c,strokeWidth:5},links:{opacity:10},branches:{stroke:c,strokeWidth:0,borderRadius:6,useGradient:!0,gradientIntensity:20,underlayerColor:c,widthRatio:1.5,labels:{show:!0,fontSize:S._14,color:_,bold:!0,dataLabels:{show:!0,hideUnderValue:5,fontSize:S._14,roundingValue:0,roundingPercentage:0,prefix:``,suffix:``,formatter:null}}},nuts:{offsetX:20,useGradient:!0,gradientIntensity:30,selected:{useMotion:!0,useGradient:!0,gradientIntensity:40,roundingValue:0,roundingPercentage:0,labels:{dataLabels:{hideUnderValue:5,color:_,fontSize:S._12,bold:!0,prefix:``,suffix:``,formatter:null},core:{total:{color:_,fontSize:S._24,bold:!1},value:{color:_,fontSize:S._24,bold:!0,prefix:``,suffix:``}}}}},legend:{fontSize:S._16,color:_,roundingValue:0,roundingPercentage:0,prefix:``,suffix:``},title:{...k,offsetY:0,subtitle:{...k.subtitle,offsetY:0}}}}},table:{...R,useDialog:!1,th:{...I,translations:{rootName:`root name`,rootValue:`root value`,rootToTotal:`%/total`,branchName:`branch name`,branchValue:`branch value`,branchToRoot:`%/root`,branchToTotal:`%/total`,nutName:`nut name`,nutValue:`nut value`,nutToBranch:`%/branch`,nutToRoot:`%/root`,nutToTotal:`%/total`}},td:{...L,roundingValue:0,roundingPercentage:0}},userOptions:P({pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),translations:{total:`Total`,proportionToTree:`of grand total`,of:`of`}},ae={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},transitions:M,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],useCssAnimation:!1,useStartAnimation:!0,useBlurOnHover:!0,style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,useGradient:!0,gradientIntensity:20,layout:{maxThickness:64,gutter:{color:y,width:.62},track:{width:.62},labels:{...O,show:!0,fontSize:S._14,minFontSize:C,color:_,roundingValue:0,roundingPercentage:0,bold:!0,offsetX:0,offsetY:0,value:{show:!0,formatter:null},percentage:{show:!0}}},title:k,legend:{...A,...O,roundingValue:0,roundingPercentage:0,showValue:!0,showPercentage:!0,position:`bottom`},tooltip:{...j,...O,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0}}},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),table:{...R,useDialog:!1,th:I,td:{...L,roundingValue:0,roundingPercentage:0},translations:{value:`Value`,percentage:`Percentage`,serie:`Serie`}}},Z={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,autoSize:!0,responsive:!1,theme:``,customPalette:[],useCssAnimation:!1,transitions:M,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,width:512,height:316,layout:{bars:{rowColor:null,rowRadius:4,sort:ee.DESC,useStroke:!1,strokeWidth:2,height:32,gap:6,borderRadius:4,offsetX:12,paddingRight:0,useGradient:!0,gradientIntensity:20,fillOpacity:90,underlayerColor:c,dataLabels:{color:_,bold:!0,fontSize:S._14,value:{show:!0,roundingValue:0,prefix:``,suffix:``,formatter:null},percentage:{show:!0,roundingPercentage:0},offsetX:0},nameLabels:{show:!0,color:_,bold:!1,fontSize:S._14,offsetX:0},parentLabels:{show:!0,color:_,bold:!1,fontSize:S._14,offsetX:0,paddingBottom:0}},highlighter:{color:r,opacity:5},separators:{show:!1,color:y,strokeWidth:1,fullWidth:!0}},title:k,legend:{...A,position:T.TOP,roundingValue:0,roundingPercentage:0,prefix:``,suffix:``,showValue:!0},tooltip:{...j,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0,prefix:``,suffix:``}}},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,sort:!0,fullscreen:!0,annotator:!0,svg:!0}),table:{...R,useDialog:!1,th:I,td:{...L,roundingValue:0,roundingPercentage:0,prefix:``,suffix:``}},translations:{parentName:`Serie`,childName:`Child`,value:`value`,percentageToTotal:`%/total`,percentageToSerie:`%/serie`}},oe=Z,se={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,style:{fontFamily:`inherit`,backgroundColor:g,color:_,layout:{height:300,width:1e3,padding:F([0,0,0,0]),crosshairs:{show:!1,stroke:r,strokeWidth:1,strokeDasharray:0},cells:{scaleMax:null,scaleMin:null,rowTotal:{value:{show:!1},color:{show:!1}},columnTotal:{value:{show:!1,rotation:0,autoRotate:{enable:!0,angle:-30},offsetX:0,offsetY:0},color:{show:!1}},value:{show:!1,fontSize:S._18,bold:!1,roundingValue:0,color:_,formatter:null},colors:{hot:d,cold:u,underlayer:c},spacing:2,selected:{border:4,color:r}},dataLabels:{prefix:``,suffix:``,xAxis:{show:!0,values:[],datetimeFormatter:N,showOnlyAtModulo:null,rotation:0,autoRotate:{enable:!0,angle:-30},fontSize:S._10,color:_,bold:!1,offsetX:0,offsetY:0},yAxis:{show:!0,values:[],datetimeFormatter:N,fontSize:S._10,color:_,bold:!1,offsetX:0,offsetY:0}}},title:k,legend:{...A,fontSize:S._12,roundingValue:0,width:24},tooltip:{...j,roundingValue:0}},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),table:{...R,useDialog:!1,colNames:{xAxis:`X`},th:I,td:{...L,roundingValue:0}}},ce={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},transitions:M,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],useCssAnimation:!1,downsample:E,usePerformanceMode:!1,style:{fontFamily:`inherit`,backgroundColor:g,color:_,layout:{height:316,width:512,padding:F([0,0,0,0]),axis:{show:!0,stroke:y,strokeWidth:1,xMin:null,xMax:null,yMin:null,yMax:null},marginalBars:{show:!1,size:40,tranches:20,opacity:.6,fill:r,strokeWidth:1,offset:20,borderRadius:2,useGradient:!0,showLines:!1,linesStrokeWidth:1,highlighter:{show:!0,opacity:.1,color:r,stroke:r,strokeWidth:.5,strokeDasharray:2,highlightBothAxes:!1}},plots:{radius:2,hoverRadiusRatio:2,stroke:c,strokeWidth:.3,opacity:.6,opacityNotSelected:.6,name:{show:!1,fontSize:12,offsetY:0,color:r},significance:{show:!0,useDistanceOpacity:!1,deviationThreshold:10,opacity:.3},deviation:{translation:`deviation`,roundingValue:1},giftWrap:{show:!1,strokeWidth:1,strokeDasharray:0,fillOpacity:.2},selectors:{show:!0,stroke:r,strokeWidth:.7,strokeDasharray:0,labels:{fontSize:S._12,color:_,rounding:2,bold:!1,showName:!0,prefix:``,suffix:``,x:{formatter:null},y:{formatter:null}},markers:{radius:1.5,stroke:c,strokeWidth:.5,fill:r}}},correlation:{show:!0,strokeDasharray:2,strokeWidth:1,label:{show:!0,fontSize:S._12,color:_,bold:!0,roundingValue:2,useSerieColor:!0}},dataLabels:{reverseAxisLabels:!1,xAxis:{name:``,show:!0,fontSize:S._10,color:_,bold:!1,offsetX:0,offsetY:0,roundingValue:0,showValue:!0,scales:{show:!1,steps:10,useNiceScale:!0,labels:{formatter:null,color:r,fontSize:12,offsetY:0},verticalLines:{show:!1,stroke:a,strokeWidth:1}}},yAxis:{name:``,show:!0,fontSize:S._10,color:_,bold:!1,offsetX:0,offsetY:0,roundingValue:0,showValue:!0,scales:{show:!1,steps:10,useNiceScale:!0,labels:{formatter:null,color:r,fontSize:12,offsetX:0},horizontalLines:{show:!1,stroke:a,strokeWidth:1}}}}},title:k,legend:{...A,roundingValue:0,position:`bottom`},tooltip:{...j,roundingValue:2,showShape:!0,prefix:``,suffix:``}},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),table:{...R,useDialog:!1,th:I,td:{...L,roundingValue:2,roundingAverage:1},translations:{correlationCoefficient:`Correlation Coef.`,nbrPlots:`Nbr plots`,average:`Average`,series:`Series`}}},le={devHints:D,skeletonDataset:null,skeletonConfig:null,type:`candlestick`,debug:!1,loading:!1,responsive:!1,responsiveProportionalSizing:!0,a11y:x,transitions:M,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,useCssAnimation:!1,style:{fontFamily:`inherit`,backgroundColor:g,color:_,height:316,width:512,layout:{padding:F([0,0,0,0]),selector:{color:y,opacity:10},grid:{show:!0,stroke:y,strokeWidth:.5,verticalLines:{show:!1,strokeDasharray:0,strokeWidth:.5,stroke:y},horizontalLines:{show:!1,strokeDasharray:0,strokeWidth:.5,stroke:y},xAxis:{ticks:{show:!0},dataLabels:{show:!0,fontSize:S._10,color:_,offsetY:0,bold:!1,rotation:0,autoRotate:{enable:!0,angle:-30},datetimeFormatter:N,showOnlyFirstAndLast:!1,showFirstAndLast:!0,showOnlyAtModulo:!1,modulo:2}},yAxis:{position:`left`,scale:{min:null,max:null},dataLabels:{show:!0,fontSize:S._12,color:_,roundingValue:0,offsetX:0,bold:!1,steps:10,prefix:``,suffix:``}}},wick:{stroke:r,strokeWidth:.5,extremity:{shape:w.LINE,size:`auto`,color:r}},candle:{borderRadius:1,stroke:r,strokeWidth:.5,colors:{bearish:d,bullish:f},gradient:{show:!0,underlayer:c},widthRatio:.5}},zoom:{...z,minimap:B,preview:{enable:!0,fill:`#CCCCCC50`,stroke:`#6A6A6A`,strokeWidth:2,strokeDasharray:0},useDefaultFormat:!0,timeFormat:`yyyy-MM-dd HH:mm:ss`,customFormat:null},title:k,tooltip:{...j,roundingValue:0,prefix:``,suffix:``,showChart:!0,useDefaultTimeFormat:!0,timeFormat:`yyyy-MM-dd HH:mm:ss`}},translations:{period:`Period`,open:`Open`,high:`High`,low:`Low`,last:`Close`,volume:`Volume`},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),table:{...R,th:I,useDialog:!1,td:{...L,roundingValue:2,prefix:``,suffix:``}}},ue={useCursorPointer:!1,devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,theme:``,responsive:!1,type:w.LINE,downsample:E,a11y:x,translations:{period:`period`,value:`value`},gradientPath:{show:!1,segments:256,colors:{high:`#34eb96`,low:`#eb4034`}},temperatureColors:{show:!1,colors:[`#34eb96`,`#eb4034`]},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},style:{chartWidth:290,animation:{show:!1,animationFrames:360},padding:F([12,12,3,0]),fontFamily:`inherit`,backgroundColor:g,scaleMin:null,scaleMax:null,line:{color:u,strokeWidth:2,smooth:!1,cutNullValues:!1,nullDashes:{show:!1},dashIndices:[],dashArray:4,pulse:{show:!1,loop:!0,color:c,durationMs:4e3,easing:`ease-in-out`,radius:2,cubicBezier:[.45,.45,.55,.55],trail:{show:!1,length:6,opacity:.75}}},bar:{borderRadius:3,color:u},zeroLine:{color:r,strokeWidth:1},plot:{show:!0,radius:4,stroke:c,strokeWidth:1},verticalIndicator:{show:!0,strokeWidth:1.5,color:u,strokeDasharray:3},dataLabel:{show:!0,position:T.LEFT,offsetX:0,offsetY:0,fontSize:S._20,bold:!0,color:_,roundingValue:0,valueType:`latest`,prefix:``,suffix:``,formatter:null,datetimeFormatter:N},title:{show:!0,textAlign:T.LEFT,color:_,fontSize:S._16,bold:!0,text:``},tooltip:{show:!1,fontSize:S._14,color:_,backgroundColor:g,offsetY:0,borderWidth:0,borderColor:b,borderRadius:2,backgroundOpacity:100},area:{show:!0,useGradient:!0,opacity:30,color:u},zoom:{show:!1,selection:{fill:r,stroke:`transparent`,fillOpacity:.1,strokeOpacity:.5,strokeWidth:1,strokeDasharray:0},resetButton:{show:!0,title:`Reset zoom · double-click chart or press Esc`,ariaLabel:`Reset zoom`,color:r}}}},de={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],style:{fontFamily:`inherit`,backgroundColor:g,animation:{show:!0,animationFrames:60},layout:{independant:!0,percentage:!0,target:0,showTargetValue:!1,targetValueText:``},gutter:{backgroundColor:y,opacity:100},bar:{borderRadius:null,gradient:{show:!0,intensity:40,underlayerColor:c}},labels:{fontSize:S._16,name:{position:`top-left`,width:`100%`,color:_,bold:!1},value:{show:!0,bold:!0}},title:{text:``,color:_,fontSize:S._16,bold:!0,textAlign:T.LEFT,margin:`0 0 6px 0`,subtitle:{color:v,text:``,fontSize:S._12,bold:!1}},gap:4}},fe={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,useCursorPointer:!1,a11y:{...x,translations:{...x.translations,series:`Series`,percentage:`Percentage`,value:`Value`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],style:{fontFamily:`inherit`,backgroundColor:g,animation:{show:!0,animationFrames:60},bar:{borderRadius:null,gradient:{show:!0,intensity:40,underlayerColor:c}},legend:{show:!0,textAlign:T.LEFT,fontSize:S._12,margin:`6px 0 0 0`,name:{color:_,bold:!1},value:{show:!0,bold:!1,color:_,prefix:``,suffix:``,rounding:0,formatter:null},percentage:{show:!0,bold:!0,color:_,rounding:1},selectAllToggle:{show:!1,backgroundColor:b,color:_}},title:{...k,textAlign:T.LEFT,margin:`0 0 6px 0`},tooltip:{...j}}},pe={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,series:`Series`,time:`Time`,value:`Value`,label:`Label`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,style:{fontFamily:`inherit`,backgroundColor:g,animation:{show:!0,speedMs:500},layout:{height:96,width:640,padding:F([24,0,36,0])},bars:{shape:w.SQUARE,strokeWidth:0,colors:{positive:u,negative:d,gradient:{show:!0}},borderRadius:24,gap:12},labels:{value:{show:!0,fontSize:S._14,minFontSize:C,color:_,bold:!0,rounding:1,prefix:``,suffix:``,offsetY:0,formatter:null},valueLabel:{show:!0,fontSize:S._14,minFontSize:C,color:_,bold:!1,rounding:0},timeLabel:{show:!0,fontSize:S._12,minFontSize:C,color:_,bold:!1}},selector:{stroke:u,fill:`#2D353C10`,strokeWidth:2,strokeDasharray:0,borderRadius:2},title:{text:``,color:_,fontSize:S._16,bold:!0,textAlign:T.LEFT,subtitle:{color:v,text:``,fontSize:S._12,bold:!1},margin:`0 0 6px 0`}}},me={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,theme:``,style:{fontFamily:`inherit`,background:c,height:84,basePosition:72,animation:{show:!0,speedMs:150},title:{show:!0,fontSize:S._12,position:T.TOP,textAlign:T.CENTER,bold:!1,color:_},dataLabel:{fontSize:S._20,autoColor:!0,color:_,offsetY:0,bold:!0,rounding:0,prefix:``,suffix:``,formatter:null},colors:{min:d,max:f,showGradient:!0},track:{autoColor:!0,color:u,strokeLinecap:w.ROUND},gutter:{color:y,strokeLinecap:w.ROUND}}},he={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,theme:``,downsample:E,style:{fontFamily:`inherit`,backgroundColor:g,height:80,width:300,animation:{show:!0,animationFrames:20},line:{stroke:r,strokeWidth:2,strokeLinecap:w.ROUND,strokeLinejoin:w.ROUND,smooth:!0,useColorTrend:!0},area:{show:!0,useGradient:!0,opacity:20},dataLabel:{show:!0,useColorTrend:!0,color:_,fontSize:S._14,bold:!1,prefix:``,suffix:``,rounding:0,formatter:null},trendLabel:{trendType:`global`,useColorTrend:!0,color:_,fontSize:S._14,bold:!0,rounding:0},arrow:{colors:{positive:f,neutral:i,negative:d}},padding:F([12,12,12,82])}},ge={annotatorPalette:h,devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,a11y:x,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},transitions:M,responsive:!1,theme:``,axisLabelsFontSize:S._12,backgroundColor:g,barGap:12,barAnimated:!0,barStrokeWidth:1,blurOnHover:!0,chartIsBarUnderDatasetLength:6,color:_,customPalette:[],dataLabelFontSize:S._14,dataLabelRoundingPercentage:1,dataLabelRoundingValue:0,donutHideLabelUnderPercentage:3,donutCurvedMarkers:!0,donutLabelMarkerStrokeWidth:1,donutRadiusRatio:.4,donutShowTotal:!0,donutStrokeWidth:2,donutStroke:g,donutThicknessRatio:.18,donutTotalLabelFontSize:S._24,donutTotalLabelOffsetY:0,donutTotalLabelText:`Total`,donutUseShadow:!1,donutShadowColor:r,fontFamily:`inherit`,formatter:null,height:338,legendFontSize:S._12,legendIcon:`circleFill`,legendIconSize:S._12,legendPosition:`bottom`,showLegendSelectAllToggle:!1,legendSelectAllToggleBackgroundColor:b,legendSelectAllToggleColor:_,lineAnimated:!0,lineSmooth:!0,lineStrokeWidth:2,paletteStartIndex:0,showDataLabels:!0,showLegend:!0,showTooltip:!0,showUserOptions:!0,userOptionsPosition:`right`,showUserOptionsOnChartHover:!1,keepUserOptionsStateOnChartLeave:!0,useCursorPointer:!1,userOptionsButtons:{tooltip:!0,pdf:!0,img:!0,fullscreen:!0,annotator:!0,svg:!0,altCopy:!1},userOptionsButtonTitles:{open:`Open options`,close:`Close options`,tooltip:`Toggle tooltip`,pdf:`Download PDF`,img:`Download PNG`,fullscreen:`Toggle fullscreen`,annotator:`Toggle annotator`,svg:`Download SVG`,altCopy:`Copy alt text`},userOptionsPrint:{overflowTolerance:.2,orientation:`auto`,scale:2},userOptionsCallbacks:{tooltip:null,pdf:null,img:null,fullscreen:null,annotator:null,svg:null,altCopy:null},title:``,titleBold:!0,titleFontSize:S._16,titleTextAlign:`center`,tooltipTeleportTo:`body`,tooltipCustomFormat:null,tooltipBackgroundOpacity:100,tooltipBorderRadius:4,tooltipBorderColor:a,tooltipBorderWidth:1,tooltipFontSize:S._14,tooltipPosition:T.CENTER,tooltipOffsetX:0,tooltipOffsetY:24,tooltipSmooth:!0,tooltipSmoothForce:.18,tooltipSmoothSnapThreshold:.25,tooltipBackdropFilter:!0,useCustomLegend:!1,valuePrefix:``,valueSuffix:``,width:512,xAxisLabel:``,xyAxisStroke:y,xyAxisStrokeWidth:1,xyGridStroke:y,xyGridStrokeWidth:.5,xyHighlighterColor:r,xyHighlighterOpacity:.05,xyLabelsXFontSize:S._10,xyLabelsYFontSize:S._12,xyPaddingBottom:12,xyPaddingLeft:12,xyPaddingRight:12,xyPaddingTop:12,xyPeriodLabelsRotation:0,xyPeriodLabelsAutoRotate:{enable:!0,angle:-30},xyPeriods:[],datetimeFormatter:N,xyPeriodsShowOnlyAtModulo:!1,xyPeriodsModulo:12,xyScaleSegments:15,xyShowAxis:!0,xyShowGrid:!0,xyShowScale:!0,yAxisLabel:``,zoomXy:!0,zoomXyAutoFit:!1,zoomColor:o,zoomHighlightColor:s,zoomFontSize:S._14,zoomUseResetSlot:!1,zoomMinimap:V,zoomStartIndex:null,zoomEndIndex:null,zoomEnableRangeHandles:!0,zoomEnableSelectionDrag:!0,zoomFocusOnDrag:!1,zoomFocusRangeRatio:.2,zoomMaxWidth:null,dragToZoom:{show:!1,selection:{fill:u,stroke:i,fillOpacity:.2,strokeOpacity:.5,strokeWidth:1,strokeDasharray:0}}},_e={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,style:{fontFamily:`inherit`,backgroundColor:g,color:_,height:500,width:500,layout:{padding:F([12,12,36,12]),grid:{show:!0,stroke:y,strokeWidth:1},dataLabels:{sideTitles:{show:!0,fontSize:S._18,color:_,useSideColor:!0,bold:!1,offsetY:0},xAxis:{show:!0,fontSize:S._12,color:_,bold:!1,scale:1e3,translation:`in thousands`,formatter:null,rotation:0,autoRotate:{enable:!0,angle:-30}},yAxis:{show:!0,display:`age`,fontSize:S._12,color:_,bold:!1,showEvery:5,formatter:null}},centerSlit:{width:20},bars:{gap:2,borderRadius:2,left:{color:d},right:{color:u},gradient:{show:!0,underlayer:c,intensity:60,shiftHue:.05},labels:{show:!0,showOnHover:!0,fontSize:S._12,color:_,bold:!1,formatter:null,offsetX:0}}},highlighter:{color:r,opacity:5},title:k,tooltip:{...j,roundingValue:0}},translations:{age:`age`,male:`male`,female:`female`,total:`total`,year:`year`},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),table:{...R,useDialog:!1,th:I,td:L}},ve={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},responsiveProportionalSizing:!0,theme:``,customPalette:[],style:{fontFamily:`inherit`,backgroundColor:g,color:_,size:400,limit:50,animation:{show:!0,speedMs:300},labels:{color:_,fontSize:S._14,minFontSize:C},weightLabels:{size:8,show:!0,formatter:null,prefix:``,suffix:``,rounding:0},links:{curved:!1,maxWidth:3},circle:{radiusProportion:.2,stroke:o,strokeWidth:1,offsetY:0},plot:{radius:3,useSerieColor:!0,color:r},title:k},userOptions:P({pdf:!0,img:!0,fullscreen:!0,annotator:!0,svg:!0})},ye={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,theme:``,customPalette:[],style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,height:360,width:256,thermometer:{width:48},padding:{top:12,bottom:12},graduations:{show:!0,sides:`both`,height:2,stroke:y,strokeWidth:1,showIntermediate:!0,gradient:{show:!0,intensity:20}},animation:{use:!0,speedMs:1e3},label:{show:!0,fontSize:S._20,minFontSize:C,rounding:1,bold:!0,color:_,prefix:``,suffix:``,formatter:null}},title:k},userOptions:P({pdf:!0,img:!0,fullscreen:!0,annotator:!0,svg:!0})},be={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},transitions:M,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],useCssAnimation:!1,useBlurOnHover:!0,style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,size:360,layout:{labels:{dataLabels:{...O,prefix:``,suffix:``,formatter:null,show:!1,offsetX:0,fontSize:10,color:_,bold:!1,roundingValue:0,roundingPercentage:0,showValue:!0,showPercentage:!0,markers:{stroke:`#8A8A8A`,strokeWidth:1,radius:3,position:`right`}}},rings:{strokeWidth:2,stroke:y,gradient:{show:!0,intensity:40,underlayerColor:c},useShadow:!0}},legend:{...A,roundingValue:0,roundingPercentage:0,showValue:!0,showPercentage:!0,position:`bottom`},title:k,tooltip:{...j,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0}}},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0,labels:!0}),table:{...R,useDialog:!1,columnNames:{series:`Series`,value:`Value`,percentage:`Percentage`},th:I,td:{...L,roundingValue:0,roundingPercentage:0}}},xe={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,theme:``,a11y:x,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},transitions:M,customPalette:[],style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,zoom:z,donuts:{hover:{hideLabelsUnderValue:5}},dialog:{show:!0,backgroundColor:g,color:_,header:{backgroundColor:g,color:_},donutChart:{...U,responsive:!0,userOptions:{...U.userOptions,buttons:{...U.userOptions.buttons,pdf:!1}},style:{...U.style,chart:{...U.style.chart,layout:{...U.style.chart.layout,donut:{...U.style.chart.layout.donut,strokeWidth:64},labels:{...U.style.chart.layout.labels,percentage:{...U.style.chart.layout.labels.percentage,fontSize:16},name:{...U.style.chart.layout.labels.name,fontSize:12},hollow:{...U.style.chart.layout.labels.hollow,average:{...U.style.chart.layout.labels.hollow.average,show:!1}}}}}}}},layout:{height:316,width:512,padding:F([5,10,5,10]),grid:{show:!0,stroke:y,strokeWidth:.7,showVerticalLines:!0,axis:{yLabel:``,yLabelOffsetX:0,xLabel:``,xLabelOffsetY:0,fontSize:S._14,color:_},yAxis:{position:`left`,scaleMin:null,scaleMax:null,autoScale:!1,dataLabels:{show:!0,fontSize:S._10,color:_,roundingValue:0,offsetX:0,bold:!1,steps:10}},xAxis:{dataLabels:{show:!0,values:[],datetimeFormatter:N,fontSize:S._10,showOnlyFirstAndLast:!1,color:_,rotation:0,autoRotate:{enable:!0,angle:-30},offsetY:0}}},line:{show:!0,stroke:o,strokeWidth:4},highlighter:{color:r,opacity:5},dataLabels:{show:!0,fontSize:S._10,color:_,bold:!1,rounding:0,prefix:``,suffix:``,offsetY:0,formatter:null}},title:k,legend:{...A,roundingValue:0,roundingPercentage:0,showValue:!0,showPercentage:!0,position:`bottom`}}},userOptions:P({pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),table:{...R,useDialog:!1,columnNames:{period:`Period`,total:`Total`},th:I,td:{...L,roundingValue:0,roundingPercentage:0}}},Se={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,layout:{grid:{show:!0,stroke:y,strokeWidth:.5},outerPolygon:{stroke:y,strokeWidth:1},dataPolygon:{color:u,opacity:60,gradient:{show:!0,intensity:1},stroke:u,strokeWidth:0},smileys:{strokeWidth:1,colors:{1:`#e20001`,2:`#ff9f03`,3:`#ffd004`,4:`#9ac900`,5:`#059f00`}},dataLabel:{color:_,roundingValue:0,roundingPercentage:0,bold:!0,prefix:``,suffix:``,formatter:null}},title:k,legend:{...A,roundingValue:0,roundingPercentage:0,position:`bottom`}}},userOptions:P({pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),table:{...R,useDialog:!1,columnNames:{series:`Series`,value:`Value`,percentage:`Percentage`},th:I,td:{...L,roundingValue:0,roundingPercentage:0}}},Ce={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,nodes:{stroke:c,strokeHovered:r},links:{stroke:o,strokeWidth:2,useChildColor:!1},title:k,tooltip:j,zoom:{show:!0,speed:1}}},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!0,fullscreen:!0,annotator:!0,svg:!0,zoom:!0}),table:{...R,useDialog:!1,th:I,td:L,translations:{nodeName:`Node name`,details:`Details`,ancestor:`Parent node`}}},we={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,theme:``,customPalette:[],useCssAnimation:!1,useBlurOnHover:!0,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},serieToggleAnimation:{show:!0,durationMs:500},startAnimation:{show:!1,durationMs:1e3,staggerMs:50},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!0,fullscreen:!0,annotator:!0,svg:!0}),style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,useGradient:!0,gradientIntensity:40,padding:F([0,0,0,0]),width:512,height:512,layout:{labels:{dataLabels:{...O,show:!0,prefix:``,suffix:``,hideUnderValue:3,fontSize:S._14,offsetX:4,offsetY:12,useSerieColor:!1,color:_,showValue:!0,showPercentage:!0,boldValue:!1,boldPercentage:!0,roundingValue:0,roundingPercentage:0,showDonutName:!0,boldDonutName:!0,curvedDonutName:!0,donutNameAbbreviation:!1,donutNameMaxAbbreviationSize:3,donutNameOffsetY:0,formatter:null}},donut:{strokeWidth:200,borderWidth:2,spacingRatio:.5,useShadow:!1,shadowColor:r,emptyFill:y,selectedColor:`#0000001A`,borderColorAuto:!0,borderColor:b}},legend:{...A,...O,roundingValue:0,roundingPercentage:0,showValue:!0,showPercentage:!0,position:`bottom`},title:k,tooltip:{...j,...O,showAllItemsAtIndex:!0,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0}}},table:{...R,useDialog:!1,columnNames:{series:`Series`,value:`Value`,percentage:`Percentage`},th:I,td:{...L,roundingValue:0,roundingPercentage:0}}},Te={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},transitions:M,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],useCssAnimation:!1,useBlurOnHover:!0,style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,layout:{arcs:{strokeWidth:24,borderWidth:12,offsetX:0,offsetY:0,hoverEffect:{show:!0,multiplicator:1.1},gradient:{show:!0,intensity:30,color:c}},labels:{dataLabels:{...O,prefix:``,suffix:``,formatter:null}}},legend:{...A,roundingValue:0,roundingPercentage:0,showValue:!0,showPercentage:!0,position:`bottom`},title:k,tooltip:{...j,showValue:!0,showPercentage:!0,roundingValue:0,roundingPercentage:0}}},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),table:{...R,useDialog:!1,columnNames:{series:`Series`,value:`Value`,percentage:`Percentage`},th:I,td:{...L,roundingValue:0,roundingPercentage:0}}},Ee={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,type:0,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},transitions:M,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},responsiveProportionalSizing:!0,theme:``,customPalette:[],useCssAnimation:!0,userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!0,fullscreen:!0,annotator:!0,svg:!0}),style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,height:600,width:600,padding:F([12,12,12,12]),grid:{show:!0,stroke:o,strokeWidth:1,scaleSteps:10,scaleMin:null,scaleMax:null,horizontalGrid:{show:!0,stroke:o,strokeWidth:.5,strokeDasharray:4},verticalGrid:{show:!0,stroke:o,strokeWidth:.5,strokeDasharray:4}},plots:{opacity:.9,radius:4,stroke:c,strokeWidth:1,shape:w.CIRCLE,gradient:{show:!0,intensity:40}},violin:{widthRatio:1,strokeWidth:1,opacity:.2,strokeOpacity:.35,useSerieColor:!0,stroke:`#5A5A5A`,fill:`#5A5A5A`,boxPlot:{show:!0,widthRatio:1,useSerieColor:!0,color:`#5A5A5A`,medianCircleRadiusRatio:1,medianCircleFill:c},tooltipLabels:{upperAdjacent:`Upper adjacent`,q3:`Q3`,median:`Median`,q1:`Q1`,lowerAdjacent:`Lower adjacent`,iqr:`IQR`,count:`Count`}},labels:{prefix:``,suffix:``,formatter:null,bestPlotLabel:{show:!0,showValue:!0,fontSize:S._14,color:_,rounding:0,offsetY:0},axis:{xLabel:``,xLabelOffsetY:0,yLabel:``,yLabelOffsetX:0,fontSize:S._14,color:_},xAxisLabels:{show:!0,color:_,fontSize:S._14,offsetY:0,rotation:0,autoRotate:{enable:!0,angle:-30}},yAxisLabels:{show:!0,color:_,fontSize:S._14,rounding:0,offsetX:0}},title:k,tooltip:{...j,roundingValue:0}}},table:{...R,useDialog:!1,columnNames:{series:`Series`,value:`Value`},th:I,td:{...L,roundingValue:0}}},De={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,useAnimation:!1,animationSpeed:2,userOptions:P({pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,width:600,rowHeight:48,padding:F([12,24,12,12]),plots:{startColor:d,endColor:u,evaluationColors:{enable:!1,positive:`#2ca02c`,negative:`#d62728`,neutral:`#c7c7c7`},radius:6,stroke:c,strokeWidth:1,link:{strokeWidth:2,type:w.CURVED},gradient:{show:!0,intensity:40}},grid:{strokeWidth:1,scaleSteps:10,scaleMin:null,scaleMax:null,horizontalGrid:{show:!0,stroke:o,strokeWidth:.5,strokeDasharray:0},verticalGrid:{show:!0,stroke:o,strokeWidth:.5,strokeDasharray:0}},comparisonLines:{show:!0,strokeWidth:1,strokeDasharray:4,showRect:!0,rectColor:r,rectOpacity:5,showLabel:!0,labelColor:r,labelFontSize:S._12},highlighter:{color:r,opacity:5},labels:{prefix:``,suffix:``,formatter:null,axis:{yLabel:``,yLabelOffsetX:0,xLabel:``,xLabelOffsetY:0,fontSize:S._14,color:_},yAxisLabels:{show:!0,fontSize:S._14,color:_,offsetX:0,bold:!0,showProgression:!0,rounding:1,formatter:null},xAxisLabels:{show:!0,fontSize:S._14,color:_,offsetY:0,bold:!1,rounding:0,rotation:0,autoRotate:{enable:!0,angle:-30}},startLabels:{show:!0,fontSize:S._10,color:_,offsetY:0,rounding:0,useStartColor:!0,useEvaluationColor:!0},endLabels:{show:!0,fontSize:S._10,color:_,offsetY:0,rounding:0,useEndColor:!0,useEvaluationColor:!0}},legend:{...A,labelStart:`start`,labelEnd:`end`,labelPositive:`positive`,labelNegative:`negative`,labelNeutral:`neutral`,position:`bottom`},title:k}},table:{...R,useDialog:!1,columnNames:{series:`Series`,start:`Start value`,end:`End value`,progression:`Progression`},th:I,td:{...L,roundingValue:0,roundingPercentage:0}}},Oe={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],useCssAnimation:!1,style:{fontFamily:`inherit`,shape:w.BAR,chart:{animation:{use:!0,speed:1,acceleration:1},backgroundColor:g,color:_,bar:{color:u,stroke:u,strokeWidth:.7,shadeColor:r},box:{stroke:o,strokeWidth:.7,strokeDasharray:2,dimensions:{width:128,height:256,top:27,bottom:9,left:24,right:24,perspective:18}},title:k,legend:{showDefault:!0,fontSize:S._10,color:_,bold:!1,roundingValue:0,roundingPercentage:0,prefix:``,suffix:``,hideUnderPercentage:3},dataLabel:{show:!0,bold:!0,color:u,fontSize:S._12,rounding:1,formatter:null}}},userOptions:P({pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0}),table:{...R,useDialog:!1,columnNames:{series:`Series`,value:`Value`,percentage:`Percentage`},th:I,td:{...L,roundingValue:0,roundingPercentage:0}}},ke={debug:!1,devHints:D,theme:``,customPalette:[],responsiveBreakpoint:500,showAverage:!0,showMedian:!0,showTotal:!0,roundingAverage:0,roundingMedian:0,roundingValues:0,roundingTotal:0,prefix:``,suffix:``,formatter:null,showSparklines:!0,fontFamily:`inherit`,colNames:[],sortedDataColumnIndices:[],sortedSeriesName:!1,sortedSum:!1,sortedAverage:!1,sortedMedian:!1,resetSortOnClickOutside:!1,sparkline:{useGradient:!0,showArea:!0,strokeWidth:3,type:w.LINE,smooth:!0,cutNullValues:!1,dimensions:{width:150,heightRatio:1},animation:{show:!0,animationFrames:360}},translations:{serie:`Serie`,total:`Total`,average:`Average`,median:`Median`,chart:`Evolution`},title:{text:``,color:_,fontSize:S._20,bold:!0,textAlign:`center`,backgroundColor:g,subtitle:{color:v,text:``,fontSize:S._16,bold:!1}},thead:{backgroundColor:g,color:_,fontSize:S._14,outline:`none`,textAlign:T.LEFT,bold:!1},tbody:{showColorMarker:!0,backgroundColor:g,color:_,fontSize:S._14,outline:`none`,textAlign:T.LEFT,bold:!1,selectedColor:{useSerieColor:!0,fallback:y}},userOptions:P({pdf:!0,csv:!0,img:!0,fullscreen:!0})},Ae={debug:!1,devHints:D,theme:``,style:{fontFamily:`inherit`,backgroundColor:g,color:_,shapeSize:S._14,heatmapColors:{useIndividualScale:!1,min:c,max:u}},table:{responsiveBreakpoint:400,borderWidth:1,showSum:!1,showAverage:!1,showMedian:!1,head:{backgroundColor:g,color:_,values:[]}},userOptions:P({pdf:!0,csv:!0,img:!0,fullscreen:!0})},je={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],useCssAnimation:!1,animationDelayMs:20,quality:`fast`,strictPixelPadding:!0,userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,svg:!0,zoom:!0}),nodeCategories:{},nodeCategoryColors:{},style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,height:512,width:512,zoom:{show:!0},controls:{position:`bottom`,show:!0,backgroundColor:y,buttonColor:y,color:_,fontSize:14,border:`1px solid ${b}`,padding:`0.5rem`,borderRadius:`0.25rem`},words:{maxFontSize:100,minFontSize:S._10,bold:!1,proximity:0,packingWeight:1,color:_,usePalette:!0,hoverOpacity:.5,selectedStroke:`transparent`},title:k,tooltip:{...j,roundingValue:0}}},table:{...R,useDialog:!1,columnNames:{series:`Word`,value:`Value`},th:I,td:{...L,roundingValue:0,prefix:``,suffix:``}}},Me={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,theme:``,customPalette:[],a11y:x,downsample:{threshold:1e4},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!0,fullscreen:!0,stack:!0,annotator:!0}),events:{datapointEnter:null,datapointLeave:null,datapointClick:null},style:{fontFamily:`Arial`,chart:{backgroundColor:g,color:_,aspectRatio:`12 / 9`,stacked:!1,stackGap:20,scale:{ticks:10,min:null,max:null},zoom:{...z,minimap:V,preview:{enable:!1,fill:`#CCCCCC50`,stroke:`#6A6A6A`,strokeWidth:2,strokeDasharray:0},useDefaultFormat:!0,timeFormat:`yyyy-MM-dd HH:mm:ss`,customFormat:null},selector:{show:!0,color:r,dashed:!0,showHorizontalSelector:!1},tooltip:{...j,showTimeLabel:!0,useDefaultTimeFormat:!0,timeFormat:`yyyy-MM-dd HH:mm:ss`},legend:{...A,position:`bottom`},title:k,grid:{y:{showAxis:!0,axisColor:r,axisThickness:2,axisName:``,axisLabels:{show:!0,fontSizeRatio:1,color:_,offsetX:0,rounding:1,prefix:``,suffix:``,bold:!1},verticalLines:{show:!0,color:o,hideUnderXLength:20,position:`middle`}},x:{showAxis:!0,axisColor:r,axisThickness:2,axisName:``,horizontalLines:{show:!0,color:o,alternate:!0,opacity:20},timeLabels:{show:!0,showMarker:!0,fontSizeRatio:.8,values:[],datetimeFormatter:N,rotation:0,offsetY:30,color:_,modulo:12,bold:!1}},zeroLine:{show:!0,color:r,dashed:!0}},line:{cutNullValues:!0,plots:{show:!0,radiusRatio:1}},bar:{gradient:{show:!0}},area:{opacity:60},dataLabels:{show:!0,fontSizeRatio:1,useSerieColor:!0,color:_,offsetY:-12,formatter:null,bold:!0},paddingProportions:{top:.1,right:.05,bottom:.1,left:.1}}},table:{...R,useDialog:!1,rounding:1,columnNames:{period:`Period`,total:`Total`},th:I,td:L}},Ne={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],userOptions:P({pdf:!0,csv:!0,img:!0,table:!0,fullscreen:!0,annotator:!0,tooltip:!0,svg:!0}),nodeCategories:{},nodeCategoryColors:{},style:{fontFamily:`inherit`,chart:{backgroundColor:g,width:1e3,height:600,color:_,padding:F([12,12,12,12]),title:k,tooltip:{...j,showPercentage:!0,roundingPercentage:0,translations:{from:`From:`,to:`To:`,percentOfTotal:`Percent of total:`}},legend:{...A,position:`bottom`},nodes:{gap:10,width:40,labels:{show:!0,showValue:!0,fontSize:S._14,abbreviation:{use:!0,length:3},prefix:``,suffix:``,rounding:0,formatter:null},stroke:c,strokeWidth:1,borderRadius:0},links:{opacity:.8,stroke:c,strokeWidth:1,smooth:!0}}},table:{...R,useDialog:!1,columnNames:{source:`Source`,target:`Target`,value:`Value`},th:I,td:L}},Pe={devHints:D,skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},transitions:M,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},responsiveProportionalSizing:!0,theme:``,useCssAnimation:!1,customPalette:[],userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!0,fullscreen:!0,annotator:!0,svg:!0}),style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,height:600,width:1e3,padding:F([0,0,0,0]),comments:{show:!0,showInTooltip:!0,width:200,offsetX:0,offsetY:0},lines:{smooth:!0,strokeWidth:2,opacity:.8},plots:{show:!0,radius:6,opacity:.8},yAxis:{scaleTicks:10,stroke:r,strokeWidth:1,labels:{showAxisNames:!0,axisNames:[],axisNamesRotation:0,axisNamesAutoRotate:{enable:!0,angle:-30},axisNamesColor:_,axisNamesFontSize:S._16,axisNamesBold:!0,roundings:[],prefixes:[],suffixes:[],formatters:[],ticks:{show:!0,fontSize:S._14,color:_,bold:!1,offsetX:0,offsetY:0},datapoints:{show:!0,fontSize:S._14,useSerieColor:!0,color:_,offsetX:0,offsetY:0,bold:!0}}},title:k,legend:{...A,position:`bottom`},tooltip:j}},table:{...R,useDialog:!1,columnNames:{series:`Series`,item:`Item`},th:I,td:L}},Fe={devHints:D,type:`stopwatch`,responsive:!1,responsiveProportionalSizing:!0,useCursorPointer:!1,style:{fontFamily:`inherit`,backgroundColor:g,height:300,width:300,title:k},stopwatch:{showHours:!1,showHundredth:!0,cycleSeconds:5,track:{radiusRatio:1,stroke:y,fill:c,strokeWidth:2},tracker:{radiusRatio:1,stroke:c,strokeWidth:1,fill:r,gradient:{show:!0,color:c},aura:{show:!0,radiusRatio:1,fill:r,stroke:c,strokeWidth:0}},cycleTrack:{show:!0,stroke:r,strokeWidth:3},label:{fontSize:S._24,color:_,bold:!1},legend:{backgroundColor:g,buttons:{start:!0,pause:!0,reset:!0,restart:!0,lap:!0,iconColor:r},buttonTitles:{start:`Start`,pause:`Pause`,resume:`Resume`,reset:`Reset`,restart:`Restart`,lap:`Lap`}}}},Ie={bubbleEffect:!0,bubbleEffectColor:c,bubbleEffectOpacity:.1,centerCircleColor:c,centerCircleDasharray:0,centerCircleOpacity:0,centerCircleRadius:50,centerCircleStroke:o,centerCircleStrokeWidth:.5,coordinatesColor:o,coordinatesFontSize:S._10,coordinatesOffset:0,crosshairDasharray:0,crosshairStroke:o,crosshairStrokeWidth:.5,intersectCirclesFill:o,intersectCirclesRadius:2,isLoading:!1,parentId:``,showCenterCircle:!0,showCoordinates:!0,showCrosshair:!0,showIntersectCircles:!0,useWaveOnClick:!0},Le={open:!1,maxHeight:2e3,useCursorPointer:!1,head:{useArrowSlot:!1,backgroundColor:g,color:_,iconColor:u,iconSize:20,icon:`arrowRight`,padding:`12px 6px`},body:{backgroundColor:g,color:_}},Re={devHints:D,debug:!1,animationFrames:60,animationValueStart:0,backgroundColor:g,fontFamily:`inherit`,layoutClass:``,layoutCss:``,prefix:``,suffix:``,title:``,titleBold:!0,titleColor:_,titleClass:``,titleCss:``,titleFontSize:S._16,useAnimation:!0,valueBold:!0,valueColor:u,valueClass:``,valueCss:``,valueFontSize:S._32,valueRounding:0,formatter:null,analogDigits:{show:!1,height:40,color:_,skeletonColor:y}},ze={devHints:D,type:`onion`,onion:{gutterColor:o,gutterOpacity:.3,gutterBlur:0,trackHueRotate:20,trackBlur:1,trackColor:p},line:{gutterColor:o,gutterOpacity:.3,gutterBlur:0,trackHueRotate:20,trackBlur:1,trackColor:p},bar:{gutterColor:o,gutterOpacity:.3,gutterBlur:0,trackHueRotate:20,trackBlur:1,trackColor:p}},Be={debug:!1,devHints:D,readonly:!1,useCursorPointer:!1,style:{fontFamily:`inherit`,itemSize:32,backgroundColor:g,colors:{activeReadonly:[`#e20001`,`#ff9f03`,`#ffd004`,`#61c900`,`#059f00`],active:[`#e20001`,`#ff9f03`,`#ffd004`,`#61c900`,`#059f00`],inactive:[y,y,y,y,y]},icons:{filled:!1,useGradient:!0},title:{...k,textAlign:T.CENTER,offsetY:6,subtitle:{...k.subtitle,offsetY:12}},rating:{show:!0,fontSize:S._24,bold:!0,roundingValue:1,position:T.BOTTOM,offsetX:0,offsetY:0,formatter:null},tooltip:{show:!0,fontSize:S._14,offsetY:0,color:_,bold:!0,backgroundColor:g,borderColor:b,borderRadius:4,boxShadow:`0 6px 12px -6px rgba(0,0,0,0.2)`,roundingValue:0,formatter:null}}},Ve={debug:!1,devHints:D,type:w.STAR,readonly:!1,from:1,to:5,useCursorPointer:!1,style:{fontFamily:`inherit`,animated:!0,itemSize:32,backgroundColor:g,star:{activeColor:m,borderColor:m,borderWidth:3,apexes:5,inactiveColor:y,useGradient:!0},image:{src:``,inactiveOpacity:.3,alt:`rating image`},title:{textAlign:T.CENTER,fontSize:S._20,color:_,bold:!0,text:``,offsetY:6,subtitle:{fontSize:S._14,color:o,bold:!1,text:``,offsetY:12}},rating:{show:!0,fontSize:S._24,bold:!0,roundingValue:1,position:T.BOTTOM,offsetY:0,offsetX:0,formatter:null},tooltip:{show:!0,fontSize:S._14,offsetY:0,color:_,bold:!0,backgroundColor:g,borderColor:b,borderRadius:4,boxShadow:`0 6px 12px -6px rgba(0,0,0,0.2)`,roundingValue:0,formatter:null}}},He={devHints:D,alwaysVisible:!1,useCursorPointer:!1,style:{backgroundColor:g,color:_,fontFamily:`inherit`,showPrint:!1,showSave:!0,showImage:!0,showTooltips:!0,paletteColor:`#2D353C`,palette:h,buttons:{borderRadius:6,controls:{backgroundColor:g,color:_,border:`1px solid #262626`,selected:{backgroundColor:r,color:l,border:`1px solid ${b}`}},shapes:{backgroundColor:g,color:_,border:`1px solid #262626`,selected:{backgroundColor:_,color:g,border:`1px solid ${b}`}}},tooltips:{backgroundColor:l,color:_,border:`1px solid ${b}`,borderRadius:6,boxShadow:`0 6px 12px -6px rgba(0,0,0,0.2)`}},translations:{colorAlpha:`Color alpha`,dashedLines:`Dashed lines`,filled:`Filled`,fontSize:`Font size`,thickness:`Thickness`,title:`Annotations`,tooltipGroup:`Select & group`,tooltipDelete:`Delete`,tooltipMove:`Move`,tooltipResize:`Resize`,tooltipBringToFront:`Bring to front`,tooltipBringToBack:`Bring to back`,tooltipDuplicate:`Duplicate`,tooltipUndo:`Undo last shape`,tooltipRedo:`Redo last shape`,tooltipPdf:`Save pdf`,tooltipSave:`Save annotations`,tooltipShapeCircle:`Draw circle`,tooltipShapeRect:`Draw rect`,tooltipShapeArrow:`Draw arrow`,tooltipShapeFreehand:`Freehand line`,tooltipShapeText:`Text mode`,tooltipShapeTextLeft:`Align left`,tooltipShapeTextCenter:`Align center`,tooltipShapeTextRight:`Align right`,tooltipShapeTextBullet:`Bullet points`,tooltipShapeTextBold:`Bold`,tooltipShapeTextItalic:`Italic`,tooltipShapeTextUnderline:`Underlined`,tooltipShapeColor:`Color`,tooltipImage:`Download PNG`}},Ue={devHints:D,locked:!1,style:{board:{backgroundColor:g,color:_,aspectRatio:`1/1.4141`,border:`none`},item:{backgroundColor:g,borderColor:b},resizeHandles:{backgroundColor:_}},userOptions:{show:!0,useCursorPointer:!1,showOnChartHover:!1,keepStateOnChartLeave:!0,position:`right`,buttons:{pdf:!0,img:!0,annotator:!0,altCopy:!1},callbacks:{pdf:null,img:null,annotator:null,altCopy:null},buttonTitles:{pdf:`Download PDF`,img:`Download PNG`,annotator:`Toggle annotator`,altCopy:`Copy alt text`},print:{scale:2,filename:``}}},We={devHints:D,type:w.LINE,style:{backgroundColor:g,color:_,maxHeight:500,animated:!0,chord:{color:y},ridgeline:{color:y},circlePack:{color:y},historyPlot:{color:y},bullet:{color:y},flow:{color:y},parallelCoordinatePlot:{color:y},treemap:{color:y},dumbbell:{color:y},stripPlot:{color:y},galaxy:{color:y},bar3d:{color:y},sparkHistogram:{color:y},sparkStackbar:{color:y},sparkbar:{color:y},thermometer:{color:y},relationCircle:{color:y},molecule:{color:y},tiremarks:{color:y},chestnut:{color:y},sparkline:{color:y,strokeWidth:.7},donutEvolution:{axis:{show:!0,color:y,strokeWidth:.5},donuts:{strokeWidth:.5,color:y}},line:{axis:{show:!0,color:y,strokeWidth:.5},path:{color:y,strokeWidth:1,showPlots:!0}},bar:{axis:{show:!0,color:y,strokeWidth:.5},borderRadius:.5,color:y,barWidth:9},donut:{color:y,strokeWidth:64},onion:{color:y},gauge:{color:y},quadrant:{grid:{color:y,strokeWidth:.5},plots:{radius:1.5,color:y}},radar:{grid:{color:y,strokeWidth:.5},shapes:{color:y}},waffle:{color:y},table:{th:{color:y},td:{color:y,strokeWidth:.5}},rating:{useSmiley:!1,color:y,filled:!0,strokeWidth:1,maxWidth:200},verticalBar:{axis:{show:!0,color:y,strokeWidth:.5},borderRadius:.5,color:y},heatmap:{cellsX:26,cellsY:7,color:y},candlesticks:{axis:{show:!0,color:y,strokeWidth:.5},candle:{color:y,strokeWidth:1}},pyramid:{color:y},wheel:{color:y},rings:{color:y}}},Ge={devHints:D,fontFamily:`inherit`,maxHeight:500,rowsPerPage:25,useCursorPointer:!1,style:{title:{...k,backgroundColor:g},th:{backgroundColor:y,color:_,outline:`1px solid ${c}`,selected:{backgroundColor:u,color:c},buttons:{filter:{inactive:{backgroundColor:y,color:_},active:{backgroundColor:u,color:c}},cancel:{inactive:{backgroundColor:y,color:r},active:{backgroundColor:`#F17171`,color:c}}}},rows:{outline:`1px solid ${g}`,even:{backgroundColor:`#f3f5f7`,color:_,selectedCell:{backgroundColor:`#1f77b45b`,color:_},selectedNeighbors:{backgroundColor:`#63dd821e`,color:_}},odd:{backgroundColor:g,color:_,selectedCell:{backgroundColor:`#1f77b45b`,color:_},selectedNeighbors:{backgroundColor:`#63dd821e`,color:_}}},inputs:{backgroundColor:g,color:_,border:`1px solid ${b}`,accentColor:u},dropdowns:{backgroundColor:y,color:_,icons:{selected:{color:f,unicode:`✔`},unselected:{color:d,unicode:`✖`}}},infoBar:{backgroundColor:y,color:_},pagination:{buttons:{backgroundColor:y,color:_,opacityDisabled:.5},navigationIndicator:{backgroundColor:u}},exportMenu:{show:!0,backgroundColor:y,color:_,buttons:{backgroundColor:l,color:_},filename:``},closeButtons:{backgroundColor:`transparent`,color:_,borderRadius:`50%`},chart:{modal:{backgroundColor:y,color:_,buttons:{selected:{backgroundColor:u,color:c},unselected:{backgroundColor:g,color:_}}},layout:{backgroundColor:g,axis:{stroke:`#ccd1d4`,strokeWidth:2},bar:{fill:u,stroke:c},line:{smooth:!0,useArea:!1,stroke:u,strokeWidth:4,plot:{fill:u,stroke:c,strokeWidth:1,radius:{selected:6,unselected:4}},selector:{stroke:`#ccc`,strokeWidth:1,strokeDasharray:5}},labels:{color:_},progression:{stroke:r,strokeWidth:2,strokeDasharray:4,arrowSize:7},timeLabels:{showOnlyAtModulo:!0,modulo:2},datetimeFormatter:{...N,enable:!0},zoom:{show:!0,autoFit:!0}}}},translations:{average:`Average`,by:`by`,chooseCategoryColumn:`Choose category column`,exportAllButton:`CSV all`,exportAllLabel:`Export all rows of your current filtered dataset`,exportPageButton:`CSV page`,exportPageLabel:`Export rows of the current page`,from:`From`,inputPlaceholder:`Search...`,makeDonut:`Generate`,nb:`Nb`,page:`Page`,paginatorLabel:`Rows per page`,sizeWarning:`Displaying too many rows at a time can lead to slower performance`,sum:`Sum`,to:`To`,total:`Total`,totalRows:`Total rows`,filename:`File name`,xAxisLabels:`X axis labels`},useChart:!0},Ke={devHints:D,height:`100%`,width:null,backgroundColor:g,digits:{color:_,skeletonColor:y,thickness:1}},qe={debug:!1,devHints:D,responsiveBreakpoint:400,userOptions:P({tooltip:!1,pdf:!0,csv:!0,img:!0,table:!1,labels:!1,fullscreen:!0,stack:!1,animation:!0}),animation:{type:`scroll`,use:!0,speedMs:1e3,pauseOnHover:!0},style:{backgroundColor:g,color:_,fontFamily:`inherit`},border:{size:0,color:r},caption:{text:``,padding:F([12,12,12,12]),style:{backgroundColor:g,color:_,fontSize:`${S._16}px`,fontWeight:`bold`,textAlign:`left`}},scrollbar:{showOnlyOnHover:!1,hide:!1},thead:{style:{verticalAlign:`middle`},tr:{height:32,border:{size:0,color:r},style:{backgroundColor:g,color:_,boxShadow:`0px 6px 12px -6px ${r}50`},th:{border:{size:0,color:r},padding:F([0,12,0,0]),style:{borderSpacing:0,border:`none`,textAlign:`right`,fontVariantNumeric:`tabular-nums`}}}},tbody:{backgroundColor:g,tr:{visible:5,height:32,border:{size:0,color:r},style:{backgroundColor:g,color:_},td:{alternateColor:!0,alternateOpacity:.5,border:{size:0,color:r},padding:F([0,12,0,0]),style:{fontVariantNumeric:`tabular-nums`,textAlign:`right`,backgroundColor:y}}}}},Je={devHints:D,a11y:{translations:{label:`Progress`}},skeletonConfig:null,skeletonDataset:null,debug:!1,loading:!1,type:`battery`,size:64,stroke:o,color:u,useGradient:!0,gradientColor:`#9db5ed`,showPercentage:!0,textColor:r,fontFamily:`inherit`,formatter:null},Ye={devHints:D,debug:!1,loading:!1,responsive:!1,theme:``,userOptions:P({tooltip:!1,pdf:!0,csv:!1,img:!0,table:!1,labels:!1,fullscreen:!0,stack:!1,annotator:!0,svg:!0}),style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,height:96,width:600,padding:F([24,24,24,12]),animation:{show:!0,animationFrames:60},segments:{baseColor:`#9A9A9A`,dataLabels:{show:!0,color:_,fontSize:S._10,formatter:null,bold:!1,prefix:``,suffix:``,rounding:0,offsetY:0},ticks:{show:!0,divisions:10,stroke:`#8A8A8A`}},target:{show:!0,onTop:!0,color:_,rounded:!0,heightRatio:.8,stroke:c,strokeWidth:1,width:6},valueBar:{color:`#3A3A3A`,heightRatio:.33,stroke:c,strokeWidth:1,label:{show:!0,color:_,fontSize:S._14,bold:!0,offsetY:0}},title:{...k,textAlign:T.LEFT,paddingLeft:12},legend:{...A,roundingValue:0,position:`bottom`}}}},Q={debug:!1,devHints:D,theme:``,responsive:!1,responsiveProportionalSizing:!0,useCssAnimation:!0,table:{...R,useDialog:!1,th:I,td:{...L,roundingValue:0,roundingPercentage:0},columnNames:{series:`Step`,value:`Value`,percentage:`Percentage`}},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!1,fullscreen:!0,stack:!1,annotator:!0,svg:!0}),style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,width:600,height:500,title:k,padding:F([12,128,24,24]),barCircleSpacingRatio:.05,circles:{stroke:c,strokeWidth:1,dataLabels:{formatter:null,fontSize:S._16,offsetY:0,adaptColorToBackground:!0,color:_,rounding:1,bold:!0}},circleLinks:{show:!0,color:y,widthRatio:1},area:{show:!0,color:y},bars:{stroke:c,defaultColor:u,strokeWidth:1,gapRatio:.2,borderRadius:3,dataLabels:{name:{fontSize:S._16,color:_,bold:!0,offsetX:0,offsetY:0},value:{formatter:null,fontSize:S._16,rounding:0,bold:!1,color:_,prefix:``,suffix:``,offsetX:0,offsetY:0}}}}}},Xe={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},transitions:M,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},responsiveProportionalSizing:!0,theme:``,customPalette:[],useCssAnimation:!1,userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!1,fullscreen:!0,stack:!1,annotator:!0,svg:!0}),table:{...R,useDialog:!1,th:I,td:{...L,roundingValue:0},columnNames:{series:`Series`,datapoint:`Datapoint`,x:`x`,y:`y`}},style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,height:500,width:600,padding:F([12,12,12,12]),grid:{xAxis:{show:!0,stroke:y,strokeWidth:1},horizontalLines:{show:!0,stroke:y,strokeWidth:.6},yAxis:{show:!0,stroke:y,strokeWidth:1},verticalLines:{show:!0,stroke:y,strokeWidth:.6}},axes:{x:{scaleMin:null,scaleMax:null,ticks:10,labels:{show:!0,fontSize:S._16,color:_,bold:!1,rounding:1,offsetY:0,rotation:0,autoRotate:{enable:!0,angle:-30},formatter:null,prefix:``,suffix:``},name:{text:``,fontSize:S._16,offsetX:0,offsetY:0,bold:!1,color:_}},y:{scaleMin:null,scaleMax:null,ticks:10,labels:{show:!0,fontSize:S._16,color:_,bold:!1,rounding:1,offsetX:0,formatter:null,prefix:``,suffix:``},name:{text:``,fontSize:S._16,offsetX:0,offsetY:0,bold:!1,color:_}}},plots:{radius:16,stroke:c,strokeWidth:1,unselectedOpacity:.1,gradient:{show:!0,intensity:40},indexLabels:{show:!0,startAtZero:!1,adaptColorToBackground:!0,color:_,fontSize:S._16,bold:!1,offsetY:0,offsetX:0},labels:{show:!0,fontSize:S._10,color:_,bold:!1,offsetY:0,offsetX:0}},paths:{show:!0,strokeWidth:1.6,useSerieColor:!0,stroke:r},legend:{...A,position:`bottom`},title:k,tooltip:j}}},Ze={devHints:D,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},transitions:M,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!1,fullscreen:!0,stack:!1,annotator:!0,svg:!0,zoom:!0}),table:{...R,useDialog:!1,th:I,td:L,columnNames:{datapoint:`Datapoint`,parent:`Parent`,depth:`Depth`,value:`Value`}},style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,title:k,width:512,height:316,circles:{stroke:c,strokeWidth:1,selectedShadowColor:r,gradient:{show:!0,intensity:40},labels:{parents:{show:!1},children:{show:!0},name:{fontSizeRatio:1,show:!0,bold:!1,offsetY:0,color:`auto`},value:{fontSizeRatio:1,show:!0,color:`auto`,rounding:0,prefix:``,suffix:``,formatter:null,bold:!1,offsetY:0}}},parentTooltips:{show:!0,fontSizeRatio:1,borderRadiusRatio:1,color:r,filter:`drop-shadow(0 2px 4px #2D353C30)`,backgroundColor:c,strokeWidth:1,useSerieColor:!0,stroke:r,link:{strokeWidth:1,strokeDasharray:0,opacity:.6,useSerieColor:!1,stroke:r}},tooltip:j,zoom:{show:!0,speed:1}}}},Qe={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,events:{datapointEnter:null,datapointLeave:null,datapointClick:null},userOptions:P({tooltip:!0,pdf:!0,csv:!0,img:!0,table:!0,labels:!1,fullscreen:!0,stack:!1,annotator:!0,svg:!0}),customPalette:[],projection:`globe`,style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,padding:F([12,12,12,12]),dataLabels:{prefix:``,suffix:``,rounding:0,formatter:null},dimensions:{height:null,width:null},globe:{center:{x:0,y:0},waterColor:u},territory:{stroke:`#666666`,emptyColor:`#E0E0E0`,strokeWidth:.5,strokeWidthSelected:2,colors:{min:`#E0E0E0`,max:null},showTaiwanAsPartOfChina:!1},tooltip:{...j,showMinimap:!0},title:k,legend:{...A,position:`bottom`}}},table:{...R,useDialog:!1,th:I,td:{...L,roundingValue:0},columnNames:{series:`Country`,value:`Value`,category:`Category`}}},$e={devHints:D,skeletonDataset:null,skeletonConfig:null,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],useCssAnimation:!1,userOptions:P({tooltip:!1,pdf:!0,csv:!0,img:!0,table:!0,labels:!1,fullscreen:!0,stack:!1,annotator:!0,svg:!0}),table:{...R,useDialog:!1,th:I,td:{...L,roundingValue:0},columnNames:{series:`Series`}},style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,padding:F([12,0,0,12]),title:k,legend:A,dialog:{show:!0,backgroundColor:g,color:_,header:{backgroundColor:y,color:_},xyChart:{...H,responsive:!0,line:{...H.line,showTransition:!1,labels:{...H.line.labels,show:!0}},chart:{...H.chart,tooltip:{...H.chart.tooltip,showPercentage:!1},userOptions:{...H.chart.userOptions,buttons:{...H.chart.userOptions.buttons,pdf:!1,fullscreen:!1}},zoom:{...H.chart.zoom,autoFit:!0,minimap:{...H.chart.zoom.minimap,show:!0}}}}},areas:{height:60,rowHeight:30,strokeWidth:1,stroke:{useSerieColor:!1,color:c},smooth:!0,opacity:.9,useCommonColor:!1,useGradient:!0,maxPoint:{show:!0,adaptStrokeToBackground:!0,stroke:r,strokeWidth:1,strokeDasharray:4}},selector:{show:!0,stroke:o,strokeWidth:1,strokeDasharray:2,labels:{fontSize:12,formatter:null,rounding:0,color:_,showLast:!1},dot:{radius:4,useDatapointColor:!0,fill:o,stroke:c,strokeWidth:.5}},zeroLine:{show:!0,strokeWidth:1,strokeDasharray:0,useSerieColor:!1,stroke:o},xAxis:{labels:{prefix:``,suffix:``,rotation:0,autoRotate:{enable:!0,angle:-30},values:[],datetimeFormatter:N,color:_,fontSize:14,bold:!1,showOnlyAtModulo:!1,modulo:2,showOnlyFirstAndLast:!1,offsetY:0}},yAxis:{labels:{fontSize:16,bold:!1,color:_,offsetX:0,offsetY:0,centered:!1}}}}},et={devHints:D,debug:!1,loading:!1,responsive:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},theme:``,customPalette:[],enableRotation:!0,initialRotation:0,useCssAnimation:!1,userOptions:P({tooltip:!1,pdf:!0,csv:!0,img:!0,table:!0,labels:!1,fullscreen:!0,stack:!1,annotator:!0,svg:!0}),table:{...R,useDialog:!1,th:I,td:L},style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,legend:{...A,position:`bottom`},title:k,arcs:{innerRadiusRatio:1,outerRadiusRatio:1,padAngle:5,stroke:c,strokeWidth:1,labels:{show:!0,fontSize:14,bold:!1,curved:!1,adaptColorToBackground:!0,color:_,offset:0,showPercentage:!0,roundingPercentage:0}},ribbons:{stroke:c,strokeWidth:1,underlayerOpacity:1,labels:{show:!0,formatter:null,prefix:``,suffix:``,rounding:0,fontSize:14,bold:!1,useSerieColor:!1,color:_,offset:0,minSeparationDeg:3,connector:{stroke:r,strokeWidth:1},marker:{show:!0,radius:3,stroke:c,strokeWidth:1}}}}}},tt={devHints:D,skeletonConfig:null,skeletonDataset:null,loading:!1,debug:!1,responsive:!1,theme:``,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},userOptions:P({tooltip:!1,pdf:!0,csv:!1,img:!0,fullscreen:!0,annotator:!0,svg:!0,zoom:!0}),style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,width:null,height:null,backgroundPattern:{show:!1,spacingRatio:3,dotRadiusRatio:5,dotColor:y,opacity:1},layout:{rankDirection:`TB`,rankSeparation:60,nodeSeparation:50,edgeSeparation:30,nodeWidth:100,nodeHeight:40,curvedEdges:!0,padding:48,arrowShape:`vee`,arrowSize:8,align:void 0},nodes:{stroke:o,strokeWidth:1,borderRadius:3,backgroundColor:g,labels:{color:_,fontSize:S._12,bold:!1},tooltip:{showOnClick:!1,backgroundColor:y,color:_,maxWidth:`300px`},selected:{stroke:null,strokeWidth:null,backgroundColor:null,labelColor:null,downstreamEdges:{stroke:null,animated:null},upstreamEdges:{stroke:null,animated:null}}},edges:{stroke:o,strokeWidth:1,animations:{dasharray:`2 6`,animationDurationMs:1e3}},midpoints:{show:!1,radius:4,stroke:o,fill:c,strokeWidth:1,tooltip:{maxWidth:`300px`,backgroundColor:y,color:_},selectedEdge:{stroke:null,animated:null}},controls:{position:`bottom`,show:!0,backgroundColor:y,buttonColor:y,color:_,fontSize:14,border:`1px solid ${b}`,padding:`0.5rem`,borderRadius:`0.25rem`},zoom:{active:!0},title:k}}},nt={devHints:D,skeletonDataset:null,skeletonConfig:null,loading:!1,debug:!1,responsive:!1,projection:`equirectangular`,theme:``,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},userOptions:P({tooltip:!0,pdf:!0,csv:!1,img:!0,svg:!0,table:!1,labels:!1,fullscreen:!0,annotator:!0,zoom:!0}),map:{geoJson:null,center:[0,0],fitPadding:0},events:{datapointEnter:null,datapointLeave:null,datapointClick:null,territoryEnter:null,territoryLeave:null,territoryClick:null},style:{fontFamily:`inherit`,chart:{dimensions:{width:null,height:null},backgroundColor:g,color:_,territory:{fill:`#F2F3F5`,stroke:`#D0D4D8`,strokeWidth:1,hover:{enabledWhenEmpty:!1,fill:y,stroke:o,strokeWidth:1.5}},points:{radius:1,stroke:c,strokeWidth:1,fill:s,hoverRadiusRatio:1.2,labels:{show:!0,fontSizeRatio:1,color:_,offsetY:0}},controls:{position:`bottom`,show:!0,backgroundColor:y,buttonColor:y,color:_,fontSize:14,border:`1px solid ${b}`,padding:`0.5rem`,borderRadius:`0.25rem`},title:k,tooltip:j,zoom:{active:!0}}}},rt={devHints:D,skeletonConfig:null,skeletonDataset:null,loading:!1,debug:!1,responsive:!1,theme:``,customPalette:[],useCssAnimation:!1,a11y:{...x,translations:{...x.translations,keyboardNavigation:`Use the left and right, or up and down arrow keys to move between datapoints`}},events:{datapointEnter:null,datapointLeave:null,datapointClick:null},userOptions:P({tooltip:!1,pdf:!0,csv:!0,img:!0,svg:!0,table:!0,labels:!1,fullscreen:!0,sort:!1,stack:!1,animation:!1,annotator:!0,zoom:!1}),table:{...R,useDialog:!1,columnNames:{series:`Series`,period:`Period`,values:`Values`,ranking:`Ranking`},th:I,td:{...L,roundingValue:0}},style:{fontFamily:`inherit`,chart:{backgroundColor:g,color:_,height:500,width:800,layout:{timeLabels:{show:!0,values:[],datetimeFormatter:N,offsetY:0,rotation:0,autoRotate:{enable:!0,angle:-30},fontSize:S._14,color:_,bold:!1,showOnlyFirstAndLast:!1,showOnlyAtModulo:!1,modulo:2},lines:{smooth:!0,strokeWidth:4,coatingColor:c},plots:{stroke:c,strokeWidth:1,radius:12,labels:{color:`auto`,show:!0,bold:!0,displayedValue:`value`,fontSize:S._12,prefix:``,suffix:``,rounding:0,formatter:null}},nameLabels:{fontSize:S._14,color:_,useSerieColor:!1,bold:!1,offsetX:0,leftLabels:{show:!0},rightLabels:{show:!0}}},padding:F([12,12,12,12]),title:k}}},it={theme:``,a11y:{translations:{keyboardNavigation:`Use the arrow keys to move this label. Hold Shift while pressing an arrow key to move it by a larger step.`}},title:{text:``,color:_,fontSize:14,lineHeight:14,bold:!1,textAlign:`left`,gap:6,marker:{color:null,shape:`circle`,beforeText:!0,size:14,offsetY:0}},content:{text:``,color:_,fontSize:12,lineHeight:12,bold:!1,textAlign:`left`},position:`auto`,link:{show:!0,stroke:_,strokeWidth:1,strokeDasharray:`0`,length:20,targetPlot:{show:!0,radius:2,stroke:g,strokeWidth:1}},box:{show:!0,backgroundColor:g,borderColor:_,borderWidth:1,borderRadius:3,padding:F([8,8,8,8]),maxWidth:200},drag:{enable:!0,handlePosition:`left`,handleWidth:18,showSeparator:!1,iconColor:_,iconOpacity:.6,iconSize:16},overflow:!1,overlap:!1,collisionGap:0},$=e(t);return{vue_ui_graph:{...$,tooltip:{...j,...$.tooltip},userOptions:{...P({pdf:!0,csv:!0,img:!0,svg:!0,table:!0,fullscreen:!0,zoom:!0,tooltip:!0,annotator:!0}),useCursorPointer:$.userOptions.useCursorPointer},table:{...R,useDialog:!1,columnNames:{nodes:`Nodes`,links:`Links`,id:`ID`,label:`Label`,group:`Group`,value:`Value`,connections:`Connections`,source:`Source`,target:`Target`,directed:`Directed`,metadata:`Metadata`},th:{...I},td:{...L}},style:{...$.style,chart:{...$.style.chart,title:{...k,subtitle:{...k.subtitle}}}}},vue_ui_xy:H,vue_ui_donut:U,vue_ui_treemap:W,vue_ui_waffle:G,vue_ui_radar:K,vue_ui_quadrant:q,vue_ui_gauge:J,vue_ui_wheel:Y,vue_ui_tiremarks:X,vue_ui_chestnut:ie,vue_ui_onion:ae,vue_ui_vertical_bar:Z,vue_ui_horizontal_bar:oe,vue_ui_heatmap:se,vue_ui_scatter:ce,vue_ui_candlestick:le,vue_ui_sparkline:ue,vue_ui_sparkbar:de,vue_ui_sparkstackbar:fe,vue_ui_sparkhistogram:pe,vue_ui_sparkgauge:me,vue_ui_spark_trend:he,vue_ui_quick_chart:ge,vue_ui_age_pyramid:_e,vue_ui_relation_circle:ve,vue_ui_thermometer:ye,vue_ui_rings:be,vue_ui_donut_evolution:xe,vue_ui_mood_radar:Se,vue_ui_molecule:Ce,vue_ui_nested_donuts:we,vue_ui_galaxy:Te,vue_ui_strip_plot:Ee,vue_ui_dumbbell:De,vue_ui_3d_bar:Oe,vue_ui_table_sparkline:ke,vue_ui_table_heatmap:Ae,vue_ui_word_cloud:je,vue_ui_xy_canvas:Me,vue_ui_flow:Ne,vue_ui_parallel_coordinate_plot:Pe,vue_ui_timer:Fe,vue_ui_carousel_table:qe,vue_ui_gizmo:Je,vue_ui_stackbar:re,vue_ui_bullet:Ye,vue_ui_funnel:Q,vue_ui_history_plot:Xe,vue_ui_world:Qe,vue_ui_ridgeline:$e,vue_ui_chord:et,vue_ui_stackline:ne,vue_ui_dag:tt,vue_ui_geo:nt,vue_ui_bump:rt,vue_ui_circle_pack:Ze,vue_ui_cursor:Ie,vue_ui_accordion:Le,vue_ui_kpi:Re,vue_ui_mini_loader:ze,vue_ui_smiley:Be,vue_ui_rating:Ve,vue_ui_annotator:He,vue_ui_dashboard:Ue,vue_ui_skeleton:We,vue_ui_table:Ge,vue_ui_digits:Ke,vue_ui_hill:te,vue_ui_label:it}}export{n as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./BaseIcon-Cm-IJ179.js";import{computed as n,createBlock as r,createCommentVNode as i,createElementBlock as a,createElementVNode as o,createSlots as s,createTextVNode as c,defineAsyncComponent as l,guardReactiveProps as u,mergeProps as d,normalizeProps as f,normalizeStyle as p,onMounted as m,openBlock as h,ref as g,renderList as _,renderSlot as v,resolveDynamicComponent as y,toDisplayString as b,useAttrs as x,watch as S,withCtx as C}from"vue";var w=/* @__PURE__ */ e({default:()=>E}),T={style:{width:`36px`}},E=/*@__PURE__*/ Object.assign({inheritAttrs:!1},{__name:`vue-data-ui`,props:{component:{type:String},dataset:{type:[Object,Array,Number,String]},config:{type:Object}},setup(e,{expose:w}){let E=e,D=x(),O={VueUiGraph:l(()=>import(`./vue-ui-graph-CzUVEiO-.js`).then(e=>e.n)),VueUi3dBar:l(()=>import(`./vue-ui-3d-bar-ljsy2rX6.js`).then(e=>e.n)),VueUiAgePyramid:l(()=>import(`./vue-ui-age-pyramid-a6CK7z3a.js`).then(e=>e.n)),VueUiAnnotator:l(()=>import(`./vue-ui-annotator-DCJdieNC.js`).then(e=>e.n)),VueUiCandlestick:l(()=>import(`./vue-ui-candlestick-BgyUo13S.js`).then(e=>e.n)),VueUiChestnut:l(()=>import(`./vue-ui-chestnut-DYrMSzmQ.js`).then(e=>e.n)),VueUiDashboard:l(()=>import(`./vue-ui-dashboard-D98rMHjI.js`).then(e=>e.n)),VueUiDigits:l(()=>import(`./vue-ui-digits-AoPCgSfP.js`).then(e=>e.n)),VueUiDonut:l(()=>import(`./vue-ui-donut-BYUkblpv.js`).then(e=>e.n)),VueUiDonutEvolution:l(()=>import(`./vue-ui-donut-evolution-wxHDTKlg.js`).then(e=>e.n)),VueUiGalaxy:l(()=>import(`./vue-ui-galaxy-B7ogrJ6f.js`).then(e=>e.n)),VueUiGauge:l(()=>import(`./vue-ui-gauge-CrmzNkjT.js`).then(e=>e.n)),VueUiHeatmap:l(()=>import(`./vue-ui-heatmap-BxR2ccwd.js`).then(e=>e.n)),VueUiKpi:l(()=>import(`./vue-ui-kpi-Dfhsk0U1.js`).then(e=>e.n)),VueUiMiniLoader:l(()=>import(`./vue-ui-mini-loader-Bbupx66Y.js`).then(e=>e.n)),VueUiMolecule:l(()=>import(`./vue-ui-molecule-DUX1NUIY.js`).then(e=>e.n)),VueUiMoodRadar:l(()=>import(`./vue-ui-mood-radar-B1N5AwX_.js`).then(e=>e.n)),VueUiNestedDonuts:l(()=>import(`./vue-ui-nested-donuts-CfHH-cU6.js`).then(e=>e.n)),VueUiOnion:l(()=>import(`./vue-ui-onion-DRN-jIvq.js`).then(e=>e.n)),VueUiQuadrant:l(()=>import(`./vue-ui-quadrant-zmtzn0lM.js`).then(e=>e.n)),VueUiRadar:l(()=>import(`./vue-ui-radar-BGSoxRaK.js`).then(e=>e.n)),VueUiRating:l(()=>import(`./vue-ui-rating-ChWXrWNJ.js`).then(e=>e.n)),VueUiRelationCircle:l(()=>import(`./vue-ui-relation-circle-XUw5UMrt.js`).then(e=>e.n)),VueUiRings:l(()=>import(`./vue-ui-rings-BJaCLH2Q.js`).then(e=>e.n)),VueUiScatter:l(()=>import(`./vue-ui-scatter-BA0hk_Tf.js`).then(e=>e.n)),VueUiSkeleton:l(()=>import(`./vue-ui-skeleton-DpzaXPO3.js`).then(e=>e.n)),VueUiSmiley:l(()=>import(`./vue-ui-smiley--VTlUAdp.js`).then(e=>e.n)),VueUiSparkbar:l(()=>import(`./vue-ui-sparkbar-C5wP9R67.js`).then(e=>e.n)),VueUiSparkgauge:l(()=>import(`./vue-ui-sparkgauge-DQcAOGuG.js`).then(e=>e.n)),VueUiSparkHistogram:l(()=>import(`./vue-ui-sparkhistogram-BBiCxX6W.js`).then(e=>e.n)),VueUiSparkline:l(()=>import(`./vue-ui-sparkline-B_GkB9V_.js`).then(e=>e.n)),VueUiSparkStackbar:l(()=>import(`./vue-ui-sparkstackbar-DSRXhqhJ.js`).then(e=>e.n)),VueUiTable:l(()=>import(`./vue-ui-table-CHFjZzW7.js`).then(e=>e.n)),VueUiTableSparkline:l(()=>import(`./vue-ui-table-sparkline-BkZ7sn4X.js`).then(e=>e.n)),VueUiThermometer:l(()=>import(`./vue-ui-thermometer-B--g_Lkt.js`).then(e=>e.n)),VueUiTiremarks:l(()=>import(`./vue-ui-tiremarks-160Gx7-3.js`).then(e=>e.n)),VueUiTreemap:l(()=>import(`./vue-ui-treemap-B-Yjtob0.js`).then(e=>e.n)),VueUiVerticalBar:l(()=>import(`./vue-ui-horizontal-bar-C5pNTRKB.js`).then(e=>e.n)),VueUiHorizontalBar:l(()=>import(`./vue-ui-horizontal-bar-C5pNTRKB.js`).then(e=>e.n)),VueUiWaffle:l(()=>import(`./vue-ui-waffle-BhzLg5ip.js`).then(e=>e.n)),VueUiWheel:l(()=>import(`./vue-ui-wheel-DHb4G42X.js`).then(e=>e.n)),VueUiXy:l(()=>import(`./vue-ui-xy-C-2Phexw.js`).then(e=>e.n)),VueUiTableHeatmap:l(()=>import(`./vue-ui-table-heatmap-DzvPQnY9.js`).then(e=>e.n)),VueUiAccordion:l(()=>import(`./vue-ui-accordion-S3nRtTU-.js`).then(e=>e.n)),VueUiQuickChart:l(()=>import(`./vue-ui-quick-chart-DgU_IhKY.js`).then(e=>e.n)),VueUiCursor:l(()=>import(`./vue-ui-cursor-CTFfbDX8.js`).then(e=>e.n)),VueUiSparkTrend:l(()=>import(`./vue-ui-spark-trend-DJ63XtgQ.js`).then(e=>e.n)),VueUiStripPlot:l(()=>import(`./vue-ui-strip-plot-d3UoFFrf.js`).then(e=>e.n)),VueUiDumbbell:l(()=>import(`./vue-ui-dumbbell-DR7rjMt0.js`).then(e=>e.n)),VueUiWordCloud:l(()=>import(`./vue-ui-word-cloud-BcpreM7A.js`).then(e=>e.n)),VueUiXyCanvas:l(()=>import(`./vue-ui-xy-canvas-Do4P4ajB.js`).then(e=>e.n)),VueUiFlow:l(()=>import(`./vue-ui-flow-DtQlRSK_.js`).then(e=>e.n)),VueUiParallelCoordinatePlot:l(()=>import(`./vue-ui-parallel-coordinate-plot-UUPjQABF.js`).then(e=>e.n)),VueUiTimer:l(()=>import(`./vue-ui-timer-DmwEWrDh.js`).then(e=>e.n)),VueUiCarouselTable:l(()=>import(`./vue-ui-carousel-table-D01DGfA0.js`).then(e=>e.n)),VueUiGizmo:l(()=>import(`./vue-ui-gizmo-C3wgMKwb.js`).then(e=>e.n)),VueUiStackbar:l(()=>import(`./vue-ui-stackbar-QjOQHbld.js`).then(e=>e.n)),VueUiStackline:l(()=>import(`./vue-ui-stackline-CoII13bc.js`).then(e=>e.n)),VueUiBullet:l(()=>import(`./vue-ui-bullet-DX4A2Qwo.js`).then(e=>e.n)),VueUiFunnel:l(()=>import(`./vue-ui-funnel-BP3chlZy.js`).then(e=>e.n)),VueUiHistoryPlot:l(()=>import(`./vue-ui-history-plot-0-vs_CVn.js`).then(e=>e.n)),VueUiCirclePack:l(()=>import(`./vue-ui-circle-pack-DQHNM9sC.js`).then(e=>e.n)),VueUiWorld:l(()=>import(`./vue-ui-world-BD9acchj.js`).then(e=>e.n)),VueUiRidgeline:l(()=>import(`./vue-ui-ridgeline-B5RJcFyA.js`).then(e=>e.n)),VueUiChord:l(()=>import(`./vue-ui-chord-CwzQ7QbP.js`).then(e=>e.n)),VueUiDag:l(()=>import(`./vue-ui-dag-DF29_9Gg.js`).then(e=>e.n)),VueUiGeo:l(()=>import(`./vue-ui-geo-BbTvWbfX.js`).then(e=>e.n)),VueUiBump:l(()=>import(`./vue-ui-bump-IvRdB6MD.js`).then(e=>e.n)),VueUiHill:l(()=>import(`./vue-ui-hill-BDOd7LrC.js`).then(e=>e.n)),VueUiLabel:l(()=>import(`./vue-ui-label-B_1kM28r.js`).then(e=>e.n))},k=/* @__PURE__ */ new Set([`VueUiMiniLoader`,`VueUiSkeleton`,`VueUiAccordion`,`VueUiCursor`,`VueUiTimer`]),A=/* @__PURE__ */ `fitToView.focusNode.resetLayout.autoSize.cancel.close.copyAlt.focusLocation.generateCsv.generateImage.generatePdf.generateSvg.getItemsPositions.hideSeries.lap.pause.pauseAnimation.recalculateHeight.reset.resetZoom.restart.restoreOrder.resumeAnimation.save.selectGroup.selectNode.selectRibbon.setZoomState.shoot.showSeries.start.switchOrientation.toggleAnimation.toggleAnnotator.toggleLabels.toggleLock.toggleReadonly.toggleSort.toggleStack.toggleTable.toggleFullscreen.toggleTooltip.toggleZoom.zoomIn.zoomOut`.split(`.`),j=g(null),M=n(()=>!O[E.component]),N=n(()=>O[E.component]||null);function P(){let e={...D,config:E.config};return k.has(E.component)||(e.dataset=E.dataset),e}let F=[];function I(e,t){return new Promise((n,r)=>{F.push({method:e,args:t,resolve:n,reject:r})})}function L(e){return/* @__PURE__ */ Error(`Method "${e}" not found on ${E.component}`)}function R(e,t){let n=j.value;if(!n)return null;let r=n[e];return typeof r==`function`?r.apply(n,t):null}function z(e,t){let n=j.value;if(!n)return I(e,t);let r=n[e];return typeof r==`function`?r.apply(n,t):Promise.reject(L(e))}S(j,e=>{if(e)for(;F.length;){let{method:t,args:n,resolve:r,reject:i}=F.shift(),a=e[t];typeof a==`function`?Promise.resolve().then(()=>a.apply(e,n)).then(r).catch(i):i(L(t))}}),w({getData(...e){return z(`getData`,e)},getImage(e={}){let{scale:t=2}=e;return z(`getImage`,[{scale:t}])},...Object.fromEntries(A.map(e=>[e,(...t)=>R(e,t)]))}),m(()=>{M.value&&console.error(`\n\nVue Data UI exception:\nThe provided component "${E.component}" does not exist. Check the spelling.\n\nAvailable components:\n\n${Object.keys(O).map(e=>`. ${e}\n`).join(``)}`)});let B=n(()=>{let e=`The provided component ${E.component} does not exist.`;return[`VueUiIcon`,`VueUiPattern`,`Arrow`].includes(E.component)?(e=`${E.component} is not supported by the VueDataUi universal component. You must import it individually.`,console.warn(e),{status:`notSupported`,message:e}):(console.warn(e),{status:`unknown`,message:e})});return(e,n)=>M.value?(h(),a(`div`,{key:0,style:p({width:`100%`,display:`flex`,gap:`6px`,alignItems:`center`,color:B.value.status===`notSupported`?`#FF9000`:`#FF0000`})},[o(`div`,T,[B.value.status===`unknown`?(h(),r(t,{key:0,name:`moodFlat`,stroke:`#FF0000`})):i(``,!0),B.value.status===`notSupported`?(h(),r(t,{key:1,name:`circleExclamation`,stroke:`#FF9000`})):i(``,!0)]),c(` `+b(B.value.message),1)],4)):(h(),r(y(N.value),d({key:1,ref_key:`currentComponentRef`,ref:j},P()),s({_:2},[_(e.$slots,(t,n)=>({name:n,fn:C(t=>[v(e.$slots,n,f(u(t)))])}))]),1040))}});export{w as n,E as t};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./useConfig-6jO1fkp5.js";import{$ as n,D as r,Dt as i,Jt as a,Qt as o,X as s,Yt as c,_ as l,_t as ee,at as te,b as u,c as ne,gt as re,in as ie,nt as ae,pt as oe,rn as se,t as ce,wt as le,zt as ue}from"./lib-rPeBMZrn.js";import{n as de,t as fe}from"./BaseScanner-8NdoBs7B.js";import{n as pe,t as me}from"./useHints-C-TwxM0Y.js";import{t as he}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as ge}from"./useNestedProp-DnGoh-XS.js";import{t as _e}from"./useThemeCheck-BKNRbGeC.js";import{t as ve}from"./img-D4RQwASc.js";import{n as ye}from"./Title-BliHuXfT.js";import{t as be}from"./useChartExport-BZts4KFb.js";import{n as xe,t as Se}from"./tableIntegration-CNoJ1CIY.js";import{n as Ce,t as we}from"./annotationSlots-BRR85CqJ.js";import{n as Te,t as Ee}from"./userOptionsSlots-DYuo-E5m.js";import{n as De,r as Oe,t as ke}from"./useTimeLabels-Das5O74F.js";import{t as Ae}from"./usePrinter-DVf3YcG5.js";import{t as je}from"./useTransitions-ChGGrtrv.js";import{t as Me}from"./useSvgLabelLayout-42Kats14.js";import{t as Ne}from"./useTimeLabelCollider-BTybMUFi.js";import{t as Pe}from"./useResponsive-CENUxfEL.js";import{t as Fe}from"./DefGrad-DKMq1REY.js";import{t as Ie}from"./SlicerPreview-CFFUOlQr.js";import{t as Le}from"./A11yDataTable-DWNlWXzs.js";import{t as Re}from"./useUserOptionState-CXlFnwPv.js";import{t as ze}from"./useChartAccessibility-DOMuYJfm.js";import{t as Be}from"./vue_ui_candlestick-DKvha_Ab.js";import{Fragment as d,computed as f,createBlock as Ve,createCommentVNode as p,createElementBlock as m,createElementVNode as h,createSlots as He,createTextVNode as Ue,createVNode as We,defineAsyncComponent as Ge,guardReactiveProps as Ke,mergeProps as qe,nextTick as Je,normalizeClass as g,normalizeProps as Ye,normalizeStyle as Xe,onBeforeUnmount as Ze,onMounted as Qe,openBlock as _,ref as v,renderList as y,renderSlot as b,resolveDynamicComponent as $e,shallowRef as et,toDisplayString as tt,toRefs as nt,unref as x,watch as rt,watchEffect as it,withCtx as S}from"vue";var at=/* @__PURE__ */ e({default:()=>Bt}),ot=[`id`],st=[`id`],ct={style:{position:`relative`}},lt=[`xmlns`,`aria-describedby`,`viewBox`],ut=[`x`,`y`,`width`,`height`],dt={key:1},ft={key:0},pt=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],mt=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],ht=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`,`stroke-dasharray`],gt=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`,`stroke-dasharray`],_t=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],vt=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],yt=[`transform`,`text-anchor`,`font-size`,`fill`,`font-weight`],bt=[`transform`,`text-anchor`,`font-size`,`fill`,`font-weight`],xt=[`transform`,`text-anchor`,`font-size`,`fill`,`stroke`,`font-weight`],St=[`x`,`y`,`width`,`height`,`fill`,`rx`],Ct={key:0},wt=[`cx`,`cy`,`r`,`fill`],Tt=[`cx`,`cy`,`r`,`fill`],Et={key:1},Dt=[`x`,`y`,`width`,`height`,`rx`,`fill`],Ot=[`x`,`y`,`width`,`height`,`fill`,`rx`],kt=[`x`,`y`,`height`,`width`,`fill`,`rx`],At=[`x`,`y`,`height`,`width`,`fill`,`rx`,`stroke`,`stroke-width`],jt=[`d`,`stroke`],Mt=[`x`,`y`,`height`,`width`,`fill`,`onMouseover`,`onMouseleave`,`onClick`],Nt=[`x`,`y`,`width`,`height`,`fill`,`fill-opacity`,`stroke`,`stroke-opacity`,`stroke-width`,`stroke-dasharray`],Pt=[`data-start`,`data-end`],Ft={key:0,style:{position:`absolute`,top:`100%`,left:`0`,width:`100%`},"data-dom-to-png-ignore":``,"aria-hidden":`true`},It={key:5,class:`vue-data-ui-watermark`},Lt=[`d`,`stroke`],Rt=[`d`,`stroke`,`stroke-width`],zt=[`innerHTML`],Bt=/*#__PURE__*/ he({__name:`vue-ui-candlestick`,props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}},selectedXIndex:{type:Number,default:void 0},zoomState:{type:Object,default:null}},emits:[`selectX`,`zoomStart`,`zoomEnd`,`zoomReset`,`update:zoomState`,`copyAlt`],setup(e,{expose:he,emit:at}){let Bt=Ge(()=>import(`./BaseIcon-Cm-IJ179.js`).then(e=>e.n)),Vt=Ge(()=>import(`./Tooltip-C1q0Qoh7.js`)),Ht=Ge(()=>import(`./vue-ui-accordion-S3nRtTU-.js`).then(e=>e.n)),Ut=Ge(()=>import(`./DataTable-0Vv-aGHD.js`)),Wt=Ge(()=>import(`./PenAndPaper-BGEp-TUm.js`).then(e=>e.t)),Gt=Ge(()=>import(`./UserOptions-uWHV_zPB.js`).then(e=>e.n)),Kt=Ge(()=>import(`./PackageVersion-CXT-eAuk.js`).then(e=>e.t)),qt=Ge(()=>import(`./BaseDraggableDialog-DHgIPVmz.js`).then(e=>e.n)),{vue_ui_candlestick:Jt}=t(),{isThemeValid:Yt,warnInvalidTheme:Xt}=_e(),C=e,w=at,Zt=f(()=>!!C.dataset&&C.dataset.length),T=v(!1),Qt=v(!1),$t=0,en=v(null),E=v(s()),tn=v(!1),nn=v(``),D=v(void 0),rn=v(0),O=v(null),an=v(null),on=v(null),sn=v(null),cn=v(null),ln=v(null),un=v(0),dn=v(0),fn=v(0),pn=v(null),mn=v(null),hn=v(null),gn=v(null),_n=v(null),k=v(null),vn=v({x:0,y:0}),yn=v(`pointer`),bn=v(!1),A=v(An()),j=f(()=>A.value.style.layout.candle),M=f(()=>A.value.style.layout.grid),N=f(()=>A.value.style.layout),P=f(()=>A.value.style),F=f(()=>A.value.userOptions);pe({config:()=>A.value,dataset:()=>C.dataset,component:`VueUiCandlestick`,rules:[me.emptyArray,{test:e=>e.length>200,message:[`👀 Dataset has > 200 points, which can cause performance issues. Consider:`,``,`▶️ Adding date inputs to constraint the dataset into a specific timeframe`,``,`▶️ Aggregate the data to larger time series to reduce the number of datapoints.`]}]});let{transitionEnabled:xn}=je({config:()=>A.value.transitions,dataset:()=>C.dataset}),Sn=f(()=>A.value.userOptions.useCursorPointer),Cn=f(()=>ie({defaultConfig:{useCssAnimation:!1,userOptions:{show:!1},table:{show:!1},style:{backgroundColor:`#99999930`,layout:{candle:{colors:{bearish:`#BABABA`,bullish:`#CACACA`}},grid:{stroke:`#6A6A6A`,verticalLines:{stroke:`#6A6A6A`},horizontalLines:{stroke:`#6A6A6A`},yAxis:{dataLabels:{show:!1},scale:{min:null,max:null}}},wick:{stroke:`#6A6A6A`,extremity:{color:`#6A6A6A`}}},tooltip:{show:!1},zoom:{show:!1,startIndex:null,endIndex:null}}},userConfig:A.value.skeletonConfig??{}})),{loading:I,FINAL_DATASET:L,manualLoading:wn}=de({...nt(C),FINAL_CONFIG:A,prepareConfig:An,callback:()=>{Promise.resolve().then(async()=>{await Ur()})},skeletonDataset:C.config?.skeletonDataset??[[17040672e5,10,20,2,10,30],[17067456e5,10,30,5,20,50],[17092512e5,20,50,10,30,80],[17119296e5,30,80,20,50,130],[17145216e5,50,130,30,100,210],[17172e8,80,210,50,150,340],[1719792e6,130,340,80,280,550],[17224704e5,210,550,130,450,890],[17251488e5,340,890,210,750,1440],[17277408e5,550,1440,340,1230,2330],[17304192e5,890,2330,550,1950,3770],[17330112e5,1440,3770,890,3200,5100]],skeletonConfig:ie({defaultConfig:A.value,userConfig:Cn.value})}),{userOptionsVisible:Tn,setUserOptionsVisibility:En,keepUserOptionState:Dn}=Re({config:A.value}),{svgRef:R}=ze({config:P.value.title});function On(){En(!0)}function kn(){En(!1),w(`selectX`,{seriesIndex:null,datapoint:null}),D.value=null}function An(){let e=ge({userConfig:C.config,defaultConfig:Jt}),t={};C.config&&le(C.config,`style.layout.grid.xAxis.dataLabels.showFirstAndLast`)&&(e.style.layout.grid.xAxis.dataLabels.showFirstAndLast=!!C.config.style.layout.grid.xAxis.dataLabels.showFirstAndLast);let n=e.theme;if(n){if(!Yt.value(e))Xt(e),t=e;else{let r=ge({userConfig:Be[n]||C.config,defaultConfig:e});t={...ge({userConfig:C.config,defaultConfig:r})}}}else t=e;return t}let jn=o(C.config);rt(()=>C.config,(e,t)=>{let n=o(e),r=n!==jn;jn=n;let i=An();r?(I.value||(A.value=An()),Tn.value=!A.value.userOptions.showOnChartHover,Fn(),un.value+=1,fn.value+=1,dn.value+=1,B.value.showTable=A.value.table.show,B.value.showTooltip=P.value.tooltip.show,lr()):(A.value.style.tooltip=i.style.tooltip,B.value.showTooltip=A.value.style.tooltip.show)},{deep:!0}),rt(()=>C.dataset,e=>{Array.isArray(e)&&e.length>0&&(wn.value=!1),zr()},{deep:!0});let z=v({height:P.value.height,width:P.value.width,xAxisFontSize:M.value.xAxis.dataLabels.fontSize,yAxisFontSize:M.value.yAxis.dataLabels.fontSize}),Mn=et(null),Nn=et(null);Qe(()=>{Fn()});let Pn=f(()=>A.value.debug);function Fn(){ue(C.dataset)&&(te({componentName:`VueUiCandlestick`,type:`dataset`,debug:Pn.value}),wn.value=!0),ue(C.dataset)||(wn.value=A.value.loading),setTimeout(()=>{T.value=!0},10),A.value.responsive&&(Mn.value&&(Nn.value&&Mn.value.unobserve(Nn.value),Mn.value.disconnect()),Mn.value=new ResizeObserver(()=>{T.value=!1;let{width:e,height:t}=Pe({chart:O.value,title:P.value.title.text?an.value:null,slicer:P.value.zoom.show&&U.value>6?sn.value.$el:null,legend:on.value,source:cn.value,noTitle:ln.value});cancelAnimationFrame($t),$t=requestAnimationFrame(()=>{z.value.width=e,z.value.height=t-12,Qt.value=!0,A.value.responsiveProportionalSizing?(z.value.xAxisFontSize=se({relator:Math.min(e,t),adjuster:P.value.width,source:M.value.xAxis.dataLabels.fontSize,threshold:6,fallback:6}),z.value.yAxisFontSize=se({relator:Math.min(e,t),adjuster:P.value.width,source:M.value.yAxis.dataLabels.fontSize,threshold:6,fallback:6})):(z.value.xAxisFontSize=M.value.xAxis.dataLabels.fontSize,z.value.yAxisFontSize=M.value.yAxis.dataLabels.fontSize),en.value&&clearTimeout(en.value),en.value=setTimeout(()=>{T.value=!0},10)})}),Nn.value=O.value.parentNode,Mn.value.observe(Nn.value)),Ur()}Ze(()=>{cancelAnimationFrame($t),Mn.value&&(Nn.value&&Mn.value.unobserve(Nn.value),Mn.value.disconnect())});let{isPrinting:In,isImaging:Ln,generatePdf:Rn,generateImage:zn}=Ae({elementId:`vue-ui-candlestick_${E.value}`,fileName:P.value.title.text||`vue-ui-candlestick`,options:A.value.userOptions.print}),Bn=f(()=>A.value.userOptions.show&&!P.value.title.text),B=v({showTable:A.value.table.show,showTooltip:P.value.tooltip.show}),{metrics:Vn,ready:Hn,settling:V,update:Un}=Me({svgRef:R,canMeasure:()=>(!A.value.responsive||Qt.value)&&(!M.value.xAxis.dataLabels.show||xr.value),initialMetrics:{scaleLabelsWidth:0,timeLabelsHeight:0},measure:e=>({scaleLabelsWidth:pn.value?e(pn.value).textWidth:M.value.yAxis.dataLabels.offsetX,timeLabelsHeight:e(mn.value).height})}),Wn=f(()=>mn.value?Vn.value.timeLabelsHeight+z.value.xAxisFontSize:0),Gn=f(()=>M.value.yAxis.position===`right`);function Kn(){let e=Vn.value.scaleLabelsWidth,t=M.value.yAxis.axisName?.show?M.value.yAxis.axisName.fontSize+M.value.yAxis.axisName.offsetX:0,n=e+13+t;return{left:Gn.value?0:n,right:Gn.value?n:0,scaleLabelsWidth:e,yAxisNameWidth:t,crosshair:13}}let H=f(()=>{let{top:e,right:t,bottom:n,left:r}=N.value.padding,i=Kn();return{top:e+12,right:z.value.width-t-i.right,left:r+i.left,bottom:z.value.height-n-Wn.value,width:z.value.width-r-t-i.left-i.right,height:z.value.height-e-n-Wn.value-12,scaleLabelsWidth:i.scaleLabelsWidth,yAxisNameWidth:i.yAxisNameWidth,crosshair:i.crosshair}}),qn=f(()=>{let{left:e,top:t,width:n,height:r}=H.value,i=W.value.start,a=W.value.end-i,o=n/a,s=G.value.start-i,c=G.value.end-i,l=Math.max(0,Math.min(a,s)),ee=Math.max(0,Math.min(a,c));return{x:e+l*o,y:t,width:(ee-l)*o,height:r,fill:P.value.zoom.preview.fill,stroke:P.value.zoom.preview.stroke,"stroke-width":P.value.zoom.preview.strokeWidth,"stroke-dasharray":P.value.zoom.preview.strokeDasharray,"stroke-linecap":`round`,"stroke-linejoin":`round`,style:{pointerEvents:`none`,transition:`none !important`,animation:`none !important`}}}),U=f(()=>L.value.length),W=v({start:0,end:U.value}),G=v({start:0,end:U.value}),Jn=v(!1),Yn=v(!1),Xn=v(null),K=v(null),q=v(null),Zn=v(!1),Qn=v({time:0,x:0,y:0,pointerType:null}),$n=f(()=>P.value.zoom?.dragToZoom),J=f(()=>$n.value.show&&Zt.value&&Vr.value&&U.value>1&&!I.value),er=null,tr={},nr=f(()=>P.value.zoom.preview.enable&&(G.value.start!==W.value.start||G.value.end!==W.value.end));function rr(e,t){G.value[e]=t}function ir(e,t=W.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 ar(e){let t=ir(e);t&&w(`update:zoomState`,t)}function or(){er&&=(cancelAnimationFrame(er),null),tr={}}function sr(e){let t=ir(e);if(!t)return null;let{start:n,end:r}=t;return(n!==Number(W.value.start)||r!==Number(W.value.end))&&(or(),W.value={start:n,end:r},G.value={start:n,end:r},lr()),{start:Number(W.value.start),end:Number(W.value.end)}}function cr(e){let t=sr(e);return t?(w(`update:zoomState`,t),t):null}function lr(){let e=Math.max(0,Math.min(W.value.start??0,U.value-1)),t=Math.max(e+1,Math.min(W.value.end??U.value,U.value));(!Number.isFinite(e)||!Number.isFinite(t)||t<=e)&&(e=0,t=U.value),W.value.start=e,W.value.end=t,G.value.start=e,G.value.end=t,sn.value&&sn.value.setRangeValues(e,t)}let ur=f(()=>L.value.map((e,t)=>({...e,absoluteIndex:t}))),dr=f(()=>ur.value.slice(W.value.start,W.value.end)),Y=f(()=>(Pn.value&&L.value.forEach((e,t)=>{[null,void 0].includes(e[0])&&te({componentName:`VueUiCandlestick`,type:`datasetAttribute`,property:`period (index 0)`,index:t}),[null,void 0].includes(e[1])&&te({componentName:`VueUiCandlestick`,type:`datasetAttribute`,property:`open (index 1)`,index:t}),[null,void 0].includes(e[2])&&te({componentName:`VueUiCandlestick`,type:`datasetAttribute`,property:`high (index 2)`,index:t}),[null,void 0].includes(e[3])&&te({componentName:`VueUiCandlestick`,type:`datasetAttribute`,property:`low (index 3)`,index:t}),[null,void 0].includes(e[4])&&te({componentName:`VueUiCandlestick`,type:`datasetAttribute`,property:`close (index 4)`,index:t}),[null,void 0].includes(e[5])&&te({componentName:`VueUiCandlestick`,type:`datasetAttribute`,property:`volume (index 5)`,index:t})}),dr.value.map(e=>({absoluteIndex:e.absoluteIndex,period:e[0],open:e[1],high:e[2],low:e[3],close:e[4],volume:e[5]})))),fr=f(()=>ur.value.map(e=>({absoluteIndex:e.absoluteIndex,period:e[0],open:e[1],high:e[2],low:e[3],close:e[4],volume:e[5]}))),X=f(()=>H.value.width/dr.value.length),pr=f(()=>({max:M.value.yAxis.scale.max===null?Math.max(...Y.value.map(e=>e.high)):M.value.yAxis.scale.max,min:M.value.yAxis.scale.min===null?0:M.value.yAxis.scale.min})),Z=f(()=>l(pr.value.min,pr.value.max,M.value.yAxis.dataLabels.steps));function mr(e,t,n=null,r=null){return{...e,x:u(H.value.left+t*X.value+X.value/2),y:u(H.value.top+(1-(e-Z.value.min)/(Z.value.max-Z.value.min))*H.value.height),value:u(e),isMax:e===n,isMin:e===r}}let Q=f(()=>{let e={o:Math.max(...Y.value.map(e=>e.open)),h:Math.max(...Y.value.map(e=>e.high)),l:Math.max(...Y.value.map(e=>e.low)),c:Math.max(...Y.value.map(e=>e.low))},t={o:Math.min(...Y.value.map(e=>e.open)),h:Math.min(...Y.value.map(e=>e.high)),l:Math.min(...Y.value.map(e=>e.low)),c:Math.min(...Y.value.map(e=>e.low))},n=Math.max(...Y.value.map(e=>e.volume)),r=Math.min(...Y.value.map(e=>e.volume));return Y.value.map((i,a)=>{let o=mr(i.open,a,e.o,t.o),s=mr(i.high,a,e.h,t.h),c=mr(i.low,a,e.l,t.l),l=mr(i.close,a,e.c,t.c),ee=i.close>i.open,te=i.volume===n,u=i.volume===r;return{period:i.period,open:o,high:s,low:c,close:l,volume:i.volume,isBullish:ee,absoluteIndex:i.absoluteIndex,isMaxVolume:te,isMinVolume:u}})});function hr({item:e,index:t,minimapH:n,unitW:r}){let i=M.value.yAxis.scale.min??0,a=M.value.yAxis.scale.max??Math.max(...L.value.map(e=>e[2]));return{...e,x:u(t*r),y:u((1-(e-i)/(a-i))*n),value:u(e)}}let gr=f(()=>({minimapH:e,unitW:t})=>fr.value.map((n,r)=>{let i=hr({item:n.open,index:r,minimapH:e,unitW:t}),a=hr({item:n.high,index:r,minimapH:e,unitW:t}),o=hr({item:n.low,index:r,minimapH:e,unitW:t}),s=hr({item:n.close,index:r,minimapH:e,unitW:t}),c=n.close>n.open;return{period:n.period,open:i,high:a,low:o,close:s,volume:n.volume,isBullish:c,absoluteIndex:n.absoluteIndex}})),_r=f(()=>P.value.zoom.minimap.show?[{name:``,series:L.value.map(e=>e[2]),color:`#000000`,isVisible:!0}]:[]);function vr(e){return u((e-Z.value.min)/(Z.value.max-Z.value.min))}let yr=f(()=>Z.value.ticks.map(e=>({y:H.value.bottom-H.value.height*vr(e),value:u(e)}))),br=f(()=>Y.value.map(e=>e.period)),$=v([]),xr=v(!1),Sr=v([]),Cr=0;it(()=>{let e=++Cr;(async()=>{let t=await ke({values:L.value.map(e=>e[0]),maxDatapoints:L.value.length,formatter:M.value.xAxis.dataLabels.datetimeFormatter,start:W.value.start,end:W.value.end});e===Cr&&($.value=t,xr.value=!0)})()});let wr=0;it(()=>{let e=++wr;(async()=>{let t=await ke({values:L.value.map(e=>e[0]),maxDatapoints:L.value.length,formatter:M.value.xAxis.dataLabels.datetimeFormatter,start:0,end:U.value});e===wr&&(Sr.value=t)})()});let Tr=v({months:[],shortMonths:[],days:[],shortDays:[]}),Er=0;it(()=>{let e=++Er,t=M.value.xAxis.dataLabels.datetimeFormatter;(async()=>{let n=await Oe(t.locale).catch(()=>Oe(`en`));e===Er&&(Tr.value=n.data)})()});let Dr=f(()=>{let e=M.value.xAxis.dataLabels.datetimeFormatter,t=De({useUTC:e.useUTC,locale:Tr.value,januaryAsYear:e.januaryAsYear});return(e,n)=>{let r=L.value.map(e=>e[0])?.[e];return r==null?``:t.formatDate(new Date(r),n)}}),Or=f(()=>(L.value.map(e=>e[0])||[]).map((e,t)=>({text:Dr.value(t,P.value.tooltip.timeFormat),absoluteIndex:t}))),kr=f(()=>(L.value.map(e=>e[0])||[]).map((e,t)=>({text:Dr.value(t,P.value.zoom.timeFormat),absoluteIndex:t}))),Ar=f(()=>{let e=Math.max(1,Math.floor(Number(M.value.xAxis.dataLabels.modulo)||1)),t=($.value||[]).map(e=>e?.text??``),n=(Sr.value||[]).map(e=>e?.text??``),r=W.value.start??0,i=r>0||t.length<n.length;return re({configuredModulo:e,visibleTexts:t,allTexts:n,startAbs:r,isZoomed:i})}),jr=f(()=>{let e=M.value.xAxis.dataLabels,t=$.value||[],n=Sr.value||[],r=W.value.start??0,i=D.value,a=U.value,o=t.map(e=>e?.text??``),s=n.map(e=>e?.text??``),c=ne(!!e.showOnlyFirstAndLast,!!e.showOnlyAtModulo,Ar.value,o,s,r,i,a);if(!e.showFirstAndLast||e.showOnlyFirstAndLast||!c.length)return c;let l=c.length-1;return c.map((e,t)=>t!==0&&t!==l?e:{...e,text:o[t]??``})}),Mr=f(()=>M.value.xAxis.dataLabels.datetimeFormatter.enable?{start:$.value.find(e=>e.absoluteIndex===W.value.start)?.text??``,end:$.value.find(e=>e.absoluteIndex===W.value.end-1)?.text??``}:{start:L.value[W.value.start]?L.value[W.value.start][0]:L.value[0][0],end:L.value[W.value.end-1]?L.value[W.value.end-1][0]:L.value.at(-1)[0]}),Nr=v(null);function Pr(e,t){A.value.events.datapointClick&&A.value.events.datapointClick({datapoint:t,seriesIndex:e+W.value.start})}function Fr(e,t){A.value.events.datapointLeave&&A.value.events.datapointLeave({datapoint:t,seriesIndex:e+W.value.start}),D.value=void 0,tn.value=!1,k.value=null,yn.value=`pointer`}rt(()=>C.selectedXIndex,e=>{if([null,void 0].includes(C.selectedXIndex)){D.value=null;return}let t=e-W.value.start;t<0||e>=W.value.end?D.value=null:D.value=t??null},{immediate:!0});function Ir(e,t,r=`pointer`){A.value.events.datapointEnter&&A.value.events.datapointEnter({datapoint:t,seriesIndex:e+W.value.start}),D.value=e,k.value=e,yn.value=r,Nr.value={datapoint:t,seriesIndex:e,series:Q.value,config:A.value},ki({seriesIndex:e,datapoint:t});let a=P.value.tooltip.customFormat;if(i(a)&&oe(()=>a({seriesIndex:e,datapoint:t,series:Q.value,config:A.value})))nn.value=a({seriesIndex:e,datapoint:t,series:Q.value,config:A.value});else if(P.value.tooltip.show){let r=``,{period:i,open:a,high:o,low:s,close:c,volume:l,isBullish:ee}=Q.value[e],{period:te,open:u,high:ne,low:re,close:ie,volume:ae}=A.value.translations,oe=M.value.xAxis.dataLabels.datetimeFormatter.enable?P.value.tooltip.useDefaultTimeFormat?$.value[e].text:Or.value[e].text:i;r+=`<div><svg style="margin-right:6px" viewBox="0 0 12 12" height="12" width="12"><rect x="0" y="0" height="12" width="12" rx="${j.value.borderRadius*3}" stroke="${j.value.stroke}" stroke-width="${j.value.strokeWidth}"
|
|
2
|
-
fill="${j.value.gradient.show?ee?`url(#bullish_gradient_${E.value})`:`url(#bearish_gradient_${E.value})`:ee?j.value.colors.bullish:j.value.colors.bearish}"/></svg>${oe}</div>`,r+=`${ae} : <b>${isNaN(l)?`-`:Number(l.toFixed(P.value.tooltip.roundingValue)).toLocaleString()}</b>`,r+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${P.value.tooltip.borderColor}">`;let se=n({p:P.value.tooltip.prefix,v:a.value,s:P.value.tooltip.suffix,r:P.value.tooltip.roundingValue}),ce=n({p:P.value.tooltip.prefix,v:o.value,s:P.value.tooltip.suffix,r:P.value.tooltip.roundingValue}),le=n({p:P.value.tooltip.prefix,v:s.value,s:P.value.tooltip.suffix,r:P.value.tooltip.roundingValue}),ue=n({p:P.value.tooltip.prefix,v:c.value,s:P.value.tooltip.suffix,r:P.value.tooltip.roundingValue});P.value.tooltip.showChart?r+=`<div style="width:100%;display:flex;align-items:center;justify-content:center;">
|
|
3
|
-
<svg viewBox="0 0 100 100" width="100px" style="background: transparent; overflow: visible">
|
|
4
|
-
<g>
|
|
5
|
-
<line x1="50" x2="50" y1="20" y2="80" stroke="${t.isBullish?j.value.colors.bullish:j.value.colors.bearish}" stroke-width="2" stroke-linecap="round" />
|
|
6
|
-
${t.isBullish?`
|
|
7
|
-
<line x1="45" x2="50" y1="65" y2="65" stroke="${j.value.colors.bullish}" stroke-width="1.5" stroke-linecap="round" />
|
|
8
|
-
<line x1="50" x2="55" y1="35" y2="35" stroke="${j.value.colors.bullish}" stroke-width="1.5" stroke-linecap="round" />
|
|
9
|
-
<text x="38" y="70" text-anchor="end" fill="${P.value.tooltip.color}">${se}</text>
|
|
10
|
-
<text x="62" y="40" text-anchor="start" fill="${P.value.tooltip.color}">${ue}</text>
|
|
11
|
-
`:`
|
|
12
|
-
<line x1="45" x2="50" y1="35" y2="35" stroke="${j.value.colors.bearish}" stroke-width="1.5" stroke-linecap="round" />
|
|
13
|
-
<line x1="50" x2="55" y1="65" y2="65" stroke="${j.value.colors.bearish}" stroke-width="1.5" stroke-linecap="round" />
|
|
14
|
-
<text x="40" y="40" text-anchor="end" fill="${P.value.tooltip.color}">${se}</text>
|
|
15
|
-
<text x="60" y="70" text-anchor="start" fill="${P.value.tooltip.color}">${ue}</text>
|
|
16
|
-
`}
|
|
17
|
-
<text x="50" y="13" text-anchor="middle" fill="${P.value.tooltip.color}">${ce}</text>
|
|
18
|
-
<text x="50" y="97" text-anchor="middle" fill="${P.value.tooltip.color}">${le}</text>
|
|
19
|
-
<g>
|
|
20
|
-
</svg>
|
|
21
|
-
<div>
|
|
22
|
-
`:(r+=`<div>${u}: <b>${se}</b></div>`,r+=`<div>${ne}: <b>${ce}</b></div>`,r+=`<div>${re}: <b>${le}</b></div>`,r+=`<div>${ie}: <b>${ue}</b></div>`),r+=`</div>`,nn.value=`<div style="text-align:right">${r}</div>`}tn.value=!0}let Lr=v(null);function Rr(){return new Promise(e=>requestAnimationFrame(()=>requestAnimationFrame(()=>e())))}Ze(()=>{Lr.value&&cancelAnimationFrame(Lr.value),or(),yi()});async function zr({force:e=!1,publish:t=!1}={}){let n=!e;Ur(n),await Je(),Lr.value&&cancelAnimationFrame(Lr.value),Lr.value=requestAnimationFrame(async()=>{await Rr(),Ur(n),Lr.value=null,t&&(ar({start:Number(W.value.start),end:Number(W.value.end)}),w(`zoomReset`))})}let Br=v(!1),Vr=v(!1),Hr=v(!1);rt([()=>C.zoomState,Vr],([e,t])=>{t&&e&&sr(e)},{deep:!0,immediate:!0});function Ur(e=!0){if(!Br.value){Br.value=!0;try{let{startIndex:t,endIndex:n}=P.value.zoom,r=U.value,i=t??0,a=n==null?r:Math.min(Wr(n+1,i),r);Hr.value=!0,W.value.start=i,W.value.end=a,G.value.start=i,G.value.end=a,lr(),Vr.value=!0,e&&C.zoomState&&sr(C.zoomState)}finally{queueMicrotask(()=>{Hr.value=!1}),Br.value=!1}}}function Wr(e,t=W.value.start){let n=U.value,r=Number(t);return e>n?n:e<0||e<=r?Math.min(r+1,n):e}function Gr(e=null){Je(()=>{let t=[A.value.translations.period,A.value.translations.open,A.value.translations.high,A.value.translations.low,A.value.translations.close,A.value.translations.volume],n=Q.value.map((e,t)=>[M.value.xAxis.dataLabels.datetimeFormatter.enable?$.value[t].text:e.period,e.open.value,e.high.value,e.low.value,e.close.value,e.volume]),i=[[P.value.title.text],[P.value.title.subtitle.text],[[``],[``],[``]],t].concat(n),a=r(i);e?e(a):ae({csvContent:a,title:P.value.title.text||`vue-ui-candlestick`})})}let Kr=f(()=>{let e=Q.value.map((e,t)=>{let r=M.value.xAxis.dataLabels.datetimeFormatter.enable?$.value?.[t]?.text??``:e.period,i=n({p:A.value.table.td.prefix,v:e.open.value,s:A.value.table.td.suffix,r:A.value.table.td.roundingValue}),a=n({p:A.value.table.td.prefix,v:e.high.value,s:A.value.table.td.suffix,r:A.value.table.td.roundingValue}),o=n({p:A.value.table.td.prefix,v:e.low.value,s:A.value.table.td.suffix,r:A.value.table.td.roundingValue}),s=n({p:A.value.table.td.prefix,v:e.close.value,s:A.value.table.td.suffix,r:A.value.table.td.roundingValue});return[`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12" height="12" width="12" style="margin-right: 6px"><rect x="0" y="0" height="12" width="12" rx="${j.value.borderRadius*3}" fill="${j.value.gradient.show?e.isBullish?`url(#bullish_gradient_${E.value})`:`url(#bearish_gradient_${E.value})`:e.isBullish?j.value.colors.bullish:j.value.colors.bearish}"/></svg> ${r}`,i,a,o,s,`${isNaN(e.volume)?`-`:e.volume.toLocaleString()}`]}),t=Q.value.map((e,t)=>[M.value.xAxis.dataLabels.datetimeFormatter.enable?$.value?.[t]?.text??``:e.period,n({p:A.value.table.td.prefix,v:e.open.value,s:A.value.table.td.suffix,r:A.value.table.td.roundingValue}),n({p:A.value.table.td.prefix,v:e.high.value,s:A.value.table.td.suffix,r:A.value.table.td.roundingValue}),n({p:A.value.table.td.prefix,v:e.low.value,s:A.value.table.td.suffix,r:A.value.table.td.roundingValue}),n({p:A.value.table.td.prefix,v:e.close.value,s:A.value.table.td.suffix,r:A.value.table.td.roundingValue}),`${isNaN(e.volume)?`-`:e.volume}`]),r={th:{backgroundColor:A.value.table.th.backgroundColor,color:A.value.table.th.color,outline:A.value.table.th.outline},td:{backgroundColor:A.value.table.td.backgroundColor,color:A.value.table.td.color,outline:A.value.table.td.outline},breakpoint:A.value.table.responsiveBreakpoint},i=[A.value.translations.period,A.value.translations.open,A.value.translations.high,A.value.translations.low,A.value.translations.last,A.value.translations.volume];return{head:i,body:e,bodyA11y:t,config:r,colNames:i}}),qr=v(!1);function Jr(e){qr.value=e,rn.value+=1}function Yr(){B.value.showTable=!B.value.showTable}function Xr(){B.value.showTooltip=!B.value.showTooltip}let Zr=v(!1);function Qr(){Zr.value=!Zr.value}async function $r({scale:e=2}={}){if(!O.value)return;let{imageUri:t,base64:n}=await ve({domElement:O.value,base64:!0,img:!0,scale:e}),r=O.value.getBoundingClientRect(),i={width:r.width,height:r.height,aspectRatio:r.height?r.width/r.height:0},a=await ee(t,e)??i;return{imageUri:t,base64:n,title:P.value.title.text,...a}}let ei=f(()=>z.value.width),ti=f(()=>z.value.height);Ne({timeLabelsEls:mn,timeLabels:$,slicer:W,configRef:A,rotationPath:[`style`,`layout`,`grid`,`xAxis`,`dataLabels`,`rotation`],autoRotatePath:[`style`,`layout`,`grid`,`xAxis`,`dataLabels`,`autoRotate`,`enable`],isAutoSize:!1,rotation:M.value.xAxis.dataLabels.autoRotate.angle,width:ei,height:ti}),rt(A,()=>{B.value={showTable:A.value.table.show,showTooltip:P.value.tooltip.show}},{immediate:!0});let ni=f(()=>Se({config:A,style:P,mutableConfig:B,dialog:qt,accordion:Ht,isFullscreen:qr,parent:O,maxWidth:800,isCursorPointer:Sn}));rt(()=>B.value.showTable,e=>xe(e,A,hn));function ri(){B.value.showTable=!1,gn.value&&gn.value.setTableIconState(!1)}let ii=f(()=>P.value.backgroundColor),ai=f(()=>P.value.title),{isCallbackImaging:oi,isCallbackSvg:si,generateSvg:ci,onGenerateImage:li}=be({svg:R,title:ai,legend:null,legendItems:null,backgroundColor:ii,getSvgCallback:()=>A.value.userOptions.callbacks.svg,generateImage:zn});function ui(e){_n.value=e}function di(e){tr={...tr,...e},er&&cancelAnimationFrame(er),er=requestAnimationFrame(()=>{let e={...W.value,...tr};tr={},er=null,W.value=e,G.value={...e},lr(),ar({start:Number(W.value.start),end:Number(W.value.end)})})}function fi(e){if(Br.value||Hr.value)return;let t=Number(e);Number.isFinite(t)&&(w(`zoomStart`,{index:t,isZoom:t!==0}),t!==W.value.start&&di({start:t}))}function pi(e){if(Br.value||Hr.value)return;let t=tr.start===void 0?W.value.start:tr.start,n=Wr(Number(e),t);Number.isFinite(n)&&(w(`zoomEnd`,{index:n,isZoom:n!==U.value}),(n!==W.value.end||tr.start!==void 0)&&di({end:n}))}function mi(e){let t=R.value;if(!t)return null;if(t.createSVGPoint&&t.getScreenCTM){let n=t.createSVGPoint();n.x=e.clientX,n.y=e.clientY;let r=t.getScreenCTM();if(r){let e=n.matrixTransform(r.inverse());return{x:e.x,y:e.y}}}let n=t.getBoundingClientRect(),r=t.viewBox?.baseVal||{x:0,y:0,width:n.width,height:n.height},i=Math.min(n.width/r.width,n.height/r.height);if(!Number.isFinite(i)||i<=0)return null;let a=r.width*i,o=r.height*i,s=(n.width-a)/2,c=(n.height-o)/2;return{x:(e.clientX-n.left-s)/i+r.x,y:(e.clientY-n.top-c)/i+r.y}}let hi=f(()=>!Jn.value||Xn.value==null||K.value==null?null:{x:Math.min(Xn.value,K.value),y:H.value.top,width:Math.abs(K.value-Xn.value),height:H.value.height}),gi=f(()=>Vr.value?Number(W.value.start)!==0||Number(W.value.end)!==Number(U.value):!1);function _i(e){return Math.min(Math.max(e,H.value.left),H.value.right)}function vi(){D.value=void 0,k.value=null,yn.value=`pointer`,tn.value=!1,_n.value=null}function yi(e){let t=e?.pointerId==null?q.value:e.pointerId;t!=null&&R.value?.hasPointerCapture?.(t)&&R.value.releasePointerCapture(t),Jn.value=!1,Xn.value=null,K.value=null,q.value=null}function bi(){Zn.value=!0,setTimeout(()=>{Zn.value=!1},0)}function xi(e){Zn.value&&(Zn.value=!1,e.preventDefault(),e.stopPropagation())}function Si(e){if(!J.value||!gi.value||!e)return!1;let t=Date.now(),n=e.pointerType||`mouse`,r=Qn.value,i=n===`touch`?450:350,a=n===`touch`?28:10,o=Math.hypot(e.clientX-r.x,e.clientY-r.y);return r.time>0&&r.pointerType===n&&t-r.time<=i&&o<=a?(Qn.value={time:0,x:0,y:0,pointerType:null},bi(),yi(e),zr({force:!0,publish:!0}),!0):(Qn.value={time:t,x:e.clientX,y:e.clientY,pointerType:n},!1)}function Ci(e){let t=Number(W.value.end)-Number(W.value.start);if(t<=0||!Number.isFinite(X.value)||X.value<=0)return null;let n=Math.floor((_i(e)-H.value.left)/X.value);return Math.max(0,Math.min(t-1,n))}function wi(e,t){let n=Ci(e),r=Ci(t);if(n==null||r==null)return null;let i=Math.min(n,r),a=Math.max(n,r);return a<=i?null:{start:Number(W.value.start)+i,end:Number(W.value.start)+a+1}}function Ti(e){let t=cr(e);return t?(w(`zoomStart`,{index:t.start,isZoom:t.start!==0}),w(`zoomEnd`,{index:t.end,isZoom:t.end!==U.value}),t):null}function Ei(e){if(!J.value||Zr.value||e.button!==void 0&&e.button!==0||q.value!=null&&e.pointerId!==q.value)return;let t=mi(e);if(!t)return;let{left:n,right:r,top:i,bottom:a}=H.value;if(t.x<n||t.x>r||t.y<i||t.y>a||Number(W.value.end)-Number(W.value.start)<=1)return;Yn.value=!0,R.value?.focus?.({preventScroll:!0}),vi();let o=_i(t.x);q.value=e.pointerId,Jn.value=!0,Xn.value=o,K.value=o}function Di(e){if(!J.value||!Jn.value||q.value!=null&&e.pointerId!==q.value)return;let t=mi(e);t&&(K.value=_i(t.x),vi(),Xn.value!=null&&Math.abs(K.value-Xn.value)>=2&&!R.value?.hasPointerCapture?.(e.pointerId)&&R.value?.setPointerCapture?.(e.pointerId))}function Oi(e){if(!J.value||!Jn.value||q.value!=null&&e.pointerId!==q.value)return;let t=mi(e);t&&(K.value=_i(t.x));let n=Xn.value,r=K.value;if((n==null||r==null?0:Math.abs(r-n))<Math.max(4,H.value.width*.01)){if(Si(e))return;yi(e);return}let i=wi(Math.min(n,r),Math.max(n,r));i?(yi(e),Ti(i)&&(Qn.value={time:0,x:0,y:0,pointerType:null},vi(),bi())):yi(e)}function ki({seriesIndex:e,datapoint:t}){let n=W.value.start+e;w(`selectX`,{dataset:t,index:n,indexLabel:``})}async function Ai(){w(`copyAlt`,{config:A.value,dataset:Q.value}),A.value.userOptions.callbacks.altCopy?await Promise.resolve(A.value.userOptions.callbacks.altCopy({config:A.value,dataset:Q.value})):console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.")}function ji(){k.value=null,bn.value=!0}function Mi(){Yn.value=!1,k.value=null,yn.value=`pointer`,tn.value=!1,D.value=void 0,bn.value=!1}function Ni(e){if(!R.value||Zr.value||document.activeElement!==R.value||(Yn.value=!1,!Q.value.length))return;let t=e.key===`ArrowLeft`,n=e.key===`ArrowRight`,r=e.key===`Enter`||e.key===` `,i=e.key===`Escape`;if(!t&&!n&&!r&&!i)return;if(e.preventDefault(),e.stopPropagation(),i){if(J.value&&(gi.value||Jn.value)){yi(),zr({force:!0,publish:!0});return}k.value=null,yn.value=`pointer`,tn.value=!1,D.value=void 0;return}if(r){if(k.value===null)return;let e=Q.value[k.value];if(!e)return;Pr(k.value,e);return}let a=k.value,o=D.value,s=a!==null&&a>=0&&a<Q.value.length,c=o!=null&&o>=0&&o<Q.value.length;s?n?(a+=1,a>=Q.value.length&&(a=0)):t&&(--a,a<0&&(a=Q.value.length-1)):c?(a=n?o+1:o-1,a>=Q.value.length&&(a=0),a<0&&(a=Q.value.length-1)):a=n?0:Q.value.length-1;let l=Q.value[a];l&&(Pi(a),Ir(a,l,`keyboard`))}function Pi(e){if(!Number.isFinite(e)||!R.value)return;let t=H.value.left+X.value*e+X.value/2,n=H.value.top+H.value.height/2,r=R.value.getBoundingClientRect();vn.value={x:r.left+t/z.value.width*r.width,y:r.top+n/z.value.height*r.height}}let Fi=f(()=>({headers:Kr.value?.colNames??[],rows:Kr.value?.bodyA11y??[]}));return he({getImage:$r,generatePdf:Rn,generateCsv:Gr,generateImage:zn,generateSvg:ci,toggleTable:Yr,toggleTooltip:Xr,toggleAnnotator:Qr,toggleFullscreen:Jr,copyAlt:Ai,resetZoom:()=>zr({force:!0,publish:!0}),setZoomState:cr}),rt(()=>[z.value,M.value,A.value.style.fontFamily,C.dataset,W.value.start,W.value.end,$.value,xr.value,Qt.value,pn.value,mn.value],Un,{flush:`post`,deep:!0}),(e,t)=>(_(),m(`div`,{ref_key:`candlestickChart`,ref:O,class:g(`vue-data-ui-component vue-ui-candlestick ${qr.value?`vue-data-ui-wrapper-fullscreen`:``} ${A.value.useCssAnimation?``:`vue-ui-dna`}`),style:Xe(`position:relative;font-family:${P.value.fontFamily}; text-align:center;background:${P.value.backgroundColor}; ${A.value.responsive?`height: 100%`:``}`),id:`vue-ui-candlestick_${E.value}`,onMouseenter:On,onMouseleave:kn},[h(`div`,{id:`chart-instructions-${E.value}`,class:`sr-only`},[h(`p`,null,tt(A.value.a11y.translations.keyboardNavigation),1)],8,st),Fi.value?.rows?.length?(_(),Ve(Le,{key:0,uid:E.value,head:Fi.value.headers,body:Fi.value.rows,notice:A.value.a11y.translations.tableAvailable,caption:A.value.a11y.translations.tableCaption},null,8,[`uid`,`head`,`body`,`notice`,`caption`])):p(``,!0),F.value.buttons.annotator?(_(),Ve(x(Wt),{key:1,svgRef:x(R),backgroundColor:P.value.backgroundColor,color:P.value.color,active:Zr.value,isCursorPointer:Sn.value,palette:F.value.annotatorPalette,onClose:Qr},He({_:2},[y(x(we),t=>({name:t,fn:S(n=>[b(e.$slots,t,Ye(Ke(x(Ce)(t,n))),void 0,!0)])}))]),1032,[`svgRef`,`backgroundColor`,`color`,`active`,`isCursorPointer`,`palette`])):p(``,!0),Bn.value?(_(),m(`div`,{key:2,ref_key:`noTitle`,ref:ln,class:`vue-data-ui-no-title-space`,style:`height:36px; width: 100%;background:transparent`},null,512)):p(``,!0),P.value.title.text?(_(),m(`div`,{key:3,ref_key:`chartTitle`,ref:an,style:`width:100%;background:transparent`},[(_(),Ve(ye,{key:`title_${fn.value}`,config:{title:{cy:`candlestick-div-title`,...P.value.title},subtitle:{cy:`candlestick-div-subtitle`,...P.value.title.subtitle}}},null,8,[`config`]))],512)):p(``,!0),F.value.show&&Zt.value&&(x(Dn)||x(Tn))?(_(),Ve(x(Gt),{ref_key:`userOptionsRef`,ref:gn,key:`user_options_${rn.value}`,backgroundColor:P.value.backgroundColor,color:P.value.color,isImaging:x(Ln),isPrinting:x(In),uid:E.value,hasTooltip:F.value.buttons.tooltip&&P.value.tooltip.show,hasPdf:F.value.buttons.pdf,hasImg:F.value.buttons.img,hasSvg:F.value.buttons.svg,hasXls:F.value.buttons.csv,hasTable:F.value.buttons.table,hasFullscreen:F.value.buttons.fullscreen,hasAltCopy:F.value.buttons.altCopy,isFullscreen:qr.value,isTooltip:B.value.showTooltip,titles:{...F.value.buttonTitles},chartElement:O.value,position:F.value.position,hasAnnotator:F.value.buttons.annotator,isAnnotation:Zr.value,callbacks:F.value.callbacks,printScale:F.value.print.scale,tableDialog:A.value.table.useDialog,isCursorPointer:Sn.value,onToggleFullscreen:Jr,onGeneratePdf:x(Rn),onGenerateCsv:Gr,onGenerateImage:x(li),onGenerateSvg:x(ci),onToggleTable:Yr,onToggleTooltip:Xr,onToggleAnnotator:Qr,onCopyAlt:Ai,style:Xe({visibility:x(Dn)?x(Tn)?`visible`:`hidden`:`visible`})},He({_:2},[y(x(Te)(e.$slots,`menuIcon optionTooltip optionPdf optionCsv optionImg optionSvg optionTable optionFullscreen optionAnnotator optionAltCopy custom-menu-before custom-menu-after`),t=>({name:t,fn:S(n=>[b(e.$slots,t,Ye(Ke(x(Ee)(t,n))),void 0,!0)])}))]),1032,/* @__PURE__ */ `backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style`.split(`.`))):p(``,!0),h(`div`,ct,[(_(),m(`svg`,{ref_key:`svgRef`,ref:R,xmlns:x(ce),"aria-describedby":`chart-instructions-${E.value}`,class:g({"vue-data-ui-fullscreen--on":qr.value,"vue-data-ui-fulscreen--off":!qr.value,"vue-data-ui-no-transition":!x(xn)||x(V),"vue-ui-candlestick-chart-zoom-pointer-focus":J.value&&Yn.value}),viewBox:`0 0 ${z.value.width<=0?10:z.value.width} ${z.value.height<=0?10:z.value.height}`,style:Xe({maxWidth:`100%`,visibility:x(Hn)?`visible`:`hidden`,overflow:`visible`,background:`transparent`,color:P.value.color,cursor:J.value?Jn.value?`col-resize`:`crosshair`:void 0,touchAction:J.value?`pan-y`:void 0,userSelect:J.value?`none`:void 0}),tabindex:`0`,onFocus:ji,onBlur:Mi,onKeydown:Ni,onPointerdown:Ei,onPointermove:Di,onPointerup:Oi,onPointercancel:yi,onClickCapture:xi},[We(x(Kt)),b(e.$slots,`svg-underlayer`,{svg:{...z.value,data:Q.value,drawingArea:H.value,isPrintingImg:x(In)||x(Ln)||x(oi),isPrintingSvg:x(si)}},void 0,!0),e.$slots[`chart-background`]?(_(),m(`foreignObject`,{key:0,x:H.value.left,y:H.value.top,width:Math.max(.1,H.value.width),height:Math.max(.1,H.value.height),style:{pointerEvents:`none`}},[b(e.$slots,`chart-background`,{},void 0,!0)],8,ut)):p(``,!0),Q.value.length>0?(_(),m(`g`,dt,[h(`defs`,null,[We(Fe,{t:`linear`,id:`bearish_gradient_${E.value}`,x2:`0%`,y2:`100%`,stops:[[`0%`,j.value.colors.bearish,1],[`50%`,x(c)(j.value.colors.bearish,.02),.87],[`100%`,x(c)(j.value.colors.bearish,.05),.4]]},null,8,[`id`,`stops`]),We(Fe,{t:`linear`,id:`bullish_gradient_${E.value}`,x2:`0%`,y2:`100%`,stops:[[`0%`,j.value.colors.bullish,1],[`50%`,x(c)(j.value.colors.bullish,.02),.87],[`100%`,x(c)(j.value.colors.bullish,.05),.4]]},null,8,[`id`,`stops`])]),M.value.show?(_(),m(`g`,ft,[h(`line`,{x1:Gn.value?H.value.right:H.value.left,x2:Gn.value?H.value.right:H.value.left,y1:H.value.top,y2:H.value.bottom,stroke:M.value.stroke,"stroke-width":M.value.strokeWidth,"stroke-linecap":`round`},null,8,pt),h(`line`,{x1:H.value.left,x2:H.value.right,y1:H.value.bottom,y2:H.value.bottom,stroke:M.value.stroke,"stroke-width":M.value.strokeWidth,"stroke-linecap":`round`},null,8,mt),M.value.horizontalLines.show?(_(!0),m(d,{key:0},y(yr.value,e=>(_(),m(`line`,{x1:H.value.left,x2:H.value.right,y1:e.y,y2:e.y,stroke:M.value.horizontalLines.stroke,"stroke-width":M.value.horizontalLines.strokeWidth,"stroke-dasharray":M.value.horizontalLines.strokeDasharray,"stroke-linecap":`round`},null,8,ht))),256)):p(``,!0),M.value.verticalLines.show?(_(!0),m(d,{key:1},y(jr.value,(e,t)=>(_(),m(`g`,null,[e.text?(_(),m(`line`,{key:0,x1:H.value.left+X.value*t+X.value/2,x2:H.value.left+X.value*t+X.value/2,y1:H.value.top,y2:H.value.bottom,stroke:M.value.verticalLines.stroke,"stroke-width":M.value.verticalLines.strokeWidth,"stroke-dasharray":M.value.verticalLines.strokeDasharray,"stroke-linecap":`round`},null,8,gt)):p(``,!0)]))),256)):p(``,!0),M.value.xAxis.ticks.show?(_(!0),m(d,{key:2},y(jr.value,(e,t)=>(_(),m(`g`,null,[e.text?(_(),m(`line`,{key:0,x1:H.value.left+X.value*t+X.value/2,x2:H.value.left+X.value*t+X.value/2,y1:H.value.bottom,y2:H.value.bottom+3,stroke:M.value.stroke,"stroke-width":M.value.strokeWidth,"stroke-linecap":`round`},null,8,_t)):p(``,!0)]))),256)):p(``,!0)])):p(``,!0),M.value.yAxis.dataLabels.show?(_(),m(`g`,{key:1,ref_key:`scaleLabels`,ref:pn},[(_(!0),m(d,null,y(yr.value,(e,t)=>(_(),m(`g`,{key:`sl_${t}`},[e.value>=Z.value.min&&e.value<=Z.value.max?(_(),m(`line`,{key:0,x1:Gn.value?H.value.right:H.value.left,x2:Gn.value?H.value.right+5:H.value.left-5,y1:e.y,y2:e.y,stroke:M.value.stroke,"stroke-width":M.value.strokeWidth,"stroke-linecap":`round`},null,8,vt)):p(``,!0),e.value>=Z.value.min&&e.value<=Z.value.max?(_(),m(`text`,{key:1,class:g({"vue-data-ui-transition":x(xn)&&!x(V)}),transform:`translate(${Gn.value?H.value.right+8+M.value.yAxis.dataLabels.offsetX:H.value.left-8+M.value.yAxis.dataLabels.offsetX}, ${e.y+z.value.yAxisFontSize/3})`,"text-anchor":Gn.value?`start`:`end`,"font-size":z.value.yAxisFontSize,fill:M.value.yAxis.dataLabels.color,"font-weight":M.value.yAxis.dataLabels.bold?`bold`:`normal`},tt(x(n)({p:M.value.yAxis.dataLabels.prefix,v:e.value,s:M.value.yAxis.dataLabels.suffix,r:M.value.yAxis.dataLabels.roundingValue})),11,yt)):p(``,!0)]))),128))],512)):p(``,!0),M.value.xAxis.dataLabels.show&&!M.value.xAxis.dataLabels.datetimeFormatter.enable?(_(),m(`g`,{key:2,ref_key:`timeLabelsEls`,ref:mn},[(_(!0),m(d,null,y(br.value,(e,t)=>(_(),m(`g`,null,[h(`text`,{class:`vue-data-ui-time-label`,transform:`translate(${H.value.left+X.value*t+X.value/2}, ${H.value.bottom+z.value.xAxisFontSize*1.5}), rotate(${M.value.xAxis.dataLabels.rotation})`,"text-anchor":M.value.xAxis.dataLabels.rotation>0?`start`:M.value.xAxis.dataLabels.rotation<0?`end`:`middle`,"font-size":z.value.xAxisFontSize,fill:M.value.xAxis.dataLabels.color,"font-weight":M.value.xAxis.dataLabels.bold?`bold`:`normal`},tt(e),9,bt)]))),256))],512)):p(``,!0),M.value.xAxis.dataLabels.show&&M.value.xAxis.dataLabels.datetimeFormatter.enable?(_(),m(`g`,{key:3,ref_key:`timeLabelsEls`,ref:mn},[(_(!0),m(d,null,y(jr.value,(e,t)=>(_(),m(`g`,null,[h(`text`,{class:`vue-data-ui-time-label`,transform:`translate(${H.value.left+X.value*t+X.value/2}, ${H.value.bottom+z.value.xAxisFontSize*1.5}), rotate(${M.value.xAxis.dataLabels.rotation})`,"text-anchor":M.value.xAxis.dataLabels.rotation>0?`start`:M.value.xAxis.dataLabels.rotation<0?`end`:`middle`,"font-size":z.value.xAxisFontSize,fill:M.value.xAxis.dataLabels.color,stroke:P.value.backgroundColor,"stroke-width":`3`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"paint-order":`stroke fill`,"font-weight":M.value.xAxis.dataLabels.bold?`bold`:`normal`},tt(e?.text??``),9,xt)]))),256))],512)):p(``,!0),A.value.type===`candlestick`?(_(),m(d,{key:4},[h(`g`,null,[(_(!0),m(d,null,y(Q.value,(e,t)=>(_(),m(`g`,null,[h(`rect`,{x:e.open.x-N.value.wick.strokeWidth/2,y:e.high.y,width:N.value.wick.strokeWidth,height:Math.abs(e.high.y-e.low.y),fill:N.value.wick.stroke,stroke:`none`,rx:N.value.wick.strokeWidth/2,class:g({"vue-data-ui-transition":T.value&&!x(I)&&!x(V)})},null,10,St),N.value.wick.extremity.shape===`circle`?(_(),m(`g`,Ct,[h(`circle`,{cx:e.high.x,cy:e.high.y,r:N.value.wick.extremity.size===`auto`?X.value/20:N.value.wick.extremity.size,fill:N.value.wick.extremity.color,class:g({"vue-data-ui-transition":T.value&&!x(I)&&!x(V)})},null,10,wt),h(`circle`,{cx:e.low.x,cy:e.low.y,r:N.value.wick.extremity.size===`auto`?X.value/20:N.value.wick.extremity.size,fill:N.value.wick.extremity.color,class:g({"vue-data-ui-transition":T.value&&!x(I)&&!x(V)})},null,10,Tt)])):p(``,!0),N.value.wick.extremity.shape===`line`?(_(),m(`g`,Et,[h(`rect`,{x:e.high.x-(N.value.wick.extremity.size===`auto`?X.value*N.value.candle.widthRatio:N.value.wick.extremity.size)/2,y:e.high.y-N.value.wick.strokeWidth/2,width:Math.abs(e.high.x-(N.value.wick.extremity.size===`auto`?X.value*P.value.layout.candle.widthRatio:P.value.layout.wick.extremity.size)/2-(e.high.x+(P.value.layout.wick.extremity.size===`auto`?X.value*P.value.layout.candle.widthRatio:P.value.layout.wick.extremity.size)/2)),height:N.value.wick.strokeWidth,rx:N.value.wick.strokeWidth/2,fill:N.value.wick.extremity.color,stroke:`none`,class:g({"vue-data-ui-transition":T.value&&!x(I)&&!x(V)})},null,10,Dt),h(`rect`,{x:e.low.x-(N.value.wick.extremity.size===`auto`?X.value*N.value.candle.widthRatio:N.value.wick.extremity.size)/2,y:e.low.y-N.value.wick.strokeWidth/2,width:Math.abs(e.low.x-(N.value.wick.extremity.size===`auto`?X.value*P.value.layout.candle.widthRatio:P.value.layout.wick.extremity.size)/2-(e.low.x+(P.value.layout.wick.extremity.size===`auto`?X.value*P.value.layout.candle.widthRatio:P.value.layout.wick.extremity.size)/2)),height:N.value.wick.strokeWidth,fill:N.value.wick.extremity.color,stroke:`none`,rx:N.value.wick.strokeWidth/2,class:g({"vue-data-ui-transition":T.value&&!x(I)&&!x(V)})},null,10,Ot)])):p(``,!0)]))),256))]),h(`g`,null,[(_(!0),m(d,null,y(Q.value,(e,t)=>(_(),m(`rect`,{x:e.open.x-X.value/2+X.value*(1-j.value.widthRatio)/2,y:e.isBullish?e.close.y:e.open.y,height:Math.abs(e.close.y-e.open.y)<=0?1e-4:Math.abs(e.close.y-e.open.y),width:X.value*j.value.widthRatio<=0?1e-4:X.value*j.value.widthRatio,fill:j.value.gradient.underlayer,rx:j.value.borderRadius,stroke:`none`,class:g({"vue-data-ui-transition":T.value&&!x(I)&&!x(V)})},null,10,kt))),256)),(_(!0),m(d,null,y(Q.value,(e,t)=>(_(),m(`rect`,{x:e.open.x-X.value/2+X.value*(1-j.value.widthRatio)/2,y:e.isBullish?e.close.y:e.open.y,height:Math.abs(e.close.y-e.open.y)<=0?1e-4:Math.abs(e.close.y-e.open.y),width:X.value*j.value.widthRatio<=0?1e-4:X.value*j.value.widthRatio,fill:e.isBullish?j.value.gradient.show?`url(#bullish_gradient_${E.value})`:j.value.colors.bullish:j.value.gradient.show?`url(#bearish_gradient_${E.value})`:j.value.colors.bearish,rx:j.value.borderRadius,stroke:j.value.stroke,"stroke-width":j.value.strokeWidth,"stroke-linecap":`round`,"stroke-linejoin":`round`,class:g({"vue-data-ui-transition":T.value&&!x(I)&&!x(V)})},null,10,At))),256))])],64)):p(``,!0),A.value.type===`ohlc`?(_(!0),m(d,{key:5},y(Q.value,(e,t)=>(_(),m(`g`,{key:`ohlc_${e.absoluteIndex}`},[h(`path`,{d:`M ${e.high.x},${e.high.y} ${e.low.x},${e.low.y} M${e.open.x-Math.min(6,X.value/3)},${e.open.y} ${e.open.x},${e.open.y} M${e.close.x},${e.close.y} ${e.close.x+Math.min(6,X.value/3)},${e.close.y}`,stroke:e.isBullish?j.value.colors.bullish:j.value.colors.bearish,"stroke-width":1,class:g({"vue-data-ui-transition":x(xn)&&!x(V)}),"stroke-linecap":`round`,"stroke-linejoin":`round`},null,10,jt)]))),128)):p(``,!0),h(`g`,null,[(_(!0),m(d,null,y(Q.value,(e,t)=>(_(),m(`rect`,{x:H.value.left+t*X.value,y:H.value.top,height:H.value.height<=0?1e-4:H.value.height,width:X.value<=0?1e-4:X.value,fill:D.value===t||_n.value===t?x(a)(N.value.selector.color,N.value.selector.opacity):`transparent`,onMouseover:()=>Ir(t,e,`pointer`),onMouseleave:()=>Fr(t,e),onClick:()=>Pr(t,e)},null,40,Mt))),256))])])):p(``,!0),hi.value?(_(),m(`rect`,{key:2,x:hi.value.x,y:hi.value.y,width:hi.value.width,height:hi.value.height,fill:$n.value.selection.fill,"fill-opacity":$n.value.selection.fillOpacity,stroke:$n.value.selection.stroke,"stroke-opacity":$n.value.selection.strokeOpacity,"stroke-width":$n.value.selection.strokeWidth,"stroke-dasharray":$n.value.selection.strokeDasharray,"stroke-linecap":`round`,"stroke-linejoin":`round`,"pointer-events":`none`},null,8,Nt)):p(``,!0),nr.value?(_(),m(`rect`,qe({key:3},qn.value,{"data-start":W.value.start,"data-end":W.value.end}),null,16,Pt)):p(``,!0),b(e.$slots,`svg`,{svg:{...z.value,data:Q.value,drawingArea:H.value,isPrintingImg:x(In)||x(Ln)||x(oi),isPrintingSvg:x(si)}},void 0,!0)],46,lt)),e.$slots.hint?(_(),m(`div`,Ft,[b(e.$slots,`hint`,Ye(Ke({hint:A.value.a11y.translations.keyboardNavigation,isVisible:bn.value})),void 0,!0)])):p(``,!0)]),e.$slots.watermark?(_(),m(`div`,It,[b(e.$slots,`watermark`,Ye(Ke({isPrinting:x(In)||x(Ln)||x(oi)||x(si)})),void 0,!0)])):p(``,!0),P.value.zoom.show&&U.value>6&&Zt.value&&Vr.value?(_(),Ve(Ie,{key:6,ref_key:`chartSlicer`,ref:sn,"data-dom-to-png-ignore-layout":``,allMinimaps:_r.value,background:P.value.zoom.color,borderColor:P.value.backgroundColor,customFormat:P.value.zoom.customFormat,cutNullValues:!1,enableRangeHandles:P.value.zoom.enableRangeHandles,enableSelectionDrag:P.value.zoom.enableSelectionDrag,end:W.value.end,focusOnDrag:P.value.zoom.focusOnDrag,focusRangeRatio:P.value.zoom.focusRangeRatio,fontSize:P.value.zoom.fontSize,immediate:!P.value.zoom.preview.enable,inputColor:P.value.zoom.color,isPreview:nr.value,labelLeft:Mr.value.start||``,labelRight:Mr.value.end||``,max:U.value,min:0,minimap:P.value.zoom.minimap.show?x(L).map(e=>e[2]):[],minimapCompact:P.value.zoom.minimap.compact,minimapFrameColor:P.value.zoom.minimap.frameColor,minimapIndicatorColor:P.value.zoom.minimap.indicatorColor,minimapMerged:!1,minimapSelectedColor:P.value.zoom.minimap.selectedColor,minimapSelectedColorOpacity:P.value.zoom.minimap.selectedColorOpacity,minimapSelectedIndex:D.value,minimapSelectionRadius:1,preciseLabels:kr.value,refreshEndPoint:P.value.zoom.endIndex===null?U.value:P.value.zoom.endIndex+1,refreshStartPoint:P.value.zoom.startIndex===null?0:P.value.zoom.startIndex,selectColor:P.value.zoom.highlightColor,selectedSeries:x(L),smoothMinimap:!1,start:W.value.start,textColor:P.value.color,timeLabels:Sr.value,usePreciseLabels:M.value.xAxis.dataLabels.datetimeFormatter.enable&&!P.value.zoom.useDefaultFormat,useResetSlot:P.value.zoom.useResetSlot,valueEnd:W.value.end,valueStart:W.value.start,verticalHandles:P.value.zoom.minimap.verticalHandles,minScale:M.value.yAxis.scale.min,maxScale:M.value.yAxis.scale.max,maxWidth:P.value.zoom.maxWidth,minimapLeftInsetRatio:z.value.width>0&&P.value.zoom.autoFit?H.value.left/z.value.width:null,minimapRightInsetRatio:z.value.width>0&&P.value.zoom.autoFit?(z.value.width-H.value.right)/z.value.width:null,additionalMinimapHeight:P.value.zoom.minimap.additionalHeight,handleType:P.value.zoom.minimap.handleType,handleIconColor:P.value.zoom.minimap.handleIconColor,handleBorderWidth:P.value.zoom.minimap.handleBorderWidth,handleBorderColor:P.value.zoom.minimap.handleBorderColor,handleFill:P.value.zoom.minimap.handleFill,handleWidth:P.value.zoom.minimap.handleWidth,"onUpdate:end":pi,"onUpdate:start":fi,onTrapMouse:ui,onReset:t[0]||=()=>zr({force:!0,publish:!0}),onFutureEnd:t[1]||=e=>rr(`end`,e),onFutureStart:t[2]||=e=>rr(`start`,e)},{"reset-action":S(({reset:t})=>[b(e.$slots,`reset-action`,Ye(Ke({reset:t})),void 0,!0)]),slotMap:S(({height:e,unitW:t})=>[(_(!0),m(d,null,y(gr.value({minimapH:e,unitW:t}),(e,n)=>(_(),m(`g`,null,[h(`path`,{d:`M ${e.high.x},${e.high.y} ${e.low.x},${e.low.y}`,stroke:e.isBullish?j.value.colors.bullish:j.value.colors.bearish,"stroke-width":1,style:Xe({opacity:n>=G.value.start&&n<=G.value.end?1:.6})},null,12,Lt),h(`path`,{d:`M ${e.open.x},${e.open.y} ${e.close.x},${e.close.y}`,stroke:e.isBullish?j.value.colors.bullish:j.value.colors.bearish,"stroke-width":Math.min(6,t/1.5),style:Xe({opacity:n>=G.value.start&&n<=G.value.end?1:.6})},null,12,Rt)]))),256))]),_:3},8,/* @__PURE__ */ `allMinimaps.background.borderColor.customFormat.enableRangeHandles.enableSelectionDrag.end.focusOnDrag.focusRangeRatio.fontSize.immediate.inputColor.isPreview.labelLeft.labelRight.max.minimap.minimapCompact.minimapFrameColor.minimapIndicatorColor.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectedIndex.preciseLabels.refreshEndPoint.refreshStartPoint.selectColor.selectedSeries.start.textColor.timeLabels.usePreciseLabels.useResetSlot.valueEnd.valueStart.verticalHandles.minScale.maxScale.maxWidth.minimapLeftInsetRatio.minimapRightInsetRatio.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth`.split(`.`))):p(``,!0),h(`div`,{ref_key:`chartLegend`,ref:on},[b(e.$slots,`legend`,{legend:Q.value},void 0,!0)],512),e.$slots.source?(_(),m(`div`,{key:7,ref_key:`source`,ref:cn,dir:`auto`},[b(e.$slots,`source`,{},void 0,!0)],512)):p(``,!0),We(x(Vt),{teleportTo:P.value.tooltip.teleportTo,show:B.value.showTooltip&&tn.value,backgroundColor:P.value.tooltip.backgroundColor,color:P.value.tooltip.color,borderRadius:P.value.tooltip.borderRadius,borderColor:P.value.tooltip.borderColor,borderWidth:P.value.tooltip.borderWidth,fontSize:P.value.tooltip.fontSize,backgroundOpacity:P.value.tooltip.backgroundOpacity,position:P.value.tooltip.position,offsetX:P.value.tooltip.offsetX,offsetY:P.value.tooltip.offsetY,parent:O.value,content:nn.value,isFullscreen:qr.value,isCustom:P.value.tooltip.customFormat&&typeof P.value.tooltip.customFormat==`function`,smooth:P.value.tooltip.smooth,backdropFilter:P.value.tooltip.backdropFilter,smoothForce:P.value.tooltip.smoothForce,smoothSnapThreshold:P.value.tooltip.smoothSnapThreshold,isA11yMode:yn.value===`keyboard`,a11yPosition:vn.value},{"tooltip-before":S(()=>[b(e.$slots,`tooltip-before`,Ye(Ke({...Nr.value})),void 0,!0)]),tooltip:S(()=>[b(e.$slots,`tooltip`,Ye(Ke({...Nr.value})),void 0,!0)]),"tooltip-after":S(()=>[b(e.$slots,`tooltip-after`,Ye(Ke({...Nr.value})),void 0,!0)]),_:3},8,[`teleportTo`,`show`,`backgroundColor`,`color`,`borderRadius`,`borderColor`,`borderWidth`,`fontSize`,`backgroundOpacity`,`position`,`offsetX`,`offsetY`,`parent`,`content`,`isFullscreen`,`isCustom`,`smooth`,`backdropFilter`,`smoothForce`,`smoothSnapThreshold`,`isA11yMode`,`a11yPosition`]),Zt.value&&F.value.buttons.table?(_(),Ve($e(ni.value.component),qe({key:8},ni.value.props,{ref_key:`tableUnit`,ref:hn,onClose:ri}),He({content:S(()=>[(_(),Ve(x(Ut),{key:`table_${dn.value}`,colNames:Kr.value.colNames,head:Kr.value.head,body:Kr.value.body,config:Kr.value.config,title:A.value.table.useDialog?``:ni.value.title,withCloseButton:!A.value.table.useDialog,isCursorPointer:Sn.value,onClose:ri},{th:S(({th:e})=>[Ue(tt(e),1)]),td:S(({td:e})=>[h(`div`,{innerHTML:e},null,8,zt)]),_:1},8,[`colNames`,`head`,`body`,`config`,`title`,`withCloseButton`,`isCursorPointer`]))]),_:2},[A.value.table.useDialog?{name:`title`,fn:S(()=>[Ue(tt(ni.value.title),1)]),key:`0`}:void 0,A.value.table.useDialog?{name:`actions`,fn:S(()=>[h(`button`,{tabindex:`0`,class:`vue-ui-user-options-button`,onClick:t[3]||=e=>Gr(F.value.callbacks.csv),style:Xe({cursor:Sn.value?`pointer`:`default`})},[We(x(Bt),{name:`fileCsv`,stroke:ni.value.props.color},null,8,[`stroke`])],4)]),key:`1`}:void 0]),1040)):p(``,!0),b(e.$slots,`skeleton`,{},()=>[x(I)?(_(),Ve(fe,{key:0})):p(``,!0)],!0)],46,ot))}},[[`__scopeId`,`data-v-0981f9b6`]]);export{at as n,Bt as t};
|