System.register(["./echarts-legacy-BoTEinQo.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785"],(function(e,t){"use strict";var n,i,l,a,u,s,r,o,c,d,p,g,y,m,v,f,h,w,j,b,x,B,S,k,z;return{setters:[e=>{n=e.e,i=e.u,l=e.a,a=e.b,u=e.c,s=e.d,r=e.f,o=e.g,c=e.h,d=e.p,p=e.k,g=e.l,y=e.m},e=>{m=e.f},e=>{v=e.k,f=e.r,h=e.w,w=e.o,j=e.b,b=e.$,x=e.Z,B=e.H,S=e.S,k=e.n},e=>{z=e.b1},null],execute:function(){i([l,a,u,s,r,o,c,d,p,g,y]),e("default",v({__name:"index",props:{width:{type:[Number,String],default:"100%"},height:{type:[Number,String],default:"200px"},dataZoom:{type:Boolean,default:!1},option:{type:Object,required:!0}},setup(e,{expose:t}){const i=e,l=f(null);let a=null;function u(){null!==l.value&&(a=n.getInstanceByDom(l.value),null==a&&(a=n.init(l.value)),a.setOption(i.option,!0))}h((()=>i.option),(e=>{e&&k((()=>{u()}))}),{immediate:!0,deep:!0});const s=z((function(){null!==l.value&&n.getInstanceByDom(l.value)?.resize()}),300,{maxWait:800});return w((()=>{u(),window.addEventListener("resize",s)})),j((()=>{l.value&&(n.getInstanceByDom(l.value)?.dispose(),window.removeEventListener("resize",s))})),t({getChart:()=>a}),(t,n)=>(b(),x("div",{ref_key:"chartRef",ref:l,style:B({width:S(m)(e.width),height:S(m)(e.height)})},null,4))}}))}}}));
