@vtj/pro 0.17.1 → 0.17.3

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 (24) 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-C_o8eXiI-DVr_5E5x.js → Editor-C2X3NB11-D8gzOv-P.js} +17 -13
  14. package/dist/assets/{auth-UJRKkPAc.js → auth-1yz0F7ae.js} +1 -1
  15. package/dist/assets/{index-CYx__QwV.js → index-WfJJQWSk.js} +1 -1
  16. package/dist/assets/{index-CXncVhyF.js → index-XrhjOiHD.js} +2 -2
  17. package/dist/assets/{page-CaSVSWfl.js → page-D1ULb4y6.js} +1 -1
  18. package/dist/assets/{preview-DHASE872.js → preview-Cuy-DGAH.js} +1 -1
  19. package/dist/assets/{utils-Cq0rfO51.js → utils-Bd_GgR60.js} +1 -1
  20. package/dist/index.html +3 -3
  21. package/dist/uni/assets/{index-cG2iJOQ4.js → index-CxSpLZuy.js} +5 -5
  22. package/dist/uni/index.html +1 -1
  23. package/package.json +11 -11
  24. /package/dist/assets/{Editor-C_o8eXiI-xwJs2FyB.css → Editor-C2X3NB11-xwJs2FyB.css} +0 -0
@@ -1 +1 @@
1
- var k=Object.defineProperty;var y=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var w=(o,e,t)=>e in o?k(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,u=(o,e)=>{for(var t in e||(e={}))A.call(e,t)&&w(o,t,e[t]);if(y)for(var t of y(e))U.call(e,t)&&w(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-Bgelixwu.js";import"./vxe-C7ZzhQxY.js";import{q,aF as I,a9 as d,aG as b,aH as E,Q as v}from"./Editor-C_o8eXiI-DVr_5E5x.js";import{useRoute as B}from"./vue-router-B2eGcVGj.js";import{y as x,az as f,I as R,D as C,u as l,E as $,U as g}from"./vue-BaPf1eHv.js";import{_ as L}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./@vueuse-w7qmHU3H.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Bc0G8KpM.js";import"./@element-plus-icons-vue-CXRJnQYo.js";import"./dayjs-CxR8wwn9.js";import"./monaco-editor-Bgo-w-Z8.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-C_1w07tn.js";import"./marked--VTVY_DP.js";const Q={class:"loading"},S=x({__name:"Auth",props:{remote:{},access:{},baseUrl:{default:"/"}},setup(o){return _(this,null,function*(){let e,t;const c=o,s=q(u(u({alert:d},I),c.access)),n=B(),p=a=>_(null,null,function*(){const h=`${c.remote||b}/api/open/user/${a}`,m=yield E(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)=>(C(),R("div",Q,"正在登录中..."))})}}),z=L(S,[["__scopeId","data-v-2cb061ca"]]),Z=x({__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)?(C(),$(l(z),{key:0,remote:l(n),access:l(p)},null,8,["remote","access"])):g("",!0)})}});export{Z as default};
1
+ var k=Object.defineProperty;var y=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable;var w=(o,e,t)=>e in o?k(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,u=(o,e)=>{for(var t in e||(e={}))A.call(e,t)&&w(o,t,e[t]);if(y)for(var t of y(e))U.call(e,t)&&w(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-Bgelixwu.js";import"./vxe-C7ZzhQxY.js";import{q,aF as I,a9 as d,aG as b,aH as E,Q as v}from"./Editor-C2X3NB11-D8gzOv-P.js";import{useRoute as B}from"./vue-router-B2eGcVGj.js";import{y as x,az as f,I as R,D as C,u as l,E as $,U as g}from"./vue-BaPf1eHv.js";import{_ as L}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./@vueuse-w7qmHU3H.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Bc0G8KpM.js";import"./@element-plus-icons-vue-CXRJnQYo.js";import"./dayjs-CxR8wwn9.js";import"./monaco-editor-Bgo-w-Z8.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-C_1w07tn.js";import"./marked--VTVY_DP.js";const Q={class:"loading"},S=x({__name:"Auth",props:{remote:{},access:{},baseUrl:{default:"/"}},setup(o){return _(this,null,function*(){let e,t;const c=o,s=q(u(u({alert:d},I),c.access)),n=B(),p=a=>_(null,null,function*(){const h=`${c.remote||b}/api/open/user/${a}`,m=yield E(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)=>(C(),R("div",Q,"正在登录中..."))})}}),z=L(S,[["__scopeId","data-v-2cb061ca"]]),Z=x({__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)?(C(),$(l(z),{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 B=(n,e,t)=>e in n?I(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,$=(n,e)=>{for(var t in e||(e={}))N.call(e,t)&&B(n,t,e[t]);if(P)for(var t of P(e))V.call(e,t)&&B(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-B2eGcVGj.js";import{y as j}from"./@vueuse-w7qmHU3H.js";import{Q as z,G as D,B as J,q as O,o as C,a as U,d as E}from"./Editor-C_o8eXiI-DVr_5E5x.js";import"./element-plus-Bgelixwu.js";import"./vxe-C7ZzhQxY.js";import{E as K,a as v,n as S,l as L}from"./utils-Cq0rfO51.js";import{y as M,az as A,e as X,I as Y,r as Z,D as ee}from"./vue-BaPf1eHv.js";import{_ as te}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./monaco-editor-Bgo-w-Z8.js";import"./dayjs-CxR8wwn9.js";import"./@element-plus-icons-vue-CXRJnQYo.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-C_1w07tn.js";import"./marked--VTVY_DP.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Bc0G8KpM.js";const ae=M({__name:"index",setup(n){return d(this,null,function*(){let e,t;const _=W(),r=Z(),l=new z(D(S)),s=([e,t]=A(()=>l.getExtension().catch(()=>null)),e=yield e,t(),e||{}),i=s?([e,t]=A(()=>new K(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:o="/",history:p="hash",base:h="/",pageRouteName:w="page",remote:g,auth:k,checkVersion:q=!0,enhance:F,platform:Q="web"}=s||{},R=J({loading:L,notify:S,useTitle:j,alert:v,access:s==null?void 0:s.access,settings:{proxyPath:`${g}/api/proxy`}}),T=O($({alert:v},s==null?void 0:s.__ACCESS__)),b=()=>p==="hash",G=a=>a==="/"?"":(a.startsWith("/")&&(a=a.substring(1)),a.endsWith("/")||(a=a+"/"),a);C.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?`/${w}`:"",x=`${G(h)}${u?`pages${H}`:w}/${f.id}`;m=b()?`${m}#/${x}`:`${m}${x}`}window.open(m,"VTJProject")}}}),C.set("Previewer",{props:{path:(a,u)=>{const c=location.pathname;return u.platform==="uniapp"?`${c}uni/#/pages/${a.id}`:`${c}#/preview/${a.id}`}}});const y=new U($({container:r,service:l,materialPath:o,pageBasePath:h==="/"?"":h,adapter:R,access:T,remote:g,auth:k,checkVersion:q,enhance:F,project:{platform:Q}},i));return y.ready(()=>d(null,null,function*(){yield E(300),y.openFile(_.query.id)})),X(()=>_.query.id,a=>d(null,null,function*(){yield E(300),y.openFile(a)})),(a,u)=>(ee(),Y("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 B=(n,e,t)=>e in n?I(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,$=(n,e)=>{for(var t in e||(e={}))N.call(e,t)&&B(n,t,e[t]);if(P)for(var t of P(e))V.call(e,t)&&B(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-B2eGcVGj.js";import{y as j}from"./@vueuse-w7qmHU3H.js";import{Q as z,G as D,B as J,q as O,o as C,a as U,d as E}from"./Editor-C2X3NB11-D8gzOv-P.js";import"./element-plus-Bgelixwu.js";import"./vxe-C7ZzhQxY.js";import{E as K,a as v,n as S,l as L}from"./utils-Bd_GgR60.js";import{y as M,az as A,e as X,I as Y,r as Z,D as ee}from"./vue-BaPf1eHv.js";import{_ as te}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./monaco-editor-Bgo-w-Z8.js";import"./dayjs-CxR8wwn9.js";import"./@element-plus-icons-vue-CXRJnQYo.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-C_1w07tn.js";import"./marked--VTVY_DP.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Bc0G8KpM.js";const ae=M({__name:"index",setup(n){return d(this,null,function*(){let e,t;const _=W(),r=Z(),l=new z(D(S)),s=([e,t]=A(()=>l.getExtension().catch(()=>null)),e=yield e,t(),e||{}),i=s?([e,t]=A(()=>new K(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:o="/",history:p="hash",base:h="/",pageRouteName:w="page",remote:g,auth:k,checkVersion:q=!0,enhance:F,platform:Q="web"}=s||{},R=J({loading:L,notify:S,useTitle:j,alert:v,access:s==null?void 0:s.access,settings:{proxyPath:`${g}/api/proxy`}}),T=O($({alert:v},s==null?void 0:s.__ACCESS__)),b=()=>p==="hash",G=a=>a==="/"?"":(a.startsWith("/")&&(a=a.substring(1)),a.endsWith("/")||(a=a+"/"),a);C.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?`/${w}`:"",x=`${G(h)}${u?`pages${H}`:w}/${f.id}`;m=b()?`${m}#/${x}`:`${m}${x}`}window.open(m,"VTJProject")}}}),C.set("Previewer",{props:{path:(a,u)=>{const c=location.pathname;return u.platform==="uniapp"?`${c}uni/#/pages/${a.id}`:`${c}#/preview/${a.id}`}}});const y=new U($({container:r,service:l,materialPath:o,pageBasePath:h==="/"?"":h,adapter:R,access:T,remote:g,auth:k,checkVersion:q,enhance:F,project:{platform:Q}},i));return y.ready(()=>d(null,null,function*(){yield E(300),y.openFile(_.query.id)})),X(()=>_.query.id,a=>d(null,null,function*(){yield E(300),y.openFile(a)})),(a,u)=>(ee(),Y("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-CYx__QwV.js","./vue-router-B2eGcVGj.js","./vue-BaPf1eHv.js","./@vueuse-w7qmHU3H.js","./Editor-C_o8eXiI-DVr_5E5x.js","./monaco-editor-Bgo-w-Z8.js","./monaco-editor-C0wzwsn5.css","./element-plus-Bgelixwu.js","./lodash-es-BxdYFYdv.js","./shared-Bc0G8KpM.js","./@element-plus-icons-vue-CXRJnQYo.js","./dayjs-CxR8wwn9.js","./element-plus-Bw1qTWaj.css","./vxe-C7ZzhQxY.js","./vxe-BAb1d5vW.css","./html2canvas-DNSjNh3_.js","./mockjs-C_1w07tn.js","./marked--VTVY_DP.js","./Editor-C_o8eXiI-xwJs2FyB.css","./utils-Cq0rfO51.js","./_plugin-vue_export-helper-DlAUqK2U.js","./index-Br68Req3.css","./preview-DHASE872.js","./page-CaSVSWfl.js","./uni-page-BrivKbVY.js","./uni-page-Diqmj53r.css","./auth-UJRKkPAc.js"])))=>i.map(i=>d[i]);
2
- import{y 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-BaPf1eHv.js";import{z as g,c as y}from"./element-plus-Bgelixwu.js";import"./dayjs-CxR8wwn9.js";import{_ as r}from"./monaco-editor-Bgo-w-Z8.js";import{createRouter as E,createWebHashHistory as O}from"./vue-router-B2eGcVGj.js";import"./@vueuse-w7qmHU3H.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Bc0G8KpM.js";import"./@element-plus-icons-vue-CXRJnQYo.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(y),{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-CYx__QwV.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-DHASE872.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-CaSVSWfl.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-BrivKbVY.js"),__vite__mapDeps([24,1,2,20,25]),import.meta.url),meta:{pure:!0}},{path:"/auth",name:"auth",component:()=>r(()=>import("./auth-UJRKkPAc.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=E({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-WfJJQWSk.js","./vue-router-B2eGcVGj.js","./vue-BaPf1eHv.js","./@vueuse-w7qmHU3H.js","./Editor-C2X3NB11-D8gzOv-P.js","./monaco-editor-Bgo-w-Z8.js","./monaco-editor-C0wzwsn5.css","./element-plus-Bgelixwu.js","./lodash-es-BxdYFYdv.js","./shared-Bc0G8KpM.js","./@element-plus-icons-vue-CXRJnQYo.js","./dayjs-CxR8wwn9.js","./element-plus-Bw1qTWaj.css","./vxe-C7ZzhQxY.js","./vxe-BAb1d5vW.css","./html2canvas-DNSjNh3_.js","./mockjs-C_1w07tn.js","./marked--VTVY_DP.js","./Editor-C2X3NB11-xwJs2FyB.css","./utils-Bd_GgR60.js","./_plugin-vue_export-helper-DlAUqK2U.js","./index-Br68Req3.css","./preview-Cuy-DGAH.js","./page-D1ULb4y6.js","./uni-page-BrivKbVY.js","./uni-page-Diqmj53r.css","./auth-1yz0F7ae.js"])))=>i.map(i=>d[i]);
2
+ import{y 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-BaPf1eHv.js";import{z as g,c as y}from"./element-plus-Bgelixwu.js";import"./dayjs-CxR8wwn9.js";import{_ as r}from"./monaco-editor-Bgo-w-Z8.js";import{createRouter as E,createWebHashHistory as O}from"./vue-router-B2eGcVGj.js";import"./@vueuse-w7qmHU3H.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Bc0G8KpM.js";import"./@element-plus-icons-vue-CXRJnQYo.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(y),{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-WfJJQWSk.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-Cuy-DGAH.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-D1ULb4y6.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-BrivKbVY.js"),__vite__mapDeps([24,1,2,20,25]),import.meta.url),meta:{pure:!0}},{path:"/auth",name:"auth",component:()=>r(()=>import("./auth-1yz0F7ae.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=E({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-B2eGcVGj.js","./vue-BaPf1eHv.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 C=(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)&&C(o,e,t[e]);if(E)for(var e of E(t))A.call(t,e)&&C(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 g}from"./monaco-editor-Bgo-w-Z8.js";import{useRoute as P}from"./vue-router-B2eGcVGj.js";import"./element-plus-Bgelixwu.js";import"./vxe-C7ZzhQxY.js";import{Q as B,G as V,B as D,K as T,y as k,Y as I,N}from"./Editor-C_o8eXiI-DVr_5E5x.js";import{a as S,n as w,l as G,E as K}from"./utils-Cq0rfO51.js";import{y as L}from"./@vueuse-w7qmHU3H.js";import{y as O,az as x,e as Q,E as Y,S as z,U as H,r as U,D as b,g as j}from"./vue-BaPf1eHv.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Bc0G8KpM.js";import"./@element-plus-icons-vue-CXRJnQYo.js";import"./dayjs-CxR8wwn9.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-C_1w07tn.js";import"./marked--VTVY_DP.js";const it=O({__name:"page",setup(o){return c(this,null,function*(){let t,e;const _=new B(V(w)),s=([t,e]=x(()=>_.getExtension().catch(()=>null)),t=yield t,e(),t),u=D({loading:G,notify:w,useTitle:L,alert:S,access:s==null?void 0:s.access}),d=s?([t,e]=x(()=>new K(s).load()),t=yield t,e(),t):{},{__BASE_PATH__:p="/"}=s||{},{provider:r,onReady:i}=T({mode:k.Runtime,service:_,materialPath:p,adapter:y(y({},u),d.adapter),dependencies:{Vue:()=>g(()=>import("./vue-BaPf1eHv.js").then(a=>a.aA),[],import.meta.url),VueRouter:()=>g(()=>import("./vue-router-B2eGcVGj.js"),__vite__mapDeps([0,1]),import.meta.url)}}),l=P(),f=U(),n=j(),v=a=>c(null,null,function*(){f.value=yield r.getRenderComponent(l.params.id.toString(),m=>{N(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))})),Q(()=>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?(b(),Y(z(f.value),{key:0})):H("",!0)})}});export{it as default};
2
+ var R=Object.defineProperty;var E=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var C=(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)&&C(o,e,t[e]);if(E)for(var e of E(t))A.call(t,e)&&C(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 g}from"./monaco-editor-Bgo-w-Z8.js";import{useRoute as P}from"./vue-router-B2eGcVGj.js";import"./element-plus-Bgelixwu.js";import"./vxe-C7ZzhQxY.js";import{Q as B,G as V,B as D,K as T,y as k,Y as I,N}from"./Editor-C2X3NB11-D8gzOv-P.js";import{a as S,n as w,l as G,E as K}from"./utils-Bd_GgR60.js";import{y as L}from"./@vueuse-w7qmHU3H.js";import{y as O,az as x,e as Q,E as Y,S as z,U as H,r as U,D as b,g as j}from"./vue-BaPf1eHv.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Bc0G8KpM.js";import"./@element-plus-icons-vue-CXRJnQYo.js";import"./dayjs-CxR8wwn9.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-C_1w07tn.js";import"./marked--VTVY_DP.js";const it=O({__name:"page",setup(o){return c(this,null,function*(){let t,e;const _=new B(V(w)),s=([t,e]=x(()=>_.getExtension().catch(()=>null)),t=yield t,e(),t),u=D({loading:G,notify:w,useTitle:L,alert:S,access:s==null?void 0:s.access}),d=s?([t,e]=x(()=>new K(s).load()),t=yield t,e(),t):{},{__BASE_PATH__:p="/"}=s||{},{provider:r,onReady:i}=T({mode:k.Runtime,service:_,materialPath:p,adapter:y(y({},u),d.adapter),dependencies:{Vue:()=>g(()=>import("./vue-BaPf1eHv.js").then(a=>a.aA),[],import.meta.url),VueRouter:()=>g(()=>import("./vue-router-B2eGcVGj.js"),__vite__mapDeps([0,1]),import.meta.url)}}),l=P(),f=U(),n=j(),v=a=>c(null,null,function*(){f.value=yield r.getRenderComponent(l.params.id.toString(),m=>{N(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))})),Q(()=>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?(b(),Y(z(f.value),{key:0})):H("",!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-B2eGcVGj.js","./vue-BaPf1eHv.js"])))=>i.map(i=>d[i]);
2
- var x=Object.defineProperty;var y=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable;var E=(o,e,t)=>e in o?x(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,d=(o,e)=>{for(var t in e||(e={}))A.call(e,t)&&E(o,t,e[t]);if(y)for(var t of y(e))g.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 B}from"./vue-router-B2eGcVGj.js";import"./element-plus-Bgelixwu.js";import"./vxe-C7ZzhQxY.js";import{Q as P,G as V,B as D,K as T,y as k,z,Y as I,N}from"./Editor-C_o8eXiI-DVr_5E5x.js";import{a as S,n as h,l as G,E as K}from"./utils-Cq0rfO51.js";import{y as L}from"./@vueuse-w7qmHU3H.js";import{y as O,az as C,E as Q,S as Y,U as H,r as U,D as b,g as j}from"./vue-BaPf1eHv.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Bc0G8KpM.js";import"./@element-plus-icons-vue-CXRJnQYo.js";import"./dayjs-CxR8wwn9.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-C_1w07tn.js";import"./marked--VTVY_DP.js";const pe=O({__name:"preview",setup(o){return f(this,null,function*(){let e,t;const c=new P(V(h)),s=([e,t]=C(()=>c.getExtension().catch(()=>null)),e=yield e,t(),e||{}),_=D({loading:G,notify:h,useTitle:L,alert:S,access:s==null?void 0:s.access}),n=s?([e,t]=C(()=>new K(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:i="/"}=s||{},{provider:a,onReady:p}=T({mode:k.Runtime,service:c,materialPath:i,adapter:d(d({},_),n.adapter),dependencies:{Vue:()=>w(()=>import("./vue-BaPf1eHv.js").then(m=>m.aA),[],import.meta.url),VueRouter:()=>w(()=>import("./vue-router-B2eGcVGj.js"),__vite__mapDeps([0,1]),import.meta.url)}}),v=B(),u=U(),l=j();return p(()=>f(null,null,function*(){const m=yield z(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(),R=>{N(r,v,R)}))})),(m,r)=>u.value?(b(),Q(Y(u.value),{key:0})):H("",!0)})}});export{pe as default};
2
+ var x=Object.defineProperty;var y=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable;var E=(o,e,t)=>e in o?x(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,d=(o,e)=>{for(var t in e||(e={}))A.call(e,t)&&E(o,t,e[t]);if(y)for(var t of y(e))g.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 B}from"./vue-router-B2eGcVGj.js";import"./element-plus-Bgelixwu.js";import"./vxe-C7ZzhQxY.js";import{Q as P,G as V,B as D,K as T,y as k,z,Y as I,N}from"./Editor-C2X3NB11-D8gzOv-P.js";import{a as S,n as h,l as G,E as K}from"./utils-Bd_GgR60.js";import{y as L}from"./@vueuse-w7qmHU3H.js";import{y as O,az as C,E as Q,S as Y,U as H,r as U,D as b,g as j}from"./vue-BaPf1eHv.js";import"./lodash-es-BxdYFYdv.js";import"./shared-Bc0G8KpM.js";import"./@element-plus-icons-vue-CXRJnQYo.js";import"./dayjs-CxR8wwn9.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-C_1w07tn.js";import"./marked--VTVY_DP.js";const pe=O({__name:"preview",setup(o){return f(this,null,function*(){let e,t;const c=new P(V(h)),s=([e,t]=C(()=>c.getExtension().catch(()=>null)),e=yield e,t(),e||{}),_=D({loading:G,notify:h,useTitle:L,alert:S,access:s==null?void 0:s.access}),n=s?([e,t]=C(()=>new K(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:i="/"}=s||{},{provider:a,onReady:p}=T({mode:k.Runtime,service:c,materialPath:i,adapter:d(d({},_),n.adapter),dependencies:{Vue:()=>w(()=>import("./vue-BaPf1eHv.js").then(m=>m.aA),[],import.meta.url),VueRouter:()=>w(()=>import("./vue-router-B2eGcVGj.js"),__vite__mapDeps([0,1]),import.meta.url)}}),v=B(),u=U(),l=j();return p(()=>f(null,null,function*(){const m=yield z(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(),R=>{N(r,v,R)}))})),(m,r)=>u.value?(b(),Q(Y(u.value),{key:0})):H("",!0)})}});export{pe as default};
@@ -1 +1 @@
1
- var O=Object.defineProperty;var S=Object.getOwnPropertySymbols;var m=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;var g=(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)&&g(t,s,a[s]);if(S)for(var s of S(a))u.call(a,s)&&g(t,s,a[s]);return t};var l=(t,a,s)=>g(t,typeof a!="symbol"?a+"":a,s);var T=(t,a,s)=>new Promise((o,i)=>{var e=r=>{try{n(s.next(r))}catch(_){i(_)}},c=r=>{try{n(s.throw(r))}catch(_){i(_)}},n=r=>r.done?o(r.value):Promise.resolve(r.value).then(e,c);n((s=s.apply(t,a)).next())});import{aA as d}from"./vue-BaPf1eHv.js";import{W as A,R as I,b as f,c as V,g as b,X as h,e as P,F as R,f as y,n as D,a as M,A as L,h as N,Z as H,S as K,E as k,i as B,j as x,k as w,l as F,m as G,p as v,r as W,H as Y,x as J,s as U,t as C,u as j,v as X,w as $,C as z,D as q,I as Q,J as Z,L as aa,M as sa,$ as ea,O as ta,P as ra,T as ia,U as na,V as oa,_ as _a,a0 as la,a1 as Ea,a2 as ca,a3 as ga,a4 as Sa,a5 as Ta,a6 as pa,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 ba,ag as ha,ah as Pa,ai as Ra,aj as ya,ak as Da,al as Ma,am as La,an as Na,ao as Ha,ap as Ka,aq as ka,ar as Ba,as as xa,at as wa,au as Fa,av as Ga,aw as va,o as Wa,ax as Ya,ay as Ja,az as Ua,aA as Ca,aB as ja,aC as Xa,aD as $a,aE as za}from"./Editor-C_o8eXiI-DVr_5E5x.js";import{E as qa,a as Qa,b as Za}from"./element-plus-Bgelixwu.js";import"./dayjs-CxR8wwn9.js";const as=Object.freeze(Object.defineProperty({__proto__:null,API_METHOD_TYPES:A,ActionMenu:I,Assets:f,Binder:V,Box:b,CodeIncrementalUpdater:h,DEVTOOLS_DEP:P,Designer:R,EVENT_MODIFIERS:y,Editor:D,Engine:M,EventBinder:L,GET_TOKENS_LINK:N,HOT_KEYS_DEP:H,Icon:K,Item:k,KEYBOARD_EVENT_LIST:B,MAX_TOKENS:x,MOBILE_SIZE:w,MOUSE_EVENT_LIST:F,NAME_REGEX:G,NPM_REGISTRY_URL:v,OpenApi:W,PAD_SIZE:Y,Panel:J,REPORT_API:U,RegionType:C,RegionWrapper:j,Renderer:X,SAVE_BLOCK_FILE_FINISH:$,SESSION_ID_KEY:z,STATE_KEY:q,SetterView:Q,SetterWrapper:Z,Simulator:aa,Skeleton:sa,SkeletonWrapper:ea,SlotsPicker:ta,State:ra,TOOL_CONFIGS:ia,Tabs:na,ToolRegistry:oa,VERSION_REGEX:_a,VTJ_DESIGNER_VERSION:la,VUE_DEVTOOLS_FRAME_STATE_KEY:Ea,VUE_DEVTOOLS_OVERLAY_PATH:ca,VUE_DEVTOOLS_PATH:ga,VariableBinder:Sa,Viewer:Ta,Viewport:pa,WidgetGroup:Oa,WidgetWrapper:ma,alert:ua,builtInDeps:da,builtInMaterials:Aa,builtInSetters:Ia,builtInWidgets:fa,codeIncrementalUpdater:Va,confirm:ba,createSlotsPicker:ha,defaultSetter:Pa,depsManager:Ra,engineKey:ya,expressionValidate:Da,getClassProperties:Ma,loading:La,message:Na,normalizedStyle:Ha,notify:Ka,proxyContext:ka,readJsonFile:Ba,regions:xa,setterManager:wa,setters:Fa,upgradeVersion:Ga,useEngine:va,widgetManager:Wa,widgets:Ya},Symbol.toStringTag,{value:"Module"}));class ns{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),Ja),o={Vue:d,__VTJ_PRO__:s};for(const[_,p]of Object.entries(o))window[_]=p;const{extension:i,__BASE_PATH__:e="/"}=a||{},{urls:c=[],library:n,params:r=[]}=i||{};n&&(this.urls=c,this.library=n,this.params=r,this.__BASE_PATH__=e)}load(){return T(this,null,function*(){let a={};if(this.library){const s=this.__BASE_PATH__,o=this.urls.filter(e=>Ca(e)).map(e=>`${s}${e}`),i=this.urls.filter(e=>ja(e)).map(e=>`${s}${e}`);if(Xa(o),i.length){const e=yield $a(i,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 za(this.config,a)}}function os(){return Za.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 qa.alert(t,a)}export{ns as E,ls as a,os as l,_s as n};
1
+ var O=Object.defineProperty;var S=Object.getOwnPropertySymbols;var m=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;var g=(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)&&g(t,s,a[s]);if(S)for(var s of S(a))u.call(a,s)&&g(t,s,a[s]);return t};var l=(t,a,s)=>g(t,typeof a!="symbol"?a+"":a,s);var T=(t,a,s)=>new Promise((o,i)=>{var e=r=>{try{n(s.next(r))}catch(_){i(_)}},c=r=>{try{n(s.throw(r))}catch(_){i(_)}},n=r=>r.done?o(r.value):Promise.resolve(r.value).then(e,c);n((s=s.apply(t,a)).next())});import{aA as d}from"./vue-BaPf1eHv.js";import{W as A,R as I,b as f,c as V,g as b,X as h,e as P,F as R,f as y,n as D,a as M,A as L,h as N,Z as H,S as K,E as k,i as B,j as x,k as w,l as F,m as G,p as v,r as W,H as Y,x as J,s as U,t as C,u as j,v as X,w as $,C as z,D as q,I as Q,J as Z,L as aa,M as sa,$ as ea,O as ta,P as ra,T as ia,U as na,V as oa,_ as _a,a0 as la,a1 as Ea,a2 as ca,a3 as ga,a4 as Sa,a5 as Ta,a6 as pa,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 ba,ag as ha,ah as Pa,ai as Ra,aj as ya,ak as Da,al as Ma,am as La,an as Na,ao as Ha,ap as Ka,aq as ka,ar as Ba,as as xa,at as wa,au as Fa,av as Ga,aw as va,o as Wa,ax as Ya,ay as Ja,az as Ua,aA as Ca,aB as ja,aC as Xa,aD as $a,aE as za}from"./Editor-C2X3NB11-D8gzOv-P.js";import{E as qa,a as Qa,b as Za}from"./element-plus-Bgelixwu.js";import"./dayjs-CxR8wwn9.js";const as=Object.freeze(Object.defineProperty({__proto__:null,API_METHOD_TYPES:A,ActionMenu:I,Assets:f,Binder:V,Box:b,CodeIncrementalUpdater:h,DEVTOOLS_DEP:P,Designer:R,EVENT_MODIFIERS:y,Editor:D,Engine:M,EventBinder:L,GET_TOKENS_LINK:N,HOT_KEYS_DEP:H,Icon:K,Item:k,KEYBOARD_EVENT_LIST:B,MAX_TOKENS:x,MOBILE_SIZE:w,MOUSE_EVENT_LIST:F,NAME_REGEX:G,NPM_REGISTRY_URL:v,OpenApi:W,PAD_SIZE:Y,Panel:J,REPORT_API:U,RegionType:C,RegionWrapper:j,Renderer:X,SAVE_BLOCK_FILE_FINISH:$,SESSION_ID_KEY:z,STATE_KEY:q,SetterView:Q,SetterWrapper:Z,Simulator:aa,Skeleton:sa,SkeletonWrapper:ea,SlotsPicker:ta,State:ra,TOOL_CONFIGS:ia,Tabs:na,ToolRegistry:oa,VERSION_REGEX:_a,VTJ_DESIGNER_VERSION:la,VUE_DEVTOOLS_FRAME_STATE_KEY:Ea,VUE_DEVTOOLS_OVERLAY_PATH:ca,VUE_DEVTOOLS_PATH:ga,VariableBinder:Sa,Viewer:Ta,Viewport:pa,WidgetGroup:Oa,WidgetWrapper:ma,alert:ua,builtInDeps:da,builtInMaterials:Aa,builtInSetters:Ia,builtInWidgets:fa,codeIncrementalUpdater:Va,confirm:ba,createSlotsPicker:ha,defaultSetter:Pa,depsManager:Ra,engineKey:ya,expressionValidate:Da,getClassProperties:Ma,loading:La,message:Na,normalizedStyle:Ha,notify:Ka,proxyContext:ka,readJsonFile:Ba,regions:xa,setterManager:wa,setters:Fa,upgradeVersion:Ga,useEngine:va,widgetManager:Wa,widgets:Ya},Symbol.toStringTag,{value:"Module"}));class ns{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),Ja),o={Vue:d,__VTJ_PRO__:s};for(const[_,p]of Object.entries(o))window[_]=p;const{extension:i,__BASE_PATH__:e="/"}=a||{},{urls:c=[],library:n,params:r=[]}=i||{};n&&(this.urls=c,this.library=n,this.params=r,this.__BASE_PATH__=e)}load(){return T(this,null,function*(){let a={};if(this.library){const s=this.__BASE_PATH__,o=this.urls.filter(e=>Ca(e)).map(e=>`${s}${e}`),i=this.urls.filter(e=>ja(e)).map(e=>`${s}${e}`);if(Xa(o),i.length){const e=yield $a(i,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 za(this.config,a)}}function os(){return Za.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 qa.alert(t,a)}export{ns 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__ = '1780566310356';
14
+ var __BUILD_TIME__ = '1780801074512';
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
- <!--{{1780566310356}}-->
30
+ <!--{{1780801074512}}-->
31
31
 
32
- <script type="module" crossorigin src="./assets/index-CXncVhyF.js"></script>
32
+ <script type="module" crossorigin src="./assets/index-XrhjOiHD.js"></script>
33
33
  <link rel="modulepreload" crossorigin href="./assets/vue-BaPf1eHv.js">
34
34
  <link rel="modulepreload" crossorigin href="./assets/@vueuse-w7qmHU3H.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.17.1
49
+ * @version 0.17.3
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=(t,e,r)=>e in t?ev(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,fe=(t,e,r)=>tv(t,typeof e!="symbol"?e+"":e,r);(function(){if(typeof window>"u"||typeof EventTarget>"u")return;const t=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(e,r,n){typeof n!="boolean"&&(n=n||{},n.passive=!1),t.call(this,e,r,n)}})();function Mo(t,e){return function(){return t.apply(e,arguments)}}const{toString:rv}=Object.prototype,{getPrototypeOf:Bn}=Object,{iterator:fr,toStringTag:Fo}=Symbol,hr=(t=>e=>{const r=rv.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),_e=t=>(t=t.toLowerCase(),e=>hr(e)===t),pr=t=>e=>typeof e===t,{isArray:lt}=Array,st=pr("undefined");function xt(t){return t!==null&&!st(t)&&t.constructor!==null&&!st(t.constructor)&&ue(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Lo=_e("ArrayBuffer");function nv(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Lo(t.buffer),e}const iv=pr("string"),ue=pr("function"),Uo=pr("number"),Ot=t=>t!==null&&typeof t=="object",sv=t=>t===!0||t===!1,Jt=t=>{if(hr(t)!=="object")return!1;const e=Bn(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Fo in t)&&!(fr in t)},ov=t=>{if(!Ot(t)||xt(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch(e){return!1}},av=_e("Date"),uv=_e("File"),cv=t=>!!(t&&typeof t.uri<"u"),lv=t=>t&&typeof t.getParts<"u",fv=_e("Blob"),hv=_e("FileList"),pv=t=>Ot(t)&&ue(t.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=t=>{let e;return t&&(Ji&&t instanceof Ji||ue(t.append)&&((e=hr(t))==="formdata"||e==="object"&&ue(t.toString)&&t.toString()==="[object FormData]"))},vv=_e("URLSearchParams"),[mv,yv,bv,_v]=["ReadableStream","Request","Response","Headers"].map(_e),wv=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function $t(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,i;if(typeof t!="object"&&(t=[t]),lt(t))for(n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else{if(xt(t))return;const s=r?Object.getOwnPropertyNames(t):Object.keys(t),o=s.length;let u;for(n=0;n<o;n++)u=s[n],e.call(null,t[u],u,t)}}function Ho(t,e){if(xt(t))return null;e=e.toLowerCase();const r=Object.keys(t);let n=r.length,i;for(;n-- >0;)if(i=r[n],e===i.toLowerCase())return i;return null}const ke=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Vo=t=>!st(t)&&t!==ke;function an(){const{caseless:t,skipUndefined:e}=Vo(this)&&this||{},r={},n=(i,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;const o=t&&Ho(r,s)||s;Jt(r[o])&&Jt(i)?r[o]=an(r[o],i):Jt(i)?r[o]=an({},i):lt(i)?r[o]=i.slice():(!e||!st(i))&&(r[o]=i)};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&$t(arguments[i],n);return r}const Ev=(t,e,r,{allOwnKeys:n}={})=>($t(e,(i,s)=>{r&&ue(i)?Object.defineProperty(t,s,{value:Mo(i,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,s,{value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),t),Sv=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Tv=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},Rv=(t,e,r,n)=>{let i,s,o;const u={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),s=i.length;s-- >0;)o=i[s],(!n||n(o,t,e))&&!u[o]&&(e[o]=t[o],u[o]=!0);t=r!==!1&&Bn(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},Av=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},xv=t=>{if(!t)return null;if(lt(t))return t;let e=t.length;if(!Uo(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},Ov=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Bn(Uint8Array)),$v=(t,e)=>{const r=(t&&t[fr]).call(t);let n;for(;(n=r.next())&&!n.done;){const i=n.value;e.call(t,i[0],i[1])}},Dv=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},Cv=_e("HTMLFormElement"),Bv=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,r,n){return r.toUpperCase()+n}),Gi=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),Pv=_e("RegExp"),ko=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};$t(r,(i,s)=>{let o;(o=e(i,s,t))!==!1&&(n[s]=o||i)}),Object.defineProperties(t,n)},jv=t=>{ko(t,(e,r)=>{if(ue(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=t[r];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 '"+r+"'")})}})},Nv=(t,e)=>{const r={},n=i=>{i.forEach(s=>{r[s]=!0})};return lt(t)?n(t):n(String(t).split(e)),r},Iv=()=>{},Mv=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function Fv(t){return!!(t&&ue(t.append)&&t[Fo]==="FormData"&&t[fr])}const Lv=t=>{const e=new Array(10),r=(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=r(o,i+1);!st(l)&&(s[u]=l)}),e[i]=void 0,s}}return n};return r(t,0)},Uv=_e("AsyncFunction"),Hv=t=>t&&(Ot(t)||ue(t))&&ue(t.then)&&ue(t.catch),qo=((t,e)=>t?setImmediate:e?((r,n)=>(ke.addEventListener("message",({source:i,data:s})=>{i===ke&&s===r&&n.length&&n.shift()()},!1),i=>{n.push(i),ke.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",ue(ke.postMessage)),Vv=typeof queueMicrotask<"u"?queueMicrotask.bind(ke):typeof process<"u"&&process.nextTick||qo,kv=t=>t!=null&&ue(t[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,r,n,i,s,o){const u=new zo(e.message,r||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,r,n,i,s){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),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(t){return R.isPlainObject(t)||R.isArray(t)}function Wo(t){return R.endsWith(t,"[]")?t.slice(0,-2):t}function Nr(t,e,r){return t?t.concat(e).map(function(n,i){return n=Wo(n),!r&&i?"["+n+"]":n}).join(r?".":""):e}function zv(t){return R.isArray(t)&&!t.some(un)}const Wv=R.toFlatObject(R,{},null,function(t){return/^is[A-Z]/.test(t)});function dr(t,e,r){if(!R.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=R.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,d){return!R.isUndefined(d[p])});const n=r.metaTokens,i=r.visitor||a,s=r.dots,o=r.indexes,u=(r.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(t))throw new TypeError("data must be an object");return h(t),e}function Yi(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Pn(t,e){this._pairs=[],t&&dr(t,this,e)}const Ko=Pn.prototype;Ko.append=function(t,e){this._pairs.push([t,e])};Ko.toString=function(t){const e=t?function(r){return t.call(this,r,Yi)}:Yi;return this._pairs.map(function(r){return e(r[0])+"="+e(r[1])},"").join("&")};function Kv(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Jo(t,e,r){if(!e)return t;const n=r&&r.encode||Kv,i=R.isFunction(r)?{serialize:r}:r,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=t.indexOf("#");u!==-1&&(t=t.slice(0,u)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class Zi{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,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(r){r!==null&&e(r)})}}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(t,e){return dr(t,new ie.classes.URLSearchParams,V({visitor:function(r,n,i,s){return ie.isNode&&R.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function nm(t){return R.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function im(t){const e={},r=Object.keys(t);let n;const i=r.length;let s;for(n=0;n<i;n++)s=r[n],e[s]=t[s];return e}function Go(t){function e(r,n,i,s){let o=r[s++];if(o==="__proto__")return!0;const u=Number.isFinite(+o),l=s>=r.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(r,n,i[o],s)&&R.isArray(i[o])&&(i[o]=im(i[o])),!u)}if(R.isFormData(t)&&R.isFunction(t.entries)){const r={};return R.forEachEntry(t,(n,i)=>{e(nm(n),i,r,0)}),r}return null}function sm(t,e,r){if(R.isString(t))try{return(e||JSON.parse)(t),R.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const Dt={transitional:jn,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const r=e.getContentType()||"",n=r.indexOf("application/json")>-1,i=R.isObject(t);if(i&&R.isHTMLForm(t)&&(t=new FormData(t)),R.isFormData(t))return n?JSON.stringify(Go(t)):t;if(R.isArrayBuffer(t)||R.isBuffer(t)||R.isStream(t)||R.isFile(t)||R.isBlob(t)||R.isReadableStream(t))return t;if(R.isArrayBufferView(t))return t.buffer;if(R.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return rm(t,this.formSerializer).toString();if((s=R.isFileList(t))||r.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return dr(s?{"files[]":t}:t,o&&new o,this.formSerializer)}}return i||n?(e.setContentType("application/json",!1),sm(t)):t}],transformResponse:[function(t){const e=this.transitional||Dt.transitional,r=e&&e.forcedJSONParsing,n=this.responseType==="json";if(R.isResponse(t)||R.isReadableStream(t))return t;if(t&&R.isString(t)&&(r&&!this.responseType||n)){const i=!(e&&e.silentJSONParsing)&&n;try{return JSON.parse(t,this.parseReviver)}catch(s){if(i)throw s.name==="SyntaxError"?W.from(s,W.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ie.classes.FormData,Blob:ie.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};R.forEach(["delete","get","head","post","put","patch"],t=>{Dt.headers[t]={}});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=t=>{const e={};let r,n,i;return t&&t.split(`
52
52
  `).forEach(function(s){i=s.indexOf(":"),r=s.substring(0,i).trim().toLowerCase(),n=s.substring(i+1).trim(),!(!r||e[r]&&om[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e},Qi=Symbol("internals");function gt(t){return t&&String(t).trim().toLowerCase()}function Gt(t){return t===!1||t==null?t:R.isArray(t)?t.map(Gt):String(t)}function um(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}const cm=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Ir(t,e,r,n,i){if(R.isFunction(n))return n.call(this,e,r);if(i&&(e=r),!!R.isString(e)){if(R.isString(n))return e.indexOf(n)!==-1;if(R.isRegExp(n))return n.test(e)}}function lm(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function fm(t,e){const r=R.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(i,s,o){return this[n].call(this,e,i,s,o)},configurable:!0})})}let ce=class{constructor(t){t&&this.set(t)}set(t,e,r){const n=this;function i(o,u,l){const a=gt(u);if(!a)throw new Error("header name must be a non-empty string");const c=R.findKey(n,a);(!c||n[c]===void 0||l===!0||l===void 0&&n[c]!==!1)&&(n[c||u]=Gt(o))}const s=(o,u)=>R.forEach(o,(l,a)=>i(l,a,u));if(R.isPlainObject(t)||t instanceof this.constructor)s(t,e);else if(R.isString(t)&&(t=t.trim())&&!cm(t))s(am(t),e);else if(R.isObject(t)&&R.isIterable(t)){let o={},u,l;for(const a of t){if(!R.isArray(a))throw TypeError("Object iterator must return a key-value pair");o[l=a[0]]=(u=o[l])?R.isArray(u)?[...u,a[1]]:[u,a[1]]:a[1]}s(o,e)}else t!=null&&i(e,t,r);return this}get(t,e){if(t=gt(t),t){const r=R.findKey(this,t);if(r){const n=this[r];if(!e)return n;if(e===!0)return um(n);if(R.isFunction(e))return e.call(this,n,r);if(R.isRegExp(e))return e.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=gt(t),t){const r=R.findKey(this,t);return!!(r&&this[r]!==void 0&&(!e||Ir(this,this[r],r,e)))}return!1}delete(t,e){const r=this;let n=!1;function i(s){if(s=gt(s),s){const o=R.findKey(r,s);o&&(!e||Ir(r,r[o],o,e))&&(delete r[o],n=!0)}}return R.isArray(t)?t.forEach(i):i(t),n}clear(t){const e=Object.keys(this);let r=e.length,n=!1;for(;r--;){const i=e[r];(!t||Ir(this,this[i],i,t,!0))&&(delete this[i],n=!0)}return n}normalize(t){const e=this,r={};return R.forEach(this,(n,i)=>{const s=R.findKey(r,i);if(s){e[s]=Gt(n),delete e[i];return}const o=t?lm(i):String(i).trim();o!==i&&delete e[i],e[o]=Gt(n),r[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return R.forEach(this,(r,n)=>{r!=null&&r!==!1&&(e[n]=t&&R.isArray(r)?r.join(", "):r)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join(`
@@ -57,9 +57,9 @@ 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.17.1
60
+ * @version 0.17.3
61
61
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
62
- */const Vr="0.17.1";var X=(t=>(t.Runtime="Runtime",t.Design="Design",t.Raw="Raw",t.VNode="VNode",t))(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(t,e){return t.map(r=>Tt(r)||r.startsWith("/")?r:`${e}${r}`)}function vr(t){return/\.css$/.test(t)}function mr(t){return/\.js$/.test(t)}function cy(t){return/\.json$/.test(t)}function ly(t,e=!1){return e&&t.endsWith(".prod.js")?t.replace(".prod.js",".js"):t}function fy(t,e,r=!1){const n=t.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,r)),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(t,e){var s;const{name:r,parent:n,alias:i}=t;return n?(s=e[n])==null?void 0:s[i||r]:e[i||r]}function py(t=[]){const e=t.filter(n=>vr(n)),r=t.filter(n=>mr(n));return{css:e,js:r}}function dy(t,e){const r=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=r(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=t.replace(/\/\*(?!\s*!)[\s\S]*?\*\//g,"").replace(/^\s+|\s+$/gm,"").replace(/\n\s*\n/g,`
62
+ */const Vr="0.17.3";var X=(t=>(t.Runtime="Runtime",t.Design="Design",t.Raw="Raw",t.VNode="VNode",t))(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(t,e){return t.map(r=>Tt(r)||r.startsWith("/")?r:`${e}${r}`)}function vr(t){return/\.css$/.test(t)}function mr(t){return/\.js$/.test(t)}function cy(t){return/\.json$/.test(t)}function ly(t,e=!1){return e&&t.endsWith(".prod.js")?t.replace(".prod.js",".js"):t}function fy(t,e,r=!1){const n=t.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,r)),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(t,e){var s;const{name:r,parent:n,alias:i}=t;return n?(s=e[n])==null?void 0:s[i||r]:e[i||r]}function py(t=[]){const e=t.filter(n=>vr(n)),r=t.filter(n=>mr(n));return{css:e,js:r}}function dy(t,e){const r=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=r(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=t.replace(/\/\*(?!\s*!)[\s\S]*?\*\//g,"").replace(/^\s+|\s+$/gm,"").replace(/\n\s*\n/g,`
63
63
  `),c=r(a),f=u(c);return l(f)}catch(a){return console.error("CSS scoping failed:",a),console.error("Input CSS:",t),t.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(t,e,r){let n;typeof t<"u"?n=t.innerWidth||t.document.documentElement.clientWidth:(console.warn("无法获取屏幕宽度,使用默认值375"),n=375);const i=gy;return e*n/i}function my(t,e){let r=!1,n=!1,i=!1,s="";for(let o=0;o<e.length;o++){const u=e[o];if(u==="'"&&!n&&!i?r=!r:u==='"'&&!r&&!i?n=!n:e.substr(o,4).toLowerCase()==="url("&&!r&&!n?i=!0:u===")"&&i&&(i=!1),!r&&!n&&!i){const l=e.substr(o).match(/^(-?\d+(?:\.\d+)?)\s*rpx/);if(l){const a=l[1],c=parseFloat(a),f=`${vy(t,c).toFixed(6).replace(/\.?0+$/,"")}px`;s+=f,o+=l[0].length-1;continue}}s+=u}return s}function fa(t){return Me(t)?t:JSON.stringify(t)}function yr(t,e,r,n=!1){const i=t.CSSStyleSheet,s=n?`data-v-${e}`:e,o=t.__uniConfig?my(t,r):r,u=n?dy(o,s):o,l=!!t.__uniConfig;if(i.prototype.replaceSync&&!l){const a=new i;a.id=e,a.replaceSync(u);const c=t.document,f=c.adoptedStyleSheets,h=Array.from(f).filter(p=>p.id!==e);c.adoptedStyleSheets=[...h,a]}else{const a=t.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(t,e){return U(this,null,function*(){const r=yield window.fetch(e).then(n=>n.text()).catch(()=>"");r&&yr(window,t,r)})}function ha(t,e=window){const r=e.document,n=e.document.head;for(const i of t)if(!r.getElementById(i)){const s=r.createElement("link");s.rel="stylesheet",s.id=i,s.href=i,n.appendChild(s)}}function pa(n,i){return U(this,arguments,function*(t,e,r=window){const s=r.document,o=r.document.head;let u=r[e];return u?u.default||u:new Promise((l,a)=>{for(const c of t){const f=s.createElement("script");f.src=c,f.onload=()=>{u=r[e],u?l(u.default||u):a(null)},f.onerror=h=>{a(h)},o.appendChild(f)}})})}function by(t){return ze(t)&&Object.getOwnPropertyNames(t.prototype||{}).length===0||ze(t==null?void 0:t.install)}function _y(t){return uy.includes(t)}function wy(t){return la.includes(t)}function Rt(t=window){const e=window==null?void 0:window.Mock;if(e)return e;const r=t==null?void 0:t.Mock;if(r&&window)return window.Mock=r,r}function Ey(t){return/^\([\s\S]*\)/.test(t.trim())}function Sy(t){return/\w+\([\s\S]*\)$/.test(t.trim())}function Ty(t){return t.includes("=")}function Ry(t){if(typeof window>"u")return;const e=window[0]||window;if(e.__simulator__)try{const r=e.__simulator__.engine.provider.errorHandler;r&&r(t)}catch(r){}}function At(t,e,r=!1,n=!1,i=!1){var s;try{const o=['"use strict";',"var __self = arguments[0];"];o.push("return ");let u=(t.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}
@@ -71,10 +71,10 @@ ${u}
71
71
  ${t.value.value} = v?.target.value;
72
72
  }`:"(v) => {}"};return{[me(t.arg)?e.__parseExpression(t.arg):t.arg||"value"]:e.__parseExpression(t.value),onInput:e.__parseFunction(r)}}function a0(t,e,r){var u;const n={type:"JSFunction",value:(u=e.value)!=null&&u.value?`(v) => {
73
73
  ${e.value.value} = v;
74
- }`:"(v) => {}"},i=r.__parseFunction(n),s=ya(me(e.modifiers)?r.__parseExpression(e.modifiers):e.modifiers),o=me(e.arg)?r.__parseExpression(e.arg):e.arg||"modelValue";return{[o]:r.__parseExpression(e.value),[`onUpdate:${o}`]:s.length&&i?t.withModifiers(i,s):i}}function u0(t,e,r,n,i){if(!e)return null;if(Me(e))return{default:()=>e};if(me(e))return{default:()=>fa(r.__parseExpression(e))};if(Array.isArray(e)&&e.length>0){const s=c0(e),o=(u,l)=>!u||!i?{}:i!=null&&i.id&&Object.keys(u).length?l?{[l]:u}:{[`scope_${i.id}`]:u}:l?{[l]:Object.create(null)}:{};return Object.entries(s).reduce((u,[l,{nodes:a,params:c,scope:f}])=>(u[l]=h=>{const p=c.length?Mg(h!=null?h:{},c):o(h,f);return a.map((d,g)=>ot(d,r.__clone(p),t,n,a,!1,g))},u),{})}return null}function c0(t){const e={};for(const r of t){const n=l0(r.slot),i=n.name;e[i]?(e[i].nodes.push(r),e[i].params=e[i].params.concat(n.params),e[i].scope=n.scope||""):e[i]={nodes:[r],params:n.params,scope:n.scope||""}}return e}function l0(t="default"){return Me(t)?{name:t,params:[],scope:""}:V({params:[],scope:""},t)}function f0(t,e,r){const{value:n,iterator:i}=t,{item:s="item",index:o="index"}=i||{};let u=r.__parseExpression(n)||[];return Number.isInteger(u)&&(u=new Array(u).fill(!0).map((l,a)=>a+1)),Array.isArray(u)?u.map((l,a)=>e(r.__clone({[s]:l,[o]:a}),a)):(console.warn("[vForRender]:",`${n==null?void 0:n.value} is not a Arrary`),[])}const zr=ys({name:"VtjPageContainer",setup(){return U(this,null,function*(){const t=E0(),e=Ba(),r=e.meta.__vtj__||e.params.id,n=r?t.getPage(r):t.getHomepage(),i=n?yield t.getRenderComponent(n.id):null,s=Da(Symbol());if(n){Object.assign(e.meta,n.meta||{},{cache:n.cache});const{useTitle:o}=t==null?void 0:t.adapter;if(o){const u=e.meta.title||n.title||"VTJ.PRO";o(u)}}return{provider:t,component:i,file:n,query:e.query,meta:e.meta,sid:s,route:e}})},render(){const{component:t,query:e,sid:r}=this;return t?Kr(t,re(V({},e),{key:r})):Kr("div",{style:{padding:"10px"}},"找不到组件,组件不存在或未发布!")},activated(){this.meta.cache===!1&&(this.sid=Symbol())}}),h0=ys({name:"VtjStartupContainer",render(){return Kr("div","page not found!")}});function yn(t,e,r=[]){const n=[];for(const i of r){const{id:s,title:o,icon:u,children:l,hidden:a,layout:c}=i;if(c){const f=yn(t,e,l||[]);n.push(...f)}else{const f={id:s,title:o,icon:u,hidden:a,url:`${t}/${e}/${s}`,children:l&&l.length?yn(t,e,l):void 0};n.push(f)}}return n}function Wr(t,e){const{id:r,title:n,meta:i}=t,{name:s="page",prefix:o="",component:u,routeMeta:l}=e;return{name:r,path:`${o}${s}/${r}`,component:u,meta:re(V(V({title:n},l),i),{__vtj__:r})}}function bn(t){const{name:e="page",prefix:r="",pages:n=[],component:i,loader:s,routeMeta:o,homepage:u}=t,l=[];for(const a of n){const{id:c,title:f,dir:h,layout:p,children:d,meta:g}=a;if(h){const v=bn({name:e,prefix:r,component:i,routeMeta:o,homepage:u,loader:s,pages:d||[]});l.push(...v)}else if(p){const v=bn({name:e,prefix:r,component:i,routeMeta:o,homepage:u,loader:s,pages:d||[]}),E={name:`layout_${c}`,path:r,component:()=>s(c),meta:re(V(V({title:f},o),g),{__vtj__:c}),children:v};l.push(E),l.push(Wr(a,t))}else if(l.push(Wr(a,t)),u===c){const v=Wr(a,t);v.path="",v.name=`home_${c}`,l.push(v)}}return l}function p0(t={},e){const{css:r,store:n,enhance:i}=t,{window:s,app:o,library:u={},adapter:l,mode:a}=e,{Pinia:c}=u;o.config.globalProperties.$libs=u,yr(s,"global-css",r||""),c&&n&&d0(n,o,c),v0(o,l,t),!l.access&&t.access&&g0(t.access,o,a,l),m0(o,t),i&&y0(i,o,u)}function d0(t,e,r){const n=r.createPinia();if(e.use(n),de(t)&&t.value){const i=pe(t,{},!1,!1,!0),s=r.defineStore("$store",i(e)||{});e.config.globalProperties.$store=s()}}function g0(t,e,r,n){if(de(t)&&t.value){const i=pe(t,{},!1,!1,!0),{alert:s,request:o}=n,u=new da(V({alert:s,storagePrefix:"__VTJ_APP_"},i(e))),l=e.config.globalProperties.$router;u.connect({mode:r,router:l,request:o}),e.use(u)}}function v0(t,e,r){if(!e.request)return;const{axios:n,request:i,response:s}=r;if(n&&de(n)&&n.value){const o=pe(n,{},!1,!1,!0);e.request.setConfig(o(t))}if(i&&de(i)&&i.value){const o=pe(i,{},!1,!1,!0),u=e.request;u.__unReq&&u.__unReq(),u.__unReq=e.request.useRequest(l=>o(l,t))}if(s&&de(s)&&s.value){const o=pe(s,{},!1,!1,!0),u=e.request;u.__unRes&&u.__unRes(),u.__unRes=e.request.useResponse(l=>o(l,t))}}function m0(t,e){const{beforeEach:r,afterEach:n}=e,i=t.config.globalProperties.$router;if(r&&de(r)&&r.value){const s=pe(r,{},!1,!1,!0);i&&i.beforeEach((o,u,l)=>s(o,u,l,t))}if(n&&de(n)&&n.value){const s=pe(n,{},!1,!1,!0);i&&i.afterEach((o,u,l)=>s(o,u,l,t))}}function y0(t,e,r={}){de(t)&&t.value&&pe(t,{},!1,!1,!0)(e,r)}function b0(t,e,r){if(!t||!e||!r)return;const{VueI18n:n}=e;if(n){const{locale:i,fallbackLocale:s,messages:o=[]}=r,u={};for(let a of o){const c=Object.keys(a).filter(f=>f!=="key");for(const f of c)u[f]||(u[f]={}),u[f][a.key]=a[f]}const l=n.createI18n({legacy:!1,locale:i,fallbackLocale:s,messages:u});t.use(l)}}const ba=Symbol("Provider");class _0 extends Xg{constructor(r){super();k(this,"mode");k(this,"globals",{});k(this,"modules",{});k(this,"adapter",{request:fn,jsonp:ca});k(this,"apis",{});k(this,"dependencies",{});k(this,"materials",{});k(this,"library",{});k(this,"libraryLocales",{});k(this,"libraryLocaleMap",{});k(this,"service");k(this,"project",null);k(this,"components",{});k(this,"nodeEnv","development");k(this,"env",{});k(this,"router",null);k(this,"materialPath","./");k(this,"urlDslCaches",{});k(this,"errorHandler",null);this.options=r;const{service:n,mode:i=X.Raw,dependencies:s,materials:o,project:u={},adapter:l={},globals:a={},modules:c={},router:f=null,materialPath:h="./",nodeEnv:p="development"}=r;this.mode=i,this.modules=c,this.service=n,this.router=f,this.materialPath=h,this.nodeEnv=p,s&&(this.dependencies=s),o&&(this.materials=o),Object.assign(this.globals,a),Object.assign(this.adapter,l);const{access:d,request:g}=this.adapter;d&&d.connect({mode:i,router:f,request:g}),u&&i!==X.Design?this.load(u):this.project=u}createMock(r){return(...n)=>U(null,null,function*(){var s;let i={};if(r)try{i=yield r.apply(r,n)}catch(o){it.warn("模拟数据模版异常",o)}return(s=Rt())==null?void 0:s.mock(i)})}load(r){return U(this,null,function*(){const{vtjDir:n=".vtj"}=this.options,i=this.modules[`${n}/projects/${r.id}.json`]||this.modules[`/src/${n}/projects/${r.id}.json`];if(this.project=i?yield i():yield this.service.init(r),!this.project)throw new Error("project is null");const{apis:s=[],meta:o=[],env:u=[]}=this.project,l=window;l&&(l.CKEDITOR_VERSION=void 0),this.initEnv(u),this.mode===X.Raw?yield this.loadDependencies(l):yield this.loadAssets(l),this.initMock(l),this.apis=Cy(s,o,this.adapter),ga(l),By(s,l),r.platform!=="uniapp"&&this.initRouter(),this.triggerReady()})}initMock(r){const n=Rt(r);n&&n.setup({timeout:"50-500"})}loadDependencies(){return U(this,arguments,function*(r={}){const n=Object.entries(this.dependencies);for(const[i,s]of n)r[i]||(r[i]=this.library[i]=yield s())})}loadAssets(){return U(this,arguments,function*(r={}){const{dependencies:n=[]}=this.project,{dependencies:i,library:s,components:o,materialPath:u,nodeEnv:l,libraryLocales:a}=this,{libraryExports:c,libraryMap:f,materials:h,materialExports:p,materialMapLibrary:d,libraryLocaleMap:g}=fy(n,u,l==="development");Object.assign(this.libraryLocaleMap,g);for(const v of c){const E=i[v],m=r[v];if(m)s[v]=m;else if(E)r[v]=s[v]=yield E();else{const _=f[v]||[];for(const w of _)vr(w)&&(yield yy(w,Qt.append(w,{v:Vr}))),mr(w)&&(yield ps(Qt.append(w,{v:Vr})));s[v]=r[v]}const b=g[v];if(b){const _=i[b];a[b]=_?yield _():r[b]}}if(l==="development"){for(const E of h)yield ps(Qt.append(E,{v:Vr}));const v=this.materials||{};for(const E of p){const m=r[d[E]],b=(m==null?void 0:m.default)||m,_=Qg[E];if(_)b&&_.forEach(w=>{o[w]=b[w]});else{const w=v[E]?(yield v[E]()).default:r[E];w&&b&&(w.components||[]).forEach(y=>{o[y.name]=hy(y,b)})}}}})}initRouter(){const{router:r,project:n,options:i,adapter:s}=this;if(!r)return;const o=(n==null?void 0:n.platform)==="uniapp"?"pages":"page",{routeAppendTo:u,pageRouteName:l=o,routeMeta:a}=i,c=u?"":"/",f={path:`${c}${l}/:id`,name:Xt,component:zr},h=this.getHomepage(),p={path:c,name:kr,component:h?zr:s.startupComponent||h0,meta:a};if(r.hasRoute(Xt)&&r.removeRoute(Xt),r.hasRoute(kr)&&r.removeRoute(kr),i.enableStaticRoute){const d=(n==null?void 0:n.pages)||[];bn({name:l,prefix:c,pages:d,component:zr,loader:this.getRenderComponent.bind(this),homepage:h==null?void 0:h.id}).forEach(g=>{u?r.addRoute(u,g):r.addRoute(g)}),h||(u?r.addRoute(u,p):r.addRoute(p))}else u?(r.addRoute(u,f),r.addRoute(u,p)):(r.addRoute(f),r.addRoute(p))}setErrorHandler(r){r.config.errorHandler=On((n,i,s)=>{const o=i==null?void 0:i.$options.name,u=typeof n=="string"?n:(n==null?void 0:n.message)||(n==null?void 0:n.msg)||"未知错误",l=`[ ${o} ] ${u} ${s}`;["getComputedStyle","ResizeObserver"].some(a=>l.includes(a))||(console.error("[VTJ Error]:",{err:n,instance:i,info:s},n==null?void 0:n.stack),this.errorHandler&&this.errorHandler(n),this.adapter.notify&&this.adapter.notify(l,"组件渲染错误","error"))},300)}install(r){var u,l,a,c;const{libraryLocaleMap:n,libraryLocales:i}=this,{libraryOptions:s={}}=this.options,o=r.config.globalProperties.installed||{};for(const[f,h]of Object.entries(this.library))if(!o[f]&&by(h)){const p={locale:i[n[f]]},d=s[f]||{},g=V(V({},p),d);r.use(h,g),o[f]=!0}r.provide(ba,this),r.config.globalProperties.$provider=this,r.config.globalProperties.$request=(u=this.adapter)==null?void 0:u.request,this.options.install&&r.use(this.options.install),this.adapter.access&&r.use(this.adapter.access),((l=this.project)==null?void 0:l.platform)!=="uniapp"&&this.mode!==X.Design&&this.initGlobals(((a=this.project)==null?void 0:a.globals)||{},{app:r,window,adapter:this.adapter,library:this.library,mode:this.mode}),this.mode!==X.Design&&((c=this.project)!=null&&c.i18n)&&this.initI18n(r,this.library,this.project.i18n),this.options.enhance&&r.use(this.options.enhance,this),this.mode===X.Design&&this.setErrorHandler(r),r.config.globalProperties.installed=o}getFile(r){const{blocks:n=[]}=this.project||{};return this.getPage(r)||n.find(i=>i.id===r)||null}getPage(r){const{pages:n=[]}=this.project||{},i=(s,o=[])=>{for(const u of o){if(u.id===s)return u;if(u.children&&u.children.length){const l=i(s,u.children);if(l)return l}}};return i(r,n)||null}getFirstPage(){const{pages:r=[]}=this.project||{};if(!r.length)return null;const n=(i=[])=>{for(const s of i){if(s.type==="page"&&!s.dir&&!s.layout)return s;if(s.children&&s.children.length){const o=n(s.children);if(o)return o}}};return n(r)||null}getMenus(r="page",n=""){var i;return yn(n,r,((i=this.project)==null?void 0:i.pages)||[])}getHomepage(){const{homepage:r}=this.project||{};return r?this.getPage(r):this.getFirstPage()}getDsl(r){return U(this,null,function*(){const{vtjDir:n=".vtj"}=this.options,i=this.modules[`${n}/files/${r}.json`]||this.modules[`/src/${n}/files/${r}.json`];return i?yield i():this.service.getFile(r,this.project||void 0).catch(()=>null)})}getDslByUrl(r){return U(this,null,function*(){return this.urlDslCaches[r]||(this.adapter.request?this.urlDslCaches[r]=this.adapter.request.send({url:r,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(i=>i.data).catch(()=>null):null)})}createDslRenderer(r,n={}){const{library:i,components:s,mode:o,apis:u}=this,l=V({mode:o,Vue:i.Vue,components:s,libs:i,apis:u,window},n),a=vn({getDsl:c=>U(this,null,function*(){return(yield this.getDsl(c))||null}),getDslByUrl:c=>U(this,null,function*(){return(yield this.getDslByUrl(c))||null}),options:l});return gn(re(V({},l),{dsl:r,loader:a}))}getRenderComponent(r,n){return U(this,null,function*(){var o;const i=this.getFile(r);if(!i)return it.warn(`Can not find file: ${r}`),null;if(n&&n(i),this.mode===X.Raw){const{vtjRawDir:u=".vtj/vue"}=this.options,l=`${u}/${r}.vue`,a=this.modules[l]||this.modules[`/src/pages/${r}.vue`];return a?(o=yield a())==null?void 0:o.default:this.nodeEnv==="development"&&this.adapter.startupComponent||null}const s=yield this.getDsl(i.id);return s?this.createDslRenderer(s).renderer:(it.warn(`Can not find dsl: ${r}`),null)})}defineUrlSchemaComponent(r,n){return Hn(()=>U(this,null,function*(){const i=yield this.getDslByUrl(r);return i?(i.name=n||i.name,this.createDslRenderer(i).renderer):null}))}definePluginComponent(r){return Hn(()=>U(null,null,function*(){return yield va(r,window)}))}initGlobals(r,n){const i=Object.assign({adapter:this.adapter,window},n);p0(r,i)}initI18n(r,n,i){b0(r,n,i)}initEnv(r=[]){this.env=r.reduce((n,i)=>(n[i.name]=i[this.nodeEnv],n),{})}}function w0(t){const e=new _0(t);return{provider:e,onReady:r=>e.ready(r)}}function E0(t={}){const e=Ca(ba,null);if(!e)throw new Error("Can not find provider");if(e.nodeEnv==="development"){const{id:r,version:n}=t;r&&n&&U(null,null,function*(){const i=yield e.getDsl(r);(i==null?void 0:i.__VERSION__)!==n&&e.adapter.notify&&e.adapter.notify(`[ ${i==null?void 0:i.name} ] 组件源码版本与运行时版本不一致,请重新发布组件`,"版本不一致","warning")})}return e}function S0(t,e=""){return U(this,null,function*(){const{name:r,urls:n=[]}=t||{},i=n.map(u=>e+u),{css:s,js:o}=py(i);if(s.length&&ha(s),o.length)return yield pa(o,r).catch(()=>{})})}const _a={type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:t=>{var e;return((e=t.data)==null?void 0:e.code)===0}},T0=(t,e="/__vtj__/api/:type.json")=>(r,n,i)=>t.send({url:e,method:"post",params:{type:r},query:i,data:{type:r,data:n},settings:_a}),R0=(t,e="/__vtj__/api/uploader.json")=>(r,n)=>U(null,null,function*(){return yield t.send({url:e,method:"post",data:{files:r,projectId:n},settings:re(V({},_a),{type:"data"})}).then(i=>i&&i[0]?i[0]:null).catch(()=>null)});function A0(t){return Mn({settings:{type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:e=>{var r;return((r=e.data)==null?void 0:r.code)===0},showError:e=>{t&&t(e||"未知错误")}}})}class x0{constructor(e=fn){k(this,"api");k(this,"pluginCaches",{});k(this,"uploader");this.req=e,this.api=T0(e),this.uploader=R0(e)}getExtension(){return U(this,null,function*(){console.log("BaseService.getExtension")})}init(e){return U(this,null,function*(){return console.log("BaseService.init",e),{}})}saveProject(e,r){return U(this,null,function*(){return!!(yield this.api("saveProject",e,{type:r}).catch(()=>!1))})}saveMaterials(e,r){return U(this,null,function*(){return console.log("BaseService.saveMaterials",e,r),!1})}saveFile(e){return U(this,null,function*(){return console.log("BaseService.saveFile",e),!1})}getFile(e){return U(this,null,function*(){return console.log("BaseService.getFile",e),{}})}removeFile(e){return U(this,null,function*(){return console.log("BaseService.removeFile",e),!1})}saveHistory(e){return U(this,null,function*(){return console.log("BaseService.saveHistory",e),!1})}removeHistory(e){return U(this,null,function*(){return console.log("BaseService.removeHistory",e),!1})}getHistory(e){return U(this,null,function*(){return console.log("BaseService.getHistory",e),{}})}getHistoryItem(e,r){return U(this,null,function*(){return console.log("BaseService.getHistoryItem",e,r),{}})}saveHistoryItem(e,r){return U(this,null,function*(){return console.log("BaseService.saveHistoryItem",e,r),!1})}removeHistoryItem(e,r){return U(this,null,function*(){return console.log("BaseService.removeHistoryItem",e,r),!1})}publish(e){return U(this,null,function*(){return!!(yield this.api("publish",e).catch(()=>!1))})}publishFile(e,r){return U(this,null,function*(){return!!(yield this.api("publishFile",{project:e,file:r}).catch(()=>!1))})}genVueContent(e,r){return U(this,null,function*(){return yield this.api("genVueContent",{project:e,dsl:r}).catch(()=>"")})}parseVue(e,r){return U(this,null,function*(){return yield this.api("parseVue",V({project:e},r))})}createRawPage(e){return U(this,null,function*(){return yield this.api("createRawPage",e).catch(()=>"")})}removeRawPage(e){return U(this,null,function*(){return yield this.api("removeRawPage",e).catch(()=>"")})}uploadStaticFile(e,r){return U(this,null,function*(){return yield this.uploader(e,r).catch(()=>null)})}getStaticFiles(e){return U(this,null,function*(){return yield this.api("getStaticFiles",e).catch(()=>[])})}removeStaticFile(e,r){return U(this,null,function*(){return yield this.api("removeStaticFile",{name:e,projectId:r}).catch(()=>"")})}clearStaticFiles(e){return U(this,null,function*(){return yield this.api("clearStaticFiles",e).catch(()=>"")})}getPluginMaterial(e){return U(this,null,function*(){const{urls:r=[]}=e,n=r.filter(s=>cy(s))[0];return n?this.pluginCaches[n]||(this.pluginCaches[n]=fn.send({url:n,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(s=>s.data).catch(()=>null)):null})}genSource(e){return U(this,null,function*(){return console.log("BaseService.genSource",e),""})}}new sa({type:"local",expired:0,prefix:"__VTJ_"});class O0 extends x0{constructor(){super(...arguments);k(this,"getFileCaches",{})}getExtension(){return U(this,null,function*(){return yield this.api("getExtension",{}).catch(()=>{})})}init(r){return U(this,null,function*(){return(yield this.api("init",r).catch(()=>null))||{}})}saveProject(r,n){return U(this,null,function*(){return!!(yield this.api("saveProject",r,{type:n}).catch(()=>!1))})}saveMaterials(r,n){return U(this,null,function*(){return!!(yield this.api("saveMaterials",{project:r,materials:Ng(n)}).catch(()=>!1))})}saveFile(r){return U(this,null,function*(){return!!(yield this.api("saveFile",r).catch(()=>!1))})}getFile(r){return U(this,null,function*(){return this.getFileCaches[r]||(this.getFileCaches[r]=this.api("getFile",r).catch(()=>null)).finally(()=>{delete this.getFileCaches[r]})})}removeFile(r){return U(this,null,function*(){return!!(yield this.api("removeFile",r).catch(()=>!1))})}saveHistory(r){return U(this,null,function*(){return!!(yield this.api("saveHistory",r).catch(()=>!1))})}removeHistory(r){return U(this,null,function*(){return!!(yield this.api("removeHistory",r).catch(()=>!1))})}getHistory(r){return U(this,null,function*(){return(yield this.api("getHistory",r).catch(()=>null))||{}})}getHistoryItem(r,n){return U(this,null,function*(){return(yield this.api("getHistoryItem",{fId:r,id:n}).catch(()=>null))||{}})}saveHistoryItem(r,n){return U(this,null,function*(){return!!(yield this.api("saveHistoryItem",{fId:r,item:n}).catch(()=>!1))})}removeHistoryItem(r,n){return U(this,null,function*(){return!!(yield this.api("removeHistoryItem",{fId:r,ids:n}).catch(()=>!1))})}}/**!
74
+ }`:"(v) => {}"},i=r.__parseFunction(n),s=ya(me(e.modifiers)?r.__parseExpression(e.modifiers):e.modifiers),o=me(e.arg)?r.__parseExpression(e.arg):e.arg||"modelValue";return{[o]:r.__parseExpression(e.value),[`onUpdate:${o}`]:s.length&&i?t.withModifiers(i,s):i}}function u0(t,e,r,n,i){if(!e)return null;if(Me(e))return{default:()=>e};if(me(e))return{default:()=>fa(r.__parseExpression(e))};if(Array.isArray(e)&&e.length>0){const s=c0(e),o=(u,l)=>!u||!i?{}:i!=null&&i.id&&Object.keys(u).length?l?{[l]:u}:{[`scope_${i.id}`]:u}:l?{[l]:Object.create(null)}:{};return Object.entries(s).reduce((u,[l,{nodes:a,params:c,scope:f}])=>(u[l]=h=>{const p=c.length?Mg(h!=null?h:{},c):o(h,f);return a.map((d,g)=>ot(d,r.__clone(p),t,n,a,!1,g))},u),{})}return null}function c0(t){const e={};for(const r of t){const n=l0(r.slot),i=n.name;e[i]?(e[i].nodes.push(r),e[i].params=e[i].params.concat(n.params),e[i].scope=n.scope||""):e[i]={nodes:[r],params:n.params,scope:n.scope||""}}return e}function l0(t="default"){return Me(t)?{name:t,params:[],scope:""}:V({params:[],scope:""},t)}function f0(t,e,r){const{value:n,iterator:i}=t,{item:s="item",index:o="index"}=i||{};let u=r.__parseExpression(n)||[];return Number.isInteger(u)&&(u=new Array(u).fill(!0).map((l,a)=>a+1)),Array.isArray(u)?u.map((l,a)=>e(r.__clone({[s]:l,[o]:a}),a)):(console.warn("[vForRender]:",`${n==null?void 0:n.value} is not a Arrary`),[])}const zr=ys({name:"VtjPageContainer",setup(){return U(this,null,function*(){const t=E0(),e=Ba(),r=e.meta.__vtj__||e.params.id,n=r?t.getPage(r):t.getHomepage(),i=n?yield t.getRenderComponent(n.id):null,s=Da(Symbol());if(n){Object.assign(e.meta,n.meta||{},{cache:n.cache});const{useTitle:o}=t==null?void 0:t.adapter;if(o){const u=e.meta.title||n.title||"VTJ.PRO";o(u)}}return{provider:t,component:i,file:n,query:e.query,meta:e.meta,sid:s,route:e}})},render(){const{component:t,query:e,sid:r}=this;return t?Kr(t,re(V({},e),{key:r})):Kr("div",{style:{padding:"10px"}},"找不到组件,组件不存在或未发布!")},activated(){this.meta.cache===!1&&(this.sid=Symbol())}}),h0=ys({name:"VtjStartupContainer",render(){return Kr("div","page not found!")}});function yn(t,e,r=[]){const n=[];for(const i of r){const{id:s,title:o,icon:u,children:l,hidden:a,layout:c}=i;if(c){const f=yn(t,e,l||[]);n.push(...f)}else{const f={id:s,title:o,icon:u,hidden:a,url:`${t}/${e}/${s}`,children:l&&l.length?yn(t,e,l):void 0};n.push(f)}}return n}function Wr(t,e){const{id:r,title:n,meta:i}=t,{name:s="page",prefix:o="",component:u,routeMeta:l}=e;return{name:r,path:`${o}${s}/${r}`,component:u,meta:re(V(V({title:n},l),i),{__vtj__:r})}}function bn(t){const{name:e="page",prefix:r="",pages:n=[],component:i,loader:s,routeMeta:o,homepage:u}=t,l=[];for(const a of n){const{id:c,title:f,dir:h,layout:p,children:d,meta:g}=a;if(h){const v=bn({name:e,prefix:r,component:i,routeMeta:o,homepage:u,loader:s,pages:d||[]});l.push(...v)}else if(p){const v=bn({name:e,prefix:r,component:i,routeMeta:o,homepage:u,loader:s,pages:d||[]}),E={name:`layout_${c}`,path:r,component:()=>s(c),meta:re(V(V({title:f},o),g),{__vtj__:c}),children:v};l.push(E),l.push(Wr(a,t))}else if(l.push(Wr(a,t)),u===c){const v=Wr(a,t);v.path="",v.name=`home_${c}`,l.push(v)}}return l}function p0(t={},e){const{css:r,store:n,enhance:i}=t,{window:s,app:o,library:u={},adapter:l,mode:a}=e,{Pinia:c}=u;o.config.globalProperties.$libs=u,yr(s,"global-css",r||""),c&&n&&d0(n,o,c),v0(o,l,t),!l.access&&t.access&&g0(t.access,o,a,l),m0(o,t),i&&y0(i,o,u)}function d0(t,e,r){const n=r.createPinia();if(e.use(n),de(t)&&t.value){const i=pe(t,{},!1,!1,!0),s=r.defineStore("$store",i(e)||{});e.config.globalProperties.$store=s()}}function g0(t,e,r,n){if(de(t)&&t.value){const i=pe(t,{},!1,!1,!0),{alert:s,request:o}=n,u=new da(V({alert:s,storagePrefix:"__VTJ_APP_"},i(e))),l=e.config.globalProperties.$router;u.connect({mode:r,router:l,request:o}),e.use(u)}}function v0(t,e,r){if(!e.request)return;const{axios:n,request:i,response:s}=r;if(n&&de(n)&&n.value){const o=pe(n,{},!1,!1,!0);e.request.setConfig(o(t))}if(i&&de(i)&&i.value){const o=pe(i,{},!1,!1,!0),u=e.request;u.__unReq&&u.__unReq(),u.__unReq=e.request.useRequest(l=>o(l,t))}if(s&&de(s)&&s.value){const o=pe(s,{},!1,!1,!0),u=e.request;u.__unRes&&u.__unRes(),u.__unRes=e.request.useResponse(l=>o(l,t))}}function m0(t,e){const{beforeEach:r,afterEach:n}=e,i=t.config.globalProperties.$router;if(r&&de(r)&&r.value){const s=pe(r,{},!1,!1,!0);i&&i.beforeEach((o,u,l)=>s(o,u,l,t))}if(n&&de(n)&&n.value){const s=pe(n,{},!1,!1,!0);i&&i.afterEach((o,u,l)=>s(o,u,l,t))}}function y0(t,e,r={}){de(t)&&t.value&&pe(t,{},!1,!1,!0)(e,r)}function b0(t,e,r){if(!t||!e||!r)return;const{VueI18n:n}=e;if(n){const{locale:i,fallbackLocale:s,messages:o=[]}=r,u={};for(let a of o){const c=Object.keys(a).filter(f=>f!=="key");for(const f of c)u[f]||(u[f]={}),u[f][a.key]=a[f]}const l=n.createI18n({legacy:!1,locale:i,fallbackLocale:s,messages:u});t.use(l)}}const ba=Symbol("Provider");class _0 extends Xg{constructor(r){super();k(this,"mode");k(this,"globals",{});k(this,"modules",{});k(this,"adapter",{request:fn,jsonp:ca});k(this,"apis",{});k(this,"dependencies",{});k(this,"materials",{});k(this,"library",{});k(this,"libraryLocales",{});k(this,"libraryLocaleMap",{});k(this,"service");k(this,"project",null);k(this,"components",{});k(this,"nodeEnv","development");k(this,"env",{});k(this,"router",null);k(this,"materialPath","./");k(this,"urlDslCaches",{});k(this,"errorHandler",null);this.options=r;const{service:n,mode:i=X.Raw,dependencies:s,materials:o,project:u={},adapter:l={},globals:a={},modules:c={},router:f=null,materialPath:h="./",nodeEnv:p="development"}=r;this.mode=i,this.modules=c,this.service=n,this.router=f,this.materialPath=h,this.nodeEnv=p,s&&(this.dependencies=s),o&&(this.materials=o),Object.assign(this.globals,a),Object.assign(this.adapter,l);const{access:d,request:g}=this.adapter;d&&d.connect({mode:i,router:f,request:g}),u&&i!==X.Design?this.load(u):this.project=u}createMock(r){return(...n)=>U(null,null,function*(){var s;let i={};if(r)try{i=yield r.apply(r,n)}catch(o){it.warn("模拟数据模版异常",o)}return(s=Rt())==null?void 0:s.mock(i)})}load(r){return U(this,null,function*(){const{vtjDir:n=".vtj"}=this.options,i=this.modules[`${n}/projects/${r.id}.json`]||this.modules[`/src/${n}/projects/${r.id}.json`];if(this.project=i?yield i():yield this.service.init(r),!this.project)throw new Error("project is null");const{apis:s=[],meta:o=[],env:u=[]}=this.project,l=window;l&&(l.CKEDITOR_VERSION=void 0),this.initEnv(u),this.mode===X.Raw?yield this.loadDependencies(l):yield this.loadAssets(l),this.initMock(l),this.apis=Cy(s,o,this.adapter),ga(l),By(s,l),r.platform!=="uniapp"&&this.initRouter(),this.triggerReady()})}initMock(r){const n=Rt(r);n&&n.setup({timeout:"50-500"})}loadDependencies(){return U(this,arguments,function*(r={}){const n=Object.entries(this.dependencies);for(const[i,s]of n)r[i]||(r[i]=this.library[i]=yield s())})}loadAssets(){return U(this,arguments,function*(r={}){const{dependencies:n=[]}=this.project,{dependencies:i,library:s,components:o,materialPath:u,nodeEnv:l,libraryLocales:a}=this,{libraryExports:c,libraryMap:f,materials:h,materialExports:p,materialMapLibrary:d,libraryLocaleMap:g}=fy(n,u,l==="development");Object.assign(this.libraryLocaleMap,g);for(const v of c){const E=i[v],m=r[v];if(m)s[v]=m;else if(E)r[v]=s[v]=yield E();else{const _=f[v]||[];for(const w of _)vr(w)&&(yield yy(w,Qt.append(w,{v:Vr}))),mr(w)&&(yield ps(Qt.append(w,{v:Vr})));s[v]=r[v]}const b=g[v];if(b){const _=i[b];a[b]=_?yield _():r[b]}}if(l==="development"){for(const E of h)yield ps(Qt.append(E,{v:Vr}));const v=this.materials||{};for(const E of p){const m=r[d[E]],b=(m==null?void 0:m.default)||m,_=Qg[E];if(_)b&&_.forEach(w=>{o[w]=b[w]});else{const w=v[E]?(yield v[E]()).default:r[E];w&&b&&(w.components||[]).forEach(y=>{o[y.name]=hy(y,b)})}}}})}initRouter(){const{router:r,project:n,options:i,adapter:s}=this;if(!r)return;const o=(n==null?void 0:n.platform)==="uniapp"?"pages":"page",{routeAppendTo:u,pageRouteName:l=o,routeMeta:a}=i,c=u?"":"/",f={path:`${c}${l}/:id`,name:Xt,component:zr},h=this.getHomepage(),p={path:c,name:kr,component:h?zr:s.startupComponent||h0,meta:a};if(r.hasRoute(Xt)&&r.removeRoute(Xt),r.hasRoute(kr)&&r.removeRoute(kr),i.enableStaticRoute){const d=(n==null?void 0:n.pages)||[];bn({name:l,prefix:c,pages:d,component:zr,loader:this.getRenderComponent.bind(this),homepage:h==null?void 0:h.id}).forEach(g=>{u?r.addRoute(u,g):r.addRoute(g)}),h||(u?r.addRoute(u,p):r.addRoute(p))}else u?(r.addRoute(u,f),r.addRoute(u,p)):(r.addRoute(f),r.addRoute(p))}setErrorHandler(r){r.config.errorHandler=On((n,i,s)=>{const o=i==null?void 0:i.$options.name,u=typeof n=="string"?n:(n==null?void 0:n.message)||(n==null?void 0:n.msg)||"未知错误",l=`[ ${o} ] ${u} ${s}`;["getComputedStyle","ResizeObserver"].some(a=>l.includes(a))||(console.error("[VTJ Error]:",{err:n,instance:i,info:s},n==null?void 0:n.stack),this.errorHandler&&this.errorHandler(n),this.adapter.notify&&this.adapter.notify(l,"组件渲染错误","error"))},300)}install(r){var u,l,a,c;const{libraryLocaleMap:n,libraryLocales:i}=this,{libraryOptions:s={}}=this.options,o=r.config.globalProperties.installed||{};for(const[f,h]of Object.entries(this.library))if(!o[f]&&by(h)){const p={locale:i[n[f]]},d=s[f]||{},g=V(V({},p),d);r.use(h,g),o[f]=!0}r.provide(ba,this),r.config.globalProperties.$provider=this,r.config.globalProperties.$apis=this.apis,r.config.globalProperties.$request=(u=this.adapter)==null?void 0:u.request,this.options.install&&r.use(this.options.install),this.adapter.access&&r.use(this.adapter.access),((l=this.project)==null?void 0:l.platform)!=="uniapp"&&this.mode!==X.Design&&this.initGlobals(((a=this.project)==null?void 0:a.globals)||{},{app:r,window,adapter:this.adapter,library:this.library,mode:this.mode}),this.mode!==X.Design&&((c=this.project)!=null&&c.i18n)&&this.initI18n(r,this.library,this.project.i18n),this.options.enhance&&r.use(this.options.enhance,this),this.mode===X.Design&&this.setErrorHandler(r),r.config.globalProperties.installed=o}getFile(r){const{blocks:n=[]}=this.project||{};return this.getPage(r)||n.find(i=>i.id===r)||null}getPage(r){const{pages:n=[]}=this.project||{},i=(s,o=[])=>{for(const u of o){if(u.id===s)return u;if(u.children&&u.children.length){const l=i(s,u.children);if(l)return l}}};return i(r,n)||null}getFirstPage(){const{pages:r=[]}=this.project||{};if(!r.length)return null;const n=(i=[])=>{for(const s of i){if(s.type==="page"&&!s.dir&&!s.layout)return s;if(s.children&&s.children.length){const o=n(s.children);if(o)return o}}};return n(r)||null}getMenus(r="page",n=""){var i;return yn(n,r,((i=this.project)==null?void 0:i.pages)||[])}getHomepage(){const{homepage:r}=this.project||{};return r?this.getPage(r):this.getFirstPage()}getDsl(r){return U(this,null,function*(){const{vtjDir:n=".vtj"}=this.options,i=this.modules[`${n}/files/${r}.json`]||this.modules[`/src/${n}/files/${r}.json`];return i?yield i():this.service.getFile(r,this.project||void 0).catch(()=>null)})}getDslByUrl(r){return U(this,null,function*(){return this.urlDslCaches[r]||(this.adapter.request?this.urlDslCaches[r]=this.adapter.request.send({url:r,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(i=>i.data).catch(()=>null):null)})}createDslRenderer(r,n={}){const{library:i,components:s,mode:o,apis:u}=this,l=V({mode:o,Vue:i.Vue,components:s,libs:i,apis:u,window},n),a=vn({getDsl:c=>U(this,null,function*(){return(yield this.getDsl(c))||null}),getDslByUrl:c=>U(this,null,function*(){return(yield this.getDslByUrl(c))||null}),options:l});return gn(re(V({},l),{dsl:r,loader:a}))}getRenderComponent(r,n){return U(this,null,function*(){var o;const i=this.getFile(r);if(!i)return it.warn(`Can not find file: ${r}`),null;if(n&&n(i),this.mode===X.Raw){const{vtjRawDir:u=".vtj/vue"}=this.options,l=`${u}/${r}.vue`,a=this.modules[l]||this.modules[`/src/pages/${r}.vue`];return a?(o=yield a())==null?void 0:o.default:this.nodeEnv==="development"&&this.adapter.startupComponent||null}const s=yield this.getDsl(i.id);return s?this.createDslRenderer(s).renderer:(it.warn(`Can not find dsl: ${r}`),null)})}defineUrlSchemaComponent(r,n){return Hn(()=>U(this,null,function*(){const i=yield this.getDslByUrl(r);return i?(i.name=n||i.name,this.createDslRenderer(i).renderer):null}))}definePluginComponent(r){return Hn(()=>U(null,null,function*(){return yield va(r,window)}))}initGlobals(r,n){const i=Object.assign({adapter:this.adapter,window},n);p0(r,i)}initI18n(r,n,i){b0(r,n,i)}initEnv(r=[]){this.env=r.reduce((n,i)=>(n[i.name]=i[this.nodeEnv],n),{})}}function w0(t){const e=new _0(t);return{provider:e,onReady:r=>e.ready(r)}}function E0(t={}){const e=Ca(ba,null);if(!e)throw new Error("Can not find provider");if(e.nodeEnv==="development"){const{id:r,version:n}=t;r&&n&&U(null,null,function*(){const i=yield e.getDsl(r);(i==null?void 0:i.__VERSION__)!==n&&e.adapter.notify&&e.adapter.notify(`[ ${i==null?void 0:i.name} ] 组件源码版本与运行时版本不一致,请重新发布组件`,"版本不一致","warning")})}return e}function S0(t,e=""){return U(this,null,function*(){const{name:r,urls:n=[]}=t||{},i=n.map(u=>e+u),{css:s,js:o}=py(i);if(s.length&&ha(s),o.length)return yield pa(o,r).catch(()=>{})})}const _a={type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:t=>{var e;return((e=t.data)==null?void 0:e.code)===0}},T0=(t,e="/__vtj__/api/:type.json")=>(r,n,i)=>t.send({url:e,method:"post",params:{type:r},query:i,data:{type:r,data:n},settings:_a}),R0=(t,e="/__vtj__/api/uploader.json")=>(r,n)=>U(null,null,function*(){return yield t.send({url:e,method:"post",data:{files:r,projectId:n},settings:re(V({},_a),{type:"data"})}).then(i=>i&&i[0]?i[0]:null).catch(()=>null)});function A0(t){return Mn({settings:{type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:e=>{var r;return((r=e.data)==null?void 0:r.code)===0},showError:e=>{t&&t(e||"未知错误")}}})}class x0{constructor(e=fn){k(this,"api");k(this,"pluginCaches",{});k(this,"uploader");this.req=e,this.api=T0(e),this.uploader=R0(e)}getExtension(){return U(this,null,function*(){console.log("BaseService.getExtension")})}init(e){return U(this,null,function*(){return console.log("BaseService.init",e),{}})}saveProject(e,r){return U(this,null,function*(){return!!(yield this.api("saveProject",e,{type:r}).catch(()=>!1))})}saveMaterials(e,r){return U(this,null,function*(){return console.log("BaseService.saveMaterials",e,r),!1})}saveFile(e){return U(this,null,function*(){return console.log("BaseService.saveFile",e),!1})}getFile(e){return U(this,null,function*(){return console.log("BaseService.getFile",e),{}})}removeFile(e){return U(this,null,function*(){return console.log("BaseService.removeFile",e),!1})}saveHistory(e){return U(this,null,function*(){return console.log("BaseService.saveHistory",e),!1})}removeHistory(e){return U(this,null,function*(){return console.log("BaseService.removeHistory",e),!1})}getHistory(e){return U(this,null,function*(){return console.log("BaseService.getHistory",e),{}})}getHistoryItem(e,r){return U(this,null,function*(){return console.log("BaseService.getHistoryItem",e,r),{}})}saveHistoryItem(e,r){return U(this,null,function*(){return console.log("BaseService.saveHistoryItem",e,r),!1})}removeHistoryItem(e,r){return U(this,null,function*(){return console.log("BaseService.removeHistoryItem",e,r),!1})}publish(e){return U(this,null,function*(){return!!(yield this.api("publish",e).catch(()=>!1))})}publishFile(e,r){return U(this,null,function*(){return!!(yield this.api("publishFile",{project:e,file:r}).catch(()=>!1))})}genVueContent(e,r){return U(this,null,function*(){return yield this.api("genVueContent",{project:e,dsl:r}).catch(()=>"")})}parseVue(e,r){return U(this,null,function*(){return yield this.api("parseVue",V({project:e},r))})}createRawPage(e){return U(this,null,function*(){return yield this.api("createRawPage",e).catch(()=>"")})}removeRawPage(e){return U(this,null,function*(){return yield this.api("removeRawPage",e).catch(()=>"")})}uploadStaticFile(e,r){return U(this,null,function*(){return yield this.uploader(e,r).catch(()=>null)})}getStaticFiles(e){return U(this,null,function*(){return yield this.api("getStaticFiles",e).catch(()=>[])})}removeStaticFile(e,r){return U(this,null,function*(){return yield this.api("removeStaticFile",{name:e,projectId:r}).catch(()=>"")})}clearStaticFiles(e){return U(this,null,function*(){return yield this.api("clearStaticFiles",e).catch(()=>"")})}getPluginMaterial(e){return U(this,null,function*(){const{urls:r=[]}=e,n=r.filter(s=>cy(s))[0];return n?this.pluginCaches[n]||(this.pluginCaches[n]=fn.send({url:n,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(s=>s.data).catch(()=>null)):null})}genSource(e){return U(this,null,function*(){return console.log("BaseService.genSource",e),""})}}new sa({type:"local",expired:0,prefix:"__VTJ_"});class O0 extends x0{constructor(){super(...arguments);k(this,"getFileCaches",{})}getExtension(){return U(this,null,function*(){return yield this.api("getExtension",{}).catch(()=>{})})}init(r){return U(this,null,function*(){return(yield this.api("init",r).catch(()=>null))||{}})}saveProject(r,n){return U(this,null,function*(){return!!(yield this.api("saveProject",r,{type:n}).catch(()=>!1))})}saveMaterials(r,n){return U(this,null,function*(){return!!(yield this.api("saveMaterials",{project:r,materials:Ng(n)}).catch(()=>!1))})}saveFile(r){return U(this,null,function*(){return!!(yield this.api("saveFile",r).catch(()=>!1))})}getFile(r){return U(this,null,function*(){return this.getFileCaches[r]||(this.getFileCaches[r]=this.api("getFile",r).catch(()=>null)).finally(()=>{delete this.getFileCaches[r]})})}removeFile(r){return U(this,null,function*(){return!!(yield this.api("removeFile",r).catch(()=>!1))})}saveHistory(r){return U(this,null,function*(){return!!(yield this.api("saveHistory",r).catch(()=>!1))})}removeHistory(r){return U(this,null,function*(){return!!(yield this.api("removeHistory",r).catch(()=>!1))})}getHistory(r){return U(this,null,function*(){return(yield this.api("getHistory",r).catch(()=>null))||{}})}getHistoryItem(r,n){return U(this,null,function*(){return(yield this.api("getHistoryItem",{fId:r,id:n}).catch(()=>null))||{}})}saveHistoryItem(r,n){return U(this,null,function*(){return!!(yield this.api("saveHistoryItem",{fId:r,item:n}).catch(()=>!1))})}removeHistoryItem(r,n){return U(this,null,function*(){return!!(yield this.api("removeHistoryItem",{fId:r,ids:n}).catch(()=>!1))})}}/**!
75
75
  * Copyright (c) 2026, VTJ.PRO All rights reserved.
76
76
  * @name @vtj/uni
77
77
  * @author CHC chenhuachun1549@dingtalk.com
78
- * @version 0.17.1
78
+ * @version 0.17.3
79
79
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
80
80
  */const $0=["onLaunch","onShow","onHide","onError","onPageNotFound","onUnhandledRejection","onThemeChange","onPageNotFound","onUniNViewMessage","onExit"],vs="/pages",D0="VTJ",C0="__UNI__1FC118B",B0="VTJ移动跨端项目",P0="1.0.0",j0="100",N0=!1,I0={},M0={enable:!1},F0="3",L0={name:D0,appid:C0,description:B0,versionName:P0,versionCode:j0,transformPx:N0,"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:I0,"mp-weixin":{appid:"",setting:{urlCheck:!1},usingComponents:!0},"mp-alipay":{usingComponents:!0},"mp-baidu":{usingComponents:!0},"mp-toutiao":{usingComponents:!0},uniStatistics:M0,vueVersion:F0},U0=[],H0={navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},V0={autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}},k0={pages:U0,globalStyle:H0,easycom:V0};function q0(t){let{manifestJson:e={},pagesJson:r={},routes:n=[]}=t;const i=n.map(s=>{const{path:o,style:u,needLogin:l}=s;return{path:o,style:u,needLogin:l}});return re(V({},t),{manifestJson:Object.assign({},L0,e),pagesJson:Object.assign({},k0,r,{pages:i})})}const _n={navigationBarBackgroundColor:"backgroundColor",navigationBarTextStyle:"titleColor",navigationBarTitleText:"titleText",navigationStyle:"style",titleImage:"titleImage",titlePenetrate:"titlePenetrate",transparentTitle:"transparentTitle"};function wa(t){const e={},r={black:"#000000",white:"#ffffff"};for(const n in t)_n[n]&&(e[_n[n]]=n==="navigationBarTextStyle"?r[t[n]]||r.black:t[n]);return e}function z0(t){const e={};for(const r in t)_n[r]||(e[r]=t[r]);return e}function W0(t){var e,r;return((r=(e=t.h5)==null?void 0:e.router)==null?void 0:r.mode)||"hash"}function K0(t){var e,r,n;return{topWindow:!!((e=t.topWindow)!=null&&e.path),leftWindow:!!((r=t.leftWindow)!=null&&r.path),rightWindow:!!((n=t.rightWindow)!=null&&n.path)}}function J0(t){const{pagesJson:e={}}=t,{globalStyle:r,pages:n=[]}=e;return!!(r!=null&&r.enablePullDownRefresh||n.find(i=>{var s;return!!((s=i.style)!=null&&s.enablePullDownRefresh)}))}function G0(t){const{pagesJson:e={}}=t,{globalStyle:r,pages:n=[]}=e;let i=!1;return(r==null?void 0:r.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 Y0(t){var u;const e=G0(t),r={navigationBar:!1,navigationBarButtons:!1,navigationBarSearchInput:!1,navigationBarTransparent:!1},{pagesJson:n={}}=t,{globalStyle:i,pages:s=[]}=n;if(e)return r;r.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)})&&(r.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)}))&&(r.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"}))&&(r.navigationBarTransparent=!0),r}function Z0(t,e=window){var h,p,d,g;const{pagesJson:r={},manifestJson:n={}}=t,{topWindow:i,leftWindow:s,rightWindow:o}=K0(r),{navigationBar:u,navigationBarButtons:l,navigationBarSearchInput:a,navigationBarTransparent:c}=Y0(t),f={__VUE_OPTIONS_API__:!0,__VUE_PROD_DEVTOOLS__:!1,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__:!1,__UNI_FEATURE_WX__:!1,__UNI_FEATURE_WXS__:!1,__UNI_FEATURE_RPX__:!1,__UNI_FEATURE_PROMISE__:!1,__UNI_FEATURE_LONGPRESS__:!1,__UNI_FEATURE_I18N_EN__:!1,__UNI_FEATURE_I18N_ES__:!1,__UNI_FEATURE_I18N_FR__:!1,__UNI_FEATURE_I18N_ZH_HANS__:!0,__UNI_FEATURE_I18N_ZH_HANT__:!1,__UNI_FEATURE_UNI_CLOUD__:!1,__UNI_FEATURE_I18N_LOCALE__:!1,__UNI_FEATURE_NVUE__:!1,__UNI_FEATURE_ROUTER_MODE__:W0(n),__UNI_FEATURE_PAGES__:!!((h=r.pages)!=null&&h.length),__UNI_FEATURE_TABBAR__:!!((d=(p=r.tabBar)==null?void 0:p.list)!=null&&d.length),__UNI_FEATURE_TABBAR_MIDBUTTON__:!!((g=r.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__:J0(t),__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 Q0="4.76";function X0(t,e=window){var f,h;const{pagesJson:r={},manifestJson:n={}}=t,{easycom:i={}}=r,{appid:s="",name:o="",versionCode:u="",versionName:l=""}=n,a=r.globalStyle,c=((f=n.h5)==null?void 0:f.router)||{};e.__uniConfig={easycom:i,globalStyle:re(V({},z0(a)),{navigationBar:wa(a),isNVue:!1}),compilerVersion:Q0,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:r.tabBar?V({position:"bottom",color:"#7A7E83",selectedColor:"#3cc51f",borderStyle:"black",blurEffect:"none",fontSize:"10px",iconWidth:"24px",spacing:"3px",height:"50px",backgroundColor:"#ffffff",selectedIndex:0,shown:!0},r.tabBar):void 0}}function e1(t,e=window){const{UniServiceJSBridge:r,UniViewJSBridge:n,getApp:i,uni:s,getCurrentPages:o,upx2px:u,setupPage:l}=t;e.UniServiceJSBridge=r,e.UniViewJSBridge=n,e.getApp=i,e.uni=s,e.wx=s,e.getCurrentPages=o,e.upx2px=u,e.__setupPage=a=>l(a)}function t1(t,e,r){const{openBlock:n,createBlock:i,withCtx:s,createVNode:o}=t,{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}=r,d=h?yield h(r):p||{};return()=>(n(),i(u,null,{page:s(()=>[o(l(d),Object.assign({},f,{ref:"page"}),null,512)]),_:1}))})}}}function r1(t,e,r){var p;const{path:n,style:i={},meta:s={},home:o,id:u}=e,l=((p=t.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=r===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 n1(t,e,r,n,i=window){const s=r.map((o,u)=>{const l=r1(n,o,u),a=t1(t,e,o),{path:c}=o;return{path:c,alias:c,meta:l,component:{render(){return t.h(t.Suspense,[t.h(a)])}}}});i.__uniRoutes=s,i.__uniLayout={}}function i1(t,e,r=window){yr(r,String(t),e)}function s1(t,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(r=>{const n=e[r];t.component(r,n)})}function o1(t){const e=q0(t),{Vue:r,App:n,UniH5:i,routes:s=[],pagesJson:o={},manifestJson:u={},window:l,css:a=""}=e;if(!i)return r.createApp(n);const{plugin:c,setupApp:f}=i;Z0(e,l),X0(e,l),e1(i,l),n1(r,i,s,o,l),i1(u.appid||Date.now(),a,l);const h=r.createApp(f(n));return h.use(s1,i),h.use(c),h}function a1(t,e){const r={};return Object.entries(t).forEach(([n,i])=>{$0.includes(n)&&i&&(r[n]=e(i))}),r}function ms(t,e){return()=>U(null,null,function*(){const r=yield t.getDsl(e);if(r){const{renderer:n}=t.createDslRenderer(r);return n}return null})}function u1(n){return U(this,arguments,function*(t,e=!1,r=vs){var u,l,a;const i=((u=t.project)==null?void 0:u.pages)||[],s=[];for(const c of i){const f=((l=t.project)==null?void 0:l.homepage)===c.id;s.push({id:c.id,path:`${r}/${c.id}`,loader:ms(t,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=r===vs?"/":r;s.unshift(re(V({},o),{path:c}))}if(e){const c=((a=t.project)==null?void 0:a.blocks)||[];for(const f of c)s.push({id:f.id,path:`${r}/${f.id}`,loader:ms(t,f.id),style:{navigationStyle:"custom"}})}return s})}function c1(){var t;return(t=window.uni)!=null&&t.showLoading&&window.uni.showLoading({title:"加载中...",mask:!0}),{close:()=>{var e;(e=window.uni)!=null&&e.hideLoading&&window.uni.hideLoading()}}}function Ea(t,e="",r="warning"){return U(this,null,function*(){var n;return(n=window.uni)!=null&&n.showModal?window.uni.showModal({title:e,content:t,showCancel:!1}):(window.alert(t),!0)})}function l1(t=X.Runtime){let e={};t===X.Runtime?e=Object.assign({}):e=Object.assign({});let r={};for(const[n,i]of Object.entries(e))r[n]=()=>Promise.resolve(i);return r}const f1=Oy({loading:c1,notify:Ea}),Sa=new O0(A0(Ea)),h1=l1(),{provider:p1,onReady:d1}=w0({nodeEnv:"production",mode:X.Runtime,modules:h1,materialPath:"../",adapter:f1,service:Sa,dependencies:{Vue:()=>kn(()=>import("./@dcloudio-uni-h5-vue-BmOkhsCk.js").then(t=>t.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)}}),g1=t=>U(null,null,function*(){const e=(yield Sa.getExtension().catch(()=>null))||{},r=top||window,n=yield S0(e.enhance,r.location.pathname),{Vue:i,UniH5:s}=window,o=t.project;if(!o)return;const u=o.uniConfig||{},l=a1(u,d=>pe(d,window,!1,!0)),{manifestJson:a,pagesJson:c,css:f}=u,h=yield u1(t,!0),p=o1({Vue:i,App:l,UniH5:s,routes:h,css:f,manifestJson:a,pagesJson:c});p.use(t),n&&p.use(n,t),p.mount(document.body)});d1(()=>g1(p1));
@@ -44,7 +44,7 @@
44
44
  <title></title>
45
45
  <!--preload-links-->
46
46
  <!--app-context-->
47
- <script type="module" crossorigin src="./assets/index-cG2iJOQ4.js"></script>
47
+ <script type="module" crossorigin src="./assets/index-CxSpLZuy.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.17.1",
4
+ "version": "0.17.3",
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.17.1",
25
- "@vtj/designer": "~0.17.1",
26
- "@vtj/local": "~0.17.1",
27
- "@vtj/materials": "~0.17.1",
28
- "@vtj/uni": "~0.17.1",
29
- "@vtj/renderer": "~0.17.1"
24
+ "@vtj/core": "~0.17.3",
25
+ "@vtj/materials": "~0.17.3",
26
+ "@vtj/renderer": "~0.17.3",
27
+ "@vtj/local": "~0.17.3",
28
+ "@vtj/designer": "~0.17.3",
29
+ "@vtj/uni": "~0.17.3"
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/charts": "~0.17.1",
36
35
  "@vtj/cli": "~0.12.19",
37
- "@vtj/icons": "~0.17.1",
38
- "@vtj/utils": "~0.17.1",
39
- "@vtj/ui": "~0.17.1"
36
+ "@vtj/icons": "~0.17.3",
37
+ "@vtj/ui": "~0.17.3",
38
+ "@vtj/utils": "~0.17.3",
39
+ "@vtj/charts": "~0.17.3"
40
40
  },
41
41
  "exports": {
42
42
  "./vite": {