@vtj/pro 0.12.25 → 0.12.27

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 (26) 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-BLSuL67n-CjuW5946.js → Editor-CmLghefF-C7OTQRTa.js} +60 -60
  14. package/dist/assets/{auth-B04JXOPd.js → auth-dmyonXWY.js} +1 -1
  15. package/dist/assets/{index-4bryrK_V.js → index-BHrj7z2S.js} +1 -1
  16. package/dist/assets/{index-Cy_7DGHI.js → index-DfrBZv_R.js} +2 -2
  17. package/dist/assets/marked-BQZxLJfc.js +56 -0
  18. package/dist/assets/{page-CpZzlwz2.js → page-Dd61Dg7k.js} +1 -1
  19. package/dist/assets/{preview-jQBQU8UH.js → preview-CHnkNlg7.js} +1 -1
  20. package/dist/assets/{utils--KlF9XCI.js → utils-dg2JknUB.js} +1 -1
  21. package/dist/index.html +3 -3
  22. package/dist/uni/assets/{index-CcwBVtYf.js → index-De3VVH3V.js} +8 -8
  23. package/dist/uni/index.html +1 -1
  24. package/package.json +12 -12
  25. package/dist/assets/marked-DGBZG3x-.js +0 -56
  26. /package/dist/assets/{Editor-BLSuL67n-Bbg7yBKP.css → Editor-CmLghefF-Bbg7yBKP.css} +0 -0
