@vtj/pro 0.12.38 → 0.12.40

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 (27) 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-CyNe60Cy-DrJAuHY9.js → Editor-C4BimMkL-D3Wu75wi.js} +65 -65
  14. package/dist/assets/auth-CsaXH_vj.js +1 -0
  15. package/dist/assets/{index-CznrUnKa.js → index-C7WRpYzG.js} +2 -2
  16. package/dist/assets/{index-IANB9gbG.js → index-CxiYe-Rz.js} +1 -1
  17. package/dist/assets/{mockjs-Du5X89jz.js → mockjs-CRGRqvsv.js} +1 -1
  18. package/dist/assets/{page-DQHD3q6U.js → page-DwyOpEpR.js} +1 -1
  19. package/dist/assets/{preview-CaYFKrJD.js → preview-BFgVY8kH.js} +1 -1
  20. package/dist/assets/utils-BNNVnAjm.js +1 -0
  21. package/dist/index.html +3 -3
  22. package/dist/uni/assets/{index-LCuTbG1u.js → index-DtMH6Ppa.js} +4 -4
  23. package/dist/uni/index.html +1 -1
  24. package/package.json +11 -11
  25. package/dist/assets/auth-BMKC5RGB.js +0 -1
  26. package/dist/assets/utils-BJP0FOwA.js +0 -1
  27. /package/dist/assets/{Editor-CyNe60Cy-BN1eKDXZ.css → Editor-C4BimMkL-BN1eKDXZ.css} +0 -0
