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