System.register(["./common-legacy.js?v=1753954525509","./interface-legacy.js?v=1753954525509","./naive-legacy.js?v=1753954525509","./vue-legacy.js?v=1753954525509","./echarts-legacy.js?v=1753954525509","./__commonjsHelpers__-legacy.js?v=1753954525509"],(function(e,t){"use strict";var n,a,i,s,l,r,o,u,c,d,y,g,p,m;return{setters:[e=>{n=e.a0},null,e=>{a=e.bR},e=>{i=e.k,s=e.r,l=e.w,r=e.n,o=e.an,u=e.o,c=e.b,d=e.U,y=e.V,g=e.I,p=e.X},e=>{m=e.a4},null],execute:function(){e("default",i({__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 i=e,v=s(null);let f=!0;function h(){null!==v.value&&m.getInstanceByDom(v.value)?.resize()}l((()=>i.option),(e=>{e&&r((()=>{!async function(){if(f){const{data:e}=await n.get("/static/vite/data/world.json");m.registerMap("world",e),f=!1}if(null===v.value)return;let e=m.getInstanceByDom(v.value);null==e&&(e=m.init(v.value)),e.setOption(i.option,!0)}()}))}),{immediate:!0,deep:!0});const w=o(h,300,{maxWait:800});return u((async()=>{window.addEventListener("resize",w)})),c((()=>{v.value&&(m.getInstanceByDom(v.value)?.dispose(),window.removeEventListener("resize",w))})),t({resize:h}),(t,n)=>(d(),y("div",{ref_key:"chartRef",ref:v,style:g({width:p(a)(e.width),height:p(a)(e.height)})},null,4))}}))}}}));
