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