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