@vtj/pro 0.13.19 → 0.13.21

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 (33) 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/icons/style.css +1 -1
  12. package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +2 -2
  13. package/dist/@vtj/materials/deps/@vtj/ui/style.css +1 -1
  14. package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +2 -2
  15. package/dist/assets/Editor-BaZFa4li-B8ToeLyq.css +1 -0
  16. package/dist/assets/Editor-BaZFa4li-BmYuBiQ1.js +317 -0
  17. package/dist/assets/{auth-D011FqKZ.js → auth-CK9RIJ36.js} +1 -1
  18. package/dist/assets/{index-Dw9xD-iv.js → index-CCqFsHO3.js} +2 -2
  19. package/dist/assets/index-ClrYYAkp.js +1 -0
  20. package/dist/assets/{mockjs-BTOyXKF2.js → mockjs-DVrd8ONE.js} +3 -3
  21. package/dist/assets/page-BvYZ0hVs.js +2 -0
  22. package/dist/assets/preview-DQA4_fFU.js +2 -0
  23. package/dist/assets/utils-BBudtdLI.js +1 -0
  24. package/dist/index.html +3 -3
  25. package/dist/uni/assets/{index-CgfquXG2.js → index-BDQ8-APp.js} +6 -6
  26. package/dist/uni/index.html +1 -1
  27. package/package.json +13 -13
  28. package/dist/assets/Editor-8RJefU0w-50xFs9oi.js +0 -300
  29. package/dist/assets/Editor-8RJefU0w-oS7Cs8w2.css +0 -1
  30. package/dist/assets/index-CBTqCTOw.js +0 -1
  31. package/dist/assets/page-B_HQB6rO.js +0 -2
  32. package/dist/assets/preview-Bz0z4df6.js +0 -2
  33. package/dist/assets/utils-BrU9KcsQ.js +0 -1
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-ewcyuiJO.js","./vue-DMnDC9ZE.js"])))=>i.map(i=>d[i]);
2
+ var h=Object.defineProperty;var R=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var x=(o,t,e)=>t in o?h(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,y=(o,t)=>{for(var e in t||(t={}))w.call(t,e)&&x(o,e,t[e]);if(R)for(var e of R(t))P.call(t,e)&&x(o,e,t[e]);return o};var c=(o,t,e)=>new Promise((_,s)=>{var u=r=>{try{p(e.next(r))}catch(i){s(i)}},d=r=>{try{p(e.throw(r))}catch(i){s(i)}},p=r=>r.done?_(r.value):Promise.resolve(r.value).then(u,d);p((e=e.apply(o,t)).next())});import{_ as A}from"./monaco-editor-xcHgnT1C.js";import{useRoute as g}from"./vue-router-ewcyuiJO.js";import"./element-plus-Ah0xLs8C.js";import"./vxe-CUfKLI0g.js";import{M as k,k as D,R as V,A as T,y as B,D as I,j as L}from"./Editor-BaZFa4li-BmYuBiQ1.js";import{a as j,n as C,l as M,E as O}from"./utils-BBudtdLI.js";import{x as S}from"./@vueuse-WKVogrsa.js";import{d as z,az as E,e as H,h as N,L as Q,P as b,o as q,Q as F,i as G}from"./vue-DMnDC9ZE.js";import"./lodash-es-D-A_gPnj.js";import"./@element-plus-icons-vue-Bs81Xeyi.js";import"./shared-CiMZBXIr.js";import"./dayjs-C1e0w4cr.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-DVrd8ONE.js";import"./marked-BQZxLJfc.js";const it=z({__name:"page",setup(o){return c(this,null,function*(){let t,e;const _=new k(D(C)),s=([t,e]=E(()=>_.getExtension().catch(()=>null)),t=yield t,e(),t),u=V({loading:M,notify:C,useTitle:S,alert:j,access:s==null?void 0:s.access}),d=s?([t,e]=E(()=>new O(s).load()),t=yield t,e(),t):{},{__BASE_PATH__:p="/"}=s||{},{provider:r,onReady:i}=T({mode:B.Runtime,service:_,materialPath:p,adapter:y(y({},u),d.adapter),dependencies:{Vue:()=>A(()=>import("./vue-DMnDC9ZE.js").then(a=>a.aA),[],import.meta.url),VueRouter:()=>A(()=>import("./vue-router-ewcyuiJO.js"),__vite__mapDeps([0,1]),import.meta.url)}}),l=g(),f=H(),n=G(),v=a=>c(null,null,function*(){f.value=yield r.getRenderComponent(l.params.id.toString(),m=>{L(a,l,m)})});return i(()=>c(null,null,function*(){const a=n==null?void 0:n.appContext.app;a&&(a.use(I),a.use(r),v(a))})),N(()=>l.params.id,a=>c(null,null,function*(){if(a){const m=n==null?void 0:n.appContext.app;if(!m)return;v(m)}})),(a,m)=>f.value?(q(),Q(F(f.value),{key:0})):b("",!0)})}});export{it as default};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-ewcyuiJO.js","./vue-DMnDC9ZE.js"])))=>i.map(i=>d[i]);
2
+ var x=Object.defineProperty;var R=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var w=(o,e,t)=>e in o?x(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,d=(o,e)=>{for(var t in e||(e={}))C.call(e,t)&&w(o,t,e[t]);if(R)for(var t of R(e))P.call(e,t)&&w(o,t,e[t]);return o};var f=(o,e,t)=>new Promise((c,s)=>{var _=a=>{try{i(t.next(a))}catch(p){s(p)}},n=a=>{try{i(t.throw(a))}catch(p){s(p)}},i=a=>a.done?c(a.value):Promise.resolve(a.value).then(_,n);i((t=t.apply(o,e)).next())});import{_ as y}from"./monaco-editor-xcHgnT1C.js";import{useRoute as k}from"./vue-router-ewcyuiJO.js";import"./element-plus-Ah0xLs8C.js";import"./vxe-CUfKLI0g.js";import{M as D,k as I,R as V,A as g,y as T,I as B,D as L,j}from"./Editor-BaZFa4li-BmYuBiQ1.js";import{a as M,n as A,l as O,E as S}from"./utils-BBudtdLI.js";import{x as z}from"./@vueuse-WKVogrsa.js";import{d as H,az as E,e as N,L as Q,P as b,o as q,Q as F,i as G}from"./vue-DMnDC9ZE.js";import"./lodash-es-D-A_gPnj.js";import"./@element-plus-icons-vue-Bs81Xeyi.js";import"./shared-CiMZBXIr.js";import"./dayjs-C1e0w4cr.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-DVrd8ONE.js";import"./marked-BQZxLJfc.js";const pe=H({__name:"preview",setup(o){return f(this,null,function*(){let e,t;const c=new D(I(A)),s=([e,t]=E(()=>c.getExtension().catch(()=>null)),e=yield e,t(),e||{}),_=V({loading:O,notify:A,useTitle:z,alert:M,access:s==null?void 0:s.access}),n=s?([e,t]=E(()=>new S(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:i="/"}=s||{},{provider:a,onReady:p}=g({mode:T.Runtime,service:c,materialPath:i,adapter:d(d({},_),n.adapter),dependencies:{Vue:()=>y(()=>import("./vue-DMnDC9ZE.js").then(m=>m.aA),[],import.meta.url),VueRouter:()=>y(()=>import("./vue-router-ewcyuiJO.js"),__vite__mapDeps([0,1]),import.meta.url)}}),v=k(),u=N(),l=G();return p(()=>f(null,null,function*(){const m=yield B(s.enhance),r=l==null?void 0:l.appContext.app;r&&(n.install&&n.install(r),m&&r.use(m,a),r.use(L),r.use(a),u.value=yield a.getRenderComponent(v.params.id.toString(),h=>{j(r,v,h)}))})),(m,r)=>u.value?(q(),Q(F(u.value),{key:0})):b("",!0)})}});export{pe as default};
@@ -0,0 +1 @@
1
+ var u=Object.defineProperty;var S=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;var c=(t,a,s)=>a in t?u(t,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[a]=s,_=(t,a)=>{for(var s in a||(a={}))T.call(a,s)&&c(t,s,a[s]);if(S)for(var s of S(a))f.call(a,s)&&c(t,s,a[s]);return t};var E=(t,a,s)=>c(t,typeof a!="symbol"?a+"":a,s);var g=(t,a,s)=>new Promise((o,r)=>{var e=n=>{try{i(s.next(n))}catch(l){r(l)}},d=n=>{try{i(s.throw(n))}catch(l){r(l)}},i=n=>n.done?o(n.value):Promise.resolve(n.value).then(e,d);i((s=s.apply(t,a)).next())});import{aA as I}from"./vue-DMnDC9ZE.js";import{a as O,N as V,H as A,t as m,c as h,U as P,P as b,d as R,J as B,B as M,e as y,V as N,m as D,r as w,f as L,g as j,h as k,C as x,i as K,O as H,l as G,S as U,x as W,n as Y,o as $,p as F,W as v,q as X,s as z,u as C,v as J,z as Z,$ as q,K as Q,L as aa,F as sa,Q as ea,Y as ta,G as na,T as ra,X as ia,Z as oa,_ as la,a0 as Ea,a1 as _a,a2 as da,a3 as ca,a4 as Sa,a5 as ga,a6 as pa,a7 as ua,a8 as Ta,a9 as fa,aa as Ia,ab as Oa,ac as Va,ad as Aa,ae as ma,af as ha,ag as Pa,ah as ba,ai as Ra,aj as Ba,ak as Ma,al as ya,am as Na,an as Da,ao as wa,ap as La,aq as ja,E as ka,ar as xa,as as Ka,at as Ha,au as Ga,av as Ua,aw as Wa,ax as Ya,ay as $a,az as Fa,aA as va,aB as Xa}from"./Editor-BaZFa4li-BmYuBiQ1.js";import{E as za,a as Ca,b as Ja,c as Za}from"./element-plus-Ah0xLs8C.js";const qa=Object.freeze(Object.defineProperty({__proto__:null,API_METHOD_TYPES:O,ActionMenu:V,Assets:A,Binder:m,Box:h,Designer:P,DevTools:b,EVENT_MODIFIERS:R,Editor:B,Engine:M,EventBinder:y,GET_TOKENS_LINK:N,Icon:D,Item:w,KEYBOARD_EVENT_LIST:L,MAX_TOKENS:j,MOBILE_SIZE:k,MOUSE_EVENT_LIST:x,NAME_REGEX:K,NPM_REGISTRY_URL:H,OpenApi:G,PAD_SIZE:U,Panel:W,REPORT_API:Y,RegionType:$,RegionWrapper:F,Renderer:v,SAVE_BLOCK_FILE_FINISH:X,SESSION_ID_KEY:z,STATE_KEY:C,SetterView:J,SetterWrapper:Z,Simulator:q,Skeleton:Q,SkeletonWrapper:aa,SlotsPicker:sa,State:ea,Tabs:ta,VERSION_REGEX:na,VTJ_DESIGNER_VERSION:ra,VUE_DEVTOOLS_FRAME_STATE_KEY:ia,VUE_DEVTOOLS_OVERLAY_PATH:oa,VUE_DEVTOOLS_PATH:la,VariableBinder:Ea,Viewer:_a,Viewport:da,WidgetGroup:ca,WidgetWrapper:Sa,alert:ga,builtInDeps:pa,builtInMaterials:ua,builtInSetters:Ta,builtInWidgets:fa,confirm:Ia,createSlotsPicker:Oa,defaultSetter:Va,depsManager:Aa,engineKey:ma,expressionValidate:ha,getClassProperties:Pa,loading:ba,message:Ra,normalizedStyle:Ba,notify:Ma,proxyContext:ya,readJsonFile:Na,regions:Da,setterManager:wa,setters:La,useEngine:ja,widgetManager:ka,widgets:xa},Symbol.toStringTag,{value:"Module"}));class ts{constructor(a){E(this,"urls",[]);E(this,"library","");E(this,"params",[]);E(this,"__BASE_PATH__","/");this.config=a;const s=_(_(_({},Wa),qa),Ua),o={Vue:I,__VTJ_PRO__:s,VtjUtils:Ga,VtjIcons:Ha,VtjUI:Ka,ElementPlus:za};for(const[l,p]of Object.entries(o))window[l]=p;const{extension:r,__BASE_PATH__:e="/"}=a||{},{urls:d=[],library:i,params:n=[]}=r||{};i&&(this.urls=d,this.library=i,this.params=n,this.__BASE_PATH__=e)}load(){return g(this,null,function*(){let a={};if(this.library){const s=this.__BASE_PATH__,o=this.urls.filter(e=>Ya(e)).map(e=>`${s}${e}`),r=this.urls.filter(e=>$a(e)).map(e=>`${s}${e}`);if(Fa(o),r.length){const e=yield va(r,this.library).catch(()=>null);e&&typeof e=="function"?a=e.call(e,this.config,...this.params):a=e||{}}}return Object.assign({},this.getEngineOptions(),a)})}getEngineOptions(){const a=["materialPath","pageBasePath","pageRouteName","remote","checkVersion","noMask"];return Xa(this.config,a)}}function ns(){return Za.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"})}function rs(t,a="",s="warning"){Ja({title:a,message:t,type:s})}function is(t,a){return Ca.alert(t,a)}export{ts as E,is as a,ns as l,rs as n};
package/dist/index.html CHANGED
@@ -9,7 +9,7 @@
9
9
  <meta http-equiv="Expires" content="0"/>
10
10
  <title>低代码设计器 - VTJ.PRO</title>
11
11
  <script>
12
- var __BUILD_TIME__ = '1757137442004';
12
+ var __BUILD_TIME__ = '1757558205671';
13
13
  (function () {
14
14
  const regex = /<!--{{(\d*)}}-->/;
15
15
  window.fetch('?t=' + Date.now()).then(async (res) => {
@@ -25,9 +25,9 @@
25
25
  });
26
26
  })();
27
27
  </script>
28
- <!--{{1757137442004}}-->
28
+ <!--{{1757558205671}}-->
29
29
 
30
- <script type="module" crossorigin src="./assets/index-Dw9xD-iv.js"></script>
30
+ <script type="module" crossorigin src="./assets/index-CCqFsHO3.js"></script>
31
31
  <link rel="modulepreload" crossorigin href="./assets/vue-DMnDC9ZE.js">
32
32
  <link rel="modulepreload" crossorigin href="./assets/lodash-es-D-A_gPnj.js">
33
33
  <link rel="modulepreload" crossorigin href="./assets/@vueuse-WKVogrsa.js">
@@ -46,7 +46,7 @@ function print() { __p += __j.call(arguments, '') }
46
46
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
47
47
  * @name @vtj/core
48
48
  * @author CHC chenhuachun1549@dingtalk.com
49
- * @version 0.13.19
49
+ * @version 0.13.21
50
50
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
51
51
  */const cg="VueMaterial",lg="VueRouterMaterial",fg={[cg]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[lg]:["RouterView","RouterLink"]};let hg=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 pg=Object.defineProperty,dg=(e,t,r)=>t in e?pg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ft=(e,t,r)=>dg(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 gg=e=>typeof e=="symbol";new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(gg));function $s(e,t){return function(){return e.apply(t,arguments)}}const{toString:mg}=Object.prototype,{getPrototypeOf:_n}=Object,{iterator:or,toStringTag:Os}=Symbol,sr=(e=>t=>{const r=mg.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),vt=e=>(e=e.toLowerCase(),t=>sr(t)===e),ar=e=>t=>typeof t===e,{isArray:ce}=Array,Ee=ar("undefined");function Re(e){return e!==null&&!Ee(e)&&e.constructor!==null&&!Ee(e.constructor)&&at(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const js=vt("ArrayBuffer");function yg(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&js(e.buffer),t}const vg=ar("string"),at=ar("function"),Ds=ar("number"),Ae=e=>e!==null&&typeof e=="object",bg=e=>e===!0||e===!1,Ve=e=>{if(sr(e)!=="object")return!1;const t=_n(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Os in e)&&!(or in e)},wg=e=>{if(!Ae(e)||Re(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch(t){return!1}},_g=vt("Date"),Eg=vt("File"),Sg=vt("Blob"),xg=vt("FileList"),Tg=e=>Ae(e)&&at(e.pipe),Rg=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||at(e.append)&&((t=sr(e))==="formdata"||t==="object"&&at(e.toString)&&e.toString()==="[object FormData]"))},Ag=vt("URLSearchParams"),[$g,Og,jg,Dg]=["ReadableStream","Request","Response","Headers"].map(vt),Bg=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function $e(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),ce(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{if(Re(e))return;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){if(Re(e))return null;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 Vt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Cs=e=>!Ee(e)&&e!==Vt;function Jr(){const{caseless:e}=Cs(this)&&this||{},t={},r=(n,i)=>{const o=e&&Bs(t,i)||i;Ve(t[o])&&Ve(n)?t[o]=Jr(t[o],n):Ve(n)?t[o]=Jr({},n):ce(n)?t[o]=n.slice():t[o]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&$e(arguments[n],r);return t}const Cg=(e,t,r,{allOwnKeys:n}={})=>($e(t,(i,o)=>{r&&at(i)?e[o]=$s(i,r):e[o]=i},{allOwnKeys:n}),e),Ng=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Pg=(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)},Ig=(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&&_n(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kg=(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},Fg=e=>{if(!e)return null;if(ce(e))return e;let t=e.length;if(!Ds(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Mg=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&_n(Uint8Array)),Ug=(e,t)=>{const r=(e&&e[or]).call(e);let n;for(;(n=r.next())&&!n.done;){const i=n.value;t.call(e,i[0],i[1])}},Lg=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Vg=vt("HTMLFormElement"),Hg=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),ki=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),qg=vt("RegExp"),Ns=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};$e(r,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(n[o]=s||i)}),Object.defineProperties(e,n)},zg=e=>{Ns(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+"'")})}})},Kg=(e,t)=>{const r={},n=i=>{i.forEach(o=>{r[o]=!0})};return ce(e)?n(e):n(String(e).split(t)),r},Wg=()=>{},Jg=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Yg(e){return!!(e&&at(e.append)&&e[Os]==="FormData"&&e[or])}const Gg=e=>{const t=new Array(10),r=(n,i)=>{if(Ae(n)){if(t.indexOf(n)>=0)return;if(Re(n))return n;if(!("toJSON"in n)){t[i]=n;const o=ce(n)?[]:{};return $e(n,(s,a)=>{const l=r(s,i+1);!Ee(l)&&(o[a]=l)}),t[i]=void 0,o}}return n};return r(e,0)},Zg=vt("AsyncFunction"),Xg=e=>e&&(Ae(e)||at(e))&&at(e.then)&&at(e.catch),Ps=((e,t)=>e?setImmediate:t?((r,n)=>(Vt.addEventListener("message",({source:i,data:o})=>{i===Vt&&o===r&&n.length&&n.shift()()},!1),i=>{n.push(i),Vt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",at(Vt.postMessage)),Qg=typeof queueMicrotask<"u"?queueMicrotask.bind(Vt):typeof process<"u"&&process.nextTick||Ps,tm=e=>e!=null&&at(e[or]),R={isArray:ce,isArrayBuffer:js,isBuffer:Re,isFormData:Rg,isArrayBufferView:yg,isString:vg,isNumber:Ds,isBoolean:bg,isObject:Ae,isPlainObject:Ve,isEmptyObject:wg,isReadableStream:$g,isRequest:Og,isResponse:jg,isHeaders:Dg,isUndefined:Ee,isDate:_g,isFile:Eg,isBlob:Sg,isRegExp:qg,isFunction:at,isStream:Tg,isURLSearchParams:Ag,isTypedArray:Mg,isFileList:xg,forEach:$e,merge:Jr,extend:Cg,trim:Bg,stripBOM:Ng,inherits:Pg,toFlatObject:Ig,kindOf:sr,kindOfTest:vt,endsWith:kg,toArray:Fg,forEachEntry:Ug,matchAll:Lg,isHTMLForm:Vg,hasOwnProperty:ki,hasOwnProp:ki,reduceDescriptors:Ns,freezeMethods:zg,toObjectSet:Kg,toCamelCase:Hg,noop:Wg,toFiniteNumber:Jg,findKey:Bs,global:Vt,isContextDefined:Cs,isSpecCompliantForm:Yg,toJSONObject:Gg,isAsyncFn:Zg,isThenable:Xg,setImmediate:Ps,asap:Qg,isIterable:tm};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)}R.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:R.toJSONObject(this.config),code:this.code,status:this.status}}});const Is=W.prototype,ks={};["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=>{ks[e]={value:e}});Object.defineProperties(W,ks);Object.defineProperty(Is,"isAxiosError",{value:!0});W.from=(e,t,r,n,i,o)=>{const s=Object.create(Is);return R.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 em=null;function Yr(e){return R.isPlainObject(e)||R.isArray(e)}function Fs(e){return R.endsWith(e,"[]")?e.slice(0,-2):e}function Fi(e,t,r){return e?e.concat(t).map(function(n,i){return n=Fs(n),!r&&i?"["+n+"]":n}).join(r?".":""):t}function rm(e){return R.isArray(e)&&!e.some(Yr)}const nm=R.toFlatObject(R,{},null,function(e){return/^is[A-Z]/.test(e)});function ur(e,t,r){if(!R.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=R.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,d){return!R.isUndefined(d[h])});const n=r.metaTokens,i=r.visitor||u,o=r.dots,s=r.indexes,a=(r.Blob||typeof Blob<"u"&&Blob)&&R.isSpecCompliantForm(t);if(!R.isFunction(i))throw new TypeError("visitor must be a function");function l(h){if(h===null)return"";if(R.isDate(h))return h.toISOString();if(R.isBoolean(h))return h.toString();if(!a&&R.isBlob(h))throw new W("Blob is not supported. Use a Buffer instead.");return R.isArrayBuffer(h)||R.isTypedArray(h)?a&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function u(h,d,g){let b=h;if(h&&!g&&typeof h=="object"){if(R.endsWith(d,"{}"))d=n?d:d.slice(0,-2),h=JSON.stringify(h);else if(R.isArray(h)&&rm(h)||(R.isFileList(h)||R.endsWith(d,"[]"))&&(b=R.toArray(h)))return d=Fs(d),b.forEach(function(_,y){!(R.isUndefined(_)||_===null)&&t.append(s===!0?Fi([d],y,o):s===null?d:d+"[]",l(_))}),!1}return Yr(h)?!0:(t.append(Fi(g,d,o),l(h)),!1)}const c=[],f=Object.assign(nm,{defaultVisitor:u,convertValue:l,isVisitable:Yr});function p(h,d){if(!R.isUndefined(h)){if(c.indexOf(h)!==-1)throw Error("Circular reference detected in "+d.join("."));c.push(h),R.forEach(h,function(g,b){(!(R.isUndefined(g)||g===null)&&i.call(t,g,R.isString(b)?b.trim():b,d,f))===!0&&p(g,d?d.concat(b):[b])}),c.pop()}}if(!R.isObject(e))throw new TypeError("data must be an object");return p(e),t}function Mi(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function En(e,t){this._pairs=[],e&&ur(e,this,t)}const Ms=En.prototype;Ms.append=function(e,t){this._pairs.push([e,t])};Ms.toString=function(e){const t=e?function(r){return e.call(this,r,Mi)}:Mi;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function im(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Us(e,t,r){if(!t)return e;const n=r&&r.encode||im;R.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let o;if(i?o=i(t,r):o=R.isURLSearchParams(t)?t.toString():new En(t,r).toString(n),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}let Ui=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){R.forEach(this.handlers,function(r){r!==null&&t(r)})}};const Ls={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},om=typeof URLSearchParams<"u"?URLSearchParams:En,sm=typeof FormData<"u"?FormData:null,am=typeof Blob<"u"?Blob:null,um={isBrowser:!0,classes:{URLSearchParams:om,FormData:sm,Blob:am},protocols:["http","https","file","blob","url","data"]},Sn=typeof window<"u"&&typeof document<"u",Gr=typeof navigator=="object"&&navigator||void 0,cm=Sn&&(!Gr||["ReactNative","NativeScript","NS"].indexOf(Gr.product)<0),lm=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",fm=Sn&&window.location.href||"http://localhost",hm=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Sn,hasStandardBrowserEnv:cm,hasStandardBrowserWebWorkerEnv:lm,navigator:Gr,origin:fm},Symbol.toStringTag,{value:"Module"})),nt=V(V({},hm),um);function pm(e,t){return ur(e,new nt.classes.URLSearchParams,V({visitor:function(r,n,i,o){return nt.isNode&&R.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function dm(e){return R.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function gm(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 Vs(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&&R.isArray(i)?i.length:s,l?(R.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!a):((!i[s]||!R.isObject(i[s]))&&(i[s]=[]),t(r,n,i[s],o)&&R.isArray(i[s])&&(i[s]=gm(i[s])),!a)}if(R.isFormData(e)&&R.isFunction(e.entries)){const r={};return R.forEachEntry(e,(n,i)=>{t(dm(n),i,r,0)}),r}return null}function mm(e,t,r){if(R.isString(e))try{return(t||JSON.parse)(e),R.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Oe={transitional:Ls,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=R.isObject(e);if(i&&R.isHTMLForm(e)&&(e=new FormData(e)),R.isFormData(e))return n?JSON.stringify(Vs(e)):e;if(R.isArrayBuffer(e)||R.isBuffer(e)||R.isStream(e)||R.isFile(e)||R.isBlob(e)||R.isReadableStream(e))return e;if(R.isArrayBufferView(e))return e.buffer;if(R.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 pm(e,this.formSerializer).toString();if((o=R.isFileList(e))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return ur(o?{"files[]":e}:e,s&&new s,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),mm(e)):e}],transformResponse:[function(e){const t=this.transitional||Oe.transitional,r=t&&t.forcedJSONParsing,n=this.responseType==="json";if(R.isResponse(e)||R.isReadableStream(e))return e;if(e&&R.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:nt.classes.FormData,Blob:nt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};R.forEach(["delete","get","head","post","put","patch"],e=>{Oe.headers[e]={}});const ym=R.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(`
52
52
  `).forEach(function(o){i=o.indexOf(":"),r=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!r||t[r]&&ym[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Li=Symbol("internals");function ge(e){return e&&String(e).trim().toLowerCase()}function He(e){return e===!1||e==null?e:R.isArray(e)?e.map(He):String(e)}function bm(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 wm=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Tr(e,t,r,n,i){if(R.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!R.isString(t)){if(R.isString(n))return t.indexOf(n)!==-1;if(R.isRegExp(n))return n.test(t)}}function _m(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Em(e,t){const r=R.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 ut=class{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function o(a,l,u){const c=ge(l);if(!c)throw new Error("header name must be a non-empty string");const f=R.findKey(i,c);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=He(a))}const s=(a,l)=>R.forEach(a,(u,c)=>o(u,c,l));if(R.isPlainObject(t)||t instanceof this.constructor)s(t,r);else if(R.isString(t)&&(t=t.trim())&&!wm(t))s(vm(t),r);else if(R.isObject(t)&&R.isIterable(t)){let a={},l,u;for(const c of t){if(!R.isArray(c))throw TypeError("Object iterator must return a key-value pair");a[u=c[0]]=(l=a[u])?R.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}s(a,r)}else t!=null&&o(r,t,n);return this}get(t,r){if(t=ge(t),t){const n=R.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return bm(i);if(R.isFunction(r))return r.call(this,i,n);if(R.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=ge(t),t){const n=R.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Tr(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function o(s){if(s=ge(s),s){const a=R.findKey(n,s);a&&(!r||Tr(n,n[a],a,r))&&(delete n[a],i=!0)}}return R.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||Tr(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const r=this,n={};return R.forEach(this,(i,o)=>{const s=R.findKey(n,o);if(s){r[s]=He(i),delete r[o];return}const a=t?_m(o):String(o).trim();a!==o&&delete r[o],r[a]=He(i),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return R.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&R.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(`
@@ -57,10 +57,10 @@ function print() { __p += __j.call(arguments, '') }
57
57
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
58
58
  * @name @vtj/renderer
59
59
  * @author CHC chenhuachun1549@dingtalk.com
60
- * @version 0.13.19
60
+ * @version 0.13.21
61
61
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
62
- */const Dr="0.13.19";var tt=(e=>(e.Runtime="Runtime",e.Design="Design",e.Raw="Raw",e.VNode="VNode",e))(tt||{});const eo=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],y1=["vIf","vElseIf","vElse","vShow","vModel","vFor","vBind","vHtml"],v1={String,Number,Boolean,Array,Object,Function,Date},We="VtjPage",Br="VtjHomepage",b1="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,svg".split(","),w1="component,slot".split(",");function Me(e,t){return e.map(r=>Ge(r)||r.startsWith("/")?r:`${t}${r}`)}function fr(e){return/\.css$/.test(e)}function hr(e){return/\.js$/.test(e)}function _1(e){return/\.json$/.test(e)}function E1(e,t=!1){return t&&e.endsWith(".prod.js")?e.replace(".prod.js",".js"):e}function S1(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:g,localeLibrary:b})=>{p==null||p.forEach(_=>{hr(_)&&i.push(E1(_,r)),fr(_)&&o.push(_)}),d&&(a.push(d),l[d]=Me(p||[],t),b&&(u[d]=b)),h&&s.push(h),g&&c.push(g),d&&g&&(f[g]=d)}),{scripts:Me(i,t),css:Me(o,t),materials:Me(s,t),libraryExports:a,materialExports:Yd(c),materialMapLibrary:f,libraryMap:l,libraryLocaleMap:u}}function x1(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 T1(e=[]){const t=e.filter(n=>fr(n)),r=e.filter(n=>hr(n));return{css:t,js:r}}function R1(e,t){const r=u=>{const c=[];let f=0;for(;f<u.length;){if(/\s/.test(u[f])){f++;continue}if(u.substring(f,f+2)==="/*"){const _=u.indexOf("*/",f+2);if(_!==-1){f=_+2;continue}}if(u[f]==="@"){const _=f;for(;f<u.length&&u[f]!=="{"&&u[f]!==";";)f++;const y=u.substring(_,f).trim(),v=y.includes("@keyframes");if(u[f]===";")c.push({type:"simple-at-rule",content:u.substring(_,f+1)}),f++;else if(u[f]==="{"){const w=f+1;let S=1;for(f++;f<u.length&&S>0;)u[f]==="{"?S++:u[f]==="}"&&S--,f++;const m=u.substring(_,f),x=u.substring(w,f-1);c.push({type:v?"keyframes":"at-rule",rule:y,content:m,inner:x})}continue}const p=f;for(;f<u.length&&u[f]!=="{";)f++;if(f>=u.length)break;const h=u.substring(p,f).trim();if(!h){f++;continue}const d=f+1;let g=1;for(f++;f<u.length&&g>0;)u[f]==="{"?g++:u[f]==="}"&&g--,f++;const b=u.substring(d,f-1);c.push({type:"rule",selector:h,content:b.trim()})}return c},n=u=>{const c=u.trim();return/^(from|to|\d+(\.\d+)?%)$/.test(c)},i=u=>u.replace(/::v-deep\(/g,":deep(").replace(/::v-deep\s+/g,":deep(").replace(/\/deep\//g," ").replace(/>>>/g," ").replace(/(.*?):deep\(([^)]+)\)/g,(c,f,p)=>{const h=f.trim(),d=p.trim();return h?`${h}[${t}] ${d}`:d}),o=u=>{const c=u.trim();if(!c||c.includes(`[${t}]`)||/^(:root|:host|html|body)(\s|$|:|\.|\#|\[)/.test(c)||n(c))return c;const f=c.match(/^(.+?)((?:::?[\w-]+(?:\([^)]*\))?)*)\s*$/);if(f){const[,p,h=""]=f,d=p.trim();return d?`${d}[${t}]${h}`:c}return`${c}[${t}]`},s=u=>i(u).split(",").map(c=>o(c)).filter(c=>c.trim()).join(", "),a=u=>u.map(c=>{switch(c.type){case"simple-at-rule":return c.content;case"keyframes":return c.content;case"at-rule":try{const p=r(c.inner),h=a(p);return`${c.rule} { ${h} }`}catch(p){return c.content}case"rule":if(!c.selector||!c.content)return"";const f=s(c.selector);return f.trim()?`${f} { ${c.content} }`:"";default:return""}}).filter(c=>c.trim()).join(" "),l=u=>u.replace(/\s*{\s*/g," { ").replace(/\s*}\s*/g," } ").replace(/\s*;\s*/g,"; ").replace(/\s*,\s*/g,", ").replace(/\s+/g," ").replace(/^\s+|\s+$/g,"").replace(/\s*}\s*}/g," } }").trim();try{const u=e.replace(/\/\*(?!\s*!)[\s\S]*?\*\//g,"").replace(/^\s+|\s+$/gm,"").replace(/\n\s*\n/g,`
63
- `),c=r(u),f=a(c);return l(f)}catch(u){return console.error("CSS scoping failed:",u),console.error("Input CSS:",e),e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/(@keyframes\s+[^{]+\s*{[^{}]*(?:{[^}]*}[^{}]*)*})/g,c=>c).replace(/([^{}@]+)(?=\s*{)/g,c=>{const f=c.trim();return!f||f.startsWith("@")||f.includes(`[${t}]`)||n(f)?c:`${f}[${t}]`})}}function ia(e){return Ct(e)?e:JSON.stringify(e)}function pr(e,t,r,n=!1){const i=e.CSSStyleSheet,o=n?`data-v-${t}`:t,s=n?R1(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 A1(e,t){return k(this,null,function*(){const r=yield window.fetch(t).then(n=>n.text()).catch(()=>"");r&&pr(window,e,r)})}function oa(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 sa(n,i){return k(this,arguments,function*(e,t,r=window){const o=r.document,s=r.document.head;let a=r[t];return a?a.default||a:new Promise((l,u)=>{for(const c of e){const f=o.createElement("script");f.src=c,f.onload=()=>{a=r[t],a?l(a.default||a):u(null)},f.onerror=p=>{u(p)},s.appendChild(f)}})})}function $1(e){return zt(e)||zt(e==null?void 0:e.install)}function O1(e){return w1.includes(e)}function j1(e){return b1.includes(e)}function Se(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 xe(e,t,r=!1,n=!1,i=!1){var o;try{const s=['"use strict";',"var __self = arguments[0];"];s.push("return ");let a=(e.value||"").trim();i||(a=a.replace(/this(\W|$)/g,(u,c)=>`__self${c}`)),a=s.join(`
62
+ */const Dr="0.13.21";var tt=(e=>(e.Runtime="Runtime",e.Design="Design",e.Raw="Raw",e.VNode="VNode",e))(tt||{});const eo=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],y1=["vIf","vElseIf","vElse","vShow","vModel","vFor","vBind","vHtml"],v1={String,Number,Boolean,Array,Object,Function,Date},We="VtjPage",Br="VtjHomepage",b1="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,svg".split(","),w1="component,slot".split(",");function Me(e,t){return e.map(r=>Ge(r)||r.startsWith("/")?r:`${t}${r}`)}function fr(e){return/\.css$/.test(e)}function hr(e){return/\.js$/.test(e)}function _1(e){return/\.json$/.test(e)}function E1(e,t=!1){return t&&e.endsWith(".prod.js")?e.replace(".prod.js",".js"):e}function S1(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:g,localeLibrary:b})=>{p==null||p.forEach(_=>{hr(_)&&i.push(E1(_,r)),fr(_)&&o.push(_)}),d&&(a.push(d),l[d]=Me(p||[],t),b&&(u[d]=b)),h&&s.push(h),g&&c.push(g),d&&g&&(f[g]=d)}),{scripts:Me(i,t),css:Me(o,t),materials:Me(s,t),libraryExports:a,materialExports:Yd(c),materialMapLibrary:f,libraryMap:l,libraryLocaleMap:u}}function x1(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 T1(e=[]){const t=e.filter(n=>fr(n)),r=e.filter(n=>hr(n));return{css:t,js:r}}function R1(e,t){const r=u=>{const c=[];let f=0;for(;f<u.length;){if(/\s/.test(u[f])){f++;continue}if(u.substring(f,f+2)==="/*"){const _=u.indexOf("*/",f+2);if(_!==-1){f=_+2;continue}}if(u[f]==="@"){const _=f;for(;f<u.length&&u[f]!=="{"&&u[f]!==";";)f++;const y=u.substring(_,f).trim(),v=y.includes("@keyframes");if(u[f]===";")c.push({type:"simple-at-rule",content:u.substring(_,f+1)}),f++;else if(u[f]==="{"){const w=f+1;let S=1;for(f++;f<u.length&&S>0;)u[f]==="{"?S++:u[f]==="}"&&S--,f++;const m=u.substring(_,f),x=u.substring(w,f-1);c.push({type:v?"keyframes":"at-rule",rule:y,content:m,inner:x})}continue}const p=f;for(;f<u.length&&u[f]!=="{";)f++;if(f>=u.length)break;const h=u.substring(p,f).trim();if(!h){f++;continue}const d=f+1;let g=1;for(f++;f<u.length&&g>0;)u[f]==="{"?g++:u[f]==="}"&&g--,f++;const b=u.substring(d,f-1);c.push({type:"rule",selector:h,content:b.trim()})}return c},n=u=>{const c=u.trim();return/^(from|to|\d+(\.\d+)?%)$/.test(c)},i=u=>u.replace(/::v-deep\(/g,":deep(").replace(/::v-deep\s+/g,":deep(").replace(/\/deep\//g," ").replace(/>>>/g," ").replace(/(.*?):deep\(([^)]+)\)/g,(c,f,p)=>{const h=f.trim(),d=p.trim();return h?`${h}[${t}] ${d}`:d}),o=u=>{const c=u.trim();if(!c||c.includes(`[${t}]`)||/^(:root|:host|html|body)(\s|$|:|\.|\#|\[)/.test(c)||n(c))return c;const f=c.match(/^(.+?)((?:::?[\w-]+(?:\([^)]*\))?)*)\s*$/);if(f){const[,p,h=""]=f,d=p.trim();return d?`${d}[${t}]${h}`:c}return`${c}[${t}]`},s=u=>i(u).split(",").map(c=>o(c)).filter(c=>c.trim()).join(", "),a=u=>u.map(c=>{switch(c.type){case"simple-at-rule":return c.content;case"keyframes":return c.content;case"at-rule":try{const p=r(c.inner),h=a(p);return`${c.rule} { ${h} }`}catch(p){return c.content}case"rule":if(!c.selector||!c.content)return"";const f=s(c.selector);return f.trim()?`${f} { ${c.content} }`:"";default:return""}}).filter(c=>c.trim()).join(" "),l=u=>u.replace(/\s*{\s*/g," { ").replace(/\s*}\s*/g," } ").replace(/\s*;\s*/g,"; ").replace(/\s*,\s*/g,", ").replace(/\s+/g," ").replace(/^\s+|\s+$/g,"").replace(/\s*}\s*}/g," } }").trim();try{const u=e.replace(/\/\*(?!\s*!)[\s\S]*?\*\//g,"").replace(/^\s+|\s+$/gm,"").replace(/\n\s*\n/g,`
63
+ `),c=r(u),f=a(c);return l(f)}catch(u){return console.error("CSS scoping failed:",u),console.error("Input CSS:",e),e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/(@keyframes\s+[^{]+\s*{[^{}]*(?:{[^}]*}[^{}]*)*})/g,c=>c).replace(/([^{}@]+)(?=\s*{)/g,c=>{const f=c.trim();return!f||f.startsWith("@")||f.includes(`[${t}]`)||n(f)?c:`${f}[${t}]`})}}function ia(e){return Ct(e)?e:JSON.stringify(e)}function pr(e,t,r,n=!1){const i=e.CSSStyleSheet,o=n?`data-v-${t}`:t,s=n?R1(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 A1(e,t){return k(this,null,function*(){const r=yield window.fetch(t).then(n=>n.text()).catch(()=>"");r&&pr(window,e,r)})}function oa(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 sa(n,i){return k(this,arguments,function*(e,t,r=window){const o=r.document,s=r.document.head;let a=r[t];return a?a.default||a:new Promise((l,u)=>{for(const c of e){const f=o.createElement("script");f.src=c,f.onload=()=>{a=r[t],a?l(a.default||a):u(null)},f.onerror=p=>{u(p)},s.appendChild(f)}})})}function $1(e){return zt(e)&&Object.getOwnPropertyNames(e.prototype||{}).length===0||zt(e==null?void 0:e.install)}function O1(e){return w1.includes(e)}function j1(e){return b1.includes(e)}function Se(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 xe(e,t,r=!1,n=!1,i=!1){var o;try{const s=['"use strict";',"var __self = arguments[0];"];s.push("return ");let a=(e.value||"").trim();i||(a=a.replace(/this(\W|$)/g,(u,c)=>`__self${c}`)),a=s.join(`
64
64
  `)+a;const l=i?`
65
65
  ${a}
66
66
  `:`with(${r?"{}":"$scope || {}"}) { ${a} }`;return new Function("$scope",l)(t)}catch(s){if(ie.error("parseExpression.error",s,e,(o=t==null?void 0:t.__self)!=null?o:t),n)throw s}}function pt(e,t,r=!1,n=!1,i=!1){var s;const o=xe(e,t,r,n,i);if(typeof o!="function"&&(ie.error("parseFunction.error","not a function",e,(s=t==null?void 0:t.__self)!=null?s:t),n))throw new Error(`"${e.value}" not a function`);return o}function mt(e){return e&&e.type==="JSExpression"}function dt(e){return typeof e=="object"&&e&&e.type==="JSFunction"}const D1={session:!1,authKey:"Authorization",storageKey:"ACCESS_STORAGE",storagePrefix:"__VTJ_",unauthorized:void 0,auth:"/#/login",redirectParam:"r",unauthorizedCode:401,unauthorizedMessage:"登录已经失效,请重新登录!",noPermissionMessage:"无权限访问该页面",appName:"",statusKey:"code"},B1=Symbol("access");class aa{constructor(t){z(this,"options");z(this,"data",null);z(this,"mode",tt.Raw);z(this,"interceptResponse",!0);this.options=Object.assign({},D1,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.Design&&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&&($r.save(r,t,{type:"local",prefix:n}),i&&jr.set(o,this.data.token))}clear(){const{storageKey:t,storagePrefix:r,session:n,authKey:i}=this.options;this.data=null,$r.remove(t,{type:"local",prefix:r}),n&&jr.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):Ii(t).every(i=>n[i]||n[r+"."+i])}some(t){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return Ii(t).some(i=>n[i]||n[r+"."+i])}install(t){t.config.globalProperties.$access=this,t.provide(B1,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=>Pi(i,r));try{this.data=JSON.parse(n.join(""))}catch(i){console.warn(i)}return}if(typeof t=="string")try{const n=r?Pi(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=$r.get(t,{type:"local",prefix:r});this.setData(n||null)}isLogined(){const{session:t,authKey:r}=this.options;return t&&r?!!jr.get(r):!!this.getToken()}hasRoutePermission(t){if(t.name===We){const r=t.params.id;return r&&this.can(r)}return t.meta.__vtj__?this.can(t.meta.__vtj__):!0}setGuard(t){t.beforeEach((r,n,i)=>this.guard(r,i))}guard(t,r){return k(this,null,function*(){if(this.isWhiteList(t)||this.isAuthPath(t))return r();if(this.isLogined()){if(this.hasRoutePermission(t))return r();{const{noPermissionMessage:n="无权限访问",unauthorized:i=!1}=this.options;return yield this.showTip(n),zt(i)?(i(),r(!1)):Ct(i)?r(i):r(!1)}}r(!1),yield Ze(0),this.toLogin()})}isWhiteList(t){const{whiteList:r}=this.options;return r?Array.isArray(r)?r.some(n=>t.fullPath.startsWith(n)):r(t):!1}isUnauthorized(t){var i;const{unauthorizedCode:r=401,statusKey:n="code"}=this.options;return t.status===r||((i=t.data)==null?void 0:i[n])===r}showUnauthorizedAlert(t){return k(this,null,function*(){const{unauthorizedMessage:r="登录已失效"}=this.options;this.isUnauthorized(t)&&(yield this.showTip(r),this.toLogin())})}showTip(t){return k(this,null,function*(){var n;const{alert:r}=this.options;return r?(yield Ze(150),yield(n=r(t,{title:"提示",type:"warning"}))==null?void 0:n.catch(()=>!1)):(window.alert(t),!1)})}setRequest(t){t.useRequest(r=>{var n,i;return(n=this.data)!=null&&n.token&&(r.headers[this.options.authKey]=(i=this.data)==null?void 0:i.token),r}),t.useResponse(r=>k(this,null,function*(){return this.interceptResponse&&(yield this.showUnauthorizedAlert(r)),r}),r=>k(this,null,function*(){if(!this.interceptResponse)return Promise.reject(r);const n=r.response||r||{};return yield this.showUnauthorizedAlert(n),Promise.reject(r)}))}}function C1(e={}){const{notify:t,loading:r,settings:n={},Startup:i,access:o,useTitle:s,alert:a}=e;let l=null;return{request:xn({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:na,notify:t,loading:r,useTitle:s,alert:a,startupComponent:i,access:o?new aa(V({alert:a},o)):void 0}}function N1(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?xe(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(me(o,a||{},{data:s})))}}function P1(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 I1(e=[],t=[],r){const n={};for(const i of e)n[i.id]=N1(i,r);for(const i of t)n[i.id]=P1(i,r);return n}function k1(){return k(this,arguments,function*(e=[],t=window){const r=Se(t);r&&(ua(t),e.forEach(n=>M1(r,n)))})}function F1(e,t=window){const r=dt(e.mockTemplate)&&e.mockTemplate.value?pt(e.mockTemplate,{},!0):void 0,n=Se(t);return(...i)=>k(null,null,function*(){let o={};if(r)try{o=yield r.apply(r,i)}catch(s){ie.warn("模拟数据模版异常",s)}return n==null?void 0:n.mock(o)})}function M1(e,t){if(!t.mock)return;const{url:r,mockTemplate:n}=t;if(r&&n)try{const i=Ge(r)?new URL(r).pathname:r,o=wn(`(.*)${i}(.*)`),s=tg(i,{decode:decodeURIComponent}),a=xe(n,{},!0);e.mock(o,l=>{var h;const u=Ke.parse(l.url)||{},c=l.body instanceof FormData?Zm(l.body):l.body,f=Ge(l.url)?new URL(l.url).pathname:l.url.split("?")[0],p=(h=s(f))==null?void 0:h.params;Object.assign(l,{data:c,params:p,query:u});try{return e.mock(a(l))}catch(d){return console.warn("[mockApi]",o,l,d),null}})}catch(i){console.warn("mockApi",i)}}function ua(e=window){const t=Se(e);t&&(t._mocked={})}class U1{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=tr){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&&eo.forEach(t=>{var r;this[t]=(r=this.__instance)==null?void 0:r[t]})}__cleanup(){eo.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 pt({type:i,value:o},this)}else return pt(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 xe({type:i,value:o},this)}else return xe(t,this)}__ref(t=null,r){if(this.__mode!==tt.VNode)return t&&t!==this.__id&&(this.__contextRefs[t]=this),n=>k(this,null,function*(){var o,s;yield Ze(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 on(e){var f,p;const{Vue:t=tr,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 U1({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({},V1((f=a.value.props)!=null?f:[],u)),setup(h){var v,w,S,m;u.$props=h,u.props=h,a.value.id&&pr(e.window||window,a.value.id,a.value.css||"",!0),u.state=H1(t,(v=a.value.state)!=null?v:{},u);const d=q1(t,(w=a.value.computed)!=null?w:{},u),g=z1((S=a.value.methods)!=null?S:{},u),b=K1(t,a.value.inject,u);for(const[x,A]of Object.entries(b||{}))b[x]=t.inject(x,A);const _=W1(a.value.dataSources||{},u),y=V(V(V(V({},b),d),g),_);return u.setup(y,t),J1(t,(m=a.value.watch)!=null?m:[],u),{vtj:u}},emits:L1(a.value.emits),expose:["vtj"],render(){if(!a.value.nodes)return null;const h=a.value.nodes||[];return h.length===1?se(h[0],u,t,s,h):h.map(d=>se(d,u,t,s,h))}},Y1((p=a.value.lifeCycles)!=null?p:{},u)));return{renderer:t.markRaw(c),context:u}}function L1(e=[]){return e.map(t=>Ct(t)?t:t.name)}function V1(e=[],t){const r=n=>n?(Array.isArray(n)?n:[n]).map(i=>v1[i]):void 0;return e.map(n=>Ct(n)?{name:n}:{name:n.name,type:n.type,required:n.required,default:mt(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 H1(e,t,r){return e.reactive(Object.keys(t||{}).reduce((n,i)=>{let o=t[i];return mt(o)?o=r.__parseExpression(o):dt(o)&&(o=r.__parseFunction(o)),n[i]=o,n},{}))}function q1(e,t,r){return Object.entries(t!=null?t:{}).reduce((n,[i,o])=>(n[i]=e.computed(r.__parseFunction(o)),n),{})}function z1(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}function K1(e,t=[],r){return t.reduce((n,i)=>{var u;const{name:o,from:s}=i||{};i.default;const a=mt(s)?r.__parseExpression(s)||o:s!=null?s:o,l=mt(i.default)?r.__parseExpression(i.default):(u=i.default)!=null?u:null;return n[o]=e.inject(a,l),n},{})}function W1(e,t){return Object.keys(e).reduce((r,n)=>{const i=e[n];if(i.type==="mock")r[n]=F1(i);else if(i.ref){const o=t.$apis[i.ref],s=dt(i.transform)?i.transform.value?t.__parseFunction(i.transform):void 0:i.transform;r[n]=(...a)=>k(null,null,function*(){const l=yield o.apply(t,a);return s?s(l):l})}return r},{})}function J1(e,t=[],r){t.forEach(n=>{e.watch(r.__parseExpression(n.source),r.__parseFunction(n.handler),{deep:n.deep,immediate:n.immediate})})}function Y1(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>{const o=t.__parseFunction(i);return r[n]=()=>k(null,null,function*(){yield Ze(0),zt(o)&&o()}),r},{})}const G1=new ug;let Cr=[],Qt={};const Z1=e=>e;function ca(r){return k(this,arguments,function*(e,t=window){const{urls:n=[],library:i}=e,o=n.filter(a=>hr(a));if(o.length===0||!i)return null;const s=n.filter(a=>fr(a));return s.length&&oa(s,t),yield sa(o,i,t).catch(a=>(console.warn("loadScriptUrl error",o,i,a),null))})}function sn(e){const{getDsl:t,getDslByUrl:r,options:n}=e;return n.window&&(Cr.forEach(i=>{delete n.window[i]}),Cr=[]),(i,o,s=tr)=>{if(!o||typeof o=="string")return i;if(o.type==="Schema"&&o.id)return s.defineAsyncComponent(()=>k(null,null,function*(){const a=Qt[o.id]||(yield G1.add(o.id,()=>t(o.id)));return a&&(a.name=i,Qt[o.id]=a),a?on(et(V({},n),{Vue:s,dsl:ui(a),mode:tt.Runtime,loader:sn(e)})).renderer:null}));if(o.type==="UrlSchema"&&o.url)return s.defineAsyncComponent(()=>k(null,null,function*(){const a=Qt[o.url]||(yield r(o.url));return a&&(a.name=i,Qt[o.url]=a),a?on(et(V({},n),{Vue:s,dsl:ui(a),mode:tt.Runtime,loader:sn(e)})).renderer:null}));if(o.type==="Plugin"){let a=o.library?Qt[o.library]:null;return a||(o.library&&Cr.push(o.library),a=Qt[o.library||Symbol()]=s.defineAsyncComponent(()=>k(null,null,function*(){return(yield ca(o,n.window))||(console.warn("getPlugin result is null",o),null)})),a)}return i}}function se(e,t,r=tr,n=Z1,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:g,vHtml:b,others:_}=la(l);if(!o&&(c||f))return null;if(u&&!Q1(u,t))return n0(e,t,r,n,i);const y=(w,S=0)=>{var j,N,L,M;const m=w.$components,x=(()=>{var q,$,D,C;if(e.name==="component")return t0(w,(q=e.props)==null?void 0:q.is);if(e.name==="slot")return e.name;const H=n(e.name,e.from,r);if(Ct(H))return O1(H)||j1(H)?H:(C=(D=m[H])!=null?D:($=s==null?void 0:s.app)==null?void 0:$.component(H))!=null?C:H;if(lt(H)&&e.id){const P=`Loader${e.id}_${S}`;return m[P]||(m[P]=H)}return H})(),A=e0(a,(j=e.props)!=null?j:{},w),U=r0(r,(N=e.events)!=null?N:{},w);if(e.name==="slot")return i0(r,e,A,w,n);g&&Object.assign(A,w.__parseExpression(g.value)),h&&(A.style=Object.assign((L=A.style)!=null?L:{},s0(h,w))),b&&Object.assign(A,a0(b,w)),d.forEach(H=>{Object.assign(A,u0(r,H,w))});const E=c0(r,(M=e.children)!=null?M:[],w,n,e),T=w!=null&&w.__id?`data-v-${w.__id}`:void 0,F=T?{[T]:""}:{};let B=r.createVNode(x,V(V(V({key:`${a}_${S}`},F),A),U),E);const I=s?X1(s,_,w):[];return I.length&&(B=r.withDirectives(B,I)),B};return p?h0(p,y,t):y(t)}function X1(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 la(e=[]){const t=e.find(c=>xt(c.name)==="vIf"),r=e.find(c=>xt(c.name)==="vElseIf"),n=e.find(c=>xt(c.name)==="vElse"),i=e.find(c=>xt(c.name)==="vFor"),o=e.find(c=>xt(c.name)==="vShow"),s=e.find(c=>xt(c.name)==="vBind"),a=e.find(c=>xt(c.name)==="vHtml"),l=e.filter(c=>xt(c.name)==="vModel"),u=e.filter(c=>!y1.includes(xt(c.name)));return{vIf:t,vElseIf:r,vElse:n,vFor:i,vShow:o,vModels:l,vBind:s,others:u,vHtml:a}}function Q1(e,t){return!!t.__parseExpression(e.value)}function t0(e,t){return t?mt(t)?e.__parseExpression(t):t:"div"}function e0(e,t,r){const n=an(t,r);return n.ref=r.__ref(e,n.ref),n}function an(e,t){return mt(e)?t.__parseExpression(e):dt(e)?t.__parseFunction(e):Array.isArray(e)?e.map(r=>an(r,t)):typeof e=="object"?Object.keys(e||{}).reduce((r,n)=>{let i=e[n];return r[n]=an(i,t),r},{}):e}function r0(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=fa(a.modifiers),u=l.find(p=>n.includes(p)),c="on"+ko(s)+(u&&i[u]||""),f=r.__parseFunction(a.handler);return f&&(o[c]=e.withModifiers(f,l)),o},{})}function n0(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}=la(a);if(l){if(t.__parseExpression(l.value))return se(i[s],t,r,n,i,!0);continue}if(u)return se(i[s],t,r,n,i,!0)}return null}function fa(e={},t=!1){const r=Object.keys(e);return t?r.map(n=>"."+n):r}function i0(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?Ct(o)?e.createTextVNode(o):mt(o)?e.createTextVNode(ia(n.__parseExpression(o))):Array.isArray(o)?o.map(u=>se(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:mt(n)?t.__parseExpression(n):n,params:[]}}function s0(e,t){return t.__parseExpression(e.value)?{}:{display:"none"}}function a0(e,t){return{innerHTML:t.__parseExpression(e.value)||""}}function u0(e,t,r){var a;const n={type:"JSFunction",value:(a=t.value)!=null&&a.value?`(v) => {
@@ -69,6 +69,6 @@ ${a}
69
69
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
70
70
  * @name @vtj/uni
71
71
  * @author CHC chenhuachun1549@dingtalk.com
72
- * @version 0.13.19
72
+ * @version 0.13.21
73
73
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
74
- */const j0=["onLaunch","onShow","onHide","onError","onPageNotFound","onUnhandledRejection","onThemeChange","onPageNotFound","onUniNViewMessage","onExit"],ro="/pages",D0="VTJ",B0="__UNI__1FC118B",C0="VTJ移动跨端项目",N0="1.0.0",P0="100",I0=!1,k0={},F0={enable:!1},M0="3",U0={name:D0,appid:B0,description:C0,versionName:N0,versionCode:P0,transformPx:I0,"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:k0,"mp-weixin":{appid:"",setting:{urlCheck:!1},usingComponents:!0},"mp-alipay":{usingComponents:!0},"mp-baidu":{usingComponents:!0},"mp-toutiao":{usingComponents:!0},uniStatistics:F0,vueVersion:M0},L0=[],V0={navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},H0={autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}},q0={pages:L0,globalStyle:V0,easycom:H0};function z0(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({},U0,t),pagesJson:Object.assign({},q0,r,{pages:i})})}const ln={navigationBarBackgroundColor:"backgroundColor",navigationBarTextStyle:"titleColor",navigationBarTitleText:"titleText",navigationStyle:"style",titleImage:"titleImage",titlePenetrate:"titlePenetrate",transparentTitle:"transparentTitle"};function da(e){const t={},r={black:"#000000",white:"#ffffff"};for(const n in e)ln[n]&&(t[ln[n]]=n==="navigationBarTextStyle"?r[e[n]]||r.black:e[n]);return t}function K0(e){const t={};for(const r in e)ln[r]||(t[r]=e[r]);return t}function W0(e){var t,r;return((r=(t=e.h5)==null?void 0:t.router)==null?void 0:r.mode)||"hash"}function J0(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 Y0(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 G0(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 Z0(e){var a;const t=G0(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 X0(e,t=window){var p,h,d,g;const{pagesJson:r={},manifestJson:n={}}=e,{topWindow:i,leftWindow:o,rightWindow:s}=J0(r),{navigationBar:a,navigationBarButtons:l,navigationBarSearchInput:u,navigationBarTransparent:c}=Z0(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__:W0(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__:!!((g=r.tabBar)!=null&&g.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__:Y0(e),__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__:l,__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__:u,__UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__:c};Object.entries(f).forEach(([b,_])=>{t[b]=_})}const Q0="4.76";function ty(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({},K0(u)),{navigationBar:da(u),isNVue:!1}),compilerVersion:Q0,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 ey(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 ry(e,t,r){const{openBlock:n,createBlock:i,withCtx:o,createVNode:s}=e,{PageComponent:a,setupPage:l,getApp:u}=t;return{mpType:"page",setup(){return k(this,null,function*(){var g,b;const f=((b=(g=u())==null?void 0:g.$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 ny(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 g;return d.pagePath===n||((g=d.pagePath)==null?void 0:g.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"},da(i)),isNVue:!1,route:c?c.pagePath:n},o)}function iy(e,t,r,n,i=window){const o=r.map((s,a)=>{const l=ny(n,s,a),u=ry(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 oy(e,t,r=window){pr(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 ay(e){const t=z0(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;X0(t,l),ty(t,l),ey(i,l),iy(r,i,o,s,l),oy(a.appid||Date.now(),u,l);const p=r.createApp(f(n));return p.use(sy,i),p.use(c),p}function uy(e,t){const r={};return Object.entries(e).forEach(([n,i])=>{j0.includes(n)&&i&&(r[n]=t(i))}),r}function no(e,t){return()=>k(null,null,function*(){const r=yield e.getDsl(t);if(r){const{renderer:n}=e.createDslRenderer(r);return n}return null})}function cy(n){return k(this,arguments,function*(e,t=!1,r=ro){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:no(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===ro?"/":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:no(e,f.id),style:{navigationStyle:"custom"}})}return o})}function ly(){var e;return(e=window.uni)!=null&&e.showLoading&&window.uni.showLoading({title:"加载中...",mask:!0}),{close:()=>{var t;(t=window.uni)!=null&&t.hideLoading&&window.uni.hideLoading()}}}function ga(e,t="",r="warning"){return k(this,null,function*(){var n;return(n=window.uni)!=null&&n.showModal?window.uni.showModal({title:t,content:e,showCancel:!1}):Promise.reject(new Error("window.uni.showModal is undefined"))})}function fy(e=tt.Runtime){return e===tt.Runtime?Object.assign({}):Object.assign({})}const hy=C1({loading:ly,notify:ga}),ma=new O0(A0(ga)),py=fy(),{provider:dy,onReady:gy}=E0({nodeEnv:"production",mode:tt.Runtime,modules:py,materialPath:"../",adapter:hy,service:ma,dependencies:{Vue:()=>jn(()=>import("./@dcloudio-uni-h5-vue-BtM9Eyib.js").then(e=>e.z),__vite__mapDeps([0,1,2]),import.meta.url),VueRouter:()=>jn(()=>import("./vue-router-CbZ0Q__O.js"),__vite__mapDeps([3,0,1,2]),import.meta.url)}}),my=e=>k(null,null,function*(){const t=(yield ma.getExtension().catch(()=>null))||{},r=top||window,n=yield x0(t.enhance,r.location.pathname),{Vue:i,UniH5:o}=window,s=e.project;if(!s)return;const a=s.uniConfig||{},l=uy(a,d=>pt(d,window,!1,!0)),{manifestJson:u,pagesJson:c,css:f}=a,p=yield cy(e,!0),h=ay({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)});gy(()=>my(dy));
74
+ */const j0=["onLaunch","onShow","onHide","onError","onPageNotFound","onUnhandledRejection","onThemeChange","onPageNotFound","onUniNViewMessage","onExit"],ro="/pages",D0="VTJ",B0="__UNI__1FC118B",C0="VTJ移动跨端项目",N0="1.0.0",P0="100",I0=!1,k0={},F0={enable:!1},M0="3",U0={name:D0,appid:B0,description:C0,versionName:N0,versionCode:P0,transformPx:I0,"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:k0,"mp-weixin":{appid:"",setting:{urlCheck:!1},usingComponents:!0},"mp-alipay":{usingComponents:!0},"mp-baidu":{usingComponents:!0},"mp-toutiao":{usingComponents:!0},uniStatistics:F0,vueVersion:M0},L0=[],V0={navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},H0={autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}},q0={pages:L0,globalStyle:V0,easycom:H0};function z0(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({},U0,t),pagesJson:Object.assign({},q0,r,{pages:i})})}const ln={navigationBarBackgroundColor:"backgroundColor",navigationBarTextStyle:"titleColor",navigationBarTitleText:"titleText",navigationStyle:"style",titleImage:"titleImage",titlePenetrate:"titlePenetrate",transparentTitle:"transparentTitle"};function da(e){const t={},r={black:"#000000",white:"#ffffff"};for(const n in e)ln[n]&&(t[ln[n]]=n==="navigationBarTextStyle"?r[e[n]]||r.black:e[n]);return t}function K0(e){const t={};for(const r in e)ln[r]||(t[r]=e[r]);return t}function W0(e){var t,r;return((r=(t=e.h5)==null?void 0:t.router)==null?void 0:r.mode)||"hash"}function J0(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 Y0(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 G0(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 Z0(e){var a;const t=G0(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 X0(e,t=window){var p,h,d,g;const{pagesJson:r={},manifestJson:n={}}=e,{topWindow:i,leftWindow:o,rightWindow:s}=J0(r),{navigationBar:a,navigationBarButtons:l,navigationBarSearchInput:u,navigationBarTransparent:c}=Z0(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__:W0(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__:!!((g=r.tabBar)!=null&&g.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__:Y0(e),__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__:l,__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__:u,__UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__:c};Object.entries(f).forEach(([b,_])=>{t[b]=_})}const Q0="4.76";function ty(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({},K0(u)),{navigationBar:da(u),isNVue:!1}),compilerVersion:Q0,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 ey(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 ry(e,t,r){const{openBlock:n,createBlock:i,withCtx:o,createVNode:s}=e,{PageComponent:a,setupPage:l,getApp:u}=t;return{mpType:"page",setup(){return k(this,null,function*(){var g,b;const f=((b=(g=u())==null?void 0:g.$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 ny(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 g;return d.pagePath===n||((g=d.pagePath)==null?void 0:g.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"},da(i)),isNVue:!1,route:c?c.pagePath:n},o)}function iy(e,t,r,n,i=window){const o=r.map((s,a)=>{const l=ny(n,s,a),u=ry(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 oy(e,t,r=window){pr(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 ay(e){const t=z0(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;X0(t,l),ty(t,l),ey(i,l),iy(r,i,o,s,l),oy(a.appid||Date.now(),u,l);const p=r.createApp(f(n));return p.use(sy,i),p.use(c),p}function uy(e,t){const r={};return Object.entries(e).forEach(([n,i])=>{j0.includes(n)&&i&&(r[n]=t(i))}),r}function no(e,t){return()=>k(null,null,function*(){const r=yield e.getDsl(t);if(r){const{renderer:n}=e.createDslRenderer(r);return n}return null})}function cy(n){return k(this,arguments,function*(e,t=!1,r=ro){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:no(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===ro?"/":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:no(e,f.id),style:{navigationStyle:"custom"}})}return o})}function ly(){var e;return(e=window.uni)!=null&&e.showLoading&&window.uni.showLoading({title:"加载中...",mask:!0}),{close:()=>{var t;(t=window.uni)!=null&&t.hideLoading&&window.uni.hideLoading()}}}function ga(e,t="",r="warning"){return k(this,null,function*(){var n;return(n=window.uni)!=null&&n.showModal?window.uni.showModal({title:t,content:e,showCancel:!1}):Promise.reject(new Error("window.uni.showModal is undefined"))})}function fy(e=tt.Runtime){let t={};e===tt.Runtime?t=Object.assign({}):t=Object.assign({});let r={};for(const[n,i]of Object.entries(t))r[n]=()=>Promise.resolve(i);return r}const hy=C1({loading:ly,notify:ga}),ma=new O0(A0(ga)),py=fy(),{provider:dy,onReady:gy}=E0({nodeEnv:"production",mode:tt.Runtime,modules:py,materialPath:"../",adapter:hy,service:ma,dependencies:{Vue:()=>jn(()=>import("./@dcloudio-uni-h5-vue-BtM9Eyib.js").then(e=>e.z),__vite__mapDeps([0,1,2]),import.meta.url),VueRouter:()=>jn(()=>import("./vue-router-CbZ0Q__O.js"),__vite__mapDeps([3,0,1,2]),import.meta.url)}}),my=e=>k(null,null,function*(){const t=(yield ma.getExtension().catch(()=>null))||{},r=top||window,n=yield x0(t.enhance,r.location.pathname),{Vue:i,UniH5:o}=window,s=e.project;if(!s)return;const a=s.uniConfig||{},l=uy(a,d=>pt(d,window,!1,!0)),{manifestJson:u,pagesJson:c,css:f}=a,p=yield cy(e,!0),h=ay({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)});gy(()=>my(dy));
@@ -23,7 +23,7 @@
23
23
  <title></title>
24
24
  <!--preload-links-->
25
25
  <!--app-context-->
26
- <script type="module" crossorigin src="./assets/index-CgfquXG2.js"></script>
26
+ <script type="module" crossorigin src="./assets/index-BDQ8-APp.js"></script>
27
27
  <link rel="modulepreload" crossorigin href="./assets/vue-BK7aLblh.js">
28
28
  <link rel="modulepreload" crossorigin href="./assets/@dcloudio-uni-shared-Cc-Ey1iB.js">
29
29
  <link rel="modulepreload" crossorigin href="./assets/@dcloudio-uni-h5-vue-BtM9Eyib.js">
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vtj/pro",
3
3
  "private": false,
4
- "version": "0.13.19",
4
+ "version": "0.13.21",
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.13.19",
25
- "@vtj/designer": "~0.13.19",
26
- "@vtj/local": "~0.13.19",
27
- "@vtj/materials": "~0.13.19",
28
- "@vtj/renderer": "~0.13.19",
29
- "@vtj/uni": "~0.13.19"
24
+ "@vtj/core": "~0.13.21",
25
+ "@vtj/designer": "~0.13.21",
26
+ "@vtj/uni": "~0.13.21",
27
+ "@vtj/local": "~0.13.21",
28
+ "@vtj/materials": "~0.13.21",
29
+ "@vtj/renderer": "~0.13.21"
30
30
  },
31
31
  "devDependencies": {
32
32
  "vue": "~3.5.5",
33
33
  "vue-router": "~4.5.0",
34
- "@vtj/charts": "~0.13.19",
35
- "@vtj/icons": "~0.13.19",
36
- "@vtj/ui": "~0.13.19",
37
- "@vtj/utils": "~0.13.19",
38
- "@vtj/cli": "~0.12.11"
34
+ "@vtj/charts": "~0.13.21",
35
+ "@vtj/cli": "~0.12.12",
36
+ "@vtj/icons": "~0.13.21",
37
+ "@vtj/ui": "~0.13.21",
38
+ "@vtj/utils": "~0.13.21"
39
39
  },
40
40
  "exports": {
41
41
  "./vite": {
@@ -62,7 +62,7 @@
62
62
  },
63
63
  "vtj": {
64
64
  "name": "VTJ.PRO",
65
- "platform": "uniapp",
65
+ "platform": "web",
66
66
  "remote": "https://lcdp.vtj.pro",
67
67
  "__ACCESS__": {
68
68
  "auth": "https://lcdp.vtj.pro/login",