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