System.register(["./index-legacy-DQdImDha.js?v=1773287522785","./interface-legacy-DBBSrr5_.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./echarts-legacy-BoTEinQo.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785"],(function(e,t){"use strict";var n,i,a,s,l,r,u,o,c,d,y,g,p,f;return{setters:[e=>{n=e.b1,i=e.cq},null,e=>{a=e.f},e=>{s=e.k,l=e.r,r=e.w,u=e.o,o=e.b,c=e.$,d=e.Z,y=e.H,g=e.S,p=e.n},e=>{f=e.e},null],execute:function(){e("default",s({__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 s=e,v=l(null);let m=!0;function h(){null!==v.value&&f.getInstanceByDom(v.value)?.resize()}r((()=>s.option),(e=>{e&&p((()=>{!async function(){if(m){const{data:e}=await i.get("/static/vite/data/world.json");f.registerMap("world",e),m=!1}if(null===v.value)return;let e=f.getInstanceByDom(v.value);null==e&&(e=f.init(v.value)),e.setOption(s.option,!0)}()}))}),{immediate:!0,deep:!0});const w=n(h,300,{maxWait:800});return u((async()=>{window.addEventListener("resize",w)})),o((()=>{v.value&&(f.getInstanceByDom(v.value)?.dispose(),window.removeEventListener("resize",w))})),t({resize:h}),(t,n)=>(c(),d("div",{ref_key:"chartRef",ref:v,style:y({width:g(a)(e.width),height:g(a)(e.height)})},null,4))}}))}}}));
