var T=Object.defineProperty;var p=Object.getOwnPropertySymbols;var d=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;var g=(t,a,s)=>a in t?T(t,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[a]=s,_=(t,a)=>{for(var s in a||(a={}))d.call(a,s)&&g(t,s,a[s]);if(p)for(var s of p(a))f.call(a,s)&&g(t,s,a[s]);return t};var E=(t,a,s)=>g(t,typeof a!="symbol"?a+"":a,s);var u=(t,a,s)=>new Promise((o,n)=>{var e=r=>{try{i(s.next(r))}catch(l){n(l)}},c=r=>{try{i(s.throw(r))}catch(l){n(l)}},i=r=>r.done?o(r.value):Promise.resolve(r.value).then(e,c);i((s=s.apply(t,a)).next())});import{aA as O}from"./vue-lxu90ABC.js";import{O as I,$ as A,u as V,n as m,W as P,b,M as h,c as R,F as M,G as N,e as y,N as L,K as D,B,L as x,R as K,D as j,U as k,f as U,z as w,i as W,T as Y,k as F,l as G,J as H,X as v,o as J,p as X,q as $,r as C,s as q,t as z,v as Z,x as Q,Y as aa,y as sa,C as ea,E as ta,H as ra,I as na,P as ia,Q as oa,V as la,Z as Ea,a0 as _a,a1 as ca,a2 as ga,a3 as pa,a4 as ua,a5 as Sa,a6 as Ta,a7 as da,a8 as fa,a9 as Oa,aa as Ia,ab as Aa,ac as Va,ad as ma,ae as Pa,af as ba,ag as ha,ah as Ra,ai as Ma,aj as Na,ak as ya,al as La,am as Da,an as Ba,h as xa,ao as Ka,ap as ja,aq as ka,ar as Ua,as as wa,at as Wa,au as Ya,av as Fa,aw as Ga,ax as Ha,ay as va}from"./Editor-CuHU2UOb-CNnJYpWJ.js";import{E as Ja,a as Xa,b as $a,c as Ca}from"./element-plus-ciXMzd3x.js";const qa=Object.freeze(Object.defineProperty({__proto__:null,API_METHOD_TYPES:I,Assets:A,Binder:V,Box:m,Designer:P,DevTools:b,EVENT_MODIFIERS:h,Editor:R,Engine:M,EventBinder:N,GET_TOKENS_LINK:y,Icon:L,Item:D,KEYBOARD_EVENT_LIST:B,MAX_TOKENS:x,MOBILE_SIZE:K,MOUSE_EVENT_LIST:j,MicroApp:k,NAME_REGEX:U,NPM_REGISTRY_URL:w,OpenApi:W,PAD_SIZE:Y,Panel:F,REPORT_API:G,RegionType:H,RegionWrapper:v,Renderer:J,SAVE_BLOCK_FILE_FINISH:X,SESSION_ID_KEY:$,STATE_KEY:C,SetterView:q,SetterWrapper:z,Simulator:Z,Skeleton:Q,SkeletonWrapper:aa,SlotsPicker:sa,Tabs:ea,VERSION_REGEX:ta,VTJ_DESIGNER_VERSION:ra,VUE_DEVTOOLS_FRAME_STATE_KEY:na,VUE_DEVTOOLS_OVERLAY_PATH:ia,VUE_DEVTOOLS_PATH:oa,VariableBinder:la,Viewer:Ea,Viewport:_a,WidgetGroup:ca,WidgetWrapper:ga,alert:pa,builtInDeps:ua,builtInMaterials:Sa,builtInSetters:Ta,builtInWidgets:da,confirm:fa,createSlotsPicker:Oa,defaultSetter:Ia,depsManager:Aa,engineKey:Va,expressionValidate:ma,getClassProperties:Pa,message:ba,normalizedStyle:ha,notify:Ra,proxyContext:Ma,readJsonFile:Na,regions:ya,setterManager:La,setters:Da,useEngine:Ba,widgetManager:xa,widgets:Ka},Symbol.toStringTag,{value:"Module"}));class ss{constructor(a){E(this,"urls",[]);E(this,"library","");E(this,"params",[]);E(this,"__BASE_PATH__","/");this.config=a;const s=_(_(_({},Wa),qa),wa),o={Vue:O,__VTJ_PRO__:s,VtjUtils:Ua,VtjIcons:ka,VtjUI:ja,ElementPlus:Ja};for(const[l,S]of Object.entries(o))window[l]=S;const{extension:n,__BASE_PATH__:e="/"}=a||{},{urls:c=[],library:i,params:r=[]}=n||{};i&&(this.urls=c,this.library=i,this.params=r,this.__BASE_PATH__=e)}load(){return u(this,null,function*(){let a={};if(this.library){const s=this.__BASE_PATH__,o=this.urls.filter(e=>Ya(e)).map(e=>`${s}${e}`),n=this.urls.filter(e=>Fa(e)).map(e=>`${s}${e}`);if(Ga(o),n.length){const e=yield Ha(n,this.library).catch(()=>null);e&&typeof e=="function"?a=e.call(e,this.config,...this.params):a=e||{}}}return Object.assign({},this.getEngineOptions(),a)})}getEngineOptions(){const a=["materialPath","pageBasePath","pageRouteName","remote","checkVersion","noMask"];return va(this.config,a)}}function es(){return Ca.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"})}function ts(t,a="",s="warning"){$a({title:a,message:t,type:s})}function rs(t,a){return Xa.alert(t,a)}export{ss as E,rs as a,es as l,ts as n};
