@vtj/pro 0.16.24 → 0.16.26

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-CLA-9enI-D3Jup7YW.js → Editor-DyuWe83--BVB-iC-v.js} +11 -11
  14. package/dist/assets/{auth-CJzTD6Ph.js → auth-CLpAqhe-.js} +1 -1
  15. package/dist/assets/{index-CVppMb-Z.js → index-DC4JwDQC.js} +1 -1
  16. package/dist/assets/{index-gIvIdI7Q.js → index-KkwS5J8c.js} +2 -2
  17. package/dist/assets/{page-B4vLbNlk.js → page-Dy3HsUho.js} +1 -1
  18. package/dist/assets/{preview-D8u2Wuq-.js → preview-lwFqZLvM.js} +1 -1
  19. package/dist/assets/{utils-C3t_6B71.js → utils-DwSQlKsg.js} +1 -1
  20. package/dist/index.html +3 -3
  21. package/dist/uni/assets/{index-Cm0YeEOD.js → index-C59gwPz0.js} +5 -5
  22. package/dist/uni/index.html +1 -1
  23. package/package.json +11 -11
  24. package/src/.vtj/materials/@vtj/pro.json +0 -8246
  25. package/src/.vtj/projects/@vtj/pro.json +0 -215
  26. /package/dist/assets/{Editor-CLA-9enI-ClyxY6WL.css → Editor-DyuWe83--ClyxY6WL.css} +0 -0
