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