@vtj/pro 0.12.31 → 0.12.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
  2. package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
  3. package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
  4. package/dist/@vtj/materials/assets/icons/index.umd.js +2 -2
  5. package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
  6. package/dist/@vtj/materials/assets/uni-h5/index.umd.js +2 -2
  7. package/dist/@vtj/materials/assets/uni-ui/index.umd.js +2 -2
  8. package/dist/@vtj/materials/assets/vant/index.umd.js +2 -2
  9. package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
  10. package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
  11. package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +2 -2
  12. package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +2 -2
  13. package/dist/assets/{Editor-DjeJ1qs2-mwL6GTxW.js → Editor-B64RFVXt-Detlqzt7.js} +101 -101
  14. package/dist/assets/{Editor-DjeJ1qs2-8-mJTgIC.css → Editor-B64RFVXt-Dz53-s3r.css} +1 -1
  15. package/dist/assets/auth-DMZZAvYV.js +1 -0
  16. package/dist/assets/{element-plus-DDodNh3B.js → element-plus-XVJlWyfz.js} +1 -1
  17. package/dist/assets/{index-VEbhMwGe.js → index-BwqaMZ6v.js} +2 -2
  18. package/dist/assets/index-CCyWeBlk.js +1 -0
  19. package/dist/assets/{mockjs-TABvatfE.js → mockjs-Du5X89jz.js} +5 -5
  20. package/dist/assets/{page-CifNqxxD.js → page-yDCTHfJA.js} +1 -1
  21. package/dist/assets/{preview-BIo-h9q3.js → preview-LRNHyP9a.js} +1 -1
  22. package/dist/assets/shared-CzXu-bVE.js +25 -0
  23. package/dist/assets/utils-8jV3LKee.js +1 -0
  24. package/dist/assets/{vxe-PYoAHMal.js → vxe-CWcmrjam.js} +1 -1
  25. package/dist/index.html +5 -5
  26. package/dist/uni/assets/{index-DEVhmBNT.js → index-CiXCL3Ic.js} +4 -4
  27. package/dist/uni/index.html +1 -1
  28. package/package.json +13 -13
  29. package/dist/assets/auth-DLfzi4DL.js +0 -1
  30. package/dist/assets/index-CgEJ-SH0.js +0 -1
  31. package/dist/assets/shared-DeszlFoE.js +0 -25
  32. package/dist/assets/utils-C18BchEa.js +0 -1
package/dist/index.html CHANGED
@@ -9,7 +9,7 @@
9
9
  <meta http-equiv="Expires" content="0"/>
10
10
  <title>低代码设计器 - VTJ.PRO</title>
11
11
  <script>
12
- var __BUILD_TIME__ = '1748500390366';
12
+ var __BUILD_TIME__ = '1749000930275';
13
13
  (function () {
14
14
  const regex = /<!--{{(\d*)}}-->/;
15
15
  window.fetch('?t=' + Date.now()).then(async (res) => {
@@ -25,16 +25,16 @@
25
25
  });
26
26
  })();
27
27
  </script>
28
- <!--{{1748500390366}}-->
28
+ <!--{{1749000930275}}-->
29
29
 
30
- <script type="module" crossorigin src="./assets/index-VEbhMwGe.js"></script>
30
+ <script type="module" crossorigin src="./assets/index-BwqaMZ6v.js"></script>
31
31
  <link rel="modulepreload" crossorigin href="./assets/vue-BfodOvnP.js">
32
32
  <link rel="modulepreload" crossorigin href="./assets/lodash-es-BL-d_OSa.js">
33
33
  <link rel="modulepreload" crossorigin href="./assets/@vueuse-vmN9qs5b.js">
34
34
  <link rel="modulepreload" crossorigin href="./assets/@element-plus-icons-vue-CM-7yUXL.js">
35
- <link rel="modulepreload" crossorigin href="./assets/shared-DeszlFoE.js">
35
+ <link rel="modulepreload" crossorigin href="./assets/shared-CzXu-bVE.js">
36
36
  <link rel="modulepreload" crossorigin href="./assets/dayjs-DO-COJPZ.js">
37
- <link rel="modulepreload" crossorigin href="./assets/element-plus-DDodNh3B.js">
37
+ <link rel="modulepreload" crossorigin href="./assets/element-plus-XVJlWyfz.js">
38
38
  <link rel="modulepreload" crossorigin href="./assets/monaco-editor-B5WqzYTl.js">
39
39
  <link rel="modulepreload" crossorigin href="./assets/vue-router-BO40Wv73.js">
40
40
  <link rel="stylesheet" crossorigin href="./assets/element-plus-EFxNtExC.css">
@@ -51,7 +51,7 @@ version: 2.9.0
51
51
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
52
52
  * @name @vtj/core
53
53
  * @author CHC chenhuachun1549@dingtalk.com
