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