@@ -0,0 +1 @@
1
+ var w=Object.defineProperty;var f=Object.getOwnPropertySymbols;var I=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var y=(o,t,e)=>t in o?w(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,l=(o,t)=>{for(var e in t||(t={}))I.call(t,e)&&y(o,e,t[e]);if(f)for(var e of f(t))A.call(t,e)&&y(o,e,t[e]);return o};var p=(o,t,e)=>new Promise((i,s)=>{var a=r=>{try{n(e.next(r))}catch(c){s(c)}},m=r=>{try{n(e.throw(r))}catch(c){s(c)}},n=r=>r.done?i(r.value):Promise.resolve(r.value).then(a,m);n((e=e.apply(o,t)).next())});import"./element-plus-XVJlWyfz.js";import"./vxe-CWcmrjam.js";import{p as v,P as B,a3 as h,I as E,ay as $,y as g}from"./Editor-C4BimMkL-D3Wu75wi.js";import{useRoute as q}from"./vue-router-BO40Wv73.js";import{d as x,ay as C,c as P,o as k,K as R,O as S,u as _}from"./vue-BfodOvnP.js";import{_ as K}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./lodash-es-BL-d_OSa.js";import"./@vueuse-vmN9qs5b.js";import"./@element-plus-icons-vue-CM-7yUXL.js";import"./shared-CzXu-bVE.js";import"./dayjs-DO-COJPZ.js";import"./monaco-editor-B5WqzYTl.js";import"./html2canvas-CIV5arX1.js";import"./mockjs-CRGRqvsv.js";import"./marked-BQZxLJfc.js";const L={class:"loading"},N=x({__name:"Auth",props:{remote:{},access:{}},setup(o){return p(this,null,function*(){let t,e;const i=o,s=v(l(l({alert:h},B),i.access)),a=q(),m=c=>p(null,null,function*(){const d=`${i.remote||E}/api/open/user/${c}`,u=yield $(d).catch(()=>null);return!u||!u.success?(yield h("登录失败"),null):u.data}),n=a.query.token,r=n?([t,e]=C(()=>m(n)),t=yield t,e(),t):null;if(r)try{s.login(r);const c=a.query.redirect;location.href=decodeURIComponent(c||"/")}catch(c){location.reload()}return(c,d)=>(k(),P("div",L,"正在登录中..."))})}}),O=K(N,[["__scopeId","data-v-720ff9d2"]]),Z=x({__name:"auth",setup(o){return p(this,null,function*(){let t,e;const i=new g,s=([t,e]=C(()=>i.getExtension().catch(()=>null)),t=yield t,e(),t),a=s==null?void 0:s.remote,m=s==null?void 0:s.__ACCESS__;return(n,r)=>_(a)?(k(),R(_(O),{key:0,remote:_(a),access:_(m)},null,8,["remote","access"])):S("",!0)})}});export{Z as default};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-IANB9gbG.js","./vue-router-BO40Wv73.js","./vue-BfodOvnP.js","./@vueuse-vmN9qs5b.js","./element-plus-XVJlWyfz.js","./lodash-es-BL-d_OSa.js","./@element-plus-icons-vue-CM-7yUXL.js","./shared-CzXu-bVE.js","./dayjs-DO-COJPZ.js","./element-plus-EFxNtExC.css","./vxe-CWcmrjam.js","./vxe-BAb1d5vW.css","./Editor-CyNe60Cy-DrJAuHY9.js","./monaco-editor-B5WqzYTl.js","./monaco-editor-Cpw7ccEV.css","./html2canvas-CIV5arX1.js","./mockjs-Du5X89jz.js","./marked-BQZxLJfc.js","./Editor-CyNe60Cy-BN1eKDXZ.css","./utils-BJP0FOwA.js","./_plugin-vue_export-helper-DlAUqK2U.js","./index-jC2E5tg_.css","./preview-CaYFKrJD.js","./page-DQHD3q6U.js","./uni-page-BiootGtZ.js","./uni-page-Diqmj53r.css","./auth-BMKC5RGB.js"])))=>i.map(i=>d[i]);
2
- import{d as _,K as p,u as s,ai as d,o as m,L as u,aA as f,T as h,av as v}from"./vue-BfodOvnP.js";import{z as g,d as y}from"./element-plus-XVJlWyfz.js";import{_ as r}from"./monaco-editor-B5WqzYTl.js";import{createRouter as E,createWebHashHistory as L}from"./vue-router-BO40Wv73.js";import"./lodash-es-BL-d_OSa.js";import"./@vueuse-vmN9qs5b.js";import"./@element-plus-icons-vue-CM-7yUXL.js";import"./shared-CzXu-bVE.js";import"./dayjs-DO-COJPZ.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 O=_({__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"])}}}),P=[{path:"/",name:"home",component:()=>r(()=>import("./index-IANB9gbG.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-CaYFKrJD.js"),__vite__mapDeps([22,13,14,1,2,4,5,3,6,7,8,9,10,11,12,15,16,17,18,19]),import.meta.url)},{path:"/page/:id",name:"page",component:()=>r(()=>import("./page-DQHD3q6U.js"),__vite__mapDeps([23,13,14,1,2,4,5,3,6,7,8,9,10,11,12,15,16,17,18,19]),import.meta.url),meta:{pure:!0}},{path:"/pages/:id",name:"page",component:()=>r(()=>import("./uni-page-BiootGtZ.js"),__vite__mapDeps([24,1,2,20,25]),import.meta.url),meta:{pure:!0}},{path:"/auth",name:"auth",component:()=>r(()=>import("./auth-BMKC5RGB.js"),__vite__mapDeps([26,4,2,5,3,6,7,8,9,10,11,12,13,14,1,15,16,17,18,20]),import.meta.url)}],A=E({history:L(),routes:P}),c=v(O);c.use(A);c.mount("#app");
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-CxiYe-Rz.js","./vue-router-BO40Wv73.js","./vue-BfodOvnP.js","./@vueuse-vmN9qs5b.js","./element-plus-XVJlWyfz.js","./lodash-es-BL-d_OSa.js","./@element-plus-icons-vue-CM-7yUXL.js","./shared-CzXu-bVE.js","./dayjs-DO-COJPZ.js","./element-plus-EFxNtExC.css","./vxe-CWcmrjam.js","./vxe-BAb1d5vW.css","./Editor-C4BimMkL-D3Wu75wi.js","./monaco-editor-B5WqzYTl.js","./monaco-editor-Cpw7ccEV.css","./html2canvas-CIV5arX1.js","./mockjs-CRGRqvsv.js","./marked-BQZxLJfc.js","./Editor-C4BimMkL-BN1eKDXZ.css","./utils-BNNVnAjm.js","./_plugin-vue_export-helper-DlAUqK2U.js","./index-jC2E5tg_.css","./preview-BFgVY8kH.js","./page-DwyOpEpR.js","./uni-page-BiootGtZ.js","./uni-page-Diqmj53r.css","./auth-CsaXH_vj.js"])))=>i.map(i=>d[i]);
2
+ import{d as _,K as p,u as s,ai as d,o as m,L as u,aA as f,T as h,av as v}from"./vue-BfodOvnP.js";import{z as g,d as y}from"./element-plus-XVJlWyfz.js";import{_ as r}from"./monaco-editor-B5WqzYTl.js";import{createRouter as E,createWebHashHistory as L}from"./vue-router-BO40Wv73.js";import"./lodash-es-BL-d_OSa.js";import"./@vueuse-vmN9qs5b.js";import"./@element-plus-icons-vue-CM-7yUXL.js";import"./shared-CzXu-bVE.js";import"./dayjs-DO-COJPZ.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 O=_({__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"])}}}),P=[{path:"/",name:"home",component:()=>r(()=>import("./index-CxiYe-Rz.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-BFgVY8kH.js"),__vite__mapDeps([22,13,14,1,2,4,5,3,6,7,8,9,10,11,12,15,16,17,18,19]),import.meta.url)},{path:"/page/:id",name:"page",component:()=>r(()=>import("./page-DwyOpEpR.js"),__vite__mapDeps([23,13,14,1,2,4,5,3,6,7,8,9,10,11,12,15,16,17,18,19]),import.meta.url),meta:{pure:!0}},{path:"/pages/:id",name:"page",component:()=>r(()=>import("./uni-page-BiootGtZ.js"),__vite__mapDeps([24,1,2,20,25]),import.meta.url),meta:{pure:!0}},{path:"/auth",name:"auth",component:()=>r(()=>import("./auth-CsaXH_vj.js"),__vite__mapDeps([26,4,2,5,3,6,7,8,9,10,11,12,13,14,1,15,16,17,18,20]),import.meta.url)}],A=E({history:L(),routes:P}),c=v(O);c.use(A);c.mount("#app");
@@ -1 +1 @@
1
- var D=Object.defineProperty;var g=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var x=(a,e,t)=>e in a?D(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,w=(a,e)=>{for(var t in e||(e={}))H.call(e,t)&&x(a,t,e[t]);if(g)for(var t of g(e))V.call(e,t)&&x(a,t,e[t]);return a};var C=(a,e,t)=>new Promise((_,r)=>{var l=n=>{try{i(t.next(n))}catch(p){r(p)}},o=n=>{try{i(t.throw(n))}catch(p){r(p)}},i=n=>n.done?_(n.value):Promise.resolve(n.value).then(l,o);i((t=t.apply(a,e)).next())});import{useRoute as W}from"./vue-router-BO40Wv73.js";import{q as I}from"./@vueuse-vmN9qs5b.js";import"./element-plus-XVJlWyfz.js";import"./vxe-CWcmrjam.js";import{y as J,m as N,u as U,p as j,t as E,D as z}from"./Editor-CyNe60Cy-DrJAuHY9.js";import{E as G,a as P,n as v,l as K}from"./utils-BJP0FOwA.js";import{d as L,e as M,ay as S,f as O,c as Q,o as X}from"./vue-BfodOvnP.js";import{_ as Y}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./lodash-es-BL-d_OSa.js";import"./@element-plus-icons-vue-CM-7yUXL.js";import"./shared-CzXu-bVE.js";import"./dayjs-DO-COJPZ.js";import"./monaco-editor-B5WqzYTl.js";import"./html2canvas-CIV5arX1.js";import"./mockjs-Du5X89jz.js";import"./marked-BQZxLJfc.js";const Z=L({__name:"index",setup(a){return C(this,null,function*(){let e,t;const _=W(),r=M(),l=new J(N(v)),o=([e,t]=S(()=>l.getExtension().catch(()=>null)),e=yield e,t(),e||{}),i=U({loading:K,notify:v,useTitle:I,alert:P,access:o==null?void 0:o.access}),n=j(w({alert:P},o==null?void 0:o.__ACCESS__)),p=o?([e,t]=S(()=>new G(o).load()),e=yield e,t(),e):{},{__BASE_PATH__:d="/",history:A="hash",base:h="/",pageRouteName:k="page",remote:B,auth:q,checkVersion:F=!0,enhance:R}=o||{},T=()=>A==="hash",b=s=>s==="/"?"":(s.startsWith("/")&&(s=s.substring(1)),s.endsWith("/")||(s=s+"/"),s);E.set("Switcher",{props:{onClick:s=>{const u=s.platform==="uniapp",c=location.pathname;let m=c===`${d}__vtj__/`?d:c;const f=s.currentFile;if(f&&f.type==="page"&&s.homepage!==f.id){const y=`${b(h)}${u?"pages":k}/${f.id}`;m=T()?`${m}#/${y}`:`${m}${y}`}window.open(m,"VTJProject")}}}),E.set("Previewer",{props:{path:(s,u)=>{const c=location.pathname;return u.platform==="uniapp"?`${c}uni/#/pages/${s.id}`:`${c}#/preview/${s.id}`}}});const $=new z(w({container:r,service:l,materialPath:d,pageBasePath:h==="/"?"":h,adapter:i,access:n,remote:B,auth:q,checkVersion:F,enhance:R},p));return $.ready(()=>{$.openFile(_.query.id)}),O(()=>_.query.id,s=>{$.openFile(s)}),(s,u)=>(X(),Q("div",{class:"designer",ref_key:"container",ref:r},null,512))})}}),$e=Y(Z,[["__scopeId","data-v-73bfd256"]]);export{$e as default};
1
+ var D=Object.defineProperty;var g=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var x=(a,e,t)=>e in a?D(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,w=(a,e)=>{for(var t in e||(e={}))H.call(e,t)&&x(a,t,e[t]);if(g)for(var t of g(e))V.call(e,t)&&x(a,t,e[t]);return a};var C=(a,e,t)=>new Promise((_,r)=>{var l=n=>{try{i(t.next(n))}catch(p){r(p)}},o=n=>{try{i(t.throw(n))}catch(p){r(p)}},i=n=>n.done?_(n.value):Promise.resolve(n.value).then(l,o);i((t=t.apply(a,e)).next())});import{useRoute as W}from"./vue-router-BO40Wv73.js";import{q as I}from"./@vueuse-vmN9qs5b.js";import"./element-plus-XVJlWyfz.js";import"./vxe-CWcmrjam.js";import{y as J,m as N,u as U,p as j,D as E,B as z}from"./Editor-C4BimMkL-D3Wu75wi.js";import{E as G,a as P,n as v,l as K}from"./utils-BNNVnAjm.js";import{d as L,e as M,ay as B,f as O,c as Q,o as X}from"./vue-BfodOvnP.js";import{_ as Y}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./lodash-es-BL-d_OSa.js";import"./@element-plus-icons-vue-CM-7yUXL.js";import"./shared-CzXu-bVE.js";import"./dayjs-DO-COJPZ.js";import"./monaco-editor-B5WqzYTl.js";import"./html2canvas-CIV5arX1.js";import"./mockjs-CRGRqvsv.js";import"./marked-BQZxLJfc.js";const Z=L({__name:"index",setup(a){return C(this,null,function*(){let e,t;const _=W(),r=M(),l=new J(N(v)),o=([e,t]=B(()=>l.getExtension().catch(()=>null)),e=yield e,t(),e||{}),i=U({loading:K,notify:v,useTitle:I,alert:P,access:o==null?void 0:o.access}),n=j(w({alert:P},o==null?void 0:o.__ACCESS__)),p=o?([e,t]=B(()=>new G(o).load()),e=yield e,t(),e):{},{__BASE_PATH__:d="/",history:S="hash",base:h="/",pageRouteName:A="page",remote:k,auth:q,checkVersion:F=!0,enhance:R}=o||{},T=()=>S==="hash",b=s=>s==="/"?"":(s.startsWith("/")&&(s=s.substring(1)),s.endsWith("/")||(s=s+"/"),s);E.set("Switcher",{props:{onClick:s=>{const u=s.platform==="uniapp",c=location.pathname;let m=c===`${d}__vtj__/`?d:c;const f=s.currentFile;if(f&&f.type==="page"&&s.homepage!==f.id){const y=`${b(h)}${u?"pages":A}/${f.id}`;m=T()?`${m}#/${y}`:`${m}${y}`}window.open(m,"VTJProject")}}}),E.set("Previewer",{props:{path:(s,u)=>{const c=location.pathname;return u.platform==="uniapp"?`${c}uni/#/pages/${s.id}`:`${c}#/preview/${s.id}`}}});const $=new z(w({container:r,service:l,materialPath:d,pageBasePath:h==="/"?"":h,adapter:i,access:n,remote:k,auth:q,checkVersion:F,enhance:R},p));return $.ready(()=>{$.openFile(_.query.id)}),O(()=>_.query.id,s=>{$.openFile(s)}),(s,u)=>(X(),Q("div",{class:"designer",ref_key:"container",ref:r},null,512))})}}),$e=Y(Z,[["__scopeId","data-v-73bfd256"]]);export{$e as default};
@@ -6,4 +6,4 @@ import{g as getDefaultExportFromCjs}from"./dayjs-DO-COJPZ.js";var mock$1={export
6
6
  `?(g.seenCR||g.line++,g.column=1,g.seenCR=!1):$==="\r"||$==="\u2028"||$==="\u2029"?(g.line++,g.column=1,g.seenCR=!0):(g.column++,g.seenCR=!1)}return K!==e&&(K>e&&(K=0,s0={line:1,column:1,seenCR:!1}),t(s0,K,e),K=e),s0}function R(e){r0>r||(r>r0&&(r0=r,a0=[]),a0.push(e))}function u0(e){var t=0;for(e.sort();t<e.length;)e[t-1]===e[t]?e.splice(t,1):t++}function I(){var e,t,g,k,S;return e=r,t=W(),t!==null?(g=r,E.charCodeAt(r)===124?(k=L2,r++):(k=null,w===0&&R(F2)),k!==null?(S=I(),S!==null?(k=[k,S],g=k):(r=g,g=M)):(r=g,g=M),g===null&&(g=G),g!==null?(H=e,t=I2(t,g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M),e}function W(){var e,t,g,k,S;if(e=r,t=z(),t===null&&(t=G),t!==null)if(g=r,w++,k=B(),w--,k===null?g=G:(r=g,g=M),g!==null){for(k=[],S=Y(),S===null&&(S=X());S!==null;)k.push(S),S=Y(),S===null&&(S=X());k!==null?(S=J(),S===null&&(S=G),S!==null?(H=e,t=q2(t,k,S),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M)}else r=e,e=M;else r=e,e=M;return e}function X(){var e;return e=x2(),e===null&&(e=w2(),e===null&&(e=A2())),e}function z(){var e,t;return e=r,E.charCodeAt(r)===94?(t=P0,r++):(t=null,w===0&&R(D0)),t!==null&&(H=e,t=N2()),t===null&&(r=e),e=t,e}function J(){var e,t;return e=r,E.charCodeAt(r)===36?(t=U2,r++):(t=null,w===0&&R(j2)),t!==null&&(H=e,t=B2()),t===null&&(r=e),e=t,e}function Y(){var e,t,g;return e=r,t=X(),t!==null?(g=B(),g!==null?(H=e,t=z2(t,g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M),e}function B(){var e,t,g;return w++,e=r,t=q(),t!==null?(g=m2(),g===null&&(g=G),g!==null?(H=e,t=X2(t,g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M),w--,e===null&&(t=null,w===0&&R(G2)),e}function q(){var e;return e=f2(),e===null&&(e=h2(),e===null&&(e=p2(),e===null&&(e=d2(),e===null&&(e=v2(),e===null&&(e=g2()))))),e}function f2(){var e,t,g,k,S,j;return e=r,E.charCodeAt(r)===123?(t=i0,r++):(t=null,w===0&&R(o0)),t!==null?(g=V(),g!==null?(E.charCodeAt(r)===44?(k=K2,r++):(k=null,w===0&&R($2)),k!==null?(S=V(),S!==null?(E.charCodeAt(r)===125?(j=O0,r++):(j=null,w===0&&R(L0)),j!==null?(H=e,t=W2(g,S),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M)):(r=e,e=M)):(r=e,e=M)):(r=e,e=M),e}function h2(){var e,t,g,k;return e=r,E.charCodeAt(r)===123?(t=i0,r++):(t=null,w===0&&R(o0)),t!==null?(g=V(),g!==null?(E.substr(r,2)===F0?(k=F0,r+=2):(k=null,w===0&&R(J2)),k!==null?(H=e,t=Y2(g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M)):(r=e,e=M),e}function p2(){var e,t,g,k;return e=r,E.charCodeAt(r)===123?(t=i0,r++):(t=null,w===0&&R(o0)),t!==null?(g=V(),g!==null?(E.charCodeAt(r)===125?(k=O0,r++):(k=null,w===0&&R(L0)),k!==null?(H=e,t=V2(g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M)):(r=e,e=M),e}function d2(){var e,t;return e=r,E.charCodeAt(r)===43?(t=_2,r++):(t=null,w===0&&R(Q2)),t!==null&&(H=e,t=Z2()),t===null&&(r=e),e=t,e}function v2(){var e,t;return e=r,E.charCodeAt(r)===42?(t=e1,r++):(t=null,w===0&&R(t1)),t!==null&&(H=e,t=n1()),t===null&&(r=e),e=t,e}function g2(){var e,t;return e=r,E.charCodeAt(r)===63?(t=I0,r++):(t=null,w===0&&R(q0)),t!==null&&(H=e,t=r1()),t===null&&(r=e),e=t,e}function m2(){var e;return E.charCodeAt(r)===63?(e=I0,r++):(e=null,w===0&&R(q0)),e}function V(){var e,t,g;if(e=r,t=[],N0.test(E.charAt(r))?(g=E.charAt(r),r++):(g=null,w===0&&R(U0)),g!==null)for(;g!==null;)t.push(g),N0.test(E.charAt(r))?(g=E.charAt(r),r++):(g=null,w===0&&R(U0));else t=M;return t!==null&&(H=e,t=a1(t)),t===null&&(r=e),e=t,e}function x2(){var e,t,g,k;return e=r,E.charCodeAt(r)===40?(t=u1,r++):(t=null,w===0&&R(l1)),t!==null?(g=C2(),g===null&&(g=E2(),g===null&&(g=b2(),g===null&&(g=y2()))),g!==null?(E.charCodeAt(r)===41?(k=i1,r++):(k=null,w===0&&R(o1)),k!==null?(H=e,t=c1(g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M)):(r=e,e=M),e}function y2(){var e,t;return e=r,t=I(),t!==null&&(H=e,t=s1(t)),t===null&&(r=e),e=t,e}function b2(){var e,t,g;return e=r,E.substr(r,2)===j0?(t=j0,r+=2):(t=null,w===0&&R(f1)),t!==null?(g=I(),g!==null?(H=e,t=h1(g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M),e}function C2(){var e,t,g;return e=r,E.substr(r,2)===B0?(t=B0,r+=2):(t=null,w===0&&R(p1)),t!==null?(g=I(),g!==null?(H=e,t=d1(g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M),e}function E2(){var e,t,g;return e=r,E.substr(r,2)===z0?(t=z0,r+=2):(t=null,w===0&&R(v1)),t!==null?(g=I(),g!==null?(H=e,t=g1(g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M),e}function w2(){var e,t,g,k,S;if(w++,e=r,E.charCodeAt(r)===91?(t=x1,r++):(t=null,w===0&&R(y1)),t!==null)if(E.charCodeAt(r)===94?(g=P0,r++):(g=null,w===0&&R(D0)),g===null&&(g=G),g!==null){for(k=[],S=f0(),S===null&&(S=_());S!==null;)k.push(S),S=f0(),S===null&&(S=_());k!==null?(E.charCodeAt(r)===93?(S=b1,r++):(S=null,w===0&&R(C1)),S!==null?(H=e,t=E1(g,k),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M)}else r=e,e=M;else r=e,e=M;return w--,e===null&&(t=null,w===0&&R(m1)),e}function f0(){var e,t,g,k;return w++,e=r,t=_(),t!==null?(E.charCodeAt(r)===45?(g=R1,r++):(g=null,w===0&&R(k1)),g!==null?(k=_(),k!==null?(H=e,t=A1(t,k),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M)):(r=e,e=M),w--,e===null&&(t=null,w===0&&R(w1)),e}function _(){var e;return w++,e=k2(),e===null&&(e=R2()),w--,e===null&&w===0&&R(M1),e}function R2(){var e,t;return e=r,H1.test(E.charAt(r))?(t=E.charAt(r),r++):(t=null,w===0&&R(T1)),t!==null&&(H=e,t=c0(t)),t===null&&(r=e),e=t,e}function k2(){var e;return e=S2(),e===null&&(e=w0(),e===null&&(e=h0(),e===null&&(e=p0(),e===null&&(e=d0(),e===null&&(e=v0(),e===null&&(e=g0(),e===null&&(e=m0(),e===null&&(e=x0(),e===null&&(e=y0(),e===null&&(e=b0(),e===null&&(e=C0(),e===null&&(e=E0(),e===null&&(e=R0(),e===null&&(e=k0(),e===null&&(e=A0(),e===null&&(e=M0(),e===null&&(e=H0()))))))))))))))))),e}function A2(){var e;return e=M2(),e===null&&(e=T2(),e===null&&(e=H2())),e}function M2(){var e,t;return e=r,E.charCodeAt(r)===46?(t=S1,r++):(t=null,w===0&&R(P1)),t!==null&&(H=e,t=D1()),t===null&&(r=e),e=t,e}function H2(){var e,t;return w++,e=r,L1.test(E.charAt(r))?(t=E.charAt(r),r++):(t=null,w===0&&R(F1)),t!==null&&(H=e,t=c0(t)),t===null&&(r=e),e=t,w--,e===null&&(t=null,w===0&&R(O1)),e}function T2(){var e;return e=P2(),e===null&&(e=D2(),e===null&&(e=w0(),e===null&&(e=h0(),e===null&&(e=p0(),e===null&&(e=d0(),e===null&&(e=v0(),e===null&&(e=g0(),e===null&&(e=m0(),e===null&&(e=x0(),e===null&&(e=y0(),e===null&&(e=b0(),e===null&&(e=C0(),e===null&&(e=E0(),e===null&&(e=O2(),e===null&&(e=R0(),e===null&&(e=k0(),e===null&&(e=A0(),e===null&&(e=M0(),e===null&&(e=H0()))))))))))))))))))),e}function S2(){var e,t;return e=r,E.substr(r,2)===Z?(t=Z,r+=2):(t=null,w===0&&R(G0)),t!==null&&(H=e,t=I1()),t===null&&(r=e),e=t,e}function P2(){var e,t;return e=r,E.substr(r,2)===Z?(t=Z,r+=2):(t=null,w===0&&R(G0)),t!==null&&(H=e,t=q1()),t===null&&(r=e),e=t,e}function D2(){var e,t;return e=r,E.substr(r,2)===X0?(t=X0,r+=2):(t=null,w===0&&R(N1)),t!==null&&(H=e,t=U1()),t===null&&(r=e),e=t,e}function h0(){var e,t;return e=r,E.substr(r,2)===K0?(t=K0,r+=2):(t=null,w===0&&R(j1)),t!==null&&(H=e,t=B1()),t===null&&(r=e),e=t,e}function p0(){var e,t;return e=r,E.substr(r,2)===$0?(t=$0,r+=2):(t=null,w===0&&R(z1)),t!==null&&(H=e,t=G1()),t===null&&(r=e),e=t,e}function d0(){var e,t;return e=r,E.substr(r,2)===W0?(t=W0,r+=2):(t=null,w===0&&R(X1)),t!==null&&(H=e,t=K1()),t===null&&(r=e),e=t,e}function v0(){var e,t;return e=r,E.substr(r,2)===J0?(t=J0,r+=2):(t=null,w===0&&R($1)),t!==null&&(H=e,t=W1()),t===null&&(r=e),e=t,e}function g0(){var e,t;return e=r,E.substr(r,2)===Y0?(t=Y0,r+=2):(t=null,w===0&&R(J1)),t!==null&&(H=e,t=Y1()),t===null&&(r=e),e=t,e}function m0(){var e,t;return e=r,E.substr(r,2)===V0?(t=V0,r+=2):(t=null,w===0&&R(V1)),t!==null&&(H=e,t=_1()),t===null&&(r=e),e=t,e}function x0(){var e,t;return e=r,E.substr(r,2)===_0?(t=_0,r+=2):(t=null,w===0&&R(Q1)),t!==null&&(H=e,t=Z1()),t===null&&(r=e),e=t,e}function y0(){var e,t;return e=r,E.substr(r,2)===Q0?(t=Q0,r+=2):(t=null,w===0&&R(e3)),t!==null&&(H=e,t=t3()),t===null&&(r=e),e=t,e}function b0(){var e,t;return e=r,E.substr(r,2)===Z0?(t=Z0,r+=2):(t=null,w===0&&R(n3)),t!==null&&(H=e,t=r3()),t===null&&(r=e),e=t,e}function C0(){var e,t;return e=r,E.substr(r,2)===e2?(t=e2,r+=2):(t=null,w===0&&R(a3)),t!==null&&(H=e,t=u3()),t===null&&(r=e),e=t,e}function E0(){var e,t;return e=r,E.substr(r,2)===t2?(t=t2,r+=2):(t=null,w===0&&R(l3)),t!==null&&(H=e,t=i3()),t===null&&(r=e),e=t,e}function w0(){var e,t,g;return e=r,E.substr(r,2)===n2?(t=n2,r+=2):(t=null,w===0&&R(o3)),t!==null?(E.length>r?(g=E.charAt(r),r++):(g=null,w===0&&R(r2)),g!==null?(H=e,t=c3(g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M),e}function O2(){var e,t,g;return e=r,E.charCodeAt(r)===92?(t=a2,r++):(t=null,w===0&&R(u2)),t!==null?(s3.test(E.charAt(r))?(g=E.charAt(r),r++):(g=null,w===0&&R(f3)),g!==null?(H=e,t=h3(g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M),e}function R0(){var e,t,g,k;if(e=r,E.substr(r,2)===e0?(t=e0,r+=2):(t=null,w===0&&R(l2)),t!==null){if(g=[],i2.test(E.charAt(r))?(k=E.charAt(r),r++):(k=null,w===0&&R(o2)),k!==null)for(;k!==null;)g.push(k),i2.test(E.charAt(r))?(k=E.charAt(r),r++):(k=null,w===0&&R(o2));else g=M;g!==null?(H=e,t=p3(g),t===null&&(r=e),e=t):(r=e,e=M)}else r=e,e=M;return e}function k0(){var e,t,g,k;if(e=r,E.substr(r,2)===c2?(t=c2,r+=2):(t=null,w===0&&R(d3)),t!==null){if(g=[],t0.test(E.charAt(r))?(k=E.charAt(r),r++):(k=null,w===0&&R(n0)),k!==null)for(;k!==null;)g.push(k),t0.test(E.charAt(r))?(k=E.charAt(r),r++):(k=null,w===0&&R(n0));else g=M;g!==null?(H=e,t=v3(g),t===null&&(r=e),e=t):(r=e,e=M)}else r=e,e=M;return e}function A0(){var e,t,g,k;if(e=r,E.substr(r,2)===s2?(t=s2,r+=2):(t=null,w===0&&R(g3)),t!==null){if(g=[],t0.test(E.charAt(r))?(k=E.charAt(r),r++):(k=null,w===0&&R(n0)),k!==null)for(;k!==null;)g.push(k),t0.test(E.charAt(r))?(k=E.charAt(r),r++):(k=null,w===0&&R(n0));else g=M;g!==null?(H=e,t=m3(g),t===null&&(r=e),e=t):(r=e,e=M)}else r=e,e=M;return e}function M0(){var e,t;return e=r,E.substr(r,2)===e0?(t=e0,r+=2):(t=null,w===0&&R(l2)),t!==null&&(H=e,t=x3()),t===null&&(r=e),e=t,e}function H0(){var e,t,g;return e=r,E.charCodeAt(r)===92?(t=a2,r++):(t=null,w===0&&R(u2)),t!==null?(E.length>r?(g=E.charAt(r),r++):(g=null,w===0&&R(r2)),g!==null?(H=e,t=c0(g),t===null&&(r=e),e=t):(r=e,e=M)):(r=e,e=M),e}var l0,Q=arguments.length>1?arguments[1]:{},T0={regexp:I},S0=I,M=null,G="",L2="|",F2='"|"',I2=function(e,t){return t?new u(e,t[1]):e},q2=function(e,t,g){return new a([e].concat(t).concat([g]))},P0="^",D0='"^"',N2=function(){return new n("start")},U2="$",j2='"$"',B2=function(){return new n("end")},z2=function(e,t){return new p(e,t)},G2="Quantifier",X2=function(e,t){return t&&(e.greedy=!1),e},i0="{",o0='"{"',K2=",",$2='","',O0="}",L0='"}"',W2=function(e,t){return new f(e,t)},F0=",}",J2='",}"',Y2=function(e){return new f(e,1/0)},V2=function(e){return new f(e,e)},_2="+",Q2='"+"',Z2=function(){return new f(1,1/0)},e1="*",t1='"*"',n1=function(){return new f(0,1/0)},I0="?",q0='"?"',r1=function(){return new f(0,1)},N0=/^[0-9]/,U0="[0-9]",a1=function(e){return+e.join("")},u1="(",l1='"("',i1=")",o1='")"',c1=function(e){return e},s1=function(e){return new c(e)},j0="?:",f1='"?:"',h1=function(e){return new s("non-capture-group",e)},B0="?=",p1='"?="',d1=function(e){return new s("positive-lookahead",e)},z0="?!",v1='"?!"',g1=function(e){return new s("negative-lookahead",e)},m1="CharacterSet",x1="[",y1='"["',b1="]",C1='"]"',E1=function(e,t){return new o(!!e,t)},w1="CharacterRange",R1="-",k1='"-"',A1=function(e,t){return new v(e,t)},M1="Character",H1=/^[^\\\]]/,T1="[^\\\\\\]]",c0=function(e){return new y(e)},S1=".",P1='"."',D1=function(){return new n("any-character")},O1="Literal",L1=/^[^|\\\/.[()?+*$\^]/,F1="[^|\\\\\\/.[()?+*$\\^]",Z="\\b",G0='"\\\\b"',I1=function(){return new n("backspace")},q1=function(){return new n("word-boundary")},X0="\\B",N1='"\\\\B"',U1=function(){return new n("non-word-boundary")},K0="\\d",j1='"\\\\d"',B1=function(){return new n("digit")},$0="\\D",z1='"\\\\D"',G1=function(){return new n("non-digit")},W0="\\f",X1='"\\\\f"',K1=function(){return new n("form-feed")},J0="\\n",$1='"\\\\n"',W1=function(){return new n("line-feed")},Y0="\\r",J1='"\\\\r"',Y1=function(){return new n("carriage-return")},V0="\\s",V1='"\\\\s"',_1=function(){return new n("white-space")},_0="\\S",Q1='"\\\\S"',Z1=function(){return new n("non-white-space")},Q0="\\t",e3='"\\\\t"',t3=function(){return new n("tab")},Z0="\\v",n3='"\\\\v"',r3=function(){return new n("vertical-tab")},e2="\\w",a3='"\\\\w"',u3=function(){return new n("word")},t2="\\W",l3='"\\\\W"',i3=function(){return new n("non-word")},n2="\\c",o3='"\\\\c"',r2="any character",c3=function(e){return new b(e)},a2="\\",u2='"\\\\"',s3=/^[1-9]/,f3="[1-9]",h3=function(e){return new d(e)},e0="\\0",l2='"\\\\0"',i2=/^[0-7]/,o2="[0-7]",p3=function(e){return new h(e.join(""))},c2="\\x",d3='"\\\\x"',t0=/^[0-9a-fA-F]/,n0="[0-9a-fA-F]",v3=function(e){return new C(e.join(""))},s2="\\u",g3='"\\\\u"',m3=function(e){return new m(e.join(""))},x3=function(){return new n("null-character")},r=0,H=0,K=0,s0={line:1,column:1,seenCR:!1},r0=0,a0=[],w=0;if("startRule"in Q){if(!(Q.startRule in T0))throw new Error(`Can't start parsing from rule "`+Q.startRule+'".');S0=T0[Q.startRule]}if(n.offset=F,n.text=O,l0=S0(),l0!==null&&r===E.length)return l0;throw u0(a0),H=Math.max(r,r0),new D(a0,H<E.length?E.charAt(H):null,H,U(H).line,U(H).column)}return T(D,Error),{SyntaxError:D,parse:N}}(),P=1,L={};l.exports=A},function(l,x,n){var u=n(3),a=n(5),s={extend:u.extend},c=C(97,122),p=C(65,90),f=C(48,57),o=C(32,47)+C(58,64)+C(91,96)+C(123,126),v=C(32,126),y=` \f
7
7
  \r \v \u2028\u2029`,m={"\\w":c+p+f+"_","\\W":o.replace("_",""),"\\s":y,"\\S":function(){for(var h=v,d=0;d<y.length;d++)h=h.replace(y[d],"");return h}(),"\\d":f,"\\D":c+p+o};function C(h,d){for(var b="",A=h;A<=d;A++)b+=String.fromCharCode(A);return b}s.gen=function(h,d,b){return b=b||{guid:1},s[h.type]?s[h.type](h,d,b):s.token(h,d,b)},s.extend({token:function(h,d,b){switch(h.type){case"start":case"end":return"";case"any-character":return a.character();case"backspace":return"";case"word-boundary":return"";case"non-word-boundary":break;case"digit":return a.pick(f.split(""));case"non-digit":return a.pick((c+p+o).split(""));case"form-feed":break;case"line-feed":return h.body||h.text;case"carriage-return":break;case"white-space":return a.pick(y.split(""));case"non-white-space":return a.pick((c+p+f).split(""));case"tab":break;case"vertical-tab":break;case"word":return a.pick((c+p+f).split(""));case"non-word":return a.pick(o.replace("_","").split(""))}return h.body||h.text},alternate:function(h,d,b){return this.gen(a.boolean()?h.left:h.right,d,b)},match:function(h,d,b){d="";for(var A=0;A<h.body.length;A++)d+=this.gen(h.body[A],d,b);return d},"capture-group":function(h,d,b){return d=this.gen(h.body,d,b),b[b.guid++]=d,d},"non-capture-group":function(h,d,b){return this.gen(h.body,d,b)},"positive-lookahead":function(h,d,b){return this.gen(h.body,d,b)},"negative-lookahead":function(h,d,b){return""},quantified:function(h,d,b){d="";for(var A=this.quantifier(h.quantifier),P=0;P<A;P++)d+=this.gen(h.body,d,b);return d},quantifier:function(h,d,b){var A=Math.max(h.min,0),P=isFinite(h.max)?h.max:A+a.integer(3,7);return a.integer(A,P)},charset:function(h,d,b){if(h.invert)return this["invert-charset"](h,d,b);var A=a.pick(h.body);return this.gen(A,d,b)},"invert-charset":function(h,d,b){for(var A=v,P=0,L;P<h.body.length;P++)switch(L=h.body[P],L.type){case"literal":A=A.replace(L.body,"");break;case"range":for(var T=this.gen(L.start,d,b).charCodeAt(),D=this.gen(L.end,d,b).charCodeAt(),N=T;N<=D;N++)A=A.replace(String.fromCharCode(N),"");default:var E=m[L.text];if(E)for(var O=0;O<=E.length;O++)A=A.replace(E[O],"")}return a.pick(A.split(""))},range:function(h,d,b){var A=this.gen(h.start,d,b).charCodeAt(),P=this.gen(h.end,d,b).charCodeAt();return String.fromCharCode(a.integer(A,P))},literal:function(h,d,b){return h.escaped?h.body:h.text},unicode:function(h,d,b){return String.fromCharCode(parseInt(h.code,16))},hex:function(h,d,b){return String.fromCharCode(parseInt(h.code,16))},octal:function(h,d,b){return String.fromCharCode(parseInt(h.code,8))},"back-reference":function(h,d,b){return b[h.code]||""},CONTROL_CHARACTER_MAP:function(){for(var h="@ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \\ ] ^ _".split(" "),d=`\0       \x07 \b
8
8
  \v \f \r              \x1B    `.split(" "),b={},A=0;A<h.length;A++)b[h[A]]=d[A];return b}(),"control-character":function(h,d,b){return this.CONTROL_CHARACTER_MAP[h.code]}}),l.exports=s},function(l,x,n){l.exports=n(24)},function(l,x,n){var u=n(2),a=n(3),s=n(4);function c(p,f,o){o=o||[];var v={name:typeof f=="string"?f.replace(u.RE_KEY,"$1"):f,template:p,type:a.type(p),rule:s.parse(f)};switch(v.path=o.slice(0),v.path.push(f===void 0?"ROOT":v.name),v.type){case"array":v.items=[],a.each(p,function(y,m){v.items.push(c(y,m,v.path))});break;case"object":v.properties=[],a.each(p,function(y,m){v.properties.push(c(y,m,v.path))});break}return v}l.exports=c},function(l,x,n){l.exports=n(26)},function(l,x,n){var u=n(2),a=n(3),s=n(23);function c(o,v){for(var y=s(o),m=p.diff(y,v),C=0;C<m.length;C++);return m}var p={diff:function(v,y,m){var C=[];return this.name(v,y,m,C)&&this.type(v,y,m,C)&&(this.value(v,y,m,C),this.properties(v,y,m,C),this.items(v,y,m,C)),C},name:function(o,v,y,m){var C=m.length;return f.equal("name",o.path,y+"",o.name+"",m),m.length===C},type:function(o,v,y,m){var C=m.length;switch(o.type){case"string":if(o.template.match(u.RE_PLACEHOLDER))return!0;break;case"array":if(o.rule.parameters&&(o.rule.min!==void 0&&o.rule.max===void 0&&o.rule.count===1||o.rule.parameters[2]))return!0;break;case"function":return!0}return f.equal("type",o.path,a.type(v),o.type,m),m.length===C},value:function(o,v,y,m){var C=m.length,h=o.rule,d=o.type;if(d==="object"||d==="array"||d==="function")return!0;if(!h.parameters){switch(d){case"regexp":return f.match("value",o.path,v,o.template,m),m.length===C;case"string":if(o.template.match(u.RE_PLACEHOLDER))return m.length===C;break}return f.equal("value",o.path,v,o.template,m),m.length===C}var b;switch(d){case"number":var A=(v+"").split(".");A[0]=+A[0],h.min!==void 0&&h.max!==void 0&&(f.greaterThanOrEqualTo("value",o.path,A[0],Math.min(h.min,h.max),m),f.lessThanOrEqualTo("value",o.path,A[0],Math.max(h.min,h.max),m)),h.min!==void 0&&h.max===void 0&&f.equal("value",o.path,A[0],h.min,m,"[value] "+y),h.decimal&&(h.dmin!==void 0&&h.dmax!==void 0&&(f.greaterThanOrEqualTo("value",o.path,A[1].length,h.dmin,m),f.lessThanOrEqualTo("value",o.path,A[1].length,h.dmax,m)),h.dmin!==void 0&&h.dmax===void 0&&f.equal("value",o.path,A[1].length,h.dmin,m));break;case"boolean":break;case"string":b=v.match(new RegExp(o.template,"g")),b=b?b.length:0,h.min!==void 0&&h.max!==void 0&&(f.greaterThanOrEqualTo("repeat count",o.path,b,h.min,m),f.lessThanOrEqualTo("repeat count",o.path,b,h.max,m)),h.min!==void 0&&h.max===void 0&&f.equal("repeat count",o.path,b,h.min,m);break;case"regexp":b=v.match(new RegExp(o.template.source.replace(/^\^|\$$/g,""),"g")),b=b?b.length:0,h.min!==void 0&&h.max!==void 0&&(f.greaterThanOrEqualTo("repeat count",o.path,b,h.min,m),f.lessThanOrEqualTo("repeat count",o.path,b,h.max,m)),h.min!==void 0&&h.max===void 0&&f.equal("repeat count",o.path,b,h.min,m);break}return m.length===C},properties:function(o,v,y,m){var C=m.length,h=o.rule,d=a.keys(v);if(o.properties){if(o.rule.parameters?(h.min!==void 0&&h.max!==void 0&&(f.greaterThanOrEqualTo("properties length",o.path,d.length,Math.min(h.min,h.max),m),f.lessThanOrEqualTo("properties length",o.path,d.length,Math.max(h.min,h.max),m)),h.min!==void 0&&h.max===void 0&&h.count!==1&&f.equal("properties length",o.path,d.length,h.min,m)):f.equal("properties length",o.path,d.length,o.properties.length,m),m.length!==C)return!1;for(var b=0;b<d.length;b++)m.push.apply(m,this.diff(function(){var A;return a.each(o.properties,function(P){P.name===d[b]&&(A=P)}),A||o.properties[b]}(),v[d[b]],d[b]));return m.length===C}},items:function(o,v,y,m){var C=m.length;if(o.items){var h=o.rule;if(!o.rule.parameters)f.equal("items length",o.path,v.length,o.items.length,m);else{if(h.min!==void 0&&h.max!==void 0&&(f.greaterThanOrEqualTo("items",o.path,v.length,Math.min(h.min,h.max)*o.items.length,m,"[{utype}] array is too short: {path} must have at least {expected} elements but instance has {actual} elements"),f.lessThanOrEqualTo("items",o.path,v.length,Math.max(h.min,h.max)*o.items.length,m,"[{utype}] array is too long: {path} must have at most {expected} elements but instance has {actual} elements")),h.min!==void 0&&h.max===void 0){if(h.count===1)return m.length===C;f.equal("items length",o.path,v.length,h.min*o.items.length,m)}if(h.parameters[2])return m.length===C}if(m.length!==C)return!1;for(var d=0;d<v.length;d++)m.push.apply(m,this.diff(o.items[d%o.items.length],v[d],d%o.items.length));return m.length===C}}},f={message:function(o){return(o.message||"[{utype}] Expect {path}'{ltype} {action} {expected}, but is {actual}").replace("{utype}",o.type.toUpperCase()).replace("{ltype}",o.type.toLowerCase()).replace("{path}",a.isArray(o.path)&&o.path.join(".")||o.path).replace("{action}",o.action).replace("{expected}",o.expected).replace("{actual}",o.actual)},equal:function(o,v,y,m,C,h){if(y===m)return!0;switch(o){case"type":if(m==="regexp"&&y==="string")return!0;break}var d={path:v,type:o,actual:y,expected:m,action:"is equal to",message:h};return d.message=f.message(d),C.push(d),!1},match:function(o,v,y,m,C,h){if(m.test(y))return!0;var d={path:v,type:o,actual:y,expected:m,action:"matches",message:h};return d.message=f.message(d),C.push(d),!1},notEqual:function(o,v,y,m,C,h){if(y!==m)return!0;var d={path:v,type:o,actual:y,expected:m,action:"is not equal to",message:h};return d.message=f.message(d),C.push(d),!1},greaterThan:function(o,v,y,m,C,h){if(y>m)return!0;var d={path:v,type:o,actual:y,expected:m,action:"is greater than",message:h};return d.message=f.message(d),C.push(d),!1},lessThan:function(o,v,y,m,C,h){if(y<m)return!0;var d={path:v,type:o,actual:y,expected:m,action:"is less to",message:h};return d.message=f.message(d),C.push(d),!1},greaterThanOrEqualTo:function(o,v,y,m,C,h){if(y>=m)return!0;var d={path:v,type:o,actual:y,expected:m,action:"is greater than or equal to",message:h};return d.message=f.message(d),C.push(d),!1},lessThanOrEqualTo:function(o,v,y,m,C,h){if(y<=m)return!0;var d={path:v,type:o,actual:y,expected:m,action:"is less than or equal to",message:h};return d.message=f.message(d),C.push(d),!1}};c.Diff=p,c.Assert=f,l.exports=c},function(l,x,n){l.exports=n(28)},function(l,x,n){var u=n(3);window._XMLHttpRequest=window.XMLHttpRequest,window._ActiveXObject=window.ActiveXObject;try{new window.Event("custom")}catch(C){window.Event=function(h,d,b,A){var P=document.createEvent("CustomEvent");return P.initCustomEvent(h,d,b,A),P}}var a={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},s="readystatechange loadstart progress abort error load timeout loadend".split(" "),c="timeout withCredentials".split(" "),p="readyState responseURL status statusText responseType response responseText responseXML".split(" "),f={200:"OK"};function o(){this.custom={events:{},requestHeaders:{},responseHeaders:{}}}o._settings={timeout:"10-100"},o.setup=function(C){return u.extend(o._settings,C),o._settings},u.extend(o,a),u.extend(o.prototype,a),o.prototype.mock=!0,o.prototype.match=!1,u.extend(o.prototype,{open:function(C,h,d,b,A){var P=this;u.extend(this.custom,{method:C,url:h,async:typeof d=="boolean"?d:!0,username:b,password:A,options:{url:h,type:C}}),this.custom.timeout=function(O){if(typeof O=="number")return O;if(typeof O=="string"&&!~O.indexOf("-"))return parseInt(O,10);if(typeof O=="string"&&~O.indexOf("-")){var F=O.split("-"),U=parseInt(F[0],10),R=parseInt(F[1],10);return Math.round(Math.random()*(R-U))+U}}(o._settings.timeout);var L=y(this.custom.options);function T(O){for(var F=0;F<p.length;F++)try{P[p[F]]=D[p[F]]}catch(U){}P.dispatchEvent(new Event(O.type))}if(!L){var D=v();this.custom.xhr=D;for(var N=0;N<s.length;N++)D.addEventListener(s[N],T);b?D.open(C,h,d,b,A):D.open(C,h,d);for(var E=0;E<c.length;E++)try{D[c[E]]=P[c[E]]}catch(O){}return}this.match=!0,this.custom.template=L,this.readyState=o.OPENED,this.dispatchEvent(new Event("readystatechange"))},setRequestHeader:function(C,h){if(!this.match){this.custom.xhr.setRequestHeader(C,h);return}var d=this.custom.requestHeaders;d[C]?d[C]+=","+h:d[C]=h},timeout:0,withCredentials:!1,upload:{},send:function(h){var d=this;if(this.custom.options.body=h,!this.match){this.custom.xhr.send(h);return}this.setRequestHeader("X-Requested-With","MockXMLHttpRequest"),this.dispatchEvent(new Event("loadstart")),this.custom.async?setTimeout(b,this.custom.timeout):b();function b(){d.readyState=o.HEADERS_RECEIVED,d.dispatchEvent(new Event("readystatechange")),d.readyState=o.LOADING,d.dispatchEvent(new Event("readystatechange")),d.status=200,d.statusText=f[200],d.response=d.responseText=JSON.stringify(m(d.custom.template,d.custom.options),null,4),d.readyState=o.DONE,d.dispatchEvent(new Event("readystatechange")),d.dispatchEvent(new Event("load")),d.dispatchEvent(new Event("loadend"))}},abort:function(){if(!this.match){this.custom.xhr.abort();return}this.readyState=o.UNSENT,this.dispatchEvent(new Event("abort",!1,!1,this)),this.dispatchEvent(new Event("error",!1,!1,this))}}),u.extend(o.prototype,{responseURL:"",status:o.UNSENT,statusText:"",getResponseHeader:function(C){return this.match?this.custom.responseHeaders[C.toLowerCase()]:this.custom.xhr.getResponseHeader(C)},getAllResponseHeaders:function(){if(!this.match)return this.custom.xhr.getAllResponseHeaders();var C=this.custom.responseHeaders,h="";for(var d in C)C.hasOwnProperty(d)&&(h+=d+": "+C[d]+`\r
9
- `);return h},overrideMimeType:function(){},responseType:"",response:null,responseText:"",responseXML:null}),u.extend(o.prototype,{addEventListener:function(h,d){var b=this.custom.events;b[h]||(b[h]=[]),b[h].push(d)},removeEventListener:function(h,d){for(var b=this.custom.events[h]||[],A=0;A<b.length;A++)b[A]===d&&b.splice(A--,1)},dispatchEvent:function(h){for(var d=this.custom.events[h.type]||[],b=0;b<d.length;b++)d[b].call(this,h);var A="on"+h.type;this[A]&&this[A](h)}});function v(){var C=function(){var b=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,A=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,P=location.href,L=A.exec(P.toLowerCase())||[];return b.test(L[1])}();return window.ActiveXObject?!C&&h()||d():h();function h(){try{return new window._XMLHttpRequest}catch(b){}}function d(){try{return new window._ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}}function y(C){for(var h in o.Mock._mocked){var d=o.Mock._mocked[h];if((!d.rurl||b(d.rurl,C.url))&&(!d.rtype||b(d.rtype,C.type.toLowerCase())))return d}function b(A,P){if(u.type(A)==="string")return A===P;if(u.type(A)==="regexp")return A.test(P)}}function m(C,h){return u.isFunction(C.template)?C.template(h):o.Mock.mock(C.template)}l.exports=o}])})}(mock$1)),mock$1.exports}var mockExports=requireMock();const Eo=getDefaultExportFromCjs(mockExports);export{Eo as E};
9
+ `);return h},overrideMimeType:function(){},responseType:"",response:null,responseText:"",responseXML:null}),u.extend(o.prototype,{addEventListener:function(h,d){var b=this.custom.events;b[h]||(b[h]=[]),b[h].push(d)},removeEventListener:function(h,d){for(var b=this.custom.events[h]||[],A=0;A<b.length;A++)b[A]===d&&b.splice(A--,1)},dispatchEvent:function(h){for(var d=this.custom.events[h.type]||[],b=0;b<d.length;b++)d[b].call(this,h);var A="on"+h.type;this[A]&&this[A](h)}});function v(){var C=function(){var b=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,A=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,P=location.href,L=A.exec(P.toLowerCase())||[];return b.test(L[1])}();return window.ActiveXObject?!C&&h()||d():h();function h(){try{return new window._XMLHttpRequest}catch(b){}}function d(){try{return new window._ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}}function y(C){for(var h in o.Mock._mocked){var d=o.Mock._mocked[h];if((!d.rurl||b(d.rurl,C.url))&&(!d.rtype||b(d.rtype,C.type.toLowerCase())))return d}function b(A,P){if(u.type(A)==="string")return A===P;if(u.type(A)==="regexp")return A.test(P)}}function m(C,h){return u.isFunction(C.template)?C.template(h):o.Mock.mock(C.template)}l.exports=o}])})}(mock$1)),mock$1.exports}var mockExports=requireMock();const Vo=getDefaultExportFromCjs(mockExports);export{Vo as V};
@@ -1,2 +1,2 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-BO40Wv73.js","./vue-BfodOvnP.js"])))=>i.map(i=>d[i]);
2
- var R=Object.defineProperty;var v=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable;var E=(o,e,t)=>e in o?R(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,d=(o,e)=>{for(var t in e||(e={}))h.call(e,t)&&E(o,t,e[t]);if(v)for(var t of v(e))x.call(e,t)&&E(o,t,e[t]);return o};var l=(o,e,t)=>new Promise((p,r)=>{var i=a=>{try{n(t.next(a))}catch(m){r(m)}},c=a=>{try{n(t.throw(a))}catch(m){r(m)}},n=a=>a.done?p(a.value):Promise.resolve(a.value).then(i,c);n((t=t.apply(o,e)).next())});import{_ as w}from"./monaco-editor-B5WqzYTl.js";import{useRoute as P}from"./vue-router-BO40Wv73.js";import"./element-plus-XVJlWyfz.js";import"./vxe-CWcmrjam.js";import{y as g,m as V,u as T,d as k,w as B,A as D,c as I}from"./Editor-CyNe60Cy-DrJAuHY9.js";import{a as O,n as A,l as L,E as S}from"./utils-BJP0FOwA.js";import{q}from"./@vueuse-vmN9qs5b.js";import{d as z,ay as C,e as H,K,O as N,P as b,o as j,h as F}from"./vue-BfodOvnP.js";import"./lodash-es-BL-d_OSa.js";import"./@element-plus-icons-vue-CM-7yUXL.js";import"./shared-CzXu-bVE.js";import"./dayjs-DO-COJPZ.js";import"./html2canvas-CIV5arX1.js";import"./mockjs-Du5X89jz.js";import"./marked-BQZxLJfc.js";const ne=z({__name:"page",setup(o){return l(this,null,function*(){let e,t;const p=new g(V(A)),r=([e,t]=C(()=>p.getExtension().catch(()=>null)),e=yield e,t(),e),i=T({loading:L,notify:A,useTitle:q,alert:O,access:r==null?void 0:r.access}),c=r?([e,t]=C(()=>new S(r).load()),e=yield e,t(),e):{},{__BASE_PATH__:n="/"}=r||{},{provider:a,onReady:m}=k({mode:B.Runtime,service:p,materialPath:n,adapter:d(d({},i),c.adapter),dependencies:{Vue:()=>w(()=>import("./vue-BfodOvnP.js").then(s=>s.az),[],import.meta.url),VueRouter:()=>w(()=>import("./vue-router-BO40Wv73.js"),__vite__mapDeps([0,1]),import.meta.url)}}),f=P(),_=H(),u=F();return m(()=>l(null,null,function*(){const s=u==null?void 0:u.appContext.app;s&&(s.use(D),s.use(a),_.value=yield a.getRenderComponent(f.params.id.toString(),y=>{I(s,f,y)}))})),(s,y)=>_.value?(j(),K(b(_.value),{key:0})):N("",!0)})}});export{ne as default};
2
+ var R=Object.defineProperty;var v=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable;var E=(o,e,t)=>e in o?R(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,d=(o,e)=>{for(var t in e||(e={}))h.call(e,t)&&E(o,t,e[t]);if(v)for(var t of v(e))x.call(e,t)&&E(o,t,e[t]);return o};var l=(o,e,t)=>new Promise((p,r)=>{var i=a=>{try{n(t.next(a))}catch(m){r(m)}},c=a=>{try{n(t.throw(a))}catch(m){r(m)}},n=a=>a.done?p(a.value):Promise.resolve(a.value).then(i,c);n((t=t.apply(o,e)).next())});import{_ as w}from"./monaco-editor-B5WqzYTl.js";import{useRoute as P}from"./vue-router-BO40Wv73.js";import"./element-plus-XVJlWyfz.js";import"./vxe-CWcmrjam.js";import{y as g,m as V,u as T,d as k,w as B,A as D,c as I}from"./Editor-C4BimMkL-D3Wu75wi.js";import{a as O,n as A,l as L,E as S}from"./utils-BNNVnAjm.js";import{q}from"./@vueuse-vmN9qs5b.js";import{d as z,ay as C,e as H,K,O as N,P as b,o as j,h as F}from"./vue-BfodOvnP.js";import"./lodash-es-BL-d_OSa.js";import"./@element-plus-icons-vue-CM-7yUXL.js";import"./shared-CzXu-bVE.js";import"./dayjs-DO-COJPZ.js";import"./html2canvas-CIV5arX1.js";import"./mockjs-CRGRqvsv.js";import"./marked-BQZxLJfc.js";const ne=z({__name:"page",setup(o){return l(this,null,function*(){let e,t;const p=new g(V(A)),r=([e,t]=C(()=>p.getExtension().catch(()=>null)),e=yield e,t(),e),i=T({loading:L,notify:A,useTitle:q,alert:O,access:r==null?void 0:r.access}),c=r?([e,t]=C(()=>new S(r).load()),e=yield e,t(),e):{},{__BASE_PATH__:n="/"}=r||{},{provider:a,onReady:m}=k({mode:B.Runtime,service:p,materialPath:n,adapter:d(d({},i),c.adapter),dependencies:{Vue:()=>w(()=>import("./vue-BfodOvnP.js").then(s=>s.az),[],import.meta.url),VueRouter:()=>w(()=>import("./vue-router-BO40Wv73.js"),__vite__mapDeps([0,1]),import.meta.url)}}),f=P(),_=H(),u=F();return m(()=>l(null,null,function*(){const s=u==null?void 0:u.appContext.app;s&&(s.use(D),s.use(a),_.value=yield a.getRenderComponent(f.params.id.toString(),y=>{I(s,f,y)}))})),(s,y)=>_.value?(j(),K(b(_.value),{key:0})):N("",!0)})}});export{ne as default};
@@ -1,2 +1,2 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-BO40Wv73.js","./vue-BfodOvnP.js"])))=>i.map(i=>d[i]);
2
- var R=Object.defineProperty;var v=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var y=(o,e,t)=>e in o?R(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,d=(o,e)=>{for(var t in e||(e={}))x.call(e,t)&&y(o,t,e[t]);if(v)for(var t of v(e))P.call(e,t)&&y(o,t,e[t]);return o};var f=(o,e,t)=>new Promise((c,s)=>{var _=a=>{try{i(t.next(a))}catch(m){s(m)}},n=a=>{try{i(t.throw(a))}catch(m){s(m)}},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-B5WqzYTl.js";import{useRoute as V}from"./vue-router-BO40Wv73.js";import"./element-plus-XVJlWyfz.js";import"./vxe-CWcmrjam.js";import{y as g,m as T,u as k,d as B,w as D,h as I,A as O,c as L}from"./Editor-CyNe60Cy-DrJAuHY9.js";import{a as S,n as E,l as q,E as z}from"./utils-BJP0FOwA.js";import{q as H}from"./@vueuse-vmN9qs5b.js";import{d as K,ay as A,e as N,K as b,O as j,P as F,o as G,h as J}from"./vue-BfodOvnP.js";import"./lodash-es-BL-d_OSa.js";import"./@element-plus-icons-vue-CM-7yUXL.js";import"./shared-CzXu-bVE.js";import"./dayjs-DO-COJPZ.js";import"./html2canvas-CIV5arX1.js";import"./mockjs-Du5X89jz.js";import"./marked-BQZxLJfc.js";const me=K({__name:"preview",setup(o){return f(this,null,function*(){let e,t;const c=new g(T(E)),s=([e,t]=A(()=>c.getExtension().catch(()=>null)),e=yield e,t(),e||{}),_=k({loading:q,notify:E,useTitle:H,alert:S,access:s==null?void 0:s.access}),n=s?([e,t]=A(()=>new z(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:i="/"}=s||{},{provider:a,onReady:m}=B({mode:D.Runtime,service:c,materialPath:i,adapter:d(d({},_),n.adapter),dependencies:{Vue:()=>w(()=>import("./vue-BfodOvnP.js").then(p=>p.az),[],import.meta.url),VueRouter:()=>w(()=>import("./vue-router-BO40Wv73.js"),__vite__mapDeps([0,1]),import.meta.url)}}),h=V(),u=N(),l=J();return m(()=>f(null,null,function*(){const p=yield I(s.enhance),r=l==null?void 0:l.appContext.app;r&&(n.install&&n.install(r),p&&r.use(p,a),r.use(O),r.use(a),u.value=yield a.getRenderComponent(h.params.id.toString(),C=>{L(r,h,C)}))})),(p,r)=>u.value?(G(),b(F(u.value),{key:0})):j("",!0)})}});export{me as default};
2
+ var R=Object.defineProperty;var v=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var y=(o,e,t)=>e in o?R(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,d=(o,e)=>{for(var t in e||(e={}))x.call(e,t)&&y(o,t,e[t]);if(v)for(var t of v(e))P.call(e,t)&&y(o,t,e[t]);return o};var f=(o,e,t)=>new Promise((c,s)=>{var _=a=>{try{i(t.next(a))}catch(m){s(m)}},n=a=>{try{i(t.throw(a))}catch(m){s(m)}},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-B5WqzYTl.js";import{useRoute as V}from"./vue-router-BO40Wv73.js";import"./element-plus-XVJlWyfz.js";import"./vxe-CWcmrjam.js";import{y as g,m as T,u as k,d as B,w as D,h as I,A as O,c as L}from"./Editor-C4BimMkL-D3Wu75wi.js";import{a as S,n as E,l as q,E as z}from"./utils-BNNVnAjm.js";import{q as H}from"./@vueuse-vmN9qs5b.js";import{d as K,ay as A,e as N,K as b,O as j,P as F,o as G,h as J}from"./vue-BfodOvnP.js";import"./lodash-es-BL-d_OSa.js";import"./@element-plus-icons-vue-CM-7yUXL.js";import"./shared-CzXu-bVE.js";import"./dayjs-DO-COJPZ.js";import"./html2canvas-CIV5arX1.js";import"./mockjs-CRGRqvsv.js";import"./marked-BQZxLJfc.js";const me=K({__name:"preview",setup(o){return f(this,null,function*(){let e,t;const c=new g(T(E)),s=([e,t]=A(()=>c.getExtension().catch(()=>null)),e=yield e,t(),e||{}),_=k({loading:q,notify:E,useTitle:H,alert:S,access:s==null?void 0:s.access}),n=s?([e,t]=A(()=>new z(s).load()),e=yield e,t(),e):{},{__BASE_PATH__:i="/"}=s||{},{provider:a,onReady:m}=B({mode:D.Runtime,service:c,materialPath:i,adapter:d(d({},_),n.adapter),dependencies:{Vue:()=>w(()=>import("./vue-BfodOvnP.js").then(p=>p.az),[],import.meta.url),VueRouter:()=>w(()=>import("./vue-router-BO40Wv73.js"),__vite__mapDeps([0,1]),import.meta.url)}}),h=V(),u=N(),l=J();return m(()=>f(null,null,function*(){const p=yield I(s.enhance),r=l==null?void 0:l.appContext.app;r&&(n.install&&n.install(r),p&&r.use(p,a),r.use(O),r.use(a),u.value=yield a.getRenderComponent(h.params.id.toString(),C=>{L(r,h,C)}))})),(p,r)=>u.value?(G(),b(F(u.value),{key:0})):j("",!0)})}});export{me as default};
@@ -0,0 +1 @@
1
+ var T=Object.defineProperty;var S=Object.getOwnPropertySymbols;var I=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable;var g=(t,a,s)=>a in t?T(t,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[a]=s,_=(t,a)=>{for(var s in a||(a={}))I.call(a,s)&&g(t,s,a[s]);if(S)for(var s of S(a))d.call(a,s)&&g(t,s,a[s]);return t};var l=(t,a,s)=>g(t,typeof a!="symbol"?a+"":a,s);var p=(t,a,s)=>new Promise((o,i)=>{var e=r=>{try{n(s.next(r))}catch(E){i(E)}},c=r=>{try{n(s.throw(r))}catch(E){i(E)}},n=r=>r.done?o(r.value):Promise.resolve(r.value).then(e,c);n((s=s.apply(t,a)).next())});import{az as f}from"./vue-BfodOvnP.js";import{P as O,R as V,F as A,a as b,t as P,b as R,e as m,f as B,g as D,B as M,J as N,i as h,K as y,j as L,E as x,T as j,k as w,l as U,N as Y,O as H,V as K,n as W,I as k,M as v,z as C,q as F,L as J,o as $,r as z,s as G,Y as X,v as q,U as Z,W as Q,$ as aa,x as sa,C as ea,G as ta,H as ra,Q as ia,S as na,X as oa,Z as Ea,_ as la,a0 as _a,a1 as ca,a2 as ga,a3 as Sa,a4 as pa,a5 as ua,a6 as Ta,a7 as Ia,a8 as da,a9 as fa,aa as Oa,ab as Va,ac as Aa,ad as ba,ae as Pa,af as Ra,ag as ma,ah as Ba,ai as Da,aj as Ma,ak as Na,al as ha,am as ya,an as La,D as xa,ao as ja,ap as wa,aq as Ua,ar as Ya,as as Ha,at as Ka,au as Wa,av as ka,aw as va,ax as Ca}from"./Editor-C4BimMkL-D3Wu75wi.js";import{E as Fa,a as Ja,b as $a,c as za}from"./element-plus-XVJlWyfz.js";const Ga=Object.freeze(Object.defineProperty({__proto__:null,ACCESS:O,API_METHOD_TYPES:V,Assets:A,Binder:b,Box:P,Designer:R,DevTools:m,EVENT_MODIFIERS:B,Editor:D,Engine:M,EventBinder:N,Icon:h,Item:y,KEYBOARD_EVENT_LIST:L,MOBILE_SIZE:x,MOUSE_EVENT_LIST:j,MicroApp:w,NAME_REGEX:U,NPM_REGISTRY_URL:Y,OpenApi:H,PAD_SIZE:K,Panel:W,REMOTE:k,REPORT_API:v,RegionType:C,RegionWrapper:F,Renderer:J,SAVE_BLOCK_FILE_FINISH:$,SESSION_ID_KEY:z,STATE_KEY:G,SetterView:X,SetterWrapper:q,Simulator:Z,Skeleton:Q,SkeletonWrapper:aa,SlotsPicker:sa,Tabs:ea,VERSION_REGEX:ta,VTJ_DESIGNER_VERSION:ra,VUE_DEVTOOLS_FRAME_STATE_KEY:ia,VUE_DEVTOOLS_OVERLAY_PATH:na,VUE_DEVTOOLS_PATH:oa,VariableBinder:Ea,Viewer:la,Viewport:_a,WidgetGroup:ca,WidgetWrapper:ga,alert:Sa,builtInDeps:pa,builtInMaterials:ua,builtInSetters:Ta,builtInWidgets:Ia,confirm:da,createSlotsPicker:fa,defaultSetter:Oa,depsManager:Va,engineKey:Aa,expressionValidate:ba,getClassProperties:Pa,message:Ra,normalizedStyle:ma,notify:Ba,proxyContext:Da,readJsonFile:Ma,regions:Na,setterManager:ha,setters:ya,useEngine:La,widgetManager:xa,widgets:ja},Symbol.toStringTag,{value:"Module"}));class as{constructor(a){l(this,"urls",[]);l(this,"library","");l(this,"params",[]);l(this,"__BASE_PATH__","/");this.config=a;const s=_(_(_({},Ka),Ga),Ha),o={Vue:f,__VTJ_PRO__:s,VtjUtils:Ya,VtjIcons:Ua,VtjUI:wa,ElementPlus:Fa};for(const[E,u]of Object.entries(o))window[E]=u;const{extension:i,__BASE_PATH__:e="/"}=a||{},{urls:c=[],library:n,params:r=[]}=i||{};n&&(this.urls=c,this.library=n,this.params=r,this.__BASE_PATH__=e)}load(){return p(this,null,function*(){let a={};if(this.library){const s=this.__BASE_PATH__,o=this.urls.filter(e=>Wa(e)).map(e=>`${s}${e}`),i=this.urls.filter(e=>ka(e)).map(e=>`${s}${e}`);if(va(o),i.length){const e=yield Ca(i,this.library).catch(()=>null);e&&typeof e=="function"?a=e.call(e,this.config,...this.params):a=e||{}}}return a})}}function ss(){return za.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"})}function es(t,a="",s="warning"){$a({title:a,message:t,type:s})}function ts(t,a){return Ja.alert(t,a)}export{as as E,ts as a,ss as l,es as n};
package/dist/index.html CHANGED
@@ -9,7 +9,7 @@
9
9
  <meta http-equiv="Expires" content="0"/>
10
10
  <title>低代码设计器 - VTJ.PRO</title>
11
11
  <script>
12
- var __BUILD_TIME__ = '1749608588029';
12
+ var __BUILD_TIME__ = '1749702127803';
13
13
  (function () {
14
14
  const regex = /<!--{{(\d*)}}-->/;
15
15
  window.fetch('?t=' + Date.now()).then(async (res) => {
@@ -25,9 +25,9 @@
25
25
  });
26
26
  })();
27
27
  </script>
28
- <!--{{1749608588029}}-->
28
+ <!--{{1749702127803}}-->
29
29
 
30
- <script type="module" crossorigin src="./assets/index-CznrUnKa.js"></script>
30
+ <script type="module" crossorigin src="./assets/index-C7WRpYzG.js"></script>
31
31
  <link rel="modulepreload" crossorigin href="./assets/vue-BfodOvnP.js">
32
32
  <link rel="modulepreload" crossorigin href="./assets/lodash-es-BL-d_OSa.js">
33
33
  <link rel="modulepreload" crossorigin href="./assets/@vueuse-vmN9qs5b.js">
@@ -51,7 +51,7 @@ version: 2.9.0
51
51
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
52
52
  * @name @vtj/core
53
53
  * @author CHC chenhuachun1549@dingtalk.com
54
- * @version 0.12.38
54
+ * @version 0.12.40
55
55
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
56
56
  */const kd="VueMaterial",Md="VueRouterMaterial",Ud={[kd]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[Md]:["RouterView","RouterLink"]};let Ld=class{constructor(){z(this,"listeners",[]);z(this,"isReady",!1)}triggerReady(){this.isReady=!0;for(const t of this.listeners)t();this.listeners=[]}ready(t){this.isReady?t():this.listeners.push(t)}resetReady(){this.isReady=!1}};var Vd=Object.defineProperty,Hd=(e,t,r)=>t in e?Vd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ct=(e,t,r)=>Hd(e,typeof t!="symbol"?t+"":t,r);(function(){if(typeof window>"u"||typeof EventTarget>"u")return;const e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(t,r,n){typeof n!="boolean"&&(n=n||{},n.passive=!1),e.call(this,t,r,n)}})();const qd=e=>typeof e=="symbol";new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(qd));function yo(e,t){return function(){return e.apply(t,arguments)}}const{toString:zd}=Object.prototype,{getPrototypeOf:ln}=Object,Ze=(e=>t=>{const r=zd.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),mt=e=>(e=e.toLowerCase(),t=>Ze(t)===e),Qe=e=>t=>typeof t===e,{isArray:se}=Array,ye=Qe("undefined");function Wd(e){return e!==null&&!ye(e)&&e.constructor!==null&&!ye(e.constructor)&&at(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const vo=mt("ArrayBuffer");function Kd(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&vo(e.buffer),t}const Jd=Qe("string"),at=Qe("function"),bo=Qe("number"),Xe=e=>e!==null&&typeof e=="object",Yd=e=>e===!0||e===!1,Ie=e=>{if(Ze(e)!=="object")return!1;const t=ln(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Gd=mt("Date"),Zd=mt("File"),Qd=mt("Blob"),Xd=mt("FileList"),tm=e=>Xe(e)&&at(e.pipe),em=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||at(e.append)&&((t=Ze(e))==="formdata"||t==="object"&&at(e.toString)&&e.toString()==="[object FormData]"))},rm=mt("URLSearchParams"),[nm,im,sm,om]=["ReadableStream","Request","Response","Headers"].map(mt),am=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _e(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),se(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{const s=r?Object.getOwnPropertyNames(e):Object.keys(e),o=s.length;let u;for(n=0;n<o;n++)u=s[n],t.call(null,e[u],u,e)}}function wo(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,i;for(;n-- >0;)if(i=r[n],t===i.toLowerCase())return i;return null}const kt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,_o=e=>!ye(e)&&e!==kt;function kr(){const{caseless:e}=_o(this)&&this||{},t={},r=(n,i)=>{const s=e&&wo(t,i)||i;Ie(t[s])&&Ie(n)?t[s]=kr(t[s],n):Ie(n)?t[s]=kr({},n):se(n)?t[s]=n.slice():t[s]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&_e(arguments[n],r);return t}const um=(e,t,r,{allOwnKeys:n}={})=>(_e(t,(i,s)=>{r&&at(i)?e[s]=yo(i,r):e[s]=i},{allOwnKeys:n}),e),cm=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),lm=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},fm=(e,t,r,n)=>{let i,s,o;const u={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)o=i[s],(!n||n(o,e,t))&&!u[o]&&(t[o]=e[o],u[o]=!0);e=r!==!1&&ln(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},hm=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},pm=e=>{if(!e)return null;if(se(e))return e;let t=e.length;if(!bo(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},dm=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ln(Uint8Array)),mm=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const i=n.value;t.call(e,i[0],i[1])}},gm=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},ym=mt("HTMLFormElement"),vm=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),Ti=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),bm=mt("RegExp"),Eo=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};_e(r,(i,s)=>{let o;(o=t(i,s,e))!==!1&&(n[s]=o||i)}),Object.defineProperties(e,n)},wm=e=>{Eo(e,(t,r)=>{if(at(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(at(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},_m=(e,t)=>{const r={},n=i=>{i.forEach(s=>{r[s]=!0})};return se(e)?n(e):n(String(e).split(t)),r},Em=()=>{},Sm=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function xm(e){return!!(e&&at(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Tm=e=>{const t=new Array(10),r=(n,i)=>{if(Xe(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const s=se(n)?[]:{};return _e(n,(o,u)=>{const l=r(o,i+1);!ye(l)&&(s[u]=l)}),t[i]=void 0,s}}return n};return r(e,0)},Am=mt("AsyncFunction"),Rm=e=>e&&(Xe(e)||at(e))&&at(e.then)&&at(e.catch),So=((e,t)=>e?setImmediate:t?((r,n)=>(kt.addEventListener("message",({source:i,data:s})=>{i===kt&&s===r&&n.length&&n.shift()()},!1),i=>{n.push(i),kt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",at(kt.postMessage)),Om=typeof queueMicrotask<"u"?queueMicrotask.bind(kt):typeof process<"u"&&process.nextTick||So,A={isArray:se,isArrayBuffer:vo,isBuffer:Wd,isFormData:em,isArrayBufferView:Kd,isString:Jd,isNumber:bo,isBoolean:Yd,isObject:Xe,isPlainObject:Ie,isReadableStream:nm,isRequest:im,isResponse:sm,isHeaders:om,isUndefined:ye,isDate:Gd,isFile:Zd,isBlob:Qd,isRegExp:bm,isFunction:at,isStream:tm,isURLSearchParams:rm,isTypedArray:dm,isFileList:Xd,forEach:_e,merge:kr,extend:um,trim:am,stripBOM:cm,inherits:lm,toFlatObject:fm,kindOf:Ze,kindOfTest:mt,endsWith:hm,toArray:pm,forEachEntry:mm,matchAll:gm,isHTMLForm:ym,hasOwnProperty:Ti,hasOwnProp:Ti,reduceDescriptors:Eo,freezeMethods:wm,toObjectSet:_m,toCamelCase:vm,noop:Em,toFiniteNumber:Sm,findKey:wo,global:kt,isContextDefined:_o,isSpecCompliantForm:xm,toJSONObject:Tm,isAsyncFn:Am,isThenable:Rm,setImmediate:So,asap:Om};function W(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}A.inherits(W,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:A.toJSONObject(this.config),code:this.code,status:this.status}}});const xo=W.prototype,To={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{To[e]={value:e}});Object.defineProperties(W,To);Object.defineProperty(xo,"isAxiosError",{value:!0});W.from=(e,t,r,n,i,s)=>{const o=Object.create(xo);return A.toFlatObject(e,o,function(u){return u!==Error.prototype},u=>u!=="isAxiosError"),W.call(o,e.message,t,r,n,i),o.cause=e,o.name=e.name,s&&Object.assign(o,s),o};const $m=null;function Mr(e){return A.isPlainObject(e)||A.isArray(e)}function Ao(e){return A.endsWith(e,"[]")?e.slice(0,-2):e}function Ai(e,t,r){return e?e.concat(t).map(function(n,i){return n=Ao(n),!r&&i?"["+n+"]":n}).join(r?".":""):t}function jm(e){return A.isArray(e)&&!e.some(Mr)}const Dm=A.toFlatObject(A,{},null,function(e){return/^is[A-Z]/.test(e)});function tr(e,t,r){if(!A.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=A.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,d){return!A.isUndefined(d[h])});const n=r.metaTokens,i=r.visitor||a,s=r.dots,o=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&A.isSpecCompliantForm(t);if(!A.isFunction(i))throw new TypeError("visitor must be a function");function l(h){if(h===null)return"";if(A.isDate(h))return h.toISOString();if(!u&&A.isBlob(h))throw new W("Blob is not supported. Use a Buffer instead.");return A.isArrayBuffer(h)||A.isTypedArray(h)?u&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function a(h,d,m){let b=h;if(h&&!m&&typeof h=="object"){if(A.endsWith(d,"{}"))d=n?d:d.slice(0,-2),h=JSON.stringify(h);else if(A.isArray(h)&&jm(h)||(A.isFileList(h)||A.endsWith(d,"[]"))&&(b=A.toArray(h)))return d=Ao(d),b.forEach(function(E,g){!(A.isUndefined(E)||E===null)&&t.append(o===!0?Ai([d],g,s):o===null?d:d+"[]",l(E))}),!1}return Mr(h)?!0:(t.append(Ai(m,d,s),l(h)),!1)}const c=[],f=Object.assign(Dm,{defaultVisitor:a,convertValue:l,isVisitable:Mr});function p(h,d){if(!A.isUndefined(h)){if(c.indexOf(h)!==-1)throw Error("Circular reference detected in "+d.join("."));c.push(h),A.forEach(h,function(m,b){(!(A.isUndefined(m)||m===null)&&i.call(t,m,A.isString(b)?b.trim():b,d,f))===!0&&p(m,d?d.concat(b):[b])}),c.pop()}}if(!A.isObject(e))throw new TypeError("data must be an object");return p(e),t}function Ri(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function fn(e,t){this._pairs=[],e&&tr(e,this,t)}const Ro=fn.prototype;Ro.append=function(e,t){this._pairs.push([e,t])};Ro.toString=function(e){const t=e?function(r){return e.call(this,r,Ri)}:Ri;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function Bm(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Oo(e,t,r){if(!t)return e;const n=r&&r.encode||Bm;A.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let s;if(i?s=i(t,r):s=A.isURLSearchParams(t)?t.toString():new fn(t,r).toString(n),s){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}let Oi=class{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){A.forEach(this.handlers,function(r){r!==null&&t(r)})}};const $o={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Cm=typeof URLSearchParams<"u"?URLSearchParams:fn,Nm=typeof FormData<"u"?FormData:null,Im=typeof Blob<"u"?Blob:null,Pm={isBrowser:!0,classes:{URLSearchParams:Cm,FormData:Nm,Blob:Im},protocols:["http","https","file","blob","url","data"]},hn=typeof window<"u"&&typeof document<"u",Ur=typeof navigator=="object"&&navigator||void 0,Fm=hn&&(!Ur||["ReactNative","NativeScript","NS"].indexOf(Ur.product)<0),km=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Mm=hn&&window.location.href||"http://localhost",Um=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:hn,hasStandardBrowserEnv:Fm,hasStandardBrowserWebWorkerEnv:km,navigator:Ur,origin:Mm},Symbol.toStringTag,{value:"Module"})),rt=H(H({},Um),Pm);function Lm(e,t){return tr(e,new rt.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,s){return rt.isNode&&A.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function Vm(e){return A.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Hm(e){const t={},r=Object.keys(e);let n;const i=r.length;let s;for(n=0;n<i;n++)s=r[n],t[s]=e[s];return t}function jo(e){function t(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&&A.isArray(i)?i.length:o,l?(A.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!u):((!i[o]||!A.isObject(i[o]))&&(i[o]=[]),t(r,n,i[o],s)&&A.isArray(i[o])&&(i[o]=Hm(i[o])),!u)}if(A.isFormData(e)&&A.isFunction(e.entries)){const r={};return A.forEachEntry(e,(n,i)=>{t(Vm(n),i,r,0)}),r}return null}function qm(e,t,r){if(A.isString(e))try{return(t||JSON.parse)(e),A.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Ee={transitional:$o,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=A.isObject(e);if(i&&A.isHTMLForm(e)&&(e=new FormData(e)),A.isFormData(e))return n?JSON.stringify(jo(e)):e;if(A.isArrayBuffer(e)||A.isBuffer(e)||A.isStream(e)||A.isFile(e)||A.isBlob(e)||A.isReadableStream(e))return e;if(A.isArrayBufferView(e))return e.buffer;if(A.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Lm(e,this.formSerializer).toString();if((s=A.isFileList(e))||r.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return tr(s?{"files[]":e}:e,o&&new o,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),qm(e)):e}],transformResponse:[function(e){const t=this.transitional||Ee.transitional,r=t&&t.forcedJSONParsing,n=this.responseType==="json";if(A.isResponse(e)||A.isReadableStream(e))return e;if(e&&A.isString(e)&&(r&&!this.responseType||n)){const i=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(s){if(i)throw s.name==="SyntaxError"?W.from(s,W.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:rt.classes.FormData,Blob:rt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};A.forEach(["delete","get","head","post","put","patch"],e=>{Ee.headers[e]={}});const zm=A.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Wm=e=>{const t={};let r,n,i;return e&&e.split(`
57
57
  `).forEach(function(s){i=s.indexOf(":"),r=s.substring(0,i).trim().toLowerCase(),n=s.substring(i+1).trim(),!(!r||t[r]&&zm[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},$i=Symbol("internals");function fe(e){return e&&String(e).trim().toLowerCase()}function Pe(e){return e===!1||e==null?e:A.isArray(e)?e.map(Pe):String(e)}function Km(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const Jm=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function yr(e,t,r,n,i){if(A.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!A.isString(t)){if(A.isString(n))return t.indexOf(n)!==-1;if(A.isRegExp(n))return n.test(t)}}function Ym(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Gm(e,t){const r=A.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,s,o){return this[n].call(this,t,i,s,o)},configurable:!0})})}let ot=class{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function s(u,l,a){const c=fe(l);if(!c)throw new Error("header name must be a non-empty string");const f=A.findKey(i,c);(!f||i[f]===void 0||a===!0||a===void 0&&i[f]!==!1)&&(i[f||l]=Pe(u))}const o=(u,l)=>A.forEach(u,(a,c)=>s(a,c,l));if(A.isPlainObject(t)||t instanceof this.constructor)o(t,r);else if(A.isString(t)&&(t=t.trim())&&!Jm(t))o(Wm(t),r);else if(A.isHeaders(t))for(const[u,l]of t.entries())s(l,u,n);else t!=null&&s(r,t,n);return this}get(t,r){if(t=fe(t),t){const n=A.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return Km(i);if(A.isFunction(r))return r.call(this,i,n);if(A.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=fe(t),t){const n=A.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||yr(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function s(o){if(o=fe(o),o){const u=A.findKey(n,o);u&&(!r||yr(n,n[u],u,r))&&(delete n[u],i=!0)}}return A.isArray(t)?t.forEach(s):s(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const s=r[n];(!t||yr(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const r=this,n={};return A.forEach(this,(i,s)=>{const o=A.findKey(n,s);if(o){r[o]=Pe(i),delete r[s];return}const u=t?Ym(s):String(s).trim();u!==s&&delete r[s],r[u]=Pe(i),n[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return A.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&A.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
@@ -62,9 +62,9 @@ version: 2.9.0
62
62
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
63
63
  * @name @vtj/renderer
64
64
  * @author CHC chenhuachun1549@dingtalk.com
65
- * @version 0.12.38
65
+ * @version 0.12.40
66
66
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
67
- */const Sr="0.12.38";var tt=(e=>(e.Runtime="Runtime",e.Design="Design",e.Raw="Raw",e.VNode="VNode",e))(tt||{});const Hi=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],zg=["vIf","vElseIf","vElse","vShow","vModel","vFor","vBind","vHtml"],Wg={String,Number,Boolean,Array,Object,Function,Date},Ue="VtjPage",xr="VtjHomepage",Kg="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot".split(","),Jg="component,slot".split(",");function Be(e,t){return e.map(r=>co(r)||r.startsWith("/")?r:`${t}${r}`)}function nr(e){return/\.css$/.test(e)}function ir(e){return/\.js$/.test(e)}function Yg(e){return/\.json$/.test(e)}function Gg(e,t=!1){return t&&e.endsWith(".prod.js")?e.replace(".prod.js",".js"):e}function Zg(e,t,r=!1){const n=e.filter(p=>!!p.enabled),i=[],s=[],o=[],u=[],l={},a={},c=[],f={};return n.forEach(({urls:p,assetsUrl:h,library:d,assetsLibrary:m,localeLibrary:b})=>{p==null||p.forEach(E=>{ir(E)&&i.push(Gg(E,r)),nr(E)&&s.push(E)}),d&&(u.push(d),l[d]=Be(p||[],t),b&&(a[d]=b)),h&&o.push(h),m&&c.push(m),d&&m&&(f[m]=d)}),{scripts:Be(i,t),css:Be(s,t),materials:Be(o,t),libraryExports:u,materialExports:xd(c),materialMapLibrary:f,libraryMap:l,libraryLocaleMap:a}}function Qg(e,t){var s;const{name:r,parent:n,alias:i}=e;return n?(s=t[n])==null?void 0:s[i||r]:t[i||r]}function Xg(e=[]){const t=e.filter(n=>nr(n)),r=e.filter(n=>ir(n));return{css:t,js:r}}function ty(e,t){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 g=a.substring(E,f).trim(),v=g.includes("@keyframes");if(a[f]===";")c.push({type:"simple-at-rule",content:a.substring(E,f+1)}),f++;else if(a[f]==="{"){const w=f+1;let S=1;for(f++;f<a.length&&S>0;)a[f]==="{"?S++:a[f]==="}"&&S--,f++;const y=a.substring(E,f),x=a.substring(w,f-1);c.push({type:v?"keyframes":"at-rule",rule:g,content:y,inner:x})}continue}const p=f;for(;f<a.length&&a[f]!=="{";)f++;if(f>=a.length)break;const h=a.substring(p,f).trim();if(!h){f++;continue}const d=f+1;let m=1;for(f++;f<a.length&&m>0;)a[f]==="{"?m++:a[f]==="}"&&m--,f++;const b=a.substring(d,f-1);c.push({type:"rule",selector:h,content:b.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,p)=>{const h=f.trim(),d=p.trim();return h?`${h}[${t}] ${d}`:d}),s=a=>{const c=a.trim();if(!c||c.includes(`[${t}]`)||/^(:root|:host|html|body)(\s|$|:|\.|\#|\[)/.test(c)||n(c))return c;const f=c.match(/^(.+?)((?:::?[\w-]+(?:\([^)]*\))?)*)\s*$/);if(f){const[,p,h=""]=f,d=p.trim();return d?`${d}[${t}]${h}`:c}return`${c}[${t}]`},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 p=r(c.inner),h=u(p);return`${c.rule} { ${h} }`}catch(p){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=e.replace(/\/\*(?!\s*!)[\s\S]*?\*\//g,"").replace(/^\s+|\s+$/gm,"").replace(/\n\s*\n/g,`
67
+ */const Sr="0.12.40";var tt=(e=>(e.Runtime="Runtime",e.Design="Design",e.Raw="Raw",e.VNode="VNode",e))(tt||{});const Hi=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],zg=["vIf","vElseIf","vElse","vShow","vModel","vFor","vBind","vHtml"],Wg={String,Number,Boolean,Array,Object,Function,Date},Ue="VtjPage",xr="VtjHomepage",Kg="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(","),Jg="component,slot".split(",");function Be(e,t){return e.map(r=>co(r)||r.startsWith("/")?r:`${t}${r}`)}function nr(e){return/\.css$/.test(e)}function ir(e){return/\.js$/.test(e)}function Yg(e){return/\.json$/.test(e)}function Gg(e,t=!1){return t&&e.endsWith(".prod.js")?e.replace(".prod.js",".js"):e}function Zg(e,t,r=!1){const n=e.filter(p=>!!p.enabled),i=[],s=[],o=[],u=[],l={},a={},c=[],f={};return n.forEach(({urls:p,assetsUrl:h,library:d,assetsLibrary:m,localeLibrary:b})=>{p==null||p.forEach(E=>{ir(E)&&i.push(Gg(E,r)),nr(E)&&s.push(E)}),d&&(u.push(d),l[d]=Be(p||[],t),b&&(a[d]=b)),h&&o.push(h),m&&c.push(m),d&&m&&(f[m]=d)}),{scripts:Be(i,t),css:Be(s,t),materials:Be(o,t),libraryExports:u,materialExports:xd(c),materialMapLibrary:f,libraryMap:l,libraryLocaleMap:a}}function Qg(e,t){var s;const{name:r,parent:n,alias:i}=e;return n?(s=t[n])==null?void 0:s[i||r]:t[i||r]}function Xg(e=[]){const t=e.filter(n=>nr(n)),r=e.filter(n=>ir(n));return{css:t,js:r}}function ty(e,t){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 g=a.substring(E,f).trim(),v=g.includes("@keyframes");if(a[f]===";")c.push({type:"simple-at-rule",content:a.substring(E,f+1)}),f++;else if(a[f]==="{"){const w=f+1;let S=1;for(f++;f<a.length&&S>0;)a[f]==="{"?S++:a[f]==="}"&&S--,f++;const y=a.substring(E,f),x=a.substring(w,f-1);c.push({type:v?"keyframes":"at-rule",rule:g,content:y,inner:x})}continue}const p=f;for(;f<a.length&&a[f]!=="{";)f++;if(f>=a.length)break;const h=a.substring(p,f).trim();if(!h){f++;continue}const d=f+1;let m=1;for(f++;f<a.length&&m>0;)a[f]==="{"?m++:a[f]==="}"&&m--,f++;const b=a.substring(d,f-1);c.push({type:"rule",selector:h,content:b.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,p)=>{const h=f.trim(),d=p.trim();return h?`${h}[${t}] ${d}`:d}),s=a=>{const c=a.trim();if(!c||c.includes(`[${t}]`)||/^(:root|:host|html|body)(\s|$|:|\.|\#|\[)/.test(c)||n(c))return c;const f=c.match(/^(.+?)((?:::?[\w-]+(?:\([^)]*\))?)*)\s*$/);if(f){const[,p,h=""]=f,d=p.trim();return d?`${d}[${t}]${h}`:c}return`${c}[${t}]`},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 p=r(c.inner),h=u(p);return`${c.rule} { ${h} }`}catch(p){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=e.replace(/\/\*(?!\s*!)[\s\S]*?\*\//g,"").replace(/^\s+|\s+$/gm,"").replace(/\n\s*\n/g,`
68
68
  `),c=r(a),f=u(c);return l(f)}catch(a){return console.error("CSS scoping failed:",a),console.error("Input CSS:",e),e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/(@keyframes\s+[^{]+\s*{[^{}]*(?:{[^}]*}[^{}]*)*})/g,c=>c).replace(/([^{}@]+)(?=\s*{)/g,c=>{const f=c.trim();return!f||f.startsWith("@")||f.includes(`[${t}]`)||n(f)?c:`${f}[${t}]`})}}function Wo(e){return $t(e)?e:JSON.stringify(e)}function mn(e,t,r,n=!1){const i=e.CSSStyleSheet,s=n?`data-v-${t}`:t,o=n?ty(r,s):r;if(i.prototype.replaceSync){const u=new i;u.id=t,u.replaceSync(o);const l=e.document,a=l.adoptedStyleSheets,c=Array.from(a).filter(f=>f.id!==t);l.adoptedStyleSheets=[...c,u]}else{const u=e.document;let l=u.getElementById(t);l?l.innerHTML=o:(l=u.createElement("style"),l.id=t,l.innerHTML=o,u.head.appendChild(l))}}function ey(e,t){return F(this,null,function*(){const r=yield window.fetch(t).then(n=>n.text()).catch(()=>"");r&&mn(window,e,r)})}function Ko(e,t=window){const r=t.document,n=t.document.head;for(const i of e)if(!r.getElementById(i)){const s=r.createElement("link");s.rel="stylesheet",s.id=i,s.href=i,n.appendChild(s)}}function Jo(n,i){return F(this,arguments,function*(e,t,r=window){const s=r.document,o=r.document.head;let u=r[t];return u?u.default||u:new Promise((l,a)=>{for(const c of e){const f=s.createElement("script");f.src=c,f.onload=()=>{u=r[t],u?l(u.default||u):a(null)},f.onerror=p=>{a(p)},o.appendChild(f)}})})}function ry(e){return Lt(e)||Lt(e==null?void 0:e.install)}function ny(e){return Jg.includes(e)}function iy(e){return Kg.includes(e)}function ve(e=window){const t=window==null?void 0:window.Mock;if(t)return t;const r=e==null?void 0:e.Mock;if(r&&window)return window.Mock=r,r}function be(e,t,r=!1,n=!1){var i;try{const s=['"use strict";',"var __self = arguments[0];"];s.push("return ");let o=(e.value||"").trim();o=o.replace(/this(\W|$)/g,(l,a)=>`__self${a}`),o=s.join(`
69
69
  `)+o;const u=`with(${r?"{}":"$scope || {}"}) { ${o} }`;return new Function("$scope",u)(t)}catch(s){if(te.error("parseExpression.error",s,e,(i=t==null?void 0:t.__self)!=null?i:t),n)throw s}}function ze(e,t,r=!1,n=!1){var s;const i=be(e,t,r,n);if(typeof i!="function"&&(te.error("parseFunction.error","not a function",e,(s=t==null?void 0:t.__self)!=null?s:t),n))throw new Error(`"${e.value}" not a function`);return i}function pt(e){return e&&e.type==="JSExpression"}function sr(e){return typeof e=="object"&&e&&e.type==="JSFunction"}const sy={session:!1,authKey:"Authorization",storageKey:"ACCESS_STORAGE",storagePrefix:"__VTJ_",unauthorized:void 0,auth:"/#/login",redirectParam:"r",unauthorizedCode:401,unauthorizedMessage:"登录已经失效,请重新登录!",noPermissionMessage:"无权限访问该页面",appName:"",statusKey:"code"},oy=Symbol("access");class ay{constructor(t){z(this,"options");z(this,"data",null);z(this,"mode",tt.Raw);z(this,"interceptResponse",!0);this.options=Object.assign({},sy,t),this.loadData()}enableIntercept(){this.interceptResponse=!0}disableIntercept(){this.interceptResponse=!1}connect(t){const{mode:r,router:n,request:i}=t;this.mode=r,n&&this.mode===tt.Raw&&this.setGuard(n),i&&this.setRequest(i)}login(t){const{storageKey:r,storagePrefix:n,session:i,authKey:s}=this.options;this.setData(t),this.data&&(wr.save(r,t,{type:"local",prefix:n}),i&&Er.set(s,this.data.token))}clear(){const{storageKey:t,storagePrefix:r,session:n,authKey:i}=this.options;this.data=null,wr.remove(t,{type:"local",prefix:r}),n&&Er.remove(i)}logout(){this.clear(),this.toLogin()}getData(){return this.data?this.data:(this.loadData(),this.data)}getToken(){var t;return this.data||this.loadData(),(t=this.data)==null?void 0:t.token}can(t){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return typeof t=="function"?t(n):xi(t).every(i=>n[i]||n[r+"."+i])}some(t){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return xi(t).some(i=>n[i]||n[r+"."+i])}install(t){t.config.globalProperties.$access=this,t.provide(oy,this)}isAuthPath(t){const{auth:r,isAuth:n}=this.options;if(n)return n(t);if(t.path&&typeof r=="string"){const i=r.split("#")[1]||r;return t.path===i}return!1}toLogin(){const{auth:t,redirectParam:r}=this.options;if(!t)return;const n=r?`?${r}=${encodeURIComponent(location.href)}`:"";typeof t=="function"?t(n):location.href=r?`${t}${n}`:t}setData(t){const{privateKey:r}=this.options;if(Array.isArray(t)&&r){const n=t.map(i=>Si(i,r));try{this.data=JSON.parse(n.join(""))}catch(i){console.warn(i)}return}if(typeof t=="string")try{const n=r?Si(t,r):t;n?this.data=JSON.parse(n):console.warn("RSA解密失败或登录信息缺失")}catch(n){console.warn(n)}else this.data=t}loadData(){const{storageKey:t,storagePrefix:r}=this.options,n=wr.get(t,{type:"local",prefix:r});this.setData(n||null)}isLogined(){const{session:t,authKey:r}=this.options;return t&&r?!!Er.get(r):!!this.getToken()}hasRoutePermission(t){if(t.name===Ue){const r=t.params.id;return r&&this.can(r)}return!0}setGuard(t){t.beforeEach((r,n,i)=>this.guard(r,i))}guard(t,r){return F(this,null,function*(){if(this.isWhiteList(t)||this.isAuthPath(t))return r();if(this.isLogined()){if(this.hasRoutePermission(t))return r();{const{noPermissionMessage:n="无权限访问",unauthorized:i=!1}=this.options;return yield this.showTip(n),Lt(i)?(i(),r(!1)):$t(i)?r(i):r(!1)}}r(!1),this.toLogin()})}isWhiteList(t){const{whiteList:r}=this.options;return r?Array.isArray(r)?r.some(n=>t.fullPath.startsWith(n)):r(t):!1}isUnauthorized(t){var i;const{unauthorizedCode:r=401,statusKey:n="code"}=this.options;return t.status===r||((i=t.data)==null?void 0:i[n])===r}showUnauthorizedAlert(t){return F(this,null,function*(){const{unauthorizedMessage:r="登录已失效"}=this.options;this.isUnauthorized(t)&&(yield this.showTip(r),this.toLogin())})}showTip(t){return F(this,null,function*(){const{alert:r}=this.options;return r?(yield an(150),yield r(t,{title:"提示",type:"warning"}).catch(()=>!1)):!1})}setRequest(t){t.useRequest(r=>{var n,i;return(n=this.data)!=null&&n.token&&(r.headers[this.options.authKey]=(i=this.data)==null?void 0:i.token),r}),t.useResponse(r=>F(this,null,function*(){return this.interceptResponse&&(yield this.showUnauthorizedAlert(r)),r}),r=>F(this,null,function*(){if(!this.interceptResponse)return Promise.reject(r);const n=r.response||r||{};return yield this.showUnauthorizedAlert(n),Promise.reject(r)}))}}function uy(e={}){const{notify:t,loading:r,settings:n={},Startup:i,access:s,useTitle:o,alert:u}=e;let l=null;return{request:pn({settings:H({type:"form",validSuccess:!0,originResponse:!1,loading:!0,validate:a=>{var c,f;return((c=a.data)==null?void 0:c.code)===0||!!((f=a.data)!=null&&f.success)},failMessage:!0,showError:a=>{t&&t(a||"未知错误")},showLoading:()=>{l&&l.close(),r&&(l=r())},hideLoading:()=>{l&&(l.close(),l=null)}},n)}),jsonp:zo,notify:t,loading:r,useTitle:o,startupComponent:i,access:s?new ay(H({alert:u},s)):void 0}}function cy(e,t){const{jsonp:r,request:n}=t;if(e.method==="jsonp")return(i={})=>r(e.url,et(H({},e.jsonpOptions),{query:i}));{const i=e.headers?be(e.headers,{},!0):void 0,s={url:e.url,method:e.method,settings:et(H({},e.settings),{headers:i})};return(o,u)=>(delete s.data,n.send(he(s,u||{},{data:o})))}}function ly(e,t){const{metaQuery:r}=t;if(!r)return;const{code:n,queryCode:i}=e;return(s,o)=>{if(!r){console.warn("adapter.metaQuery is not defined!");return}return r(n,i,s,o)}}function fy(e=[],t=[],r){const n={};for(const i of e)n[i.id]=cy(i,r);for(const i of t)n[i.id]=ly(i,r);return n}function hy(){return F(this,arguments,function*(e=[],t=window){const r=ve(t);r&&(Yo(t),e.forEach(n=>dy(r,n)))})}function py(e,t=window){const r=sr(e.mockTemplate)&&e.mockTemplate.value?ze(e.mockTemplate,{},!0):void 0,n=ve(t);return(...i)=>F(null,null,function*(){let s={};if(r)try{s=yield r.apply(r,i)}catch(o){te.warn("模拟数据模版异常",o)}return n==null?void 0:n.mock(s)})}function dy(e,t){if(!t.mock)return;const{url:r,mockTemplate:n}=t;if(r&&n){const i=cn(`${r}(.*)`),s=$d(r,{decode:decodeURIComponent}),o=be(n,{},!0);e.mock(i,u=>{var f;const l=Me.parse(u.url)||{},a=u.body instanceof FormData?Tg(u.body):u.body,c=(f=s(u.url))==null?void 0:f.params;return Object.assign(u,{data:a,params:l,query:c}),e.mock(o(u))})}}function Yo(e=window){const t=ve(e);t&&(t._mocked={})}class my{constructor(t){z(this,"__id",null);z(this,"__mode");z(this,"__instance",null);z(this,"__contextRefs",{});z(this,"__refs",{});z(this,"context",{});z(this,"state",{});z(this,"props",{});z(this,"$props",{});z(this,"$refs",{});z(this,"$el",null);z(this,"$emit",null);z(this,"$nextTick",null);z(this,"$parent",null);z(this,"$root",null);z(this,"$attrs",null);z(this,"$slots",null);z(this,"$watch",null);z(this,"$options",null);z(this,"$forceUpdate",null);z(this,"$components",{});z(this,"$libs",{});z(this,"$apis",{});z(this,"__transform",{});const{mode:r,dsl:n,attrs:i}=t;this.__mode=r,n&&(this.__id=n.id||null,this.__transform=n.transform||{}),i&&Object.assign(this,i)}setup(t,r=We){const n=r.getCurrentInstance();if(!n)return;this.__refs={},this.$refs={},this.context={},this.__contextRefs={},this.__instance=n.proxy;const i=n.appContext.config.globalProperties;Object.assign(this,i),Object.assign(this,t||{}),this.__proxy(),r.onMounted(()=>{this.__proxy()}),r.onUnmounted(()=>{this.__cleanup()}),r.onBeforeUpdate(()=>{this.__reset()})}__proxy(){this.__instance&&Hi.forEach(t=>{var r;this[t]=(r=this.__instance)==null?void 0:r[t]})}__cleanup(){Hi.forEach(t=>{this[t]=null}),this.__reset()}__reset(){this.__refs={},this.$refs={},this.__contextRefs={},this.context={}}__parseFunction(t){var r;if(t)if(this.__mode===tt.Runtime){const{id:n,type:i}=t,s=n&&(r=this.__transform[n])!=null?r:t.value;return ze({type:i,value:s},this)}else return ze(t,this)}__parseExpression(t){var r;if(t)if(this.__mode===tt.Runtime){const{id:n,type:i}=t,s=n&&(r=this.__transform[n])!=null?r:t.value;return be({type:i,value:s},this)}else return be(t,this)}__ref(t=null,r){if(this.__mode!==tt.VNode)return t&&t!==this.__id&&(this.__contextRefs[t]=this),n=>F(this,null,function*(){var s,o;yield an(0);let i=(n==null?void 0:n.$vtjEl)||(n==null?void 0:n.$el)||((o=(s=n==null?void 0:n._)==null?void 0:s.vnode)==null?void 0:o.el)||n;if(!i){typeof r=="string"&&(delete this.$refs[r],t&&delete this.__refs[t]);return}return i.nodeType===3&&i.nextSibling&&(i=i.nextSibling),i.__vtj__=t,tt.Design===this.__mode&&(i.__context__=this,i.draggable=!0),t&&(this.__refs[t]=this.__getRefEl(this.__refs,t,n)),typeof r=="function"?r(n):r&&(this.$refs[r]=this.__getRefEl(this.$refs,r,n)),n})}__getRefEl(t,r,n){const i=t[r];if(i&&n!==i){const s=new Set([].concat(i,n));return Array.from(s)}else return n}__clone(t={}){const r=H(H({},this.context),t),n=et(H({},r),{context:r});return n.context.__proto__=this.context,n.__proto__=this,n}}function Jr(e){var f,p;const{Vue:t=We,mode:r=tt.Runtime,components:n={},libs:i={},apis:s={},loader:o}=e,u=t.computed(()=>e.dsl),l={$components:n,$libs:i,$apis:s},a=new my({mode:r,dsl:u.value,attrs:l}),c=t.defineComponent(H({name:u.value.name,__scopeId:u.value.id?`data-v-${u.value.id}`:void 0,props:H({},yy((f=u.value.props)!=null?f:[],a)),setup(h){var v,w,S,y;a.$props=h,a.props=h,u.value.id&&mn(e.window||window,u.value.id,u.value.css||"",!0),a.state=vy(t,(v=u.value.state)!=null?v:{},a);const d=by(t,(w=u.value.computed)!=null?w:{},a),m=wy((S=u.value.methods)!=null?S:{},a),b=_y(t,u.value.inject,a);for(const[x,R]of Object.entries(b||{}))b[x]=t.inject(x,R);const E=Ey(u.value.dataSources||{},a),g=H(H(H(H({},b),d),m),E);return a.setup(g,t),Sy(t,(y=u.value.watch)!=null?y:[],a),{vtj:a}},emits:gy(u.value.emits),expose:["vtj"],render(){if(!u.value.nodes)return null;const h=u.value.nodes||[];return h.length===1?re(h[0],a,t,o,h):h.map(d=>re(d,a,t,o,h))}},xy((p=u.value.lifeCycles)!=null?p:{},a)));return{renderer:t.markRaw(c),context:a}}function gy(e=[]){return e.map(t=>$t(t)?t:t.name)}function yy(e=[],t){const r=n=>n?(Array.isArray(n)?n:[n]).map(i=>Wg[i]):void 0;return e.map(n=>$t(n)?{name:n}:{name:n.name,type:n.type,required:n.required,default:pt(n.default)?t.__parseExpression(n.default):n.default}).reduce((n,i)=>(n[i.name]={type:r(i.type),required:i.required,default:i.default},n),{})}function vy(e,t,r){return e.reactive(Object.keys(t||{}).reduce((n,i)=>{let s=t[i];return pt(s)?s=r.__parseExpression(s):sr(s)&&(s=r.__parseFunction(s)),n[i]=s,n},{}))}function by(e,t,r){return Object.entries(t!=null?t:{}).reduce((n,[i,s])=>(n[i]=e.computed(r.__parseFunction(s)),n),{})}function wy(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}function _y(e,t=[],r){return t.reduce((n,i)=>{var a;const{name:s,from:o}=i||{};i.default;const u=pt(o)?r.__parseExpression(o)||s:o!=null?o:s,l=pt(i.default)?r.__parseExpression(i.default):(a=i.default)!=null?a:null;return n[s]=e.inject(u,l),n},{})}function Ey(e,t){return Object.keys(e).reduce((r,n)=>{const i=e[n];if(i.type==="mock")r[n]=py(i);else if(i.ref){const s=t.$apis[i.ref],o=sr(i.transform)?i.transform.value?t.__parseFunction(i.transform):void 0:i.transform;r[n]=(...u)=>F(null,null,function*(){const l=yield s.apply(t,u);return o?o(l):l})}return r},{})}function Sy(e,t=[],r){t.forEach(n=>{e.watch(r.__parseExpression(n.source),r.__parseFunction(n.handler),{deep:n.deep,immediate:n.immediate})})}function xy(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>{const s=t.__parseFunction(i);return r[n]=()=>F(null,null,function*(){yield an(0),Lt(s)&&s()}),r},{})}const Ty=new Fd;let Tr=[],Yt={};const Ay=e=>e;function Go(r){return F(this,arguments,function*(e,t=window){const{urls:n=[],library:i}=e,s=n.filter(u=>ir(u));if(s.length===0||!i)return null;const o=n.filter(u=>nr(u));return o.length&&Ko(o,t),yield Jo(s,i,t).catch(u=>(console.warn("loadScriptUrl error",s,i,u),null))})}function Yr(e){const{getDsl:t,getDslByUrl:r,options:n}=e;return n.window&&(Tr.forEach(i=>{delete n.window[i]}),Tr=[]),(i,s,o=We)=>{if(!s||typeof s=="string")return i;if(s.type==="Schema"&&s.id)return o.defineAsyncComponent(()=>F(null,null,function*(){const u=Yt[s.id]||(yield Ty.add(s.id,()=>t(s.id)));return u&&(u.name=i,Yt[s.id]=u),u?Jr(et(H({},n),{Vue:o,dsl:Qn(u),mode:tt.Runtime,loader:Yr(e)})).renderer:null}));if(s.type==="UrlSchema"&&s.url)return o.defineAsyncComponent(()=>F(null,null,function*(){const u=Yt[s.url]||(yield r(s.url));return u&&(u.name=i,Yt[s.url]=u),u?Jr(et(H({},n),{Vue:o,dsl:Qn(u),mode:tt.Runtime,loader:Yr(e)})).renderer:null}));if(s.type==="Plugin"){let u=s.library?Yt[s.library]:null;return u||(s.library&&Tr.push(s.library),u=Yt[s.library||Symbol()]=o.defineAsyncComponent(()=>F(null,null,function*(){return(yield Go(s,n.window))||(console.warn("getPlugin result is null",s),null)})),u)}return i}}function re(e,t,r=We,n=Ay,i=[],s=!1){var v;if(!e||!e.name||e.invisible)return null;const o=(v=r.getCurrentInstance())==null?void 0:v.appContext,{id:u=null,directives:l=[]}=e,{vIf:a,vElseIf:c,vElse:f,vFor:p,vShow:h,vModels:d,vBind:m,vHtml:b,others:E}=Zo(l);if(!s&&(c||f))return null;if(a&&!Oy(a,t))return By(e,t,r,n,i);const g=(w,S=0)=>{var j,N,L,M;const y=w.$components,x=(()=>{var q,O,D,C;if(e.name==="component")return $y(w,(q=e.props)==null?void 0:q.is);if(e.name==="slot")return e.name;const V=n(e.name,e.from,r);return $t(V)?ny(V)||iy(V)?V:(C=(D=y[V])!=null?D:(O=o==null?void 0:o.app)==null?void 0:O.component(V))!=null?C:V:V})(),R=jy(u,(j=e.props)!=null?j:{},w),U=Dy(r,(N=e.events)!=null?N:{},w);if(e.name==="slot")return Cy(r,e,R,w,n);m&&Object.assign(R,w.__parseExpression(m.value)),h&&(R.style=Object.assign((L=R.style)!=null?L:{},Iy(h,w))),b&&Object.assign(R,Py(b,w)),d.forEach(V=>{Object.assign(R,Fy(r,V,w))});const _=ky(r,(M=e.children)!=null?M:[],w,n,e),T=w!=null&&w.__id?`data-v-${w.__id}`:void 0,k=T?{[T]:""}:{};let B=r.createVNode(x,H(H(H({key:`${u}_${S}`},k),R),U),_);const P=o?Ry(o,E,w):[];return P.length&&(B=r.withDirectives(B,P)),B};return p?Ly(p,g,t):g(t)}function Ry(e,t,r){const n=e.app;return t.map(i=>{const s=typeof i.name=="string"?n.directive(i.name):r.__parseExpression(i.name);if(!s)return null;const o=[s];return i.value&&o.push(r.__parseExpression(i.value)),i.arg&&o.push(i.arg),i.modifiers&&o.push(i.modifiers),o}).filter(i=>!!i)}function Zo(e=[]){const t=e.find(c=>wt(c.name)==="vIf"),r=e.find(c=>wt(c.name)==="vElseIf"),n=e.find(c=>wt(c.name)==="vElse"),i=e.find(c=>wt(c.name)==="vFor"),s=e.find(c=>wt(c.name)==="vShow"),o=e.find(c=>wt(c.name)==="vBind"),u=e.find(c=>wt(c.name)==="vHtml"),l=e.filter(c=>wt(c.name)==="vModel"),a=e.filter(c=>!zg.includes(wt(c.name)));return{vIf:t,vElseIf:r,vElse:n,vFor:i,vShow:s,vModels:l,vBind:o,others:a,vHtml:u}}function Oy(e,t){return!!t.__parseExpression(e.value)}function $y(e,t){return t?pt(t)?e.__parseExpression(t):t:"div"}function jy(e,t,r){const n=Gr(t,r);return n.ref=r.__ref(e,n.ref),n}function Gr(e,t){return pt(e)?t.__parseExpression(e):sr(e)?t.__parseFunction(e):Array.isArray(e)?e.map(r=>Gr(r,t)):typeof e=="object"?Object.keys(e||{}).reduce((r,n)=>{let i=e[n];return r[n]=Gr(i,t),r},{}):e}function Dy(e,t,r){const n=["passive","capture","once"],i={capture:"Capture",once:"Once",passive:"OnceCapture"};return Object.keys(t||{}).reduce((s,o)=>{const u=t[o],l=Qo(u.modifiers),a=l.find(p=>n.includes(p)),c="on"+Ts(o)+(a&&i[a]||""),f=r.__parseFunction(u.handler);return f&&(s[c]=e.withModifiers(f,l)),s},{})}function By(e,t,r,n,i=[]){let s=i.findIndex(o=>o.id===e.id);for(let o=++s;o<i.length;o++){const{directives:u=[]}=i[o],{vElseIf:l,vElse:a}=Zo(u);if(l){if(t.__parseExpression(l.value))return re(i[o],t,r,n,i,!0);continue}if(a)return re(i[o],t,r,n,i,!0)}return null}function Qo(e={},t=!1){const r=Object.keys(e);return t?r.map(n=>"."+n):r}function Cy(e,t,r,n,i){var l;const{children:s}=t,o=Ny(t,n),u=(l=n.$slots)==null?void 0:l[o.name];return u?u(r):s?$t(s)?e.createTextVNode(s):pt(s)?e.createTextVNode(Wo(n.__parseExpression(s))):Array.isArray(s)?s.map(a=>re(a,n,e,i,s)):null:null}function Ny(e,t){const{props:r}=e,n=(r==null?void 0:r.name)||"default";return{name:pt(n)?t.__parseExpression(n):n,params:[]}}function Iy(e,t){return t.__parseExpression(e.value)?{}:{display:"none"}}function Py(e,t){return{innerHTML:t.__parseExpression(e.value)||""}}function Fy(e,t,r){var u;const n={type:"JSFunction",value:(u=t.value)!=null&&u.value?`(v) => {
70
70
  ${t.value.value} = v;
@@ -72,6 +72,6 @@ version: 2.9.0
72
72
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
73
73
  * @name @vtj/uni
74
74
  * @author CHC chenhuachun1549@dingtalk.com
75
- * @version 0.12.38
75
+ * @version 0.12.40
76
76
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
77
77
  */const Qy=["onLaunch","onShow","onHide","onError","onPageNotFound","onUnhandledRejection","onThemeChange","onPageNotFound","onUniNViewMessage","onExit"],zi="/pages",Xy="VTJ",t0="__UNI__1FC118B",e0="VTJ移动跨端项目",r0="1.0.0",n0="100",i0=!1,s0={},o0={enable:!1},a0="3",u0={name:Xy,appid:t0,description:e0,versionName:r0,versionCode:n0,transformPx:i0,"app-plus":{usingComponents:!0,nvueStyleCompiler:"uni-app",compilerVersion:3,splashscreen:{alwaysShowBeforeRender:!0,waiting:!0,autoclose:!0,delay:0},modules:{},distribute:{android:{permissions:['<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>','<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>','<uses-permission android:name="android.permission.VIBRATE"/>','<uses-permission android:name="android.permission.READ_LOGS"/>','<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>','<uses-feature android:name="android.hardware.camera.autofocus"/>','<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>','<uses-permission android:name="android.permission.CAMERA"/>','<uses-permission android:name="android.permission.GET_ACCOUNTS"/>','<uses-permission android:name="android.permission.READ_PHONE_STATE"/>','<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>','<uses-permission android:name="android.permission.WAKE_LOCK"/>','<uses-permission android:name="android.permission.FLASHLIGHT"/>','<uses-feature android:name="android.hardware.camera"/>','<uses-permission android:name="android.permission.WRITE_SETTINGS"/>']},ios:{},sdkConfigs:{},icons:{android:{hdpi:"src/static/logo.png",xhdpi:"src/static/logo.png",xxhdpi:"src/static/logo.png",xxxhdpi:"src/static/logo.png"}}}},quickapp:s0,"mp-weixin":{appid:"",setting:{urlCheck:!1},usingComponents:!0},"mp-alipay":{usingComponents:!0},"mp-baidu":{usingComponents:!0},"mp-toutiao":{usingComponents:!0},uniStatistics:o0,vueVersion:a0},c0=[],l0={navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},f0={autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}},h0={pages:c0,globalStyle:l0,easycom:f0};function p0(e){let{manifestJson:t={},pagesJson:r={},routes:n=[]}=e;const i=n.map(s=>{const{path:o,style:u,needLogin:l}=s;return{path:o,style:u,needLogin:l}});return et(H({},e),{manifestJson:Object.assign({},u0,t),pagesJson:Object.assign({},h0,r,{pages:i})})}const Zr={navigationBarBackgroundColor:"backgroundColor",navigationBarTextStyle:"titleColor",navigationBarTitleText:"titleText",navigationStyle:"style",titleImage:"titleImage",titlePenetrate:"titlePenetrate",transparentTitle:"transparentTitle"};function ea(e){const t={},r={black:"#000000",white:"#ffffff"};for(const n in e)Zr[n]&&(t[Zr[n]]=n==="navigationBarTextStyle"?r[e[n]]||r.black:e[n]);return t}function d0(e){const t={};for(const r in e)Zr[r]||(t[r]=e[r]);return t}function m0(e){var t,r;return((r=(t=e.h5)==null?void 0:t.router)==null?void 0:r.mode)||"hash"}function g0(e){var t,r,n;return{topWindow:!!((t=e.topWindow)!=null&&t.path),leftWindow:!!((r=e.leftWindow)!=null&&r.path),rightWindow:!!((n=e.rightWindow)!=null&&n.path)}}function y0(e){const{pagesJson:t={}}=e,{globalStyle:r,pages:n=[]}=t;return!!(r!=null&&r.enablePullDownRefresh||n.find(i=>{var s;return!!((s=i.style)!=null&&s.enablePullDownRefresh)}))}function v0(e){const{pagesJson:t={}}=e,{globalStyle:r,pages:n=[]}=t;let i=!1;return(r==null?void 0:r.navigationStyle)==="custom"?(i=!0,n.find(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 b0(e){var u;const t=v0(e),r={navigationBar:!1,navigationBarButtons:!1,navigationBarSearchInput:!1,navigationBarTransparent:!1},{pagesJson:n={}}=e,{globalStyle:i,pages:s=[]}=n;if(t)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 w0(e,t=window){var p,h,d,m;const{pagesJson:r={},manifestJson:n={}}=e,{topWindow:i,leftWindow:s,rightWindow:o}=g0(r),{navigationBar:u,navigationBarButtons:l,navigationBarSearchInput:a,navigationBarTransparent:c}=b0(e),f={__VUE_OPTIONS_API__:!0,__VUE_PROD_DEVTOOLS__:!1,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__:!1,__UNI_FEATURE_WX__:!1,__UNI_FEATURE_WXS__:!1,__UNI_FEATURE_RPX__:!1,__UNI_FEATURE_PROMISE__:!1,__UNI_FEATURE_LONGPRESS__:!1,__UNI_FEATURE_I18N_EN__:!1,__UNI_FEATURE_I18N_ES__:!1,__UNI_FEATURE_I18N_FR__:!1,__UNI_FEATURE_I18N_ZH_HANS__:!0,__UNI_FEATURE_I18N_ZH_HANT__:!1,__UNI_FEATURE_UNI_CLOUD__:!1,__UNI_FEATURE_I18N_LOCALE__:!1,__UNI_FEATURE_NVUE__:!1,__UNI_FEATURE_ROUTER_MODE__:m0(n),__UNI_FEATURE_PAGES__:!!((p=r.pages)!=null&&p.length),__UNI_FEATURE_TABBAR__:!!((d=(h=r.tabBar)==null?void 0:h.list)!=null&&d.length),__UNI_FEATURE_TABBAR_MIDBUTTON__:!!((m=r.tabBar)!=null&&m.midButton),__UNI_FEATURE_TOPWINDOW__:i,__UNI_FEATURE_LEFTWINDOW__:s,__UNI_FEATURE_RIGHTWINDOW__:o,__UNI_FEATURE_RESPONSIVE__:!1,__UNI_FEATURE_NAVIGATIONBAR__:u,__UNI_FEATURE_PULL_DOWN_REFRESH__:y0(e),__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__:l,__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__:a,__UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__:c};Object.entries(f).forEach(([b,E])=>{t[b]=E})}const _0="4.57";function E0(e,t=window){var f,p;const{pagesJson:r={},manifestJson:n={}}=e,{easycom:i={}}=r,{appid:s="",name:o="",versionCode:u="",versionName:l=""}=n,a=r.globalStyle,c=((f=n.h5)==null?void 0:f.router)||{};t.__uniConfig={easycom:i,globalStyle:et(H({},d0(a)),{navigationBar:ea(a),isNVue:!1}),compilerVersion:_0,appId:s,appName:o,appVersion:l,appVersionCode:String(u),async:H({loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0},((p=n.h5)==null?void 0:p.async)||{}),debug:!1,networkTimeout:H({request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},n.networkTimeout||{}),sdkConfigs:{},nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:{},router:H({mode:"hash",base:"/",assets:"assets",routerBase:c.base||"/"},c),darkmode:!1,themeConfig:{},tabBar:r.tabBar?H({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 S0(e,t=window){const{UniServiceJSBridge:r,UniViewJSBridge:n,getApp:i,uni:s,getCurrentPages:o,upx2px:u,setupPage:l}=e;t.UniServiceJSBridge=r,t.UniViewJSBridge=n,t.getApp=i,t.uni=s,t.wx=s,t.getCurrentPages=o,t.upx2px=u,t.__setupPage=a=>l(a)}function x0(e,t,r){const{openBlock:n,createBlock:i,withCtx:s,createVNode:o}=e,{PageComponent:u,setupPage:l,getApp:a}=t;return{mpType:"page",setup(){return F(this,null,function*(){var m,b;const f=((b=(m=a())==null?void 0:m.$route)==null?void 0:b.query)||{},{loader:p,component:h}=r,d=p?yield p(r):h||{};return()=>(n(),i(u,null,{page:s(()=>[o(l(d),Object.assign({},f,{ref:"page"}),null,512)]),_:1}))})}}}function T0(e,t,r){var h;const{path:n,style:i={},meta:s={},home:o,id:u}=t,l=((h=e.tabBar)==null?void 0:h.list)||[],a=l.findIndex(d=>{var m;return d.pagePath===n||((m=d.pagePath)==null?void 0:m.endsWith(u))}),c=l[a],f=!!c,p=r===0;return H({isTabBar:f,tabBarIndex:a,isQuit:o!=null?o:p,isEntry:o!=null?o:p,navigationBar:H({type:"default"},ea(i)),isNVue:!1,route:c?c.pagePath:n},s)}function A0(e,t,r,n,i=window){const s=r.map((o,u)=>{const l=T0(n,o,u),a=x0(e,t,o),{path:c}=o;return{path:c,alias:c,meta:l,component:{render(){return e.h(e.Suspense,[e.h(a)])}}}});i.__uniRoutes=s,i.__uniLayout={}}function R0(e,t,r=window){mn(r,String(e),t)}function O0(e,t){t&&["View","ScrollView","Swiper","MovableArea","MovableView","CoverView","CoverImage","Icon","Text","RichText","Progress","Button","CheckboxGroup","Checkbox","Editor","Form","Input","Label","Picker","PickerView","RadioGroup","Radio","Slider","Switch","Textarea","Navigator","Image","Video","Map","Canvas","WebView","PickerViewColumn","ResizeSensor","SwiperItem"].forEach(r=>{const n=t[r];e.component(r,n)})}function $0(e){const t=p0(e),{Vue:r,App:n,UniH5:i,routes:s=[],pagesJson:o={},manifestJson:u={},window:l,css:a=""}=t;if(!i)return r.createApp(n);const{plugin:c,setupApp:f}=i;w0(t,l),E0(t,l),S0(i,l),A0(r,i,s,o,l),R0(u.appid||Date.now(),a,l);const p=r.createApp(f(n));return p.use(O0,i),p.use(c),p}function j0(e,t){const r={};return Object.entries(e).forEach(([n,i])=>{Qy.includes(n)&&i&&(r[n]=t(i))}),r}function Wi(e,t){return()=>F(null,null,function*(){const r=yield e.getDsl(t);if(r){const{renderer:n}=e.createDslRenderer(r);return n}return null})}function D0(n){return F(this,arguments,function*(e,t=!1,r=zi){var u,l,a;const i=((u=e.project)==null?void 0:u.pages)||[],s=[];for(const c of i){const f=((l=e.project)==null?void 0:l.homepage)===c.id;s.push({id:c.id,path:`${r}/${c.id}`,loader:Wi(e,c.id),style:H({navigationBarTitleText:c.title},c.style),needLogin:c.needLogin,home:f})}const o=s.find(c=>!!c.home)||s[0];if(o){const c=r===zi?"/":r;s.unshift(et(H({},o),{path:c}))}if(t){const c=((a=e.project)==null?void 0:a.blocks)||[];for(const f of c)s.push({id:f.id,path:`${r}/${f.id}`,loader:Wi(e,f.id),style:{navigationStyle:"custom"}})}return s})}function B0(){var e;if((e=window.uni)!=null&&e.showLoading)return window.uni.showLoading({title:"加载中...",mask:!0}),{close:()=>{var t;(t=window.uni)!=null&&t.hideLoading&&window.uni.hideLoading()}}}function ra(e,t="",r="warning"){var n;(n=window.uni)!=null&&n.showModal&&window.uni.showModal({title:t,content:e,showCancel:!1})}function C0(e=tt.Runtime){return e===tt.Runtime?Object.assign({}):Object.assign({})}const N0=uy({loading:B0,notify:ra}),na=new Zy(Yy(ra)),I0=C0(),{provider:P0,onReady:F0}=qy({nodeEnv:"production",mode:tt.Runtime,modules:I0,materialPath:"../",adapter:N0,service:na,dependencies:{Vue:()=>wn(()=>import("./@dcloudio-uni-h5-vue-aeVRcOfZ.js").then(e=>e.L),__vite__mapDeps([0,1,2]),import.meta.url),VueRouter:()=>wn(()=>import("./vue-router-DVjQ9Lh0.js"),__vite__mapDeps([3,0,1,2]),import.meta.url)}}),k0=e=>F(null,null,function*(){const t=(yield na.getExtension().catch(()=>null))||{},r=top||window,n=yield Wy(t.enhance,r.location.pathname),{Vue:i,UniH5:s}=window,o=e.project;if(!o)return;const u=o.uniConfig||{},l=j0(u,d=>ze(d,window,!1,!0)),{manifestJson:a,pagesJson:c,css:f}=u,p=yield D0(e,!0),h=$0({Vue:i,App:l,UniH5:s,routes:p,css:f,manifestJson:a,pagesJson:c});h.use(e),n&&h.use(n,e),h.mount(document.body)});F0(()=>k0(P0));
@@ -13,7 +13,7 @@
13
13
  <title></title>
14
14
  <!--preload-links-->
15
15
  <!--app-context-->
16
- <script type="module" crossorigin src="./assets/index-LCuTbG1u.js"></script>
16
+ <script type="module" crossorigin src="./assets/index-DtMH6Ppa.js"></script>
17
17
  <link rel="modulepreload" crossorigin href="./assets/vue-BK7aLblh.js">
18
18
  <link rel="modulepreload" crossorigin href="./assets/@dcloudio-uni-shared-VStmjWbh.js">
19
19
  <link rel="modulepreload" crossorigin href="./assets/@dcloudio-uni-h5-vue-aeVRcOfZ.js">
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vtj/pro",
3
3
  "private": false,
4
- "version": "0.12.38",
4
+ "version": "0.12.40",
5
5
  "keywords": [
6
6
  "低代码引擎",
7
7
  "LowCode Engine",
@@ -21,21 +21,21 @@
21
21
  "license": "MIT",
22
22
  "type": "module",
23
23
  "dependencies": {
24
- "@vtj/core": "~0.12.38",
25
- "@vtj/designer": "~0.12.38",
26
- "@vtj/local": "~0.12.38",
27
- "@vtj/materials": "~0.12.38",
28
- "@vtj/renderer": "~0.12.38",
29
- "@vtj/uni": "~0.12.38"
24
+ "@vtj/core": "~0.12.40",
25
+ "@vtj/local": "~0.12.40",
26
+ "@vtj/renderer": "~0.12.40",
27
+ "@vtj/materials": "~0.12.40",
28
+ "@vtj/designer": "~0.12.40",
29
+ "@vtj/uni": "~0.12.40"
30
30
  },
31
31
  "devDependencies": {
32
32
  "vue": "~3.5.5",
33
33
  "vue-router": "~4.5.0",
34
+ "@vtj/charts": "~0.12.40",
35
+ "@vtj/icons": "~0.12.40",
36
+ "@vtj/ui": "~0.12.40",
34
37
  "@vtj/cli": "~0.12.4",
35
- "@vtj/icons": "~0.12.38",
36
- "@vtj/charts": "~0.12.38",
37
- "@vtj/ui": "~0.12.38",
38
- "@vtj/utils": "~0.12.38"
38
+ "@vtj/utils": "~0.12.40"
39
39
  },
40
40
  "exports": {
41
41
  "./vite": {
@@ -1 +0,0 @@
1
- var C=Object.defineProperty;var f=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var y=(o,t,e)=>t in o?C(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,l=(o,t)=>{for(var e in t||(t={}))B.call(t,e)&&y(o,e,t[e]);if(f)for(var e of f(t))A.call(t,e)&&y(o,e,t[e]);return o};var p=(o,t,e)=>new Promise((i,s)=>{var a=r=>{try{n(e.next(r))}catch(c){s(c)}},m=r=>{try{n(e.throw(r))}catch(c){s(c)}},n=r=>r.done?i(r.value):Promise.resolve(r.value).then(a,m);n((e=e.apply(o,t)).next())});import"./element-plus-XVJlWyfz.js";import"./vxe-CWcmrjam.js";import{p as v,B as E,a3 as h,o as I,ay as $,y as g}from"./Editor-CyNe60Cy-DrJAuHY9.js";import{useRoute as q}from"./vue-router-BO40Wv73.js";import{d as k,ay as x,c as R,o as w,K as S,O as V,u as _}from"./vue-BfodOvnP.js";import{_ as K}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./lodash-es-BL-d_OSa.js";import"./@vueuse-vmN9qs5b.js";import"./@element-plus-icons-vue-CM-7yUXL.js";import"./shared-CzXu-bVE.js";import"./dayjs-DO-COJPZ.js";import"./monaco-editor-B5WqzYTl.js";import"./html2canvas-CIV5arX1.js";import"./mockjs-Du5X89jz.js";import"./marked-BQZxLJfc.js";const L={class:"loading"},N=k({__name:"Auth",props:{remote:{},access:{}},setup(o){return p(this,null,function*(){let t,e;const i=o,s=v(l(l({alert:h},E),i.access)),a=q(),m=c=>p(null,null,function*(){const d=`${i.remote||I}/api/open/user/${c}`,u=yield $(d).catch(()=>null);return!u||!u.success?(yield h("登录失败"),null):u.data}),n=a.query.token,r=n?([t,e]=x(()=>m(n)),t=yield t,e(),t):null;if(r)try{s.login(r);const c=a.query.redirect;location.href=decodeURIComponent(c||"/")}catch(c){location.reload()}return(c,d)=>(w(),R("div",L,"正在登录中..."))})}}),O=K(N,[["__scopeId","data-v-720ff9d2"]]),Z=k({__name:"auth",setup(o){return p(this,null,function*(){let t,e;const i=new g,s=([t,e]=x(()=>i.getExtension().catch(()=>null)),t=yield t,e(),t),a=s==null?void 0:s.remote,m=s==null?void 0:s.__ACCESS__;return(n,r)=>_(a)?(w(),S(_(O),{key:0,remote:_(a),access:_(m)},null,8,["remote","access"])):V("",!0)})}});export{Z as default};
@@ -1 +0,0 @@
1
- var T=Object.defineProperty;var S=Object.getOwnPropertySymbols;var d=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var g=(t,a,s)=>a in t?T(t,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[a]=s,_=(t,a)=>{for(var s in a||(a={}))d.call(a,s)&&g(t,s,a[s]);if(S)for(var s of S(a))I.call(a,s)&&g(t,s,a[s]);return t};var l=(t,a,s)=>g(t,typeof a!="symbol"?a+"":a,s);var p=(t,a,s)=>new Promise((o,i)=>{var e=r=>{try{n(s.next(r))}catch(E){i(E)}},c=r=>{try{n(s.throw(r))}catch(E){i(E)}},n=r=>r.done?o(r.value):Promise.resolve(r.value).then(e,c);n((s=s.apply(t,a)).next())});import{az as f}from"./vue-BfodOvnP.js";import{B as O,T as V,L as A,a as b,e as R,b as m,f as P,R as D,O as M,D as B,U as L,g as h,G as y,I as N,x,V as j,i as w,N as k,j as v,k as H,l as U,n as Y,o as G,q as K,P as W,Q as C,M as F,r as $,s as z,v as J,z as Q,C as q,E as X,J as Z,F as aa,H as sa,K as ea,S as ta,W as ra,X as ia,Y as na,Z as oa,_ as Ea,$ as la,a0 as _a,a1 as ca,a2 as ga,a3 as Sa,a4 as pa,a5 as ua,a6 as Ta,a7 as da,a8 as Ia,a9 as fa,aa as Oa,ab as Va,ac as Aa,ad as ba,ae as Ra,af as ma,ag as Pa,ah as Da,ai as Ma,aj as Ba,ak as La,al as ha,am as ya,an as Na,t as xa,ao as ja,ap as wa,aq as ka,ar as va,as as Ha,at as Ua,au as Ya,av as Ga,aw as Ka,ax as Wa}from"./Editor-CyNe60Cy-DrJAuHY9.js";import{E as Ca,a as Fa,b as $a,c as za}from"./element-plus-XVJlWyfz.js";const Ja=Object.freeze(Object.defineProperty({__proto__:null,ACCESS:O,API_METHOD_TYPES:V,Assets:A,Binder:b,Box:R,Designer:m,DevTools:P,EVENT_MODIFIERS:D,Editor:M,Engine:B,EventBinder:L,Icon:h,Item:y,KEYBOARD_EVENT_LIST:N,MOBILE_SIZE:x,MOUSE_EVENT_LIST:j,MicroApp:w,NAME_REGEX:k,NPM_REGISTRY_URL:v,OpenApi:H,PAD_SIZE:U,Panel:Y,REMOTE:G,REPORT_API:K,RegionType:W,RegionWrapper:C,Renderer:F,SAVE_BLOCK_FILE_FINISH:$,SESSION_ID_KEY:z,STATE_KEY:J,SetterView:Q,SetterWrapper:q,Simulator:X,Skeleton:Z,SkeletonWrapper:aa,SlotsPicker:sa,Tabs:ea,VERSION_REGEX:ta,VTJ_DESIGNER_VERSION:ra,VUE_DEVTOOLS_FRAME_STATE_KEY:ia,VUE_DEVTOOLS_OVERLAY_PATH:na,VUE_DEVTOOLS_PATH:oa,VariableBinder:Ea,Viewer:la,Viewport:_a,WidgetGroup:ca,WidgetWrapper:ga,alert:Sa,builtInDeps:pa,builtInMaterials:ua,builtInSetters:Ta,builtInWidgets:da,confirm:Ia,createSlotsPicker:fa,defaultSetter:Oa,depsManager:Va,engineKey:Aa,expressionValidate:ba,getClassProperties:Ra,message:ma,normalizedStyle:Pa,notify:Da,proxyContext:Ma,readJsonFile:Ba,regions:La,setterManager:ha,setters:ya,useEngine:Na,widgetManager:xa,widgets:ja},Symbol.toStringTag,{value:"Module"}));class as{constructor(a){l(this,"urls",[]);l(this,"library","");l(this,"params",[]);l(this,"__BASE_PATH__","/");this.config=a;const s=_(_(_({},Ua),Ja),Ha),o={Vue:f,__VTJ_PRO__:s,VtjUtils:va,VtjIcons:ka,VtjUI:wa,ElementPlus:Ca};for(const[E,u]of Object.entries(o))window[E]=u;const{extension:i,__BASE_PATH__:e="/"}=a||{},{urls:c=[],library:n,params:r=[]}=i||{};n&&(this.urls=c,this.library=n,this.params=r,this.__BASE_PATH__=e)}load(){return p(this,null,function*(){let a={};if(this.library){const s=this.__BASE_PATH__,o=this.urls.filter(e=>Ya(e)).map(e=>`${s}${e}`),i=this.urls.filter(e=>Ga(e)).map(e=>`${s}${e}`);if(Ka(o),i.length){const e=yield Wa(i,this.library).catch(()=>null);e&&typeof e=="function"?a=e.call(e,this.config,...this.params):a=e||{}}}return a})}}function ss(){return za.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"})}function es(t,a="",s="warning"){$a({title:a,message:t,type:s})}function ts(t,a){return Fa.alert(t,a)}export{as as E,ts as a,ss as l,es as n};