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