@@ -51,26 +51,26 @@ 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.25
54
+ * @version 0.12.27
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 Md=Object.defineProperty,kd=(e,t,r)=>t in e?Md(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ct=(e,t,r)=>kd(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 Mt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ws=e=>!ge(e)&&e!==Mt;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)=>(Mt.addEventListener("message",({source:i,data:o})=>{i===Mt&&o===r&&n.length&&n.shift()()},!1),i=>{n.push(i),Mt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",at(Mt.postMessage)),xm=typeof queueMicrotask<"u"?queueMicrotask.bind(Mt):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:Mt,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 Mr(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(Mr)}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 Mr(h)?!0:(t.append(xi(m,d,o),l(h)),!1)}const c=[],f=Object.assign(Rm,{defaultVisitor:u,convertValue:l,isVisitable:Mr});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",kr=typeof navigator=="object"&&navigator||void 0,Cm=ln&&(!kr||["ReactNative","NativeScript","NS"].indexOf(kr.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:kr,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 Mm(e){return A.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function km(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]=km(i[s])),!a)}if(A.isFormData(e)&&A.isFunction(e.entries)){const r={};return A.forEachEntry(e,(n,i)=>{t(Mm(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(`
58
58
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(i=>n.set(i)),n}static accessor(t){const r=(this[Ri]=this[Ri]={accessors:{}}).accessors,n=this.prototype;function i(o){const s=le(o);r[s]||(Wm(n,o),r[s]=!0)}return A.isArray(t)?t.forEach(i):i(t),this}};st.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);A.reduceDescriptors(st.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});A.freezeMethods(st);function yr(e,t){const r=this||_e,n=t||r,i=st.from(n.headers);let o=n.data;return A.forEach(e,function(s){o=s.call(r,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function js(e){return!!(e&&e.__CANCEL__)}function se(e,t,r){W.call(this,e!=null?e:"canceled",W.ERR_CANCELED,t,r),this.name="CanceledError"}A.inherits(se,W,{__CANCEL__:!0});function Ds(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new W("Request failed with status code "+r.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Km(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Jm(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(a){const l=Date.now(),u=n[o];s||(s=l),r[i]=a,n[i]=l;let c=o,f=0;for(;c!==i;)f+=r[c++],c=c%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),l-s<t)return;const p=u&&l-u;return p?Math.round(f*1e3/p):void 0}}function Ym(e,t){let r=0,n=1e3/t,i,o;const s=(a,l=Date.now())=>{r=l,i=null,o&&(clearTimeout(o),o=null),e.apply(null,a)};return[(...a)=>{const l=Date.now(),u=l-r;u>=n?s(a,l):(i=a,o||(o=setTimeout(()=>{o=null,s(i)},n-u)))},()=>i&&s(i)]}const Ve=(e,t,r=3)=>{let n=0;const i=Jm(50,250);return Ym(o=>{const s=o.loaded,a=o.lengthComputable?o.total:void 0,l=s-n,u=i(l),c=s<=a;n=s;const f={loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:u||void 0,estimated:u&&a&&c?(a-s)/u:void 0,event:o,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(f)},r)},Oi=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},$i=e=>(...t)=>A.asap(()=>e(...t)),Gm=rt.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,rt.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(rt.origin),rt.navigator&&/(msie|trident)/i.test(rt.navigator.userAgent)):()=>!0,Zm=rt.hasStandardBrowserEnv?{write(e,t,r,n,i,o){const s=[e+"="+encodeURIComponent(t)];A.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),A.isString(n)&&s.push("path="+n),A.isString(i)&&s.push("domain="+i),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Xm(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Qm(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Bs(e,t,r){let n=!Xm(t);return e&&(n||r==!1)?Qm(e,t):t}const ji=e=>e instanceof st?V({},e):e;function Lt(e,t){t=t||{};const r={};function n(u,c,f,p){return A.isPlainObject(u)&&A.isPlainObject(c)?A.merge.call({caseless:p},u,c):A.isPlainObject(c)?A.merge({},c):A.isArray(c)?c.slice():c}function i(u,c,f,p){if(A.isUndefined(c)){if(!A.isUndefined(u))return n(void 0,u,f,p)}else return n(u,c,f,p)}function o(u,c){if(!A.isUndefined(c))return n(void 0,c)}function s(u,c){if(A.isUndefined(c)){if(!A.isUndefined(u))return n(void 0,u)}else return n(void 0,c)}function a(u,c,f){if(f in t)return n(u,c);if(f in e)return n(void 0,u)}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,c,f)=>i(ji(u),ji(c),f,!0)};return A.forEach(Object.keys(Object.assign({},e,t)),function(u){const c=l[u]||i,f=c(e[u],t[u],u);A.isUndefined(f)&&c!==a||(r[u]=f)}),r}const Cs=e=>{const t=Lt({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:o,headers:s,auth:a}=t;t.headers=s=st.from(s),t.url=Rs(Bs(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(A.isFormData(r)){if(rt.hasStandardBrowserEnv||rt.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((l=s.getContentType())!==!1){const[u,...c]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];s.setContentType([u||"multipart/form-data",...c].join("; "))}}if(rt.hasStandardBrowserEnv&&(n&&A.isFunction(n)&&(n=n(t)),n||n!==!1&&Gm(t.url))){const u=i&&o&&Zm.read(o);u&&s.set(i,u)}return t},tg=typeof XMLHttpRequest<"u",eg=tg&&function(e){return new Promise(function(t,r){const n=Cs(e);let i=n.data;const o=st.from(n.headers).normalize();let{responseType:s,onUploadProgress:a,onDownloadProgress:l}=n,u,c,f,p,h;function d(){p&&p(),h&&h(),n.cancelToken&&n.cancelToken.unsubscribe(u),n.signal&&n.signal.removeEventListener("abort",u)}let m=new XMLHttpRequest;m.open(n.method.toUpperCase(),n.url,!0),m.timeout=n.timeout;function b(){if(!m)return;const y=st.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),v={data:!s||s==="text"||s==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:y,config:e,request:m};Ds(function(w){t(w),d()},function(w){r(w),d()},v),m=null}"onloadend"in m?m.onloadend=b:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(b)},m.onabort=function(){m&&(r(new W("Request aborted",W.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new W("Network Error",W.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let y=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const v=n.transitional||Os;n.timeoutErrorMessage&&(y=n.timeoutErrorMessage),r(new W(y,v.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,e,m)),m=null},i===void 0&&o.setContentType(null),"setRequestHeader"in m&&A.forEach(o.toJSON(),function(y,v){m.setRequestHeader(v,y)}),A.isUndefined(n.withCredentials)||(m.withCredentials=!!n.withCredentials),s&&s!=="json"&&(m.responseType=n.responseType),l&&([f,h]=Ve(l,!0),m.addEventListener("progress",f)),a&&m.upload&&([c,p]=Ve(a),m.upload.addEventListener("progress",c),m.upload.addEventListener("loadend",p)),(n.cancelToken||n.signal)&&(u=y=>{m&&(r(!y||y.type?new se(null,e,m):y),m.abort(),m=null)},n.cancelToken&&n.cancelToken.subscribe(u),n.signal&&(n.signal.aborted?u():n.signal.addEventListener("abort",u)));const E=Km(n.url);if(E&&rt.protocols.indexOf(E)===-1){r(new W("Unsupported protocol "+E+":",W.ERR_BAD_REQUEST,e));return}m.send(i||null)})},rg=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,i;const o=function(u){if(!i){i=!0,a();const c=u instanceof Error?u:this.reason;n.abort(c instanceof W?c:new se(c instanceof Error?c.message:c))}};let s=t&&setTimeout(()=>{s=null,o(new W(`timeout ${t} of ms exceeded`,W.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:l}=n;return l.unsubscribe=()=>A.asap(a),l}},ng=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,i;for(;n<r;)i=n+t,yield e.slice(n,i),n=i},ig=function(e,t){return sr(this,null,function*(){try{for(var r=mn(og(e)),n,i,o;n=!(i=yield new Ct(r.next())).done;n=!1){const s=i.value;yield*ar(ng(s,t))}}catch(i){o=[i]}finally{try{n&&(i=r.return)&&(yield new Ct(i.call(r)))}finally{if(o)throw o[0]}}})},og=function(e){return sr(this,null,function*(){if(e[Symbol.asyncIterator]){yield*ar(e);return}const t=e.getReader();try{for(;;){const{done:r,value:n}=yield new Ct(t.read());if(r)break;yield n}}finally{yield new Ct(t.cancel())}})},Di=(e,t,r,n)=>{const i=ig(e,t);let o=0,s,a=u=>{s||(s=!0,n&&n(u))};return new ReadableStream({pull(u){return M(this,null,function*(){try{const{done:c,value:f}=yield i.next();if(c){a(),u.close();return}let p=f.byteLength;if(r){let h=o+=p;r(h)}u.enqueue(new Uint8Array(f))}catch(c){throw a(c),c}})},cancel(u){return a(u),i.return()}},{highWaterMark:2})},tr=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ns=tr&&typeof ReadableStream=="function",sg=tr&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):e=>M(null,null,function*(){return new Uint8Array(yield new Response(e).arrayBuffer())})),Is=(e,...t)=>{try{return!!e(...t)}catch(r){return!1}},ag=Ns&&Is(()=>{let e=!1;const t=new Request(rt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Bi=64*1024,Ur=Ns&&Is(()=>A.isReadableStream(new Response("").body)),He={stream:Ur&&(e=>e.body)};tr&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!He[t]&&(He[t]=A.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new W(`Response type '${t}' is not supported`,W.ERR_NOT_SUPPORT,n)})})})(new Response);const ug=e=>M(null,null,function*(){if(e==null)return 0;if(A.isBlob(e))return e.size;if(A.isSpecCompliantForm(e))return(yield new Request(rt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(A.isArrayBufferView(e)||A.isArrayBuffer(e))return e.byteLength;if(A.isURLSearchParams(e)&&(e=e+""),A.isString(e))return(yield sg(e)).byteLength}),cg=(e,t)=>M(null,null,function*(){const r=A.toFiniteNumber(e.getContentLength());return r!=null?r:ug(t)}),lg=tr&&(e=>M(null,null,function*(){let{url:t,method:r,data:n,signal:i,cancelToken:o,timeout:s,onDownloadProgress:a,onUploadProgress:l,responseType:u,headers:c,withCredentials:f="same-origin",fetchOptions:p}=Cs(e);u=u?(u+"").toLowerCase():"text";let h=rg([i,o&&o.toAbortSignal()],s),d;const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let b;try{if(l&&ag&&r!=="get"&&r!=="head"&&(b=yield cg(c,n))!==0){let S=new Request(t,{method:"POST",body:n,duplex:"half"}),g;if(A.isFormData(n)&&(g=S.headers.get("content-type"))&&c.setContentType(g),S.body){const[x,R]=Oi(b,Ve($i(l)));n=Di(S.body,Bi,x,R)}}A.isString(f)||(f=f?"include":"omit");const E="credentials"in Request.prototype;d=new Request(t,et(V({},p),{signal:h,method:r.toUpperCase(),headers:c.normalize().toJSON(),body:n,duplex:"half",credentials:E?f:void 0}));let y=yield fetch(d);const v=Ur&&(u==="stream"||u==="response");if(Ur&&(a||v&&m)){const S={};["status","statusText","headers"].forEach(U=>{S[U]=y[U]});const g=A.toFiniteNumber(y.headers.get("content-length")),[x,R]=a&&Oi(g,Ve($i(a),!0))||[];y=new Response(Di(y.body,Bi,x,()=>{R&&R(),m&&m()}),S)}u=u||"text";let w=yield He[A.findKey(He,u)||"text"](y,e);return!v&&m&&m(),yield new Promise((S,g)=>{Ds(S,g,{data:w,headers:st.from(y.headers),status:y.status,statusText:y.statusText,config:e,request:d})})}catch(E){throw m&&m(),E&&E.name==="TypeError"&&/fetch/i.test(E.message)?Object.assign(new W("Network Error",W.ERR_NETWORK,e,d),{cause:E.cause||E}):W.from(E,E&&E.code,e,d)}})),Lr={http:Tm,xhr:eg,fetch:lg};A.forEach(Lr,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}});const Ci=e=>`- ${e}`,fg=e=>A.isFunction(e)||e===null||e===!1,Ps={getAdapter:e=>{e=A.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let o=0;o<t;o++){r=e[o];let s;if(n=r,!fg(r)&&(n=Lr[(s=String(r)).toLowerCase()],n===void 0))throw new W(`Unknown adapter '${s}'`);if(n)break;i[s||"#"+o]=n}if(!n){const o=Object.entries(i).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since :
59
59
  `+o.map(Ci).join(`
60
60
  `):" "+Ci(o[0]):"as no adapter specified";throw new W("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:Lr};function vr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new se(null,e)}function Ni(e){return vr(e),e.headers=st.from(e.headers),e.data=yr.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ps.getAdapter(e.adapter||_e.adapter)(e).then(function(t){return vr(e),t.data=yr.call(e,e.transformResponse,t),t.headers=st.from(t.headers),t},function(t){return js(t)||(vr(e),t&&t.response&&(t.response.data=yr.call(e,e.transformResponse,t.response),t.response.headers=st.from(t.response.headers))),Promise.reject(t)})}const Fs="1.8.4",er={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{er[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ii={};er.transitional=function(e,t,r){function n(i,o){return"[Axios v"+Fs+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,s)=>{if(e===!1)throw new W(n(o," has been removed"+(t?" in "+t:"")),W.ERR_DEPRECATED);return t&&!Ii[o]&&(Ii[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,o,s):!0}};er.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function hg(e,t,r){if(typeof e!="object")throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const o=n[i],s=t[o];if(s){const a=e[o],l=a===void 0||s(a,o,e);if(l!==!0)throw new W("option "+o+" must be "+l,W.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new W("Unknown option "+o,W.ERR_BAD_OPTION)}}const Pe={assertOptions:hg,validators:er},gt=Pe.validators;let kt=class{constructor(t){this.defaults=t,this.interceptors={request:new Ai,response:new Ai}}request(t,r){return M(this,null,function*(){try{return yield this._request(t,r)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?o&&!String(n.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(n.stack+=`
61
- `+o):n.stack=o}catch(s){}}throw n}})}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Lt(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:o}=r;n!==void 0&&Pe.assertOptions(n,{silentJSONParsing:gt.transitional(gt.boolean),forcedJSONParsing:gt.transitional(gt.boolean),clarifyTimeoutError:gt.transitional(gt.boolean)},!1),i!=null&&(A.isFunction(i)?r.paramsSerializer={serialize:i}:Pe.assertOptions(i,{encode:gt.function,serialize:gt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Pe.assertOptions(r,{baseUrl:gt.spelling("baseURL"),withXsrfToken:gt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=o&&A.merge(o.common,o[r.method]);o&&A.forEach(["delete","get","head","post","put","patch","common"],d=>{delete o[d]}),r.headers=st.concat(s,o);const a=[];let l=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(r)===!1||(l=l&&d.synchronous,a.unshift(d.fulfilled,d.rejected))});const u=[];this.interceptors.response.forEach(function(d){u.push(d.fulfilled,d.rejected)});let c,f=0,p;if(!l){const d=[Ni.bind(this),void 0];for(d.unshift.apply(d,a),d.push.apply(d,u),p=d.length,c=Promise.resolve(r);f<p;)c=c.then(d[f++],d[f++]);return c}p=a.length;let h=r;for(f=0;f<p;){const d=a[f++],m=a[f++];try{h=d(h)}catch(b){m.call(this,b);break}}try{c=Ni.call(this,h)}catch(d){return Promise.reject(d)}for(f=0,p=u.length;f<p;)c=c.then(u[f++],u[f++]);return c}getUri(t){t=Lt(this.defaults,t);const r=Bs(t.baseURL,t.url,t.allowAbsoluteUrls);return Rs(r,t.params,t.paramsSerializer)}};A.forEach(["delete","get","head","options"],function(e){kt.prototype[e]=function(t,r){return this.request(Lt(r||{},{method:e,url:t,data:(r||{}).data}))}});A.forEach(["post","put","patch"],function(e){function t(r){return function(n,i,o){return this.request(Lt(o||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}kt.prototype[e]=t(),kt.prototype[e+"Form"]=t(!0)});let pg=class Ms{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(i=>{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](i);n._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(a=>{n.subscribe(a),o=a}).then(i);return s.cancel=function(){n.unsubscribe(o)},s},t(function(i,o,s){n.reason||(n.reason=new se(i,o,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Ms(function(r){t=r}),cancel:t}}};function dg(e){return function(t){return e.apply(null,t)}}function mg(e){return A.isObject(e)&&e.isAxiosError===!0}const Vr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Vr).forEach(([e,t])=>{Vr[t]=e});function ks(e){const t=new kt(e),r=gs(kt.prototype.request,t);return A.extend(r,kt.prototype,t,{allOwnKeys:!0}),A.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return ks(Lt(e,n))},r}const X=ks(_e);X.Axios=kt;X.CanceledError=se;X.CancelToken=pg;X.isCancel=js;X.VERSION=Fs;X.toFormData=Qe;X.AxiosError=W;X.Cancel=X.CanceledError;X.all=function(e){return Promise.all(e)};X.spread=dg;X.isAxiosError=mg;X.mergeConfig=Lt;X.AxiosHeaders=st;X.formToJSON=e=>$s(A.isHTMLForm(e)?new FormData(e):e);X.getAdapter=Ps.getAdapter;X.HttpStatusCode=Vr;X.default=X;const{Axios:Vy,AxiosError:Hy,CanceledError:qy,isCancel:zy,CancelToken:Wy,VERSION:Ky,all:Jy,Cancel:Yy,isAxiosError:Gy,spread:Zy,toFormData:Xy,AxiosHeaders:Qy,HttpStatusCode:t1,formToJSON:e1,getAdapter:r1,mergeConfig:n1}=X,gg={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},yg=["put","post","patch"],Pi="Local-Request-Id",vg=100,bg=300;let wg=class{constructor(e={}){ct(this,"axios"),ct(this,"settings"),ct(this,"records",{}),ct(this,"isLoading",!1),ct(this,"stopSkipWarn"),ct(this,"showLoading"),ct(this,"showError"),this.settings=Object.assign({type:"form"},e.settings||{});const t=mr(e,["settings","query"]);this.axios=X.create(fe({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:2*60*1e3},t)),this.setupSkipWarn(this.settings),this.showLoading=Wo(this.openLoading.bind(this),vg),this.showError=Up(this._showError.bind(this),bg,{leading:!0,trailing:!1})}setConfig(e={}){this.settings=fe(this.settings,e.settings||{});const t=mr(e,["settings","query"]);this.axios.defaults=fe(this.axios.defaults,t),this.setupSkipWarn(this.settings)}cancel(e,t="请求已取消"){if(e){const r=this.records[e];if(!r)return;r.source.cancel(t)}else for(const r of Object.values(this.records))r.source.cancel(t)}createHeaders(e,t,r){const n=t.injectHeaders?typeof t.headers=="function"?t.headers(e,r,t):t.headers||{}:{},i=V(V({"Content-Type":gg[t.type||"form"]},r.headers),n);return t.skipWarn&&(i[Pi]=e),i}isJsonType(e){return Object.entries(e).some(([t,r])=>t.toLowerCase()==="content-type"&&String(r).includes("application/json"))}toFormData(e,t="data"){if(e instanceof FormData||e instanceof URLSearchParams)return e;const r=t==="data"?new FormData:new URLSearchParams;return Object.entries(e).forEach(([n,i])=>{r.append(n,i)}),r}createSendData(e,t,r,n,i={}){const{type:o,skipWarn:s}=e,{name:a="skipWarn"}=s||{};let{data:l,params:u={},method:c="get"}=t;const f=n?{[a]:!0}:{};return yg.includes(c.toLowerCase())?(l=Object.assign(l||{},f),l=o!=="json"||!this.isJsonType(r)?this.toFormData(l,o):l,u=V({},i)):o==="form"?u=V(V(V({},l||{}),i),f):(l&&(o!=="json"||!this.isJsonType(r))&&(l=this.toFormData(l,o)),u=V(V({},i),f)),{data:l,params:u}}createUrl(e){let{url:t,params:r}=e;if(t){let n=us(t)?new URL(t).origin:"";const i=n?t.replace(n,""):t;try{const o=Ad(i,{encode:encodeURIComponent});return n+o(r||{})}catch(o){console.warn("createUrl","pathToRegexpCompile error",t)}}return t}openLoading(e){const{loading:t,showLoading:r}=e;t&&r&&Object.keys(this.records).length>0&&(this.isLoading=!0,r())}closeLoading(e){const{loading:t,hideLoading:r}=e;if(!t)return;this.isLoading=!1;const n=Object.keys(this.records);r&&n.length===0&&(this.isLoading=!1,r())}_showError(e,t){var i;const{failMessage:r,showError:n}=e;if(r&&n){const o=(i=t==null?void 0:t.response)==null?void 0:i.data,s=(o==null?void 0:o.message)||(o==null?void 0:o.msg)||(t==null?void 0:t.message)||(t==null?void 0:t.msg)||"未知错误";n(s,t)}}validResponse(e,t){const{validSuccess:r,validate:n}=e;return r&&n?!!n(t):!0}isSkipWarnResponse(e){return!!e.promise}send(e={},t=!1){const r=fe({},this.settings,e.settings||{}),n=e.query||{},i=mr(e,["settings","query"]),o=_d(!1),s=X.CancelToken.source();this.records[o]={settings:r,config:i,source:s};const a=this.createUrl(i),l=this.createHeaders(o,r,i),{data:u,params:c}=this.createSendData(r,i,l,t,n);return this.showLoading(r),new Promise((f,p)=>{this.axios(et(V({cancelToken:s.token},i),{url:a,headers:l,data:u,params:c})).then(h=>{var d;return this.isSkipWarnResponse(h)?f(h.promise):this.validResponse(r,h)?f(r.originResponse?h:(d=h.data)==null?void 0:d.data):(this.showError(r,h.data),p(h.data))}).catch(h=>(this.showError(r,h),p(h))).finally(()=>{delete this.records[o],this.closeLoading(r)})})}useResponse(e,t){const{response:r}=this.axios.interceptors,n=r.use(e,t);return()=>r.eject(n)}useRequest(e,t){const{request:r}=this.axios.interceptors,n=r.use(e,t);return()=>r.eject(n)}setupSkipWarn(e){if(this.stopSkipWarn&&(this.stopSkipWarn(),this.stopSkipWarn=void 0),!e.skipWarn)return;const{code:t,executor:r,callback:n,complete:i}=e.skipWarn;this.stopSkipWarn=this.useResponse(o=>{const s=(o.config.headers||{})[Pi],a=this.records[s];if(!a)return o;const{data:l}=o;if(!l||typeof l!="object")return o;if((l==null?void 0:l.code)===t){n&&n(o);const u=new Promise(r).then(()=>this.send(et(V({},a.config),{settings:a.settings}),!0));u.catch(c=>c).finally(()=>{i&&i()}),o.promise=u}return o})}};function fn(e={}){const t=new wg(e),r=t.send.bind(t),n=t.cancel.bind(t),i=t.setConfig.bind(t),o=t.useRequest.bind(t),s=t.useResponse.bind(t);return Object.assign(r,et(V({},t),{instance:t,send:r,cancel:n,setConfig:i,useRequest:o,useResponse:s}))}const Hr=fn({settings:{injectHeaders:!0,loading:!0,originResponse:!0}}),qr=typeof window<"u";function _g(e){const t={};return e?(e.forEach((r,n)=>{t[n]=typeof r=="string"?decodeURIComponent(r):r}),t):{}}class Us{constructor(t={}){ct(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"}),ct(this,"caches",{}),ct(this,"types"),this.types={local:qr?window.localStorage:this.caches,session:qr?window.sessionStorage:this.caches,cache:this.caches},this.config(t)}config(t={}){this.options=Object.assign(this.options,t)}save(t,r,n={}){const{type:i,expired:o,prefix:s}=V(V({},this.options),n),a=Date.now(),l=s+t,u=this.types[i]||this.caches,c={value:r,timestamp:a,expired:o};u===this.caches?u[l]=c:u.setItem(l,JSON.stringify(c))}get(t,r={}){const{type:n,prefix:i}=V(V({},this.options),r),o=i+t,s=this.types[n]||this.caches;let a;if(s===this.caches)a=s[o];else{const f=s.getItem(o);f&&(a=JSON.parse(f))}if(!a)return null;const{value:l,timestamp:u,expired:c}=a;return c>0&&u+c<Date.now()?(this.remove(t,r),null):l}remove(t,r={}){const{type:n,prefix:i}=V(V({},this.options),r),o=this.types[n]||this.caches,s=i+t;o===this.caches?delete o[s]:o.removeItem(s)}clear(t={}){const{type:r}=V(V({},this.options),t),n=this.types[r]||this.caches;n===this.caches?this.caches={}:n.clear()}}const br=new Us;function Ls(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fe={exports:{}},Eg=Fe.exports,Fi;function Sg(){return Fi||(Fi=1,function(e,t){(function(r,n){n(t,e)})(Eg,function(r,n){var i={timeout:5e3,jsonpCallback:"callback"};function o(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function s(u){try{delete window[u]}catch(c){window[u]=void 0}}function a(u){var c=document.getElementById(u);c&&document.getElementsByTagName("head")[0].removeChild(c)}function l(u){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],f=u,p=c.timeout||i.timeout,h=c.jsonpCallback||i.jsonpCallback,d=void 0;return new Promise(function(m,b){var E=c.jsonpCallbackFunction||o(),y=h+"_"+E;window[E]=function(w){m({ok:!0,json:function(){return Promise.resolve(w)}}),d&&clearTimeout(d),a(y),s(E)},f+=f.indexOf("?")===-1?"?":"&";var v=document.createElement("script");v.setAttribute("src",""+f+h+"="+E),c.charset&&v.setAttribute("charset",c.charset),c.nonce&&v.setAttribute("nonce",c.nonce),c.referrerPolicy&&v.setAttribute("referrerPolicy",c.referrerPolicy),c.crossorigin&&v.setAttribute("crossorigin","true"),v.id=y,document.getElementsByTagName("head")[0].appendChild(v),d=setTimeout(function(){b(new Error("JSONP request to "+u+" timed out")),s(E),a(y),window[E]=function(){s(E)}},p),v.onerror=function(){b(new Error("JSONP request to "+u+" failed")),s(E),a(y),d&&clearTimeout(d)}})}n.exports=l})}(Fe,Fe.exports)),Fe.exports}var xg=Sg();const Tg=Ls(xg);function Ag(e){if(qr){const{protocol:t,host:r,pathname:n}=location;return`${t}//${r}${e?n:""}`}else return null}function Rg(e=""){const t=e.match(as);return t?t[0]:""}function Vs(e){const t=[];for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push([r,encodeURIComponent(e[r])].join("="));return t.join("&")}function zr(e,t,r){const n={};e=(e||location.search).replace(/^[^]*\?/,""),t=t||"&",r=r||"=";let i;const o=new RegExp("(?:^|\\"+t+")([^\\"+r+"\\"+t+"]+)(?:\\"+r+"([^\\"+t+"]*))?","g");for(;(i=o.exec(e))!==null;)i[1]!==e&&(n[decodeURIComponent(i[1])]=decodeURIComponent(i[2]||""));return n}function Hs(e,t){t=typeof t=="string"?zr(t):t;const r=e.split("?")[0],n=zr(e),i=Object.assign({},n,t),o=Vs(i);return o?[r,o].join("?"):e}const Me=Object.freeze(Object.defineProperty({__proto__:null,append:Hs,getCurrentHost:Ag,getHost:Rg,parse:zr,stringify:Vs},Symbol.toStringTag,{value:"Module"}));function qs(r){return M(this,arguments,function*(e,t={}){const{query:n={}}=t;e.includes("${")&&(e=Mp(e)(n||{}));const i=Hs(e,n);return yield(yield Tg(i,t)).json()})}var wr,Mi;function Og(){if(Mi)return wr;Mi=1,wr=function(n,i,o){var s=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");typeof i=="function"&&(o=i,i={}),i=i||{},o=o||function(){},a.type=i.type||"text/javascript",a.charset=i.charset||"utf8",a.async="async"in i?!!i.async:!0,a.src=n,i.attrs&&e(a,i.attrs),i.text&&(a.text=""+i.text);var l="onload"in a?t:r;l(a,o),a.onload||t(a,o),s.appendChild(a)};function e(n,i){for(var o in i)n.setAttribute(o,i[o])}function t(n,i){n.onload=function(){this.onerror=this.onload=null,i(null,n)},n.onerror=function(){this.onerror=this.onload=null,i(new Error("Failed to load "+this.src),n)}}function r(n,i){n.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,i(null,n))}}return wr}var $g=Og();const jg=Ls($g);function ki(e,t={}){return new Promise((r,n)=>{const{library:i}=t;jg(e,t,(o,s)=>{o?n(o):r(i?window[i]:void 0)})})}const Ui={debug:-1,log:0,info:0,warn:1,error:2},Dg=function(e,t,r,n){return function(...i){if(t&&Ui[t]<=Ui[e]&&console[e].apply&&(n==="*"||r.startsWith(n)))return console[e].apply(console,Bg(i,r))}};function Bg(e,t){return t!=="*"&&(typeof e[0]=="string"?e[0]=`[${t}] ${e[0]}`:e=["["+t+"]"].concat(e)),e}function Cg(e,t){if(!e)return{targetLevel:t.level,targetBizName:t.bizName};if(~e.indexOf(":")){const r=e.split(":");return{targetLevel:r[0],targetBizName:r[1]}}return{targetLevel:e,targetBizName:"*"}}const Ng={level:"warn",bizName:"*"};class Ig{constructor(t){ct(this,"config"),ct(this,"options"),this.options=V(V({},Ng),t);const r=typeof location<"u"?location:{},n=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(r.href)||[])[1];this.config=Cg(n,t)}_log(t){const{targetLevel:r,targetBizName:n}=this.config,{bizName:i}=this.options;return Dg(t,r,i,n)}debug(...t){return this._log("debug")(...t)}log(...t){return this._log("log")(...t)}info(...t){return this._log("info")(...t)}warn(...t){return this._log("warn")(...t)}error(...t){return this._log("error")(...t)}}function Pg(e){return new Ig(e)}const Qt=Pg({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function je(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var Fg={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Wr(e,t){function r(i,o,s){if(!(typeof document>"u")){s=je({},t,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var l in s)s[l]&&(a+="; "+l,s[l]!==!0&&(a+="="+s[l].split(";")[0]));return document.cookie=i+"="+e.write(o,i)+a}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],s={},a=0;a<o.length;a++){var l=o[a].split("="),u=l.slice(1).join("=");try{var c=decodeURIComponent(l[0]);if(s[c]=e.read(u,c),i===c)break}catch(f){}}return i?s[i]:s}}return Object.create({set:r,get:n,remove:function(i,o){r(i,"",je({},o,{expires:-1}))},withAttributes:function(i){return Wr(this.converter,je({},this.attributes,i))},withConverter:function(i){return Wr(je({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var hn=Wr(Fg,{path:"/"});function Mg(e,t,r){hn.set(e,t,r)}function kg(e){return hn.get(e)}function Ug(e,t){hn.remove(e,t)}const _r=Object.freeze(Object.defineProperty({__proto__:null,get:kg,remove:Ug,set:Mg},Symbol.toStringTag,{value:"Module"}));/**!
61
+ `+o):n.stack=o}catch(s){}}throw n}})}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Lt(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:o}=r;n!==void 0&&Pe.assertOptions(n,{silentJSONParsing:gt.transitional(gt.boolean),forcedJSONParsing:gt.transitional(gt.boolean),clarifyTimeoutError:gt.transitional(gt.boolean)},!1),i!=null&&(A.isFunction(i)?r.paramsSerializer={serialize:i}:Pe.assertOptions(i,{encode:gt.function,serialize:gt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Pe.assertOptions(r,{baseUrl:gt.spelling("baseURL"),withXsrfToken:gt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=o&&A.merge(o.common,o[r.method]);o&&A.forEach(["delete","get","head","post","put","patch","common"],d=>{delete o[d]}),r.headers=st.concat(s,o);const a=[];let l=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(r)===!1||(l=l&&d.synchronous,a.unshift(d.fulfilled,d.rejected))});const u=[];this.interceptors.response.forEach(function(d){u.push(d.fulfilled,d.rejected)});let c,f=0,p;if(!l){const d=[Ni.bind(this),void 0];for(d.unshift.apply(d,a),d.push.apply(d,u),p=d.length,c=Promise.resolve(r);f<p;)c=c.then(d[f++],d[f++]);return c}p=a.length;let h=r;for(f=0;f<p;){const d=a[f++],m=a[f++];try{h=d(h)}catch(b){m.call(this,b);break}}try{c=Ni.call(this,h)}catch(d){return Promise.reject(d)}for(f=0,p=u.length;f<p;)c=c.then(u[f++],u[f++]);return c}getUri(t){t=Lt(this.defaults,t);const r=Bs(t.baseURL,t.url,t.allowAbsoluteUrls);return Rs(r,t.params,t.paramsSerializer)}};A.forEach(["delete","get","head","options"],function(e){kt.prototype[e]=function(t,r){return this.request(Lt(r||{},{method:e,url:t,data:(r||{}).data}))}});A.forEach(["post","put","patch"],function(e){function t(r){return function(n,i,o){return this.request(Lt(o||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}kt.prototype[e]=t(),kt.prototype[e+"Form"]=t(!0)});let pg=class Ms{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(i=>{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](i);n._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(a=>{n.subscribe(a),o=a}).then(i);return s.cancel=function(){n.unsubscribe(o)},s},t(function(i,o,s){n.reason||(n.reason=new se(i,o,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Ms(function(r){t=r}),cancel:t}}};function dg(e){return function(t){return e.apply(null,t)}}function mg(e){return A.isObject(e)&&e.isAxiosError===!0}const Vr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Vr).forEach(([e,t])=>{Vr[t]=e});function ks(e){const t=new kt(e),r=gs(kt.prototype.request,t);return A.extend(r,kt.prototype,t,{allOwnKeys:!0}),A.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return ks(Lt(e,n))},r}const X=ks(_e);X.Axios=kt;X.CanceledError=se;X.CancelToken=pg;X.isCancel=js;X.VERSION=Fs;X.toFormData=Qe;X.AxiosError=W;X.Cancel=X.CanceledError;X.all=function(e){return Promise.all(e)};X.spread=dg;X.isAxiosError=mg;X.mergeConfig=Lt;X.AxiosHeaders=st;X.formToJSON=e=>$s(A.isHTMLForm(e)?new FormData(e):e);X.getAdapter=Ps.getAdapter;X.HttpStatusCode=Vr;X.default=X;const{Axios:Hy,AxiosError:qy,CanceledError:zy,isCancel:Wy,CancelToken:Ky,VERSION:Jy,all:Yy,Cancel:Gy,isAxiosError:Zy,spread:Xy,toFormData:Qy,AxiosHeaders:t1,HttpStatusCode:e1,formToJSON:r1,getAdapter:n1,mergeConfig:i1}=X,gg={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},yg=["put","post","patch"],Pi="Local-Request-Id",vg=100,bg=300;let wg=class{constructor(e={}){ct(this,"axios"),ct(this,"settings"),ct(this,"records",{}),ct(this,"isLoading",!1),ct(this,"stopSkipWarn"),ct(this,"showLoading"),ct(this,"showError"),this.settings=Object.assign({type:"form"},e.settings||{});const t=mr(e,["settings","query"]);this.axios=X.create(fe({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:2*60*1e3},t)),this.setupSkipWarn(this.settings),this.showLoading=Wo(this.openLoading.bind(this),vg),this.showError=Up(this._showError.bind(this),bg,{leading:!0,trailing:!1})}setConfig(e={}){this.settings=fe(this.settings,e.settings||{});const t=mr(e,["settings","query"]);this.axios.defaults=fe(this.axios.defaults,t),this.setupSkipWarn(this.settings)}cancel(e,t="请求已取消"){if(e){const r=this.records[e];if(!r)return;r.source.cancel(t)}else for(const r of Object.values(this.records))r.source.cancel(t)}createHeaders(e,t,r){const n=t.injectHeaders?typeof t.headers=="function"?t.headers(e,r,t):t.headers||{}:{},i=V(V({"Content-Type":gg[t.type||"form"]},r.headers),n);return t.skipWarn&&(i[Pi]=e),i}isJsonType(e){return Object.entries(e).some(([t,r])=>t.toLowerCase()==="content-type"&&String(r).includes("application/json"))}toFormData(e,t="data"){if(e instanceof FormData||e instanceof URLSearchParams)return e;const r=t==="data"?new FormData:new URLSearchParams;return Object.entries(e).forEach(([n,i])=>{r.append(n,i)}),r}createSendData(e,t,r,n,i={}){const{type:o,skipWarn:s}=e,{name:a="skipWarn"}=s||{};let{data:l,params:u={},method:c="get"}=t;const f=n?{[a]:!0}:{};return yg.includes(c.toLowerCase())?(l=Object.assign(l||{},f),l=o!=="json"||!this.isJsonType(r)?this.toFormData(l,o):l,u=V({},i)):o==="form"?u=V(V(V({},l||{}),i),f):(l&&(o!=="json"||!this.isJsonType(r))&&(l=this.toFormData(l,o)),u=V(V({},i),f)),{data:l,params:u}}createUrl(e){let{url:t,params:r}=e;if(t){let n=us(t)?new URL(t).origin:"";const i=n?t.replace(n,""):t;try{const o=Ad(i,{encode:encodeURIComponent});return n+o(r||{})}catch(o){console.warn("createUrl","pathToRegexpCompile error",t)}}return t}openLoading(e){const{loading:t,showLoading:r}=e;t&&r&&Object.keys(this.records).length>0&&(this.isLoading=!0,r())}closeLoading(e){const{loading:t,hideLoading:r}=e;if(!t)return;this.isLoading=!1;const n=Object.keys(this.records);r&&n.length===0&&(this.isLoading=!1,r())}_showError(e,t){var i;const{failMessage:r,showError:n}=e;if(r&&n){const o=(i=t==null?void 0:t.response)==null?void 0:i.data,s=(o==null?void 0:o.message)||(o==null?void 0:o.msg)||(t==null?void 0:t.message)||(t==null?void 0:t.msg)||"未知错误";n(s,t)}}validResponse(e,t){const{validSuccess:r,validate:n}=e;return r&&n?!!n(t):!0}isSkipWarnResponse(e){return!!e.promise}send(e={},t=!1){const r=fe({},this.settings,e.settings||{}),n=e.query||{},i=mr(e,["settings","query"]),o=_d(!1),s=X.CancelToken.source();this.records[o]={settings:r,config:i,source:s};const a=this.createUrl(i),l=this.createHeaders(o,r,i),{data:u,params:c}=this.createSendData(r,i,l,t,n);return this.showLoading(r),new Promise((f,p)=>{this.axios(et(V({cancelToken:s.token},i),{url:a,headers:l,data:u,params:c})).then(h=>{var d;return this.isSkipWarnResponse(h)?f(h.promise):this.validResponse(r,h)?f(r.originResponse?h:(d=h.data)==null?void 0:d.data):(this.showError(r,h.data),p(h.data))}).catch(h=>(this.showError(r,h),p(h))).finally(()=>{delete this.records[o],this.closeLoading(r)})})}useResponse(e,t){const{response:r}=this.axios.interceptors,n=r.use(e,t);return()=>r.eject(n)}useRequest(e,t){const{request:r}=this.axios.interceptors,n=r.use(e,t);return()=>r.eject(n)}setupSkipWarn(e){if(this.stopSkipWarn&&(this.stopSkipWarn(),this.stopSkipWarn=void 0),!e.skipWarn)return;const{code:t,executor:r,callback:n,complete:i}=e.skipWarn;this.stopSkipWarn=this.useResponse(o=>{const s=(o.config.headers||{})[Pi],a=this.records[s];if(!a)return o;const{data:l}=o;if(!l||typeof l!="object")return o;if((l==null?void 0:l.code)===t){n&&n(o);const u=new Promise(r).then(()=>this.send(et(V({},a.config),{settings:a.settings}),!0));u.catch(c=>c).finally(()=>{i&&i()}),o.promise=u}return o})}};function fn(e={}){const t=new wg(e),r=t.send.bind(t),n=t.cancel.bind(t),i=t.setConfig.bind(t),o=t.useRequest.bind(t),s=t.useResponse.bind(t);return Object.assign(r,et(V({},t),{instance:t,send:r,cancel:n,setConfig:i,useRequest:o,useResponse:s}))}const Hr=fn({settings:{injectHeaders:!0,loading:!0,originResponse:!0}}),qr=typeof window<"u";function _g(e){const t={};return e?(e.forEach((r,n)=>{t[n]=typeof r=="string"?decodeURIComponent(r):r}),t):{}}class Us{constructor(t={}){ct(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"}),ct(this,"caches",{}),ct(this,"types"),this.types={local:qr?window.localStorage:this.caches,session:qr?window.sessionStorage:this.caches,cache:this.caches},this.config(t)}config(t={}){this.options=Object.assign(this.options,t)}save(t,r,n={}){const{type:i,expired:o,prefix:s}=V(V({},this.options),n),a=Date.now(),l=s+t,u=this.types[i]||this.caches,c={value:r,timestamp:a,expired:o};u===this.caches?u[l]=c:u.setItem(l,JSON.stringify(c))}get(t,r={}){const{type:n,prefix:i}=V(V({},this.options),r),o=i+t,s=this.types[n]||this.caches;let a;if(s===this.caches)a=s[o];else{const f=s.getItem(o);f&&(a=JSON.parse(f))}if(!a)return null;const{value:l,timestamp:u,expired:c}=a;return c>0&&u+c<Date.now()?(this.remove(t,r),null):l}remove(t,r={}){const{type:n,prefix:i}=V(V({},this.options),r),o=this.types[n]||this.caches,s=i+t;o===this.caches?delete o[s]:o.removeItem(s)}clear(t={}){const{type:r}=V(V({},this.options),t),n=this.types[r]||this.caches;n===this.caches?this.caches={}:n.clear()}}const br=new Us;function Ls(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fe={exports:{}},Eg=Fe.exports,Fi;function Sg(){return Fi||(Fi=1,function(e,t){(function(r,n){n(t,e)})(Eg,function(r,n){var i={timeout:5e3,jsonpCallback:"callback"};function o(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function s(u){try{delete window[u]}catch(c){window[u]=void 0}}function a(u){var c=document.getElementById(u);c&&document.getElementsByTagName("head")[0].removeChild(c)}function l(u){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],f=u,p=c.timeout||i.timeout,h=c.jsonpCallback||i.jsonpCallback,d=void 0;return new Promise(function(m,b){var E=c.jsonpCallbackFunction||o(),y=h+"_"+E;window[E]=function(w){m({ok:!0,json:function(){return Promise.resolve(w)}}),d&&clearTimeout(d),a(y),s(E)},f+=f.indexOf("?")===-1?"?":"&";var v=document.createElement("script");v.setAttribute("src",""+f+h+"="+E),c.charset&&v.setAttribute("charset",c.charset),c.nonce&&v.setAttribute("nonce",c.nonce),c.referrerPolicy&&v.setAttribute("referrerPolicy",c.referrerPolicy),c.crossorigin&&v.setAttribute("crossorigin","true"),v.id=y,document.getElementsByTagName("head")[0].appendChild(v),d=setTimeout(function(){b(new Error("JSONP request to "+u+" timed out")),s(E),a(y),window[E]=function(){s(E)}},p),v.onerror=function(){b(new Error("JSONP request to "+u+" failed")),s(E),a(y),d&&clearTimeout(d)}})}n.exports=l})}(Fe,Fe.exports)),Fe.exports}var xg=Sg();const Tg=Ls(xg);function Ag(e){if(qr){const{protocol:t,host:r,pathname:n}=location;return`${t}//${r}${e?n:""}`}else return null}function Rg(e=""){const t=e.match(as);return t?t[0]:""}function Vs(e){const t=[];for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push([r,encodeURIComponent(e[r])].join("="));return t.join("&")}function zr(e,t,r){const n={};e=(e||location.search).replace(/^[^]*\?/,""),t=t||"&",r=r||"=";let i;const o=new RegExp("(?:^|\\"+t+")([^\\"+r+"\\"+t+"]+)(?:\\"+r+"([^\\"+t+"]*))?","g");for(;(i=o.exec(e))!==null;)i[1]!==e&&(n[decodeURIComponent(i[1])]=decodeURIComponent(i[2]||""));return n}function Hs(e,t){t=typeof t=="string"?zr(t):t;const r=e.split("?")[0],n=zr(e),i=Object.assign({},n,t),o=Vs(i);return o?[r,o].join("?"):e}const Me=Object.freeze(Object.defineProperty({__proto__:null,append:Hs,getCurrentHost:Ag,getHost:Rg,parse:zr,stringify:Vs},Symbol.toStringTag,{value:"Module"}));function qs(r){return M(this,arguments,function*(e,t={}){const{query:n={}}=t;e.includes("${")&&(e=Mp(e)(n||{}));const i=Hs(e,n);return yield(yield Tg(i,t)).json()})}var wr,Mi;function Og(){if(Mi)return wr;Mi=1,wr=function(n,i,o){var s=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");typeof i=="function"&&(o=i,i={}),i=i||{},o=o||function(){},a.type=i.type||"text/javascript",a.charset=i.charset||"utf8",a.async="async"in i?!!i.async:!0,a.src=n,i.attrs&&e(a,i.attrs),i.text&&(a.text=""+i.text);var l="onload"in a?t:r;l(a,o),a.onload||t(a,o),s.appendChild(a)};function e(n,i){for(var o in i)n.setAttribute(o,i[o])}function t(n,i){n.onload=function(){this.onerror=this.onload=null,i(null,n)},n.onerror=function(){this.onerror=this.onload=null,i(new Error("Failed to load "+this.src),n)}}function r(n,i){n.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,i(null,n))}}return wr}var $g=Og();const jg=Ls($g);function ki(e,t={}){return new Promise((r,n)=>{const{library:i}=t;jg(e,t,(o,s)=>{o?n(o):r(i?window[i]:void 0)})})}const Ui={debug:-1,log:0,info:0,warn:1,error:2},Dg=function(e,t,r,n){return function(...i){if(t&&Ui[t]<=Ui[e]&&console[e].apply&&(n==="*"||r.startsWith(n)))return console[e].apply(console,Bg(i,r))}};function Bg(e,t){return t!=="*"&&(typeof e[0]=="string"?e[0]=`[${t}] ${e[0]}`:e=["["+t+"]"].concat(e)),e}function Cg(e,t){if(!e)return{targetLevel:t.level,targetBizName:t.bizName};if(~e.indexOf(":")){const r=e.split(":");return{targetLevel:r[0],targetBizName:r[1]}}return{targetLevel:e,targetBizName:"*"}}const Ng={level:"warn",bizName:"*"};class Ig{constructor(t){ct(this,"config"),ct(this,"options"),this.options=V(V({},Ng),t);const r=typeof location<"u"?location:{},n=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(r.href)||[])[1];this.config=Cg(n,t)}_log(t){const{targetLevel:r,targetBizName:n}=this.config,{bizName:i}=this.options;return Dg(t,r,i,n)}debug(...t){return this._log("debug")(...t)}log(...t){return this._log("log")(...t)}info(...t){return this._log("info")(...t)}warn(...t){return this._log("warn")(...t)}error(...t){return this._log("error")(...t)}}function Pg(e){return new Ig(e)}const Qt=Pg({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function je(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var Fg={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Wr(e,t){function r(i,o,s){if(!(typeof document>"u")){s=je({},t,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var l in s)s[l]&&(a+="; "+l,s[l]!==!0&&(a+="="+s[l].split(";")[0]));return document.cookie=i+"="+e.write(o,i)+a}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],s={},a=0;a<o.length;a++){var l=o[a].split("="),u=l.slice(1).join("=");try{var c=decodeURIComponent(l[0]);if(s[c]=e.read(u,c),i===c)break}catch(f){}}return i?s[i]:s}}return Object.create({set:r,get:n,remove:function(i,o){r(i,"",je({},o,{expires:-1}))},withAttributes:function(i){return Wr(this.converter,je({},this.attributes,i))},withConverter:function(i){return Wr(je({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var hn=Wr(Fg,{path:"/"});function Mg(e,t,r){hn.set(e,t,r)}function kg(e){return hn.get(e)}function Ug(e,t){hn.remove(e,t)}const _r=Object.freeze(Object.defineProperty({__proto__:null,get:kg,remove:Ug,set:Mg},Symbol.toStringTag,{value:"Module"}));/**!
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.25
65
+ * @version 0.12.27
66
66
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
67
- */const Er="0.12.25";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},ke="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 zs(e){return $t(e)?e:JSON.stringify(e)}function pn(e,t,r){const n=e.CSSStyleSheet;if(n.prototype.replaceSync){const i=new n;i.id=t,i.replaceSync(r);const o=e.document,s=o.adoptedStyleSheets,a=Array.from(s).filter(l=>l.id!==t);o.adoptedStyleSheets=[...a,i]}else{const i=e.document;let o=i.getElementById(t);o?o.innerHTML=r:(o=i.createElement("style"),o.id=t,o.innerHTML=r,i.head.appendChild(o))}}function Gg(e,t){return M(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 M(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 Zg(e){return te(e)||te(e==null?void 0:e.install)}function Xg(e){return qg.includes(e)}function Qg(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
- `)+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 t0={session:!1,authKey:"Authorization",storageKey:"ACCESS_STORAGE",storagePrefix:"__VTJ_",unauthorized:void 0,auth:"/#/login",redirectParam:"r",unauthorizedCode:401,unauthorizedMessage:"登录已经失效,请重新登录!",noPermissionMessage:"无权限访问该页面",appName:"",statusKey:"code"},e0=Symbol("access");class r0{constructor(t){z(this,"options");z(this,"data",null);z(this,"mode",tt.Raw);z(this,"interceptResponse",!0);this.options=Object.assign({},t0,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(e0,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===ke){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 M(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 M(this,null,function*(){const{unauthorizedMessage:r="登录已失效"}=this.options;this.isUnauthorized(t)&&(yield this.showTip(r),this.toLogin())})}showTip(t){return M(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=>M(this,null,function*(){return this.interceptResponse&&(yield this.showUnauthorizedAlert(r)),r}),r=>M(this,null,function*(){if(!this.interceptResponse)return Promise.reject(r);const n=r.response||r||{};return yield this.showUnauthorizedAlert(n),Promise.reject(r)}))}}function n0(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 r0(V({alert:a},o)):void 0}}function i0(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 o0(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 s0(e=[],t=[],r){const n={};for(const i of e)n[i.id]=i0(i,r);for(const i of t)n[i.id]=o0(i,r);return n}function a0(){return M(this,arguments,function*(e=[],t=window){const r=ye(t);r&&(Js(t),e.forEach(n=>c0(r,n)))})}function u0(e,t=window){const r=ir(e.mockTemplate)&&e.mockTemplate.value?qe(e.mockTemplate,{},!0):void 0,n=ye(t);return(...i)=>M(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 c0(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=Me.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 l0{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=>M(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 l0({mode:r,dsl:a.value,attrs:l}),c=t.defineComponent(V({name:a.value.name,props:V({},h0((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||""),u.state=p0(t,(v=a.value.state)!=null?v:{},u);const d=d0(t,(w=a.value.computed)!=null?w:{},u),m=m0((S=a.value.methods)!=null?S:{},u),b=g0(t,a.value.inject,u);for(const[x,R]of Object.entries(b||{}))b[x]=t.inject(x,R);const E=y0(a.value.dataSources||{},u),y=V(V(V(V({},b),d),m),E);return u.setup(y,t),v0(t,(g=a.value.watch)!=null?g:[],u),{vtj:u}},emits:f0(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))}},b0((p=a.value.lifeCycles)!=null?p:{},u)));return{renderer:t.markRaw(c),context:u}}function f0(e=[]){return e.map(t=>$t(t)?t:t.name)}function h0(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 p0(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 d0(e,t,r){return Object.entries(t!=null?t:{}).reduce((n,[i,o])=>(n[i]=e.computed(r.__parseFunction(o)),n),{})}function m0(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}function g0(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 y0(e,t){return Object.keys(e).reduce((r,n)=>{const i=e[n];if(i.type==="mock")r[n]=u0(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)=>M(null,null,function*(){const l=yield o.apply(t,a);return s?s(l):l})}return r},{})}function v0(e,t=[],r){t.forEach(n=>{e.watch(r.__parseExpression(n.source),r.__parseFunction(n.handler),{deep:n.deep,immediate:n.immediate})})}function b0(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}let xr=[],Jt={};const w0=e=>e;function Ys(r){return M(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(()=>M(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(()=>M(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(()=>M(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=w0,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&&!E0(u,t))return A0(e,t,r,n,i);const y=w=>{var F,B,P,D;const S=w.$components,g=(()=>{var L,k,H,q;if(e.name==="component")return S0(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)?Xg(j)||Qg(j)?j:(q=(H=S[j])!=null?H:(k=s==null?void 0:s.app)==null?void 0:k.component(j))!=null?q:j:j})(),x=x0(a,(F=e.props)!=null?F:{},w),R=T0(r,(B=e.events)!=null?B:{},w);if(e.name==="slot")return R0(r,e,x,w,n);m&&Object.assign(x,w.__parseExpression(m.value)),h&&(x.style=Object.assign((P=x.style)!=null?P:{},$0(h,w))),b&&Object.assign(x,j0(b,w)),d.forEach(j=>{Object.assign(x,D0(r,j,w))});const U=B0(r,(D=e.children)!=null?D:[],w,n,e);let _=r.createVNode(g,V(V({},x),R),U);const T=s?_0(s,E,w):[];return T.length&&(_=r.withDirectives(_,T)),_};return p?I0(p,y,t):y(t)}function _0(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 E0(e,t){return!!t.__parseExpression(e.value)}function S0(e,t){return t?pt(t)?e.__parseExpression(t):t:"div"}function x0(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 T0(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 A0(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 R0(e,t,r,n,i){var l;const{children:o}=t,s=O0(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 O0(e,t){const{props:r}=e,n=(r==null?void 0:r.name)||"default";return{name:pt(n)?t.__parseExpression(n):n,params:[]}}function $0(e,t){return t.__parseExpression(e.value)?{}:{display:"none"}}function j0(e,t){return{innerHTML:t.__parseExpression(e.value)||""}}function D0(e,t,r){var a;const n={type:"JSFunction",value:(a=t.value)!=null&&a.value?`(v) => {
67
+ */const Er="0.12.27";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},ke="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 zs(e){return $t(e)?e:JSON.stringify(e)}function Gg(e,t){return e.replace(/::v-deep\(/g,":deep(").replace(/(\s*)>>>(\s*)/g,"$1:deep($2)").replace(/([\w-.:\s[\]>+~]+?):deep\(([^)]+)\)/g,(r,n,i)=>`${n.replace(/(\s*)$/,`[${t}]$1`)} ${i}`).replace(/([^{}]+)(?=\s*{)/g,r=>r.split(",").map(n=>n.includes(`[${t}]`)?n.trim():n.trim().replace(/(.*?)([^\s>+~]+)$/,`$1$2[${t}]`)).join(", "))}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 M(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 M(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
+ `)+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===ke){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 M(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 M(this,null,function*(){const{unauthorizedMessage:r="登录已失效"}=this.options;this.isUnauthorized(t)&&(yield this.showTip(r),this.toLogin())})}showTip(t){return M(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=>M(this,null,function*(){return this.interceptResponse&&(yield this.showUnauthorizedAlert(r)),r}),r=>M(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 M(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)=>M(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=Me.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=>M(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)=>M(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 M(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(()=>M(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(()=>M(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(()=>M(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,k,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:(k=s==null?void 0:s.app)==null?void 0:k.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
- }`:"(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 B0(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=C0(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 C0(e){const t={default:{params:[],nodes:[]}};for(const r of e){const n=N0(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 N0(e="default"){return $t(e)?{name:e,params:[]}:V({params:[]},e)}function I0(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 M(this,null,function*(){const e=k0(),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())}}),P0=zi({name:"VtjStartupContainer",render(){return Tr("div","page not found!")}}),Xs=Symbol("Provider");class F0 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)=>M(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 M(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=s0(i,o,this.adapter),Js(s),a0(i,s),r.platform!=="uniapp"&&this.initRouter(),this.triggerReady()})}initMock(r){const n=ye(r);n&&n.setup({timeout:"50-500"})}loadDependencies(r){return M(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 M(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 Gg(d,Me.append(y,{v:Er}))),nr(y)&&(yield ki(Me.append(y,{v:Er})));o[d]=r[d]}}if(l==="development"){for(const m of f)yield ki(Me.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:ke,component:Vi},p={path:c,name:Sr,component:n!=null&&n.homepage?Vi:o.startupComponent||P0,meta:u};r.hasRoute(ke)&&r.removeRoute(ke),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]&&Zg(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 M(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 M(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=>M(this,null,function*(){return(yield this.getDsl(c))||null}),getDslByUrl:c=>M(this,null,function*(){return(yield this.getDslByUrl(c))||null}),options:l});return Kr(et(V({},l),{dsl:r,loader:u}))}getRenderComponent(r,n){return M(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(()=>M(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(()=>M(null,null,function*(){return yield Ys(r,window)}))}}function M0(e){const t=new F0(e);return{provider:t,onReady:r=>t.ready(r)}}function k0(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&&M(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 U0(e,t=""){return M(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}},L0=(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}),V0=(e,t="/__vtj__/api/uploader.json")=>(r,n)=>M(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 H0(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 q0=class{constructor(t=Hr){z(this,"api");z(this,"pluginCaches",{});z(this,"uploader");this.req=t,this.api=L0(t),this.uploader=V0(t)}getExtension(){return M(this,null,function*(){console.log("BaseService.getExtension")})}init(t){return M(this,null,function*(){return console.log("BaseService.init",t),{}})}saveProject(t,r){return M(this,null,function*(){return!!(yield this.api("saveProject",t,{type:r}).catch(()=>!1))})}saveMaterials(t,r){return M(this,null,function*(){return console.log("BaseService.saveMaterials",t,r),!1})}saveFile(t){return M(this,null,function*(){return console.log("BaseService.saveFile",t),!1})}getFile(t){return M(this,null,function*(){return console.log("BaseService.getFile",t),{}})}removeFile(t){return M(this,null,function*(){return console.log("BaseService.removeFile",t),!1})}saveHistory(t){return M(this,null,function*(){return console.log("BaseService.saveHistory",t),!1})}removeHistory(t){return M(this,null,function*(){return console.log("BaseService.removeHistory",t),!1})}getHistory(t){return M(this,null,function*(){return console.log("BaseService.getHistory",t),{}})}getHistoryItem(t,r){return M(this,null,function*(){return console.log("BaseService.getHistoryItem",t,r),{}})}saveHistoryItem(t,r){return M(this,null,function*(){return console.log("BaseService.saveHistoryItem",t,r),!1})}removeHistoryItem(t,r){return M(this,null,function*(){return console.log("BaseService.removeHistoryItem",t,r),!1})}publish(t){return M(this,null,function*(){return!!(yield this.api("publish",t).catch(()=>!1))})}publishFile(t,r){return M(this,null,function*(){return!!(yield this.api("publishFile",{project:t,file:r}).catch(()=>!1))})}genVueContent(t,r){return M(this,null,function*(){return yield this.api("genVueContent",{project:t,dsl:r}).catch(()=>"")})}parseVue(t,r){return M(this,null,function*(){return yield this.api("parseVue",V({project:t},r))})}createRawPage(t){return M(this,null,function*(){return yield this.api("createRawPage",t).catch(()=>"")})}removeRawPage(t){return M(this,null,function*(){return yield this.api("removeRawPage",t).catch(()=>"")})}uploadStaticFile(t,r){return M(this,null,function*(){return yield this.uploader(t,r).catch(()=>null)})}getStaticFiles(t){return M(this,null,function*(){return yield this.api("getStaticFiles",t).catch(()=>[])})}removeStaticFile(t,r){return M(this,null,function*(){return yield this.api("removeStaticFile",{name:t,projectId:r}).catch(()=>"")})}clearStaticFiles(t){return M(this,null,function*(){return yield this.api("clearStaticFiles",t).catch(()=>"")})}getPluginMaterial(t){return M(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 M(this,null,function*(){return console.log("BaseService.genSource",t),""})}};new Us({type:"local",expired:0,prefix:"__VTJ_"});class z0 extends q0{constructor(){super(...arguments);z(this,"getFileCaches",{})}getExtension(){return M(this,null,function*(){return yield this.api("getExtension",{}).catch(()=>{})})}init(r){return M(this,null,function*(){return(yield this.api("init",r).catch(()=>null))||{}})}saveProject(r,n){return M(this,null,function*(){return!!(yield this.api("saveProject",r,{type:n}).catch(()=>!1))})}saveMaterials(r,n){return M(this,null,function*(){return!!(yield this.api("saveMaterials",{project:r,materials:Ed(n)}).catch(()=>!1))})}saveFile(r){return M(this,null,function*(){return!!(yield this.api("saveFile",r).catch(()=>!1))})}getFile(r){return M(this,null,function*(){return this.getFileCaches[r]||(this.getFileCaches[r]=this.api("getFile",r).catch(()=>null)).finally(()=>{delete this.getFileCaches[r]})})}removeFile(r){return M(this,null,function*(){return!!(yield this.api("removeFile",r).catch(()=>!1))})}saveHistory(r){return M(this,null,function*(){return!!(yield this.api("saveHistory",r).catch(()=>!1))})}removeHistory(r){return M(this,null,function*(){return!!(yield this.api("removeHistory",r).catch(()=>!1))})}getHistory(r){return M(this,null,function*(){return(yield this.api("getHistory",r).catch(()=>null))||{}})}getHistoryItem(r,n){return M(this,null,function*(){return(yield this.api("getHistoryItem",{fId:r,id:n}).catch(()=>null))||{}})}saveHistoryItem(r,n){return M(this,null,function*(){return!!(yield this.api("saveHistoryItem",{fId:r,item:n}).catch(()=>!1))})}removeHistoryItem(r,n){return M(this,null,function*(){return!!(yield this.api("removeHistoryItem",{fId:r,ids:n}).catch(()=>!1))})}}/**!
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 M(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 M0 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)=>M(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 M(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 M(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 M(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,Me.append(y,{v:Er}))),nr(y)&&(yield ki(Me.append(y,{v:Er})));o[d]=r[d]}}if(l==="development"){for(const m of f)yield ki(Me.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:ke,component:Vi},p={path:c,name:Sr,component:n!=null&&n.homepage?Vi:o.startupComponent||F0,meta:u};r.hasRoute(ke)&&r.removeRoute(ke),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 M(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 M(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=>M(this,null,function*(){return(yield this.getDsl(c))||null}),getDslByUrl:c=>M(this,null,function*(){return(yield this.getDslByUrl(c))||null}),options:l});return Kr(et(V({},l),{dsl:r,loader:u}))}getRenderComponent(r,n){return M(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(()=>M(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(()=>M(null,null,function*(){return yield Ys(r,window)}))}}function k0(e){const t=new M0(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&&M(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 M(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)=>M(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 M(this,null,function*(){console.log("BaseService.getExtension")})}init(t){return M(this,null,function*(){return console.log("BaseService.init",t),{}})}saveProject(t,r){return M(this,null,function*(){return!!(yield this.api("saveProject",t,{type:r}).catch(()=>!1))})}saveMaterials(t,r){return M(this,null,function*(){return console.log("BaseService.saveMaterials",t,r),!1})}saveFile(t){return M(this,null,function*(){return console.log("BaseService.saveFile",t),!1})}getFile(t){return M(this,null,function*(){return console.log("BaseService.getFile",t),{}})}removeFile(t){return M(this,null,function*(){return console.log("BaseService.removeFile",t),!1})}saveHistory(t){return M(this,null,function*(){return console.log("BaseService.saveHistory",t),!1})}removeHistory(t){return M(this,null,function*(){return console.log("BaseService.removeHistory",t),!1})}getHistory(t){return M(this,null,function*(){return console.log("BaseService.getHistory",t),{}})}getHistoryItem(t,r){return M(this,null,function*(){return console.log("BaseService.getHistoryItem",t,r),{}})}saveHistoryItem(t,r){return M(this,null,function*(){return console.log("BaseService.saveHistoryItem",t,r),!1})}removeHistoryItem(t,r){return M(this,null,function*(){return console.log("BaseService.removeHistoryItem",t,r),!1})}publish(t){return M(this,null,function*(){return!!(yield this.api("publish",t).catch(()=>!1))})}publishFile(t,r){return M(this,null,function*(){return!!(yield this.api("publishFile",{project:t,file:r}).catch(()=>!1))})}genVueContent(t,r){return M(this,null,function*(){return yield this.api("genVueContent",{project:t,dsl:r}).catch(()=>"")})}parseVue(t,r){return M(this,null,function*(){return yield this.api("parseVue",V({project:t},r))})}createRawPage(t){return M(this,null,function*(){return yield this.api("createRawPage",t).catch(()=>"")})}removeRawPage(t){return M(this,null,function*(){return yield this.api("removeRawPage",t).catch(()=>"")})}uploadStaticFile(t,r){return M(this,null,function*(){return yield this.uploader(t,r).catch(()=>null)})}getStaticFiles(t){return M(this,null,function*(){return yield this.api("getStaticFiles",t).catch(()=>[])})}removeStaticFile(t,r){return M(this,null,function*(){return yield this.api("removeStaticFile",{name:t,projectId:r}).catch(()=>"")})}clearStaticFiles(t){return M(this,null,function*(){return yield this.api("clearStaticFiles",t).catch(()=>"")})}getPluginMaterial(t){return M(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 M(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 M(this,null,function*(){return yield this.api("getExtension",{}).catch(()=>{})})}init(r){return M(this,null,function*(){return(yield this.api("init",r).catch(()=>null))||{}})}saveProject(r,n){return M(this,null,function*(){return!!(yield this.api("saveProject",r,{type:n}).catch(()=>!1))})}saveMaterials(r,n){return M(this,null,function*(){return!!(yield this.api("saveMaterials",{project:r,materials:Ed(n)}).catch(()=>!1))})}saveFile(r){return M(this,null,function*(){return!!(yield this.api("saveFile",r).catch(()=>!1))})}getFile(r){return M(this,null,function*(){return this.getFileCaches[r]||(this.getFileCaches[r]=this.api("getFile",r).catch(()=>null)).finally(()=>{delete this.getFileCaches[r]})})}removeFile(r){return M(this,null,function*(){return!!(yield this.api("removeFile",r).catch(()=>!1))})}saveHistory(r){return M(this,null,function*(){return!!(yield this.api("saveHistory",r).catch(()=>!1))})}removeHistory(r){return M(this,null,function*(){return!!(yield this.api("removeHistory",r).catch(()=>!1))})}getHistory(r){return M(this,null,function*(){return(yield this.api("getHistory",r).catch(()=>null))||{}})}getHistoryItem(r,n){return M(this,null,function*(){return(yield this.api("getHistoryItem",{fId:r,id:n}).catch(()=>null))||{}})}saveHistoryItem(r,n){return M(this,null,function*(){return!!(yield this.api("saveHistoryItem",{fId:r,item:n}).catch(()=>!1))})}removeHistoryItem(r,n){return M(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.25
74
+ * @version 0.12.27
75
75
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
76
- */const W0=["onLaunch","onShow","onHide","onError","onPageNotFound","onUnhandledRejection","onThemeChange","onPageNotFound","onUniNViewMessage","onExit"],Hi="/pages",K0="VTJ",J0="__UNI__1FC118B",Y0="VTJ移动跨端项目",G0="1.0.0",Z0="100",X0=!1,Q0={},ty={enable:!1},ey="3",ry={name:K0,appid:J0,description:Y0,versionName:G0,versionCode:Z0,transformPx:X0,"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:Q0,"mp-weixin":{appid:"",setting:{urlCheck:!1},usingComponents:!0},"mp-alipay":{usingComponents:!0},"mp-baidu":{usingComponents:!0},"mp-toutiao":{usingComponents:!0},uniStatistics:ty,vueVersion:ey},ny=[],iy={navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},oy={autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}},sy={pages:ny,globalStyle:iy,easycom:oy};function ay(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({},ry,t),pagesJson:Object.assign({},sy,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 uy(e){const t={};for(const r in e)Gr[r]||(t[r]=e[r]);return t}function cy(e){var t,r;return((r=(t=e.h5)==null?void 0:t.router)==null?void 0:r.mode)||"hash"}function ly(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 fy(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 hy(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 py(e){var a;const t=hy(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 dy(e,t=window){var p,h,d,m;const{pagesJson:r={},manifestJson:n={}}=e,{topWindow:i,leftWindow:o,rightWindow:s}=ly(r),{navigationBar:a,navigationBarButtons:l,navigationBarSearchInput:u,navigationBarTransparent:c}=py(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__:cy(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__:fy(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 my="4.57";function gy(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({},uy(u)),{navigationBar:ta(u),isNVue:!1}),compilerVersion:my,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 yy(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 vy(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 M(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 by(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 wy(e,t,r,n,i=window){const o=r.map((s,a)=>{const l=by(n,s,a),u=vy(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 _y(e,t,r=window){pn(r,String(e),t)}function Ey(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 Sy(e){const t=ay(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;dy(t,l),gy(t,l),yy(i,l),wy(r,i,o,s,l),_y(a.appid||Date.now(),u,l);const p=r.createApp(f(n));return p.use(Ey,i),p.use(c),p}function xy(e,t){const r={};return Object.entries(e).forEach(([n,i])=>{W0.includes(n)&&i&&(r[n]=t(i))}),r}function qi(e,t){return()=>M(null,null,function*(){const r=yield e.getDsl(t);if(r){const{renderer:n}=e.createDslRenderer(r);return n}return null})}function Ty(n){return M(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 Ay(){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 Ry(e=tt.Runtime){return e===tt.Runtime?Object.assign({}):Object.assign({})}const Oy=n0({loading:Ay,notify:ea}),ra=new z0(H0(ea)),$y=Ry(),{provider:jy,onReady:Dy}=M0({nodeEnv:"production",mode:tt.Runtime,modules:$y,materialPath:"../",adapter:Oy,service:ra,dependencies:{Vue:()=>vn(()=>import("./@dcloudio-uni-h5-vue-BvXzaXGf.js").then(e=>e.B),__vite__mapDeps([0,1,2]),import.meta.url),VueRouter:()=>vn(()=>import("./vue-router-Cmjm9K3r.js"),__vite__mapDeps([3,0,1,2]),import.meta.url)}}),By=e=>M(null,null,function*(){const t=(yield ra.getExtension().catch(()=>null))||{},r=top||window,n=yield U0(t.enhance,r.location.pathname),{Vue:i,UniH5:o}=window,s=e.project;if(!s)return;const a=s.uniConfig||{},l=xy(a,d=>qe(d,window,!1,!0)),{manifestJson:u,pagesJson:c,css:f}=a,p=yield Ty(e,!0),h=Sy({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)});Dy(()=>By(jy));
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 M(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()=>M(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 M(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}=k0({nodeEnv:"production",mode:tt.Runtime,modules:jy,materialPath:"../",adapter:$y,service:ra,dependencies:{Vue:()=>vn(()=>import("./@dcloudio-uni-h5-vue-BvXzaXGf.js").then(e=>e.B),__vite__mapDeps([0,1,2]),import.meta.url),VueRouter:()=>vn(()=>import("./vue-router-Cmjm9K3r.js"),__vite__mapDeps([3,0,1,2]),import.meta.url)}}),Cy=e=>M(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-CcwBVtYf.js"></script>
16
+ <script type="module" crossorigin src="./assets/index-De3VVH3V.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-BvXzaXGf.js">
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vtj/pro",
3
3
  "private": false,
4
- "version": "0.12.25",
4
+ "version": "0.12.27",
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.25",
25
- "@vtj/local": "~0.12.25",
26
- "@vtj/renderer": "~0.12.25",
27
- "@vtj/materials": "~0.12.25",
28
- "@vtj/designer": "~0.12.25",
29
- "@vtj/uni": "~0.12.25"
24
+ "@vtj/designer": "~0.12.27",
25
+ "@vtj/local": "~0.12.27",
26
+ "@vtj/uni": "~0.12.27",
27
+ "@vtj/renderer": "~0.12.27",
28
+ "@vtj/materials": "~0.12.27",
29
+ "@vtj/core": "~0.12.27"
30
30
  },
31
31
  "devDependencies": {
32
32
  "vue": "~3.5.5",
33
33
  "vue-router": "~4.5.0",
34
- "@vtj/cli": "~0.12.2",
35
- "@vtj/icons": "~0.12.25",
36
- "@vtj/ui": "~0.12.25",
37
- "@vtj/charts": "~0.12.25",
38
- "@vtj/utils": "~0.12.25"
34
+ "@vtj/cli": "~0.12.3",
35
+ "@vtj/icons": "~0.12.27",
36
+ "@vtj/utils": "~0.12.27",
37
+ "@vtj/ui": "~0.12.27",
38
+ "@vtj/charts": "~0.12.27"
39
39
  },
40
40
  "exports": {
41
41
  "./vite": {