System.register(["./echarts-legacy.js?v=1753954525509","./naive-legacy.js?v=1753954525509","./vue-legacy.js?v=1753954525509","./__commonjsHelpers__-legacy.js?v=1753954525509","./common-legacy.js?v=1753954525509"],(function(e,t){"use strict";var n,a,i,l,u,o,r,s,c,d,m,y,g,p,v,f,h,w,j,_,b,x,B,I,z,D;return{setters:[e=>{n=e.a4,a=e.y,i=e.a5,l=e.a6,u=e.a7,o=e.a8,r=e.a9,s=e.aa,c=e.ab,d=e.ac,m=e.am,y=e.af,g=e.ag,p=e.ah},e=>{v=e.bR},e=>{f=e.k,h=e.r,w=e.w,j=e.n,_=e.an,b=e.o,x=e.b,B=e.U,I=e.V,z=e.I,D=e.X},null,null],execute:function(){a([i,l,u,o,r,s,c,d,m,y,g,p]),e("default",f({__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){const t=e,a=h(null);function i(){if(null===a.value)return;let e=n.getInstanceByDom(a.value);null==e&&(e=n.init(a.value)),e.setOption(t.option,!0)}w((()=>t.option),(e=>{e&&j((()=>{i()}))}),{immediate:!0,deep:!0});const l=_((function(){null!==a.value&&n.getInstanceByDom(a.value)?.resize()}),300,{maxWait:800});return b((()=>{j((()=>{i(),window.addEventListener("resize",l)}))})),x((()=>{a.value&&(n.getInstanceByDom(a.value)?.dispose(),window.removeEventListener("resize",l))})),(t,n)=>(B(),I("div",{ref_key:"chartRef",ref:a,style:z({width:D(v)(e.width),height:D(v)(e.height)})},null,4))}}))}}}));