54
- * @version 0.12.31
54
+ * @version 0.12.33
55
55
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
56
56
  */const Nd="VueMaterial",Id="VueRouterMaterial",Pd={[Nd]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[Id]:["RouterView","RouterLink"]};let Fd=class{constructor(){z(this,"listeners",[]);z(this,"isReady",!1)}triggerReady(){this.isReady=!0;for(const t of this.listeners)t();this.listeners=[]}ready(t){this.isReady?t():this.listeners.push(t)}resetReady(){this.isReady=!1}};var kd=Object.defineProperty,Md=(e,t,r)=>t in e?kd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ct=(e,t,r)=>Md(e,typeof t!="symbol"?t+"":t,r);(function(){if(typeof window>"u"||typeof EventTarget>"u")return;const e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(t,r,n){typeof n!="boolean"&&(n=n||{},n.passive=!1),e.call(this,t,r,n)}})();const Ud=e=>typeof e=="symbol";new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ud));function gs(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ld}=Object.prototype,{getPrototypeOf:un}=Object,Ge=(e=>t=>{const r=Ld.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),mt=e=>(e=e.toLowerCase(),t=>Ge(t)===e),Ze=e=>t=>typeof t===e,{isArray:oe}=Array,ge=Ze("undefined");function Vd(e){return e!==null&&!ge(e)&&e.constructor!==null&&!ge(e.constructor)&&at(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ys=mt("ArrayBuffer");function Hd(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ys(e.buffer),t}const qd=Ze("string"),at=Ze("function"),vs=Ze("number"),Xe=e=>e!==null&&typeof e=="object",zd=e=>e===!0||e===!1,Ne=e=>{if(Ge(e)!=="object")return!1;const t=un(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Wd=mt("Date"),Kd=mt("File"),Jd=mt("Blob"),Yd=mt("FileList"),Gd=e=>Xe(e)&&at(e.pipe),Zd=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||at(e.append)&&((t=Ge(e))==="formdata"||t==="object"&&at(e.toString)&&e.toString()==="[object FormData]"))},Xd=mt("URLSearchParams"),[Qd,tm,em,rm]=["ReadableStream","Request","Response","Headers"].map(mt),nm=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function we(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),oe(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let a;for(n=0;n<s;n++)a=o[n],t.call(null,e[a],a,e)}}function bs(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,i;for(;n-- >0;)if(i=r[n],t===i.toLowerCase())return i;return null}const kt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ws=e=>!ge(e)&&e!==kt;function Fr(){const{caseless:e}=ws(this)&&this||{},t={},r=(n,i)=>{const o=e&&bs(t,i)||i;Ne(t[o])&&Ne(n)?t[o]=Fr(t[o],n):Ne(n)?t[o]=Fr({},n):oe(n)?t[o]=n.slice():t[o]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&we(arguments[n],r);return t}const im=(e,t,r,{allOwnKeys:n}={})=>(we(t,(i,o)=>{r&&at(i)?e[o]=gs(i,r):e[o]=i},{allOwnKeys:n}),e),om=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),sm=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},am=(e,t,r,n)=>{let i,o,s;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!n||n(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=r!==!1&&un(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},um=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},cm=e=>{if(!e)return null;if(oe(e))return e;let t=e.length;if(!vs(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},lm=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&un(Uint8Array)),fm=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const i=n.value;t.call(e,i[0],i[1])}},hm=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},pm=mt("HTMLFormElement"),dm=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),Si=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),mm=mt("RegExp"),_s=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};we(r,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(n[o]=s||i)}),Object.defineProperties(e,n)},gm=e=>{_s(e,(t,r)=>{if(at(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(at(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},ym=(e,t)=>{const r={},n=i=>{i.forEach(o=>{r[o]=!0})};return oe(e)?n(e):n(String(e).split(t)),r},vm=()=>{},bm=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function wm(e){return!!(e&&at(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const _m=e=>{const t=new Array(10),r=(n,i)=>{if(Xe(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const o=oe(n)?[]:{};return we(n,(s,a)=>{const l=r(s,i+1);!ge(l)&&(o[a]=l)}),t[i]=void 0,o}}return n};return r(e,0)},Em=mt("AsyncFunction"),Sm=e=>e&&(Xe(e)||at(e))&&at(e.then)&&at(e.catch),Es=((e,t)=>e?setImmediate:t?((r,n)=>(kt.addEventListener("message",({source:i,data:o})=>{i===kt&&o===r&&n.length&&n.shift()()},!1),i=>{n.push(i),kt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",at(kt.postMessage)),xm=typeof queueMicrotask<"u"?queueMicrotask.bind(kt):typeof process<"u"&&process.nextTick||Es,A={isArray:oe,isArrayBuffer:ys,isBuffer:Vd,isFormData:Zd,isArrayBufferView:Hd,isString:qd,isNumber:vs,isBoolean:zd,isObject:Xe,isPlainObject:Ne,isReadableStream:Qd,isRequest:tm,isResponse:em,isHeaders:rm,isUndefined:ge,isDate:Wd,isFile:Kd,isBlob:Jd,isRegExp:mm,isFunction:at,isStream:Gd,isURLSearchParams:Xd,isTypedArray:lm,isFileList:Yd,forEach:we,merge:Fr,extend:im,trim:nm,stripBOM:om,inherits:sm,toFlatObject:am,kindOf:Ge,kindOfTest:mt,endsWith:um,toArray:cm,forEachEntry:fm,matchAll:hm,isHTMLForm:pm,hasOwnProperty:Si,hasOwnProp:Si,reduceDescriptors:_s,freezeMethods:gm,toObjectSet:ym,toCamelCase:dm,noop:vm,toFiniteNumber:bm,findKey:bs,global:kt,isContextDefined:ws,isSpecCompliantForm:wm,toJSONObject:_m,isAsyncFn:Em,isThenable:Sm,setImmediate:Es,asap:xm};function W(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}A.inherits(W,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:A.toJSONObject(this.config),code:this.code,status:this.status}}});const Ss=W.prototype,xs={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{xs[e]={value:e}});Object.defineProperties(W,xs);Object.defineProperty(Ss,"isAxiosError",{value:!0});W.from=(e,t,r,n,i,o)=>{const s=Object.create(Ss);return A.toFlatObject(e,s,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),W.call(s,e.message,t,r,n,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const Tm=null;function kr(e){return A.isPlainObject(e)||A.isArray(e)}function Ts(e){return A.endsWith(e,"[]")?e.slice(0,-2):e}function xi(e,t,r){return e?e.concat(t).map(function(n,i){return n=Ts(n),!r&&i?"["+n+"]":n}).join(r?".":""):t}function Am(e){return A.isArray(e)&&!e.some(kr)}const Rm=A.toFlatObject(A,{},null,function(e){return/^is[A-Z]/.test(e)});function Qe(e,t,r){if(!A.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=A.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,d){return!A.isUndefined(d[h])});const n=r.metaTokens,i=r.visitor||u,o=r.dots,s=r.indexes,a=(r.Blob||typeof Blob<"u"&&Blob)&&A.isSpecCompliantForm(t);if(!A.isFunction(i))throw new TypeError("visitor must be a function");function l(h){if(h===null)return"";if(A.isDate(h))return h.toISOString();if(!a&&A.isBlob(h))throw new W("Blob is not supported. Use a Buffer instead.");return A.isArrayBuffer(h)||A.isTypedArray(h)?a&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function u(h,d,m){let b=h;if(h&&!m&&typeof h=="object"){if(A.endsWith(d,"{}"))d=n?d:d.slice(0,-2),h=JSON.stringify(h);else if(A.isArray(h)&&Am(h)||(A.isFileList(h)||A.endsWith(d,"[]"))&&(b=A.toArray(h)))return d=Ts(d),b.forEach(function(E,y){!(A.isUndefined(E)||E===null)&&t.append(s===!0?xi([d],y,o):s===null?d:d+"[]",l(E))}),!1}return kr(h)?!0:(t.append(xi(m,d,o),l(h)),!1)}const c=[],f=Object.assign(Rm,{defaultVisitor:u,convertValue:l,isVisitable:kr});function p(h,d){if(!A.isUndefined(h)){if(c.indexOf(h)!==-1)throw Error("Circular reference detected in "+d.join("."));c.push(h),A.forEach(h,function(m,b){(!(A.isUndefined(m)||m===null)&&i.call(t,m,A.isString(b)?b.trim():b,d,f))===!0&&p(m,d?d.concat(b):[b])}),c.pop()}}if(!A.isObject(e))throw new TypeError("data must be an object");return p(e),t}function Ti(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function cn(e,t){this._pairs=[],e&&Qe(e,this,t)}const As=cn.prototype;As.append=function(e,t){this._pairs.push([e,t])};As.toString=function(e){const t=e?function(r){return e.call(this,r,Ti)}:Ti;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function Om(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Rs(e,t,r){if(!t)return e;const n=r&&r.encode||Om;A.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let o;if(i?o=i(t,r):o=A.isURLSearchParams(t)?t.toString():new cn(t,r).toString(n),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}let Ai=class{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){A.forEach(this.handlers,function(r){r!==null&&t(r)})}};const Os={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},$m=typeof URLSearchParams<"u"?URLSearchParams:cn,jm=typeof FormData<"u"?FormData:null,Dm=typeof Blob<"u"?Blob:null,Bm={isBrowser:!0,classes:{URLSearchParams:$m,FormData:jm,Blob:Dm},protocols:["http","https","file","blob","url","data"]},ln=typeof window<"u"&&typeof document<"u",Mr=typeof navigator=="object"&&navigator||void 0,Cm=ln&&(!Mr||["ReactNative","NativeScript","NS"].indexOf(Mr.product)<0),Nm=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Im=ln&&window.location.href||"http://localhost",Pm=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ln,hasStandardBrowserEnv:Cm,hasStandardBrowserWebWorkerEnv:Nm,navigator:Mr,origin:Im},Symbol.toStringTag,{value:"Module"})),rt=V(V({},Pm),Bm);function Fm(e,t){return Qe(e,new rt.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,o){return rt.isNode&&A.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function km(e){return A.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Mm(e){const t={},r=Object.keys(e);let n;const i=r.length;let o;for(n=0;n<i;n++)o=r[n],t[o]=e[o];return t}function $s(e){function t(r,n,i,o){let s=r[o++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),l=o>=r.length;return s=!s&&A.isArray(i)?i.length:s,l?(A.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!a):((!i[s]||!A.isObject(i[s]))&&(i[s]=[]),t(r,n,i[s],o)&&A.isArray(i[s])&&(i[s]=Mm(i[s])),!a)}if(A.isFormData(e)&&A.isFunction(e.entries)){const r={};return A.forEachEntry(e,(n,i)=>{t(km(n),i,r,0)}),r}return null}function Um(e,t,r){if(A.isString(e))try{return(t||JSON.parse)(e),A.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const _e={transitional:Os,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=A.isObject(e);if(i&&A.isHTMLForm(e)&&(e=new FormData(e)),A.isFormData(e))return n?JSON.stringify($s(e)):e;if(A.isArrayBuffer(e)||A.isBuffer(e)||A.isStream(e)||A.isFile(e)||A.isBlob(e)||A.isReadableStream(e))return e;if(A.isArrayBufferView(e))return e.buffer;if(A.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Fm(e,this.formSerializer).toString();if((o=A.isFileList(e))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Qe(o?{"files[]":e}:e,s&&new s,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),Um(e)):e}],transformResponse:[function(e){const t=this.transitional||_e.transitional,r=t&&t.forcedJSONParsing,n=this.responseType==="json";if(A.isResponse(e)||A.isReadableStream(e))return e;if(e&&A.isString(e)&&(r&&!this.responseType||n)){const i=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(o){if(i)throw o.name==="SyntaxError"?W.from(o,W.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:rt.classes.FormData,Blob:rt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};A.forEach(["delete","get","head","post","put","patch"],e=>{_e.headers[e]={}});const Lm=A.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Vm=e=>{const t={};let r,n,i;return e&&e.split(`
57
57
  `).forEach(function(o){i=o.indexOf(":"),r=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!r||t[r]&&Lm[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Ri=Symbol("internals");function le(e){return e&&String(e).trim().toLowerCase()}function Ie(e){return e===!1||e==null?e:A.isArray(e)?e.map(Ie):String(e)}function Hm(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const qm=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function gr(e,t,r,n,i){if(A.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!A.isString(t)){if(A.isString(n))return t.indexOf(n)!==-1;if(A.isRegExp(n))return n.test(t)}}function zm(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Wm(e,t){const r=A.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,o,s){return this[n].call(this,t,i,o,s)},configurable:!0})})}let st=class{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function o(a,l,u){const c=le(l);if(!c)throw new Error("header name must be a non-empty string");const f=A.findKey(i,c);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=Ie(a))}const s=(a,l)=>A.forEach(a,(u,c)=>o(u,c,l));if(A.isPlainObject(t)||t instanceof this.constructor)s(t,r);else if(A.isString(t)&&(t=t.trim())&&!qm(t))s(Vm(t),r);else if(A.isHeaders(t))for(const[a,l]of t.entries())o(l,a,n);else t!=null&&o(r,t,n);return this}get(t,r){if(t=le(t),t){const n=A.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return Hm(i);if(A.isFunction(r))return r.call(this,i,n);if(A.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=le(t),t){const n=A.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||gr(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function o(s){if(s=le(s),s){const a=A.findKey(n,s);a&&(!r||gr(n,n[a],a,r))&&(delete n[a],i=!0)}}return A.isArray(t)?t.forEach(o):o(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const o=r[n];(!t||gr(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const r=this,n={};return A.forEach(this,(i,o)=>{const s=A.findKey(n,o);if(s){r[s]=Ie(i),delete r[o];return}const a=t?zm(o):String(o).trim();a!==o&&delete r[o],r[a]=Ie(i),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return A.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&A.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
@@ -62,15 +62,15 @@ version: 2.9.0
62
62
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
63
63
  * @name @vtj/renderer
64
64
  * @author CHC chenhuachun1549@dingtalk.com
65
- * @version 0.12.31
65
+ * @version 0.12.33
66
66
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
67
- */const Er="0.12.31";var tt=(e=>(e.Runtime="Runtime",e.Design="Design",e.Raw="Raw",e.VNode="VNode",e))(tt||{});const Li=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],Lg=["vIf","vElseIf","vElse","vShow","vModel","vFor","vBind","vHtml"],Vg={String,Number,Boolean,Array,Object,Function,Date},Me="VtjPage",Sr="VtjHomepage",Hg="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot".split(","),qg="component,slot".split(",");function De(e,t){return e.map(r=>us(r)||r.startsWith("/")?r:`${t}${r}`)}function rr(e){return/\.css$/.test(e)}function nr(e){return/\.js$/.test(e)}function zg(e){return/\.json$/.test(e)}function Wg(e,t=!1){return t&&e.endsWith(".prod.js")?e.replace(".prod.js",".js"):e}function Kg(e,t,r=!1){const n=e.filter(p=>!!p.enabled),i=[],o=[],s=[],a=[],l={},u={},c=[],f={};return n.forEach(({urls:p,assetsUrl:h,library:d,assetsLibrary:m,localeLibrary:b})=>{p==null||p.forEach(E=>{nr(E)&&i.push(Wg(E,r)),rr(E)&&o.push(E)}),d&&(a.push(d),l[d]=De(p||[],t),b&&(u[d]=b)),h&&s.push(h),m&&c.push(m),d&&m&&(f[m]=d)}),{scripts:De(i,t),css:De(o,t),materials:De(s,t),libraryExports:a,materialExports:Sd(c),materialMapLibrary:f,libraryMap:l,libraryLocaleMap:u}}function Jg(e,t){var o;const{name:r,parent:n,alias:i}=e;return n?(o=t[n])==null?void 0:o[i||r]:t[i||r]}function Yg(e=[]){const t=e.filter(n=>rr(n)),r=e.filter(n=>nr(n));return{css:t,js:r}}function Gg(e,t){const r=/(@(keyframes|media)\s*([^{]*)){([\s\S]*?}\s*})/g,n=[];let i=e.replace(r,(o,s,a,l,u)=>(n.push({type:a,name:l.trim(),conditions:l,content:u}),"/* AT_RULE_PLACEHOLDER */")).replace(/::v-deep\(/g,":deep(").replace(/(\s*)>>>(\s*)/g,"$1:deep($2)").replace(/([\w-.:\s[\]>+~]+?):deep\(([^)]+)\)/g,(o,s,a)=>`${s.replace(/(\s*)$/,`[${t}]$1`)} ${a}`).replace(/([^{}]+)(?=\s*{)/g,o=>o.split(",").map(s=>{const a=s.trim();return a.includes(`[${t}]`)?a:a.replace(/(.*?)((?::[^:\s(]+(?:\([^)]*\))?)*)(\s*)$/,(l,u,c,f)=>`${u}[${t}]${c}${f}`)}).join(", "));return n.forEach(({type:o,conditions:s,content:a})=>{let l=a;o==="media"&&(l=l.replace(/([^{}]+)(?=\s*{)/g,u=>u.split(",").map(c=>{const f=c.trim();return f.includes(`[${t}]`)?f:f.replace(/(.*?)((?::[^:\s(]+(?:\([^)]*\))?)*)(\s*)$/,(p,h,d,m)=>`${h}[${t}]${d}${m}`)}).join(", "))),i=i.replace("/* AT_RULE_PLACEHOLDER */",`@${o} ${s}{${l}}`)}),i.replace(/}}/g,"}")}function zs(e){return $t(e)?e:JSON.stringify(e)}function pn(e,t,r,n=!1){const i=e.CSSStyleSheet,o=n?`data-v-${t}`:t,s=n?Gg(r,o):r;if(i.prototype.replaceSync){const a=new i;a.id=t,a.replaceSync(s);const l=e.document,u=l.adoptedStyleSheets,c=Array.from(u).filter(f=>f.id!==t);l.adoptedStyleSheets=[...c,a]}else{const a=e.document;let l=a.getElementById(t);l?l.innerHTML=s:(l=a.createElement("style"),l.id=t,l.innerHTML=s,a.head.appendChild(l))}}function Zg(e,t){return k(this,null,function*(){const r=yield window.fetch(t).then(n=>n.text()).catch(()=>"");r&&pn(window,e,r)})}function Ws(e,t=window){const r=t.document,n=t.document.head;for(const i of e)if(!r.getElementById(i)){const o=r.createElement("link");o.rel="stylesheet",o.id=i,o.href=i,n.appendChild(o)}}function Ks(n,i){return k(this,arguments,function*(e,t,r=window){const o=r.document,s=r.document.head;let a=r[t];return a?a.default||a:new Promise((l,u)=>{for(const c of e){const f=o.createElement("script");f.src=c,f.onload=()=>{a=r[t],a?l(a.default||a):u(null)},f.onerror=p=>{u(p)},s.appendChild(f)}})})}function Xg(e){return te(e)||te(e==null?void 0:e.install)}function Qg(e){return qg.includes(e)}function t0(e){return Hg.includes(e)}function ye(e=window){const t=window==null?void 0:window.Mock;if(t)return t;const r=e==null?void 0:e.Mock;if(r&&window)return window.Mock=r,r}function ve(e,t,r=!1,n=!1){var i;try{const o=['"use strict";',"var __self = arguments[0];"];o.push("return ");let s=(e.value||"").trim();s=s.replace(/this(\W|$)/g,(l,u)=>`__self${u}`),s=o.join(`
67
+ */const Er="0.12.33";var tt=(e=>(e.Runtime="Runtime",e.Design="Design",e.Raw="Raw",e.VNode="VNode",e))(tt||{});const Li=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],Lg=["vIf","vElseIf","vElse","vShow","vModel","vFor","vBind","vHtml"],Vg={String,Number,Boolean,Array,Object,Function,Date},Me="VtjPage",Sr="VtjHomepage",Hg="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot".split(","),qg="component,slot".split(",");function De(e,t){return e.map(r=>us(r)||r.startsWith("/")?r:`${t}${r}`)}function rr(e){return/\.css$/.test(e)}function nr(e){return/\.js$/.test(e)}function zg(e){return/\.json$/.test(e)}function Wg(e,t=!1){return t&&e.endsWith(".prod.js")?e.replace(".prod.js",".js"):e}function Kg(e,t,r=!1){const n=e.filter(p=>!!p.enabled),i=[],o=[],s=[],a=[],l={},u={},c=[],f={};return n.forEach(({urls:p,assetsUrl:h,library:d,assetsLibrary:m,localeLibrary:b})=>{p==null||p.forEach(E=>{nr(E)&&i.push(Wg(E,r)),rr(E)&&o.push(E)}),d&&(a.push(d),l[d]=De(p||[],t),b&&(u[d]=b)),h&&s.push(h),m&&c.push(m),d&&m&&(f[m]=d)}),{scripts:De(i,t),css:De(o,t),materials:De(s,t),libraryExports:a,materialExports:Sd(c),materialMapLibrary:f,libraryMap:l,libraryLocaleMap:u}}function Jg(e,t){var o;const{name:r,parent:n,alias:i}=e;return n?(o=t[n])==null?void 0:o[i||r]:t[i||r]}function Yg(e=[]){const t=e.filter(n=>rr(n)),r=e.filter(n=>nr(n));return{css:t,js:r}}function Gg(e,t){const r=/(@(keyframes|media)\s*([^{]*)){([\s\S]*?}\s*})/g,n=[];let i=e.replace(r,(o,s,a,l,u)=>(n.push({type:a,name:l.trim(),conditions:l,content:u}),"/* AT_RULE_PLACEHOLDER */")).replace(/::v-deep\(/g,":deep(").replace(/(\s*)>>>(\s*)/g,"$1:deep($2)").replace(/([\w-.:\s[\]>+~]+?):deep\(([^)]+)\)/g,(o,s,a)=>`${s.replace(/(\s*)$/,`[${t}]$1`)} ${a}`).replace(/([^{}]+)(?=\s*{)/g,o=>o.split(",").map(s=>{const a=s.trim();return a.includes(`[${t}]`)?a:a.replace(/(.*?)((?::[^:\s(]+(?:\([^)]*\))?)*)(\s*)$/,(l,u,c,f)=>`${u}[${t}]${c}${f}`)}).join(", "));return n.forEach(({type:o,conditions:s,content:a})=>{let l=a;o==="media"&&(l=l.replace(/([^{}]+)(?=\s*{)/g,u=>u.split(",").map(c=>{const f=c.trim();return f.includes(`[${t}]`)?f:f.replace(/(.*?)((?::[^:\s(]+(?:\([^)]*\))?)*)(\s*)$/,(p,h,d,m)=>`${h}[${t}]${d}${m}`)}).join(", "))),i=i.replace("/* AT_RULE_PLACEHOLDER */",`@${o} ${s}{${l}}`)}),i.replace(/}}/g,"}")}function zs(e){return $t(e)?e:JSON.stringify(e)}function pn(e,t,r,n=!1){const i=e.CSSStyleSheet,o=n?`data-v-${t}`:t,s=n?Gg(r,o):r;if(i.prototype.replaceSync){const a=new i;a.id=t,a.replaceSync(s);const l=e.document,u=l.adoptedStyleSheets,c=Array.from(u).filter(f=>f.id!==t);l.adoptedStyleSheets=[...c,a]}else{const a=e.document;let l=a.getElementById(t);l?l.innerHTML=s:(l=a.createElement("style"),l.id=t,l.innerHTML=s,a.head.appendChild(l))}}function Zg(e,t){return k(this,null,function*(){const r=yield window.fetch(t).then(n=>n.text()).catch(()=>"");r&&pn(window,e,r)})}function Ws(e,t=window){const r=t.document,n=t.document.head;for(const i of e)if(!r.getElementById(i)){const o=r.createElement("link");o.rel="stylesheet",o.id=i,o.href=i,n.appendChild(o)}}function Ks(n,i){return k(this,arguments,function*(e,t,r=window){const o=r.document,s=r.document.head;let a=r[t];return a?a.default||a:new Promise((l,u)=>{for(const c of e){const f=o.createElement("script");f.src=c,f.onload=()=>{a=r[t],a?l(a.default||a):u(null)},f.onerror=p=>{u(p)},s.appendChild(f)}})})}function Xg(e){return te(e)||te(e==null?void 0:e.install)}function Qg(e){return qg.includes(e)}function t0(e){return Hg.includes(e)}function ye(e=window){const t=window==null?void 0:window.Mock;if(t)return t;const r=e==null?void 0:e.Mock;if(r&&window)return window.Mock=r,r}function ve(e,t,r=!1,n=!1){var i;try{const o=['"use strict";',"var __self = arguments[0];"];o.push("return ");let s=(e.value||"").trim();s=s.replace(/this(\W|$)/g,(l,u)=>`__self${u}`),s=o.join(`
68
68
  `)+s;const a=`with(${r?"{}":"$scope || {}"}) { ${s} }`;return new Function("$scope",a)(t)}catch(o){if(Qt.error("parseExpression.error",o,e,(i=t==null?void 0:t.__self)!=null?i:t),n)throw o}}function qe(e,t,r=!1,n=!1){var o;const i=ve(e,t,r,n);if(typeof i!="function"&&(Qt.error("parseFunction.error","not a function",e,(o=t==null?void 0:t.__self)!=null?o:t),n))throw new Error(`"${e.value}" not a function`);return i}function pt(e){return e&&e.type==="JSExpression"}function ir(e){return typeof e=="object"&&e&&e.type==="JSFunction"}const e0={session:!1,authKey:"Authorization",storageKey:"ACCESS_STORAGE",storagePrefix:"__VTJ_",unauthorized:void 0,auth:"/#/login",redirectParam:"r",unauthorizedCode:401,unauthorizedMessage:"登录已经失效,请重新登录!",noPermissionMessage:"无权限访问该页面",appName:"",statusKey:"code"},r0=Symbol("access");class n0{constructor(t){z(this,"options");z(this,"data",null);z(this,"mode",tt.Raw);z(this,"interceptResponse",!0);this.options=Object.assign({},e0,t),this.loadData()}enableIntercept(){this.interceptResponse=!0}disableIntercept(){this.interceptResponse=!1}connect(t){const{mode:r,router:n,request:i}=t;this.mode=r,n&&this.mode===tt.Raw&&this.setGuard(n),i&&this.setRequest(i)}login(t){const{storageKey:r,storagePrefix:n,session:i,authKey:o}=this.options;this.setData(t),this.data&&(br.save(r,t,{type:"local",prefix:n}),i&&_r.set(o,this.data.token))}clear(){const{storageKey:t,storagePrefix:r,session:n,authKey:i}=this.options;this.data=null,br.remove(t,{type:"local",prefix:r}),n&&_r.remove(i)}logout(){this.clear(),this.toLogin()}getData(){return this.data?this.data:(this.loadData(),this.data)}getToken(){var t;return this.data||this.loadData(),(t=this.data)==null?void 0:t.token}can(t){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return typeof t=="function"?t(n):Ei(t).every(i=>n[i]||n[r+"."+i])}some(t){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return Ei(t).some(i=>n[i]||n[r+"."+i])}install(t){t.config.globalProperties.$access=this,t.provide(r0,this)}isAuthPath(t){const{auth:r,isAuth:n}=this.options;if(n)return n(t);if(t.path&&typeof r=="string"){const i=r.split("#")[1]||r;return t.path===i}return!1}toLogin(){const{auth:t,redirectParam:r}=this.options;if(!t)return;const n=r?`?${r}=${encodeURIComponent(location.href)}`:"";typeof t=="function"?t(n):location.href=r?`${t}${n}`:t}setData(t){const{privateKey:r}=this.options;if(Array.isArray(t)&&r){const n=t.map(i=>_i(i,r));try{this.data=JSON.parse(n.join(""))}catch(i){console.warn(i)}return}if(typeof t=="string")try{const n=r?_i(t,r):t;n?this.data=JSON.parse(n):console.warn("RSA解密失败或登录信息缺失")}catch(n){console.warn(n)}else this.data=t}loadData(){const{storageKey:t,storagePrefix:r}=this.options,n=br.get(t,{type:"local",prefix:r});this.setData(n||null)}isLogined(){const{session:t,authKey:r}=this.options;return t&&r?!!_r.get(r):!!this.getToken()}hasRoutePermission(t){if(t.name===Me){const r=t.params.id;return r&&this.can(r)}return!0}setGuard(t){t.beforeEach((r,n,i)=>this.guard(r,i))}guard(t,r){return k(this,null,function*(){if(this.isWhiteList(t)||this.isAuthPath(t))return r();if(this.isLogined()){if(this.hasRoutePermission(t))return r();{const{noPermissionMessage:n="无权限访问",unauthorized:i=!1}=this.options;return yield this.showTip(n),te(i)?(i(),r(!1)):$t(i)?r(i):r(!1)}}r(!1),this.toLogin()})}isWhiteList(t){const{whiteList:r}=this.options;return r?Array.isArray(r)?r.some(n=>t.fullPath.startsWith(n)):r(t):!1}isUnauthorized(t){var i;const{unauthorizedCode:r=401,statusKey:n="code"}=this.options;return t.status===r||((i=t.data)==null?void 0:i[n])===r}showUnauthorizedAlert(t){return k(this,null,function*(){const{unauthorizedMessage:r="登录已失效"}=this.options;this.isUnauthorized(t)&&(yield this.showTip(r),this.toLogin())})}showTip(t){return k(this,null,function*(){const{alert:r}=this.options;return r?(yield hs(150),yield r(t,{title:"提示",type:"warning"}).catch(()=>!1)):!1})}setRequest(t){t.useRequest(r=>{var n,i;return(n=this.data)!=null&&n.token&&(r.headers[this.options.authKey]=(i=this.data)==null?void 0:i.token),r}),t.useResponse(r=>k(this,null,function*(){return this.interceptResponse&&(yield this.showUnauthorizedAlert(r)),r}),r=>k(this,null,function*(){if(!this.interceptResponse)return Promise.reject(r);const n=r.response||r||{};return yield this.showUnauthorizedAlert(n),Promise.reject(r)}))}}function i0(e={}){const{notify:t,loading:r,settings:n={},Startup:i,access:o,useTitle:s,alert:a}=e;let l=null;return{request:fn({settings:V({type:"form",validSuccess:!0,originResponse:!1,loading:!0,validate:u=>{var c,f;return((c=u.data)==null?void 0:c.code)===0||!!((f=u.data)!=null&&f.success)},failMessage:!0,showError:u=>{t&&t(u||"未知错误")},showLoading:()=>{l&&l.close(),r&&(l=r())},hideLoading:()=>{l&&(l.close(),l=null)}},n)}),jsonp:qs,notify:t,loading:r,useTitle:s,startupComponent:i,access:o?new n0(V({alert:a},o)):void 0}}function o0(e,t){const{jsonp:r,request:n}=t;if(e.method==="jsonp")return(i={})=>r(e.url,et(V({},e.jsonpOptions),{query:i}));{const i=e.headers?ve(e.headers,{},!0):void 0,o={url:e.url,method:e.method,settings:et(V({},e.settings),{headers:i})};return(s,a)=>(delete o.data,n.send(fe(o,a||{},{data:s})))}}function s0(e,t){const{metaQuery:r}=t;if(!r)return;const{code:n,queryCode:i}=e;return(o,s)=>{if(!r){console.warn("adapter.metaQuery is not defined!");return}return r(n,i,o,s)}}function a0(e=[],t=[],r){const n={};for(const i of e)n[i.id]=o0(i,r);for(const i of t)n[i.id]=s0(i,r);return n}function u0(){return k(this,arguments,function*(e=[],t=window){const r=ye(t);r&&(Js(t),e.forEach(n=>l0(r,n)))})}function c0(e,t=window){const r=ir(e.mockTemplate)&&e.mockTemplate.value?qe(e.mockTemplate,{},!0):void 0,n=ye(t);return(...i)=>k(null,null,function*(){let o={};if(r)try{o=yield r.apply(r,i)}catch(s){Qt.warn("模拟数据模版异常",s)}return n==null?void 0:n.mock(o)})}function l0(e,t){if(!t.mock)return;const{url:r,mockTemplate:n}=t;if(r&&n){const i=an(`${r}(.*)`),o=Od(r,{decode:decodeURIComponent}),s=ve(n,{},!0);e.mock(i,a=>{var f;const l=ke.parse(a.url)||{},u=a.body instanceof FormData?_g(a.body):a.body,c=(f=o(a.url))==null?void 0:f.params;return Object.assign(a,{data:u,params:l,query:c}),e.mock(s(a))})}}function Js(e=window){const t=ye(e);t&&(t._mocked={})}class f0{constructor(t){z(this,"__id",null);z(this,"__mode");z(this,"__instance",null);z(this,"__contextRefs",{});z(this,"__refs",{});z(this,"context",{});z(this,"state",{});z(this,"props",{});z(this,"$props",{});z(this,"$refs",{});z(this,"$el",null);z(this,"$emit",null);z(this,"$nextTick",null);z(this,"$parent",null);z(this,"$root",null);z(this,"$attrs",null);z(this,"$slots",null);z(this,"$watch",null);z(this,"$options",null);z(this,"$forceUpdate",null);z(this,"$components",{});z(this,"$libs",{});z(this,"$apis",{});z(this,"__transform",{});const{mode:r,dsl:n,attrs:i}=t;this.__mode=r,n&&(this.__id=n.id||null,this.__transform=n.transform||{}),i&&Object.assign(this,i)}setup(t,r=ze){const n=r.getCurrentInstance();if(!n)return;this.__refs={},this.$refs={},this.context={},this.__contextRefs={},this.__instance=n.proxy;const i=n.appContext.config.globalProperties;Object.assign(this,i),Object.assign(this,t||{}),this.__proxy(),r.onMounted(()=>{this.__proxy()}),r.onUnmounted(()=>{this.__cleanup()}),r.onBeforeUpdate(()=>{this.__reset()})}__proxy(){this.__instance&&Li.forEach(t=>{var r;this[t]=(r=this.__instance)==null?void 0:r[t]})}__cleanup(){Li.forEach(t=>{this[t]=null}),this.__reset()}__reset(){this.__refs={},this.$refs={},this.__contextRefs={},this.context={}}__parseFunction(t){var r;if(t)if(this.__mode===tt.Runtime){const{id:n,type:i}=t,o=n&&(r=this.__transform[n])!=null?r:t.value;return qe({type:i,value:o},this)}else return qe(t,this)}__parseExpression(t){var r;if(t)if(this.__mode===tt.Runtime){const{id:n,type:i}=t,o=n&&(r=this.__transform[n])!=null?r:t.value;return ve({type:i,value:o},this)}else return ve(t,this)}__ref(t=null,r){if(this.__mode!==tt.VNode)return t&&t!==this.__id&&(this.__contextRefs[t]=this),n=>k(this,null,function*(){var o,s;yield hs(0);let i=(n==null?void 0:n.$vtjEl)||(n==null?void 0:n.$el)||((s=(o=n==null?void 0:n._)==null?void 0:o.vnode)==null?void 0:s.el)||n;if(!i){typeof r=="string"&&(delete this.$refs[r],t&&delete this.__refs[t]);return}return i.nodeType===3&&i.nextSibling&&(i=i.nextSibling),i.__vtj__=t,tt.Design===this.__mode&&(i.__context__=this,i.draggable=!0),t&&(this.__refs[t]=this.__getRefEl(this.__refs,t,n)),typeof r=="function"?r(n):r&&(this.$refs[r]=this.__getRefEl(this.$refs,r,n)),n})}__getRefEl(t,r,n){const i=t[r];if(i&&n!==i){const o=new Set([].concat(i,n));return Array.from(o)}else return n}__clone(t={}){const r=V(V({},this.context),t),n=et(V({},r),{context:r});return n.context.__proto__=this.context,n.__proto__=this,n}}function Kr(e){var f,p;const{Vue:t=ze,mode:r=tt.Runtime,components:n={},libs:i={},apis:o={},loader:s}=e,a=t.computed(()=>e.dsl),l={$components:n,$libs:i,$apis:o},u=new f0({mode:r,dsl:a.value,attrs:l}),c=t.defineComponent(V({name:a.value.name,__scopeId:a.value.id?`data-v-${a.value.id}`:void 0,props:V({},p0((f=a.value.props)!=null?f:[],u)),setup(h){var v,w,S,g;u.$props=h,u.props=h,a.value.id&&pn(e.window||window,a.value.id,a.value.css||"",!0),u.state=d0(t,(v=a.value.state)!=null?v:{},u);const d=m0(t,(w=a.value.computed)!=null?w:{},u),m=g0((S=a.value.methods)!=null?S:{},u),b=y0(t,a.value.inject,u);for(const[x,R]of Object.entries(b||{}))b[x]=t.inject(x,R);const E=v0(a.value.dataSources||{},u),y=V(V(V(V({},b),d),m),E);return u.setup(y,t),b0(t,(g=a.value.watch)!=null?g:[],u),{vtj:u}},emits:h0(a.value.emits),expose:["vtj"],render(){if(!a.value.nodes)return null;const h=a.value.nodes||[];return h.length===1?re(h[0],u,t,s,h):h.map(d=>re(d,u,t,s,h))}},w0((p=a.value.lifeCycles)!=null?p:{},u)));return{renderer:t.markRaw(c),context:u}}function h0(e=[]){return e.map(t=>$t(t)?t:t.name)}function p0(e=[],t){const r=n=>n?(Array.isArray(n)?n:[n]).map(i=>Vg[i]):void 0;return e.map(n=>$t(n)?{name:n}:{name:n.name,type:n.type,required:n.required,default:pt(n.default)?t.__parseExpression(n.default):n.default}).reduce((n,i)=>(n[i.name]={type:r(i.type),required:i.required,default:i.default},n),{})}function d0(e,t,r){return e.reactive(Object.keys(t||{}).reduce((n,i)=>{let o=t[i];return pt(o)?o=r.__parseExpression(o):ir(o)&&(o=r.__parseFunction(o)),n[i]=o,n},{}))}function m0(e,t,r){return Object.entries(t!=null?t:{}).reduce((n,[i,o])=>(n[i]=e.computed(r.__parseFunction(o)),n),{})}function g0(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}function y0(e,t=[],r){return t.reduce((n,i)=>{var u;const{name:o,from:s}=i||{};i.default;const a=pt(s)?r.__parseExpression(s)||o:s!=null?s:o,l=pt(i.default)?r.__parseExpression(i.default):(u=i.default)!=null?u:null;return n[o]=e.inject(a,l),n},{})}function v0(e,t){return Object.keys(e).reduce((r,n)=>{const i=e[n];if(i.type==="mock")r[n]=c0(i);else if(i.ref){const o=t.$apis[i.ref],s=ir(i.transform)?i.transform.value?t.__parseFunction(i.transform):void 0:i.transform;r[n]=(...a)=>k(null,null,function*(){const l=yield o.apply(t,a);return s?s(l):l})}return r},{})}function b0(e,t=[],r){t.forEach(n=>{e.watch(r.__parseExpression(n.source),r.__parseFunction(n.handler),{deep:n.deep,immediate:n.immediate})})}function w0(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}let xr=[],Jt={};const _0=e=>e;function Ys(r){return k(this,arguments,function*(e,t=window){const{urls:n=[],library:i}=e,o=n.filter(a=>nr(a));if(o.length===0||!i)return null;const s=n.filter(a=>rr(a));return s.length&&Ws(s,t),yield Ks(o,i,t).catch(a=>(console.warn("loadScriptUrl error",o,i,a),null))})}function Jr(e){const{getDsl:t,getDslByUrl:r,options:n}=e;return n.window&&(xr.forEach(i=>{delete n.window[i]}),xr=[]),(i,o,s=ze)=>{if(!o||typeof o=="string")return i;if(o.type==="Schema"&&o.id)return s.defineAsyncComponent(()=>k(null,null,function*(){const a=Jt[o.id]||(yield t(o.id));return a&&(a.name=i,Jt[o.id]=a),a?Kr(et(V({},n),{Vue:s,dsl:Gn(a),mode:tt.Runtime,loader:Jr(e)})).renderer:null}));if(o.type==="UrlSchema"&&o.url)return s.defineAsyncComponent(()=>k(null,null,function*(){const a=Jt[o.url]||(yield r(o.url));return a&&(a.name=i,Jt[o.url]=a),a?Kr(et(V({},n),{Vue:s,dsl:Gn(a),mode:tt.Runtime,loader:Jr(e)})).renderer:null}));if(o.type==="Plugin"){let a=o.library?Jt[o.library]:null;return a||(o.library&&xr.push(o.library),a=Jt[o.library||Symbol()]=s.defineAsyncComponent(()=>k(null,null,function*(){return(yield Ys(o,n.window))||(console.warn("getPlugin result is null",o),null)})),a)}return i}}function re(e,t,r=ze,n=_0,i=[],o=!1){var v;if(!e||!e.name||e.invisible)return null;const s=(v=r.getCurrentInstance())==null?void 0:v.appContext,{id:a=null,directives:l=[]}=e,{vIf:u,vElseIf:c,vElse:f,vFor:p,vShow:h,vModels:d,vBind:m,vHtml:b,others:E}=Gs(l);if(!o&&(c||f))return null;if(u&&!S0(u,t))return R0(e,t,r,n,i);const y=w=>{var F,B,P,D;const S=w.$components,g=(()=>{var L,M,H,q;if(e.name==="component")return x0(w,(L=e.props)==null?void 0:L.is);if(e.name==="slot")return e.name;const j=n(e.name,e.from,r);return $t(j)?Qg(j)||t0(j)?j:(q=(H=S[j])!=null?H:(M=s==null?void 0:s.app)==null?void 0:M.component(j))!=null?q:j:j})(),x=T0(a,(F=e.props)!=null?F:{},w),R=A0(r,(B=e.events)!=null?B:{},w);if(e.name==="slot")return O0(r,e,x,w,n);m&&Object.assign(x,w.__parseExpression(m.value)),h&&(x.style=Object.assign((P=x.style)!=null?P:{},j0(h,w))),b&&Object.assign(x,D0(b,w)),d.forEach(j=>{Object.assign(x,B0(r,j,w))});const U=C0(r,(D=e.children)!=null?D:[],w,n,e);let _=r.createVNode(g,V(V({},x),R),U);const T=s?E0(s,E,w):[];return T.length&&(_=r.withDirectives(_,T)),_};return p?P0(p,y,t):y(t)}function E0(e,t,r){const n=e.app;return t.map(i=>{const o=typeof i.name=="string"?n.directive(i.name):r.__parseExpression(i.name);if(!o)return null;const s=[o];return i.value&&s.push(r.__parseExpression(i.value)),i.arg&&s.push(i.arg),i.modifiers&&s.push(i.modifiers),s}).filter(i=>!!i)}function Gs(e=[]){const t=e.find(c=>wt(c.name)==="vIf"),r=e.find(c=>wt(c.name)==="vElseIf"),n=e.find(c=>wt(c.name)==="vElse"),i=e.find(c=>wt(c.name)==="vFor"),o=e.find(c=>wt(c.name)==="vShow"),s=e.find(c=>wt(c.name)==="vBind"),a=e.find(c=>wt(c.name)==="vHtml"),l=e.filter(c=>wt(c.name)==="vModel"),u=e.filter(c=>!Lg.includes(wt(c.name)));return{vIf:t,vElseIf:r,vElse:n,vFor:i,vShow:o,vModels:l,vBind:s,others:u,vHtml:a}}function S0(e,t){return!!t.__parseExpression(e.value)}function x0(e,t){return t?pt(t)?e.__parseExpression(t):t:"div"}function T0(e,t,r){const n=Yr(t,r);return n.ref=r.__ref(e,n.ref),n}function Yr(e,t){return pt(e)?t.__parseExpression(e):ir(e)?t.__parseFunction(e):Array.isArray(e)?e.map(r=>Yr(r,t)):typeof e=="object"?Object.keys(e||{}).reduce((r,n)=>{let i=e[n];return r[n]=Yr(i,t),r},{}):e}function A0(e,t,r){const n=["passive","capture","once"],i={capture:"Capture",once:"Once",passive:"OnceCapture"};return Object.keys(t||{}).reduce((o,s)=>{const a=t[s],l=Zs(a.modifiers),u=l.find(p=>n.includes(p)),c="on"+xo(s)+(u&&i[u]||""),f=r.__parseFunction(a.handler);return f&&(o[c]=e.withModifiers(f,l)),o},{})}function R0(e,t,r,n,i=[]){let o=i.findIndex(s=>s.id===e.id);for(let s=++o;s<i.length;s++){const{directives:a=[]}=i[s],{vElseIf:l,vElse:u}=Gs(a);if(l){if(t.__parseExpression(l.value))return re(i[s],t,r,n,i,!0);continue}if(u)return re(i[s],t,r,n,i,!0)}return null}function Zs(e={},t=!1){const r=Object.keys(e);return t?r.map(n=>"."+n):r}function O0(e,t,r,n,i){var l;const{children:o}=t,s=$0(t,n),a=(l=n.$slots)==null?void 0:l[s.name];return a?a(r):o?$t(o)?e.createTextVNode(o):pt(o)?e.createTextVNode(zs(n.__parseExpression(o))):Array.isArray(o)?o.map(u=>re(u,n,e,i,o)):null:null}function $0(e,t){const{props:r}=e,n=(r==null?void 0:r.name)||"default";return{name:pt(n)?t.__parseExpression(n):n,params:[]}}function j0(e,t){return t.__parseExpression(e.value)?{}:{display:"none"}}function D0(e,t){return{innerHTML:t.__parseExpression(e.value)||""}}function B0(e,t,r){var a;const n={type:"JSFunction",value:(a=t.value)!=null&&a.value?`(v) => {
69
69
  ${t.value.value} = v;
70
70
  }`:"(v) => {}"},i=r.__parseFunction(n),o=Zs(pt(t.modifiers)?r.__parseExpression(t.modifiers):t.modifiers),s=pt(t.arg)?r.__parseExpression(t.arg):t.arg||"modelValue";return{[s]:r.__parseExpression(t.value),[`onUpdate:${s}`]:o.length&&i?e.withModifiers(i,o):i}}function C0(e,t,r,n,i){if(!t)return null;if($t(t))return{default:()=>t};if(pt(t))return{default:()=>zs(r.__parseExpression(t))};if(Array.isArray(t)&&t.length>0){const o=N0(t),s=a=>!a||!i?{}:i!=null&&i.id&&Object.keys(a).length?{[`scope_${i.id}`]:a}:{};return Object.entries(o).reduce((a,[l,{nodes:u,params:c}])=>(a[l]=f=>{const p=c.length?xd(f!=null?f:{},c):s(f);return u.map(h=>re(h,r.__clone(p),e,n,u))},a),{})}return null}function N0(e){const t={default:{params:[],nodes:[]}};for(const r of e){const n=I0(r.slot),i=n.name;t[i]?(t[i].nodes.push(r),t[i].params=t[i].params.concat(n.params)):t[i]={nodes:[r],params:n.params}}return t}function I0(e="default"){return $t(e)?{name:e,params:[]}:V({params:[]},e)}function P0(e,t,r){const{value:n,iterator:i}=e,{item:o="item",index:s="index"}=i||{};let a=r.__parseExpression(n)||[];return Number.isInteger(a)&&(a=new Array(a).fill(!0).map((l,u)=>u+1)),Array.isArray(a)?a.map((l,u)=>t(r.__clone({[o]:l,[s]:u}))):(console.warn("[vForRender]:",`${n==null?void 0:n.value} is not a Arrary`),[])}const Vi=zi({name:"VtjPageContainer",setup(){return k(this,null,function*(){const e=U0(),t=fa(),r=t.params.id,n=r?e.getPage(r):e.getHomepage(),i=n?yield e.getRenderComponent(n.id):null,o=ca(Symbol());if(n){Object.assign(t.meta,n.meta||{},{cache:n.cache});const{useTitle:s}=e==null?void 0:e.adapter;s&&s(n.title||"VTJ")}return{provider:e,component:i,file:n,query:t.query,meta:t.meta,sid:o,route:t}})},render(){const{component:e,query:t,sid:r}=this;return e?Tr(e,et(V({},t),{key:r})):Tr("div","页面不存在")},activated(){this.meta.cache===!1&&(this.sid=Symbol())}}),F0=zi({name:"VtjStartupContainer",render(){return Tr("div","page not found!")}}),Xs=Symbol("Provider");class k0 extends Fd{constructor(r){super();z(this,"mode");z(this,"globals",{});z(this,"modules",{});z(this,"adapter",{request:Hr,jsonp:qs});z(this,"apis",{});z(this,"dependencies",{});z(this,"materials",{});z(this,"library",{});z(this,"service");z(this,"project",null);z(this,"components",{});z(this,"nodeEnv","development");z(this,"router",null);z(this,"materialPath","./");z(this,"urlDslCaches",{});this.options=r;const{service:n,mode:i=tt.Raw,dependencies:o,materials:s,project:a={},adapter:l={},globals:u={},modules:c={},router:f=null,materialPath:p="./",nodeEnv:h="development"}=r;this.mode=i,this.modules=c,this.service=n,this.router=f,this.materialPath=p,this.nodeEnv=h,o&&(this.dependencies=o),s&&(this.materials=s),Object.assign(this.globals,u),Object.assign(this.adapter,l);const{access:d,request:m}=this.adapter;d&&d.connect({mode:i,router:f,request:m}),a&&i!==tt.Design?this.load(a):this.project=a}createMock(r){return(...n)=>k(null,null,function*(){var o;let i={};if(r)try{i=yield r.apply(r,n)}catch(s){Qt.warn("模拟数据模版异常",s)}return(o=ye())==null?void 0:o.mock(i)})}load(r){return k(this,null,function*(){const n=this.modules[`.vtj/projects/${r.id}.json`]||this.modules[`/src/.vtj/projects/${r.id}.json`];if(this.project=n?yield n():yield this.service.init(r),!this.project)throw new Error("project is null");const{apis:i=[],meta:o=[]}=this.project,s=window;s&&(s.CKEDITOR_VERSION=void 0),this.mode===tt.Raw?yield this.loadDependencies(s):yield this.loadAssets(s),this.initMock(s),this.apis=a0(i,o,this.adapter),Js(s),u0(i,s),r.platform!=="uniapp"&&this.initRouter(),this.triggerReady()})}initMock(r){const n=ye(r);n&&n.setup({timeout:"50-500"})}loadDependencies(r){return k(this,null,function*(){const n=Object.entries(this.dependencies);for(const[i,o]of n)r[i]||(r[i]=this.library[i]=yield o())})}loadAssets(r){return k(this,null,function*(){const{dependencies:n=[]}=this.project,{dependencies:i,library:o,components:s,materialPath:a,nodeEnv:l}=this,{libraryExports:u,libraryMap:c,materials:f,materialExports:p,materialMapLibrary:h}=Kg(n,a,l==="development");for(const d of u){const m=i[d],b=r[d];if(b)o[d]=b;else if(m)r[d]=o[d]=yield m();else{const E=c[d]||[];for(const y of E)rr(y)&&(yield Zg(d,ke.append(y,{v:Er}))),nr(y)&&(yield Mi(ke.append(y,{v:Er})));o[d]=r[d]}}if(l==="development"){for(const m of f)yield Mi(ke.append(m,{v:Er}));const d=this.materials||{};for(const m of p){const b=r[h[m]],E=Pd[m];if(E)b&&E.forEach(y=>{s[y]=b[y]});else{const y=d[m]?(yield d[m]()).default:r[m];y&&b&&(y.components||[]).forEach(v=>{s[v.name]=Jg(v,b)})}}}})}initRouter(){const{router:r,project:n,options:i,adapter:o}=this;if(!r)return;const s=(n==null?void 0:n.platform)==="uniapp"?"pages":"page",{routeAppendTo:a,pageRouteName:l=s,routeMeta:u}=i,c=a?"":"/",f={path:`${c}${l}/:id`,name:Me,component:Vi},p={path:c,name:Sr,component:n!=null&&n.homepage?Vi:o.startupComponent||F0,meta:u};r.hasRoute(Me)&&r.removeRoute(Me),r.hasRoute(Sr)&&r.removeRoute(Sr),a?(r.addRoute(a,f),r.addRoute(a,p)):(r.addRoute(f),r.addRoute(p))}install(r){const n=r.config.globalProperties.installed||{};for(const[i,o]of Object.entries(this.library))!n[i]&&Xg(o)&&(r.use(o),n[i]=!0);this.options.install&&r.use(this.options.install),this.adapter.access&&r.use(this.adapter.access),r.provide(Xs,this),r.config.globalProperties.$provider=this,r.config.globalProperties.installed=n,this.mode===tt.Design&&(r.config.errorHandler=(i,o,s)=>{const a=o==null?void 0:o.$options.name,l=typeof i=="string"?i:(i==null?void 0:i.message)||(i==null?void 0:i.msg)||"未知错误",u=`[ ${a} ] ${l} ${s}`;console.error("[VTJ Error]:",{err:i,instance:o,info:s},i==null?void 0:i.stack),this.adapter.notify&&this.adapter.notify(u,"组件渲染错误","error")}),this.options.enhance&&r.use(this.options.enhance,this)}getFile(r){const{blocks:n=[]}=this.project||{};return this.getPage(r)||n.find(i=>i.id===r)||null}getPage(r){const{pages:n=[]}=this.project||{},i=(o,s=[])=>{for(const a of s){if(a.id===o)return a;if(a.children&&a.children.length){const l=i(o,a.children);if(l)return l}}};return i(r,n)||null}getHomepage(){const{homepage:r}=this.project||{};return r?this.getPage(r):null}getDsl(r){return k(this,null,function*(){const n=this.modules[`.vtj/files/${r}.json`]||this.modules[`/src/.vtj/files/${r}.json`];return n?yield n():this.service.getFile(r,this.project||void 0).catch(()=>null)})}getDslByUrl(r){return k(this,null,function*(){return this.urlDslCaches[r]||(this.adapter.request?this.urlDslCaches[r]=this.adapter.request.send({url:r,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(i=>i.data).catch(()=>null):null)})}createDslRenderer(r,n={}){const{library:i,components:o,mode:s,apis:a}=this,l=V({mode:s,Vue:i.Vue,components:o,libs:i,apis:a,window},n),u=Jr({getDsl:c=>k(this,null,function*(){return(yield this.getDsl(c))||null}),getDslByUrl:c=>k(this,null,function*(){return(yield this.getDslByUrl(c))||null}),options:l});return Kr(et(V({},l),{dsl:r,loader:u}))}getRenderComponent(r,n){return k(this,null,function*(){var l;const i=this.getFile(r);if(!i)return Qt.warn(`Can not find file: ${r}`),null;n&&n(i);const o=`.vtj/vue/${r}.vue`,s=this.modules[o]||this.modules[`/src/pages/${r}.vue`];if(s)return(l=yield s())==null?void 0:l.default;const a=yield this.getDsl(i.id);return a?this.createDslRenderer(a).renderer:(Qt.warn(`Can not find dsl: ${r}`),null)})}defineUrlSchemaComponent(r,n){return gn(()=>k(this,null,function*(){const i=yield this.getDslByUrl(r);return i?(i.name=n||i.name,this.createDslRenderer(i).renderer):null}))}definePluginComponent(r){return gn(()=>k(null,null,function*(){return yield Ys(r,window)}))}}function M0(e){const t=new k0(e);return{provider:t,onReady:r=>t.ready(r)}}function U0(e={}){const t=la(Xs,null);if(!t)throw new Error("Can not find provider");if(t.nodeEnv==="development"){const{id:r,version:n}=e;r&&n&&k(null,null,function*(){const i=yield t.getDsl(r);(i==null?void 0:i.__VERSION__)!==n&&t.adapter.notify&&t.adapter.notify(`[ ${i==null?void 0:i.name} ] 组件源码版本与运行时版本不一致,请重新发布组件`,"版本不一致","warning")})}return t}function L0(e,t=""){return k(this,null,function*(){const{name:r,urls:n=[]}=e||{},i=n.map(a=>t+a),{css:o,js:s}=Yg(i);if(o.length&&Ws(o),s.length)return yield Ks(s,r).catch(()=>{})})}const Qs={type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:e=>{var t;return((t=e.data)==null?void 0:t.code)===0}},V0=(e,t="/__vtj__/api/:type.json")=>(r,n,i)=>e.send({url:t,method:"post",params:{type:r},query:i,data:{type:r,data:n},settings:Qs}),H0=(e,t="/__vtj__/api/uploader.json")=>(r,n)=>k(null,null,function*(){return yield e.send({url:t,method:"post",data:{files:r,projectId:n},settings:et(V({},Qs),{type:"data"})}).then(i=>i&&i[0]?i[0]:null).catch(()=>null)});function q0(e){return fn({settings:{type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:t=>{var r;return((r=t.data)==null?void 0:r.code)===0},showError:t=>{e&&e(t||"未知错误")}}})}let z0=class{constructor(t=Hr){z(this,"api");z(this,"pluginCaches",{});z(this,"uploader");this.req=t,this.api=V0(t),this.uploader=H0(t)}getExtension(){return k(this,null,function*(){console.log("BaseService.getExtension")})}init(t){return k(this,null,function*(){return console.log("BaseService.init",t),{}})}saveProject(t,r){return k(this,null,function*(){return!!(yield this.api("saveProject",t,{type:r}).catch(()=>!1))})}saveMaterials(t,r){return k(this,null,function*(){return console.log("BaseService.saveMaterials",t,r),!1})}saveFile(t){return k(this,null,function*(){return console.log("BaseService.saveFile",t),!1})}getFile(t){return k(this,null,function*(){return console.log("BaseService.getFile",t),{}})}removeFile(t){return k(this,null,function*(){return console.log("BaseService.removeFile",t),!1})}saveHistory(t){return k(this,null,function*(){return console.log("BaseService.saveHistory",t),!1})}removeHistory(t){return k(this,null,function*(){return console.log("BaseService.removeHistory",t),!1})}getHistory(t){return k(this,null,function*(){return console.log("BaseService.getHistory",t),{}})}getHistoryItem(t,r){return k(this,null,function*(){return console.log("BaseService.getHistoryItem",t,r),{}})}saveHistoryItem(t,r){return k(this,null,function*(){return console.log("BaseService.saveHistoryItem",t,r),!1})}removeHistoryItem(t,r){return k(this,null,function*(){return console.log("BaseService.removeHistoryItem",t,r),!1})}publish(t){return k(this,null,function*(){return!!(yield this.api("publish",t).catch(()=>!1))})}publishFile(t,r){return k(this,null,function*(){return!!(yield this.api("publishFile",{project:t,file:r}).catch(()=>!1))})}genVueContent(t,r){return k(this,null,function*(){return yield this.api("genVueContent",{project:t,dsl:r}).catch(()=>"")})}parseVue(t,r){return k(this,null,function*(){return yield this.api("parseVue",V({project:t},r))})}createRawPage(t){return k(this,null,function*(){return yield this.api("createRawPage",t).catch(()=>"")})}removeRawPage(t){return k(this,null,function*(){return yield this.api("removeRawPage",t).catch(()=>"")})}uploadStaticFile(t,r){return k(this,null,function*(){return yield this.uploader(t,r).catch(()=>null)})}getStaticFiles(t){return k(this,null,function*(){return yield this.api("getStaticFiles",t).catch(()=>[])})}removeStaticFile(t,r){return k(this,null,function*(){return yield this.api("removeStaticFile",{name:t,projectId:r}).catch(()=>"")})}clearStaticFiles(t){return k(this,null,function*(){return yield this.api("clearStaticFiles",t).catch(()=>"")})}getPluginMaterial(t){return k(this,null,function*(){const{urls:r=[]}=t,n=r.filter(o=>zg(o))[0];return n?this.pluginCaches[n]||(this.pluginCaches[n]=Hr.send({url:n,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(o=>o.data).catch(()=>null)):null})}genSource(t){return k(this,null,function*(){return console.log("BaseService.genSource",t),""})}};new Us({type:"local",expired:0,prefix:"__VTJ_"});class W0 extends z0{constructor(){super(...arguments);z(this,"getFileCaches",{})}getExtension(){return k(this,null,function*(){return yield this.api("getExtension",{}).catch(()=>{})})}init(r){return k(this,null,function*(){return(yield this.api("init",r).catch(()=>null))||{}})}saveProject(r,n){return k(this,null,function*(){return!!(yield this.api("saveProject",r,{type:n}).catch(()=>!1))})}saveMaterials(r,n){return k(this,null,function*(){return!!(yield this.api("saveMaterials",{project:r,materials:Ed(n)}).catch(()=>!1))})}saveFile(r){return k(this,null,function*(){return!!(yield this.api("saveFile",r).catch(()=>!1))})}getFile(r){return k(this,null,function*(){return this.getFileCaches[r]||(this.getFileCaches[r]=this.api("getFile",r).catch(()=>null)).finally(()=>{delete this.getFileCaches[r]})})}removeFile(r){return k(this,null,function*(){return!!(yield this.api("removeFile",r).catch(()=>!1))})}saveHistory(r){return k(this,null,function*(){return!!(yield this.api("saveHistory",r).catch(()=>!1))})}removeHistory(r){return k(this,null,function*(){return!!(yield this.api("removeHistory",r).catch(()=>!1))})}getHistory(r){return k(this,null,function*(){return(yield this.api("getHistory",r).catch(()=>null))||{}})}getHistoryItem(r,n){return k(this,null,function*(){return(yield this.api("getHistoryItem",{fId:r,id:n}).catch(()=>null))||{}})}saveHistoryItem(r,n){return k(this,null,function*(){return!!(yield this.api("saveHistoryItem",{fId:r,item:n}).catch(()=>!1))})}removeHistoryItem(r,n){return k(this,null,function*(){return!!(yield this.api("removeHistoryItem",{fId:r,ids:n}).catch(()=>!1))})}}/**!
71
71
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
72
72
  * @name @vtj/uni
73
73
  * @author CHC chenhuachun1549@dingtalk.com
74
- * @version 0.12.31
74
+ * @version 0.12.33
75
75
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
76
76
  */const K0=["onLaunch","onShow","onHide","onError","onPageNotFound","onUnhandledRejection","onThemeChange","onPageNotFound","onUniNViewMessage","onExit"],Hi="/pages",J0="VTJ",Y0="__UNI__1FC118B",G0="VTJ移动跨端项目",Z0="1.0.0",X0="100",Q0=!1,ty={},ey={enable:!1},ry="3",ny={name:J0,appid:Y0,description:G0,versionName:Z0,versionCode:X0,transformPx:Q0,"app-plus":{usingComponents:!0,nvueStyleCompiler:"uni-app",compilerVersion:3,splashscreen:{alwaysShowBeforeRender:!0,waiting:!0,autoclose:!0,delay:0},modules:{},distribute:{android:{permissions:['<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>','<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>','<uses-permission android:name="android.permission.VIBRATE"/>','<uses-permission android:name="android.permission.READ_LOGS"/>','<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>','<uses-feature android:name="android.hardware.camera.autofocus"/>','<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>','<uses-permission android:name="android.permission.CAMERA"/>','<uses-permission android:name="android.permission.GET_ACCOUNTS"/>','<uses-permission android:name="android.permission.READ_PHONE_STATE"/>','<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>','<uses-permission android:name="android.permission.WAKE_LOCK"/>','<uses-permission android:name="android.permission.FLASHLIGHT"/>','<uses-feature android:name="android.hardware.camera"/>','<uses-permission android:name="android.permission.WRITE_SETTINGS"/>']},ios:{},sdkConfigs:{},icons:{android:{hdpi:"src/static/logo.png",xhdpi:"src/static/logo.png",xxhdpi:"src/static/logo.png",xxxhdpi:"src/static/logo.png"}}}},quickapp:ty,"mp-weixin":{appid:"",setting:{urlCheck:!1},usingComponents:!0},"mp-alipay":{usingComponents:!0},"mp-baidu":{usingComponents:!0},"mp-toutiao":{usingComponents:!0},uniStatistics:ey,vueVersion:ry},iy=[],oy={navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},sy={autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}},ay={pages:iy,globalStyle:oy,easycom:sy};function uy(e){let{manifestJson:t={},pagesJson:r={},routes:n=[]}=e;const i=n.map(o=>{const{path:s,style:a,needLogin:l}=o;return{path:s,style:a,needLogin:l}});return et(V({},e),{manifestJson:Object.assign({},ny,t),pagesJson:Object.assign({},ay,r,{pages:i})})}const Gr={navigationBarBackgroundColor:"backgroundColor",navigationBarTextStyle:"titleColor",navigationBarTitleText:"titleText",navigationStyle:"style",titleImage:"titleImage",titlePenetrate:"titlePenetrate",transparentTitle:"transparentTitle"};function ta(e){const t={},r={black:"#000000",white:"#ffffff"};for(const n in e)Gr[n]&&(t[Gr[n]]=n==="navigationBarTextStyle"?r[e[n]]||r.black:e[n]);return t}function cy(e){const t={};for(const r in e)Gr[r]||(t[r]=e[r]);return t}function ly(e){var t,r;return((r=(t=e.h5)==null?void 0:t.router)==null?void 0:r.mode)||"hash"}function fy(e){var t,r,n;return{topWindow:!!((t=e.topWindow)!=null&&t.path),leftWindow:!!((r=e.leftWindow)!=null&&r.path),rightWindow:!!((n=e.rightWindow)!=null&&n.path)}}function hy(e){const{pagesJson:t={}}=e,{globalStyle:r,pages:n=[]}=t;return!!(r!=null&&r.enablePullDownRefresh||n.find(i=>{var o;return!!((o=i.style)!=null&&o.enablePullDownRefresh)}))}function py(e){const{pagesJson:t={}}=e,{globalStyle:r,pages:n=[]}=t;let i=!1;return(r==null?void 0:r.navigationStyle)==="custom"?(i=!0,n.find(o=>{var s;return((s=o.style)==null?void 0:s.navigationStyle)==="default"})&&(i=!1)):n.every(o=>{var s;return((s=o.style)==null?void 0:s.navigationStyle)==="custom"})&&(i=!0),i}function dy(e){var a;const t=py(e),r={navigationBar:!1,navigationBarButtons:!1,navigationBarSearchInput:!1,navigationBarTransparent:!1},{pagesJson:n={}}=e,{globalStyle:i,pages:o=[]}=n;if(t)return r;r.navigationBar=!0;const s=(a=i==null?void 0:i.h5)==null?void 0:a.titleNView;return o.find(l=>{var u,c,f;return!!((f=(c=(u=l.style)==null?void 0:u.h5)==null?void 0:c.titleNView)!=null&&f.buttons.length)})&&(r.navigationBarButtons=!0),(s!=null&&s.searchInput||o.find(l=>{var u,c,f;return!!((f=(c=(u=l.style)==null?void 0:u.h5)==null?void 0:c.titleNView)!=null&&f.searchInput)}))&&(r.navigationBarSearchInput=!0),((s==null?void 0:s.type)==="transparent"||o.find(l=>{var u,c,f;return((f=(c=(u=l.style)==null?void 0:u.h5)==null?void 0:c.titleNView)==null?void 0:f.type)==="transparent"}))&&(r.navigationBarTransparent=!0),r}function my(e,t=window){var p,h,d,m;const{pagesJson:r={},manifestJson:n={}}=e,{topWindow:i,leftWindow:o,rightWindow:s}=fy(r),{navigationBar:a,navigationBarButtons:l,navigationBarSearchInput:u,navigationBarTransparent:c}=dy(e),f={__VUE_OPTIONS_API__:!0,__VUE_PROD_DEVTOOLS__:!1,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__:!1,__UNI_FEATURE_WX__:!1,__UNI_FEATURE_WXS__:!1,__UNI_FEATURE_RPX__:!1,__UNI_FEATURE_PROMISE__:!1,__UNI_FEATURE_LONGPRESS__:!1,__UNI_FEATURE_I18N_EN__:!1,__UNI_FEATURE_I18N_ES__:!1,__UNI_FEATURE_I18N_FR__:!1,__UNI_FEATURE_I18N_ZH_HANS__:!0,__UNI_FEATURE_I18N_ZH_HANT__:!1,__UNI_FEATURE_UNI_CLOUD__:!1,__UNI_FEATURE_I18N_LOCALE__:!1,__UNI_FEATURE_NVUE__:!1,__UNI_FEATURE_ROUTER_MODE__:ly(n),__UNI_FEATURE_PAGES__:!!((p=r.pages)!=null&&p.length),__UNI_FEATURE_TABBAR__:!!((d=(h=r.tabBar)==null?void 0:h.list)!=null&&d.length),__UNI_FEATURE_TABBAR_MIDBUTTON__:!!((m=r.tabBar)!=null&&m.midButton),__UNI_FEATURE_TOPWINDOW__:i,__UNI_FEATURE_LEFTWINDOW__:o,__UNI_FEATURE_RIGHTWINDOW__:s,__UNI_FEATURE_RESPONSIVE__:!1,__UNI_FEATURE_NAVIGATIONBAR__:a,__UNI_FEATURE_PULL_DOWN_REFRESH__:hy(e),__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__:l,__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__:u,__UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__:c};Object.entries(f).forEach(([b,E])=>{t[b]=E})}const gy="4.57";function yy(e,t=window){var f,p;const{pagesJson:r={},manifestJson:n={}}=e,{easycom:i={}}=r,{appid:o="",name:s="",versionCode:a="",versionName:l=""}=n,u=r.globalStyle,c=((f=n.h5)==null?void 0:f.router)||{};t.__uniConfig={easycom:i,globalStyle:et(V({},cy(u)),{navigationBar:ta(u),isNVue:!1}),compilerVersion:gy,appId:o,appName:s,appVersion:l,appVersionCode:String(a),async:V({loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0},((p=n.h5)==null?void 0:p.async)||{}),debug:!1,networkTimeout:V({request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},n.networkTimeout||{}),sdkConfigs:{},nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:{},router:V({mode:"hash",base:"/",assets:"assets",routerBase:c.base||"/"},c),darkmode:!1,themeConfig:{},tabBar:r.tabBar?V({position:"bottom",color:"#7A7E83",selectedColor:"#3cc51f",borderStyle:"black",blurEffect:"none",fontSize:"10px",iconWidth:"24px",spacing:"3px",height:"50px",backgroundColor:"#ffffff",selectedIndex:0,shown:!0},r.tabBar):void 0}}function vy(e,t=window){const{UniServiceJSBridge:r,UniViewJSBridge:n,getApp:i,uni:o,getCurrentPages:s,upx2px:a,setupPage:l}=e;t.UniServiceJSBridge=r,t.UniViewJSBridge=n,t.getApp=i,t.uni=o,t.wx=o,t.getCurrentPages=s,t.upx2px=a,t.__setupPage=u=>l(u)}function by(e,t,r){const{openBlock:n,createBlock:i,withCtx:o,createVNode:s}=e,{PageComponent:a,setupPage:l,getApp:u}=t;return{mpType:"page",setup(){return k(this,null,function*(){var m,b;const f=((b=(m=u())==null?void 0:m.$route)==null?void 0:b.query)||{},{loader:p,component:h}=r,d=p?yield p(r):h||{};return()=>(n(),i(a,null,{page:o(()=>[s(l(d),Object.assign({},f,{ref:"page"}),null,512)]),_:1}))})}}}function wy(e,t,r){var h;const{path:n,style:i={},meta:o={},home:s,id:a}=t,l=((h=e.tabBar)==null?void 0:h.list)||[],u=l.findIndex(d=>{var m;return d.pagePath===n||((m=d.pagePath)==null?void 0:m.endsWith(a))}),c=l[u],f=!!c,p=r===0;return V({isTabBar:f,tabBarIndex:u,isQuit:s!=null?s:p,isEntry:s!=null?s:p,navigationBar:V({type:"default"},ta(i)),isNVue:!1,route:c?c.pagePath:n},o)}function _y(e,t,r,n,i=window){const o=r.map((s,a)=>{const l=wy(n,s,a),u=by(e,t,s),{path:c}=s;return{path:c,alias:c,meta:l,component:{render(){return e.h(e.Suspense,[e.h(u)])}}}});i.__uniRoutes=o,i.__uniLayout={}}function Ey(e,t,r=window){pn(r,String(e),t)}function Sy(e,t){t&&["View","ScrollView","Swiper","MovableArea","MovableView","CoverView","CoverImage","Icon","Text","RichText","Progress","Button","CheckboxGroup","Checkbox","Editor","Form","Input","Label","Picker","PickerView","RadioGroup","Radio","Slider","Switch","Textarea","Navigator","Image","Video","Map","Canvas","WebView","PickerViewColumn","ResizeSensor","SwiperItem"].forEach(r=>{const n=t[r];e.component(r,n)})}function xy(e){const t=uy(e),{Vue:r,App:n,UniH5:i,routes:o=[],pagesJson:s={},manifestJson:a={},window:l,css:u=""}=t;if(!i)return r.createApp(n);const{plugin:c,setupApp:f}=i;my(t,l),yy(t,l),vy(i,l),_y(r,i,o,s,l),Ey(a.appid||Date.now(),u,l);const p=r.createApp(f(n));return p.use(Sy,i),p.use(c),p}function Ty(e,t){const r={};return Object.entries(e).forEach(([n,i])=>{K0.includes(n)&&i&&(r[n]=t(i))}),r}function qi(e,t){return()=>k(null,null,function*(){const r=yield e.getDsl(t);if(r){const{renderer:n}=e.createDslRenderer(r);return n}return null})}function Ay(n){return k(this,arguments,function*(e,t=!1,r=Hi){var a,l,u;const i=((a=e.project)==null?void 0:a.pages)||[],o=[];for(const c of i){const f=((l=e.project)==null?void 0:l.homepage)===c.id;o.push({id:c.id,path:`${r}/${c.id}`,loader:qi(e,c.id),style:V({navigationBarTitleText:c.title},c.style),needLogin:c.needLogin,home:f})}const s=o.find(c=>!!c.home)||o[0];if(s){const c=r===Hi?"/":r;o.unshift(et(V({},s),{path:c}))}if(t){const c=((u=e.project)==null?void 0:u.blocks)||[];for(const f of c)o.push({id:f.id,path:`${r}/${f.id}`,loader:qi(e,f.id),style:{navigationStyle:"custom"}})}return o})}function Ry(){var e;if((e=window.uni)!=null&&e.showLoading)return window.uni.showLoading({title:"加载中...",mask:!0}),{close:()=>{var t;(t=window.uni)!=null&&t.hideLoading&&window.uni.hideLoading()}}}function ea(e,t="",r="warning"){var n;(n=window.uni)!=null&&n.showModal&&window.uni.showModal({title:t,content:e,showCancel:!1})}function Oy(e=tt.Runtime){return e===tt.Runtime?Object.assign({}):Object.assign({})}const $y=i0({loading:Ry,notify:ea}),ra=new W0(q0(ea)),jy=Oy(),{provider:Dy,onReady:By}=M0({nodeEnv:"production",mode:tt.Runtime,modules:jy,materialPath:"../",adapter:$y,service:ra,dependencies:{Vue:()=>vn(()=>import("./@dcloudio-uni-h5-vue-DzAZSbri.js").then(e=>e.U),__vite__mapDeps([0,1,2]),import.meta.url),VueRouter:()=>vn(()=>import("./vue-router-DNkp_UbP.js"),__vite__mapDeps([3,0,1,2]),import.meta.url)}}),Cy=e=>k(null,null,function*(){const t=(yield ra.getExtension().catch(()=>null))||{},r=top||window,n=yield L0(t.enhance,r.location.pathname),{Vue:i,UniH5:o}=window,s=e.project;if(!s)return;const a=s.uniConfig||{},l=Ty(a,d=>qe(d,window,!1,!0)),{manifestJson:u,pagesJson:c,css:f}=a,p=yield Ay(e,!0),h=xy({Vue:i,App:l,UniH5:o,routes:p,css:f,manifestJson:u,pagesJson:c});h.use(e),n&&h.use(n,e),h.mount(document.body)});By(()=>Cy(Dy));
@@ -13,7 +13,7 @@
13
13
  <title></title>
14
14
  <!--preload-links-->
15
15
  <!--app-context-->
16
- <script type="module" crossorigin src="./assets/index-DEVhmBNT.js"></script>
16
+ <script type="module" crossorigin src="./assets/index-CiXCL3Ic.js"></script>
17
17
  <link rel="modulepreload" crossorigin href="./assets/vue-BK7aLblh.js">
18
18
  <link rel="modulepreload" crossorigin href="./assets/@dcloudio-uni-shared-VStmjWbh.js">
19
19
  <link rel="modulepreload" crossorigin href="./assets/@dcloudio-uni-h5-vue-DzAZSbri.js">
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vtj/pro",
3
3
  "private": false,
4
- "version": "0.12.31",
4
+ "version": "0.12.33",
5
5
  "keywords": [
6
6
  "低代码引擎",
7
7
  "LowCode Engine",
@@ -21,21 +21,21 @@
21
21
  "license": "MIT",
22
22
  "type": "module",
23
23
  "dependencies": {
24
- "@vtj/core": "~0.12.31",
25
- "@vtj/local": "~0.12.31",
26
- "@vtj/renderer": "~0.12.31",
27
- "@vtj/uni": "~0.12.31",
28
- "@vtj/materials": "~0.12.31",
29
- "@vtj/designer": "~0.12.31"
24
+ "@vtj/designer": "~0.12.33",
25
+ "@vtj/materials": "~0.12.33",
26
+ "@vtj/local": "~0.12.33",
27
+ "@vtj/core": "~0.12.33",
28
+ "@vtj/renderer": "~0.12.33",
29
+ "@vtj/uni": "~0.12.33"
30
30
  },
31
31
  "devDependencies": {
32
32
  "vue": "~3.5.5",
33
33
  "vue-router": "~4.5.0",
34
- "@vtj/charts": "~0.12.31",
35
- "@vtj/icons": "~0.12.31",
36
34
  "@vtj/cli": "~0.12.3",
37
- "@vtj/ui": "~0.12.31",
38
- "@vtj/utils": "~0.12.31"
35
+ "@vtj/icons": "~0.12.33",
36
+ "@vtj/charts": "~0.12.33",
37
+ "@vtj/ui": "~0.12.33",
38
+ "@vtj/utils": "~0.12.33"
39
39
  },
40
40
  "exports": {
41
41
  "./vite": {
@@ -63,9 +63,9 @@
63
63
  "vtj": {
64
64
  "name": "VTJ.PRO",
65
65
  "platform": "web",
66
- "remote": "https://lcdp.vtj.pro",
66
+ "remote": "http://localhost:8000",
67
67
  "__ACCESS__": {
68
- "auth": "https://lcdp.vtj.pro/login",
68
+ "auth": "http://localhost:8000/login",
69
69
  "storageKey": "RRO_IDE_ACCESS_STORAGE__",
70
70
  "privateKey": "MIIBOgIBAAJBAKoIzmn1FYQ1YOhOBw9EhABxZ+PySAIaydI+zdhoKflrdgJ4A5E4/5gbQmRpk09hPWG8nvX7h+l/QLU8kXxAIBECAwEAAQJAAlgpxQY6sByLsXqzJcthC8LSGsLf2JEJkHwlnpwFqlEV8UCkoINpuZ2Wzl+aftURu5rIfAzRCQBvHmeOTW9/zQIhAO5ufWDmnSLyfAAsNo5JRNpVuLFCFodR8Xm+ulDlosR/AiEAtpAltyP9wmCABKG/v/hrtTr3mcvFNGCjoGa9bUAok28CIHbrVs9w1ijrBlvTsXYwJw46uP539uKRRT4ymZzlm9QjAiB+1KH/G9f9pEEL9rtaSOG7JF5D0JcOjlze4MGVFs+ZrQIhALKOUFBNr2zEsyJIjw2PlvEucdlG77UniszjXTROHSPd"
71
71
  }
@@ -1 +0,0 @@
1
- var C=Object.defineProperty;var f=Object.getOwnPropertySymbols;var I=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var h=(o,t,e)=>t in o?C(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,l=(o,t)=>{for(var e in t||(t={}))I.call(t,e)&&h(o,e,t[e]);if(f)for(var e of f(t))A.call(t,e)&&h(o,e,t[e]);return o};var p=(o,t,e)=>new Promise((i,s)=>{var a=r=>{try{n(e.next(r))}catch(c){s(c)}},m=r=>{try{n(e.throw(r))}catch(c){s(c)}},n=r=>r.done?i(r.value):Promise.resolve(r.value).then(a,m);n((e=e.apply(o,t)).next())});import"./element-plus-DDodNh3B.js";import"./vxe-PYoAHMal.js";import{o as B,I as v,a3 as y,r as E,ax as $,f as g}from"./Editor-DjeJ1qs2-mwL6GTxW.js";import{useRoute as q}from"./vue-router-BO40Wv73.js";import{d as x,ay as k,c as R,o as w,K as S,O as K,u as _}from"./vue-BfodOvnP.js";import{_ as L}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./lodash-es-BL-d_OSa.js";import"./@vueuse-vmN9qs5b.js";import"./@element-plus-icons-vue-CM-7yUXL.js";import"./shared-DeszlFoE.js";import"./dayjs-DO-COJPZ.js";import"./monaco-editor-B5WqzYTl.js";import"./html2canvas-CIV5arX1.js";import"./mockjs-TABvatfE.js";import"./marked-BQZxLJfc.js";const N={class:"loading"},O=x({__name:"Auth",props:{remote:{},access:{}},setup(o){return p(this,null,function*(){let t,e;const i=o,s=B(l(l({alert:y},v),i.access)),a=q(),m=c=>p(null,null,function*(){const d=`${i.remote||E}/api/open/user/${c}`,u=yield $(d).catch(()=>null);return!u||!u.success?(yield y("登录失败"),null):u.data}),n=a.query.token,r=n?([t,e]=k(()=>m(n)),t=yield t,e(),t):null;if(r)try{s.login(r);const c=a.query.redirect;location.href=decodeURIComponent(c||"/")}catch(c){location.reload()}return(c,d)=>(w(),R("div",N,"正在登录中..."))})}}),U=L(O,[["__scopeId","data-v-720ff9d2"]]),Z=x({__name:"auth",setup(o){return p(this,null,function*(){let t,e;const i=new g,s=([t,e]=k(()=>i.getExtension().catch(()=>null)),t=yield t,e(),t),a=s==null?void 0:s.remote,m=s==null?void 0:s.__ACCESS__;return(n,r)=>_(a)?(w(),S(_(U),{key:0,remote:_(a),access:_(m)},null,8,["remote","access"])):K("",!0)})}});export{Z as default};
@@ -1 +0,0 @@
1
- var H=Object.defineProperty;var y=Object.getOwnPropertySymbols;var V=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var x=(a,e,t)=>e in a?H(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,w=(a,e)=>{for(var t in e||(e={}))V.call(e,t)&&x(a,t,e[t]);if(y)for(var t of y(e))W.call(e,t)&&x(a,t,e[t]);return a};var C=(a,e,t)=>new Promise((_,r)=>{var l=n=>{try{i(t.next(n))}catch(p){r(p)}},o=n=>{try{i(t.throw(n))}catch(p){r(p)}},i=n=>n.done?_(n.value):Promise.resolve(n.value).then(l,o);i((t=t.apply(a,e)).next())});import{useRoute as X}from"./vue-router-BO40Wv73.js";import{q as I}from"./@vueuse-vmN9qs5b.js";import"./element-plus-DDodNh3B.js";import"./vxe-PYoAHMal.js";import{f as J,u as N,i as U,o as j,X as E,k as z}from"./Editor-DjeJ1qs2-mwL6GTxW.js";import{E as D,a as P,n as k,l as G}from"./utils-C18BchEa.js";import{d as K,e as L,ay as v,f as M,c as O,o as Q}from"./vue-BfodOvnP.js";import{_ as Y}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./lodash-es-BL-d_OSa.js";import"./@element-plus-icons-vue-CM-7yUXL.js";import"./shared-DeszlFoE.js";import"./dayjs-DO-COJPZ.js";import"./monaco-editor-B5WqzYTl.js";import"./html2canvas-CIV5arX1.js";import"./mockjs-TABvatfE.js";import"./marked-BQZxLJfc.js";const Z=K({__name:"index",setup(a){return C(this,null,function*(){let e,t;const _=X(),r=L(),l=new J(N(k)),o=([e,t]=v(()=>l.getExtension().catch(()=>null)),e=yield e,t(),e||{}),i=U({loading:G,notify:k,useTitle:I,alert:P,access:o==null?void 0:o.access}),n=j(w({alert:P},o==null?void 0:o.__ACCESS__)),p=o?([e,t]=v(()=>new D(o).load()),e=yield e,t(),e):{},{__BASE_PATH__:d="/",history:S="hash",base:h="/",pageRouteName:A="page",remote:B,auth:q,checkVersion:F=!0,enhance:R}=o||{},T=()=>S==="hash",b=s=>s==="/"?"":(s.startsWith("/")&&(s=s.substring(1)),s.endsWith("/")||(s=s+"/"),s);E.set("Switcher",{props:{onClick:s=>{const u=s.platform==="uniapp",c=location.pathname;let m=c===`${d}__vtj__/`?d:c;const f=s.currentFile;if(f&&f.type==="page"&&s.homepage!==f.id){const g=`${b(h)}${u?"pages":A}/${f.id}`;m=T()?`${m}#/${g}`:`${m}${g}`}window.open(m,"VTJProject")}}}),E.set("Previewer",{props:{path:(s,u)=>{const c=location.pathname;return u.platform==="uniapp"?`${c}uni/#/pages/${s.id}`:`${c}#/preview/${s.id}`}}});const $=new z(w({container:r,service:l,materialPath:d,pageBasePath:h==="/"?"":h,adapter:i,access:n,remote:B,auth:q,checkVersion:F,enhance:R},p));return $.ready(()=>{$.openFile(_.query.id)}),M(()=>_.query.id,s=>{$.openFile(s)}),(s,u)=>(Q(),O("div",{class:"designer",ref_key:"container",ref:r},null,512))})}}),$e=Y(Z,[["__scopeId","data-v-73bfd256"]]);export{$e as default};
@@ -1,25 +0,0 @@
1
- var Qr=Object.defineProperty,ti=Object.defineProperties;var ei=Object.getOwnPropertyDescriptors;var ie=Object.getOwnPropertySymbols;var Fn=Object.prototype.hasOwnProperty,Pn=Object.prototype.propertyIsEnumerable;var Mn=(e,t,n)=>t in e?Qr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$=(e,t)=>{for(var n in t||(t={}))Fn.call(t,n)&&Mn(e,n,t[n]);if(ie)for(var n of ie(t))Pn.call(t,n)&&Mn(e,n,t[n]);return e},lt=(e,t)=>ti(e,ei(t));var Me=(e,t)=>{var n={};for(var r in e)Fn.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&ie)for(var r of ie(e))t.indexOf(r)<0&&Pn.call(e,r)&&(n[r]=e[r]);return n};var ft=(e,t,n)=>new Promise((r,i)=>{var o=f=>{try{s(n.next(f))}catch(c){i(c)}},a=f=>{try{s(n.throw(f))}catch(c){i(c)}},s=f=>f.done?r(f.value):Promise.resolve(f.value).then(o,a);s((n=n.apply(e,t)).next())});var B="top",Z="bottom",K="right",W="left",Je="auto",Kt=[B,Z,K,W],Dt="start",Ut="end",ni="clippingParents",or="viewport",Vt="popper",ri="reference",Tn=Kt.reduce(function(e,t){return e.concat([t+"-"+Dt,t+"-"+Ut])},[]),ar=[].concat(Kt,[Je]).reduce(function(e,t){return e.concat([t,t+"-"+Dt,t+"-"+Ut])},[]),ii="beforeRead",oi="read",ai="afterRead",si="beforeMain",fi="main",ci="afterMain",ui="beforeWrite",li="write",di="afterWrite",pi=[ii,oi,ai,si,fi,ci,ui,li,di];function it(e){return e?(e.nodeName||"").toLowerCase():null}function et(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Nt(e){var t=et(e).Element;return e instanceof t||e instanceof Element}function G(e){var t=et(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Qe(e){if(typeof ShadowRoot=="undefined")return!1;var t=et(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function hi(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!G(o)||!it(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function gi(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(f,c){return f[c]="",f},{});!G(i)||!it(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(f){i.removeAttribute(f)}))})}}var sr={name:"applyStyles",enabled:!0,phase:"write",fn:hi,effect:gi,requires:["computeStyles"]};function nt(e){return e.split("-")[0]}var Ot=Math.max,ge=Math.min,kt=Math.round;function jt(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,i=1;if(G(e)&&t){var o=e.offsetHeight,a=e.offsetWidth;a>0&&(r=kt(n.width)/a||1),o>0&&(i=kt(n.height)/o||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function tn(e){var t=jt(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function fr(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Qe(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ut(e){return et(e).getComputedStyle(e)}function mi(e){return["table","td","th"].indexOf(it(e))>=0}function gt(e){return((Nt(e)?e.ownerDocument:e.document)||window.document).documentElement}function be(e){return it(e)==="html"?e:e.assignedSlot||e.parentNode||(Qe(e)?e.host:null)||gt(e)}function qn(e){return!G(e)||ut(e).position==="fixed"?null:e.offsetParent}function vi(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&G(e)){var r=ut(e);if(r.position==="fixed")return null}var i=be(e);for(Qe(i)&&(i=i.host);G(i)&&["html","body"].indexOf(it(i))<0;){var o=ut(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Jt(e){for(var t=et(e),n=qn(e);n&&mi(n)&&ut(n).position==="static";)n=qn(n);return n&&(it(n)==="html"||it(n)==="body"&&ut(n).position==="static")?t:n||vi(e)||t}function en(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function _t(e,t,n){return Ot(e,ge(t,n))}function yi(e,t,n){var r=_t(e,t,n);return r>n?n:r}function cr(){return{top:0,right:0,bottom:0,left:0}}function ur(e){return Object.assign({},cr(),e)}function lr(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var bi=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,ur(typeof e!="number"?e:lr(e,Kt))};function xi(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=nt(n.placement),f=en(s),c=[W,K].indexOf(s)>=0,l=c?"height":"width";if(!(!o||!a)){var h=bi(i.padding,n),m=tn(o),p=f==="y"?B:W,v=f==="y"?Z:K,u=n.rects.reference[l]+n.rects.reference[f]-a[f]-n.rects.popper[l],y=a[f]-n.rects.reference[f],d=Jt(o),w=d?f==="y"?d.clientHeight||0:d.clientWidth||0:0,g=u/2-y/2,b=h[p],x=w-m[l]-h[v],O=w/2-m[l]/2+g,A=_t(b,O,x),E=f;n.modifiersData[r]=(t={},t[E]=A,t.centerOffset=A-O,t)}}function wi(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||!fr(t.elements.popper,i)||(t.elements.arrow=i))}var Oi={name:"arrow",enabled:!0,phase:"main",fn:xi,effect:wi,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ht(e){return e.split("-")[1]}var Ai={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ei(e){var t=e.x,n=e.y,r=window,i=r.devicePixelRatio||1;return{x:kt(t*i)/i||0,y:kt(n*i)/i||0}}function Dn(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,f=e.gpuAcceleration,c=e.adaptive,l=e.roundOffsets,h=e.isFixed,m=a.x,p=m===void 0?0:m,v=a.y,u=v===void 0?0:v,y=typeof l=="function"?l({x:p,y:u}):{x:p,y:u};p=y.x,u=y.y;var d=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),g=W,b=B,x=window;if(c){var O=Jt(n),A="clientHeight",E="clientWidth";if(O===et(n)&&(O=gt(n),ut(O).position!=="static"&&s==="absolute"&&(A="scrollHeight",E="scrollWidth")),O=O,i===B||(i===W||i===K)&&o===Ut){b=Z;var P=h&&O===x&&x.visualViewport?x.visualViewport.height:O[A];u-=P-r.height,u*=f?1:-1}if(i===W||(i===B||i===Z)&&o===Ut){g=K;var T=h&&O===x&&x.visualViewport?x.visualViewport.width:O[E];p-=T-r.width,p*=f?1:-1}}var M=Object.assign({position:s},c&&Ai),F=l===!0?Ei({x:p,y:u}):{x:p,y:u};if(p=F.x,u=F.y,f){var S;return Object.assign({},M,(S={},S[b]=w?"0":"",S[g]=d?"0":"",S.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+u+"px)":"translate3d("+p+"px, "+u+"px, 0)",S))}return Object.assign({},M,(t={},t[b]=w?u+"px":"",t[g]=d?p+"px":"",t.transform="",t))}function Ri(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,f=s===void 0?!0:s,c={placement:nt(t.placement),variation:Ht(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Dn(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Dn(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var dr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ri,data:{}},oe={passive:!0};function Si(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,f=et(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(l){l.addEventListener("scroll",n.update,oe)}),s&&f.addEventListener("resize",n.update,oe),function(){o&&c.forEach(function(l){l.removeEventListener("scroll",n.update,oe)}),s&&f.removeEventListener("resize",n.update,oe)}}var pr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Si,data:{}},Mi={left:"right",right:"left",bottom:"top",top:"bottom"};function ue(e){return e.replace(/left|right|bottom|top/g,function(t){return Mi[t]})}var Fi={start:"end",end:"start"};function Nn(e){return e.replace(/start|end/g,function(t){return Fi[t]})}function nn(e){var t=et(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function rn(e){return jt(gt(e)).left+nn(e).scrollLeft}function Pi(e){var t=et(e),n=gt(e),r=t.visualViewport,i=n.clientWidth,o=n.clientHeight,a=0,s=0;return r&&(i=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:i,height:o,x:a+rn(e),y:s}}function Ti(e){var t,n=gt(e),r=nn(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Ot(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Ot(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+rn(e),f=-r.scrollTop;return ut(i||n).direction==="rtl"&&(s+=Ot(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:f}}function on(e){var t=ut(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function hr(e){return["html","body","#document"].indexOf(it(e))>=0?e.ownerDocument.body:G(e)&&on(e)?e:hr(be(e))}function $t(e,t){var n;t===void 0&&(t=[]);var r=hr(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=et(r),a=i?[o].concat(o.visualViewport||[],on(r)?r:[]):r,s=t.concat(a);return i?s:s.concat($t(be(a)))}function ke(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function qi(e){var t=jt(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function kn(e,t){return t===or?ke(Pi(e)):Nt(t)?qi(t):ke(Ti(gt(e)))}function Di(e){var t=$t(be(e)),n=["absolute","fixed"].indexOf(ut(e).position)>=0,r=n&&G(e)?Jt(e):e;return Nt(r)?t.filter(function(i){return Nt(i)&&fr(i,r)&&it(i)!=="body"}):[]}function Ni(e,t,n){var r=t==="clippingParents"?Di(e):[].concat(t),i=[].concat(r,[n]),o=i[0],a=i.reduce(function(s,f){var c=kn(e,f);return s.top=Ot(c.top,s.top),s.right=ge(c.right,s.right),s.bottom=ge(c.bottom,s.bottom),s.left=Ot(c.left,s.left),s},kn(e,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function gr(e){var t=e.reference,n=e.element,r=e.placement,i=r?nt(r):null,o=r?Ht(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,f;switch(i){case B:f={x:a,y:t.y-n.height};break;case Z:f={x:a,y:t.y+t.height};break;case K:f={x:t.x+t.width,y:s};break;case W:f={x:t.x-n.width,y:s};break;default:f={x:t.x,y:t.y}}var c=i?en(i):null;if(c!=null){var l=c==="y"?"height":"width";switch(o){case Dt:f[c]=f[c]-(t[l]/2-n[l]/2);break;case Ut:f[c]=f[c]+(t[l]/2-n[l]/2);break}}return f}function Xt(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.boundary,a=o===void 0?ni:o,s=n.rootBoundary,f=s===void 0?or:s,c=n.elementContext,l=c===void 0?Vt:c,h=n.altBoundary,m=h===void 0?!1:h,p=n.padding,v=p===void 0?0:p,u=ur(typeof v!="number"?v:lr(v,Kt)),y=l===Vt?ri:Vt,d=e.rects.popper,w=e.elements[m?y:l],g=Ni(Nt(w)?w:w.contextElement||gt(e.elements.popper),a,f),b=jt(e.elements.reference),x=gr({reference:b,element:d,placement:i}),O=ke(Object.assign({},d,x)),A=l===Vt?O:b,E={top:g.top-A.top+u.top,bottom:A.bottom-g.bottom+u.bottom,left:g.left-A.left+u.left,right:A.right-g.right+u.right},P=e.modifiersData.offset;if(l===Vt&&P){var T=P[i];Object.keys(E).forEach(function(M){var F=[K,Z].indexOf(M)>=0?1:-1,S=[B,Z].indexOf(M)>=0?"y":"x";E[M]+=T[S]*F})}return E}function ki(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,f=n.allowedAutoPlacements,c=f===void 0?ar:f,l=Ht(r),h=l?s?Tn:Tn.filter(function(v){return Ht(v)===l}):Kt,m=h.filter(function(v){return c.indexOf(v)>=0});m.length===0&&(m=h);var p=m.reduce(function(v,u){return v[u]=Xt(e,{placement:u,boundary:i,rootBoundary:o,padding:a})[nt(u)],v},{});return Object.keys(p).sort(function(v,u){return p[v]-p[u]})}function ji(e){if(nt(e)===Je)return[];var t=ue(e);return[Nn(e),t,Nn(t)]}function Hi(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,f=n.fallbackPlacements,c=n.padding,l=n.boundary,h=n.rootBoundary,m=n.altBoundary,p=n.flipVariations,v=p===void 0?!0:p,u=n.allowedAutoPlacements,y=t.options.placement,d=nt(y),w=d===y,g=f||(w||!v?[ue(y)]:ji(y)),b=[y].concat(g).reduce(function(mt,st){return mt.concat(nt(st)===Je?ki(t,{placement:st,boundary:l,rootBoundary:h,padding:c,flipVariations:v,allowedAutoPlacements:u}):st)},[]),x=t.rects.reference,O=t.rects.popper,A=new Map,E=!0,P=b[0],T=0;T<b.length;T++){var M=b[T],F=nt(M),S=Ht(M)===Dt,V=[B,Z].indexOf(F)>=0,j=V?"width":"height",D=Xt(t,{placement:M,boundary:l,rootBoundary:h,altBoundary:m,padding:c}),q=V?S?K:W:S?Z:B;x[j]>O[j]&&(q=ue(q));var Y=ue(q),I=[];if(o&&I.push(D[F]<=0),s&&I.push(D[q]<=0,D[Y]<=0),I.every(function(mt){return mt})){P=M,E=!1;break}A.set(M,I)}if(E)for(var _=v?3:1,H=function(mt){var st=b.find(function(ne){var Wt=A.get(ne);if(Wt)return Wt.slice(0,mt).every(function(Ft){return Ft})});if(st)return P=st,"break"},L=_;L>0;L--){var Mt=H(L);if(Mt==="break")break}t.placement!==P&&(t.modifiersData[r]._skip=!0,t.placement=P,t.reset=!0)}}var Li={name:"flip",enabled:!0,phase:"main",fn:Hi,requiresIfExists:["offset"],data:{_skip:!1}};function jn(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Hn(e){return[B,K,Z,W].some(function(t){return e[t]>=0})}function Ci(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Xt(t,{elementContext:"reference"}),s=Xt(t,{altBoundary:!0}),f=jn(a,r),c=jn(s,i,o),l=Hn(f),h=Hn(c);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:l,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":h})}var Bi={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ci};function Wi(e,t,n){var r=nt(e),i=[W,B].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[W,K].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function Vi(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=ar.reduce(function(l,h){return l[h]=Wi(h,t.rects,o),l},{}),s=a[t.placement],f=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}var Ii={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Vi};function _i(e){var t=e.state,n=e.name;t.modifiersData[n]=gr({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var mr={name:"popperOffsets",enabled:!0,phase:"read",fn:_i,data:{}};function $i(e){return e==="x"?"y":"x"}function zi(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,f=n.boundary,c=n.rootBoundary,l=n.altBoundary,h=n.padding,m=n.tether,p=m===void 0?!0:m,v=n.tetherOffset,u=v===void 0?0:v,y=Xt(t,{boundary:f,rootBoundary:c,padding:h,altBoundary:l}),d=nt(t.placement),w=Ht(t.placement),g=!w,b=en(d),x=$i(b),O=t.modifiersData.popperOffsets,A=t.rects.reference,E=t.rects.popper,P=typeof u=="function"?u(Object.assign({},t.rects,{placement:t.placement})):u,T=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,F={x:0,y:0};if(O){if(o){var S,V=b==="y"?B:W,j=b==="y"?Z:K,D=b==="y"?"height":"width",q=O[b],Y=q+y[V],I=q-y[j],_=p?-E[D]/2:0,H=w===Dt?A[D]:E[D],L=w===Dt?-E[D]:-A[D],Mt=t.elements.arrow,mt=p&&Mt?tn(Mt):{width:0,height:0},st=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:cr(),ne=st[V],Wt=st[j],Ft=_t(0,A[D],mt[D]),Ur=g?A[D]/2-_-Ft-ne-T.mainAxis:H-Ft-ne-T.mainAxis,Xr=g?-A[D]/2+_+Ft+Wt+T.mainAxis:L+Ft+Wt+T.mainAxis,Re=t.elements.arrow&&Jt(t.elements.arrow),Yr=Re?b==="y"?Re.clientTop||0:Re.clientLeft||0:0,yn=(S=M==null?void 0:M[b])!=null?S:0,Gr=q+Ur-yn-Yr,Zr=q+Xr-yn,bn=_t(p?ge(Y,Gr):Y,q,p?Ot(I,Zr):I);O[b]=bn,F[b]=bn-q}if(s){var xn,Kr=b==="x"?B:W,Jr=b==="x"?Z:K,vt=O[x],re=x==="y"?"height":"width",wn=vt+y[Kr],On=vt-y[Jr],Se=[B,W].indexOf(d)!==-1,An=(xn=M==null?void 0:M[x])!=null?xn:0,En=Se?wn:vt-A[re]-E[re]-An+T.altAxis,Rn=Se?vt+A[re]+E[re]-An-T.altAxis:On,Sn=p&&Se?yi(En,vt,Rn):_t(p?En:wn,vt,p?Rn:On);O[x]=Sn,F[x]=Sn-vt}t.modifiersData[r]=F}}var Ui={name:"preventOverflow",enabled:!0,phase:"main",fn:zi,requiresIfExists:["offset"]};function Xi(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Yi(e){return e===et(e)||!G(e)?nn(e):Xi(e)}function Gi(e){var t=e.getBoundingClientRect(),n=kt(t.width)/e.offsetWidth||1,r=kt(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Zi(e,t,n){n===void 0&&(n=!1);var r=G(t),i=G(t)&&Gi(t),o=gt(t),a=jt(e,i),s={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(r||!r&&!n)&&((it(t)!=="body"||on(o))&&(s=Yi(t)),G(t)?(f=jt(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):o&&(f.x=rn(o))),{x:a.left+s.scrollLeft-f.x,y:a.top+s.scrollTop-f.y,width:a.width,height:a.height}}function Ki(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var f=t.get(s);f&&i(f)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function Ji(e){var t=Ki(e);return pi.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function Qi(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function to(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Ln={placement:"bottom",modifiers:[],strategy:"absolute"};function Cn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function an(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?Ln:i;return function(a,s,f){f===void 0&&(f=o);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ln,o),modifiersData:{},elements:{reference:a,popper:s},attributes:{},styles:{}},l=[],h=!1,m={state:c,setOptions:function(u){var y=typeof u=="function"?u(c.options):u;v(),c.options=Object.assign({},o,c.options,y),c.scrollParents={reference:Nt(a)?$t(a):a.contextElement?$t(a.contextElement):[],popper:$t(s)};var d=Ji(to([].concat(r,c.options.modifiers)));return c.orderedModifiers=d.filter(function(w){return w.enabled}),p(),m.update()},forceUpdate:function(){if(!h){var u=c.elements,y=u.reference,d=u.popper;if(Cn(y,d)){c.rects={reference:Zi(y,Jt(d),c.options.strategy==="fixed"),popper:tn(d)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(E){return c.modifiersData[E.name]=Object.assign({},E.data)});for(var w=0;w<c.orderedModifiers.length;w++){if(c.reset===!0){c.reset=!1,w=-1;continue}var g=c.orderedModifiers[w],b=g.fn,x=g.options,O=x===void 0?{}:x,A=g.name;typeof b=="function"&&(c=b({state:c,options:O,name:A,instance:m})||c)}}}},update:Qi(function(){return new Promise(function(u){m.forceUpdate(),u(c)})}),destroy:function(){v(),h=!0}};if(!Cn(a,s))return m;m.setOptions(f).then(function(u){!h&&f.onFirstUpdate&&f.onFirstUpdate(u)});function p(){c.orderedModifiers.forEach(function(u){var y=u.name,d=u.options,w=d===void 0?{}:d,g=u.effect;if(typeof g=="function"){var b=g({state:c,name:y,instance:m,options:w}),x=function(){};l.push(b||x)}})}function v(){l.forEach(function(u){return u()}),l=[]}return m}}an();var eo=[pr,mr,dr,sr];an({defaultModifiers:eo});var no=[pr,mr,dr,sr,Ii,Li,Ui,Oi,Bi],ka=an({defaultModifiers:no});function k(e,t){ro(e)&&(e="100%");var n=io(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function ae(e){return Math.min(1,Math.max(0,e))}function ro(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function io(e){return typeof e=="string"&&e.indexOf("%")!==-1}function vr(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function se(e){return e<=1?"".concat(Number(e)*100,"%"):e}function xt(e){return e.length===1?"0"+e:String(e)}function oo(e,t,n){return{r:k(e,255)*255,g:k(t,255)*255,b:k(n,255)*255}}function Bn(e,t,n){e=k(e,255),t=k(t,255),n=k(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=0,s=(r+i)/2;if(r===i)a=0,o=0;else{var f=r-i;switch(a=s>.5?f/(2-r-i):f/(r+i),r){case e:o=(t-n)/f+(t<n?6:0);break;case t:o=(n-e)/f+2;break;case n:o=(e-t)/f+4;break}o/=6}return{h:o,s:a,l:s}}function Fe(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ao(e,t,n){var r,i,o;if(e=k(e,360),t=k(t,100),n=k(n,100),t===0)i=n,o=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=Fe(s,a,e+1/3),i=Fe(s,a,e),o=Fe(s,a,e-1/3)}return{r:r*255,g:i*255,b:o*255}}function Wn(e,t,n){e=k(e,255),t=k(t,255),n=k(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=r,s=r-i,f=r===0?0:s/r;if(r===i)o=0;else{switch(r){case e:o=(t-n)/s+(t<n?6:0);break;case t:o=(n-e)/s+2;break;case n:o=(e-t)/s+4;break}o/=6}return{h:o,s:f,v:a}}function so(e,t,n){e=k(e,360)*6,t=k(t,100),n=k(n,100);var r=Math.floor(e),i=e-r,o=n*(1-t),a=n*(1-i*t),s=n*(1-(1-i)*t),f=r%6,c=[n,a,o,o,s,n][f],l=[s,n,n,a,o,o][f],h=[o,o,s,n,n,a][f];return{r:c*255,g:l*255,b:h*255}}function Vn(e,t,n,r){var i=[xt(Math.round(e).toString(16)),xt(Math.round(t).toString(16)),xt(Math.round(n).toString(16))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function fo(e,t,n,r,i){var o=[xt(Math.round(e).toString(16)),xt(Math.round(t).toString(16)),xt(Math.round(n).toString(16)),xt(co(r))];return i&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function co(e){return Math.round(parseFloat(e)*255).toString(16)}function In(e){return z(e)/255}function z(e){return parseInt(e,16)}function uo(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var je={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function lo(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;return typeof e=="string"&&(e=go(e)),typeof e=="object"&&(ct(e.r)&&ct(e.g)&&ct(e.b)?(t=oo(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ct(e.h)&&ct(e.s)&&ct(e.v)?(r=se(e.s),i=se(e.v),t=so(e.h,r,i),a=!0,s="hsv"):ct(e.h)&&ct(e.s)&&ct(e.l)&&(r=se(e.s),o=se(e.l),t=ao(e.h,r,o),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=vr(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var po="[-\\+]?\\d+%?",ho="[-\\+]?\\d*\\.\\d+%?",pt="(?:".concat(ho,")|(?:").concat(po,")"),Pe="[\\s|\\(]+(".concat(pt,")[,|\\s]+(").concat(pt,")[,|\\s]+(").concat(pt,")\\s*\\)?"),Te="[\\s|\\(]+(".concat(pt,")[,|\\s]+(").concat(pt,")[,|\\s]+(").concat(pt,")[,|\\s]+(").concat(pt,")\\s*\\)?"),J={CSS_UNIT:new RegExp(pt),rgb:new RegExp("rgb"+Pe),rgba:new RegExp("rgba"+Te),hsl:new RegExp("hsl"+Pe),hsla:new RegExp("hsla"+Te),hsv:new RegExp("hsv"+Pe),hsva:new RegExp("hsva"+Te),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function go(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(je[e])e=je[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=J.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=J.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=J.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=J.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=J.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=J.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=J.hex8.exec(e),n?{r:z(n[1]),g:z(n[2]),b:z(n[3]),a:In(n[4]),format:t?"name":"hex8"}:(n=J.hex6.exec(e),n?{r:z(n[1]),g:z(n[2]),b:z(n[3]),format:t?"name":"hex"}:(n=J.hex4.exec(e),n?{r:z(n[1]+n[1]),g:z(n[2]+n[2]),b:z(n[3]+n[3]),a:In(n[4]+n[4]),format:t?"name":"hex8"}:(n=J.hex3.exec(e),n?{r:z(n[1]+n[1]),g:z(n[2]+n[2]),b:z(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function ct(e){return!!J.CSS_UNIT.exec(String(e))}var ja=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=uo(t)),this.originalInput=t;var i=lo(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:i.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,i,o=t.r/255,a=t.g/255,s=t.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=vr(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Wn(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Wn(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Bn(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Bn(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Vn(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),fo(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(k(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(k(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Vn(this.r,this.g,this.b,!1),n=0,r=Object.entries(je);n<r.length;n++){var i=r[n],o=i[0],a=i[1];if(t===a)return o}return!1},e.prototype.toString=function(t){var n=!!t;t=t!=null?t:this.format;var r=!1,i=this.a<1&&this.a>=0,o=!n&&i&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=ae(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=ae(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=ae(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=ae(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),o=n/100,a={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,o=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(new e(r));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:i,v:o})),o=(o+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,i=[this],o=360/t,a=1;a<t;a++)i.push(new e({h:(r+a*o)%360,s:n.s,l:n.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function wt(){return wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wt.apply(this,arguments)}function mo(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Yt(e,t)}function He(e){return He=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},He(e)}function Yt(e,t){return Yt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Yt(e,t)}function vo(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function le(e,t,n){return vo()?le=Reflect.construct.bind():le=function(i,o,a){var s=[null];s.push.apply(s,o);var f=Function.bind.apply(i,s),c=new f;return a&&Yt(c,a.prototype),c},le.apply(null,arguments)}function yo(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Le(e){var t=typeof Map=="function"?new Map:void 0;return Le=function(r){if(r===null||!yo(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return le(r,arguments,He(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Yt(i,r)},Le(e)}var bo=/%[sdj%]/g,xo=function(){};function Ce(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function U(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0,o=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var a=e.replace(bo,function(s){if(s==="%%")return"%";if(i>=o)return s;switch(s){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch(f){return"[Circular]"}break;default:return s}});return a}return e}function wo(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function N(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||wo(t)&&typeof e=="string"&&!e)}function Oo(e,t,n){var r=[],i=0,o=e.length;function a(s){r.push.apply(r,s||[]),i++,i===o&&n(r)}e.forEach(function(s){t(s,a)})}function _n(e,t,n){var r=0,i=e.length;function o(a){if(a&&a.length){n(a);return}var s=r;r=r+1,s<i?t(e[s],o):n([])}o([])}function Ao(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var $n=function(e){mo(t,e);function t(n,r){var i;return i=e.call(this,"Async Validation Error")||this,i.errors=n,i.fields=r,i}return t}(Le(Error));function Eo(e,t,n,r,i){if(t.first){var o=new Promise(function(m,p){var v=function(d){return r(d),d.length?p(new $n(d,Ce(d))):m(i)},u=Ao(e);_n(u,n,v)});return o.catch(function(m){return m}),o}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),f=s.length,c=0,l=[],h=new Promise(function(m,p){var v=function(y){if(l.push.apply(l,y),c++,c===f)return r(l),l.length?p(new $n(l,Ce(l))):m(i)};s.length||(r(l),m(i)),s.forEach(function(u){var y=e[u];a.indexOf(u)!==-1?_n(y,n,v):Oo(y,n,v)})});return h.catch(function(m){return m}),h}function Ro(e){return!!(e&&e.message!==void 0)}function So(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function zn(e,t){return function(n){var r;return e.fullFields?r=So(t,e.fullFields):r=t[n.field||e.fullField],Ro(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function Un(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=wt({},e[n],r):e[n]=r}}return e}var yr=function(t,n,r,i,o,a){t.required&&(!r.hasOwnProperty(t.field)||N(n,a||t.type))&&i.push(U(o.messages.required,t.fullField))},Mo=function(t,n,r,i,o){(/^\s+$/.test(n)||n==="")&&i.push(U(o.messages.whitespace,t.fullField))},fe,Fo=function(){if(fe)return fe;var e="[a-fA-F\\d:]",t=function(b){return b&&b.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=(`
2
- (?:
3
- (?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
4
- (?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
5
- (?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
6
- (?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
7
- (?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
8
- (?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
9
- (?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
10
- (?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
11
- )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
12
- `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp("(?:^"+n+"$)|(?:^"+i+"$)"),a=new RegExp("^"+n+"$"),s=new RegExp("^"+i+"$"),f=function(b){return b&&b.exact?o:new RegExp("(?:"+t(b)+n+t(b)+")|(?:"+t(b)+i+t(b)+")","g")};f.v4=function(g){return g&&g.exact?a:new RegExp(""+t(g)+n+t(g),"g")},f.v6=function(g){return g&&g.exact?s:new RegExp(""+t(g)+i+t(g),"g")};var c="(?:(?:[a-z]+:)?//)",l="(?:\\S+(?::\\S*)?@)?",h=f.v4().source,m=f.v6().source,p="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",u="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",d='(?:[/?#][^\\s"]*)?',w="(?:"+c+"|www\\.)"+l+"(?:localhost|"+h+"|"+m+"|"+p+v+u+")"+y+d;return fe=new RegExp("(?:^"+w+"$)","i"),fe},Xn={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},It={integer:function(t){return It.number(t)&&parseInt(t,10)===t},float:function(t){return It.number(t)&&!It.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(n){return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!It.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Xn.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Fo())},hex:function(t){return typeof t=="string"&&!!t.match(Xn.hex)}},Po=function(t,n,r,i,o){if(t.required&&n===void 0){yr(t,n,r,i,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?It[s](n)||i.push(U(o.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&i.push(U(o.messages.types[s],t.fullField,t.type))},To=function(t,n,r,i,o){var a=typeof t.len=="number",s=typeof t.min=="number",f=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=n,h=null,m=typeof n=="number",p=typeof n=="string",v=Array.isArray(n);if(m?h="number":p?h="string":v&&(h="array"),!h)return!1;v&&(l=n.length),p&&(l=n.replace(c,"_").length),a?l!==t.len&&i.push(U(o.messages[h].len,t.fullField,t.len)):s&&!f&&l<t.min?i.push(U(o.messages[h].min,t.fullField,t.min)):f&&!s&&l>t.max?i.push(U(o.messages[h].max,t.fullField,t.max)):s&&f&&(l<t.min||l>t.max)&&i.push(U(o.messages[h].range,t.fullField,t.min,t.max))},Pt="enum",qo=function(t,n,r,i,o){t[Pt]=Array.isArray(t[Pt])?t[Pt]:[],t[Pt].indexOf(n)===-1&&i.push(U(o.messages[Pt],t.fullField,t[Pt].join(", ")))},Do=function(t,n,r,i,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(U(o.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||i.push(U(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},R={required:yr,whitespace:Mo,type:Po,range:To,enum:qo,pattern:Do},No=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(N(n,"string")&&!t.required)return r();R.required(t,n,i,a,o,"string"),N(n,"string")||(R.type(t,n,i,a,o),R.range(t,n,i,a,o),R.pattern(t,n,i,a,o),t.whitespace===!0&&R.whitespace(t,n,i,a,o))}r(a)},ko=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(N(n)&&!t.required)return r();R.required(t,n,i,a,o),n!==void 0&&R.type(t,n,i,a,o)}r(a)},jo=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),N(n)&&!t.required)return r();R.required(t,n,i,a,o),n!==void 0&&(R.type(t,n,i,a,o),R.range(t,n,i,a,o))}r(a)},Ho=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(N(n)&&!t.required)return r();R.required(t,n,i,a,o),n!==void 0&&R.type(t,n,i,a,o)}r(a)},Lo=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(N(n)&&!t.required)return r();R.required(t,n,i,a,o),N(n)||R.type(t,n,i,a,o)}r(a)},Co=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(N(n)&&!t.required)return r();R.required(t,n,i,a,o),n!==void 0&&(R.type(t,n,i,a,o),R.range(t,n,i,a,o))}r(a)},Bo=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(N(n)&&!t.required)return r();R.required(t,n,i,a,o),n!==void 0&&(R.type(t,n,i,a,o),R.range(t,n,i,a,o))}r(a)},Wo=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();R.required(t,n,i,a,o,"array"),n!=null&&(R.type(t,n,i,a,o),R.range(t,n,i,a,o))}r(a)},Vo=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(N(n)&&!t.required)return r();R.required(t,n,i,a,o),n!==void 0&&R.type(t,n,i,a,o)}r(a)},Io="enum",_o=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(N(n)&&!t.required)return r();R.required(t,n,i,a,o),n!==void 0&&R[Io](t,n,i,a,o)}r(a)},$o=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(N(n,"string")&&!t.required)return r();R.required(t,n,i,a,o),N(n,"string")||R.pattern(t,n,i,a,o)}r(a)},zo=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(N(n,"date")&&!t.required)return r();if(R.required(t,n,i,a,o),!N(n,"date")){var f;n instanceof Date?f=n:f=new Date(n),R.type(t,f,i,a,o),f&&R.range(t,f.getTime(),i,a,o)}}r(a)},Uo=function(t,n,r,i,o){var a=[],s=Array.isArray(n)?"array":typeof n;R.required(t,n,i,a,o,s),r(a)},qe=function(t,n,r,i,o){var a=t.type,s=[],f=t.required||!t.required&&i.hasOwnProperty(t.field);if(f){if(N(n,a)&&!t.required)return r();R.required(t,n,i,s,o,a),N(n,a)||R.type(t,n,i,s,o)}r(s)},Xo=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(N(n)&&!t.required)return r();R.required(t,n,i,a,o)}r(a)},zt={string:No,method:ko,number:jo,boolean:Ho,regexp:Lo,integer:Co,float:Bo,array:Wo,object:Vo,enum:_o,pattern:$o,date:zo,url:qe,hex:qe,email:qe,required:Uo,any:Xo};function Be(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var We=Be(),xe=function(){function e(n){this.rules=null,this._messages=We,this.define(n)}var t=e.prototype;return t.define=function(r){var i=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(o){var a=r[o];i.rules[o]=Array.isArray(a)?a:[a]})},t.messages=function(r){return r&&(this._messages=Un(Be(),r)),this._messages},t.validate=function(r,i,o){var a=this;i===void 0&&(i={}),o===void 0&&(o=function(){});var s=r,f=i,c=o;if(typeof f=="function"&&(c=f,f={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,s),Promise.resolve(s);function l(u){var y=[],d={};function w(b){if(Array.isArray(b)){var x;y=(x=y).concat.apply(x,b)}else y.push(b)}for(var g=0;g<u.length;g++)w(u[g]);y.length?(d=Ce(y),c(y,d)):c(null,s)}if(f.messages){var h=this.messages();h===We&&(h=Be()),Un(h,f.messages),f.messages=h}else f.messages=this.messages();var m={},p=f.keys||Object.keys(this.rules);p.forEach(function(u){var y=a.rules[u],d=s[u];y.forEach(function(w){var g=w;typeof g.transform=="function"&&(s===r&&(s=wt({},s)),d=s[u]=g.transform(d)),typeof g=="function"?g={validator:g}:g=wt({},g),g.validator=a.getValidationMethod(g),g.validator&&(g.field=u,g.fullField=g.fullField||u,g.type=a.getType(g),m[u]=m[u]||[],m[u].push({rule:g,value:d,source:s,field:u}))})});var v={};return Eo(m,f,function(u,y){var d=u.rule,w=(d.type==="object"||d.type==="array")&&(typeof d.fields=="object"||typeof d.defaultField=="object");w=w&&(d.required||!d.required&&u.value),d.field=u.field;function g(O,A){return wt({},A,{fullField:d.fullField+"."+O,fullFields:d.fullFields?[].concat(d.fullFields,[O]):[O]})}function b(O){O===void 0&&(O=[]);var A=Array.isArray(O)?O:[O];!f.suppressWarning&&A.length&&e.warning("async-validator:",A),A.length&&d.message!==void 0&&(A=[].concat(d.message));var E=A.map(zn(d,s));if(f.first&&E.length)return v[d.field]=1,y(E);if(!w)y(E);else{if(d.required&&!u.value)return d.message!==void 0?E=[].concat(d.message).map(zn(d,s)):f.error&&(E=[f.error(d,U(f.messages.required,d.field))]),y(E);var P={};d.defaultField&&Object.keys(u.value).map(function(F){P[F]=d.defaultField}),P=wt({},P,u.rule.fields);var T={};Object.keys(P).forEach(function(F){var S=P[F],V=Array.isArray(S)?S:[S];T[F]=V.map(g.bind(null,F))});var M=new e(T);M.messages(f.messages),u.rule.options&&(u.rule.options.messages=f.messages,u.rule.options.error=f.error),M.validate(u.value,u.rule.options||f,function(F){var S=[];E&&E.length&&S.push.apply(S,E),F&&F.length&&S.push.apply(S,F),y(S.length?S:null)})}}var x;if(d.asyncValidator)x=d.asyncValidator(d,u.value,b,u.source,f);else if(d.validator){try{x=d.validator(d,u.value,b,u.source,f)}catch(O){console.error==null||console.error(O),f.suppressValidatorError||setTimeout(function(){throw O},0),b(O.message)}x===!0?b():x===!1?b(typeof d.message=="function"?d.message(d.fullField||d.field):d.message||(d.fullField||d.field)+" fails"):x instanceof Array?b(x):x instanceof Error&&b(x.message)}x&&x.then&&x.then(function(){return b()},function(O){return b(O)})},function(u){l(u)},s)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!zt.hasOwnProperty(r.type))throw new Error(U("Unknown rule type %s",r.type));return r.type||"string"},t.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var i=Object.keys(r),o=i.indexOf("message");return o!==-1&&i.splice(o,1),i.length===1&&i[0]==="required"?zt.required:zt[this.getType(r)]||void 0},e}();xe.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");zt[t]=n};xe.warning=xo;xe.messages=We;xe.validators=zt;var Yn=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Yo(e,t){return!!(e===t||Yn(e)&&Yn(t))}function Go(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Yo(e[n],t[n]))return!1;return!0}function Ha(e,t){t===void 0&&(t=Go);var n=null;function r(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(n&&n.lastThis===this&&t(i,n.lastArgs))return n.lastResult;var a=e.apply(this,i);return n={lastResult:a,lastArgs:i,lastThis:this},a}return r.clear=function(){n=null},r}var Gn=!1,bt,Ve,Ie,de,pe,br,he,_e,$e,ze,xr,Ue,Xe,wr,Or;function C(){if(!Gn){Gn=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(Ue=/\b(iPhone|iP[ao]d)/.exec(e),Xe=/\b(iP[ao]d)/.exec(e),ze=/Android/i.exec(e),wr=/FBAN\/\w+;/i.exec(e),Or=/Mobile/i.exec(e),xr=!!/Win64/.exec(e),t){bt=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,bt&&document&&document.documentMode&&(bt=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);br=r?parseFloat(r[1])+4:bt,Ve=t[2]?parseFloat(t[2]):NaN,Ie=t[3]?parseFloat(t[3]):NaN,de=t[4]?parseFloat(t[4]):NaN,de?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),pe=t&&t[1]?parseFloat(t[1]):NaN):pe=NaN}else bt=Ve=Ie=pe=de=NaN;if(n){if(n[1]){var i=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);he=i?parseFloat(i[1].replace("_",".")):!0}else he=!1;_e=!!n[2],$e=!!n[3]}else he=_e=$e=!1}}var Ye={ie:function(){return C()||bt},ieCompatibilityMode:function(){return C()||br>bt},ie64:function(){return Ye.ie()&&xr},firefox:function(){return C()||Ve},opera:function(){return C()||Ie},webkit:function(){return C()||de},safari:function(){return Ye.webkit()},chrome:function(){return C()||pe},windows:function(){return C()||_e},osx:function(){return C()||he},linux:function(){return C()||$e},iphone:function(){return C()||Ue},mobile:function(){return C()||Ue||Xe||ze||Or},nativeApp:function(){return C()||wr},android:function(){return C()||ze},ipad:function(){return C()||Xe}},Zo=Ye,Ko=!!(typeof window<"u"&&window.document&&window.document.createElement),Jo={canUseDOM:Ko},Ar=Jo,Er;Ar.canUseDOM&&(Er=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function Qo(e,t){if(!Ar.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var i=document.createElement("div");i.setAttribute(n,"return;"),r=typeof i[n]=="function"}return!r&&Er&&e==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var ta=Qo,Zn=10,Kn=40,Jn=800;function Rr(e){var t=0,n=0,r=0,i=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*Zn,i=n*Zn,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||i)&&e.deltaMode&&(e.deltaMode==1?(r*=Kn,i*=Kn):(r*=Jn,i*=Jn)),r&&!t&&(t=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:i}}Rr.getEventType=function(){return Zo.firefox()?"DOMMouseScroll":ta("wheel")?"wheel":"mousewheel"};var La=Rr;/**
13
- * Checks if an event is supported in the current execution environment.
14
- *
15
- * NOTE: This will not work correctly for non-generic events such as `change`,
16
- * `reset`, `load`, `error`, and `select`.
17
- *
18
- * Borrows from Modernizr.
19
- *
20
- * @param {string} eventNameSuffix Event name, e.g. "click".
21
- * @param {?boolean} capture Check if the capture phase is supported.
22
- * @return {boolean} True if the event is supported.
23
- * @internal
24
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
25
- */const Lt=Math.min,At=Math.max,me=Math.round,ce=Math.floor,rt=e=>({x:e,y:e}),ea={left:"right",right:"left",bottom:"top",top:"bottom"},na={start:"end",end:"start"};function Ge(e,t,n){return At(e,Lt(t,n))}function Qt(e,t){return typeof e=="function"?e(t):e}function Rt(e){return e.split("-")[0]}function te(e){return e.split("-")[1]}function Sr(e){return e==="x"?"y":"x"}function sn(e){return e==="y"?"height":"width"}function Et(e){return["top","bottom"].includes(Rt(e))?"y":"x"}function fn(e){return Sr(Et(e))}function ra(e,t,n){n===void 0&&(n=!1);const r=te(e),i=fn(e),o=sn(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=ve(a)),[a,ve(a)]}function ia(e){const t=ve(e);return[Ze(e),t,Ze(t)]}function Ze(e){return e.replace(/start|end/g,t=>na[t])}function oa(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}function aa(e,t,n,r){const i=te(e);let o=oa(Rt(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(Ze)))),o}function ve(e){return e.replace(/left|right|bottom|top/g,t=>ea[t])}function sa(e){return $({top:0,right:0,bottom:0,left:0},e)}function Mr(e){return typeof e!="number"?sa(e):{top:e,right:e,bottom:e,left:e}}function ye(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Qn(e,t,n){let{reference:r,floating:i}=e;const o=Et(t),a=fn(t),s=sn(a),f=Rt(t),c=o==="y",l=r.x+r.width/2-i.width/2,h=r.y+r.height/2-i.height/2,m=r[s]/2-i[s]/2;let p;switch(f){case"top":p={x:l,y:r.y-i.height};break;case"bottom":p={x:l,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:h};break;case"left":p={x:r.x-i.width,y:h};break;default:p={x:r.x,y:r.y}}switch(te(t)){case"start":p[a]-=m*(n&&c?-1:1);break;case"end":p[a]+=m*(n&&c?-1:1);break}return p}const fa=(e,t,n)=>ft(null,null,function*(){const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),f=yield a.isRTL==null?void 0:a.isRTL(t);let c=yield a.getElementRects({reference:e,floating:t,strategy:i}),{x:l,y:h}=Qn(c,r,f),m=r,p={},v=0;for(let u=0;u<s.length;u++){const{name:y,fn:d}=s[u],{x:w,y:g,data:b,reset:x}=yield d({x:l,y:h,initialPlacement:r,placement:m,strategy:i,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});l=w!=null?w:l,h=g!=null?g:h,p=lt($({},p),{[y]:$($({},p[y]),b)}),x&&v<=50&&(v++,typeof x=="object"&&(x.placement&&(m=x.placement),x.rects&&(c=x.rects===!0?yield a.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:l,y:h}=Qn(c,m,f)),u=-1)}return{x:l,y:h,placement:m,strategy:i,middlewareData:p}});function cn(e,t){return ft(this,null,function*(){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:f}=e,{boundary:c="clippingAncestors",rootBoundary:l="viewport",elementContext:h="floating",altBoundary:m=!1,padding:p=0}=Qt(t,e),v=Mr(p),y=s[m?h==="floating"?"reference":"floating":h],d=ye(yield o.getClippingRect({element:(n=yield o.isElement==null?void 0:o.isElement(y))==null||n?y:y.contextElement||(yield o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:l,strategy:f})),w=h==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,g=yield o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating),b=(yield o.isElement==null?void 0:o.isElement(g))?(yield o.getScale==null?void 0:o.getScale(g))||{x:1,y:1}:{x:1,y:1},x=ye(o.convertOffsetParentRelativeRectToViewportRelativeRect?yield o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:g,strategy:f}):w);return{top:(d.top-x.top+v.top)/b.y,bottom:(x.bottom-d.bottom+v.bottom)/b.y,left:(d.left-x.left+v.left)/b.x,right:(x.right-d.right+v.right)/b.x}})}const ca=e=>({name:"arrow",options:e,fn(n){return ft(this,null,function*(){const{x:r,y:i,placement:o,rects:a,platform:s,elements:f,middlewareData:c}=n,{element:l,padding:h=0}=Qt(e,n)||{};if(l==null)return{};const m=Mr(h),p={x:r,y:i},v=fn(o),u=sn(v),y=yield s.getDimensions(l),d=v==="y",w=d?"top":"left",g=d?"bottom":"right",b=d?"clientHeight":"clientWidth",x=a.reference[u]+a.reference[v]-p[v]-a.floating[u],O=p[v]-a.reference[v],A=yield s.getOffsetParent==null?void 0:s.getOffsetParent(l);let E=A?A[b]:0;(!E||!(yield s.isElement==null?void 0:s.isElement(A)))&&(E=f.floating[b]||a.floating[u]);const P=x/2-O/2,T=E/2-y[u]/2-1,M=Lt(m[w],T),F=Lt(m[g],T),S=M,V=E-y[u]-F,j=E/2-y[u]/2+P,D=Ge(S,j,V),q=!c.arrow&&te(o)!=null&&j!==D&&a.reference[u]/2-(j<S?M:F)-y[u]/2<0,Y=q?j<S?j-S:j-V:0;return{[v]:p[v]+Y,data:$({[v]:D,centerOffset:j-D-Y},q&&{alignmentOffset:Y}),reset:q}})}}),ua=function(e){return e===void 0&&(e={}),{name:"flip",options:e,fn(n){return ft(this,null,function*(){var r,i;const{placement:o,middlewareData:a,rects:s,initialPlacement:f,platform:c,elements:l}=n,D=Qt(e,n),{mainAxis:h=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:u="none",flipAlignment:y=!0}=D,d=Me(D,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const w=Rt(o),g=Et(f),b=Rt(f)===f,x=yield c.isRTL==null?void 0:c.isRTL(l.floating),O=p||(b||!y?[ve(f)]:ia(f)),A=u!=="none";!p&&A&&O.push(...aa(f,y,u,x));const E=[f,...O],P=yield cn(n,d),T=[];let M=((i=a.flip)==null?void 0:i.overflows)||[];if(h&&T.push(P[w]),m){const q=ra(o,s,x);T.push(P[q[0]],P[q[1]])}if(M=[...M,{placement:o,overflows:T}],!T.every(q=>q<=0)){var F,S;const q=(((F=a.flip)==null?void 0:F.index)||0)+1,Y=E[q];if(Y){var V;const _=m==="alignment"?g!==Et(Y):!1,H=((V=M[0])==null?void 0:V.overflows[0])>0;if(!_||H)return{data:{index:q,overflows:M},reset:{placement:Y}}}let I=(S=M.filter(_=>_.overflows[0]<=0).sort((_,H)=>_.overflows[1]-H.overflows[1])[0])==null?void 0:S.placement;if(!I)switch(v){case"bestFit":{var j;const _=(j=M.filter(H=>{if(A){const L=Et(H.placement);return L===g||L==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(L=>L>0).reduce((L,Mt)=>L+Mt,0)]).sort((H,L)=>H[1]-L[1])[0])==null?void 0:j[0];_&&(I=_);break}case"initialPlacement":I=f;break}if(o!==I)return{reset:{placement:I}}}return{}})}}};function la(e,t){return ft(this,null,function*(){const{placement:n,platform:r,elements:i}=e,o=yield r.isRTL==null?void 0:r.isRTL(i.floating),a=Rt(n),s=te(n),f=Et(n)==="y",c=["left","top"].includes(a)?-1:1,l=o&&f?-1:1,h=Qt(t,e);let{mainAxis:m,crossAxis:p,alignmentAxis:v}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return s&&typeof v=="number"&&(p=s==="end"?v*-1:v),f?{x:p*l,y:m*c}:{x:m*c,y:p*l}})}const da=function(e){return e===void 0&&(e=0),{name:"offset",options:e,fn(n){return ft(this,null,function*(){var r,i;const{x:o,y:a,placement:s,middlewareData:f}=n,c=yield la(n,e);return s===((r=f.offset)==null?void 0:r.placement)&&(i=f.arrow)!=null&&i.alignmentOffset?{}:{x:o+c.x,y:a+c.y,data:lt($({},c),{placement:s})}})}}},pa=function(e){return e===void 0&&(e={}),{name:"shift",options:e,fn(n){return ft(this,null,function*(){const{x:r,y:i,placement:o}=n,d=Qt(e,n),{mainAxis:a=!0,crossAxis:s=!1,limiter:f={fn:w=>{let{x:g,y:b}=w;return{x:g,y:b}}}}=d,c=Me(d,["mainAxis","crossAxis","limiter"]),l={x:r,y:i},h=yield cn(n,c),m=Et(Rt(o)),p=Sr(m);let v=l[p],u=l[m];if(a){const w=p==="y"?"top":"left",g=p==="y"?"bottom":"right",b=v+h[w],x=v-h[g];v=Ge(b,v,x)}if(s){const w=m==="y"?"top":"left",g=m==="y"?"bottom":"right",b=u+h[w],x=u-h[g];u=Ge(b,u,x)}const y=f.fn(lt($({},n),{[p]:v,[m]:u}));return lt($({},y),{data:{x:y.x-r,y:y.y-i,enabled:{[p]:a,[m]:s}}})})}}};function we(){return typeof window!="undefined"}function Bt(e){return Fr(e)?(e.nodeName||"").toLowerCase():"#document"}function X(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function at(e){var t;return(t=(Fr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Fr(e){return we()?e instanceof Node||e instanceof X(e).Node:!1}function Q(e){return we()?e instanceof Element||e instanceof X(e).Element:!1}function ot(e){return we()?e instanceof HTMLElement||e instanceof X(e).HTMLElement:!1}function tr(e){return!we()||typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof X(e).ShadowRoot}function ee(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=tt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function ha(e){return["table","td","th"].includes(Bt(e))}function Oe(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(n){return!1}})}function un(e){const t=ln(),n=Q(e)?tt(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function ga(e){let t=ht(e);for(;ot(t)&&!Ct(t);){if(un(t))return t;if(Oe(t))return null;t=ht(t)}return null}function ln(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ct(e){return["html","body","#document"].includes(Bt(e))}function tt(e){return X(e).getComputedStyle(e)}function Ae(e){return Q(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ht(e){if(Bt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||tr(e)&&e.host||at(e);return tr(t)?t.host:t}function Pr(e){const t=ht(e);return Ct(t)?e.ownerDocument?e.ownerDocument.body:e.body:ot(t)&&ee(t)?t:Pr(t)}function Gt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Pr(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=X(i);if(o){const s=Ke(a);return t.concat(a,a.visualViewport||[],ee(i)?i:[],s&&n?Gt(s):[])}return t.concat(i,Gt(i,[],n))}function Ke(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Tr(e){const t=tt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=ot(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=me(n)!==o||me(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function dn(e){return Q(e)?e:e.contextElement}function Tt(e){const t=dn(e);if(!ot(t))return rt(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Tr(t);let a=(o?me(n.width):n.width)/r,s=(o?me(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const ma=rt(0);function qr(e){const t=X(e);return!ln()||!t.visualViewport?ma:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function va(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==X(e)?!1:t}function St(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=dn(e);let a=rt(1);t&&(r?Q(r)&&(a=Tt(r)):a=Tt(e));const s=va(o,n,r)?qr(o):rt(0);let f=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,l=i.width/a.x,h=i.height/a.y;if(o){const m=X(o),p=r&&Q(r)?X(r):r;let v=m,u=Ke(v);for(;u&&r&&p!==v;){const y=Tt(u),d=u.getBoundingClientRect(),w=tt(u),g=d.left+(u.clientLeft+parseFloat(w.paddingLeft))*y.x,b=d.top+(u.clientTop+parseFloat(w.paddingTop))*y.y;f*=y.x,c*=y.y,l*=y.x,h*=y.y,f+=g,c+=b,v=X(u),u=Ke(v)}}return ye({width:l,height:h,x:f,y:c})}function pn(e,t){const n=Ae(e).scrollLeft;return t?t.left+n:St(at(e)).left+n}function Dr(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:pn(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function ya(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=at(r),s=t?Oe(t.floating):!1;if(r===a||s&&o)return n;let f={scrollLeft:0,scrollTop:0},c=rt(1);const l=rt(0),h=ot(r);if((h||!h&&!o)&&((Bt(r)!=="body"||ee(a))&&(f=Ae(r)),ot(r))){const p=St(r);c=Tt(r),l.x=p.x+r.clientLeft,l.y=p.y+r.clientTop}const m=a&&!h&&!o?Dr(a,f,!0):rt(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-f.scrollLeft*c.x+l.x+m.x,y:n.y*c.y-f.scrollTop*c.y+l.y+m.y}}function ba(e){return Array.from(e.getClientRects())}function xa(e){const t=at(e),n=Ae(e),r=e.ownerDocument.body,i=At(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=At(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+pn(e);const s=-n.scrollTop;return tt(r).direction==="rtl"&&(a+=At(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}function wa(e,t){const n=X(e),r=at(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,f=0;if(i){o=i.width,a=i.height;const c=ln();(!c||c&&t==="fixed")&&(s=i.offsetLeft,f=i.offsetTop)}return{width:o,height:a,x:s,y:f}}function Oa(e,t){const n=St(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=ot(e)?Tt(e):rt(1),a=e.clientWidth*o.x,s=e.clientHeight*o.y,f=i*o.x,c=r*o.y;return{width:a,height:s,x:f,y:c}}function er(e,t,n){let r;if(t==="viewport")r=wa(e,n);else if(t==="document")r=xa(at(e));else if(Q(t))r=Oa(t,n);else{const i=qr(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return ye(r)}function Nr(e,t){const n=ht(e);return n===t||!Q(n)||Ct(n)?!1:tt(n).position==="fixed"||Nr(n,t)}function Aa(e,t){const n=t.get(e);if(n)return n;let r=Gt(e,[],!1).filter(s=>Q(s)&&Bt(s)!=="body"),i=null;const o=tt(e).position==="fixed";let a=o?ht(e):e;for(;Q(a)&&!Ct(a);){const s=tt(a),f=un(a);!f&&s.position==="fixed"&&(i=null),(o?!f&&!i:!f&&s.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||ee(a)&&!f&&Nr(e,a))?r=r.filter(l=>l!==a):i=s,a=ht(a)}return t.set(e,r),r}function Ea(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?Oe(t)?[]:Aa(t,this._c):[].concat(n),r],s=a[0],f=a.reduce((c,l)=>{const h=er(t,l,i);return c.top=At(h.top,c.top),c.right=Lt(h.right,c.right),c.bottom=Lt(h.bottom,c.bottom),c.left=At(h.left,c.left),c},er(t,s,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function Ra(e){const{width:t,height:n}=Tr(e);return{width:t,height:n}}function Sa(e,t,n){const r=ot(t),i=at(t),o=n==="fixed",a=St(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const f=rt(0);function c(){f.x=pn(i)}if(r||!r&&!o)if((Bt(t)!=="body"||ee(i))&&(s=Ae(t)),r){const p=St(t,!0,o,t);f.x=p.x+t.clientLeft,f.y=p.y+t.clientTop}else i&&c();o&&!r&&i&&c();const l=i&&!r&&!o?Dr(i,s):rt(0),h=a.left+s.scrollLeft-f.x-l.x,m=a.top+s.scrollTop-f.y-l.y;return{x:h,y:m,width:a.width,height:a.height}}function De(e){return tt(e).position==="static"}function nr(e,t){if(!ot(e)||tt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return at(e)===n&&(n=n.ownerDocument.body),n}function kr(e,t){const n=X(e);if(Oe(e))return n;if(!ot(e)){let i=ht(e);for(;i&&!Ct(i);){if(Q(i)&&!De(i))return i;i=ht(i)}return n}let r=nr(e,t);for(;r&&ha(r)&&De(r);)r=nr(r,t);return r&&Ct(r)&&De(r)&&!un(r)?n:r||ga(e)||n}const Ma=function(e){return ft(this,null,function*(){const t=this.getOffsetParent||kr,n=this.getDimensions,r=yield n(e.floating);return{reference:Sa(e.reference,yield t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}})};function Fa(e){return tt(e).direction==="rtl"}const Pa={convertOffsetParentRelativeRectToViewportRelativeRect:ya,getDocumentElement:at,getClippingRect:Ea,getOffsetParent:kr,getElementRects:Ma,getClientRects:ba,getDimensions:Ra,getScale:Tt,isElement:Q,isRTL:Fa};function jr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ta(e,t){let n=null,r;const i=at(e);function o(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,f){s===void 0&&(s=!1),f===void 0&&(f=1),o();const c=e.getBoundingClientRect(),{left:l,top:h,width:m,height:p}=c;if(s||t(),!m||!p)return;const v=ce(h),u=ce(i.clientWidth-(l+m)),y=ce(i.clientHeight-(h+p)),d=ce(l),g={rootMargin:-v+"px "+-u+"px "+-y+"px "+-d+"px",threshold:At(0,Lt(1,f))||1};let b=!0;function x(O){const A=O[0].intersectionRatio;if(A!==f){if(!b)return a();A?a(!1,A):r=setTimeout(()=>{a(!1,1e-7)},1e3)}A===1&&!jr(c,e.getBoundingClientRect())&&a(),b=!1}try{n=new IntersectionObserver(x,lt($({},g),{root:i.ownerDocument}))}catch(O){n=new IntersectionObserver(x,g)}n.observe(e)}return a(!0),o}function Ca(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,c=dn(e),l=i||o?[...c?Gt(c):[],...Gt(t)]:[];l.forEach(d=>{i&&d.addEventListener("scroll",n,{passive:!0}),o&&d.addEventListener("resize",n)});const h=c&&s?Ta(c,n):null;let m=-1,p=null;a&&(p=new ResizeObserver(d=>{let[w]=d;w&&w.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var g;(g=p)==null||g.observe(t)})),n()}),c&&!f&&p.observe(c),p.observe(t));let v,u=f?St(e):null;f&&y();function y(){const d=St(e);u&&!jr(u,d)&&n(),u=d,v=requestAnimationFrame(y)}return n(),()=>{var d;l.forEach(w=>{i&&w.removeEventListener("scroll",n),o&&w.removeEventListener("resize",n)}),h==null||h(),(d=p)==null||d.disconnect(),p=null,f&&cancelAnimationFrame(v)}}const Ba=cn,Wa=da,Va=pa,Ia=ua,_a=ca,$a=(e,t,n)=>{const r=new Map,i=$({platform:Pa},n),o=lt($({},i.platform),{_c:r});return fa(e,t,lt($({},i),{platform:o}))};var qt=null,Ne=null,dt=null,rr="z-index-manage",yt=null,ir="z-index-style",Hr="m",Lr="s",Zt={m:1e3,s:1e3};function hn(){return qt||typeof document!="undefined"&&(qt=document),qt}function Cr(){return qt&&!Ne&&(Ne=qt.body||qt.getElementsByTagName("body")[0]),Ne}function qa(){var e=0,t=hn();if(t){var n=Cr();if(n)for(var r=n.getElementsByTagName("*"),i=0;i<r.length;i++){var o=r[i];if(o&&o.style&&o.nodeType===1){var a=o.style.zIndex;a&&/^\d+$/.test(a)&&(e=Math.max(e,Number(a)))}}}return e}function Da(){if(!yt){var e=hn();e&&(yt=e.getElementById(ir),yt||(yt=e.createElement("style"),yt.id=ir,e.getElementsByTagName("head")[0].appendChild(yt)))}return yt}function Br(){var e=Da();if(e){var t="--dom-",n="-z-index";e.innerHTML=":root{"+t+"main"+n+":"+Ee()+";"+t+"sub"+n+":"+vn()+"}"}}function Wr(){if(!dt){var e=hn();if(e&&(dt=e.getElementById(rr),!dt)){var t=Cr();t&&(dt=e.createElement("div"),dt.id=rr,dt.style.display="none",t.appendChild(dt),gn(Zt.m),mn(Zt.s))}}return dt}function Vr(e){return function(t){if(t){t=Number(t),Zt[e]=t;var n=Wr();n&&(n.dataset?n.dataset[e]=t+"":n.setAttribute("data-"+e,t+""))}return Br(),Zt[e]}}var gn=Vr(Hr);function Ir(e,t){return function(r){var i,o=Wr();if(o){var a=o.dataset?o.dataset[e]:o.getAttribute("data-"+e);a&&(i=Number(a))}return i||(i=Zt[e]),r?Number(r)<i?t():r:i}}var Ee=Ir(Hr,_r);function _r(){return gn(Ee()+1)}var mn=Vr(Lr),$r=Ir(Lr,zr);function vn(){return Ee()+$r()}function zr(){return mn($r()+1),vn()}var za={setCurrent:gn,getCurrent:Ee,getNext:_r,setSubCurrent:mn,getSubCurrent:vn,getSubNext:zr,getMax:qa};Br();export{za as D,ar as E,xe as S,ja as T,La as Y,_a as a,Ca as b,$a as c,Ba as d,Ia as f,Ha as m,Wa as o,Va as s,ka as y};
@@ -1 +0,0 @@
1
- var u=Object.defineProperty;var S=Object.getOwnPropertySymbols;var d=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;var g=(t,a,s)=>a in t?u(t,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[a]=s,l=(t,a)=>{for(var s in a||(a={}))d.call(a,s)&&g(t,s,a[s]);if(S)for(var s of S(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 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{az as I}from"./vue-BfodOvnP.js";import{I as A,C as V,T as O,a as b,K as m,x as R,b as P,E as M,j as h,k as y,N as L,d as x,H as B,e as D,g as w,S as k,h as N,D as j,m as v,w as H,p as K,q as W,r as C,s as U,R as Y,G,t as $,v as F,y as z,z as J,M as X,B as Z,V as q,F as Q,J as aa,L as sa,O as ea,P as ta,Q as ra,U as ia,W as na,Y as oa,$ as _a,Z as Ea,a0 as la,a1 as ca,a2 as ga,a3 as Sa,a4 as pa,a5 as Ta,a6 as ua,a7 as da,a8 as fa,a9 as Ia,aa as Aa,ab as Va,ac as Oa,ad as ba,ae as ma,af as Ra,ag as Pa,ah as Ma,ai as ha,aj as ya,ak as La,al as xa,am as Ba,X as Da,an as wa,ao as ka,ap as Na,aq as ja,ar as va,as as Ha,at as Ka,au as Wa,av as Ca,aw as Ua}from"./Editor-DjeJ1qs2-mwL6GTxW.js";import{E as Ya,a as Ga,b as $a,c as Fa}from"./element-plus-DDodNh3B.js";const za=Object.freeze(Object.defineProperty({__proto__:null,ACCESS:A,API_METHOD_TYPES:V,Assets:O,Binder:b,Box:m,Designer:R,DevTools:P,EVENT_MODIFIERS:M,Editor:h,Engine:y,EventBinder:L,Icon:x,Item:B,KEYBOARD_EVENT_LIST:D,MOBILE_SIZE:w,MOUSE_EVENT_LIST:k,MicroApp:N,NAME_REGEX:j,NPM_REGISTRY_URL:v,OpenApi:H,PAD_SIZE:K,Panel:W,REMOTE:C,REPORT_API:U,RegionType:Y,RegionWrapper:G,Renderer:$,SAVE_BLOCK_FILE_FINISH:F,SESSION_ID_KEY:z,STATE_KEY:J,SetterView:X,SetterWrapper:Z,Simulator:q,Skeleton:Q,SkeletonWrapper:aa,SlotsPicker:sa,Tabs:ea,VERSION_REGEX:ta,VTJ_DESIGNER_VERSION:ra,VUE_DEVTOOLS_FRAME_STATE_KEY:ia,VUE_DEVTOOLS_OVERLAY_PATH:na,VUE_DEVTOOLS_PATH:oa,VariableBinder:_a,Viewer:Ea,Viewport:la,WidgetGroup:ca,WidgetWrapper:ga,alert:Sa,builtInDeps:pa,builtInMaterials:Ta,builtInSetters:ua,builtInWidgets:da,confirm:fa,createSlotsPicker:Ia,defaultSetter:Aa,depsManager:Va,engineKey:Oa,expressionValidate:ba,getClassProperties:ma,message:Ra,normalizedStyle:Pa,notify:Ma,proxyContext:ha,regions:ya,setterManager:La,setters:xa,useEngine:Ba,widgetManager:Da,widgets:wa},Symbol.toStringTag,{value:"Module"}));class Qa{constructor(a){E(this,"urls",[]);E(this,"library","");E(this,"params",[]);E(this,"__BASE_PATH__","/");this.config=a;const s=l(l(l({},Ha),za),va),o={Vue:I,__VTJ_PRO__:s,VtjUtils:ja,VtjIcons:Na,VtjUI:ka,ElementPlus:Ya};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=>Ka(e)).map(e=>`${s}${e}`),i=this.urls.filter(e=>Wa(e)).map(e=>`${s}${e}`);if(Ca(o),i.length){const e=yield Ua(i,this.library).catch(()=>null);e&&typeof e=="function"?a=e.call(e,this.config,...this.params):a=e||{}}}return a})}}function as(){return Fa.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"})}function ss(t,a="",s="warning"){$a({title:a,message:t,type:s})}function es(t,a){return Ga.alert(t,a)}export{Qa as E,es as a,as as l,ss as n};