@@ -1 +1 @@
1
- var A=Object.defineProperty;var y=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var k=(o,e,t)=>e in o?A(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,u=(o,e)=>{for(var t in e||(e={}))C.call(e,t)&&k(o,t,e[t]);if(y)for(var t of y(e))I.call(e,t)&&k(o,t,e[t]);return o};var _=(o,e,t)=>new Promise((c,s)=>{var n=r=>{try{i(t.next(r))}catch(a){s(a)}},p=r=>{try{i(t.throw(r))}catch(a){s(a)}},i=r=>r.done?c(r.value):Promise.resolve(r.value).then(n,p);i((t=t.apply(o,e)).next())});import"./element-plus-ClWnlNxy.js";import"./vxe-BJJKGxpR.js";import{k as U,aF as b,a9 as d,aG as E,aH as q,K as v}from"./Editor-CLA-9enI-D3Jup7YW.js";import{useRoute as B}from"./vue-router-DLyhMsB6.js";import{x as w,az as f,I as R,D as x,u as l,E as $,U as g}from"./vue-Cs4cahp0.js";import{_ as G}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./@vueuse-DGhgU4Wj.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Df95_Dth.js";import"./@element-plus-icons-vue-DfQfjj5s.js";import"./dayjs-GGXMDmCk.js";import"./monaco-editor-Bgo-w-Z8.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-C_F9xDf5.js";import"./marked--VTVY_DP.js";const K={class:"loading"},L=w({__name:"Auth",props:{remote:{},access:{},baseUrl:{default:"/"}},setup(o){return _(this,null,function*(){let e,t;const c=o,s=U(u(u({alert:d},b),c.access)),n=B(),p=a=>_(null,null,function*(){const h=`${c.remote||E}/api/open/user/${a}`,m=yield q(h).catch(()=>null);return m&&Array.isArray(m)?m:!m||!m.success?(yield d("登录失败"),null):m.data}),i=n.query.token,r=i?([e,t]=f(()=>p(i)),e=yield e,t(),e):null;if(r)try{s.login(r);const a=n.query.redirect;location.href=decodeURIComponent(a||c.baseUrl)}catch(a){location.reload()}else{[e,t]=f(()=>d("登录失败")),yield e,t();const a=n.query.redirect;location.href=decodeURIComponent(a||c.baseUrl)}return(a,h)=>(x(),R("div",K,"正在登录中..."))})}}),S=G(L,[["__scopeId","data-v-2cb061ca"]]),Z=w({__name:"auth",setup(o){return _(this,null,function*(){let e,t;const c=new v,s=([e,t]=f(()=>c.getExtension().catch(()=>null)),e=yield e,t(),e),n=s==null?void 0:s.remote,p=s==null?void 0:s.__ACCESS__;return(i,r)=>l(n)?(x(),$(l(S),{key:0,remote:l(n),access:l(p)},null,8,["remote","access"])):g("",!0)})}});export{Z as default};
1
+ var A=Object.defineProperty;var y=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var k=(o,e,t)=>e in o?A(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,u=(o,e)=>{for(var t in e||(e={}))C.call(e,t)&&k(o,t,e[t]);if(y)for(var t of y(e))I.call(e,t)&&k(o,t,e[t]);return o};var _=(o,e,t)=>new Promise((c,s)=>{var n=r=>{try{i(t.next(r))}catch(a){s(a)}},p=r=>{try{i(t.throw(r))}catch(a){s(a)}},i=r=>r.done?c(r.value):Promise.resolve(r.value).then(n,p);i((t=t.apply(o,e)).next())});import"./element-plus-ClWnlNxy.js";import"./vxe-BJJKGxpR.js";import{k as U,aF as b,a9 as d,aG as E,aH as q,K as v}from"./Editor-DyuWe83--BVB-iC-v.js";import{useRoute as B}from"./vue-router-DLyhMsB6.js";import{x as w,az as f,I as R,D as x,u as l,E as $,U as g}from"./vue-Cs4cahp0.js";import{_ as G}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./@vueuse-DGhgU4Wj.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Df95_Dth.js";import"./@element-plus-icons-vue-DfQfjj5s.js";import"./dayjs-GGXMDmCk.js";import"./monaco-editor-Bgo-w-Z8.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-C_F9xDf5.js";import"./marked--VTVY_DP.js";const K={class:"loading"},L=w({__name:"Auth",props:{remote:{},access:{},baseUrl:{default:"/"}},setup(o){return _(this,null,function*(){let e,t;const c=o,s=U(u(u({alert:d},b),c.access)),n=B(),p=a=>_(null,null,function*(){const h=`${c.remote||E}/api/open/user/${a}`,m=yield q(h).catch(()=>null);return m&&Array.isArray(m)?m:!m||!m.success?(yield d("登录失败"),null):m.data}),i=n.query.token,r=i?([e,t]=f(()=>p(i)),e=yield e,t(),e):null;if(r)try{s.login(r);const a=n.query.redirect;location.href=decodeURIComponent(a||c.baseUrl)}catch(a){location.reload()}else{[e,t]=f(()=>d("登录失败")),yield e,t();const a=n.query.redirect;location.href=decodeURIComponent(a||c.baseUrl)}return(a,h)=>(x(),R("div",K,"正在登录中..."))})}}),S=G(L,[["__scopeId","data-v-2cb061ca"]]),Z=w({__name:"auth",setup(o){return _(this,null,function*(){let e,t;const c=new v,s=([e,t]=f(()=>c.getExtension().catch(()=>null)),e=yield e,t(),e),n=s==null?void 0:s.remote,p=s==null?void 0:s.__ACCESS__;return(i,r)=>l(n)?(x(),$(l(S),{key:0,remote:l(n),access:l(p)},null,8,["remote","access"])):g("",!0)})}});export{Z as default};
@@ -1 +1 @@
1
- var I=Object.defineProperty;var P=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var C=(n,e,t)=>e in n?I(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,w=(n,e)=>{for(var t in e||(e={}))N.call(e,t)&&C(n,t,e[t]);if(P)for(var t of P(e))V.call(e,t)&&C(n,t,e[t]);return n};var d=(n,e,t)=>new Promise((_,r)=>{var l=o=>{try{i(t.next(o))}catch(p){r(p)}},s=o=>{try{i(t.throw(o))}catch(p){r(p)}},i=o=>o.done?_(o.value):Promise.resolve(o.value).then(l,s);i((t=t.apply(n,e)).next())});import{useRoute as W}from"./vue-router-DLyhMsB6.js";import{y as Z}from"./@vueuse-DGhgU4Wj.js";import{K as j,q as z,D as J,k as O,Z as E,a as U,d as k}from"./Editor-CLA-9enI-D3Jup7YW.js";import"./element-plus-ClWnlNxy.js";import"./vxe-BJJKGxpR.js";import{E as G,a as v,n as S,l as L}from"./utils-C3t_6B71.js";import{x as M,az as A,d as Q,I as X,r as Y,D as ee}from"./vue-Cs4cahp0.js";import{_ as te}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./monaco-editor-Bgo-w-Z8.js";import"./dayjs-GGXMDmCk.js";import"./@element-plus-icons-vue-DfQfjj5s.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-C_F9xDf5.js";import"./marked--VTVY_DP.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Df95_Dth.js";const ae=M({__name:"index",setup(n){return d(this,null,function*(){let e,t;const _=W(),r=Y(),l=new j(z(S)),s=([e,t]=A(()=>l.getExtension().catch(()=>null)),e=yield e,t(),e||{}),i=s?([e,t]=A(()=>new G(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:o="/",history:p="hash",base:h="/",pageRouteName:y="page",remote:g,auth:B,checkVersion:q=!0,enhance:D,platform:F="web"}=s||{},K=J({loading:L,notify:S,useTitle:Z,alert:v,access:s==null?void 0:s.access,settings:{proxyPath:`${g}/api/proxy`}}),R=O(w({alert:v},s==null?void 0:s.__ACCESS__)),T=()=>p==="hash",b=a=>a==="/"?"":(a.startsWith("/")&&(a=a.substring(1)),a.endsWith("/")||(a=a+"/"),a);E.set("Switcher",{props:{onClick:a=>{const u=a.platform==="uniapp",c=location.pathname;let m=c===`${o}__vtj__/`?o:c;const f=a.currentFile;if(f&&f.type==="page"&&a.homepage!==f.id){const H=s.pageBasePath?`/${y}`:"",x=`${b(h)}${u?`pages${H}`:y}/${f.id}`;m=T()?`${m}#/${x}`:`${m}${x}`}window.open(m,"VTJProject")}}}),E.set("Previewer",{props:{path:(a,u)=>{const c=location.pathname;return u.platform==="uniapp"?`${c}uni/#/pages/${a.id}`:`${c}#/preview/${a.id}`}}});const $=new U(w({container:r,service:l,materialPath:o,pageBasePath:h==="/"?"":h,adapter:K,access:R,remote:g,auth:B,checkVersion:q,enhance:D,project:{platform:F}},i));return $.ready(()=>d(null,null,function*(){yield k(300),$.openFile(_.query.id)})),Q(()=>_.query.id,a=>d(null,null,function*(){yield k(300),$.openFile(a)})),(a,u)=>(ee(),X("div",{class:"designer",ref_key:"container",ref:r},null,512))})}}),ge=te(ae,[["__scopeId","data-v-f41f19f5"]]);export{ge as default};
1
+ var I=Object.defineProperty;var P=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var C=(n,e,t)=>e in n?I(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,w=(n,e)=>{for(var t in e||(e={}))N.call(e,t)&&C(n,t,e[t]);if(P)for(var t of P(e))V.call(e,t)&&C(n,t,e[t]);return n};var d=(n,e,t)=>new Promise((_,r)=>{var l=o=>{try{i(t.next(o))}catch(p){r(p)}},s=o=>{try{i(t.throw(o))}catch(p){r(p)}},i=o=>o.done?_(o.value):Promise.resolve(o.value).then(l,s);i((t=t.apply(n,e)).next())});import{useRoute as W}from"./vue-router-DLyhMsB6.js";import{y as Z}from"./@vueuse-DGhgU4Wj.js";import{K as j,q as z,D as J,k as O,Z as E,a as U,d as k}from"./Editor-DyuWe83--BVB-iC-v.js";import"./element-plus-ClWnlNxy.js";import"./vxe-BJJKGxpR.js";import{E as G,a as v,n as S,l as L}from"./utils-DwSQlKsg.js";import{x as M,az as A,d as Q,I as X,r as Y,D as ee}from"./vue-Cs4cahp0.js";import{_ as te}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./monaco-editor-Bgo-w-Z8.js";import"./dayjs-GGXMDmCk.js";import"./@element-plus-icons-vue-DfQfjj5s.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-C_F9xDf5.js";import"./marked--VTVY_DP.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Df95_Dth.js";const ae=M({__name:"index",setup(n){return d(this,null,function*(){let e,t;const _=W(),r=Y(),l=new j(z(S)),s=([e,t]=A(()=>l.getExtension().catch(()=>null)),e=yield e,t(),e||{}),i=s?([e,t]=A(()=>new G(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:o="/",history:p="hash",base:h="/",pageRouteName:y="page",remote:g,auth:B,checkVersion:q=!0,enhance:D,platform:F="web"}=s||{},K=J({loading:L,notify:S,useTitle:Z,alert:v,access:s==null?void 0:s.access,settings:{proxyPath:`${g}/api/proxy`}}),R=O(w({alert:v},s==null?void 0:s.__ACCESS__)),T=()=>p==="hash",b=a=>a==="/"?"":(a.startsWith("/")&&(a=a.substring(1)),a.endsWith("/")||(a=a+"/"),a);E.set("Switcher",{props:{onClick:a=>{const u=a.platform==="uniapp",c=location.pathname;let m=c===`${o}__vtj__/`?o:c;const f=a.currentFile;if(f&&f.type==="page"&&a.homepage!==f.id){const H=s.pageBasePath?`/${y}`:"",x=`${b(h)}${u?`pages${H}`:y}/${f.id}`;m=T()?`${m}#/${x}`:`${m}${x}`}window.open(m,"VTJProject")}}}),E.set("Previewer",{props:{path:(a,u)=>{const c=location.pathname;return u.platform==="uniapp"?`${c}uni/#/pages/${a.id}`:`${c}#/preview/${a.id}`}}});const $=new U(w({container:r,service:l,materialPath:o,pageBasePath:h==="/"?"":h,adapter:K,access:R,remote:g,auth:B,checkVersion:q,enhance:D,project:{platform:F}},i));return $.ready(()=>d(null,null,function*(){yield k(300),$.openFile(_.query.id)})),Q(()=>_.query.id,a=>d(null,null,function*(){yield k(300),$.openFile(a)})),(a,u)=>(ee(),X("div",{class:"designer",ref_key:"container",ref:r},null,512))})}}),ge=te(ae,[["__scopeId","data-v-f41f19f5"]]);export{ge as default};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-CVppMb-Z.js","./vue-router-DLyhMsB6.js","./vue-Cs4cahp0.js","./@vueuse-DGhgU4Wj.js","./Editor-CLA-9enI-D3Jup7YW.js","./monaco-editor-Bgo-w-Z8.js","./monaco-editor-C0wzwsn5.css","./element-plus-ClWnlNxy.js","./lodash-es-BxdYFYdv.js","./shared-Df95_Dth.js","./@element-plus-icons-vue-DfQfjj5s.js","./dayjs-GGXMDmCk.js","./element-plus-AP7zs95r.css","./vxe-BJJKGxpR.js","./vxe-BAb1d5vW.css","./html2canvas-DNSjNh3_.js","./mockjs-C_F9xDf5.js","./marked--VTVY_DP.js","./Editor-CLA-9enI-ClyxY6WL.css","./utils-C3t_6B71.js","./_plugin-vue_export-helper-DlAUqK2U.js","./index-Br68Req3.css","./preview-D8u2Wuq-.js","./page-B4vLbNlk.js","./uni-page-hurVTe5x.js","./uni-page-Diqmj53r.css","./auth-CJzTD6Ph.js"])))=>i.map(i=>d[i]);
2
- import{x as _,E as p,u as s,af as d,D as m,K as u,aB as f,J as h,at as v}from"./vue-Cs4cahp0.js";import{z as g,c as E}from"./element-plus-ClWnlNxy.js";import"./dayjs-GGXMDmCk.js";import{_ as r}from"./monaco-editor-Bgo-w-Z8.js";import{createRouter as y,createWebHashHistory as O}from"./vue-router-DLyhMsB6.js";import"./@vueuse-DGhgU4Wj.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Df95_Dth.js";import"./@element-plus-icons-vue-DfQfjj5s.js";(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))i(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const a of t.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&i(a)}).observe(document,{childList:!0,subtree:!0});function n(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function i(e){if(e.ep)return;e.ep=!0;const t=n(e);fetch(e.href,t)}})();const P=_({__name:"app",setup(l){return(o,n)=>{const i=d("router-view");return m(),p(s(E),{locale:s(g)},{default:u(()=>[(m(),p(f,null,{default:u(()=>[h(i)]),_:1}))]),_:1},8,["locale"])}}}),L=[{path:"/",name:"home",component:()=>r(()=>import("./index-CVppMb-Z.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]),import.meta.url)},{path:"/preview/:id",name:"preview",component:()=>r(()=>import("./preview-D8u2Wuq-.js"),__vite__mapDeps([22,5,6,1,2,7,3,8,9,10,11,12,13,14,4,15,16,17,18,19]),import.meta.url)},{path:"/page/:id",name:"page",component:()=>r(()=>import("./page-B4vLbNlk.js"),__vite__mapDeps([23,5,6,1,2,7,3,8,9,10,11,12,13,14,4,15,16,17,18,19]),import.meta.url),meta:{pure:!0}},{path:"/pages/:id",name:"pages",component:()=>r(()=>import("./uni-page-hurVTe5x.js"),__vite__mapDeps([24,1,2,20,25]),import.meta.url),meta:{pure:!0}},{path:"/auth",name:"auth",component:()=>r(()=>import("./auth-CJzTD6Ph.js"),__vite__mapDeps([26,7,3,2,8,9,10,11,12,13,14,4,5,6,1,15,16,17,18,20]),import.meta.url)}],A=y({history:O(),routes:L}),c=v(P);c.use(A);c.mount("#app");
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-DC4JwDQC.js","./vue-router-DLyhMsB6.js","./vue-Cs4cahp0.js","./@vueuse-DGhgU4Wj.js","./Editor-DyuWe83--BVB-iC-v.js","./monaco-editor-Bgo-w-Z8.js","./monaco-editor-C0wzwsn5.css","./element-plus-ClWnlNxy.js","./lodash-es-BxdYFYdv.js","./shared-Df95_Dth.js","./@element-plus-icons-vue-DfQfjj5s.js","./dayjs-GGXMDmCk.js","./element-plus-AP7zs95r.css","./vxe-BJJKGxpR.js","./vxe-BAb1d5vW.css","./html2canvas-DNSjNh3_.js","./mockjs-C_F9xDf5.js","./marked--VTVY_DP.js","./Editor-DyuWe83--ClyxY6WL.css","./utils-DwSQlKsg.js","./_plugin-vue_export-helper-DlAUqK2U.js","./index-Br68Req3.css","./preview-lwFqZLvM.js","./page-Dy3HsUho.js","./uni-page-hurVTe5x.js","./uni-page-Diqmj53r.css","./auth-CLpAqhe-.js"])))=>i.map(i=>d[i]);
2
+ import{x as _,E as p,u as s,af as d,D as m,K as u,aB as f,J as h,at as v}from"./vue-Cs4cahp0.js";import{z as g,c as E}from"./element-plus-ClWnlNxy.js";import"./dayjs-GGXMDmCk.js";import{_ as r}from"./monaco-editor-Bgo-w-Z8.js";import{createRouter as y,createWebHashHistory as O}from"./vue-router-DLyhMsB6.js";import"./@vueuse-DGhgU4Wj.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Df95_Dth.js";import"./@element-plus-icons-vue-DfQfjj5s.js";(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))i(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const a of t.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&i(a)}).observe(document,{childList:!0,subtree:!0});function n(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function i(e){if(e.ep)return;e.ep=!0;const t=n(e);fetch(e.href,t)}})();const P=_({__name:"app",setup(l){return(o,n)=>{const i=d("router-view");return m(),p(s(E),{locale:s(g)},{default:u(()=>[(m(),p(f,null,{default:u(()=>[h(i)]),_:1}))]),_:1},8,["locale"])}}}),L=[{path:"/",name:"home",component:()=>r(()=>import("./index-DC4JwDQC.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]),import.meta.url)},{path:"/preview/:id",name:"preview",component:()=>r(()=>import("./preview-lwFqZLvM.js"),__vite__mapDeps([22,5,6,1,2,7,3,8,9,10,11,12,13,14,4,15,16,17,18,19]),import.meta.url)},{path:"/page/:id",name:"page",component:()=>r(()=>import("./page-Dy3HsUho.js"),__vite__mapDeps([23,5,6,1,2,7,3,8,9,10,11,12,13,14,4,15,16,17,18,19]),import.meta.url),meta:{pure:!0}},{path:"/pages/:id",name:"pages",component:()=>r(()=>import("./uni-page-hurVTe5x.js"),__vite__mapDeps([24,1,2,20,25]),import.meta.url),meta:{pure:!0}},{path:"/auth",name:"auth",component:()=>r(()=>import("./auth-CLpAqhe-.js"),__vite__mapDeps([26,7,3,2,8,9,10,11,12,13,14,4,5,6,1,15,16,17,18,20]),import.meta.url)}],A=y({history:O(),routes:L}),c=v(P);c.use(A);c.mount("#app");
@@ -1,2 +1,2 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-DLyhMsB6.js","./vue-Cs4cahp0.js"])))=>i.map(i=>d[i]);
2
- var R=Object.defineProperty;var E=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var x=(o,t,e)=>t in o?R(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,y=(o,t)=>{for(var e in t||(t={}))h.call(t,e)&&x(o,e,t[e]);if(E)for(var e of E(t))A.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 C}from"./monaco-editor-Bgo-w-Z8.js";import{useRoute as D}from"./vue-router-DLyhMsB6.js";import"./element-plus-ClWnlNxy.js";import"./vxe-BJJKGxpR.js";import{K as P,q as T,D as B,B as V,y as k,Y as I,T as S}from"./Editor-CLA-9enI-D3Jup7YW.js";import{a as q,n as g,l as K,E as L}from"./utils-C3t_6B71.js";import{y as O}from"./@vueuse-DGhgU4Wj.js";import{x as Y,az as w,d as z,E as H,S as N,U,r as b,D as j,g as F}from"./vue-Cs4cahp0.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Df95_Dth.js";import"./@element-plus-icons-vue-DfQfjj5s.js";import"./dayjs-GGXMDmCk.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-C_F9xDf5.js";import"./marked--VTVY_DP.js";const it=Y({__name:"page",setup(o){return c(this,null,function*(){let t,e;const _=new P(T(g)),s=([t,e]=w(()=>_.getExtension().catch(()=>null)),t=yield t,e(),t),u=B({loading:K,notify:g,useTitle:O,alert:q,access:s==null?void 0:s.access}),d=s?([t,e]=w(()=>new L(s).load()),t=yield t,e(),t):{},{__BASE_PATH__:p="/"}=s||{},{provider:r,onReady:i}=V({mode:k.Runtime,service:_,materialPath:p,adapter:y(y({},u),d.adapter),dependencies:{Vue:()=>C(()=>import("./vue-Cs4cahp0.js").then(a=>a.aA),[],import.meta.url),VueRouter:()=>C(()=>import("./vue-router-DLyhMsB6.js"),__vite__mapDeps([0,1]),import.meta.url)}}),l=D(),f=b(),n=F(),v=a=>c(null,null,function*(){f.value=yield r.getRenderComponent(l.params.id.toString(),m=>{S(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))})),z(()=>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?(j(),H(N(f.value),{key:0})):U("",!0)})}});export{it as default};
2
+ var R=Object.defineProperty;var E=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var x=(o,t,e)=>t in o?R(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,y=(o,t)=>{for(var e in t||(t={}))h.call(t,e)&&x(o,e,t[e]);if(E)for(var e of E(t))A.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 C}from"./monaco-editor-Bgo-w-Z8.js";import{useRoute as D}from"./vue-router-DLyhMsB6.js";import"./element-plus-ClWnlNxy.js";import"./vxe-BJJKGxpR.js";import{K as P,q as T,D as B,B as V,y as k,Y as I,T as S}from"./Editor-DyuWe83--BVB-iC-v.js";import{a as q,n as g,l as K,E as L}from"./utils-DwSQlKsg.js";import{y as O}from"./@vueuse-DGhgU4Wj.js";import{x as Y,az as w,d as z,E as H,S as N,U,r as b,D as j,g as F}from"./vue-Cs4cahp0.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Df95_Dth.js";import"./@element-plus-icons-vue-DfQfjj5s.js";import"./dayjs-GGXMDmCk.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-C_F9xDf5.js";import"./marked--VTVY_DP.js";const it=Y({__name:"page",setup(o){return c(this,null,function*(){let t,e;const _=new P(T(g)),s=([t,e]=w(()=>_.getExtension().catch(()=>null)),t=yield t,e(),t),u=B({loading:K,notify:g,useTitle:O,alert:q,access:s==null?void 0:s.access}),d=s?([t,e]=w(()=>new L(s).load()),t=yield t,e(),t):{},{__BASE_PATH__:p="/"}=s||{},{provider:r,onReady:i}=V({mode:k.Runtime,service:_,materialPath:p,adapter:y(y({},u),d.adapter),dependencies:{Vue:()=>C(()=>import("./vue-Cs4cahp0.js").then(a=>a.aA),[],import.meta.url),VueRouter:()=>C(()=>import("./vue-router-DLyhMsB6.js"),__vite__mapDeps([0,1]),import.meta.url)}}),l=D(),f=b(),n=F(),v=a=>c(null,null,function*(){f.value=yield r.getRenderComponent(l.params.id.toString(),m=>{S(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))})),z(()=>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?(j(),H(N(f.value),{key:0})):U("",!0)})}});export{it as default};
@@ -1,2 +1,2 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-DLyhMsB6.js","./vue-Cs4cahp0.js"])))=>i.map(i=>d[i]);
2
- var R=Object.defineProperty;var y=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable;var E=(o,e,t)=>e in o?R(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,d=(o,e)=>{for(var t in e||(e={}))A.call(e,t)&&E(o,t,e[t]);if(y)for(var t of y(e))D.call(e,t)&&E(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 w}from"./monaco-editor-Bgo-w-Z8.js";import{useRoute as T}from"./vue-router-DLyhMsB6.js";import"./element-plus-ClWnlNxy.js";import"./vxe-BJJKGxpR.js";import{K as g,q as B,D as P,B as V,y as L,L as k,Y as I,T as S}from"./Editor-CLA-9enI-D3Jup7YW.js";import{a as q,n as h,l as K,E as O}from"./utils-C3t_6B71.js";import{y as Y}from"./@vueuse-DGhgU4Wj.js";import{x as z,az as x,E as H,S as N,U,r as b,D as j,g as F}from"./vue-Cs4cahp0.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Df95_Dth.js";import"./@element-plus-icons-vue-DfQfjj5s.js";import"./dayjs-GGXMDmCk.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-C_F9xDf5.js";import"./marked--VTVY_DP.js";const pe=z({__name:"preview",setup(o){return f(this,null,function*(){let e,t;const c=new g(B(h)),s=([e,t]=x(()=>c.getExtension().catch(()=>null)),e=yield e,t(),e||{}),_=P({loading:K,notify:h,useTitle:Y,alert:q,access:s==null?void 0:s.access}),n=s?([e,t]=x(()=>new O(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:i="/"}=s||{},{provider:a,onReady:p}=V({mode:L.Runtime,service:c,materialPath:i,adapter:d(d({},_),n.adapter),dependencies:{Vue:()=>w(()=>import("./vue-Cs4cahp0.js").then(m=>m.aA),[],import.meta.url),VueRouter:()=>w(()=>import("./vue-router-DLyhMsB6.js"),__vite__mapDeps([0,1]),import.meta.url)}}),v=T(),u=b(),l=F();return p(()=>f(null,null,function*(){const m=yield k(s.enhance),r=l==null?void 0:l.appContext.app;r&&(n.install&&n.install(r),m&&r.use(m,a),r.use(I),r.use(a),u.value=yield a.getRenderComponent(v.params.id.toString(),C=>{S(r,v,C)}))})),(m,r)=>u.value?(j(),H(N(u.value),{key:0})):U("",!0)})}});export{pe as default};
2
+ var R=Object.defineProperty;var y=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable;var E=(o,e,t)=>e in o?R(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,d=(o,e)=>{for(var t in e||(e={}))A.call(e,t)&&E(o,t,e[t]);if(y)for(var t of y(e))D.call(e,t)&&E(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 w}from"./monaco-editor-Bgo-w-Z8.js";import{useRoute as T}from"./vue-router-DLyhMsB6.js";import"./element-plus-ClWnlNxy.js";import"./vxe-BJJKGxpR.js";import{K as g,q as B,D as P,B as V,y as L,L as k,Y as I,T as S}from"./Editor-DyuWe83--BVB-iC-v.js";import{a as q,n as h,l as K,E as O}from"./utils-DwSQlKsg.js";import{y as Y}from"./@vueuse-DGhgU4Wj.js";import{x as z,az as x,E as H,S as N,U,r as b,D as j,g as F}from"./vue-Cs4cahp0.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Df95_Dth.js";import"./@element-plus-icons-vue-DfQfjj5s.js";import"./dayjs-GGXMDmCk.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-C_F9xDf5.js";import"./marked--VTVY_DP.js";const pe=z({__name:"preview",setup(o){return f(this,null,function*(){let e,t;const c=new g(B(h)),s=([e,t]=x(()=>c.getExtension().catch(()=>null)),e=yield e,t(),e||{}),_=P({loading:K,notify:h,useTitle:Y,alert:q,access:s==null?void 0:s.access}),n=s?([e,t]=x(()=>new O(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:i="/"}=s||{},{provider:a,onReady:p}=V({mode:L.Runtime,service:c,materialPath:i,adapter:d(d({},_),n.adapter),dependencies:{Vue:()=>w(()=>import("./vue-Cs4cahp0.js").then(m=>m.aA),[],import.meta.url),VueRouter:()=>w(()=>import("./vue-router-DLyhMsB6.js"),__vite__mapDeps([0,1]),import.meta.url)}}),v=T(),u=b(),l=F();return p(()=>f(null,null,function*(){const m=yield k(s.enhance),r=l==null?void 0:l.appContext.app;r&&(n.install&&n.install(r),m&&r.use(m,a),r.use(I),r.use(a),u.value=yield a.getRenderComponent(v.params.id.toString(),C=>{S(r,v,C)}))})),(m,r)=>u.value?(j(),H(N(u.value),{key:0})):U("",!0)})}});export{pe as default};
@@ -1 +1 @@
1
- var O=Object.defineProperty;var p=Object.getOwnPropertySymbols;var m=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;var T=(t,a,s)=>a in t?O(t,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[a]=s,E=(t,a)=>{for(var s in a||(a={}))m.call(a,s)&&T(t,s,a[s]);if(p)for(var s of p(a))u.call(a,s)&&T(t,s,a[s]);return t};var l=(t,a,s)=>T(t,typeof a!="symbol"?a+"":a,s);var S=(t,a,s)=>new Promise((o,n)=>{var e=r=>{try{i(s.next(r))}catch(_){n(_)}},c=r=>{try{i(s.throw(r))}catch(_){n(_)}},i=r=>r.done?o(r.value):Promise.resolve(r.value).then(e,c);i((s=s.apply(t,a)).next())});import{aA as d}from"./vue-Cs4cahp0.js";import{W as A,R as I,J as f,v as V,p as P,b,H as h,c as R,e as y,f as N,a as B,A as L,X as M,g as D,S as H,h as k,i as K,F as v,j as x,G,l as w,Q as F,m as W,n as Y,x as C,o as U,r as J,s as $,t as j,u as z,w as X,z as Z,C as q,E as Q,I as aa,M as sa,N as ea,O as ta,P as ra,V as na,U as ia,_ as oa,$ as _a,a0 as la,a1 as Ea,a2 as ca,a3 as Ta,a4 as pa,a5 as Sa,a6 as ga,a7 as Oa,a8 as ma,a9 as ua,aa as da,ab as Aa,ac as Ia,ad as fa,ae as Va,af as Pa,ag as ba,ah as ha,ai as Ra,aj as ya,ak as Na,al as Ba,am as La,an as Ma,ao as Da,ap as Ha,aq as ka,ar as Ka,as as va,at as xa,au as Ga,av as wa,aw as Fa,Z as Wa,ax as Ya,ay as Ca,az as Ua,aA as Ja,aB as $a,aC as ja,aD as za,aE as Xa}from"./Editor-CLA-9enI-D3Jup7YW.js";import{E as Za,a as qa,b as Qa}from"./element-plus-ClWnlNxy.js";import"./dayjs-GGXMDmCk.js";const as=Object.freeze(Object.defineProperty({__proto__:null,API_METHOD_TYPES:A,ActionMenu:I,Assets:f,Binder:V,Box:P,CodeIncrementalUpdater:b,DEVTOOLS_DEP:h,Designer:R,EVENT_MODIFIERS:y,Editor:N,Engine:B,EventBinder:L,GET_TOKENS_LINK:M,HOT_KEYS_DEP:D,Icon:H,Item:k,KEYBOARD_EVENT_LIST:K,MAX_TOKENS:v,MOBILE_SIZE:x,MOUSE_EVENT_LIST:G,NAME_REGEX:w,NPM_REGISTRY_URL:F,OpenApi:W,PAD_SIZE:Y,Panel:C,REPORT_API:U,RegionType:J,RegionWrapper:$,Renderer:j,SAVE_BLOCK_FILE_FINISH:z,SESSION_ID_KEY:X,STATE_KEY:Z,SetterView:q,SetterWrapper:Q,Simulator:aa,Skeleton:sa,SkeletonWrapper:ea,SlotsPicker:ta,State:ra,TOOL_CONFIGS:na,Tabs:ia,ToolRegistry:oa,VERSION_REGEX:_a,VTJ_DESIGNER_VERSION:la,VUE_DEVTOOLS_FRAME_STATE_KEY:Ea,VUE_DEVTOOLS_OVERLAY_PATH:ca,VUE_DEVTOOLS_PATH:Ta,VariableBinder:pa,Viewer:Sa,Viewport:ga,WidgetGroup:Oa,WidgetWrapper:ma,alert:ua,builtInDeps:da,builtInMaterials:Aa,builtInSetters:Ia,builtInWidgets:fa,codeIncrementalUpdater:Va,confirm:Pa,createSlotsPicker:ba,defaultSetter:ha,depsManager:Ra,engineKey:ya,expressionValidate:Na,getClassProperties:Ba,loading:La,message:Ma,normalizedStyle:Da,notify:Ha,proxyContext:ka,readJsonFile:Ka,regions:va,setterManager:xa,setters:Ga,upgradeVersion:wa,useEngine:Fa,widgetManager:Wa,widgets:Ya},Symbol.toStringTag,{value:"Module"}));class is{constructor(a){l(this,"urls",[]);l(this,"library","");l(this,"params",[]);l(this,"__BASE_PATH__","/");this.config=a;const s=E(E(E({},Ua),as),Ca),o={Vue:d,__VTJ_PRO__:s};for(const[_,g]of Object.entries(o))window[_]=g;const{extension:n,__BASE_PATH__:e="/"}=a||{},{urls:c=[],library:i,params:r=[]}=n||{};i&&(this.urls=c,this.library=i,this.params=r,this.__BASE_PATH__=e)}load(){return S(this,null,function*(){let a={};if(this.library){const s=this.__BASE_PATH__,o=this.urls.filter(e=>Ja(e)).map(e=>`${s}${e}`),n=this.urls.filter(e=>$a(e)).map(e=>`${s}${e}`);if(ja(o),n.length){const e=yield za(n,this.library).catch(()=>null);e&&typeof e=="function"?a=e.call(e,this.config,...this.params):a=e||{}}}return Object.assign({},this.getEngineOptions(),a)})}getEngineOptions(){const a=["materialPath","pageBasePath","pageRouteName","remote","checkVersion","noMask","auth"];return Xa(this.config,a)}}function os(){return Qa.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"})}function _s(t,a="",s="warning"){qa({title:a,message:t,type:s})}function ls(t,a){return Za.alert(t,a)}export{is as E,ls as a,os as l,_s as n};
1
+ var O=Object.defineProperty;var p=Object.getOwnPropertySymbols;var m=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;var T=(t,a,s)=>a in t?O(t,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[a]=s,E=(t,a)=>{for(var s in a||(a={}))m.call(a,s)&&T(t,s,a[s]);if(p)for(var s of p(a))u.call(a,s)&&T(t,s,a[s]);return t};var l=(t,a,s)=>T(t,typeof a!="symbol"?a+"":a,s);var S=(t,a,s)=>new Promise((o,n)=>{var e=r=>{try{i(s.next(r))}catch(_){n(_)}},c=r=>{try{i(s.throw(r))}catch(_){n(_)}},i=r=>r.done?o(r.value):Promise.resolve(r.value).then(e,c);i((s=s.apply(t,a)).next())});import{aA as d}from"./vue-Cs4cahp0.js";import{W as A,R as I,J as f,v as V,p as P,b,H as h,c as R,e as y,f as N,a as B,A as L,X as M,g as D,S as H,h as k,i as K,F as v,j as x,G,l as w,Q as F,m as W,n as Y,x as C,o as U,r as J,s as $,t as j,u as z,w as X,z as Z,C as q,E as Q,I as aa,M as sa,N as ea,O as ta,P as ra,V as na,U as ia,_ as oa,$ as _a,a0 as la,a1 as Ea,a2 as ca,a3 as Ta,a4 as pa,a5 as Sa,a6 as ga,a7 as Oa,a8 as ma,a9 as ua,aa as da,ab as Aa,ac as Ia,ad as fa,ae as Va,af as Pa,ag as ba,ah as ha,ai as Ra,aj as ya,ak as Na,al as Ba,am as La,an as Ma,ao as Da,ap as Ha,aq as ka,ar as Ka,as as va,at as xa,au as Ga,av as wa,aw as Fa,Z as Wa,ax as Ya,ay as Ca,az as Ua,aA as Ja,aB as $a,aC as ja,aD as za,aE as Xa}from"./Editor-DyuWe83--BVB-iC-v.js";import{E as Za,a as qa,b as Qa}from"./element-plus-ClWnlNxy.js";import"./dayjs-GGXMDmCk.js";const as=Object.freeze(Object.defineProperty({__proto__:null,API_METHOD_TYPES:A,ActionMenu:I,Assets:f,Binder:V,Box:P,CodeIncrementalUpdater:b,DEVTOOLS_DEP:h,Designer:R,EVENT_MODIFIERS:y,Editor:N,Engine:B,EventBinder:L,GET_TOKENS_LINK:M,HOT_KEYS_DEP:D,Icon:H,Item:k,KEYBOARD_EVENT_LIST:K,MAX_TOKENS:v,MOBILE_SIZE:x,MOUSE_EVENT_LIST:G,NAME_REGEX:w,NPM_REGISTRY_URL:F,OpenApi:W,PAD_SIZE:Y,Panel:C,REPORT_API:U,RegionType:J,RegionWrapper:$,Renderer:j,SAVE_BLOCK_FILE_FINISH:z,SESSION_ID_KEY:X,STATE_KEY:Z,SetterView:q,SetterWrapper:Q,Simulator:aa,Skeleton:sa,SkeletonWrapper:ea,SlotsPicker:ta,State:ra,TOOL_CONFIGS:na,Tabs:ia,ToolRegistry:oa,VERSION_REGEX:_a,VTJ_DESIGNER_VERSION:la,VUE_DEVTOOLS_FRAME_STATE_KEY:Ea,VUE_DEVTOOLS_OVERLAY_PATH:ca,VUE_DEVTOOLS_PATH:Ta,VariableBinder:pa,Viewer:Sa,Viewport:ga,WidgetGroup:Oa,WidgetWrapper:ma,alert:ua,builtInDeps:da,builtInMaterials:Aa,builtInSetters:Ia,builtInWidgets:fa,codeIncrementalUpdater:Va,confirm:Pa,createSlotsPicker:ba,defaultSetter:ha,depsManager:Ra,engineKey:ya,expressionValidate:Na,getClassProperties:Ba,loading:La,message:Ma,normalizedStyle:Da,notify:Ha,proxyContext:ka,readJsonFile:Ka,regions:va,setterManager:xa,setters:Ga,upgradeVersion:wa,useEngine:Fa,widgetManager:Wa,widgets:Ya},Symbol.toStringTag,{value:"Module"}));class is{constructor(a){l(this,"urls",[]);l(this,"library","");l(this,"params",[]);l(this,"__BASE_PATH__","/");this.config=a;const s=E(E(E({},Ua),as),Ca),o={Vue:d,__VTJ_PRO__:s};for(const[_,g]of Object.entries(o))window[_]=g;const{extension:n,__BASE_PATH__:e="/"}=a||{},{urls:c=[],library:i,params:r=[]}=n||{};i&&(this.urls=c,this.library=i,this.params=r,this.__BASE_PATH__=e)}load(){return S(this,null,function*(){let a={};if(this.library){const s=this.__BASE_PATH__,o=this.urls.filter(e=>Ja(e)).map(e=>`${s}${e}`),n=this.urls.filter(e=>$a(e)).map(e=>`${s}${e}`);if(ja(o),n.length){const e=yield za(n,this.library).catch(()=>null);e&&typeof e=="function"?a=e.call(e,this.config,...this.params):a=e||{}}}return Object.assign({},this.getEngineOptions(),a)})}getEngineOptions(){const a=["materialPath","pageBasePath","pageRouteName","remote","checkVersion","noMask","auth"];return Xa(this.config,a)}}function os(){return Qa.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"})}function _s(t,a="",s="warning"){qa({title:a,message:t,type:s})}function ls(t,a){return Za.alert(t,a)}export{is as E,ls as a,os as l,_s as n};
package/dist/index.html CHANGED
@@ -11,7 +11,7 @@
11
11
  <meta http-equiv="Expires" content="0" />
12
12
  <title>低代码设计器 - VTJ.PRO</title>
13
13
  <script>
14
- var __BUILD_TIME__ = '1777119362796';
14
+ var __BUILD_TIME__ = '1777266054335';
15
15
  (function () {
16
16
  const regex = /<!--{{(\d*)}}-->/;
17
17
  window.fetch('?t=' + Date.now()).then(async (res) => {
@@ -27,9 +27,9 @@
27
27
  });
28
28
  })();
29
29
  </script>
30
- <!--{{1777119362796}}-->
30
+ <!--{{1777266054335}}-->
31
31
 
32
- <script type="module" crossorigin src="./assets/index-gIvIdI7Q.js"></script>
32
+ <script type="module" crossorigin src="./assets/index-KkwS5J8c.js"></script>
33
33
  <link rel="modulepreload" crossorigin href="./assets/vue-Cs4cahp0.js">
34
34
  <link rel="modulepreload" crossorigin href="./assets/@vueuse-DGhgU4Wj.js">
35
35
  <link rel="modulepreload" crossorigin href="./assets/lodash-es-BxdYFYdv.js">
@@ -46,7 +46,7 @@ function print() { __p += __j.call(arguments, '') }
46
46
  * Copyright (c) 2026, VTJ.PRO All rights reserved.
47
47
  * @name @vtj/core
48
48
  * @author CHC chenhuachun1549@dingtalk.com
49
- * @version 0.16.24
49
+ * @version 0.16.26
50
50
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
51
51
  */const Yg="VueMaterial",Zg="VueRouterMaterial",Qg={[Yg]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[Zg]:["RouterView","RouterLink"]};let Xg=class{constructor(){k(this,"listeners",[]);k(this,"isReady",!1)}triggerReady(){this.isReady=!0;for(const e of this.listeners)e();this.listeners=[]}ready(e){this.isReady?e():this.listeners.push(e)}resetReady(){this.isReady=!1}};var ev=Object.defineProperty,tv=(r,e,t)=>e in r?ev(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,fe=(r,e,t)=>tv(r,typeof e!="symbol"?e+"":e,t);(function(){if(typeof window>"u"||typeof EventTarget>"u")return;const r=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(e,t,n){typeof n!="boolean"&&(n=n||{},n.passive=!1),r.call(this,e,t,n)}})();function Mo(r,e){return function(){return r.apply(e,arguments)}}const{toString:rv}=Object.prototype,{getPrototypeOf:Bn}=Object,{iterator:fr,toStringTag:Fo}=Symbol,hr=(r=>e=>{const t=rv.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),_e=r=>(r=r.toLowerCase(),e=>hr(e)===r),pr=r=>e=>typeof e===r,{isArray:lt}=Array,st=pr("undefined");function xt(r){return r!==null&&!st(r)&&r.constructor!==null&&!st(r.constructor)&&ue(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}const Lo=_e("ArrayBuffer");function nv(r){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(r):e=r&&r.buffer&&Lo(r.buffer),e}const iv=pr("string"),ue=pr("function"),Uo=pr("number"),Ot=r=>r!==null&&typeof r=="object",sv=r=>r===!0||r===!1,Jt=r=>{if(hr(r)!=="object")return!1;const e=Bn(r);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Fo in r)&&!(fr in r)},ov=r=>{if(!Ot(r)||xt(r))return!1;try{return Object.keys(r).length===0&&Object.getPrototypeOf(r)===Object.prototype}catch(e){return!1}},av=_e("Date"),uv=_e("File"),cv=r=>!!(r&&typeof r.uri<"u"),lv=r=>r&&typeof r.getParts<"u",fv=_e("Blob"),hv=_e("FileList"),pv=r=>Ot(r)&&ue(r.pipe);function dv(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Ki=dv(),Ji=typeof Ki.FormData<"u"?Ki.FormData:void 0,gv=r=>{let e;return r&&(Ji&&r instanceof Ji||ue(r.append)&&((e=hr(r))==="formdata"||e==="object"&&ue(r.toString)&&r.toString()==="[object FormData]"))},vv=_e("URLSearchParams"),[mv,yv,bv,_v]=["ReadableStream","Request","Response","Headers"].map(_e),wv=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function $t(r,e,{allOwnKeys:t=!1}={}){if(r===null||typeof r>"u")return;let n,i;if(typeof r!="object"&&(r=[r]),lt(r))for(n=0,i=r.length;n<i;n++)e.call(null,r[n],n,r);else{if(xt(r))return;const s=t?Object.getOwnPropertyNames(r):Object.keys(r),o=s.length;let u;for(n=0;n<o;n++)u=s[n],e.call(null,r[u],u,r)}}function Ho(r,e){if(xt(r))return null;e=e.toLowerCase();const t=Object.keys(r);let n=t.length,i;for(;n-- >0;)if(i=t[n],e===i.toLowerCase())return i;return null}const ke=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Vo=r=>!st(r)&&r!==ke;function an(){const{caseless:r,skipUndefined:e}=Vo(this)&&this||{},t={},n=(i,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;const o=r&&Ho(t,s)||s;Jt(t[o])&&Jt(i)?t[o]=an(t[o],i):Jt(i)?t[o]=an({},i):lt(i)?t[o]=i.slice():(!e||!st(i))&&(t[o]=i)};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&$t(arguments[i],n);return t}const Ev=(r,e,t,{allOwnKeys:n}={})=>($t(e,(i,s)=>{t&&ue(i)?Object.defineProperty(r,s,{value:Mo(i,t),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(r,s,{value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),r),Sv=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),Tv=(r,e,t,n)=>{r.prototype=Object.create(e.prototype,n),Object.defineProperty(r.prototype,"constructor",{value:r,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(r,"super",{value:e.prototype}),t&&Object.assign(r.prototype,t)},Rv=(r,e,t,n)=>{let i,s,o;const u={};if(e=e||{},r==null)return e;do{for(i=Object.getOwnPropertyNames(r),s=i.length;s-- >0;)o=i[s],(!n||n(o,r,e))&&!u[o]&&(e[o]=r[o],u[o]=!0);r=t!==!1&&Bn(r)}while(r&&(!t||t(r,e))&&r!==Object.prototype);return e},Av=(r,e,t)=>{r=String(r),(t===void 0||t>r.length)&&(t=r.length),t-=e.length;const n=r.indexOf(e,t);return n!==-1&&n===t},xv=r=>{if(!r)return null;if(lt(r))return r;let e=r.length;if(!Uo(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=r[e];return t},Ov=(r=>e=>r&&e instanceof r)(typeof Uint8Array<"u"&&Bn(Uint8Array)),$v=(r,e)=>{const t=(r&&r[fr]).call(r);let n;for(;(n=t.next())&&!n.done;){const i=n.value;e.call(r,i[0],i[1])}},Dv=(r,e)=>{let t;const n=[];for(;(t=r.exec(e))!==null;)n.push(t);return n},Cv=_e("HTMLFormElement"),Bv=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),Gi=(({hasOwnProperty:r})=>(e,t)=>r.call(e,t))(Object.prototype),Pv=_e("RegExp"),ko=(r,e)=>{const t=Object.getOwnPropertyDescriptors(r),n={};$t(t,(i,s)=>{let o;(o=e(i,s,r))!==!1&&(n[s]=o||i)}),Object.defineProperties(r,n)},jv=r=>{ko(r,(e,t)=>{if(ue(r)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=r[t];if(ue(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},Nv=(r,e)=>{const t={},n=i=>{i.forEach(s=>{t[s]=!0})};return lt(r)?n(r):n(String(r).split(e)),t},Iv=()=>{},Mv=(r,e)=>r!=null&&Number.isFinite(r=+r)?r:e;function Fv(r){return!!(r&&ue(r.append)&&r[Fo]==="FormData"&&r[fr])}const Lv=r=>{const e=new Array(10),t=(n,i)=>{if(Ot(n)){if(e.indexOf(n)>=0)return;if(xt(n))return n;if(!("toJSON"in n)){e[i]=n;const s=lt(n)?[]:{};return $t(n,(o,u)=>{const l=t(o,i+1);!st(l)&&(s[u]=l)}),e[i]=void 0,s}}return n};return t(r,0)},Uv=_e("AsyncFunction"),Hv=r=>r&&(Ot(r)||ue(r))&&ue(r.then)&&ue(r.catch),qo=((r,e)=>r?setImmediate:e?((t,n)=>(ke.addEventListener("message",({source:i,data:s})=>{i===ke&&s===t&&n.length&&n.shift()()},!1),i=>{n.push(i),ke.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",ue(ke.postMessage)),Vv=typeof queueMicrotask<"u"?queueMicrotask.bind(ke):typeof process<"u"&&process.nextTick||qo,kv=r=>r!=null&&ue(r[fr]),R={isArray:lt,isArrayBuffer:Lo,isBuffer:xt,isFormData:gv,isArrayBufferView:nv,isString:iv,isNumber:Uo,isBoolean:sv,isObject:Ot,isPlainObject:Jt,isEmptyObject:ov,isReadableStream:mv,isRequest:yv,isResponse:bv,isHeaders:_v,isUndefined:st,isDate:av,isFile:uv,isReactNativeBlob:cv,isReactNative:lv,isBlob:fv,isRegExp:Pv,isFunction:ue,isStream:pv,isURLSearchParams:vv,isTypedArray:Ov,isFileList:hv,forEach:$t,merge:an,extend:Ev,trim:wv,stripBOM:Sv,inherits:Tv,toFlatObject:Rv,kindOf:hr,kindOfTest:_e,endsWith:Av,toArray:xv,forEachEntry:$v,matchAll:Dv,isHTMLForm:Cv,hasOwnProperty:Gi,hasOwnProp:Gi,reduceDescriptors:ko,freezeMethods:jv,toObjectSet:Nv,toCamelCase:Bv,noop:Iv,toFiniteNumber:Mv,findKey:Ho,global:ke,isContextDefined:Vo,isSpecCompliantForm:Fv,toJSONObject:Lv,isAsyncFn:Uv,isThenable:Hv,setImmediate:qo,asap:Vv,isIterable:kv};let W=class zo extends Error{static from(e,t,n,i,s,o){const u=new zo(e.message,t||e.code,n,i,s);return u.cause=e,u.name=e.name,e.status!=null&&u.status==null&&(u.status=e.status),o&&Object.assign(u,o),u}constructor(e,t,n,i,s){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),s&&(this.response=s,this.status=s.status)}toJSON(){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}}};W.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";W.ERR_BAD_OPTION="ERR_BAD_OPTION";W.ECONNABORTED="ECONNABORTED";W.ETIMEDOUT="ETIMEDOUT";W.ERR_NETWORK="ERR_NETWORK";W.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";W.ERR_DEPRECATED="ERR_DEPRECATED";W.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";W.ERR_BAD_REQUEST="ERR_BAD_REQUEST";W.ERR_CANCELED="ERR_CANCELED";W.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";W.ERR_INVALID_URL="ERR_INVALID_URL";const qv=null;function un(r){return R.isPlainObject(r)||R.isArray(r)}function Wo(r){return R.endsWith(r,"[]")?r.slice(0,-2):r}function Nr(r,e,t){return r?r.concat(e).map(function(n,i){return n=Wo(n),!t&&i?"["+n+"]":n}).join(t?".":""):e}function zv(r){return R.isArray(r)&&!r.some(un)}const Wv=R.toFlatObject(R,{},null,function(r){return/^is[A-Z]/.test(r)});function dr(r,e,t){if(!R.isObject(r))throw new TypeError("target must be an object");e=e||new FormData,t=R.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,d){return!R.isUndefined(d[p])});const n=t.metaTokens,i=t.visitor||a,s=t.dots,o=t.indexes,u=(t.Blob||typeof Blob<"u"&&Blob)&&R.isSpecCompliantForm(e);if(!R.isFunction(i))throw new TypeError("visitor must be a function");function l(p){if(p===null)return"";if(R.isDate(p))return p.toISOString();if(R.isBoolean(p))return p.toString();if(!u&&R.isBlob(p))throw new W("Blob is not supported. Use a Buffer instead.");return R.isArrayBuffer(p)||R.isTypedArray(p)?u&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function a(p,d,g){let v=p;if(R.isReactNative(e)&&R.isReactNativeBlob(p))return e.append(Nr(g,d,s),l(p)),!1;if(p&&!g&&typeof p=="object"){if(R.endsWith(d,"{}"))d=n?d:d.slice(0,-2),p=JSON.stringify(p);else if(R.isArray(p)&&zv(p)||(R.isFileList(p)||R.endsWith(d,"[]"))&&(v=R.toArray(p)))return d=Wo(d),v.forEach(function(E,m){!(R.isUndefined(E)||E===null)&&e.append(o===!0?Nr([d],m,s):o===null?d:d+"[]",l(E))}),!1}return un(p)?!0:(e.append(Nr(g,d,s),l(p)),!1)}const c=[],f=Object.assign(Wv,{defaultVisitor:a,convertValue:l,isVisitable:un});function h(p,d){if(!R.isUndefined(p)){if(c.indexOf(p)!==-1)throw Error("Circular reference detected in "+d.join("."));c.push(p),R.forEach(p,function(g,v){(!(R.isUndefined(g)||g===null)&&i.call(e,g,R.isString(v)?v.trim():v,d,f))===!0&&h(g,d?d.concat(v):[v])}),c.pop()}}if(!R.isObject(r))throw new TypeError("data must be an object");return h(r),e}function Yi(r){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,function(t){return e[t]})}function Pn(r,e){this._pairs=[],r&&dr(r,this,e)}const Ko=Pn.prototype;Ko.append=function(r,e){this._pairs.push([r,e])};Ko.toString=function(r){const e=r?function(t){return r.call(this,t,Yi)}:Yi;return this._pairs.map(function(t){return e(t[0])+"="+e(t[1])},"").join("&")};function Kv(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Jo(r,e,t){if(!e)return r;const n=t&&t.encode||Kv,i=R.isFunction(t)?{serialize:t}:t,s=i&&i.serialize;let o;if(s?o=s(e,i):o=R.isURLSearchParams(e)?e.toString():new Pn(e,i).toString(n),o){const u=r.indexOf("#");u!==-1&&(r=r.slice(0,u)),r+=(r.indexOf("?")===-1?"?":"&")+o}return r}class Zi{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){R.forEach(this.handlers,function(t){t!==null&&e(t)})}}const jn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Jv=typeof URLSearchParams<"u"?URLSearchParams:Pn,Gv=typeof FormData<"u"?FormData:null,Yv=typeof Blob<"u"?Blob:null,Zv={isBrowser:!0,classes:{URLSearchParams:Jv,FormData:Gv,Blob:Yv},protocols:["http","https","file","blob","url","data"]},Nn=typeof window<"u"&&typeof document<"u",cn=typeof navigator=="object"&&navigator||void 0,Qv=Nn&&(!cn||["ReactNative","NativeScript","NS"].indexOf(cn.product)<0),Xv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",em=Nn&&window.location.href||"http://localhost",tm=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Nn,hasStandardBrowserEnv:Qv,hasStandardBrowserWebWorkerEnv:Xv,navigator:cn,origin:em},Symbol.toStringTag,{value:"Module"})),ie=V(V({},tm),Zv);function rm(r,e){return dr(r,new ie.classes.URLSearchParams,V({visitor:function(t,n,i,s){return ie.isNode&&R.isBuffer(t)?(this.append(n,t.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function nm(r){return R.matchAll(/\w+|\[(\w*)]/g,r).map(e=>e[0]==="[]"?"":e[1]||e[0])}function im(r){const e={},t=Object.keys(r);let n;const i=t.length;let s;for(n=0;n<i;n++)s=t[n],e[s]=r[s];return e}function Go(r){function e(t,n,i,s){let o=t[s++];if(o==="__proto__")return!0;const u=Number.isFinite(+o),l=s>=t.length;return o=!o&&R.isArray(i)?i.length:o,l?(R.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!u):((!i[o]||!R.isObject(i[o]))&&(i[o]=[]),e(t,n,i[o],s)&&R.isArray(i[o])&&(i[o]=im(i[o])),!u)}if(R.isFormData(r)&&R.isFunction(r.entries)){const t={};return R.forEachEntry(r,(n,i)=>{e(nm(n),i,t,0)}),t}return null}function sm(r,e,t){if(R.isString(r))try{return(e||JSON.parse)(r),R.trim(r)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(r)}const Dt={transitional:jn,adapter:["xhr","http","fetch"],transformRequest:[function(r,e){const t=e.getContentType()||"",n=t.indexOf("application/json")>-1,i=R.isObject(r);if(i&&R.isHTMLForm(r)&&(r=new FormData(r)),R.isFormData(r))return n?JSON.stringify(Go(r)):r;if(R.isArrayBuffer(r)||R.isBuffer(r)||R.isStream(r)||R.isFile(r)||R.isBlob(r)||R.isReadableStream(r))return r;if(R.isArrayBufferView(r))return r.buffer;if(R.isURLSearchParams(r))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),r.toString();let s;if(i){if(t.indexOf("application/x-www-form-urlencoded")>-1)return rm(r,this.formSerializer).toString();if((s=R.isFileList(r))||t.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return dr(s?{"files[]":r}:r,o&&new o,this.formSerializer)}}return i||n?(e.setContentType("application/json",!1),sm(r)):r}],transformResponse:[function(r){const e=this.transitional||Dt.transitional,t=e&&e.forcedJSONParsing,n=this.responseType==="json";if(R.isResponse(r)||R.isReadableStream(r))return r;if(r&&R.isString(r)&&(t&&!this.responseType||n)){const i=!(e&&e.silentJSONParsing)&&n;try{return JSON.parse(r,this.parseReviver)}catch(s){if(i)throw s.name==="SyntaxError"?W.from(s,W.ERR_BAD_RESPONSE,this,null,this.response):s}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ie.classes.FormData,Blob:ie.classes.Blob},validateStatus:function(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};R.forEach(["delete","get","head","post","put","patch"],r=>{Dt.headers[r]={}});const om=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"]),am=r=>{const e={};let t,n,i;return r&&r.split(`
52
52
  `).forEach(function(s){i=s.indexOf(":"),t=s.substring(0,i).trim().toLowerCase(),n=s.substring(i+1).trim(),!(!t||e[t]&&om[t])&&(t==="set-cookie"?e[t]?e[t].push(n):e[t]=[n]:e[t]=e[t]?e[t]+", "+n:n)}),e},Qi=Symbol("internals");function gt(r){return r&&String(r).trim().toLowerCase()}function Gt(r){return r===!1||r==null?r:R.isArray(r)?r.map(Gt):String(r)}function um(r){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=t.exec(r);)e[n[1]]=n[2];return e}const cm=r=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());function Ir(r,e,t,n,i){if(R.isFunction(n))return n.call(this,e,t);if(i&&(e=t),!!R.isString(e)){if(R.isString(n))return e.indexOf(n)!==-1;if(R.isRegExp(n))return n.test(e)}}function lm(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function fm(r,e){const t=R.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(r,n+t,{value:function(i,s,o){return this[n].call(this,e,i,s,o)},configurable:!0})})}let ce=class{constructor(e){e&&this.set(e)}set(e,t,n){const i=this;function s(u,l,a){const c=gt(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||a===!0||a===void 0&&i[f]!==!1)&&(i[f||l]=Gt(u))}const o=(u,l)=>R.forEach(u,(a,c)=>s(a,c,l));if(R.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(R.isString(e)&&(e=e.trim())&&!cm(e))o(am(e),t);else if(R.isObject(e)&&R.isIterable(e)){let u={},l,a;for(const c of e){if(!R.isArray(c))throw TypeError("Object iterator must return a key-value pair");u[a=c[0]]=(l=u[a])?R.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}o(u,t)}else e!=null&&s(t,e,n);return this}get(e,t){if(e=gt(e),e){const n=R.findKey(this,e);if(n){const i=this[n];if(!t)return i;if(t===!0)return um(i);if(R.isFunction(t))return t.call(this,i,n);if(R.isRegExp(t))return t.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=gt(e),e){const n=R.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||Ir(this,this[n],n,t)))}return!1}delete(e,t){const n=this;let i=!1;function s(o){if(o=gt(o),o){const u=R.findKey(n,o);u&&(!t||Ir(n,n[u],u,t))&&(delete n[u],i=!0)}}return R.isArray(e)?e.forEach(s):s(e),i}clear(e){const t=Object.keys(this);let n=t.length,i=!1;for(;n--;){const s=t[n];(!e||Ir(this,this[s],s,e,!0))&&(delete this[s],i=!0)}return i}normalize(e){const t=this,n={};return R.forEach(this,(i,s)=>{const o=R.findKey(n,s);if(o){t[o]=Gt(i),delete t[s];return}const u=e?lm(s):String(s).trim();u!==s&&delete t[s],t[u]=Gt(i),n[u]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return R.forEach(this,(n,i)=>{n!=null&&n!==!1&&(t[i]=e&&R.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
@@ -57,13 +57,13 @@ function print() { __p += __j.call(arguments, '') }
57
57
  * Copyright (c) 2026, VTJ.PRO All rights reserved.
58
58
  * @name @vtj/renderer
59
59
  * @author CHC chenhuachun1549@dingtalk.com
60
- * @version 0.16.24
60
+ * @version 0.16.26
61
61
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
62
- */const Vr="0.16.24";var X=(r=>(r.Runtime="Runtime",r.Design="Design",r.Raw="Raw",r.VNode="VNode",r))(X||{});const gs=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],oy=["vIf","vElseIf","vElse","vShow","vModel","vFor","vBind","vHtml"],ay={String,Number,Boolean,Array,Object,Function,Date},Xt="VtjPage",kr="VtjHomepage",la="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(","),uy="component,slot".split(",");function kt(r,e){return r.map(t=>Tt(t)||t.startsWith("/")?t:`${e}${t}`)}function vr(r){return/\.css$/.test(r)}function mr(r){return/\.js$/.test(r)}function cy(r){return/\.json$/.test(r)}function ly(r,e=!1){return e&&r.endsWith(".prod.js")?r.replace(".prod.js",".js"):r}function fy(r,e,t=!1){const n=r.filter(h=>!!h.enabled),i=[],s=[],o=[],u=[],l={},a={},c=[],f={};return n.forEach(({urls:h,assetsUrl:p,library:d,assetsLibrary:g,localeLibrary:v})=>{h==null||h.forEach(E=>{mr(E)&&i.push(ly(E,t)),vr(E)&&s.push(E)}),d&&(u.push(d),l[d]=kt(h||[],e),v&&(a[d]=v)),p&&o.push(p),g&&c.push(g),d&&g&&(f[g]=d)}),{scripts:kt(i,e),css:kt(s,e),materials:kt(o,e),libraryExports:u,materialExports:Ig(c),materialMapLibrary:f,libraryMap:l,libraryLocaleMap:a}}function hy(r,e){var s;const{name:t,parent:n,alias:i}=r;return n?(s=e[n])==null?void 0:s[i||t]:e[i||t]}function py(r=[]){const e=r.filter(n=>vr(n)),t=r.filter(n=>mr(n));return{css:e,js:t}}function dy(r,e){const t=a=>{const c=[];let f=0;for(;f<a.length;){if(/\s/.test(a[f])){f++;continue}if(a.substring(f,f+2)==="/*"){const E=a.indexOf("*/",f+2);if(E!==-1){f=E+2;continue}}if(a[f]==="@"){const E=f;for(;f<a.length&&a[f]!=="{"&&a[f]!==";";)f++;const m=a.substring(E,f).trim(),b=m.includes("@keyframes");if(a[f]===";")c.push({type:"simple-at-rule",content:a.substring(E,f+1)}),f++;else if(a[f]==="{"){const _=f+1;let w=1;for(f++;f<a.length&&w>0;)a[f]==="{"?w++:a[f]==="}"&&w--,f++;const y=a.substring(E,f),T=a.substring(_,f-1);c.push({type:b?"keyframes":"at-rule",rule:m,content:y,inner:T})}continue}const h=f;for(;f<a.length&&a[f]!=="{";)f++;if(f>=a.length)break;const p=a.substring(h,f).trim();if(!p){f++;continue}const d=f+1;let g=1;for(f++;f<a.length&&g>0;)a[f]==="{"?g++:a[f]==="}"&&g--,f++;const v=a.substring(d,f-1);c.push({type:"rule",selector:p,content:v.trim()})}return c},n=a=>{const c=a.trim();return/^(from|to|\d+(\.\d+)?%)$/.test(c)},i=a=>a.replace(/::v-deep\(/g,":deep(").replace(/::v-deep\s+/g,":deep(").replace(/\/deep\//g," ").replace(/>>>/g," ").replace(/(.*?):deep\(([^)]+)\)/g,(c,f,h)=>{const p=f.trim(),d=h.trim();return p?`${p}[${e}] ${d}`:d}),s=a=>{const c=a.trim();if(!c||c.includes(`[${e}]`)||/^(:root|:host|html|body)(\s|$|:|\.|\#|\[)/.test(c)||n(c))return c;const f=c.match(/^(.+?)((?:::?[\w-]+(?:\([^)]*\))?)*)\s*$/);if(f){const[,h,p=""]=f,d=h.trim();return d?`${d}[${e}]${p}`:c}return`${c}[${e}]`},o=a=>i(a).split(",").map(c=>s(c)).filter(c=>c.trim()).join(", "),u=a=>a.map(c=>{switch(c.type){case"simple-at-rule":return c.content;case"keyframes":return c.content;case"at-rule":try{const h=t(c.inner),p=u(h);return`${c.rule} { ${p} }`}catch(h){return c.content}case"rule":if(!c.selector||!c.content)return"";const f=o(c.selector);return f.trim()?`${f} { ${c.content} }`:"";default:return""}}).filter(c=>c.trim()).join(" "),l=a=>a.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 a=r.replace(/\/\*(?!\s*!)[\s\S]*?\*\//g,"").replace(/^\s+|\s+$/gm,"").replace(/\n\s*\n/g,`
62
+ */const Vr="0.16.26";var X=(r=>(r.Runtime="Runtime",r.Design="Design",r.Raw="Raw",r.VNode="VNode",r))(X||{});const gs=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],oy=["vIf","vElseIf","vElse","vShow","vModel","vFor","vBind","vHtml"],ay={String,Number,Boolean,Array,Object,Function,Date},Xt="VtjPage",kr="VtjHomepage",la="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(","),uy="component,slot".split(",");function kt(r,e){return r.map(t=>Tt(t)||t.startsWith("/")?t:`${e}${t}`)}function vr(r){return/\.css$/.test(r)}function mr(r){return/\.js$/.test(r)}function cy(r){return/\.json$/.test(r)}function ly(r,e=!1){return e&&r.endsWith(".prod.js")?r.replace(".prod.js",".js"):r}function fy(r,e,t=!1){const n=r.filter(h=>!!h.enabled),i=[],s=[],o=[],u=[],l={},a={},c=[],f={};return n.forEach(({urls:h,assetsUrl:p,library:d,assetsLibrary:g,localeLibrary:v})=>{h==null||h.forEach(E=>{mr(E)&&i.push(ly(E,t)),vr(E)&&s.push(E)}),d&&(u.push(d),l[d]=kt(h||[],e),v&&(a[d]=v)),p&&o.push(p),g&&c.push(g),d&&g&&(f[g]=d)}),{scripts:kt(i,e),css:kt(s,e),materials:kt(o,e),libraryExports:u,materialExports:Ig(c),materialMapLibrary:f,libraryMap:l,libraryLocaleMap:a}}function hy(r,e){var s;const{name:t,parent:n,alias:i}=r;return n?(s=e[n])==null?void 0:s[i||t]:e[i||t]}function py(r=[]){const e=r.filter(n=>vr(n)),t=r.filter(n=>mr(n));return{css:e,js:t}}function dy(r,e){const t=a=>{const c=[];let f=0;for(;f<a.length;){if(/\s/.test(a[f])){f++;continue}if(a.substring(f,f+2)==="/*"){const E=a.indexOf("*/",f+2);if(E!==-1){f=E+2;continue}}if(a[f]==="@"){const E=f;for(;f<a.length&&a[f]!=="{"&&a[f]!==";";)f++;const m=a.substring(E,f).trim(),b=m.includes("@keyframes");if(a[f]===";")c.push({type:"simple-at-rule",content:a.substring(E,f+1)}),f++;else if(a[f]==="{"){const _=f+1;let w=1;for(f++;f<a.length&&w>0;)a[f]==="{"?w++:a[f]==="}"&&w--,f++;const y=a.substring(E,f),T=a.substring(_,f-1);c.push({type:b?"keyframes":"at-rule",rule:m,content:y,inner:T})}continue}const h=f;for(;f<a.length&&a[f]!=="{";)f++;if(f>=a.length)break;const p=a.substring(h,f).trim();if(!p){f++;continue}const d=f+1;let g=1;for(f++;f<a.length&&g>0;)a[f]==="{"?g++:a[f]==="}"&&g--,f++;const v=a.substring(d,f-1);c.push({type:"rule",selector:p,content:v.trim()})}return c},n=a=>{const c=a.trim();return/^(from|to|\d+(\.\d+)?%)$/.test(c)},i=a=>a.replace(/::v-deep\(/g,":deep(").replace(/::v-deep\s+/g,":deep(").replace(/\/deep\//g," ").replace(/>>>/g," ").replace(/(.*?):deep\(([^)]+)\)/g,(c,f,h)=>{const p=f.trim(),d=h.trim();return p?`${p}[${e}] ${d}`:d}),s=a=>{const c=a.trim();if(!c||c.includes(`[${e}]`)||/^(:root|:host|html|body)(\s|$|:|\.|\#|\[)/.test(c)||n(c))return c;const f=c.match(/^(.+?)((?:::?[\w-]+(?:\([^)]*\))?)*)\s*$/);if(f){const[,h,p=""]=f,d=h.trim();return d?`${d}[${e}]${p}`:c}return`${c}[${e}]`},o=a=>i(a).split(",").map(c=>s(c)).filter(c=>c.trim()).join(", "),u=a=>a.map(c=>{switch(c.type){case"simple-at-rule":return c.content;case"keyframes":return c.content;case"at-rule":try{const h=t(c.inner),p=u(h);return`${c.rule} { ${p} }`}catch(h){return c.content}case"rule":if(!c.selector||!c.content)return"";const f=o(c.selector);return f.trim()?`${f} { ${c.content} }`:"";default:return""}}).filter(c=>c.trim()).join(" "),l=a=>a.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 a=r.replace(/\/\*(?!\s*!)[\s\S]*?\*\//g,"").replace(/^\s+|\s+$/gm,"").replace(/\n\s*\n/g,`
63
63
  `),c=t(a),f=u(c);return l(f)}catch(a){return console.error("CSS scoping failed:",a),console.error("Input CSS:",r),r.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(`[${e}]`)||n(f)?c:`${f}[${e}]`})}}const gy=750;function vy(r,e,t){let n;typeof r<"u"?n=r.innerWidth||r.document.documentElement.clientWidth:(console.warn("无法获取屏幕宽度,使用默认值375"),n=375);const i=gy;return e*n/i}function my(r,e){let t=!1,n=!1,i=!1,s="";for(let o=0;o<e.length;o++){const u=e[o];if(u==="'"&&!n&&!i?t=!t:u==='"'&&!t&&!i?n=!n:e.substr(o,4).toLowerCase()==="url("&&!t&&!n?i=!0:u===")"&&i&&(i=!1),!t&&!n&&!i){const l=e.substr(o).match(/^(-?\d+(?:\.\d+)?)\s*rpx/);if(l){const a=l[1],c=parseFloat(a),f=`${vy(r,c).toFixed(6).replace(/\.?0+$/,"")}px`;s+=f,o+=l[0].length-1;continue}}s+=u}return s}function fa(r){return Me(r)?r:JSON.stringify(r)}function yr(r,e,t,n=!1){const i=r.CSSStyleSheet,s=n?`data-v-${e}`:e,o=r.__uniConfig?my(r,t):t,u=n?dy(o,s):o,l=!!r.__uniConfig;if(i.prototype.replaceSync&&!l){const a=new i;a.id=e,a.replaceSync(u);const c=r.document,f=c.adoptedStyleSheets,h=Array.from(f).filter(p=>p.id!==e);c.adoptedStyleSheets=[...h,a]}else{const a=r.document;let c=a.getElementById(e);c?c.innerHTML=u:(c=a.createElement("style"),c.id=e,c.innerHTML=u,a.head.appendChild(c))}}function yy(r,e){return U(this,null,function*(){const t=yield window.fetch(e).then(n=>n.text()).catch(()=>"");t&&yr(window,r,t)})}function ha(r,e=window){const t=e.document,n=e.document.head;for(const i of r)if(!t.getElementById(i)){const s=t.createElement("link");s.rel="stylesheet",s.id=i,s.href=i,n.appendChild(s)}}function pa(n,i){return U(this,arguments,function*(r,e,t=window){const s=t.document,o=t.document.head;let u=t[e];return u?u.default||u:new Promise((l,a)=>{for(const c of r){const f=s.createElement("script");f.src=c,f.onload=()=>{u=t[e],u?l(u.default||u):a(null)},f.onerror=h=>{a(h)},o.appendChild(f)}})})}function by(r){return ze(r)&&Object.getOwnPropertyNames(r.prototype||{}).length===0||ze(r==null?void 0:r.install)}function _y(r){return uy.includes(r)}function wy(r){return la.includes(r)}function Rt(r=window){const e=window==null?void 0:window.Mock;if(e)return e;const t=r==null?void 0:r.Mock;if(t&&window)return window.Mock=t,t}function At(r,e,t=!1,n=!1,i=!1){var s;try{const o=['"use strict";',"var __self = arguments[0];"];o.push("return ");let u=(r.value||"").trim();i||(u=u.replace(/this(\W|$)/g,(a,c)=>`__self${c}`)),u=o.join(`
64
64
  `)+u;const l=i?`
65
65
  ${u}
66
- `:`with(${t?"{}":"$scope || {}"}) { ${u} }`;return new Function("$scope",l)(e)}catch(o){if(it.error("parseExpression.error",o,r,(s=e==null?void 0:e.__self)!=null?s:e),n)throw o}}function pe(r,e,t=!1,n=!1,i=!1){var o;const s=At(r,e,t,n,i);if(typeof s!="function"&&(it.error("parseFunction.error","not a function",r,(o=e==null?void 0:e.__self)!=null?o:e),n))throw new Error(`"${r.value}" not a function`);return s}function me(r){return r&&r.type==="JSExpression"}function de(r){return typeof r=="object"&&r&&r.type==="JSFunction"}const Ey={session:!1,authKey:"Authorization",storageKey:"ACCESS_STORAGE",storagePrefix:"__VTJ_",unauthorized:void 0,auth:"/#/login",redirectParam:"r",unauthorizedCode:401,unauthorizedMessage:"登录已经失效,请重新登录!",noPermissionMessage:"无权限访问该页面",appName:"",statusKey:"code"},Sy=Symbol("access");class da{constructor(e){k(this,"options");k(this,"data",null);k(this,"mode",X.Raw);k(this,"interceptResponse",!0);k(this,"isTipShowing",!1);this.options=Object.assign({},Ey,e),this.loadData()}enableIntercept(){this.interceptResponse=!0}disableIntercept(){this.interceptResponse=!1}connect(e){const{mode:t,router:n,request:i}=e;this.mode=t,n&&this.mode!==X.Design&&this.setGuard(n),i&&this.setRequest(i)}login(e){const{storageKey:t,storagePrefix:n,session:i,authKey:s}=this.options;this.setData(e),this.data&&(Lr.save(t,e,{type:"local",prefix:n}),i&&Hr.set(s,this.data.token))}clear(){const{storageKey:e,storagePrefix:t,session:n,authKey:i}=this.options;this.data=null,Lr.remove(e,{type:"local",prefix:t}),n&&Hr.remove(i)}logout(){this.clear(),this.toLogin()}getData(){return this.data?this.data:(this.loadData(),this.data)}getToken(){var e;return this.data||this.loadData(),(e=this.data)==null?void 0:e.token}can(e){const{appName:t}=this.options,{permissions:n={}}=this.data||{};return typeof e=="function"?e(n):Wi(e).every(i=>n[i]||n[t+"."+i])}some(e){const{appName:t}=this.options,{permissions:n={}}=this.data||{};return Wi(e).some(i=>n[i]||n[t+"."+i])}install(e){e.config.globalProperties.$access=this,e.provide(Sy,this)}isAuthPath(e){const{auth:t,isAuth:n}=this.options;if(n)return n(e);if(e.path&&typeof t=="string"){const i=t.split("#")[1]||t;return e.path===i}return!1}toLogin(){const{auth:e,redirectParam:t}=this.options;if(!e)return;const n=t?`?${t}=${encodeURIComponent(location.href)}`:"";typeof e=="function"?e(n):location.href=t?`${e}${n}`:e}setData(e){const{privateKey:t}=this.options;if(Array.isArray(e)&&t){const n=e.map(i=>zi(i,t));try{this.data=JSON.parse(n.join(""))}catch(i){console.warn(i)}return}if(typeof e=="string")try{const n=t?zi(e,t):e;n?this.data=JSON.parse(n):console.warn("RSA解密失败或登录信息缺失")}catch(n){console.warn(n)}else this.data=e}loadData(){const{storageKey:e,storagePrefix:t}=this.options,n=Lr.get(e,{type:"local",prefix:t});this.setData(n||null)}isLogined(){const{session:e,authKey:t}=this.options;return e&&t?!!Hr.get(t):!!this.getToken()}hasRoutePermission(e){if(e.name===Xt){const t=e.params.id;return t&&this.can(t)}return e.meta.__vtj__?this.can(e.meta.__vtj__):e.meta.permission?this.can(e.meta.permission):!0}setGuard(e){e.beforeEach((t,n,i)=>this.guard(t,i))}guard(e,t){return U(this,null,function*(){if(this.isWhiteList(e)||this.isAuthPath(e))return t();if(this.isLogined()){if(this.hasRoutePermission(e))return t();{const{noPermissionMessage:n="无权限访问",unauthorized:i=!1}=this.options;return yield this.showTip(n),ze(i)?(i(),t(!1)):Me(i)?t(i):t(!1)}}t(!1),yield ir(0),this.toLogin()})}isWhiteList(e){const{whiteList:t}=this.options;return t?Array.isArray(t)?t.some(n=>e.fullPath.startsWith(n)):t(e):!1}isUnauthorized(e){var i;const{unauthorizedCode:t=401,statusKey:n="code"}=this.options;return e.status===t||((i=e.data)==null?void 0:i[n])===t}showUnauthorizedAlert(e){return U(this,null,function*(){const{unauthorizedMessage:t="登录已失效"}=this.options;this.isUnauthorized(e)&&(yield this.showTip(t))&&this.toLogin()})}showTip(e){return U(this,null,function*(){var n,i;const{alert:t}=this.options;return this.isTipShowing?!1:t?(this.isTipShowing=!0,yield ir(150),yield(i=(n=t(e,{title:"提示",type:"warning"}))==null?void 0:n.catch(()=>!0))==null?void 0:i.finally(()=>{this.isTipShowing=!1})):(window.alert(e),!0)})}setRequest(e){e.useRequest(t=>{var n,i;return(n=this.data)!=null&&n.token&&(t.headers[this.options.authKey]=(i=this.data)==null?void 0:i.token),t}),e.useResponse(t=>U(this,null,function*(){return this.interceptResponse&&(yield this.showUnauthorizedAlert(t)),t}),t=>U(this,null,function*(){if(!this.interceptResponse)return Promise.reject(t);const n=t.response||t||{};return yield this.showUnauthorizedAlert(n),Promise.reject(t)}))}}function Ty(r={}){const{notify:e,loading:t,settings:n={},Startup:i,access:s,useTitle:o,alert:u}=r;let l=null;return{request:Mn({settings:V({type:"form",validSuccess:!0,originResponse:!1,loading:!0,validate:a=>{var c,f;return((c=a.data)==null?void 0:c.code)===0||!!((f=a.data)!=null&&f.success)},failMessage:!0,showError:a=>{e&&e(a||"未知错误")},showLoading:()=>{l&&l.close(),t&&(l=t())},hideLoading:()=>{l&&(l.close(),l=null)}},n)}),jsonp:ca,notify:e,loading:t,useTitle:o,alert:u,startupComponent:i,access:s?new da(V({alert:u},s)):void 0}}function Ry(r,e){const{jsonp:t,request:n}=e;if(r.method==="jsonp")return(i={})=>t(r.url,re(V({},r.jsonpOptions),{query:i}));{const i=r.headers?At(r.headers,{},!0):void 0,s={url:r.url,method:r.method,settings:re(V({},r.settings),{headers:i})};return(o,u)=>(delete s.data,n.send(vt(s,u||{},{data:o})))}}function Ay(r,e){const{metaQuery:t}=e;if(!t)return;const{code:n,queryCode:i}=r;return(s,o)=>{if(!t){console.warn("adapter.metaQuery is not defined!");return}return t(n,i,s,o)}}function xy(r=[],e=[],t){const n={};for(const i of r){const s=Ry(i,t);n[i.id]=s,n[i.name]=s}for(const i of e)n[i.id]=Ay(i,t);return n}function Oy(){return U(this,arguments,function*(r=[],e=window){const t=Rt(e);t&&(ga(e),r.forEach(n=>Dy(t,n)))})}function $y(r,e=window){const t=de(r.mockTemplate)&&r.mockTemplate.value?pe(r.mockTemplate,{},!0):void 0,n=Rt(e);return(...i)=>U(null,null,function*(){let s={};if(t)try{s=yield t.apply(t,i)}catch(o){it.warn("模拟数据模版异常",o)}return n==null?void 0:n.mock(s)})}function Dy(r,e){if(!e.mock)return;const{url:t,mockTemplate:n}=e;if(t&&n)try{const i=Tt(t)?new URL(t).pathname:t,s=Cn(`(.*)${i}(.*)`),o=Hg(i,{decode:decodeURIComponent}),u=At(n,{},!0);r.mock(s,l=>{var p;const a=Qt.parse(l.url)||{},c=l.body instanceof FormData?Um(l.body):l.body,f=Tt(l.url)?new URL(l.url).pathname:l.url.split("?")[0],h=(p=o(f))==null?void 0:p.params;Object.assign(l,{data:c,params:h,query:a});try{return r.mock(u(l))}catch(d){return console.warn("[mockApi]",s,l,d),null}})}catch(i){console.warn("mockApi",i)}}function ga(r=window){const e=Rt(r);e&&(e._mocked={})}class Cy{constructor(e){k(this,"__id",null);k(this,"__mode");k(this,"__instance",null);k(this,"__contextRefs",{});k(this,"__refs",{});k(this,"__refCaches",{});k(this,"context",{});k(this,"state",{});k(this,"props",{});k(this,"$props",{});k(this,"$refs",{});k(this,"$el",null);k(this,"$emit",null);k(this,"$nextTick",null);k(this,"$parent",null);k(this,"$root",null);k(this,"$attrs",null);k(this,"$slots",null);k(this,"$watch",null);k(this,"$options",null);k(this,"$forceUpdate",null);k(this,"$components",{});k(this,"$libs",{});k(this,"$apis",{});k(this,"$provider",null);k(this,"__transform",{});const{mode:t,dsl:n,attrs:i}=e;this.__mode=t,n&&(this.__id=n.id||null,this.__transform=n.transform||{}),i&&Object.assign(this,i)}setup(e,t=or){const n=t.getCurrentInstance();if(!n)return;this.__refs={},this.__refCaches={},this.$refs={},this.context={},this.__contextRefs={},this.__instance=n.proxy;const i=n.appContext.config.globalProperties;Object.assign(this,i),Object.assign(this,e||{}),this.__proxy(),t.onMounted(()=>{this.__proxy()}),t.onUnmounted(()=>{this.__cleanup()}),t.onBeforeUpdate(()=>{this.__reset()})}__proxy(){this.__instance&&gs.forEach(e=>{var t;this[e]=(t=this.__instance)==null?void 0:t[e]})}__cleanup(){gs.forEach(e=>{this[e]=null}),this.__reset()}__reset(){this.__refs={},this.__refCaches={},this.$refs={},this.__contextRefs={},this.context={}}__parseFunction(e){var t;if(e)if(this.__mode===X.Runtime){const{id:n,type:i}=e,s=n&&(t=this.__transform[n])!=null?t:e.value;return pe({type:i,value:s},this)}else return pe(e,this)}__parseExpression(e){var t;if(e)if(this.__mode===X.Runtime){const{id:n,type:i}=e,s=n&&(t=this.__transform[n])!=null?t:e.value;return At({type:i,value:s},this)}else return At(e,this)}__ref(e=null,t){if(this.__mode===X.VNode)return;e&&e!==this.__id&&(this.__contextRefs[e]=this);let n=e?this.__refCaches[e]:null;return n||(n=i=>U(this,null,function*(){var o,u;yield ir(0);let s=(i==null?void 0:i.$vtjEl)||(i==null?void 0:i.$el)||((u=(o=i==null?void 0:i._)==null?void 0:o.vnode)==null?void 0:u.el)||i;if(!s){typeof t=="string"&&(delete this.$refs[t],e&&delete this.__refs[e]);return}return s.nodeType===3&&s.nextSibling&&(s=s.nextSibling),s.__vtj__=e,X.Design===this.__mode&&(s.__context__=this,s.draggable=!0),e&&(this.__refs[e]=this.__getRefEl(this.__refs,e,i)),typeof t=="function"?t(i):t&&(this.$refs[t]=this.__getRefEl(this.$refs,t,i)),i}),e&&(this.__refCaches[e]=n),n)}__getRefEl(e,t,n){const i=e[t];if(i&&n!==i){const s=new Set([].concat(i,n));return Array.from(s)}else return n}__clone(e={}){const t=V(V({},this.context),e),n=re(V({},t),{context:t});return n.context.__proto__=this.context,n.__proto__=this,n}}function gn(r){var f,p;const{Vue:e=or,mode:t=X.Runtime,components:n={},libs:i={},apis:s={},loader:o}=r,u=e.computed(()=>r.dsl),l={$components:n,$libs:i,$apis:s},a=new Cy({mode:t,dsl:u.value,attrs:l}),c=e.defineComponent(V({name:u.value.name,__scopeId:u.value.id?`data-v-${u.value.id}`:void 0,props:V({},Py((f=u.value.props)!=null?f:[],a)),setup(d){return U(this,null,function*(){var _,w,y,T;a.$props=d,a.props=d,u.value.id&&yr(r.window||window,u.value.id,u.value.css||"",!0),a.state=jy(e,(_=u.value.state)!=null?_:{},a);const g=Ny(e,(w=u.value.computed)!=null?w:{},a),v=Iy((y=u.value.methods)!=null?y:{},a),E=My(e,u.value.inject,a);for(const[O,L]of Object.entries(E||{}))E[O]=e.inject(O,L);const m=Fy(u.value.dataSources||{},a),b=V(V(V(V({},E),g),v),m);return a.setup(b,e),Ly(e,(T=u.value.watch)!=null?T:[],a),V(V({vtj:a,state:a.state},g),v)})},emits:By(u.value.emits),expose:["vtj",...u.value.expose||[]],render(){if(!u.value.nodes)return null;const d=u.value.nodes||[];if(d.length===1)return ot(d[0],a,e,o,d);{const g=d.map(v=>ot(v,a,e,o,d));return e.createVNode("div",{},g)}}},Uy((p=u.value.lifeCycles)!=null?p:{},a)));return{renderer:e.markRaw(c),context:a}}function By(r=[]){return r.map(e=>Me(e)?e:e.name)}function Py(r=[],e){const t=n=>n?(Array.isArray(n)?n:[n]).map(i=>ay[i]):void 0;return r.map(n=>Me(n)?{name:n}:{name:n.name,type:n.type,required:n.required,default:me(n.default)?e.__parseExpression(n.default):n.default}).reduce((n,i)=>(n[i.name]={type:t(i.type),required:i.required,default:i.default},n),{})}function jy(r,e,t){return r.reactive(Object.keys(e||{}).reduce((n,i)=>{let s=e[i];return me(s)?s=t.__parseExpression(s):de(s)&&(s=t.__parseFunction(s)),n[i]=s,n},{}))}function Ny(r,e,t){return Object.entries(e!=null?e:{}).reduce((n,[i,s])=>(n[i]=r.computed(t.__parseFunction(s)),n),{})}function Iy(r,e){return Object.entries(r!=null?r:{}).reduce((t,[n,i])=>(t[n]=e.__parseFunction(i),t),{})}function My(r,e=[],t){return e.reduce((n,i)=>{var a;const{name:s,from:o}=i||{};i.default;const u=me(o)?t.__parseExpression(o)||s:o!=null?o:s,l=me(i.default)?t.__parseExpression(i.default):(a=i.default)!=null?a:null;return n[s]=r.inject(u,l),n},{})}function Fy(r,e){return Object.keys(r).reduce((t,n)=>{const i=r[n];if(i.type==="mock")t[n]=$y(i);else if(i.ref){const s=e.$apis[i.ref],o=de(i.transform)?i.transform.value?e.__parseFunction(i.transform):void 0:i.transform;t[n]=(...u)=>U(null,null,function*(){const l=yield s.apply(e,u);return o?o(l):l})}return t},{})}function Ly(r,e=[],t){e.forEach(n=>{r.watch(t.__parseExpression(n.source),t.__parseFunction(n.handler),{deep:n.deep,immediate:n.immediate})})}function Uy(r,e){return Object.entries(r!=null?r:{}).reduce((t,[n,i])=>{const s=e.__parseFunction(i);return t[n]=()=>U(null,null,function*(){ze(s)&&(yield ir(0),yield s())}),t},{})}class Hy{constructor(){k(this,"__props",{});k(this,"__events",{});k(this,"__nodes",{})}setProps(e,t){this.__props[e]=t}getProps(e){return this.__props[e]}loadProps(e,t){return(e?this.getProps(e):null)||(e&&this.setProps(e,t),t)}setEvents(e,t){}getEvents(e){return this.__events[e]}loadEvents(e,t){return(e?this.getEvents(e):null)||(e&&this.setEvents(e,t),t)}setNode(e,t){this.__nodes[e]=t}getNode(e){return this.__nodes[e]}loadNode(e,t){return(e?this.getNode(e):null)||(e&&this.setNode(e,t),t)}isEqual(e,t){return vd(e,t)}clear(){this.__props={},this.__events={},this.__nodes={}}}const qt=new Hy,Vy=new Gg;let qr=[],Xe={},zt={};const ky=(r,e)=>e;function va(t){return U(this,arguments,function*(r,e=window){const{urls:n=[],library:i}=r,s=n.filter(u=>mr(u));if(s.length===0||!i)return null;const o=n.filter(u=>vr(u));return o.length&&ha(o,e),yield pa(s,i,e).catch(u=>(console.warn("loadScriptUrl error",s,i,u),null))})}function vn(r){const{getDsl:e,getDslByUrl:t,options:n}=r;return n.window&&(qr.forEach(i=>{delete n.window[i]}),qr=[]),(i,s,o,u=or)=>{if(!o||typeof o=="string")return s;let l="";if(o.type==="Schema"&&o.id)return l=o.id+"_"+i,zt[l]||(zt[l]=u.defineAsyncComponent(()=>U(null,null,function*(){const a=Xe[o.id]||(yield Vy.add(o.id,()=>e(o.id)));return a&&(a.name=s,Xe[o.id]=a),a?gn(re(V({Vue:u,mode:X.Runtime},n),{dsl:_i(a),loader:vn(r)})).renderer:null})));if(o.type==="UrlSchema"&&o.url)return l=o.url+"_"+i,zt[l]||(zt[l]=u.defineAsyncComponent(()=>U(null,null,function*(){const a=Xe[o.url]||(yield t(o.url));return a&&(a.name=s,Xe[o.url]=a),a?gn(re(V({},n),{Vue:u,dsl:_i(a),mode:X.Runtime,loader:vn(r)})).renderer:null})));if(o.type==="Plugin"){let a=o.library?Xe[o.library]:null;return a||(o.library&&qr.push(o.library),a=Xe[o.library||Symbol()]=u.defineAsyncComponent(()=>U(null,null,function*(){return(yield va(o,n.window))||(console.warn("getPlugin result is null",o),null)})),a)}return s}}function ot(r,e,t=or,n=ky,i=[],s=!1,o=0){var _;if(!r||!r.name||r.invisible)return null;const u=(_=t.getCurrentInstance())==null?void 0:_.appContext,{id:l=null,directives:a=[]}=r,{vIf:c,vElseIf:f,vElse:h,vFor:p,vShow:d,vModels:g,vBind:v,vHtml:E,others:m}=ma(a);if(!s&&(f||h))return null;if(c&&!zy(c,e))return Yy(r,e,t,n,i);const b=(w,y=0)=>{var q,z,x,C;const T=w.$components,O=(()=>{var N,te,xe,we;if(r.name==="component")return Wy(w,(N=r.props)==null?void 0:N.is);if(r.name==="slot")return r.name;const D=n(`${r.id}_${y}`,r.name,r.from,t);return Me(D)?_y(D)||wy(D)?D:(we=(xe=T[D])!=null?xe:(te=u==null?void 0:u.app)==null?void 0:te.component(D))!=null?we:D:D})(),L=Ky(l,(q=r.props)!=null?q:{},w),S=Gy(t,r.id,(z=r.events)!=null?z:{},w);if(r.name==="slot")return Zy(t,r,L,w,n);v&&Object.assign(L,w.__parseExpression(v.value)),d&&(L.style=Object.assign((x=L.style)!=null?x:{},Xy(d,w))),E&&Object.assign(L,e0(E,w)),g.forEach(D=>{la.includes(r.name)?Object.assign(L,t0(D,w)):Object.assign(L,r0(t,D,w))});const A=n0(t,(C=r.children)!=null?C:[],w,n,r),M=w!=null&&w.__id?`data-v-${w.__id}`:void 0,j=M?{[M]:""}:{},I=w.__mode===X.Design?{"data-vtj":l}:{},B=`${l}_${y}`,$=V(V(V(V({key:B},j),I),L),S);qt.isEqual($,qt.getNode(B))||qt.setNode(B,$);let H=t.createVNode(O,qt.getNode(B)||$||{},A);const F=u?qy(u,m,w):[];return F.length&&(H=t.withDirectives(H,F)),H};return p?o0(p,b,e):b(e,o)}function qy(r,e,t){const n=r.app;return e.map(i=>{const s=typeof i.name=="string"?n.directive(i.name):t.__parseExpression(i.name);if(!s)return null;const o=[s];return i.value&&o.push(t.__parseExpression(i.value)),i.arg&&o.push(i.arg),i.modifiers&&o.push(i.modifiers),o}).filter(i=>!!i)}function ma(r=[]){const e=r.find(c=>Ee(c.name)==="vIf"),t=r.find(c=>Ee(c.name)==="vElseIf"),n=r.find(c=>Ee(c.name)==="vElse"),i=r.find(c=>Ee(c.name)==="vFor"),s=r.find(c=>Ee(c.name)==="vShow"),o=r.find(c=>Ee(c.name)==="vBind"),u=r.find(c=>Ee(c.name)==="vHtml"),l=r.filter(c=>Ee(c.name)==="vModel"),a=r.filter(c=>!oy.includes(Ee(c.name)));return{vIf:e,vElseIf:t,vElse:n,vFor:i,vShow:s,vModels:l,vBind:o,others:a,vHtml:u}}function zy(r,e){return!!e.__parseExpression(r.value)}function Wy(r,e){return e?me(e)?r.__parseExpression(e):e:"div"}function Ky(r,e,t){const n=mn(e,t);return n.ref=t.__ref(r,n.ref),n}function mn(r,e){return me(r)?e.__parseExpression(r):de(r)?e.__parseFunction(r):Array.isArray(r)?r.map(t=>mn(t,e)):typeof r=="object"?Object.keys(r||{}).reduce((t,n)=>{let i=r[n];return t[n]=mn(i,e),t},{}):r}function Jy(r,e){return t=>{var n;((n=t==null?void 0:t.key)==null?void 0:n.toLowerCase())===e.toLowerCase()&&r(t)}}function Gy(r,e,t,n){const i=["passive","capture","once"],s={capture:"Capture",once:"Once",passive:"OnceCapture"};return Object.keys(t||{}).reduce((o,u)=>{const l=t[u],a=ya(l.modifiers),c=a.find(p=>i.includes(p)),f="on"+Fd(u)+(c&&s[c]||""),h=n.__parseFunction(l.handler);return h&&(o[f]=r.withModifiers(a.includes("enter")?Jy(h,"enter"):h,a)),o},{})}function Yy(r,e,t,n,i=[]){let s=i.findIndex(o=>o.id===r.id);for(let o=++s;o<i.length;o++){const{directives:u=[]}=i[o],{vElseIf:l,vElse:a}=ma(u);if(l){if(e.__parseExpression(l.value))return ot(i[o],e,t,n,i,!0);continue}if(a)return ot(i[o],e,t,n,i,!0)}return null}function ya(r={},e=!1){const t=Object.keys(r);return e?t.map(n=>"."+n):t}function Zy(r,e,t,n,i){var l;const{children:s}=e,o=Qy(e,n),u=(l=n.$slots)==null?void 0:l[o.name];return u?u(t):s?Me(s)?r.createTextVNode(s):me(s)?r.createTextVNode(fa(n.__parseExpression(s))):Array.isArray(s)?s.map((a,c)=>ot(a,n,r,i,s,!1,c)):null:null}function Qy(r,e){const{props:t}=r,n=(t==null?void 0:t.name)||"default";return{name:me(n)?e.__parseExpression(n):n,params:[]}}function Xy(r,e){return e.__parseExpression(r.value)?{}:{display:"none"}}function e0(r,e){return{innerHTML:e.__parseExpression(r.value)||""}}function t0(r,e){var n;const t={type:"JSFunction",value:(n=r.value)!=null&&n.value?`(v) => {
66
+ `:`with(${t?"{}":"$scope || {}"}) { ${u} }`;return new Function("$scope",l)(e)}catch(o){if(it.error("parseExpression.error",o,r,(s=e==null?void 0:e.__self)!=null?s:e),n)throw o}}function pe(r,e,t=!1,n=!1,i=!1){var o;const s=At(r,e,t,n,i);if(typeof s!="function"&&(it.error("parseFunction.error","not a function",r,(o=e==null?void 0:e.__self)!=null?o:e),n))throw new Error(`"${r.value}" not a function`);return s}function me(r){return r&&r.type==="JSExpression"}function de(r){return typeof r=="object"&&r&&r.type==="JSFunction"}const Ey={session:!1,authKey:"Authorization",storageKey:"ACCESS_STORAGE",storagePrefix:"__VTJ_",unauthorized:void 0,auth:"/#/login",redirectParam:"r",unauthorizedCode:401,unauthorizedMessage:"登录已经失效,请重新登录!",noPermissionMessage:"无权限访问该页面",appName:"",statusKey:"code"},Sy=Symbol("access");class da{constructor(e){k(this,"options");k(this,"data",null);k(this,"mode",X.Raw);k(this,"interceptResponse",!0);k(this,"isTipShowing",!1);this.options=Object.assign({},Ey,e),this.loadData()}enableIntercept(){this.interceptResponse=!0}disableIntercept(){this.interceptResponse=!1}connect(e){const{mode:t,router:n,request:i}=e;this.mode=t,n&&this.mode!==X.Design&&this.setGuard(n),i&&this.setRequest(i)}login(e){const{storageKey:t,storagePrefix:n,session:i,authKey:s}=this.options;this.setData(e),this.data&&(Lr.save(t,e,{type:"local",prefix:n}),i&&Hr.set(s,this.data.token))}clear(){const{storageKey:e,storagePrefix:t,session:n,authKey:i}=this.options;this.data=null,Lr.remove(e,{type:"local",prefix:t}),n&&Hr.remove(i)}logout(){this.clear(),this.toLogin()}getData(){return this.data?this.data:(this.loadData(),this.data)}getToken(){var e;return this.data||this.loadData(),(e=this.data)==null?void 0:e.token}can(e){const{appName:t}=this.options,{permissions:n={}}=this.data||{};return typeof e=="function"?e(n):Wi(e).every(i=>n[i]||n[t+"."+i])}some(e){const{appName:t}=this.options,{permissions:n={}}=this.data||{};return Wi(e).some(i=>n[i]||n[t+"."+i])}install(e){e.config.globalProperties.$access=this,e.provide(Sy,this)}isAuthPath(e){const{auth:t,isAuth:n}=this.options;if(n)return n(e);if(e.path&&typeof t=="string"){const i=t.split("#")[1]||t;return e.path===i}return!1}toLogin(){const{auth:e,redirectParam:t}=this.options;if(!e)return;const n=t?`?${t}=${encodeURIComponent(location.href)}`:"";typeof e=="function"?e(n):location.href=t?`${e}${n}`:e}setData(e){const{privateKey:t}=this.options;if(Array.isArray(e)&&t){const n=e.map(i=>zi(i,t));try{this.data=JSON.parse(n.join(""))}catch(i){console.warn(i)}return}if(typeof e=="string")try{const n=t?zi(e,t):e;n?this.data=JSON.parse(n):console.warn("RSA解密失败或登录信息缺失")}catch(n){console.warn(n)}else this.data=e}loadData(){const{storageKey:e,storagePrefix:t}=this.options,n=Lr.get(e,{type:"local",prefix:t});this.setData(n||null)}isLogined(){const{session:e,authKey:t}=this.options;return e&&t?!!Hr.get(t):!!this.getToken()}hasRoutePermission(e){if(e.name===Xt){const t=e.params.id;return t&&this.can(t)}return e.meta.__vtj__?this.can(e.meta.__vtj__):e.meta.permission?this.can(e.meta.permission):!0}setGuard(e){e.beforeEach((t,n,i)=>this.guard(t,i))}guard(e,t){return U(this,null,function*(){if(this.isWhiteList(e)||this.isAuthPath(e))return t();if(this.isLogined()){if(this.hasRoutePermission(e))return t();{const{noPermissionMessage:n="无权限访问",unauthorized:i=!1}=this.options;return yield this.showTip(n),ze(i)?(i(),t(!1)):Me(i)?t(i):t(!1)}}t(!1),yield ir(0),this.toLogin()})}isWhiteList(e){const{whiteList:t}=this.options;return t?Array.isArray(t)?t.some(n=>e.fullPath.startsWith(n)):t(e):!1}isUnauthorized(e){var i;const{unauthorizedCode:t=401,statusKey:n="code"}=this.options;return e.status===t||((i=e.data)==null?void 0:i[n])===t}showUnauthorizedAlert(e){return U(this,null,function*(){const{unauthorizedMessage:t="登录已失效"}=this.options;this.isUnauthorized(e)&&(yield this.showTip(t))&&this.toLogin()})}showTip(e){return U(this,null,function*(){var n,i;const{alert:t}=this.options;return this.isTipShowing?!1:t?(this.isTipShowing=!0,yield ir(150),yield(i=(n=t(e,{title:"提示",type:"warning"}))==null?void 0:n.catch(()=>!0))==null?void 0:i.finally(()=>{this.isTipShowing=!1})):(window.alert(e),!0)})}setRequest(e){e.useRequest(t=>{var n,i;return(n=this.data)!=null&&n.token&&(t.headers[this.options.authKey]=(i=this.data)==null?void 0:i.token),t}),e.useResponse(t=>U(this,null,function*(){return this.interceptResponse&&(yield this.showUnauthorizedAlert(t)),t}),t=>U(this,null,function*(){if(!this.interceptResponse)return Promise.reject(t);const n=t.response||t||{};return yield this.showUnauthorizedAlert(n),Promise.reject(t)}))}}function Ty(r={}){const{notify:e,loading:t,settings:n={},Startup:i,access:s,useTitle:o,alert:u}=r;let l=null;return{request:Mn({settings:V({type:"form",validSuccess:!0,originResponse:!1,loading:!0,validate:a=>{var c,f;return((c=a.data)==null?void 0:c.code)===0||!!((f=a.data)!=null&&f.success)},failMessage:!0,showError:a=>{e&&e(a||"未知错误")},showLoading:()=>{l&&l.close(),t&&(l=t())},hideLoading:()=>{l&&(l.close(),l=null)}},n)}),jsonp:ca,notify:e,loading:t,useTitle:o,alert:u,startupComponent:i,access:s?new da(V({alert:u},s)):void 0}}function Ry(r,e){const{jsonp:t,request:n}=e;if(r.method==="jsonp")return(i={})=>t(r.url,re(V({},r.jsonpOptions),{query:i}));{const i=r.headers?At(r.headers,{},!0):void 0,s={url:r.url,method:r.method,settings:re(V({},r.settings),{headers:i})};return(o,u)=>(delete s.data,n.send(vt(s,u||{},{data:o})))}}function Ay(r,e){const{metaQuery:t}=e;if(!t)return;const{code:n,queryCode:i}=r;return(s,o)=>{if(!t){console.warn("adapter.metaQuery is not defined!");return}return t(n,i,s,o)}}function xy(r=[],e=[],t){const n={};for(const i of r){const s=Ry(i,t);n[i.id]=s,n[i.name]=s}for(const i of e)n[i.id]=Ay(i,t);return n}function Oy(){return U(this,arguments,function*(r=[],e=window){const t=Rt(e);t&&(ga(e),r.forEach(n=>Dy(t,n)))})}function $y(r,e=window){const t=de(r.mockTemplate)&&r.mockTemplate.value?pe(r.mockTemplate,{},!0):void 0,n=Rt(e);return(...i)=>U(null,null,function*(){let s={};if(t)try{s=yield t.apply(t,i)}catch(o){it.warn("模拟数据模版异常",o)}return n==null?void 0:n.mock(s)})}function Dy(r,e){if(!e.mock)return;const{url:t,mockTemplate:n}=e;if(t&&n)try{const i=Tt(t)?new URL(t).pathname:t,s=Cn(`(.*)${i}(.*)`),o=Hg(i,{decode:decodeURIComponent}),u=At(n,{},!0);r.mock(s,l=>{var p;const a=Qt.parse(l.url)||{},c=l.body instanceof FormData?Um(l.body):l.body,f=Tt(l.url)?new URL(l.url).pathname:l.url.split("?")[0],h=(p=o(f))==null?void 0:p.params;Object.assign(l,{data:c,params:h,query:a});try{return r.mock(u(l))}catch(d){return console.warn("[mockApi]",s,l,d),null}})}catch(i){console.warn("mockApi",i)}}function ga(r=window){const e=Rt(r);e&&(e._mocked={})}class Cy{constructor(e){k(this,"__id",null);k(this,"__mode");k(this,"__instance",null);k(this,"__contextRefs",{});k(this,"__refs",{});k(this,"__refCaches",{});k(this,"context",{});k(this,"state",{});k(this,"props",{});k(this,"$props",{});k(this,"$refs",{});k(this,"$el",null);k(this,"$emit",null);k(this,"$nextTick",null);k(this,"$parent",null);k(this,"$root",null);k(this,"$attrs",null);k(this,"$slots",null);k(this,"$watch",null);k(this,"$options",null);k(this,"$forceUpdate",null);k(this,"$components",{});k(this,"$libs",{});k(this,"$apis",{});k(this,"$provider",null);k(this,"__transform",{});const{mode:t,dsl:n,attrs:i}=e;this.__mode=t,n&&(this.__id=n.id||null,this.__transform=n.transform||{}),i&&Object.assign(this,i)}setup(e,t=or){const n=t.getCurrentInstance();if(!n)return;this.__refs={},this.__refCaches={},this.$refs={},this.context={},this.__contextRefs={},this.__instance=n.proxy;const i=n.appContext.config.globalProperties;Object.assign(this,i),Object.assign(this,e||{}),this.__proxy(),t.onMounted(()=>{this.__proxy()}),t.onUnmounted(()=>{this.__cleanup()}),t.onBeforeUpdate(()=>{this.__reset()})}__proxy(){this.__instance&&gs.forEach(e=>{var t;this[e]=(t=this.__instance)==null?void 0:t[e]})}__cleanup(){gs.forEach(e=>{this[e]=null}),this.__reset()}__reset(){this.__refs={},this.__refCaches={},this.$refs={},this.__contextRefs={},this.context={}}__parseFunction(e){var t;if(e)if(this.__mode===X.Runtime){const{id:n,type:i}=e,s=n&&(t=this.__transform[n])!=null?t:e.value;return pe({type:i,value:s},this)}else return pe(e,this)}__parseExpression(e){var t;if(e)if(this.__mode===X.Runtime){const{id:n,type:i}=e,s=n&&(t=this.__transform[n])!=null?t:e.value;return At({type:i,value:s},this)}else return At(e,this)}__ref(e=null,t){if(this.__mode===X.VNode)return;e&&e!==this.__id&&(this.__contextRefs[e]=this);let n=e?this.__refCaches[e]:null;return n||(n=i=>U(this,null,function*(){var o,u;yield ir(0);let s=(i==null?void 0:i.$vtjEl)||(i==null?void 0:i.$el)||((u=(o=i==null?void 0:i._)==null?void 0:o.vnode)==null?void 0:u.el)||i;if(!s){typeof t=="string"&&(delete this.$refs[t],e&&delete this.__refs[e]);return}return s.nodeType===3&&s.nextSibling&&(s=s.nextSibling),s.__vtj__=e,X.Design===this.__mode&&(s.__context__=this,s.draggable=!0),e&&(this.__refs[e]=this.__getRefEl(this.__refs,e,i)),typeof t=="function"?t(i):t&&(this.$refs[t]=this.__getRefEl(this.$refs,t,i)),i}),e&&(this.__refCaches[e]=n),n)}__getRefEl(e,t,n){const i=e[t];if(i&&n!==i){const s=new Set([].concat(i,n));return Array.from(s)}else return n}__clone(e={}){const t=V(V({},this.context),e),n=re(V({},t),{context:t});return n.context.__proto__=this.context,n.__proto__=this,n}}function gn(r){var f,p;const{Vue:e=or,mode:t=X.Runtime,components:n={},libs:i={},apis:s={},loader:o}=r,u=e.computed(()=>r.dsl),l={$components:n,$libs:i,$apis:s},a=new Cy({mode:t,dsl:u.value,attrs:l}),c=e.defineComponent(V({name:u.value.name,__scopeId:u.value.id?`data-v-${u.value.id}`:void 0,props:V({},Py((f=u.value.props)!=null?f:[],a)),setup(){return U(this,arguments,function*(d={}){var _,w,y,T;a.$props=d,a.props=d,u.value.id&&yr(r.window||window,u.value.id,u.value.css||"",!0),a.state=jy(e,(_=u.value.state)!=null?_:{},a);const g=Ny(e,(w=u.value.computed)!=null?w:{},a),v=Iy((y=u.value.methods)!=null?y:{},a),E=My(e,u.value.inject,a);for(const[O,L]of Object.entries(E||{}))E[O]=e.inject(O,L);const m=Fy(u.value.dataSources||{},a),b=V(V(V(V({},E),g),v),m);return a.setup(b,e),Ly(e,(T=u.value.watch)!=null?T:[],a),V(V(V({vtj:a,state:a.state},d),g),v)})},emits:By(u.value.emits),expose:["vtj",...u.value.expose||[]],render(){if(!u.value.nodes)return null;const d=u.value.nodes||[];if(d.length===1)return ot(d[0],a,e,o,d);{const g=d.map(v=>ot(v,a,e,o,d));return e.createVNode("div",{},g)}}},Uy((p=u.value.lifeCycles)!=null?p:{},a)));return{renderer:e.markRaw(c),context:a}}function By(r=[]){return r.map(e=>Me(e)?e:e.name)}function Py(r=[],e){const t=n=>n?(Array.isArray(n)?n:[n]).map(i=>ay[i]):void 0;return r.map(n=>Me(n)?{name:n}:{name:n.name,type:n.type,required:n.required,default:me(n.default)?e.__parseExpression(n.default):n.default}).reduce((n,i)=>(n[i.name]={type:t(i.type),required:i.required,default:i.default},n),{})}function jy(r,e,t){return r.reactive(Object.keys(e||{}).reduce((n,i)=>{let s=e[i];return me(s)?s=t.__parseExpression(s):de(s)&&(s=t.__parseFunction(s)),n[i]=s,n},{}))}function Ny(r,e,t){return Object.entries(e!=null?e:{}).reduce((n,[i,s])=>(n[i]=r.computed(t.__parseFunction(s)),n),{})}function Iy(r,e){return Object.entries(r!=null?r:{}).reduce((t,[n,i])=>(t[n]=e.__parseFunction(i),t),{})}function My(r,e=[],t){return e.reduce((n,i)=>{var a;const{name:s,from:o}=i||{};i.default;const u=me(o)?t.__parseExpression(o)||s:o!=null?o:s,l=me(i.default)?t.__parseExpression(i.default):(a=i.default)!=null?a:null;return n[s]=r.inject(u,l),n},{})}function Fy(r,e){return Object.keys(r).reduce((t,n)=>{const i=r[n];if(i.type==="mock")t[n]=$y(i);else if(i.ref){const s=e.$apis[i.ref],o=de(i.transform)?i.transform.value?e.__parseFunction(i.transform):void 0:i.transform;t[n]=(...u)=>U(null,null,function*(){const l=yield s.apply(e,u);return o?o(l):l})}return t},{})}function Ly(r,e=[],t){e.forEach(n=>{r.watch(t.__parseExpression(n.source),t.__parseFunction(n.handler),{deep:n.deep,immediate:n.immediate})})}function Uy(r,e){return Object.entries(r!=null?r:{}).reduce((t,[n,i])=>{const s=e.__parseFunction(i);return t[n]=()=>U(null,null,function*(){ze(s)&&(yield ir(0),yield s())}),t},{})}class Hy{constructor(){k(this,"__props",{});k(this,"__events",{});k(this,"__nodes",{})}setProps(e,t){this.__props[e]=t}getProps(e){return this.__props[e]}loadProps(e,t){return(e?this.getProps(e):null)||(e&&this.setProps(e,t),t)}setEvents(e,t){}getEvents(e){return this.__events[e]}loadEvents(e,t){return(e?this.getEvents(e):null)||(e&&this.setEvents(e,t),t)}setNode(e,t){this.__nodes[e]=t}getNode(e){return this.__nodes[e]}loadNode(e,t){return(e?this.getNode(e):null)||(e&&this.setNode(e,t),t)}isEqual(e,t){return vd(e,t)}clear(){this.__props={},this.__events={},this.__nodes={}}}const qt=new Hy,Vy=new Gg;let qr=[],Xe={},zt={};const ky=(r,e)=>e;function va(t){return U(this,arguments,function*(r,e=window){const{urls:n=[],library:i}=r,s=n.filter(u=>mr(u));if(s.length===0||!i)return null;const o=n.filter(u=>vr(u));return o.length&&ha(o,e),yield pa(s,i,e).catch(u=>(console.warn("loadScriptUrl error",s,i,u),null))})}function vn(r){const{getDsl:e,getDslByUrl:t,options:n}=r;return n.window&&(qr.forEach(i=>{delete n.window[i]}),qr=[]),(i,s,o,u=or)=>{if(!o||typeof o=="string")return s;let l="";if(o.type==="Schema"&&o.id)return l=o.id+"_"+i,zt[l]||(zt[l]=u.defineAsyncComponent(()=>U(null,null,function*(){const a=Xe[o.id]||(yield Vy.add(o.id,()=>e(o.id)));return a&&(a.name=s,Xe[o.id]=a),a?gn(re(V({Vue:u,mode:X.Runtime},n),{dsl:_i(a),loader:vn(r)})).renderer:null})));if(o.type==="UrlSchema"&&o.url)return l=o.url+"_"+i,zt[l]||(zt[l]=u.defineAsyncComponent(()=>U(null,null,function*(){const a=Xe[o.url]||(yield t(o.url));return a&&(a.name=s,Xe[o.url]=a),a?gn(re(V({},n),{Vue:u,dsl:_i(a),mode:X.Runtime,loader:vn(r)})).renderer:null})));if(o.type==="Plugin"){let a=o.library?Xe[o.library]:null;return a||(o.library&&qr.push(o.library),a=Xe[o.library||Symbol()]=u.defineAsyncComponent(()=>U(null,null,function*(){return(yield va(o,n.window))||(console.warn("getPlugin result is null",o),null)})),a)}return s}}function ot(r,e,t=or,n=ky,i=[],s=!1,o=0){var _;if(!r||!r.name||r.invisible)return null;const u=(_=t.getCurrentInstance())==null?void 0:_.appContext,{id:l=null,directives:a=[]}=r,{vIf:c,vElseIf:f,vElse:h,vFor:p,vShow:d,vModels:g,vBind:v,vHtml:E,others:m}=ma(a);if(!s&&(f||h))return null;if(c&&!zy(c,e))return Yy(r,e,t,n,i);const b=(w,y=0)=>{var q,z,x,C;const T=w.$components,O=(()=>{var N,te,xe,we;if(r.name==="component")return Wy(w,(N=r.props)==null?void 0:N.is);if(r.name==="slot")return r.name;const D=n(`${r.id}_${y}`,r.name,r.from,t);return Me(D)?_y(D)||wy(D)?D:(we=(xe=T[D])!=null?xe:(te=u==null?void 0:u.app)==null?void 0:te.component(D))!=null?we:D:D})(),L=Ky(l,(q=r.props)!=null?q:{},w),S=Gy(t,r.id,(z=r.events)!=null?z:{},w);if(r.name==="slot")return Zy(t,r,L,w,n);v&&Object.assign(L,w.__parseExpression(v.value)),d&&(L.style=Object.assign((x=L.style)!=null?x:{},Xy(d,w))),E&&Object.assign(L,e0(E,w)),g.forEach(D=>{la.includes(r.name)?Object.assign(L,t0(D,w)):Object.assign(L,r0(t,D,w))});const A=n0(t,(C=r.children)!=null?C:[],w,n,r),M=w!=null&&w.__id?`data-v-${w.__id}`:void 0,j=M?{[M]:""}:{},I=w.__mode===X.Design?{"data-vtj":l}:{},B=`${l}_${y}`,$=V(V(V(V({key:B},j),I),L),S);qt.isEqual($,qt.getNode(B))||qt.setNode(B,$);let H=t.createVNode(O,qt.getNode(B)||$||{},A);const F=u?qy(u,m,w):[];return F.length&&(H=t.withDirectives(H,F)),H};return p?o0(p,b,e):b(e,o)}function qy(r,e,t){const n=r.app;return e.map(i=>{const s=typeof i.name=="string"?n.directive(i.name):t.__parseExpression(i.name);if(!s)return null;const o=[s];return i.value&&o.push(t.__parseExpression(i.value)),i.arg&&o.push(i.arg),i.modifiers&&o.push(i.modifiers),o}).filter(i=>!!i)}function ma(r=[]){const e=r.find(c=>Ee(c.name)==="vIf"),t=r.find(c=>Ee(c.name)==="vElseIf"),n=r.find(c=>Ee(c.name)==="vElse"),i=r.find(c=>Ee(c.name)==="vFor"),s=r.find(c=>Ee(c.name)==="vShow"),o=r.find(c=>Ee(c.name)==="vBind"),u=r.find(c=>Ee(c.name)==="vHtml"),l=r.filter(c=>Ee(c.name)==="vModel"),a=r.filter(c=>!oy.includes(Ee(c.name)));return{vIf:e,vElseIf:t,vElse:n,vFor:i,vShow:s,vModels:l,vBind:o,others:a,vHtml:u}}function zy(r,e){return!!e.__parseExpression(r.value)}function Wy(r,e){return e?me(e)?r.__parseExpression(e):e:"div"}function Ky(r,e,t){const n=mn(e,t);return n.ref=t.__ref(r,n.ref),n}function mn(r,e){return me(r)?e.__parseExpression(r):de(r)?e.__parseFunction(r):Array.isArray(r)?r.map(t=>mn(t,e)):typeof r=="object"?Object.keys(r||{}).reduce((t,n)=>{let i=r[n];return t[n]=mn(i,e),t},{}):r}function Jy(r,e){return t=>{var n;((n=t==null?void 0:t.key)==null?void 0:n.toLowerCase())===e.toLowerCase()&&r(t)}}function Gy(r,e,t,n){const i=["passive","capture","once"],s={capture:"Capture",once:"Once",passive:"OnceCapture"};return Object.keys(t||{}).reduce((o,u)=>{const l=t[u],a=ya(l.modifiers),c=a.find(p=>i.includes(p)),f="on"+Fd(u)+(c&&s[c]||""),h=n.__parseFunction(l.handler);return h&&(o[f]=r.withModifiers(a.includes("enter")?Jy(h,"enter"):h,a)),o},{})}function Yy(r,e,t,n,i=[]){let s=i.findIndex(o=>o.id===r.id);for(let o=++s;o<i.length;o++){const{directives:u=[]}=i[o],{vElseIf:l,vElse:a}=ma(u);if(l){if(e.__parseExpression(l.value))return ot(i[o],e,t,n,i,!0);continue}if(a)return ot(i[o],e,t,n,i,!0)}return null}function ya(r={},e=!1){const t=Object.keys(r);return e?t.map(n=>"."+n):t}function Zy(r,e,t,n,i){var l;const{children:s}=e,o=Qy(e,n),u=(l=n.$slots)==null?void 0:l[o.name];return u?u(t):s?Me(s)?r.createTextVNode(s):me(s)?r.createTextVNode(fa(n.__parseExpression(s))):Array.isArray(s)?s.map((a,c)=>ot(a,n,r,i,s,!1,c)):null:null}function Qy(r,e){const{props:t}=r,n=(t==null?void 0:t.name)||"default";return{name:me(n)?e.__parseExpression(n):n,params:[]}}function Xy(r,e){return e.__parseExpression(r.value)?{}:{display:"none"}}function e0(r,e){return{innerHTML:e.__parseExpression(r.value)||""}}function t0(r,e){var n;const t={type:"JSFunction",value:(n=r.value)!=null&&n.value?`(v) => {
67
67
  ${r.value.value} = v?.target.value;
68
68
  }`:"(v) => {}"};return{[me(r.arg)?e.__parseExpression(r.arg):r.arg||"value"]:e.__parseExpression(r.value),onInput:e.__parseFunction(t)}}function r0(r,e,t){var u;const n={type:"JSFunction",value:(u=e.value)!=null&&u.value?`(v) => {
69
69
  ${e.value.value} = v;
@@ -71,6 +71,6 @@ ${u}
71
71
  * Copyright (c) 2026, VTJ.PRO All rights reserved.
72
72
  * @name @vtj/uni
73
73
  * @author CHC chenhuachun1549@dingtalk.com
74
- * @version 0.16.24
74
+ * @version 0.16.26
75
75
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
76
76
  */const T0=["onLaunch","onShow","onHide","onError","onPageNotFound","onUnhandledRejection","onThemeChange","onPageNotFound","onUniNViewMessage","onExit"],vs="/pages",R0="VTJ",A0="__UNI__1FC118B",x0="VTJ移动跨端项目",O0="1.0.0",$0="100",D0=!1,C0={},B0={enable:!1},P0="3",j0={name:R0,appid:A0,description:x0,versionName:O0,versionCode:$0,transformPx:D0,"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:C0,"mp-weixin":{appid:"",setting:{urlCheck:!1},usingComponents:!0},"mp-alipay":{usingComponents:!0},"mp-baidu":{usingComponents:!0},"mp-toutiao":{usingComponents:!0},uniStatistics:B0,vueVersion:P0},N0=[],I0={navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},M0={autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}},F0={pages:N0,globalStyle:I0,easycom:M0};function L0(r){let{manifestJson:e={},pagesJson:t={},routes:n=[]}=r;const i=n.map(s=>{const{path:o,style:u,needLogin:l}=s;return{path:o,style:u,needLogin:l}});return re(V({},r),{manifestJson:Object.assign({},j0,e),pagesJson:Object.assign({},F0,t,{pages:i})})}const _n={navigationBarBackgroundColor:"backgroundColor",navigationBarTextStyle:"titleColor",navigationBarTitleText:"titleText",navigationStyle:"style",titleImage:"titleImage",titlePenetrate:"titlePenetrate",transparentTitle:"transparentTitle"};function wa(r){const e={},t={black:"#000000",white:"#ffffff"};for(const n in r)_n[n]&&(e[_n[n]]=n==="navigationBarTextStyle"?t[r[n]]||t.black:r[n]);return e}function U0(r){const e={};for(const t in r)_n[t]||(e[t]=r[t]);return e}function H0(r){var e,t;return((t=(e=r.h5)==null?void 0:e.router)==null?void 0:t.mode)||"hash"}function V0(r){var e,t,n;return{topWindow:!!((e=r.topWindow)!=null&&e.path),leftWindow:!!((t=r.leftWindow)!=null&&t.path),rightWindow:!!((n=r.rightWindow)!=null&&n.path)}}function k0(r){const{pagesJson:e={}}=r,{globalStyle:t,pages:n=[]}=e;return!!(t!=null&&t.enablePullDownRefresh||n.find(i=>{var s;return!!((s=i.style)!=null&&s.enablePullDownRefresh)}))}function q0(r){const{pagesJson:e={}}=r,{globalStyle:t,pages:n=[]}=e;let i=!1;return(t==null?void 0:t.navigationStyle)==="custom"?(i=!0,n.find(s=>{var o;return((o=s.style)==null?void 0:o.navigationStyle)==="default"})&&(i=!1)):n.every(s=>{var o;return((o=s.style)==null?void 0:o.navigationStyle)==="custom"})&&(i=!0),i}function z0(r){var u;const e=q0(r),t={navigationBar:!1,navigationBarButtons:!1,navigationBarSearchInput:!1,navigationBarTransparent:!1},{pagesJson:n={}}=r,{globalStyle:i,pages:s=[]}=n;if(e)return t;t.navigationBar=!0;const o=(u=i==null?void 0:i.h5)==null?void 0:u.titleNView;return s.find(l=>{var a,c,f;return!!((f=(c=(a=l.style)==null?void 0:a.h5)==null?void 0:c.titleNView)!=null&&f.buttons.length)})&&(t.navigationBarButtons=!0),(o!=null&&o.searchInput||s.find(l=>{var a,c,f;return!!((f=(c=(a=l.style)==null?void 0:a.h5)==null?void 0:c.titleNView)!=null&&f.searchInput)}))&&(t.navigationBarSearchInput=!0),((o==null?void 0:o.type)==="transparent"||s.find(l=>{var a,c,f;return((f=(c=(a=l.style)==null?void 0:a.h5)==null?void 0:c.titleNView)==null?void 0:f.type)==="transparent"}))&&(t.navigationBarTransparent=!0),t}function W0(r,e=window){var h,p,d,g;const{pagesJson:t={},manifestJson:n={}}=r,{topWindow:i,leftWindow:s,rightWindow:o}=V0(t),{navigationBar:u,navigationBarButtons:l,navigationBarSearchInput:a,navigationBarTransparent:c}=z0(r),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__:H0(n),__UNI_FEATURE_PAGES__:!!((h=t.pages)!=null&&h.length),__UNI_FEATURE_TABBAR__:!!((d=(p=t.tabBar)==null?void 0:p.list)!=null&&d.length),__UNI_FEATURE_TABBAR_MIDBUTTON__:!!((g=t.tabBar)!=null&&g.midButton),__UNI_FEATURE_TOPWINDOW__:i,__UNI_FEATURE_LEFTWINDOW__:s,__UNI_FEATURE_RIGHTWINDOW__:o,__UNI_FEATURE_RESPONSIVE__:!1,__UNI_FEATURE_NAVIGATIONBAR__:u,__UNI_FEATURE_PULL_DOWN_REFRESH__:k0(r),__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__:l,__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__:a,__UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__:c};Object.entries(f).forEach(([v,E])=>{e[v]=E})}const K0="4.76";function J0(r,e=window){var f,h;const{pagesJson:t={},manifestJson:n={}}=r,{easycom:i={}}=t,{appid:s="",name:o="",versionCode:u="",versionName:l=""}=n,a=t.globalStyle,c=((f=n.h5)==null?void 0:f.router)||{};e.__uniConfig={easycom:i,globalStyle:re(V({},U0(a)),{navigationBar:wa(a),isNVue:!1}),compilerVersion:K0,appId:s,appName:o,appVersion:l,appVersionCode:String(u),async:V({loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0},((h=n.h5)==null?void 0:h.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:t.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},t.tabBar):void 0}}function G0(r,e=window){const{UniServiceJSBridge:t,UniViewJSBridge:n,getApp:i,uni:s,getCurrentPages:o,upx2px:u,setupPage:l}=r;e.UniServiceJSBridge=t,e.UniViewJSBridge=n,e.getApp=i,e.uni=s,e.wx=s,e.getCurrentPages=o,e.upx2px=u,e.__setupPage=a=>l(a)}function Y0(r,e,t){const{openBlock:n,createBlock:i,withCtx:s,createVNode:o}=r,{PageComponent:u,setupPage:l,getApp:a}=e;return{mpType:"page",setup(){return U(this,null,function*(){var g,v;const f=((v=(g=a())==null?void 0:g.$route)==null?void 0:v.query)||{},{loader:h,component:p}=t,d=h?yield h(t):p||{};return()=>(n(),i(u,null,{page:s(()=>[o(l(d),Object.assign({},f,{ref:"page"}),null,512)]),_:1}))})}}}function Z0(r,e,t){var p;const{path:n,style:i={},meta:s={},home:o,id:u}=e,l=((p=r.tabBar)==null?void 0:p.list)||[],a=l.findIndex(d=>{var g;return d.pagePath===n||((g=d.pagePath)==null?void 0:g.endsWith(u))}),c=l[a],f=!!c,h=t===0;return V({isTabBar:f,tabBarIndex:a,isQuit:o!=null?o:h,isEntry:o!=null?o:h,navigationBar:V({type:"default"},wa(i)),isNVue:!1,route:c?c.pagePath:n},s)}function Q0(r,e,t,n,i=window){const s=t.map((o,u)=>{const l=Z0(n,o,u),a=Y0(r,e,o),{path:c}=o;return{path:c,alias:c,meta:l,component:{render(){return r.h(r.Suspense,[r.h(a)])}}}});i.__uniRoutes=s,i.__uniLayout={}}function X0(r,e,t=window){yr(t,String(r),e)}function e1(r,e){e&&["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(t=>{const n=e[t];r.component(t,n)})}function t1(r){const e=L0(r),{Vue:t,App:n,UniH5:i,routes:s=[],pagesJson:o={},manifestJson:u={},window:l,css:a=""}=e;if(!i)return t.createApp(n);const{plugin:c,setupApp:f}=i;W0(e,l),J0(e,l),G0(i,l),Q0(t,i,s,o,l),X0(u.appid||Date.now(),a,l);const h=t.createApp(f(n));return h.use(e1,i),h.use(c),h}function r1(r,e){const t={};return Object.entries(r).forEach(([n,i])=>{T0.includes(n)&&i&&(t[n]=e(i))}),t}function ms(r,e){return()=>U(null,null,function*(){const t=yield r.getDsl(e);if(t){const{renderer:n}=r.createDslRenderer(t);return n}return null})}function n1(n){return U(this,arguments,function*(r,e=!1,t=vs){var u,l,a;const i=((u=r.project)==null?void 0:u.pages)||[],s=[];for(const c of i){const f=((l=r.project)==null?void 0:l.homepage)===c.id;s.push({id:c.id,path:`${t}/${c.id}`,loader:ms(r,c.id),style:V({navigationBarTitleText:c.title},c.style),needLogin:c.needLogin,home:f})}const o=s.find(c=>!!c.home)||s[0];if(o){const c=t===vs?"/":t;s.unshift(re(V({},o),{path:c}))}if(e){const c=((a=r.project)==null?void 0:a.blocks)||[];for(const f of c)s.push({id:f.id,path:`${t}/${f.id}`,loader:ms(r,f.id),style:{navigationStyle:"custom"}})}return s})}function i1(){var r;return(r=window.uni)!=null&&r.showLoading&&window.uni.showLoading({title:"加载中...",mask:!0}),{close:()=>{var e;(e=window.uni)!=null&&e.hideLoading&&window.uni.hideLoading()}}}function Ea(r,e="",t="warning"){return U(this,null,function*(){var n;return(n=window.uni)!=null&&n.showModal?window.uni.showModal({title:e,content:r,showCancel:!1}):(window.alert(r),!0)})}function s1(r=X.Runtime){let e={};r===X.Runtime?e=Object.assign({}):e=Object.assign({});let t={};for(const[n,i]of Object.entries(e))t[n]=()=>Promise.resolve(i);return t}const o1=Ty({loading:i1,notify:Ea}),Sa=new S0(w0(Ea)),a1=s1(),{provider:u1,onReady:c1}=v0({nodeEnv:"production",mode:X.Runtime,modules:a1,materialPath:"../",adapter:o1,service:Sa,dependencies:{Vue:()=>kn(()=>import("./@dcloudio-uni-h5-vue-BmOkhsCk.js").then(r=>r.W),__vite__mapDeps([0,1,2]),import.meta.url),VueRouter:()=>kn(()=>import("./vue-router-BaL-Hp_b.js"),__vite__mapDeps([3,0,1,2]),import.meta.url)}}),l1=r=>U(null,null,function*(){const e=(yield Sa.getExtension().catch(()=>null))||{},t=top||window,n=yield y0(e.enhance,t.location.pathname),{Vue:i,UniH5:s}=window,o=r.project;if(!o)return;const u=o.uniConfig||{},l=r1(u,d=>pe(d,window,!1,!0)),{manifestJson:a,pagesJson:c,css:f}=u,h=yield n1(r,!0),p=t1({Vue:i,App:l,UniH5:s,routes:h,css:f,manifestJson:a,pagesJson:c});p.use(r),n&&p.use(n,r),p.mount(document.body)});c1(()=>l1(u1));
@@ -44,7 +44,7 @@
44
44
  <title></title>
45
45
  <!--preload-links-->
46
46
  <!--app-context-->
47
- <script type="module" crossorigin src="./assets/index-Cm0YeEOD.js"></script>
47
+ <script type="module" crossorigin src="./assets/index-C59gwPz0.js"></script>
48
48
  <link rel="modulepreload" crossorigin href="./assets/vue-DefuvV9N.js">
49
49
  <link rel="modulepreload" crossorigin href="./assets/@dcloudio-uni-shared-bWpOwtAM.js">
50
50
  <link rel="modulepreload" crossorigin href="./assets/@dcloudio-uni-h5-vue-BmOkhsCk.js">
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vtj/pro",
3
3
  "private": false,
4
- "version": "0.16.24",
4
+ "version": "0.16.26",
5
5
  "keywords": [
6
6
  "低代码引擎",
7
7
  "LowCode Engine",
@@ -21,22 +21,22 @@
21
21
  "license": "MIT",
22
22
  "type": "module",
23
23
  "dependencies": {
24
- "@vtj/core": "~0.16.24",
25
- "@vtj/local": "~0.16.24",
26
- "@vtj/materials": "~0.16.24",
27
- "@vtj/designer": "~0.16.24",
28
- "@vtj/renderer": "~0.16.24",
29
- "@vtj/uni": "~0.16.24"
24
+ "@vtj/designer": "~0.16.26",
25
+ "@vtj/core": "~0.16.26",
26
+ "@vtj/local": "~0.16.26",
27
+ "@vtj/renderer": "~0.16.26",
28
+ "@vtj/materials": "~0.16.26",
29
+ "@vtj/uni": "~0.16.26"
30
30
  },
31
31
  "devDependencies": {
32
32
  "vite-plugin-vue-devtools": "~8.0.2",
33
33
  "vue": "~3.5.5",
34
34
  "vue-router": "~4.6.0",
35
- "@vtj/icons": "~0.16.24",
35
+ "@vtj/charts": "~0.16.26",
36
36
  "@vtj/cli": "~0.12.19",
37
- "@vtj/charts": "~0.16.24",
38
- "@vtj/ui": "~0.16.24",
39
- "@vtj/utils": "~0.16.24"
37
+ "@vtj/ui": "~0.16.26",
38
+ "@vtj/utils": "~0.16.26",
39
+ "@vtj/icons": "~0.16.26"
40
40
  },
41
41
  "exports": {
42
42
  "./vite": {