@vtj/pro 0.20.2 → 0.20.4

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 (25) 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-BOOEBxlN-BdTWZ2QX.js → Editor-7P1MNi-r-BOsJrPbq.js} +120 -120
  14. package/dist/assets/{auth-BMxB61eT.js → auth-BS0vVbuO.js} +1 -1
  15. package/dist/assets/{index-BPBEtev9.js → index-DORnIO4Z.js} +1 -1
  16. package/dist/assets/{index-yqWpHm6J.js → index-DkyHAYE0.js} +2 -2
  17. package/dist/assets/{page-B2OD_1o3.js → page-C3q8ozyL.js} +1 -1
  18. package/dist/assets/{preview-XXk4BT1o.js → preview-CP-Sv9hk.js} +1 -1
  19. package/dist/assets/utils-Dkybf48x.js +1 -0
  20. package/dist/index.html +3 -3
  21. package/dist/uni/assets/{index-B6U9VYnA.js → index-CUlEhdBA.js} +5 -5
  22. package/dist/uni/index.html +1 -1
  23. package/package.json +11 -11
  24. package/dist/assets/utils-99IWTigi.js +0 -1
  25. /package/dist/assets/{Editor-BOOEBxlN-BiBG3Ti1.css → Editor-7P1MNi-r-BiBG3Ti1.css} +0 -0
@@ -1 +1 @@
1
- var I=Object.defineProperty;var C=Object.getOwnPropertySymbols;var $=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;var x=(r,t,e)=>t in r?I(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,y=(r,t)=>{for(var e in t||(t={}))$.call(t,e)&&x(r,e,t[e]);if(C)for(var e of C(t))b.call(t,e)&&x(r,e,t[e]);return r};var p=(r,t,e)=>new Promise((n,s)=>{var c=a=>{try{i(e.next(a))}catch(o){s(o)}},u=a=>{try{i(e.throw(a))}catch(o){s(o)}},i=a=>a.done?n(a.value):Promise.resolve(a.value).then(c,u);i((e=e.apply(r,t)).next())});import"./element-plus-wUcGoN3I.js";import"./vxe-Hv0pYDff.js";import{D as B,aK as E,ad as A,aL as R,aM as q,X as v}from"./Editor-BOOEBxlN-BdTWZ2QX.js";import{useRoute as D}from"./vue-router-Drd5teeV.js";import{y as U,az as w,I as L,D as k,u as _,E as g,U as z}from"./vue-wWzmtsAU.js";import{_ as N}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./@vueuse-Jk9KQurp.js";import"./lodash-es-BxdYFYdv.js";import"./shared-P7kalaod.js";import"./@element-plus-icons-vue-CMB1ifep.js";import"./dayjs-CxR8wwn9.js";import"./monaco-editor-Bgo-w-Z8.js";import"./axios-Cc-15rbk.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-BzNZz4Be.js";import"./marked--VTVY_DP.js";import"./highlight.js-C16ljuUj.js";const S={class:"loading"},X=U({__name:"Auth",props:{remote:{},access:{},baseUrl:{default:"/"}},setup(r){return p(this,null,function*(){let t,e;const n=r,s=B(y(y({alert:A},E),n.access)),c=D(),u=o=>p(null,null,function*(){const d=n.remote||R;let f=!1;const l=yield fetch(`${d}/api/open/session/${o}`,{method:"post",credentials:"include"}).then(h=>(f=h.status===404||h.status===405,h.json())).catch(()=>(f=!0,null));if(l!=null&&l.success)return l.data;if(!f)return null;const m=yield q(`${d}/api/open/user/${o}`).catch(()=>null);return Array.isArray(m)?m:m!=null&&m.data?m.data:null}),i=c.query.token,a=i?([t,e]=w(()=>u(i)),t=yield t,e(),t):null;if(a)try{s.login(a);const o=c.query.redirect;location.href=decodeURIComponent(o||n.baseUrl)}catch(o){location.reload()}else{[t,e]=w(()=>A("登录失败")),yield t,e();const o=c.query.redirect;location.href=decodeURIComponent(o||n.baseUrl)}return(o,d)=>(k(),L("div",S,"正在登录中..."))})}}),j=N(X,[["__scopeId","data-v-60b3c5de"]]),st=U({__name:"auth",setup(r){return p(this,null,function*(){let t,e;const n=new v,s=([t,e]=w(()=>n.getExtension().catch(()=>null)),t=yield t,e(),t),c=s==null?void 0:s.remote,u=s==null?void 0:s.__ACCESS__;return(i,a)=>_(c)?(k(),g(_(j),{key:0,remote:_(c),access:_(u)},null,8,["remote","access"])):z("",!0)})}});export{st as default};
1
+ var I=Object.defineProperty;var C=Object.getOwnPropertySymbols;var $=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;var x=(r,t,e)=>t in r?I(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,y=(r,t)=>{for(var e in t||(t={}))$.call(t,e)&&x(r,e,t[e]);if(C)for(var e of C(t))b.call(t,e)&&x(r,e,t[e]);return r};var p=(r,t,e)=>new Promise((n,s)=>{var c=a=>{try{i(e.next(a))}catch(o){s(o)}},u=a=>{try{i(e.throw(a))}catch(o){s(o)}},i=a=>a.done?n(a.value):Promise.resolve(a.value).then(c,u);i((e=e.apply(r,t)).next())});import"./element-plus-wUcGoN3I.js";import"./vxe-Hv0pYDff.js";import{D as B,aK as E,ad as A,aL as R,aM as q,X as v}from"./Editor-7P1MNi-r-BOsJrPbq.js";import{useRoute as D}from"./vue-router-Drd5teeV.js";import{y as U,az as w,I as L,D as k,u as _,E as g,U as z}from"./vue-wWzmtsAU.js";import{_ as N}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./@vueuse-Jk9KQurp.js";import"./lodash-es-BxdYFYdv.js";import"./shared-P7kalaod.js";import"./@element-plus-icons-vue-CMB1ifep.js";import"./dayjs-CxR8wwn9.js";import"./monaco-editor-Bgo-w-Z8.js";import"./axios-Cc-15rbk.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-BzNZz4Be.js";import"./marked--VTVY_DP.js";import"./highlight.js-C16ljuUj.js";const S={class:"loading"},X=U({__name:"Auth",props:{remote:{},access:{},baseUrl:{default:"/"}},setup(r){return p(this,null,function*(){let t,e;const n=r,s=B(y(y({alert:A},E),n.access)),c=D(),u=o=>p(null,null,function*(){const d=n.remote||R;let f=!1;const l=yield fetch(`${d}/api/open/session/${o}`,{method:"post",credentials:"include"}).then(h=>(f=h.status===404||h.status===405,h.json())).catch(()=>(f=!0,null));if(l!=null&&l.success)return l.data;if(!f)return null;const m=yield q(`${d}/api/open/user/${o}`).catch(()=>null);return Array.isArray(m)?m:m!=null&&m.data?m.data:null}),i=c.query.token,a=i?([t,e]=w(()=>u(i)),t=yield t,e(),t):null;if(a)try{s.login(a);const o=c.query.redirect;location.href=decodeURIComponent(o||n.baseUrl)}catch(o){location.reload()}else{[t,e]=w(()=>A("登录失败")),yield t,e();const o=c.query.redirect;location.href=decodeURIComponent(o||n.baseUrl)}return(o,d)=>(k(),L("div",S,"正在登录中..."))})}}),j=N(X,[["__scopeId","data-v-60b3c5de"]]),st=U({__name:"auth",setup(r){return p(this,null,function*(){let t,e;const n=new v,s=([t,e]=w(()=>n.getExtension().catch(()=>null)),t=yield t,e(),t),c=s==null?void 0:s.remote,u=s==null?void 0:s.__ACCESS__;return(i,a)=>_(c)?(k(),g(_(j),{key:0,remote:_(c),access:_(u)},null,8,["remote","access"])):z("",!0)})}});export{st as default};
@@ -1 +1 @@
1
- var J=Object.defineProperty;var x=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var v=(r,e,t)=>e in r?J(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,y=(r,e)=>{for(var t in e||(e={}))T.call(e,t)&&v(r,t,e[t]);if(x)for(var t of x(e))q.call(e,t)&&v(r,t,e[t]);return r};var f=(r,e,t)=>new Promise((l,_)=>{var u=s=>{try{h(t.next(s))}catch(d){_(d)}},o=s=>{try{h(t.throw(s))}catch(d){_(d)}},h=s=>s.done?l(s.value):Promise.resolve(s.value).then(u,o);h((t=t.apply(r,e)).next())});import{useRoute as H}from"./vue-router-Drd5teeV.js";import{y as M}from"./@vueuse-Jk9KQurp.js";import{X as V,J as X,M as b,D as z,N as $,h as j,d as C}from"./Editor-BOOEBxlN-BdTWZ2QX.js";import"./element-plus-wUcGoN3I.js";import"./vxe-Hv0pYDff.js";import{E as G,a as E,n as A,l as K}from"./utils-99IWTigi.js";import{y as L,az as B,e as O,I as Q,r as U,D as W}from"./vue-wWzmtsAU.js";import{_ as Y}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./monaco-editor-Bgo-w-Z8.js";import"./dayjs-CxR8wwn9.js";import"./axios-Cc-15rbk.js";import"./@element-plus-icons-vue-CMB1ifep.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-BzNZz4Be.js";import"./marked--VTVY_DP.js";import"./highlight.js-C16ljuUj.js";import"./lodash-es-BxdYFYdv.js";import"./shared-P7kalaod.js";const Z=L({__name:"index",setup(r){return f(this,null,function*(){let e,t;const l=H(),_=U(),u=new V(X(A)),o=([e,t]=B(()=>u.getExtension().catch(()=>null)),e=yield e,t(),e||{}),h=o?([e,t]=B(()=>new G(o).load()),e=yield e,t(),e):{},{__BASE_PATH__:s="/",history:d="hash",base:g="/",remote:P,auth:R,checkVersion:S=!0,enhance:N,platform:k="web"}=o||{},D=b({loading:K,notify:A,useTitle:M,alert:E,access:o==null?void 0:o.access,settings:{proxyPath:`${P}/api/proxy`}}),F=z(y({alert:E},o==null?void 0:o.__ACCESS__)),I=()=>d==="hash";$.set("Actions",{props:{cloudPublish:!0}}),$.set("Switcher",{props:{onClick:n=>{const m=location.pathname;let a=m===`${s}__vtj__/`?s:m;const i=n.currentFile;if(i&&i.type==="page"&&n.homepage!==i.id){const c=n.getPageRoutes(p.options.pageRouteName,p.options.pageBasePath).find(w=>w.id===i.id);c&&(a=I()?`${a}#${c.path}`:`${a.replace(/\/$/,"")}${c.path}`)}else i&&n.homepage===i.id?a=`${a}#/`:a=i?`${a}__vtj__/#/preview/${i==null?void 0:i.id}`:a;window.open(a,"VTJProject")}}}),$.set("Previewer",{props:{path:(n,m)=>{const a=location.pathname;if(m.platform==="uniapp"){const c=m.getPageRoutes(p.options.pageRouteName,p.options.pageBasePath).find(w=>w.id===n.id);return`${a}uni/#${(c==null?void 0:c.path)||`/pages/${n.id}`}`}return`${a}#/preview/${n.id}`}}});const p=new j(y({container:_,service:u,materialPath:s,pageBasePath:g==="/"?"":g,adapter:D,access:F,remote:P,auth:R,checkVersion:S,enhance:N,project:{platform:k}},h));return p.ready(()=>f(null,null,function*(){yield C(300),p.openFile(l.query.id)})),O(()=>l.query.id,n=>f(null,null,function*(){yield C(300),p.openFile(n)})),(n,m)=>(W(),Q("div",{class:"designer",ref_key:"container",ref:_},null,512))})}}),$e=Y(Z,[["__scopeId","data-v-f6dc423f"]]);export{$e as default};
1
+ var J=Object.defineProperty;var x=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var v=(r,e,t)=>e in r?J(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,y=(r,e)=>{for(var t in e||(e={}))T.call(e,t)&&v(r,t,e[t]);if(x)for(var t of x(e))q.call(e,t)&&v(r,t,e[t]);return r};var f=(r,e,t)=>new Promise((l,_)=>{var u=s=>{try{h(t.next(s))}catch(d){_(d)}},o=s=>{try{h(t.throw(s))}catch(d){_(d)}},h=s=>s.done?l(s.value):Promise.resolve(s.value).then(u,o);h((t=t.apply(r,e)).next())});import{useRoute as H}from"./vue-router-Drd5teeV.js";import{y as M}from"./@vueuse-Jk9KQurp.js";import{X as V,J as X,M as b,D as z,N as $,h as j,d as C}from"./Editor-7P1MNi-r-BOsJrPbq.js";import"./element-plus-wUcGoN3I.js";import"./vxe-Hv0pYDff.js";import{E as G,a as E,n as A,l as K}from"./utils-Dkybf48x.js";import{y as L,az as B,e as O,I as Q,r as U,D as W}from"./vue-wWzmtsAU.js";import{_ as Y}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./monaco-editor-Bgo-w-Z8.js";import"./dayjs-CxR8wwn9.js";import"./axios-Cc-15rbk.js";import"./@element-plus-icons-vue-CMB1ifep.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-BzNZz4Be.js";import"./marked--VTVY_DP.js";import"./highlight.js-C16ljuUj.js";import"./lodash-es-BxdYFYdv.js";import"./shared-P7kalaod.js";const Z=L({__name:"index",setup(r){return f(this,null,function*(){let e,t;const l=H(),_=U(),u=new V(X(A)),o=([e,t]=B(()=>u.getExtension().catch(()=>null)),e=yield e,t(),e||{}),h=o?([e,t]=B(()=>new G(o).load()),e=yield e,t(),e):{},{__BASE_PATH__:s="/",history:d="hash",base:g="/",remote:P,auth:R,checkVersion:S=!0,enhance:N,platform:k="web"}=o||{},D=b({loading:K,notify:A,useTitle:M,alert:E,access:o==null?void 0:o.access,settings:{proxyPath:`${P}/api/proxy`}}),F=z(y({alert:E},o==null?void 0:o.__ACCESS__)),I=()=>d==="hash";$.set("Actions",{props:{cloudPublish:!0}}),$.set("Switcher",{props:{onClick:n=>{const m=location.pathname;let a=m===`${s}__vtj__/`?s:m;const i=n.currentFile;if(i&&i.type==="page"&&n.homepage!==i.id){const c=n.getPageRoutes(p.options.pageRouteName,p.options.pageBasePath).find(w=>w.id===i.id);c&&(a=I()?`${a}#${c.path}`:`${a.replace(/\/$/,"")}${c.path}`)}else i&&n.homepage===i.id?a=`${a}#/`:a=i?`${a}__vtj__/#/preview/${i==null?void 0:i.id}`:a;window.open(a,"VTJProject")}}}),$.set("Previewer",{props:{path:(n,m)=>{const a=location.pathname;if(m.platform==="uniapp"){const c=m.getPageRoutes(p.options.pageRouteName,p.options.pageBasePath).find(w=>w.id===n.id);return`${a}uni/#${(c==null?void 0:c.path)||`/pages/${n.id}`}`}return`${a}#/preview/${n.id}`}}});const p=new j(y({container:_,service:u,materialPath:s,pageBasePath:g==="/"?"":g,adapter:D,access:F,remote:P,auth:R,checkVersion:S,enhance:N,project:{platform:k}},h));return p.ready(()=>f(null,null,function*(){yield C(300),p.openFile(l.query.id)})),O(()=>l.query.id,n=>f(null,null,function*(){yield C(300),p.openFile(n)})),(n,m)=>(W(),Q("div",{class:"designer",ref_key:"container",ref:_},null,512))})}}),$e=Y(Z,[["__scopeId","data-v-f6dc423f"]]);export{$e as default};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-BPBEtev9.js","./vue-router-Drd5teeV.js","./vue-wWzmtsAU.js","./@vueuse-Jk9KQurp.js","./Editor-BOOEBxlN-BdTWZ2QX.js","./monaco-editor-Bgo-w-Z8.js","./monaco-editor-C0wzwsn5.css","./element-plus-wUcGoN3I.js","./lodash-es-BxdYFYdv.js","./shared-P7kalaod.js","./@element-plus-icons-vue-CMB1ifep.js","./dayjs-CxR8wwn9.js","./element-plus-Bw1qTWaj.css","./axios-Cc-15rbk.js","./vxe-Hv0pYDff.js","./vxe-BAb1d5vW.css","./html2canvas-DNSjNh3_.js","./mockjs-BzNZz4Be.js","./marked--VTVY_DP.js","./highlight.js-C16ljuUj.js","./Editor-BOOEBxlN-BiBG3Ti1.css","./utils-99IWTigi.js","./_plugin-vue_export-helper-DlAUqK2U.js","./index-ayZdn0AI.css","./preview-XXk4BT1o.js","./page-B2OD_1o3.js","./uni-page-551_wqCE.js","./uni-page-Diqmj53r.css","./auth-BMxB61eT.js"])))=>i.map(i=>d[i]);
2
- import{y as l,E as n,u as s,af as d,D as m,K as u,aB as f,J as h,at as v}from"./vue-wWzmtsAU.js";import{z as E,c as g}from"./element-plus-wUcGoN3I.js";import"./dayjs-CxR8wwn9.js";import{_ as r}from"./monaco-editor-Bgo-w-Z8.js";import{createRouter as y,createWebHashHistory as O}from"./vue-router-Drd5teeV.js";import"./@vueuse-Jk9KQurp.js";import"./lodash-es-BxdYFYdv.js";import"./shared-P7kalaod.js";import"./@element-plus-icons-vue-CMB1ifep.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"]'))a(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const i of t.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&a(i)}).observe(document,{childList:!0,subtree:!0});function p(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 a(e){if(e.ep)return;e.ep=!0;const t=p(e);fetch(e.href,t)}})();const P=l({__name:"app",setup(_){return(o,p)=>{const a=d("router-view");return m(),n(s(g),{locale:s(E)},{default:u(()=>[(m(),n(f,null,{default:u(()=>[h(a)]),_:1}))]),_:1},8,["locale"])}}}),L=[{path:"/",name:"home",component:()=>r(()=>import("./index-BPBEtev9.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,22,23]),import.meta.url)},{path:"/preview/:id",name:"preview",component:()=>r(()=>import("./preview-XXk4BT1o.js"),__vite__mapDeps([24,5,6,1,2,7,3,8,9,10,11,12,14,15,4,13,16,17,18,19,20,21]),import.meta.url)},{path:"/page/:id",name:"page",component:()=>r(()=>import("./page-B2OD_1o3.js"),__vite__mapDeps([25,5,6,1,2,7,3,8,9,10,11,12,14,15,4,13,16,17,18,19,20,21]),import.meta.url),meta:{pure:!0}},{path:"/pages/:id",name:"pages",component:()=>r(()=>import("./uni-page-551_wqCE.js"),__vite__mapDeps([26,1,2,22,27]),import.meta.url),meta:{pure:!0}},{path:"/auth",name:"auth",component:()=>r(()=>import("./auth-BMxB61eT.js"),__vite__mapDeps([28,7,3,2,8,9,10,11,12,14,15,4,5,6,13,1,16,17,18,19,20,22]),import.meta.url)},{path:"/:pathMatch(.*)*",name:"custom-page",component:()=>r(()=>import("./page-B2OD_1o3.js"),__vite__mapDeps([25,5,6,1,2,7,3,8,9,10,11,12,14,15,4,13,16,17,18,19,20,21]),import.meta.url),meta:{pure:!0}}],A=y({history:O(),routes:L}),c=v(P);c.use(A);c.mount("#app");
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-DORnIO4Z.js","./vue-router-Drd5teeV.js","./vue-wWzmtsAU.js","./@vueuse-Jk9KQurp.js","./Editor-7P1MNi-r-BOsJrPbq.js","./monaco-editor-Bgo-w-Z8.js","./monaco-editor-C0wzwsn5.css","./element-plus-wUcGoN3I.js","./lodash-es-BxdYFYdv.js","./shared-P7kalaod.js","./@element-plus-icons-vue-CMB1ifep.js","./dayjs-CxR8wwn9.js","./element-plus-Bw1qTWaj.css","./axios-Cc-15rbk.js","./vxe-Hv0pYDff.js","./vxe-BAb1d5vW.css","./html2canvas-DNSjNh3_.js","./mockjs-BzNZz4Be.js","./marked--VTVY_DP.js","./highlight.js-C16ljuUj.js","./Editor-7P1MNi-r-BiBG3Ti1.css","./utils-Dkybf48x.js","./_plugin-vue_export-helper-DlAUqK2U.js","./index-ayZdn0AI.css","./preview-CP-Sv9hk.js","./page-C3q8ozyL.js","./uni-page-551_wqCE.js","./uni-page-Diqmj53r.css","./auth-BS0vVbuO.js"])))=>i.map(i=>d[i]);
2
+ import{y as l,E as n,u as s,af as d,D as m,K as u,aB as f,J as h,at as v}from"./vue-wWzmtsAU.js";import{z as E,c as g}from"./element-plus-wUcGoN3I.js";import"./dayjs-CxR8wwn9.js";import{_ as r}from"./monaco-editor-Bgo-w-Z8.js";import{createRouter as y,createWebHashHistory as O}from"./vue-router-Drd5teeV.js";import"./@vueuse-Jk9KQurp.js";import"./lodash-es-BxdYFYdv.js";import"./shared-P7kalaod.js";import"./@element-plus-icons-vue-CMB1ifep.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"]'))a(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const i of t.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&a(i)}).observe(document,{childList:!0,subtree:!0});function p(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 a(e){if(e.ep)return;e.ep=!0;const t=p(e);fetch(e.href,t)}})();const P=l({__name:"app",setup(_){return(o,p)=>{const a=d("router-view");return m(),n(s(g),{locale:s(E)},{default:u(()=>[(m(),n(f,null,{default:u(()=>[h(a)]),_:1}))]),_:1},8,["locale"])}}}),L=[{path:"/",name:"home",component:()=>r(()=>import("./index-DORnIO4Z.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,22,23]),import.meta.url)},{path:"/preview/:id",name:"preview",component:()=>r(()=>import("./preview-CP-Sv9hk.js"),__vite__mapDeps([24,5,6,1,2,7,3,8,9,10,11,12,14,15,4,13,16,17,18,19,20,21]),import.meta.url)},{path:"/page/:id",name:"page",component:()=>r(()=>import("./page-C3q8ozyL.js"),__vite__mapDeps([25,5,6,1,2,7,3,8,9,10,11,12,14,15,4,13,16,17,18,19,20,21]),import.meta.url),meta:{pure:!0}},{path:"/pages/:id",name:"pages",component:()=>r(()=>import("./uni-page-551_wqCE.js"),__vite__mapDeps([26,1,2,22,27]),import.meta.url),meta:{pure:!0}},{path:"/auth",name:"auth",component:()=>r(()=>import("./auth-BS0vVbuO.js"),__vite__mapDeps([28,7,3,2,8,9,10,11,12,14,15,4,5,6,13,1,16,17,18,19,20,22]),import.meta.url)},{path:"/:pathMatch(.*)*",name:"custom-page",component:()=>r(()=>import("./page-C3q8ozyL.js"),__vite__mapDeps([25,5,6,1,2,7,3,8,9,10,11,12,14,15,4,13,16,17,18,19,20,21]),import.meta.url),meta:{pure:!0}}],A=y({history:O(),routes:L}),c=v(P);c.use(A);c.mount("#app");
@@ -1,2 +1,2 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-Drd5teeV.js","./vue-wWzmtsAU.js"])))=>i.map(i=>d[i]);
2
- var k=Object.defineProperty;var w=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;var C=(o,t,e)=>t in o?k(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,y=(o,t)=>{for(var e in t||(t={}))H.call(t,e)&&C(o,e,t[e]);if(w)for(var e of w(t))N.call(t,e)&&C(o,e,t[e]);return o};var l=(o,t,e)=>new Promise((d,n)=>{var f=r=>{try{m(e.next(r))}catch(u){n(u)}},c=r=>{try{m(e.throw(r))}catch(u){n(u)}},m=r=>r.done?d(r.value):Promise.resolve(r.value).then(f,c);m((e=e.apply(o,t)).next())});import{_ as x}from"./monaco-editor-Bgo-w-Z8.js";import{useRoute as S}from"./vue-router-Drd5teeV.js";import"./element-plus-wUcGoN3I.js";import"./vxe-Hv0pYDff.js";import{X as b,J as F,M as J,H as L,T as M,Y as O,F as X,b as Y}from"./Editor-BOOEBxlN-BdTWZ2QX.js";import{a as z,n as B,l as U,E as W}from"./utils-99IWTigi.js";import{y as q}from"./@vueuse-Jk9KQurp.js";import{y as G,az as A,e as K,E as Q,S as Z,U as $,r as tt,D as et,g as at}from"./vue-wWzmtsAU.js";import"./lodash-es-BxdYFYdv.js";import"./shared-P7kalaod.js";import"./@element-plus-icons-vue-CMB1ifep.js";import"./dayjs-CxR8wwn9.js";import"./axios-Cc-15rbk.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-BzNZz4Be.js";import"./marked--VTVY_DP.js";import"./highlight.js-C16ljuUj.js";const Rt=G({__name:"page",setup(o){return l(this,null,function*(){var R;let t,e;const d=new b(F(B)),n=([t,e]=A(()=>d.getExtension().catch(()=>null)),t=yield t,e(),t),f=J({loading:U,notify:B,useTitle:q,alert:z,access:n==null?void 0:n.access}),c=n?([t,e]=A(()=>new W(n).load()),t=yield t,e(),t):{},{__BASE_PATH__:m="/",base:r="/"}=n||{},u=c.pageRouteName||"page",I=(R=c.pageBasePath)!=null?R:r==="/"?"":r,{provider:v,onReady:T}=L({mode:M.Runtime,service:d,materialPath:m,adapter:y(y({},f),c.adapter),dependencies:{Vue:()=>x(()=>import("./vue-wWzmtsAU.js").then(a=>a.aA),[],import.meta.url),VueRouter:()=>x(()=>import("./vue-router-Drd5teeV.js"),__vite__mapDeps([0,1]),import.meta.url)}}),_=S(),g=tt(),i=at(),V=(a,s)=>{const p=a.split("/").filter(Boolean),h=s.split("/").filter(Boolean);return p.length===h.length&&p.every((E,j)=>E.startsWith(":")||E===h[j])},D=()=>{var p;const a=v.project,s=a?new Y(a).getPageRoutes(u,I).find(h=>V(h.path,_.path)):void 0;return(s==null?void 0:s.id)||_.meta.__vtj__||((p=_.params.id)==null?void 0:p.toString())},P=a=>l(null,null,function*(){const s=D();if(!s){g.value=null;return}g.value=yield v.getRenderComponent(s,p=>{X(a,_,p)})});return T(()=>l(null,null,function*(){const a=i==null?void 0:i.appContext.app;a&&(a.use(O),a.use(v),P(a))})),K(()=>_.path,()=>l(null,null,function*(){const a=i==null?void 0:i.appContext.app;a&&P(a)})),(a,s)=>g.value?(et(),Q(Z(g.value),{key:0})):$("",!0)})}});export{Rt as default};
2
+ var k=Object.defineProperty;var w=Object.getOwnPropertySymbols;var H=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;var C=(o,t,e)=>t in o?k(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,y=(o,t)=>{for(var e in t||(t={}))H.call(t,e)&&C(o,e,t[e]);if(w)for(var e of w(t))N.call(t,e)&&C(o,e,t[e]);return o};var l=(o,t,e)=>new Promise((d,n)=>{var f=r=>{try{m(e.next(r))}catch(u){n(u)}},c=r=>{try{m(e.throw(r))}catch(u){n(u)}},m=r=>r.done?d(r.value):Promise.resolve(r.value).then(f,c);m((e=e.apply(o,t)).next())});import{_ as x}from"./monaco-editor-Bgo-w-Z8.js";import{useRoute as S}from"./vue-router-Drd5teeV.js";import"./element-plus-wUcGoN3I.js";import"./vxe-Hv0pYDff.js";import{X as b,J as F,M as J,H as L,T as M,Y as O,F as X,b as Y}from"./Editor-7P1MNi-r-BOsJrPbq.js";import{a as z,n as B,l as U,E as W}from"./utils-Dkybf48x.js";import{y as q}from"./@vueuse-Jk9KQurp.js";import{y as G,az as A,e as K,E as Q,S as Z,U as $,r as tt,D as et,g as at}from"./vue-wWzmtsAU.js";import"./lodash-es-BxdYFYdv.js";import"./shared-P7kalaod.js";import"./@element-plus-icons-vue-CMB1ifep.js";import"./dayjs-CxR8wwn9.js";import"./axios-Cc-15rbk.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-BzNZz4Be.js";import"./marked--VTVY_DP.js";import"./highlight.js-C16ljuUj.js";const Rt=G({__name:"page",setup(o){return l(this,null,function*(){var R;let t,e;const d=new b(F(B)),n=([t,e]=A(()=>d.getExtension().catch(()=>null)),t=yield t,e(),t),f=J({loading:U,notify:B,useTitle:q,alert:z,access:n==null?void 0:n.access}),c=n?([t,e]=A(()=>new W(n).load()),t=yield t,e(),t):{},{__BASE_PATH__:m="/",base:r="/"}=n||{},u=c.pageRouteName||"page",I=(R=c.pageBasePath)!=null?R:r==="/"?"":r,{provider:v,onReady:T}=L({mode:M.Runtime,service:d,materialPath:m,adapter:y(y({},f),c.adapter),dependencies:{Vue:()=>x(()=>import("./vue-wWzmtsAU.js").then(a=>a.aA),[],import.meta.url),VueRouter:()=>x(()=>import("./vue-router-Drd5teeV.js"),__vite__mapDeps([0,1]),import.meta.url)}}),_=S(),g=tt(),i=at(),V=(a,s)=>{const p=a.split("/").filter(Boolean),h=s.split("/").filter(Boolean);return p.length===h.length&&p.every((E,j)=>E.startsWith(":")||E===h[j])},D=()=>{var p;const a=v.project,s=a?new Y(a).getPageRoutes(u,I).find(h=>V(h.path,_.path)):void 0;return(s==null?void 0:s.id)||_.meta.__vtj__||((p=_.params.id)==null?void 0:p.toString())},P=a=>l(null,null,function*(){const s=D();if(!s){g.value=null;return}g.value=yield v.getRenderComponent(s,p=>{X(a,_,p)})});return T(()=>l(null,null,function*(){const a=i==null?void 0:i.appContext.app;a&&(a.use(O),a.use(v),P(a))})),K(()=>_.path,()=>l(null,null,function*(){const a=i==null?void 0:i.appContext.app;a&&P(a)})),(a,s)=>g.value?(et(),Q(Z(g.value),{key:0})):$("",!0)})}});export{Rt as default};
@@ -1,2 +1,2 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vue-router-Drd5teeV.js","./vue-wWzmtsAU.js"])))=>i.map(i=>d[i]);
2
- var x=Object.defineProperty;var y=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable;var E=(o,t,e)=>t in o?x(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,d=(o,t)=>{for(var e in t||(t={}))A.call(t,e)&&E(o,e,t[e]);if(y)for(var e of y(t))g.call(t,e)&&E(o,e,t[e]);return o};var f=(o,t,e)=>new Promise((c,r)=>{var _=a=>{try{i(e.next(a))}catch(p){r(p)}},s=a=>{try{i(e.throw(a))}catch(p){r(p)}},i=a=>a.done?c(a.value):Promise.resolve(a.value).then(_,s);i((e=e.apply(o,t)).next())});import{_ as w}from"./monaco-editor-Bgo-w-Z8.js";import{useRoute as P}from"./vue-router-Drd5teeV.js";import"./element-plus-wUcGoN3I.js";import"./vxe-Hv0pYDff.js";import{X as T,J as V,M as D,H as k,T as B,K as H,Y as I,F as S}from"./Editor-BOOEBxlN-BdTWZ2QX.js";import{a as F,n as h,l as J,E as K}from"./utils-99IWTigi.js";import{y as L}from"./@vueuse-Jk9KQurp.js";import{y as M,az as C,E as O,S as X,U as Y,r as z,D as N,g as U}from"./vue-wWzmtsAU.js";import"./lodash-es-BxdYFYdv.js";import"./shared-P7kalaod.js";import"./@element-plus-icons-vue-CMB1ifep.js";import"./dayjs-CxR8wwn9.js";import"./axios-Cc-15rbk.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-BzNZz4Be.js";import"./marked--VTVY_DP.js";import"./highlight.js-C16ljuUj.js";const ct=M({__name:"preview",setup(o){return f(this,null,function*(){let t,e;const c=new T(V(h)),r=([t,e]=C(()=>c.getExtension().catch(()=>null)),t=yield t,e(),t||{}),_=D({loading:J,notify:h,useTitle:L,alert:F,access:r==null?void 0:r.access}),s=r?([t,e]=C(()=>new K(r).load()),t=yield t,e(),t):{},{__BASE_PATH__:i="/"}=r||{},{provider:a,onReady:p}=k({mode:B.Runtime,service:c,materialPath:i,adapter:d(d({},_),s.adapter),dependencies:{Vue:()=>w(()=>import("./vue-wWzmtsAU.js").then(m=>m.aA),[],import.meta.url),VueRouter:()=>w(()=>import("./vue-router-Drd5teeV.js"),__vite__mapDeps([0,1]),import.meta.url)}}),v=P(),u=z(),l=U();return p(()=>f(null,null,function*(){const m=yield H(r.enhance),n=l==null?void 0:l.appContext.app;n&&(s.install&&s.install(n),m&&n.use(m,a),n.use(I),n.use(a),u.value=yield a.getRenderComponent(v.params.id.toString(),R=>{S(n,v,R)}))})),(m,n)=>u.value?(N(),O(X(u.value),{key:0})):Y("",!0)})}});export{ct as default};
2
+ var x=Object.defineProperty;var y=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable;var E=(o,t,e)=>t in o?x(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,d=(o,t)=>{for(var e in t||(t={}))A.call(t,e)&&E(o,e,t[e]);if(y)for(var e of y(t))g.call(t,e)&&E(o,e,t[e]);return o};var f=(o,t,e)=>new Promise((c,r)=>{var _=a=>{try{i(e.next(a))}catch(p){r(p)}},s=a=>{try{i(e.throw(a))}catch(p){r(p)}},i=a=>a.done?c(a.value):Promise.resolve(a.value).then(_,s);i((e=e.apply(o,t)).next())});import{_ as w}from"./monaco-editor-Bgo-w-Z8.js";import{useRoute as P}from"./vue-router-Drd5teeV.js";import"./element-plus-wUcGoN3I.js";import"./vxe-Hv0pYDff.js";import{X as T,J as V,M as D,H as k,T as B,K as H,Y as I,F as S}from"./Editor-7P1MNi-r-BOsJrPbq.js";import{a as F,n as h,l as J,E as K}from"./utils-Dkybf48x.js";import{y as L}from"./@vueuse-Jk9KQurp.js";import{y as M,az as C,E as O,S as X,U as Y,r as z,D as N,g as U}from"./vue-wWzmtsAU.js";import"./lodash-es-BxdYFYdv.js";import"./shared-P7kalaod.js";import"./@element-plus-icons-vue-CMB1ifep.js";import"./dayjs-CxR8wwn9.js";import"./axios-Cc-15rbk.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-BzNZz4Be.js";import"./marked--VTVY_DP.js";import"./highlight.js-C16ljuUj.js";const ct=M({__name:"preview",setup(o){return f(this,null,function*(){let t,e;const c=new T(V(h)),r=([t,e]=C(()=>c.getExtension().catch(()=>null)),t=yield t,e(),t||{}),_=D({loading:J,notify:h,useTitle:L,alert:F,access:r==null?void 0:r.access}),s=r?([t,e]=C(()=>new K(r).load()),t=yield t,e(),t):{},{__BASE_PATH__:i="/"}=r||{},{provider:a,onReady:p}=k({mode:B.Runtime,service:c,materialPath:i,adapter:d(d({},_),s.adapter),dependencies:{Vue:()=>w(()=>import("./vue-wWzmtsAU.js").then(m=>m.aA),[],import.meta.url),VueRouter:()=>w(()=>import("./vue-router-Drd5teeV.js"),__vite__mapDeps([0,1]),import.meta.url)}}),v=P(),u=z(),l=U();return p(()=>f(null,null,function*(){const m=yield H(r.enhance),n=l==null?void 0:l.appContext.app;n&&(s.install&&s.install(n),m&&n.use(m,a),n.use(I),n.use(a),u.value=yield a.getRenderComponent(v.params.id.toString(),R=>{S(n,v,R)}))})),(m,n)=>u.value?(N(),O(X(u.value),{key:0})):Y("",!0)})}});export{ct as default};
@@ -0,0 +1 @@
1
+ var d=Object.defineProperty;var p=Object.getOwnPropertySymbols;var I=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var g=(t,a,s)=>a in t?d(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(p)for(var s of p(a))O.call(a,s)&&g(t,s,a[s]);return t};var E=(t,a,s)=>g(t,typeof a!="symbol"?a+"":a,s);var S=(t,a,s)=>new Promise((o,n)=>{var e=r=>{try{i(s.next(r))}catch(l){n(l)}},c=r=>{try{i(s.throw(r))}catch(l){n(l)}},i=r=>r.done?o(r.value):Promise.resolve(r.value).then(e,c);i((s=s.apply(t,a)).next())});import{aA as T}from"./vue-wWzmtsAU.js";import{i as h,$ as f,l as m,r as A,q as V,a as b,p as P,Q as y,n as R,c as M,e as N,h as L,f as B,g as D,j as k,k as w,v,m as x,o as K,s as C,t as H,u as W,w as G,x as U,y as Y,z as F,A as $,B as j,C as z,E as J,G as Z,V as q,I as Q,Z as X,_ as aa,L as sa,O as ea,P as ta,R as ra,S as na,U as ia,W as oa,a0 as la,a1 as Ea,a2 as _a,a3 as ca,a4 as ga,a5 as pa,a6 as Sa,a7 as ua,a8 as da,a9 as Ia,aa as Oa,ab as Ta,ac as ha,ad as fa,ae as ma,af as Aa,ag as Va,ah as ba,ai as Pa,aj as ya,ak as Ra,al as Ma,am as Na,an as La,ao as Ba,ap as Da,aq as ka,ar as wa,as as va,at as xa,au as Ka,av as Ca,aw as Ha,ax as Wa,ay as Ga,az as Ua,aA as Ya,aB as Fa,N as $a,aC as ja,aD as za,aE as Ja,aF as Za,aG as qa,aH as Qa,aI as Xa,aJ as as}from"./Editor-7P1MNi-r-BOsJrPbq.js";import{E as ss,a as es,b as ts}from"./element-plus-wUcGoN3I.js";import"./dayjs-CxR8wwn9.js";const rs=Object.freeze(Object.defineProperty({__proto__:null,API_METHOD_TYPES:h,ActionMenu:f,Assets:m,Binder:A,Box:V,CodeIncrementalUpdater:b,DEVTOOLS_DEP:P,DepsManager:y,Designer:R,EVENT_MODIFIERS:M,Editor:N,Engine:L,EventBinder:B,GET_TOKENS_LINK:D,HOT_KEYS_DEP:k,Icon:w,Item:v,KEYBOARD_EVENT_LIST:x,MAX_TOKENS:K,MOBILE_SIZE:C,MOUSE_EVENT_LIST:H,NAME_REGEX:W,NPM_REGISTRY_URL:G,OpenApi:U,PAD_SIZE:Y,Panel:F,REPORT_API:$,RegionType:j,RegionWrapper:z,Renderer:J,SAVE_BLOCK_FILE_FINISH:Z,SESSION_ID_KEY:q,STATE_KEY:Q,SetterManager:X,SetterView:aa,SetterWrapper:sa,Simulator:ea,Skeleton:ta,SkeletonWrapper:ra,SlotsPicker:na,State:ia,TOOL_CONFIGS:oa,Tabs:la,ToolRegistry:Ea,VERSION_REGEX:_a,VTJ_DESIGNER_VERSION:ca,VUE_DEVTOOLS_FRAME_STATE_KEY:ga,VUE_DEVTOOLS_OVERLAY_PATH:pa,VUE_DEVTOOLS_PATH:Sa,VariableBinder:ua,Viewer:da,Viewport:Ia,WidgetGroup:Oa,WidgetManager:Ta,WidgetWrapper:ha,alert:fa,builtInDeps:ma,builtInMaterials:Aa,builtInSetters:Va,builtInWidgets:ba,codeIncrementalUpdater:Pa,confirm:ya,createSlotsPicker:Ra,defaultSetter:Ma,depsManager:Na,engineKey:La,expressionValidate:Ba,getClassProperties:Da,getComposableNames:ka,loading:wa,message:va,normalizedStyle:xa,notify:Ka,proxyContext:Ca,readJsonFile:Ha,regions:Wa,setterManager:Ga,setters:Ua,upgradeVersion:Ya,useEngine:Fa,widgetManager:$a,widgets:ja},Symbol.toStringTag,{value:"Module"}));class _s{constructor(a){E(this,"urls",[]);E(this,"library","");E(this,"params",[]);E(this,"__BASE_PATH__","/");this.config=a;const s=_(_(_({},Ja),rs),za),o={Vue:T,__VTJ_PRO__:s};for(const[l,u]of Object.entries(o))window[l]=u;const{extension:n,__BASE_PATH__:e="/"}=a||{},{urls:c=[],library:i,params:r=[]}=n||{};i&&(this.urls=c,this.library=i,this.params=r,this.__BASE_PATH__=e)}load(){return S(this,null,function*(){let a={};if(this.library){const s=this.__BASE_PATH__,o=this.urls.filter(e=>Za(e)).map(e=>`${s}${e}`),n=this.urls.filter(e=>qa(e)).map(e=>`${s}${e}`);if(Qa(o),n.length){const e=yield Xa(n,this.library).catch(()=>null);e&&typeof e=="function"?a=e.call(e,this.config,...this.params):a=e||{}}}return Object.assign({},this.getEngineOptions(),a)})}getEngineOptions(){const a=["materialPath","pageBasePath","pageRouteName","remote","checkVersion","noMask","auth"];return as(this.config,a)}}function cs(){return ts.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"})}function gs(t,a="",s="warning"){es({title:a,message:t,type:s})}function ps(t,a){return ss.alert(t,a)}export{_s as E,ps as a,cs as l,gs as n};
package/dist/index.html CHANGED
@@ -11,7 +11,7 @@
11
11
  <meta http-equiv="Expires" content="0" />
12
12
  <title>低代码设计器 - VTJ.PRO</title>
13
13
  <script>
14
- var __BUILD_TIME__ = '1788320120005';
14
+ var __BUILD_TIME__ = '1788424597381';
15
15
  (function () {
16
16
  const regex = /<!--{{(\d*)}}-->/;
17
17
  window.fetch('?t=' + Date.now()).then(async (res) => {
@@ -27,9 +27,9 @@
27
27
  });
28
28
  })();
29
29
  </script>
30
- <!--{{1788320120005}}-->
30
+ <!--{{1788424597381}}-->
31
31
 
32
- <script type="module" crossorigin src="./assets/index-yqWpHm6J.js"></script>
32
+ <script type="module" crossorigin src="./assets/index-DkyHAYE0.js"></script>
33
33
  <link rel="modulepreload" crossorigin href="./assets/vue-wWzmtsAU.js">
34
34
  <link rel="modulepreload" crossorigin href="./assets/@vueuse-Jk9KQurp.js">
35
35
  <link rel="modulepreload" crossorigin href="./assets/lodash-es-BxdYFYdv.js">
@@ -46,21 +46,21 @@ function print() { __p += __j.call(arguments, '') }
46
46
  * Copyright (c) 2026, VTJ.PRO All rights reserved.
47
47
  * @name @vtj/core
48
48
  * @author CHC chenhuachun1549@dingtalk.com
49
- * @version 0.20.2
49
+ * @version 0.20.4
50
50
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
51
51
  */const km="VueMaterial",Om="VueRouterMaterial",Pm={[km]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[Om]:["RouterView","RouterLink"]};let $m=class{constructor(){H(this,"listeners",[]);H(this,"isReady",!1)}triggerReady(){this.isReady=!0;for(const e of this.listeners)e();this.listeners=[]}ready(e){this.isReady?e():this.listeners.push(e)}resetReady(){this.isReady=!1}};function Dm(t){return(t||"").trim().replace(/\\/g,"/").replace(/^\/+|\/+$/g,"").replace(/\.vue$/i,"")}function en(t){const e=(t||"").trim().replace(/\\/g,"/");if(!e)return"";const r=`/${e}`.replace(/\/{2,}/g,"/");return r.length>1?r.replace(/\/$/,""):r}function ei(t){return Dm(t.filePath)||t.id}function Nm(t,e="web"){const r=ei(t);return t.type==="block"?`src/components/${r}.vue`:e==="uniapp"?`src/pages/${r}.vue`:`src/views/${r}.vue`}function In(t,e="",r="page"){const n=en(t.routePath);if(n)return n;if(t.filePath){const i=ei(t).split("/").map(s=>Yd(s)).join("/");return en(`${e}${r}/${i}`)}return en(`${e}${r}/${t.id}`)}function Bm(t){return`pages/${ei(t)}`}function lo(t=[]){var r;const e=[];for(const n of t)n.dir||e.push(n),(r=n.children)!=null&&r.length&&e.push(...lo(n.children));return e}var Lm=Object.defineProperty,jm=(t,e,r)=>e in t?Lm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ee=(t,e,r)=>jm(t,typeof e!="symbol"?e+"":e,r);(function(){if(typeof window>"u"||typeof EventTarget>"u")return;const t=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(e,r,n){typeof n!="boolean"&&(n=n||{},n.passive=!1),t.call(this,e,r,n)}})();/**!
52
52
  * Copyright (c) 2026, VTJ.PRO All rights reserved.
53
53
  * @name @vtj/utils
54
54
  * @author CHC chenhuachun1549@dingtalk.com
55
- * @version 0.20.2
55
+ * @version 0.20.4
56
56
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
57
57
  */const Vm={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},Mm=["put","post","patch"],As="Local-Request-Id",Fm=100,Um=300,Hm="/api/proxy";let qm=class{constructor(e={}){Ee(this,"axios"),Ee(this,"settings"),Ee(this,"records",{}),Ee(this,"isLoading",!1),Ee(this,"stopSkipWarn"),Ee(this,"showLoading"),Ee(this,"showError"),this.settings=Object.assign({type:"form"},e.settings||{});const r=Xr(e,["settings","query"]);this.axios=bi.create(Bt({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:120*1e3},r)),this.setupSkipWarn(this.settings),this.showLoading=Yn(this.openLoading.bind(this),Fm),this.showError=vg(this._showError.bind(this),Um,{leading:!0,trailing:!1})}setConfig(e={}){this.settings=Bt(this.settings,e.settings||{});const r=Xr(e,["settings","query"]);this.axios.defaults=Bt(this.axios.defaults,r),this.setupSkipWarn(this.settings)}cancel(e,r="请求已取消"){if(e){const n=this.records[e];if(!n)return;n.source.cancel(r)}else for(const n of Object.values(this.records))n.source.cancel(r)}createHeaders(e,r,n){const i=r.injectHeaders?typeof r.headers=="function"?r.headers(e,n,r):r.headers||{}:{},s=F(F({"Content-Type":Vm[r.type||"form"]},n.headers),i);return r.skipWarn&&(s[As]=e),s}isJsonType(e){return Object.entries(e).some(([r,n])=>r.toLowerCase()==="content-type"&&String(n).includes("application/json"))}toFormData(e,r="data"){if(e instanceof FormData||e instanceof URLSearchParams)return e;const n=r==="data"?new FormData:new URLSearchParams;return Object.entries(e).forEach(([i,s])=>{n.append(i,s)}),n}createSendData(e,r,n,i,s={}){const{type:a,skipWarn:o}=e,{name:u="skipWarn"}=o||{};let{data:c,params:l={},method:h="get"}=r;const p=i?{[u]:!0}:{};return Mm.includes(h.toLowerCase())?(c=Object.assign(c||{},p),c=a!=="json"||!this.isJsonType(n)?this.toFormData(c,a):c,l=F({},s)):a==="form"?l=F(F(F({},c||{}),s),p):(c&&(a!=="json"||!this.isJsonType(n))&&(c=this.toFormData(c,a)),l=F(F({},s),p)),{data:c,params:l}}createUrl(e){let{url:r,params:n}=e;if(r){let i=Gt(r)?new URL(r).origin:"";const s=i?r.replace(i,""):r;try{const a=bm(s,{encode:encodeURIComponent});return i+a(n||{})}catch(a){console.warn("createUrl","pathToRegexpCompile error",r)}}return r}createProxy(e,r,n){if(!e.proxy)return{url:r,headers:n};const i=e.proxyPath||Hm,{protocol:s,host:a}=location||{},o=Gt(r)?r:`${s}//${a}${r}`;return n.Target=o,{url:i,headers:n}}openLoading(e){const{loading:r,showLoading:n}=e;r&&n&&Object.keys(this.records).length>0&&(this.isLoading=!0,n())}closeLoading(e){const{hideLoading:r}=e;this.isLoading=!1;const n=Object.keys(this.records);r&&n.length===0&&(this.isLoading=!1,r())}_showError(e,r){var s;const{failMessage:n,showError:i}=e;if(n&&i){const a=(s=r==null?void 0:r.response)==null?void 0:s.data,o=(a==null?void 0:a.message)||(a==null?void 0:a.msg)||(r==null?void 0:r.message)||(r==null?void 0:r.msg)||"未知错误";i(o,r)}}validResponse(e,r){const{validSuccess:n,validate:i}=e;return n&&i?!!i(r):!0}isSkipWarnResponse(e){return!!e.promise}send(e={},r=!1){const n=Bt({},this.settings,e.settings||{}),i=e.query||{},s=Xr(e,["settings","query"]),a=dm(!1),o=bi.CancelToken.source();this.records[a]={settings:n,config:s,source:o};const u=this.createUrl(s)||"",c=this.createHeaders(a,n,s),{url:l,headers:h}=this.createProxy(n,u,c),{data:p,params:f}=this.createSendData(n,s,h,r,i);return this.showLoading(n),new Promise((d,m)=>{this.axios(ue(F({cancelToken:o.token},s),{url:l,headers:h,data:p,params:f})).then(v=>{var S;return this.isSkipWarnResponse(v)?d(v.promise):this.validResponse(n,v)?d(n.originResponse?v:(S=v.data)==null?void 0:S.data):(this.showError(n,v.data),m(v.data))}).catch(v=>(this.showError(n,v),m(v))).finally(()=>{delete this.records[a],this.closeLoading(n)})})}useResponse(e,r){const{response:n}=this.axios.interceptors,i=n.use(e,r);return()=>n.eject(i)}useRequest(e,r){const{request:n}=this.axios.interceptors,i=n.use(e,r);return()=>n.eject(i)}setupSkipWarn(e){if(this.stopSkipWarn&&(this.stopSkipWarn(),this.stopSkipWarn=void 0),!e.skipWarn)return;const{code:r,executor:n,callback:i,complete:s}=e.skipWarn;this.stopSkipWarn=this.useResponse(a=>{const o=(a.config.headers||{})[As],u=this.records[o];if(!u)return a;const{data:c}=a;if(!c||typeof c!="object")return a;if((c==null?void 0:c.code)===r){i&&i(a);const l=new Promise(n).then(()=>this.send(ue(F({},u.config),{settings:u.settings}),!0));l.catch(h=>h).finally(()=>{s&&s()}),a.promise=l}return a})}};function ti(t={}){const e=new qm(t),r=e.send.bind(e),n=e.cancel.bind(e),i=e.setConfig.bind(e),s=e.useRequest.bind(e),a=e.useResponse.bind(e);return Object.assign(r,ue(F({},e),{instance:e,send:r,cancel:n,setConfig:i,useRequest:s,useResponse:a}))}const Rn=ti({settings:{injectHeaders:!0,loading:!0,originResponse:!0}}),kn=typeof window<"u";function zm(t){const e={};return t?(t.forEach((r,n)=>{e[n]=typeof r=="string"?decodeURIComponent(r):r}),e):{}}class ho{constructor(e={}){Ee(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"}),Ee(this,"caches",{}),Ee(this,"types"),this.types={local:kn?window.localStorage:this.caches,session:kn?window.sessionStorage:this.caches,cache:this.caches},this.config(e)}config(e={}){this.options=Object.assign(this.options,e)}save(e,r,n={}){const{type:i,expired:s,prefix:a}=F(F({},this.options),n),o=Date.now(),u=a+e,c=this.types[i]||this.caches,l={value:r,timestamp:o,expired:s};c===this.caches?c[u]=l:c.setItem(u,JSON.stringify(l))}get(e,r={}){const{type:n,prefix:i}=F(F({},this.options),r),s=i+e,a=this.types[n]||this.caches;let o;if(a===this.caches)o=a[s];else{const h=a.getItem(s);if(h)try{o=JSON.parse(h)}catch(p){console.warn("[Storage] JSON.parse",p)}}if(!o)return null;const{value:u,timestamp:c,expired:l}=o;return l>0&&c+l<Date.now()?(this.remove(e,r),null):u}remove(e,r={}){const{type:n,prefix:i}=F(F({},this.options),r),s=this.types[n]||this.caches,a=i+e;s===this.caches?delete s[a]:s.removeItem(a)}clear(e={}){const{type:r}=F(F({},this.options),e),n=this.types[r]||this.caches;n===this.caches?this.caches={}:n.clear()}}const tn=new ho;function po(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var vr={exports:{}},Wm=vr.exports,Is;function Gm(){return Is||(Is=1,(function(t,e){(function(r,n){n(e,t)})(Wm,function(r,n){var i={timeout:5e3,jsonpCallback:"callback"};function s(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function a(c){try{delete window[c]}catch(l){window[c]=void 0}}function o(c){var l=document.getElementById(c);l&&document.getElementsByTagName("head")[0].removeChild(l)}function u(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],h=c,p=l.timeout||i.timeout,f=l.jsonpCallback||i.jsonpCallback,d=void 0;return new Promise(function(m,v){var S=l.jsonpCallbackFunction||s(),b=f+"_"+S;window[S]=function(w){m({ok:!0,json:function(){return Promise.resolve(w)}}),d&&clearTimeout(d),o(b),a(S)},h+=h.indexOf("?")===-1?"?":"&";var _=document.createElement("script");_.setAttribute("src",""+h+f+"="+S),l.charset&&_.setAttribute("charset",l.charset),l.nonce&&_.setAttribute("nonce",l.nonce),l.referrerPolicy&&_.setAttribute("referrerPolicy",l.referrerPolicy),l.crossorigin&&_.setAttribute("crossorigin","true"),_.id=b,document.getElementsByTagName("head")[0].appendChild(_),d=setTimeout(function(){v(new Error("JSONP request to "+c+" timed out")),a(S),o(b),window[S]=function(){a(S)}},p),_.onerror=function(){v(new Error("JSONP request to "+c+" failed")),a(S),o(b),d&&clearTimeout(d)}})}n.exports=u})})(vr,vr.exports)),vr.exports}var Km=Gm();const Jm=po(Km);function Ym(t){if(kn){const{protocol:e,host:r,pathname:n}=location;return`${e}//${r}${t?n:""}`}else return null}function Zm(t=""){const e=t.match(io);return e?e[0]:""}function fo(t){const e=[];for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push([r,encodeURIComponent(t[r])].join("="));return e.join("&")}function On(t,e,r){const n={};t=(t||location.search).replace(/^[^]*\?/,""),e=e||"&",r=r||"=";let i;const s=new RegExp("(?:^|\\"+e+")([^\\"+r+"\\"+e+"]+)(?:\\"+r+"([^\\"+e+"]*))?","g");for(;(i=s.exec(t))!==null;)i[1]!==t&&(n[decodeURIComponent(i[1])]=decodeURIComponent(i[2]||""));return n}function go(t,e){e=typeof e=="string"?On(e):e;const r=t.split("?")[0],n=On(t),i=Object.assign({},n,e),s=fo(i);return s?[r,s].join("?"):t}const Ft=Object.freeze(Object.defineProperty({__proto__:null,append:go,getCurrentHost:Ym,getHost:Zm,parse:On,stringify:fo},Symbol.toStringTag,{value:"Module"}));function mo(r){return M(this,arguments,function*(t,e={}){const{query:n={}}=e;t.includes("${")&&(t=gg(t)(n||{}));const i=go(t,n);return yield(yield Jm(i,e)).json()})}var rn,Rs;function Qm(){if(Rs)return rn;Rs=1,rn=function(n,i,s){var a=document.head||document.getElementsByTagName("head")[0],o=document.createElement("script");typeof i=="function"&&(s=i,i={}),i=i||{},s=s||function(){},o.type=i.type||"text/javascript",o.charset=i.charset||"utf8",o.async="async"in i?!!i.async:!0,o.src=n,i.attrs&&t(o,i.attrs),i.text&&(o.text=""+i.text);var u="onload"in o?e:r;u(o,s),o.onload||e(o,s),a.appendChild(o)};function t(n,i){for(var s in i)n.setAttribute(s,i[s])}function e(n,i){n.onload=function(){this.onerror=this.onload=null,i(null,n)},n.onerror=function(){this.onerror=this.onload=null,i(new Error("Failed to load "+this.src),n)}}function r(n,i){n.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,i(null,n))}}return rn}var Xm=Qm();const ev=po(Xm);function ks(t,e={}){return new Promise((r,n)=>{const{library:i}=e;ev(t,e,(s,a)=>{s?n(s):r(i?window[i]:void 0)})})}const Os={debug:-1,log:0,info:0,warn:1,error:2},tv=function(t,e,r,n){return function(...i){if(e&&Os[e]<=Os[t]&&console[t].apply&&(n==="*"||r.startsWith(n)))return console[t].apply(console,rv(i,r))}};function rv(t,e){return e!=="*"&&(typeof t[0]=="string"?t[0]=`[${e}] ${t[0]}`:t=["["+e+"]"].concat(t)),t}function nv(t,e){if(!t)return{targetLevel:e.level,targetBizName:e.bizName};if(~t.indexOf(":")){const r=t.split(":");return{targetLevel:r[0],targetBizName:r[1]}}return{targetLevel:t,targetBizName:"*"}}const iv={level:"warn",bizName:"*"};let sv=class{constructor(e){Ee(this,"config"),Ee(this,"options"),this.options=F(F({},iv),e);const r=typeof location<"u"?location:{},n=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(r.href)||[])[1];this.config=nv(n,e)}_log(e){const{targetLevel:r,targetBizName:n}=this.config,{bizName:i}=this.options;return tv(e,r,i,n)}debug(...e){return this._log("debug")(...e)}log(...e){return this._log("log")(...e)}info(...e){return this._log("info")(...e)}warn(...e){return this._log("warn")(...e)}error(...e){return this._log("error")(...e)}};function av(t){return new sv(t)}const ft=av({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.8 | MIT */function pr(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)n!=="__proto__"&&(t[n]=r[n])}return t}var ov={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Pn(t,e){function r(i,s,a){if(!(typeof document>"u")){a=pr({},e,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var u in a)a[u]&&(o+="; "+u,a[u]!==!0&&(o+="="+a[u].split(";")[0]));return document.cookie=i+"="+t.write(s,i)+o}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],a={},o=0;o<s.length;o++){var u=s[o].split("="),c=u.slice(1).join("=");try{var l=decodeURIComponent(u[0]);if(l in a||(a[l]=t.read(c,l)),i===l)break}catch(h){}}return i?a[i]:a}}return Object.create({set:r,get:n,remove:function(i,s){r(i,"",pr({},s,{expires:-1}))},withAttributes:function(i){return Pn(this.converter,pr({},this.attributes,i))},withConverter:function(i){return Pn(pr({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var ri=Pn(ov,{path:"/"});function cv(t,e,r){ri.set(t,e,r)}function uv(t){return ri.get(t)}function lv(t,e){ri.remove(t,e)}const nn=Object.freeze(Object.defineProperty({__proto__:null,get:uv,remove:lv,set:cv},Symbol.toStringTag,{value:"Module"}));/**!
58
58
  * Copyright (c) 2026, VTJ.PRO All rights reserved.
59
59
  * @name @vtj/renderer
60
60
  * @author CHC chenhuachun1549@dingtalk.com
61
- * @version 0.20.2
61
+ * @version 0.20.4
62
62
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
63
- */const sn="0.20.2";var se=(t=>(t.Runtime="Runtime",t.Design="Design",t.Raw="Raw",t.VNode="VNode",t))(se||{});const Ps=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],hv=["vIf","vElseIf","vElse","vShow","vModel","vFor","vBind","vHtml"],pv={String,Number,Boolean,Array,Object,Function,Date},yr="VtjPage",an="VtjHomepage",vo="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(","),fv="component,slot".split(",");function fr(t,e){return t.map(r=>Gt(r)||r.startsWith("/")?r:`${e}${r}`)}function kr(t){return/\.css$/.test(t)}function Or(t){return/\.js$/.test(t)}function dv(t){return/\.json$/.test(t)}function gv(t,e=!1){return e&&t.endsWith(".prod.js")?t.replace(".prod.js",".js"):t}function mv(t,e,r=!1){const n=t.filter(p=>!!p.enabled),i=[],s=[],a=[],o=[],u={},c={},l=[],h={};return n.forEach(({urls:p,assetsUrl:f,library:d,assetsLibrary:m,localeLibrary:v})=>{p==null||p.forEach(S=>{Or(S)&&i.push(gv(S,r)),kr(S)&&s.push(S)}),d&&(o.push(d),u[d]=fr(p||[],e),v&&(c[d]=v)),f&&a.push(f),m&&l.push(m),d&&m&&(h[m]=d)}),{scripts:fr(i,e),css:fr(s,e),materials:fr(a,e),libraryExports:o,materialExports:mm(l),materialMapLibrary:h,libraryMap:u,libraryLocaleMap:c}}function vv(t,e){var s;const{name:r,parent:n,alias:i}=t;return n?(s=e[n])==null?void 0:s[i||r]:e[i||r]}function yv(t=[]){const e=t.filter(n=>kr(n)),r=t.filter(n=>Or(n));return{css:e,js:r}}function bv(t,e){const r=c=>{const l=[];let h=0;for(;h<c.length;){if(/\s/.test(c[h])){h++;continue}if(c.substring(h,h+2)==="/*"){const S=c.indexOf("*/",h+2);if(S!==-1){h=S+2;continue}}if(c[h]==="@"){const S=h;for(;h<c.length&&c[h]!=="{"&&c[h]!==";";)h++;const b=c.substring(S,h).trim(),_=b.includes("@keyframes");if(c[h]===";")l.push({type:"simple-at-rule",content:c.substring(S,h+1)}),h++;else if(c[h]==="{"){const w=h+1;let x=1;for(h++;h<c.length&&x>0;)c[h]==="{"?x++:c[h]==="}"&&x--,h++;const y=c.substring(S,h),T=c.substring(w,h-1);l.push({type:_?"keyframes":"at-rule",rule:b,content:y,inner:T})}continue}const p=h;for(;h<c.length&&c[h]!=="{";)h++;if(h>=c.length)break;const f=c.substring(p,h).trim();if(!f){h++;continue}const d=h+1;let m=1;for(h++;h<c.length&&m>0;)c[h]==="{"?m++:c[h]==="}"&&m--,h++;const v=c.substring(d,h-1);l.push({type:"rule",selector:f,content:v.trim()})}return l},n=c=>{const l=c.trim();return/^(from|to|\d+(\.\d+)?%)$/.test(l)},i=c=>c.replace(/::v-deep\(/g,":deep(").replace(/::v-deep\s+/g,":deep(").replace(/\/deep\//g," ").replace(/>>>/g," ").replace(/(.*?):deep\(([^)]+)\)/g,(l,h,p)=>{const f=h.trim(),d=p.trim();return f?`${f}[${e}] ${d}`:`[${e}] ${d}`}),s=c=>{const l=c.trim();if(!l||l.includes(`[${e}]`)||/^(:root|:host|html|body)(\s|$|:|\.|\#|\[)/.test(l)||n(l))return l;const h=l.match(/^(.+?)((?:::?[\w-]+(?:\([^)]*\))?)*)\s*$/);if(h){const[,p,f=""]=h,d=p.trim();return d?`${d}[${e}]${f}`:l}return`${l}[${e}]`},a=c=>i(c).split(",").map(l=>s(l)).filter(l=>l.trim()).join(", "),o=c=>c.map(l=>{switch(l.type){case"simple-at-rule":return l.content;case"keyframes":return l.content;case"at-rule":try{const p=r(l.inner),f=o(p);return`${l.rule} { ${f} }`}catch(p){return l.content}case"rule":if(!l.selector||!l.content)return"";const h=a(l.selector);return h.trim()?`${h} { ${l.content} }`:"";default:return""}}).filter(l=>l.trim()).join(" "),u=c=>c.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 c=t.replace(/\/\*(?!\s*!)[\s\S]*?\*\//g,"").replace(/^\s+|\s+$/gm,"").replace(/\n\s*\n/g,`
63
+ */const sn="0.20.4";var se=(t=>(t.Runtime="Runtime",t.Design="Design",t.Raw="Raw",t.VNode="VNode",t))(se||{});const Ps=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],hv=["vIf","vElseIf","vElse","vShow","vModel","vFor","vBind","vHtml"],pv={String,Number,Boolean,Array,Object,Function,Date},yr="VtjPage",an="VtjHomepage",vo="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(","),fv="component,slot".split(",");function fr(t,e){return t.map(r=>Gt(r)||r.startsWith("/")?r:`${e}${r}`)}function kr(t){return/\.css$/.test(t)}function Or(t){return/\.js$/.test(t)}function dv(t){return/\.json$/.test(t)}function gv(t,e=!1){return e&&t.endsWith(".prod.js")?t.replace(".prod.js",".js"):t}function mv(t,e,r=!1){const n=t.filter(p=>!!p.enabled),i=[],s=[],a=[],o=[],u={},c={},l=[],h={};return n.forEach(({urls:p,assetsUrl:f,library:d,assetsLibrary:m,localeLibrary:v})=>{p==null||p.forEach(S=>{Or(S)&&i.push(gv(S,r)),kr(S)&&s.push(S)}),d&&(o.push(d),u[d]=fr(p||[],e),v&&(c[d]=v)),f&&a.push(f),m&&l.push(m),d&&m&&(h[m]=d)}),{scripts:fr(i,e),css:fr(s,e),materials:fr(a,e),libraryExports:o,materialExports:mm(l),materialMapLibrary:h,libraryMap:u,libraryLocaleMap:c}}function vv(t,e){var s;const{name:r,parent:n,alias:i}=t;return n?(s=e[n])==null?void 0:s[i||r]:e[i||r]}function yv(t=[]){const e=t.filter(n=>kr(n)),r=t.filter(n=>Or(n));return{css:e,js:r}}function bv(t,e){const r=c=>{const l=[];let h=0;for(;h<c.length;){if(/\s/.test(c[h])){h++;continue}if(c.substring(h,h+2)==="/*"){const S=c.indexOf("*/",h+2);if(S!==-1){h=S+2;continue}}if(c[h]==="@"){const S=h;for(;h<c.length&&c[h]!=="{"&&c[h]!==";";)h++;const b=c.substring(S,h).trim(),_=b.includes("@keyframes");if(c[h]===";")l.push({type:"simple-at-rule",content:c.substring(S,h+1)}),h++;else if(c[h]==="{"){const w=h+1;let x=1;for(h++;h<c.length&&x>0;)c[h]==="{"?x++:c[h]==="}"&&x--,h++;const y=c.substring(S,h),T=c.substring(w,h-1);l.push({type:_?"keyframes":"at-rule",rule:b,content:y,inner:T})}continue}const p=h;for(;h<c.length&&c[h]!=="{";)h++;if(h>=c.length)break;const f=c.substring(p,h).trim();if(!f){h++;continue}const d=h+1;let m=1;for(h++;h<c.length&&m>0;)c[h]==="{"?m++:c[h]==="}"&&m--,h++;const v=c.substring(d,h-1);l.push({type:"rule",selector:f,content:v.trim()})}return l},n=c=>{const l=c.trim();return/^(from|to|\d+(\.\d+)?%)$/.test(l)},i=c=>c.replace(/::v-deep\(/g,":deep(").replace(/::v-deep\s+/g,":deep(").replace(/\/deep\//g," ").replace(/>>>/g," ").replace(/(.*?):deep\(([^)]+)\)/g,(l,h,p)=>{const f=h.trim(),d=p.trim();return f?`${f}[${e}] ${d}`:`[${e}] ${d}`}),s=c=>{const l=c.trim();if(!l||l.includes(`[${e}]`)||/^(:root|:host|html|body)(\s|$|:|\.|\#|\[)/.test(l)||n(l))return l;const h=l.match(/^(.+?)((?:::?[\w-]+(?:\([^)]*\))?)*)\s*$/);if(h){const[,p,f=""]=h,d=p.trim();return d?`${d}[${e}]${f}`:l}return`${l}[${e}]`},a=c=>i(c).split(",").map(l=>s(l)).filter(l=>l.trim()).join(", "),o=c=>c.map(l=>{switch(l.type){case"simple-at-rule":return l.content;case"keyframes":return l.content;case"at-rule":try{const p=r(l.inner),f=o(p);return`${l.rule} { ${f} }`}catch(p){return l.content}case"rule":if(!l.selector||!l.content)return"";const h=a(l.selector);return h.trim()?`${h} { ${l.content} }`:"";default:return""}}).filter(l=>l.trim()).join(" "),u=c=>c.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 c=t.replace(/\/\*(?!\s*!)[\s\S]*?\*\//g,"").replace(/^\s+|\s+$/gm,"").replace(/\n\s*\n/g,`
64
64
  `),l=r(c),h=o(l);return u(h)}catch(c){return console.error("CSS scoping failed:",c),console.error("Input CSS:",t),t.replace(/\/\*[\s\S]*?\*\//g,"").replace(/(@keyframes\s+[^{]+\s*{[^{}]*(?:{[^}]*}[^{}]*)*})/g,l=>l).replace(/([^{}@]+)(?=\s*{)/g,l=>{const h=l.trim();return!h||h.startsWith("@")||h.includes(`[${e}]`)||n(h)?l:`${h}[${e}]`})}}const _v=750;function xv(t,e,r){let n;typeof t<"u"?n=t.innerWidth||t.document.documentElement.clientWidth:(console.warn("无法获取屏幕宽度,使用默认值375"),n=375);const i=_v;return e*n/i}function wv(t,e){let r=!1,n=!1,i=!1,s="";for(let a=0;a<e.length;a++){const o=e[a];if(o==="'"&&!n&&!i?r=!r:o==='"'&&!r&&!i?n=!n:e.substr(a,4).toLowerCase()==="url("&&!r&&!n?i=!0:o===")"&&i&&(i=!1),!r&&!n&&!i){const u=e.substr(a).match(/^(-?\d+(?:\.\d+)?)\s*rpx/);if(u){const c=u[1],l=parseFloat(c),h=`${xv(t,l).toFixed(6).replace(/\.?0+$/,"")}px`;s+=h,a+=u[0].length-1;continue}}s+=o}return s}function yo(t){return Ze(t)?t:JSON.stringify(t)}function Pr(t,e,r,n=!1){var f;const i=t.CSSStyleSheet,s=n?`data-v-${e}`:e,a=t.__uniConfig?wv(t,r):r,o=!!t.__uniConfig,u=t.document,c=!!((f=i==null?void 0:i.prototype)!=null&&f.replaceSync)&&!o,l=c?Array.from(u.adoptedStyleSheets||[]).find(d=>d.id===e):u.getElementById(e),h=`${s}
65
65
  ${a}`;if((l==null?void 0:l.__vtjSource)===h)return;const p=n?bv(a,s):a;if(c){const d=new i;d.id=e,d.__vtjSource=h,d.replaceSync(p);const m=u.adoptedStyleSheets||[],v=Array.from(m).filter(S=>S.id!==e);u.adoptedStyleSheets=[...v,d]}else{let d=l;d?d.innerHTML=p:(d=u.createElement("style"),d.id=e,d.innerHTML=p,u.head.appendChild(d)),d.__vtjSource=h}}function Sv(t,e){return M(this,null,function*(){const r=yield globalThis.fetch(e).then(n=>n.text()).catch(()=>"");r&&Pr(globalThis,t,r)})}function bo(t,e=globalThis){const r=e.document,n=e.document.head;for(const i of t)if(!r.getElementById(i)){const s=r.createElement("link");s.rel="stylesheet",s.id=i,s.href=i,n.appendChild(s)}}function _o(n,i){return M(this,arguments,function*(t,e,r=globalThis){var u;const s=r.document,a=r.document.head;let o=r[e];if(o)return o.default||o;for(const c of t){const l=(u=s.getElementById)==null?void 0:u.call(s,c);if(l!=null&&l.__vtjLoading){yield l.__vtjLoading;continue}if(l)continue;const h=s.createElement("script");h.id=c,h.src=c,h.__vtjLoading=new Promise((p,f)=>{h.onload=()=>p(),h.onerror=d=>{var m;(m=h.remove)==null||m.call(h),f(d)}}),a.appendChild(h),yield h.__vtjLoading}return o=r[e],o?o.default||o:Promise.reject(null)})}function Ev(t){return ge(t)&&Object.getOwnPropertyNames(t.prototype||{}).length===0||ge(t==null?void 0:t.install)}function Tv(t){return fv.includes(t)}function Cv(t){return vo.includes(t)}function Jt(t=globalThis){const e=globalThis==null?void 0:globalThis.Mock;if(e)return e;const r=t==null?void 0:t.Mock;if(r&&globalThis)return globalThis.Mock=r,r}function Av(t){return/^\([\s\S]*\)/.test(t.trim())}function Iv(t){return/\w+\([\s\S]*\)$/.test(t.trim())}function Rv(t){return t.includes("=")}var on={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},cn="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",kv={5:cn,"5module":cn+" export import",6:cn+" const class extends export import super"},Ov=/^in(stanceof)?$/,ni="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",xo="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",Pv=new RegExp("["+ni+"]"),$v=new RegExp("["+ni+xo+"]");ni=xo=null;var wo=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],Dv=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function $n(t,e){for(var r=65536,n=0;n<e.length;n+=2){if(r+=e[n],r>t)return!1;if(r+=e[n+1],r>=t)return!0}}function ot(t,e){return t<65?t===36:t<91?!0:t<97?t===95:t<123?!0:t<=65535?t>=170&&Pv.test(String.fromCharCode(t)):e===!1?!1:$n(t,wo)}function Rt(t,e){return t<48?t===36:t<58?!0:t<65?!1:t<91?!0:t<97?t===95:t<123?!0:t<=65535?t>=170&&$v.test(String.fromCharCode(t)):e===!1?!1:$n(t,wo)||$n(t,Dv)}var X=function(t,e){e===void 0&&(e={}),this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop||null,this.updateContext=null};function we(t,e){return new X(t,{beforeExpr:!0,binop:e})}var Se={beforeExpr:!0},xe={startsExpr:!0},ii={};function Q(t,e){return e===void 0&&(e={}),e.keyword=t,ii[t]=new X(t,e)}var g={num:new X("num",xe),regexp:new X("regexp",xe),string:new X("string",xe),name:new X("name",xe),eof:new X("eof"),bracketL:new X("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new X("]"),braceL:new X("{",{beforeExpr:!0,startsExpr:!0}),braceR:new X("}"),parenL:new X("(",{beforeExpr:!0,startsExpr:!0}),parenR:new X(")"),comma:new X(",",Se),semi:new X(";",Se),colon:new X(":",Se),dot:new X("."),question:new X("?",Se),questionDot:new X("?."),arrow:new X("=>",Se),template:new X("template"),invalidTemplate:new X("invalidTemplate"),ellipsis:new X("...",Se),backQuote:new X("`",xe),dollarBraceL:new X("${",{beforeExpr:!0,startsExpr:!0}),eq:new X("=",{beforeExpr:!0,isAssign:!0}),assign:new X("_=",{beforeExpr:!0,isAssign:!0}),incDec:new X("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new X("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:we("||",1),logicalAND:we("&&",2),bitwiseOR:we("|",3),bitwiseXOR:we("^",4),bitwiseAND:we("&",5),equality:we("==/!=/===/!==",6),relational:we("</>/<=/>=",7),bitShift:we("<</>>/>>>",8),plusMin:new X("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:we("%",10),star:we("*",10),slash:we("/",10),starstar:new X("**",{beforeExpr:!0}),coalesce:we("??",1),_break:Q("break"),_case:Q("case",Se),_catch:Q("catch"),_continue:Q("continue"),_debugger:Q("debugger"),_default:Q("default",Se),_do:Q("do",{isLoop:!0,beforeExpr:!0}),_else:Q("else",Se),_finally:Q("finally"),_for:Q("for",{isLoop:!0}),_function:Q("function",xe),_if:Q("if"),_return:Q("return",Se),_switch:Q("switch"),_throw:Q("throw",Se),_try:Q("try"),_var:Q("var"),_const:Q("const"),_while:Q("while",{isLoop:!0}),_with:Q("with"),_new:Q("new",{beforeExpr:!0,startsExpr:!0}),_this:Q("this",xe),_super:Q("super",xe),_class:Q("class",xe),_extends:Q("extends",Se),_export:Q("export"),_import:Q("import",xe),_null:Q("null",xe),_true:Q("true",xe),_false:Q("false",xe),_in:Q("in",{beforeExpr:!0,binop:7}),_instanceof:Q("instanceof",{beforeExpr:!0,binop:7}),_typeof:Q("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:Q("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:Q("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},ke=/\r\n?|\n|\u2028|\u2029/,Yt=new RegExp(ke.source,"g");function er(t,e){return t===10||t===13||!e&&(t===8232||t===8233)}var So=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Te=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Eo=Object.prototype,Nv=Eo.hasOwnProperty,Bv=Eo.toString;function $r(t,e){return Nv.call(t,e)}var $s=Array.isArray||(function(t){return Bv.call(t)==="[object Array]"});function dt(t){return new RegExp("^(?:"+t.replace(/ /g,"|")+")$")}var Zt=function(t,e){this.line=t,this.column=e};Zt.prototype.offset=function(t){return new Zt(this.line,this.column+t)};var Dr=function(t,e,r){this.start=e,this.end=r,t.sourceFile!==null&&(this.source=t.sourceFile)};function To(t,e){for(var r=1,n=0;;){Yt.lastIndex=n;var i=Yt.exec(t);if(i&&i.index<e)++r,n=i.index+i[0].length;else return new Zt(r,e-n)}}var Dn={ecmaVersion:10,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:!1,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1};function Lv(t){var e={};for(var r in Dn)e[r]=t&&$r(t,r)?t[r]:Dn[r];if(e.ecmaVersion>=2015&&(e.ecmaVersion-=2009),e.allowReserved==null&&(e.allowReserved=e.ecmaVersion<5),$s(e.onToken)){var n=e.onToken;e.onToken=function(i){return n.push(i)}}return $s(e.onComment)&&(e.onComment=jv(e,e.onComment)),e}function jv(t,e){return function(r,n,i,s,a,o){var u={type:r?"Block":"Line",value:n,start:i,end:s};t.locations&&(u.loc=new Dr(this,a,o)),t.ranges&&(u.range=[i,s]),e.push(u)}}var Qt=1,tr=2,si=Qt|tr,Co=4,Ao=8,Io=16,Ro=32,ko=64,Oo=128;function ai(t,e){return tr|(t?Co:0)|(e?Ao:0)}var Ds=0,oi=1,We=2,Po=3,$o=4,Do=5,oe=function(t,e,r){this.options=t=Lv(t),this.sourceFile=t.sourceFile,this.keywords=dt(kv[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var n="";if(t.allowReserved!==!0){for(var i=t.ecmaVersion;!(n=on[i]);i--);t.sourceType==="module"&&(n+=" await")}this.reservedWords=dt(n);var s=(n?n+" ":"")+on.strict;this.reservedWordsStrict=dt(s),this.reservedWordsStrictBind=dt(s+" "+on.strictBind),this.input=String(e),this.containsEsc=!1,r?(this.pos=r,this.lineStart=this.input.lastIndexOf(`
66
66
  `,r-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(ke).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=g.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(Qt),this.regexpState=null},yt={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};oe.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};yt.inFunction.get=function(){return(this.currentVarScope().flags&tr)>0};yt.inGenerator.get=function(){return(this.currentVarScope().flags&Ao)>0};yt.inAsync.get=function(){return(this.currentVarScope().flags&Co)>0};yt.allowSuper.get=function(){return(this.currentThisScope().flags&ko)>0};yt.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Oo)>0};yt.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};oe.prototype.inNonArrowFunction=function(){return(this.currentThisScope().flags&tr)>0};oe.extend=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var r=this,n=0;n<t.length;n++)r=t[n](r);return r};oe.parse=function(t,e){return new this(e,t).parse()};oe.parseExpressionAt=function(t,e,r){var n=new this(r,t,e);return n.nextToken(),n.parseExpression()};oe.tokenizer=function(t,e){return new this(e,t)};Object.defineProperties(oe.prototype,yt);var be=oe.prototype,Vv=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;be.strictDirective=function(t){for(;;){Te.lastIndex=t,t+=Te.exec(this.input)[0].length;var e=Vv.exec(this.input.slice(t));if(!e)return!1;if((e[1]||e[2])==="use strict"){Te.lastIndex=t+e[0].length;var r=Te.exec(this.input),n=r.index+r[0].length,i=this.input.charAt(n);return i===";"||i==="}"||ke.test(r[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||i==="!"&&this.input.charAt(n+1)==="=")}t+=e[0].length,Te.lastIndex=t,t+=Te.exec(this.input)[0].length,this.input[t]===";"&&t++}};be.eat=function(t){return this.type===t?(this.next(),!0):!1};be.isContextual=function(t){return this.type===g.name&&this.value===t&&!this.containsEsc};be.eatContextual=function(t){return this.isContextual(t)?(this.next(),!0):!1};be.expectContextual=function(t){this.eatContextual(t)||this.unexpected()};be.canInsertSemicolon=function(){return this.type===g.eof||this.type===g.braceR||ke.test(this.input.slice(this.lastTokEnd,this.start))};be.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};be.semicolon=function(){!this.eat(g.semi)&&!this.insertSemicolon()&&this.unexpected()};be.afterTrailingComma=function(t,e){if(this.type===t)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),e||this.next(),!0};be.expect=function(t){this.eat(t)||this.unexpected()};be.unexpected=function(t){this.raise(t!=null?t:this.start,"Unexpected token")};function Nr(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}be.checkPatternErrors=function(t,e){if(t){t.trailingComma>-1&&this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var r=e?t.parenthesizedAssign:t.parenthesizedBind;r>-1&&this.raiseRecoverable(r,"Parenthesized pattern")}};be.checkExpressionErrors=function(t,e){if(!t)return!1;var r=t.shorthandAssign,n=t.doubleProto;if(!e)return r>=0||n>=0;r>=0&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns"),n>=0&&this.raiseRecoverable(n,"Redefinition of __proto__ property")};be.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")};be.isSimpleAssignTarget=function(t){return t.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(t.expression):t.type==="Identifier"||t.type==="MemberExpression"};var K=oe.prototype;K.parseTopLevel=function(t){var e={};for(t.body||(t.body=[]);this.type!==g.eof;){var r=this.parseStatement(null,!0,e);t.body.push(r)}if(this.inModule)for(var n=0,i=Object.keys(this.undefinedExports);n<i.length;n+=1){var s=i[n];this.raiseRecoverable(this.undefinedExports[s].start,"Export '"+s+"' is not defined")}return this.adaptDirectivePrologue(t.body),this.next(),t.sourceType=this.options.sourceType,this.finishNode(t,"Program")};var ci={kind:"loop"},Mv={kind:"switch"};K.isLet=function(t){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;Te.lastIndex=this.pos;var e=Te.exec(this.input),r=this.pos+e[0].length,n=this.input.charCodeAt(r);if(n===91)return!0;if(t)return!1;if(n===123)return!0;if(ot(n,!0)){for(var i=r+1;Rt(this.input.charCodeAt(i),!0);)++i;var s=this.input.slice(r,i);if(!Ov.test(s))return!0}return!1};K.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;Te.lastIndex=this.pos;var t=Te.exec(this.input),e=this.pos+t[0].length;return!ke.test(this.input.slice(this.pos,e))&&this.input.slice(e,e+8)==="function"&&(e+8===this.input.length||!Rt(this.input.charAt(e+8)))};K.parseStatement=function(t,e,r){var n=this.type,i=this.startNode(),s;switch(this.isLet(t)&&(n=g._var,s="let"),n){case g._break:case g._continue:return this.parseBreakContinueStatement(i,n.keyword);case g._debugger:return this.parseDebuggerStatement(i);case g._do:return this.parseDoStatement(i);case g._for:return this.parseForStatement(i);case g._function:return t&&(this.strict||t!=="if"&&t!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!t);case g._class:return t&&this.unexpected(),this.parseClass(i,!0);case g._if:return this.parseIfStatement(i);case g._return:return this.parseReturnStatement(i);case g._switch:return this.parseSwitchStatement(i);case g._throw:return this.parseThrowStatement(i);case g._try:return this.parseTryStatement(i);case g._const:case g._var:return s=s||this.value,t&&s!=="var"&&this.unexpected(),this.parseVarStatement(i,s);case g._while:return this.parseWhileStatement(i);case g._with:return this.parseWithStatement(i);case g.braceL:return this.parseBlock(!0,i);case g.semi:return this.parseEmptyStatement(i);case g._export:case g._import:if(this.options.ecmaVersion>10&&n===g._import){Te.lastIndex=this.pos;var a=Te.exec(this.input),o=this.pos+a[0].length,u=this.input.charCodeAt(o);if(u===40||u===46)return this.parseExpressionStatement(i,this.parseExpression())}return this.options.allowImportExportEverywhere||(e||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),n===g._import?this.parseImport(i):this.parseExport(i,r);default:if(this.isAsyncFunction())return t&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!t);var c=this.value,l=this.parseExpression();return n===g.name&&l.type==="Identifier"&&this.eat(g.colon)?this.parseLabeledStatement(i,c,l,t):this.parseExpressionStatement(i,l)}};K.parseBreakContinueStatement=function(t,e){var r=e==="break";this.next(),this.eat(g.semi)||this.insertSemicolon()?t.label=null:this.type!==g.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var n=0;n<this.labels.length;++n){var i=this.labels[n];if((t.label==null||i.name===t.label.name)&&(i.kind!=null&&(r||i.kind==="loop")||t.label&&r))break}return n===this.labels.length&&this.raise(t.start,"Unsyntactic "+e),this.finishNode(t,r?"BreakStatement":"ContinueStatement")};K.parseDebuggerStatement=function(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")};K.parseDoStatement=function(t){return this.next(),this.labels.push(ci),t.body=this.parseStatement("do"),this.labels.pop(),this.expect(g._while),t.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(g.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")};K.parseForStatement=function(t){this.next();var e=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(ci),this.enterScope(0),this.expect(g.parenL),this.type===g.semi)return e>-1&&this.unexpected(e),this.parseFor(t,null);var r=this.isLet();if(this.type===g._var||this.type===g._const||r){var n=this.startNode(),i=r?"let":this.value;return this.next(),this.parseVar(n,!0,i),this.finishNode(n,"VariableDeclaration"),(this.type===g._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&n.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===g._in?e>-1&&this.unexpected(e):t.await=e>-1),this.parseForIn(t,n)):(e>-1&&this.unexpected(e),this.parseFor(t,n))}var s=new Nr,a=this.parseExpression(!0,s);return this.type===g._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===g._in?e>-1&&this.unexpected(e):t.await=e>-1),this.toAssignable(a,!1,s),this.checkLVal(a),this.parseForIn(t,a)):(this.checkExpressionErrors(s,!0),e>-1&&this.unexpected(e),this.parseFor(t,a))};K.parseFunctionStatement=function(t,e,r){return this.next(),this.parseFunction(t,Ut|(r?0:Nn),!1,e)};K.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(g._else)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")};K.parseReturnStatement=function(t){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(g.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")};K.parseSwitchStatement=function(t){this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(g.braceL),this.labels.push(Mv),this.enterScope(0);for(var e,r=!1;this.type!==g.braceR;)if(this.type===g._case||this.type===g._default){var n=this.type===g._case;e&&this.finishNode(e,"SwitchCase"),t.cases.push(e=this.startNode()),e.consequent=[],this.next(),n?e.test=this.parseExpression():(r&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),r=!0,e.test=null),this.expect(g.colon)}else e||this.unexpected(),e.consequent.push(this.parseStatement(null));return this.exitScope(),e&&this.finishNode(e,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(t,"SwitchStatement")};K.parseThrowStatement=function(t){return this.next(),ke.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")};var Fv=[];K.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===g._catch){var e=this.startNode();if(this.next(),this.eat(g.parenL)){e.param=this.parseBindingAtom();var r=e.param.type==="Identifier";this.enterScope(r?Ro:0),this.checkLVal(e.param,r?$o:We),this.expect(g.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),e.param=null,this.enterScope(0);e.body=this.parseBlock(!1),this.exitScope(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(g._finally)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")};K.parseVarStatement=function(t,e){return this.next(),this.parseVar(t,!1,e),this.semicolon(),this.finishNode(t,"VariableDeclaration")};K.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(ci),t.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(t,"WhileStatement")};K.parseWithStatement=function(t){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement("with"),this.finishNode(t,"WithStatement")};K.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")};K.parseLabeledStatement=function(t,e,r,n){for(var i=0,s=this.labels;i<s.length;i+=1){var a=s[i];a.name===e&&this.raise(r.start,"Label '"+e+"' is already declared")}for(var o=this.type.isLoop?"loop":this.type===g._switch?"switch":null,u=this.labels.length-1;u>=0;u--){var c=this.labels[u];if(c.statementStart===t.start)c.statementStart=this.start,c.kind=o;else break}return this.labels.push({name:e,kind:o,statementStart:this.start}),t.body=this.parseStatement(n?n.indexOf("label")===-1?n+"label":n:"label"),this.labels.pop(),t.label=r,this.finishNode(t,"LabeledStatement")};K.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")};K.parseBlock=function(t,e,r){for(t===void 0&&(t=!0),e===void 0&&(e=this.startNode()),e.body=[],this.expect(g.braceL),t&&this.enterScope(0);this.type!==g.braceR;){var n=this.parseStatement(null);e.body.push(n)}return r&&(this.strict=!1),this.next(),t&&this.exitScope(),this.finishNode(e,"BlockStatement")};K.parseFor=function(t,e){return t.init=e,this.expect(g.semi),t.test=this.type===g.semi?null:this.parseExpression(),this.expect(g.semi),t.update=this.type===g.parenR?null:this.parseExpression(),this.expect(g.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,"ForStatement")};K.parseForIn=function(t,e){var r=this.type===g._in;return this.next(),e.type==="VariableDeclaration"&&e.declarations[0].init!=null&&(!r||this.options.ecmaVersion<8||this.strict||e.kind!=="var"||e.declarations[0].id.type!=="Identifier")?this.raise(e.start,(r?"for-in":"for-of")+" loop variable declaration may not have an initializer"):e.type==="AssignmentPattern"&&this.raise(e.start,"Invalid left-hand side in for-loop"),t.left=e,t.right=r?this.parseExpression():this.parseMaybeAssign(),this.expect(g.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,r?"ForInStatement":"ForOfStatement")};K.parseVar=function(t,e,r){for(t.declarations=[],t.kind=r;;){var n=this.startNode();if(this.parseVarId(n,r),this.eat(g.eq)?n.init=this.parseMaybeAssign(e):r==="const"&&!(this.type===g._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():n.id.type!=="Identifier"&&!(e&&(this.type===g._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):n.init=null,t.declarations.push(this.finishNode(n,"VariableDeclarator")),!this.eat(g.comma))break}return t};K.parseVarId=function(t,e){t.id=this.parseBindingAtom(),this.checkLVal(t.id,e==="var"?oi:We,!1)};var Ut=1,Nn=2,No=4;K.parseFunction=function(t,e,r,n){this.initFunction(t),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!n)&&(this.type===g.star&&e&Nn&&this.unexpected(),t.generator=this.eat(g.star)),this.options.ecmaVersion>=8&&(t.async=!!n),e&Ut&&(t.id=e&No&&this.type!==g.name?null:this.parseIdent(),t.id&&!(e&Nn)&&this.checkLVal(t.id,this.strict||t.generator||t.async?this.treatFunctionsAsVar?oi:We:Po));var i=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ai(t.async,t.generator)),e&Ut||(t.id=this.type===g.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,r,!1),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(t,e&Ut?"FunctionDeclaration":"FunctionExpression")};K.parseFunctionParams=function(t){this.expect(g.parenL),t.params=this.parseBindingList(g.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};K.parseClass=function(t,e){this.next();var r=this.strict;this.strict=!0,this.parseClassId(t,e),this.parseClassSuper(t);var n=this.startNode(),i=!1;for(n.body=[],this.expect(g.braceL);this.type!==g.braceR;){var s=this.parseClassElement(t.superClass!==null);s&&(n.body.push(s),s.type==="MethodDefinition"&&s.kind==="constructor"&&(i&&this.raise(s.start,"Duplicate constructor in the same class"),i=!0))}return this.strict=r,this.next(),t.body=this.finishNode(n,"ClassBody"),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")};K.parseClassElement=function(t){var e=this;if(this.eat(g.semi))return null;var r=this.startNode(),n=function(u,c){c===void 0&&(c=!1);var l=e.start,h=e.startLoc;return e.eatContextual(u)?e.type!==g.parenL&&(!c||!e.canInsertSemicolon())?!0:(r.key&&e.unexpected(),r.computed=!1,r.key=e.startNodeAt(l,h),r.key.name=u,e.finishNode(r.key,"Identifier"),!1):!1};r.kind="method",r.static=n("static");var i=this.eat(g.star),s=!1;i||(this.options.ecmaVersion>=8&&n("async",!0)?(s=!0,i=this.options.ecmaVersion>=9&&this.eat(g.star)):n("get")?r.kind="get":n("set")&&(r.kind="set")),r.key||this.parsePropertyName(r);var a=r.key,o=!1;return!r.computed&&!r.static&&(a.type==="Identifier"&&a.name==="constructor"||a.type==="Literal"&&a.value==="constructor")?(r.kind!=="method"&&this.raise(a.start,"Constructor can't have get/set modifier"),i&&this.raise(a.start,"Constructor can't be a generator"),s&&this.raise(a.start,"Constructor can't be an async method"),r.kind="constructor",o=t):r.static&&a.type==="Identifier"&&a.name==="prototype"&&this.raise(a.start,"Classes may not have a static property named prototype"),this.parseClassMethod(r,i,s,o),r.kind==="get"&&r.value.params.length!==0&&this.raiseRecoverable(r.value.start,"getter should have no params"),r.kind==="set"&&r.value.params.length!==1&&this.raiseRecoverable(r.value.start,"setter should have exactly one param"),r.kind==="set"&&r.value.params[0].type==="RestElement"&&this.raiseRecoverable(r.value.params[0].start,"Setter cannot use rest params"),r};K.parseClassMethod=function(t,e,r,n){return t.value=this.parseMethod(e,r,n),this.finishNode(t,"MethodDefinition")};K.parseClassId=function(t,e){this.type===g.name?(t.id=this.parseIdent(),e&&this.checkLVal(t.id,We,!1)):(e===!0&&this.unexpected(),t.id=null)};K.parseClassSuper=function(t){t.superClass=this.eat(g._extends)?this.parseExprSubscripts():null};K.parseExport=function(t,e){if(this.next(),this.eat(g.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(t.exported=this.parseIdent(!0),this.checkExport(e,t.exported.name,this.lastTokStart)):t.exported=null),this.expectContextual("from"),this.type!==g.string&&this.unexpected(),t.source=this.parseExprAtom(),this.semicolon(),this.finishNode(t,"ExportAllDeclaration");if(this.eat(g._default)){this.checkExport(e,"default",this.lastTokStart);var r;if(this.type===g._function||(r=this.isAsyncFunction())){var n=this.startNode();this.next(),r&&this.next(),t.declaration=this.parseFunction(n,Ut|No,!1,r)}else if(this.type===g._class){var i=this.startNode();t.declaration=this.parseClass(i,"nullableID")}else t.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(t,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())t.declaration=this.parseStatement(null),t.declaration.type==="VariableDeclaration"?this.checkVariableExport(e,t.declaration.declarations):this.checkExport(e,t.declaration.id.name,t.declaration.id.start),t.specifiers=[],t.source=null;else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(e),this.eatContextual("from"))this.type!==g.string&&this.unexpected(),t.source=this.parseExprAtom();else{for(var s=0,a=t.specifiers;s<a.length;s+=1){var o=a[s];this.checkUnreserved(o.local),this.checkLocalExport(o.local)}t.source=null}this.semicolon()}return this.finishNode(t,"ExportNamedDeclaration")};K.checkExport=function(t,e,r){t&&($r(t,e)&&this.raiseRecoverable(r,"Duplicate export '"+e+"'"),t[e]=!0)};K.checkPatternExport=function(t,e){var r=e.type;if(r==="Identifier")this.checkExport(t,e.name,e.start);else if(r==="ObjectPattern")for(var n=0,i=e.properties;n<i.length;n+=1){var s=i[n];this.checkPatternExport(t,s)}else if(r==="ArrayPattern")for(var a=0,o=e.elements;a<o.length;a+=1){var u=o[a];u&&this.checkPatternExport(t,u)}else r==="Property"?this.checkPatternExport(t,e.value):r==="AssignmentPattern"?this.checkPatternExport(t,e.left):r==="RestElement"?this.checkPatternExport(t,e.argument):r==="ParenthesizedExpression"&&this.checkPatternExport(t,e.expression)};K.checkVariableExport=function(t,e){if(t)for(var r=0,n=e;r<n.length;r+=1){var i=n[r];this.checkPatternExport(t,i.id)}};K.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};K.parseExportSpecifiers=function(t){var e=[],r=!0;for(this.expect(g.braceL);!this.eat(g.braceR);){if(r)r=!1;else if(this.expect(g.comma),this.afterTrailingComma(g.braceR))break;var n=this.startNode();n.local=this.parseIdent(!0),n.exported=this.eatContextual("as")?this.parseIdent(!0):n.local,this.checkExport(t,n.exported.name,n.exported.start),e.push(this.finishNode(n,"ExportSpecifier"))}return e};K.parseImport=function(t){return this.next(),this.type===g.string?(t.specifiers=Fv,t.source=this.parseExprAtom()):(t.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),t.source=this.type===g.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(t,"ImportDeclaration")};K.parseImportSpecifiers=function(){var t=[],e=!0;if(this.type===g.name){var r=this.startNode();if(r.local=this.parseIdent(),this.checkLVal(r.local,We),t.push(this.finishNode(r,"ImportDefaultSpecifier")),!this.eat(g.comma))return t}if(this.type===g.star){var n=this.startNode();return this.next(),this.expectContextual("as"),n.local=this.parseIdent(),this.checkLVal(n.local,We),t.push(this.finishNode(n,"ImportNamespaceSpecifier")),t}for(this.expect(g.braceL);!this.eat(g.braceR);){if(e)e=!1;else if(this.expect(g.comma),this.afterTrailingComma(g.braceR))break;var i=this.startNode();i.imported=this.parseIdent(!0),this.eatContextual("as")?i.local=this.parseIdent():(this.checkUnreserved(i.imported),i.local=i.imported),this.checkLVal(i.local,We),t.push(this.finishNode(i,"ImportSpecifier"))}return t};K.adaptDirectivePrologue=function(t){for(var e=0;e<t.length&&this.isDirectiveCandidate(t[e]);++e)t[e].directive=t[e].expression.raw.slice(1,-1)};K.isDirectiveCandidate=function(t){return t.type==="ExpressionStatement"&&t.expression.type==="Literal"&&typeof t.expression.value=="string"&&(this.input[t.start]==='"'||this.input[t.start]==="'")};var Qe=oe.prototype;Qe.toAssignable=function(t,e,r){if(this.options.ecmaVersion>=6&&t)switch(t.type){case"Identifier":this.inAsync&&t.name==="await"&&this.raise(t.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern",r&&this.checkPatternErrors(r,!0);for(var n=0,i=t.properties;n<i.length;n+=1){var s=i[n];this.toAssignable(s,e),s.type==="RestElement"&&(s.argument.type==="ArrayPattern"||s.argument.type==="ObjectPattern")&&this.raise(s.argument.start,"Unexpected token")}break;case"Property":t.kind!=="init"&&this.raise(t.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(t.value,e);break;case"ArrayExpression":t.type="ArrayPattern",r&&this.checkPatternErrors(r,!0),this.toAssignableList(t.elements,e);break;case"SpreadElement":t.type="RestElement",this.toAssignable(t.argument,e),t.argument.type==="AssignmentPattern"&&this.raise(t.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":t.operator!=="="&&this.raise(t.left.end,"Only '=' operator can be used for specifying default value."),t.type="AssignmentPattern",delete t.operator,this.toAssignable(t.left,e);case"AssignmentPattern":break;case"ParenthesizedExpression":this.toAssignable(t.expression,e,r);break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!e)break;default:this.raise(t.start,"Assigning to rvalue")}else r&&this.checkPatternErrors(r,!0);return t};Qe.toAssignableList=function(t,e){for(var r=t.length,n=0;n<r;n++){var i=t[n];i&&this.toAssignable(i,e)}if(r){var s=t[r-1];this.options.ecmaVersion===6&&e&&s&&s.type==="RestElement"&&s.argument.type!=="Identifier"&&this.unexpected(s.argument.start)}return t};Qe.parseSpread=function(t){var e=this.startNode();return this.next(),e.argument=this.parseMaybeAssign(!1,t),this.finishNode(e,"SpreadElement")};Qe.parseRestBinding=function(){var t=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==g.name&&this.unexpected(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")};Qe.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case g.bracketL:var t=this.startNode();return this.next(),t.elements=this.parseBindingList(g.bracketR,!0,!0),this.finishNode(t,"ArrayPattern");case g.braceL:return this.parseObj(!0)}return this.parseIdent()};Qe.parseBindingList=function(t,e,r){for(var n=[],i=!0;!this.eat(t);)if(i?i=!1:this.expect(g.comma),e&&this.type===g.comma)n.push(null);else{if(r&&this.afterTrailingComma(t))break;if(this.type===g.ellipsis){var s=this.parseRestBinding();this.parseBindingListItem(s),n.push(s),this.type===g.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(t);break}else{var a=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(a),n.push(a)}}return n};Qe.parseBindingListItem=function(t){return t};Qe.parseMaybeDefault=function(t,e,r){if(r=r||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(g.eq))return r;var n=this.startNodeAt(t,e);return n.left=r,n.right=this.parseMaybeAssign(),this.finishNode(n,"AssignmentPattern")};Qe.checkLVal=function(t,e,r){switch(e===void 0&&(e=Ds),t.type){case"Identifier":e===We&&t.name==="let"&&this.raiseRecoverable(t.start,"let is disallowed as a lexically bound name"),this.strict&&this.reservedWordsStrictBind.test(t.name)&&this.raiseRecoverable(t.start,(e?"Binding ":"Assigning to ")+t.name+" in strict mode"),r&&($r(r,t.name)&&this.raiseRecoverable(t.start,"Argument name clash"),r[t.name]=!0),e!==Ds&&e!==Do&&this.declareName(t.name,e,t.start);break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":e&&this.raiseRecoverable(t.start,"Binding member expression");break;case"ObjectPattern":for(var n=0,i=t.properties;n<i.length;n+=1){var s=i[n];this.checkLVal(s,e,r)}break;case"Property":this.checkLVal(t.value,e,r);break;case"ArrayPattern":for(var a=0,o=t.elements;a<o.length;a+=1){var u=o[a];u&&this.checkLVal(u,e,r)}break;case"AssignmentPattern":this.checkLVal(t.left,e,r);break;case"RestElement":this.checkLVal(t.argument,e,r);break;case"ParenthesizedExpression":this.checkLVal(t.expression,e,r);break;default:this.raise(t.start,(e?"Binding":"Assigning to")+" rvalue")}};var J=oe.prototype;J.checkPropClash=function(t,e,r){if(!(this.options.ecmaVersion>=9&&t.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(t.computed||t.method||t.shorthand))){var n=t.key,i;switch(n.type){case"Identifier":i=n.name;break;case"Literal":i=String(n.value);break;default:return}var s=t.kind;if(this.options.ecmaVersion>=6){i==="__proto__"&&s==="init"&&(e.proto&&(r?r.doubleProto<0&&(r.doubleProto=n.start):this.raiseRecoverable(n.start,"Redefinition of __proto__ property")),e.proto=!0);return}i="$"+i;var a=e[i];if(a){var o;s==="init"?o=this.strict&&a.init||a.get||a.set:o=a.init||a[s],o&&this.raiseRecoverable(n.start,"Redefinition of property")}else a=e[i]={init:!1,get:!1,set:!1};a[s]=!0}};J.parseExpression=function(t,e){var r=this.start,n=this.startLoc,i=this.parseMaybeAssign(t,e);if(this.type===g.comma){var s=this.startNodeAt(r,n);for(s.expressions=[i];this.eat(g.comma);)s.expressions.push(this.parseMaybeAssign(t,e));return this.finishNode(s,"SequenceExpression")}return i};J.parseMaybeAssign=function(t,e,r){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(t);this.exprAllowed=!1}var n=!1,i=-1,s=-1;e?(i=e.parenthesizedAssign,s=e.trailingComma,e.parenthesizedAssign=e.trailingComma=-1):(e=new Nr,n=!0);var a=this.start,o=this.startLoc;(this.type===g.parenL||this.type===g.name)&&(this.potentialArrowAt=this.start);var u=this.parseMaybeConditional(t,e);if(r&&(u=r.call(this,u,a,o)),this.type.isAssign){var c=this.startNodeAt(a,o);return c.operator=this.value,c.left=this.type===g.eq?this.toAssignable(u,!1,e):u,n||(e.parenthesizedAssign=e.trailingComma=e.doubleProto=-1),e.shorthandAssign>=c.left.start&&(e.shorthandAssign=-1),this.checkLVal(u),this.next(),c.right=this.parseMaybeAssign(t),this.finishNode(c,"AssignmentExpression")}else n&&this.checkExpressionErrors(e,!0);return i>-1&&(e.parenthesizedAssign=i),s>-1&&(e.trailingComma=s),u};J.parseMaybeConditional=function(t,e){var r=this.start,n=this.startLoc,i=this.parseExprOps(t,e);if(this.checkExpressionErrors(e))return i;if(this.eat(g.question)){var s=this.startNodeAt(r,n);return s.test=i,s.consequent=this.parseMaybeAssign(),this.expect(g.colon),s.alternate=this.parseMaybeAssign(t),this.finishNode(s,"ConditionalExpression")}return i};J.parseExprOps=function(t,e){var r=this.start,n=this.startLoc,i=this.parseMaybeUnary(e,!1);return this.checkExpressionErrors(e)||i.start===r&&i.type==="ArrowFunctionExpression"?i:this.parseExprOp(i,r,n,-1,t)};J.parseExprOp=function(t,e,r,n,i){var s=this.type.binop;if(s!=null&&(!i||this.type!==g._in)&&s>n){var a=this.type===g.logicalOR||this.type===g.logicalAND,o=this.type===g.coalesce;o&&(s=g.logicalAND.binop);var u=this.value;this.next();var c=this.start,l=this.startLoc,h=this.parseExprOp(this.parseMaybeUnary(null,!1),c,l,s,i),p=this.buildBinary(e,r,t,h,u,a||o);return(a&&this.type===g.coalesce||o&&(this.type===g.logicalOR||this.type===g.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(p,e,r,n,i)}return t};J.buildBinary=function(t,e,r,n,i,s){var a=this.startNodeAt(t,e);return a.left=r,a.operator=i,a.right=n,this.finishNode(a,s?"LogicalExpression":"BinaryExpression")};J.parseMaybeUnary=function(t,e){var r=this.start,n=this.startLoc,i;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))i=this.parseAwait(),e=!0;else if(this.type.prefix){var s=this.startNode(),a=this.type===g.incDec;s.operator=this.value,s.prefix=!0,this.next(),s.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),a?this.checkLVal(s.argument):this.strict&&s.operator==="delete"&&s.argument.type==="Identifier"?this.raiseRecoverable(s.start,"Deleting local variable in strict mode"):e=!0,i=this.finishNode(s,a?"UpdateExpression":"UnaryExpression")}else{if(i=this.parseExprSubscripts(t),this.checkExpressionErrors(t))return i;for(;this.type.postfix&&!this.canInsertSemicolon();){var o=this.startNodeAt(r,n);o.operator=this.value,o.prefix=!1,o.argument=i,this.checkLVal(i),this.next(),i=this.finishNode(o,"UpdateExpression")}}return!e&&this.eat(g.starstar)?this.buildBinary(r,n,i,this.parseMaybeUnary(null,!1),"**",!1):i};J.parseExprSubscripts=function(t){var e=this.start,r=this.startLoc,n=this.parseExprAtom(t);if(n.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return n;var i=this.parseSubscripts(n,e,r);return t&&i.type==="MemberExpression"&&(t.parenthesizedAssign>=i.start&&(t.parenthesizedAssign=-1),t.parenthesizedBind>=i.start&&(t.parenthesizedBind=-1)),i};J.parseSubscripts=function(t,e,r,n){for(var i=this.options.ecmaVersion>=8&&t.type==="Identifier"&&t.name==="async"&&this.lastTokEnd===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&this.potentialArrowAt===t.start,s=!1;;){var a=this.parseSubscript(t,e,r,n,i,s);if(a.optional&&(s=!0),a===t||a.type==="ArrowFunctionExpression"){if(s){var o=this.startNodeAt(e,r);o.expression=a,a=this.finishNode(o,"ChainExpression")}return a}t=a}};J.parseSubscript=function(t,e,r,n,i,s){var a=this.options.ecmaVersion>=11,o=a&&this.eat(g.questionDot);n&&o&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var u=this.eat(g.bracketL);if(u||o&&this.type!==g.parenL&&this.type!==g.backQuote||this.eat(g.dot)){var c=this.startNodeAt(e,r);c.object=t,c.property=u?this.parseExpression():this.parseIdent(this.options.allowReserved!=="never"),c.computed=!!u,u&&this.expect(g.bracketR),a&&(c.optional=o),t=this.finishNode(c,"MemberExpression")}else if(!n&&this.eat(g.parenL)){var l=new Nr,h=this.yieldPos,p=this.awaitPos,f=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var d=this.parseExprList(g.parenR,this.options.ecmaVersion>=8,!1,l);if(i&&!o&&!this.canInsertSemicolon()&&this.eat(g.arrow))return this.checkPatternErrors(l,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=h,this.awaitPos=p,this.awaitIdentPos=f,this.parseArrowExpression(this.startNodeAt(e,r),d,!0);this.checkExpressionErrors(l,!0),this.yieldPos=h||this.yieldPos,this.awaitPos=p||this.awaitPos,this.awaitIdentPos=f||this.awaitIdentPos;var m=this.startNodeAt(e,r);m.callee=t,m.arguments=d,a&&(m.optional=o),t=this.finishNode(m,"CallExpression")}else if(this.type===g.backQuote){(o||s)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var v=this.startNodeAt(e,r);v.tag=t,v.quasi=this.parseTemplate({isTagged:!0}),t=this.finishNode(v,"TaggedTemplateExpression")}return t};J.parseExprAtom=function(t){this.type===g.slash&&this.readRegexp();var e,r=this.potentialArrowAt===this.start;switch(this.type){case g._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),e=this.startNode(),this.next(),this.type===g.parenL&&!this.allowDirectSuper&&this.raise(e.start,"super() call outside constructor of a subclass"),this.type!==g.dot&&this.type!==g.bracketL&&this.type!==g.parenL&&this.unexpected(),this.finishNode(e,"Super");case g._this:return e=this.startNode(),this.next(),this.finishNode(e,"ThisExpression");case g.name:var n=this.start,i=this.startLoc,s=this.containsEsc,a=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!s&&a.name==="async"&&!this.canInsertSemicolon()&&this.eat(g._function))return this.parseFunction(this.startNodeAt(n,i),0,!1,!0);if(r&&!this.canInsertSemicolon()){if(this.eat(g.arrow))return this.parseArrowExpression(this.startNodeAt(n,i),[a],!1);if(this.options.ecmaVersion>=8&&a.name==="async"&&this.type===g.name&&!s)return a=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(g.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(n,i),[a],!0)}return a;case g.regexp:var o=this.value;return e=this.parseLiteral(o.value),e.regex={pattern:o.pattern,flags:o.flags},e;case g.num:case g.string:return this.parseLiteral(this.value);case g._null:case g._true:case g._false:return e=this.startNode(),e.value=this.type===g._null?null:this.type===g._true,e.raw=this.type.keyword,this.next(),this.finishNode(e,"Literal");case g.parenL:var u=this.start,c=this.parseParenAndDistinguishExpression(r);return t&&(t.parenthesizedAssign<0&&!this.isSimpleAssignTarget(c)&&(t.parenthesizedAssign=u),t.parenthesizedBind<0&&(t.parenthesizedBind=u)),c;case g.bracketL:return e=this.startNode(),this.next(),e.elements=this.parseExprList(g.bracketR,!0,!0,t),this.finishNode(e,"ArrayExpression");case g.braceL:return this.parseObj(!1,t);case g._function:return e=this.startNode(),this.next(),this.parseFunction(e,0);case g._class:return this.parseClass(this.startNode(),!1);case g._new:return this.parseNew();case g.backQuote:return this.parseTemplate();case g._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}};J.parseExprImport=function(){var t=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var e=this.parseIdent(!0);switch(this.type){case g.parenL:return this.parseDynamicImport(t);case g.dot:return t.meta=e,this.parseImportMeta(t);default:this.unexpected()}};J.parseDynamicImport=function(t){if(this.next(),t.source=this.parseMaybeAssign(),!this.eat(g.parenR)){var e=this.start;this.eat(g.comma)&&this.eat(g.parenR)?this.raiseRecoverable(e,"Trailing comma is not allowed in import()"):this.unexpected(e)}return this.finishNode(t,"ImportExpression")};J.parseImportMeta=function(t){this.next();var e=this.containsEsc;return t.property=this.parseIdent(!0),t.property.name!=="meta"&&this.raiseRecoverable(t.property.start,"The only valid meta property for import is 'import.meta'"),e&&this.raiseRecoverable(t.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&this.raiseRecoverable(t.start,"Cannot use 'import.meta' outside a module"),this.finishNode(t,"MetaProperty")};J.parseLiteral=function(t){var e=this.startNode();return e.value=t,e.raw=this.input.slice(this.start,this.end),e.raw.charCodeAt(e.raw.length-1)===110&&(e.bigint=e.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(e,"Literal")};J.parseParenExpression=function(){this.expect(g.parenL);var t=this.parseExpression();return this.expect(g.parenR),t};J.parseParenAndDistinguishExpression=function(t){var e=this.start,r=this.startLoc,n,i=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var s=this.start,a=this.startLoc,o=[],u=!0,c=!1,l=new Nr,h=this.yieldPos,p=this.awaitPos,f;for(this.yieldPos=0,this.awaitPos=0;this.type!==g.parenR;)if(u?u=!1:this.expect(g.comma),i&&this.afterTrailingComma(g.parenR,!0)){c=!0;break}else if(this.type===g.ellipsis){f=this.start,o.push(this.parseParenItem(this.parseRestBinding())),this.type===g.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}else o.push(this.parseMaybeAssign(!1,l,this.parseParenItem));var d=this.start,m=this.startLoc;if(this.expect(g.parenR),t&&!this.canInsertSemicolon()&&this.eat(g.arrow))return this.checkPatternErrors(l,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=h,this.awaitPos=p,this.parseParenArrowList(e,r,o);(!o.length||c)&&this.unexpected(this.lastTokStart),f&&this.unexpected(f),this.checkExpressionErrors(l,!0),this.yieldPos=h||this.yieldPos,this.awaitPos=p||this.awaitPos,o.length>1?(n=this.startNodeAt(s,a),n.expressions=o,this.finishNodeAt(n,"SequenceExpression",d,m)):n=o[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var v=this.startNodeAt(e,r);return v.expression=n,this.finishNode(v,"ParenthesizedExpression")}else return n};J.parseParenItem=function(t){return t};J.parseParenArrowList=function(t,e,r){return this.parseArrowExpression(this.startNodeAt(t,e),r)};var Uv=[];J.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var t=this.startNode(),e=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(g.dot)){t.meta=e;var r=this.containsEsc;return t.property=this.parseIdent(!0),t.property.name!=="target"&&this.raiseRecoverable(t.property.start,"The only valid meta property for new is 'new.target'"),r&&this.raiseRecoverable(t.start,"'new.target' must not contain escaped characters"),this.inNonArrowFunction()||this.raiseRecoverable(t.start,"'new.target' can only be used in functions"),this.finishNode(t,"MetaProperty")}var n=this.start,i=this.startLoc,s=this.type===g._import;return t.callee=this.parseSubscripts(this.parseExprAtom(),n,i,!0),s&&t.callee.type==="ImportExpression"&&this.raise(n,"Cannot use new with import()"),this.eat(g.parenL)?t.arguments=this.parseExprList(g.parenR,this.options.ecmaVersion>=8,!1):t.arguments=Uv,this.finishNode(t,"NewExpression")};J.parseTemplateElement=function(t){var e=t.isTagged,r=this.startNode();return this.type===g.invalidTemplate?(e||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),r.value={raw:this.value,cooked:null}):r.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
@@ -93,6 +93,6 @@ ${o}
93
93
  * Copyright (c) 2026, VTJ.PRO All rights reserved.
94
94
  * @name @vtj/uni
95
95
  * @author CHC chenhuachun1549@dingtalk.com
96
- * @version 0.20.2
96
+ * @version 0.20.4
97
97
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
98
98
  */const b1=["onLaunch","onShow","onHide","onError","onPageNotFound","onUnhandledRejection","onThemeChange","onPageNotFound","onUniNViewMessage","onExit"],fn="/pages",_1="VTJ",x1="__UNI__1FC118B",w1="VTJ移动跨端项目",S1="1.0.0",E1="100",T1=!1,C1={},A1={enable:!1},I1="3",R1={name:_1,appid:x1,description:w1,versionName:S1,versionCode:E1,transformPx:T1,"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:C1,"mp-weixin":{appid:"",setting:{urlCheck:!1},usingComponents:!0},"mp-alipay":{usingComponents:!0},"mp-baidu":{usingComponents:!0},"mp-toutiao":{usingComponents:!0},uniStatistics:A1,vueVersion:I1},k1=[],O1={navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},P1={autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}},$1={pages:k1,globalStyle:O1,easycom:P1};function D1(t){let{manifestJson:e={},pagesJson:r={},routes:n=[]}=t;const i=n.map(s=>{const{path:a,style:o,needLogin:u}=s;return{path:a,style:o,needLogin:u}});return ue(F({},t),{manifestJson:Object.assign({},R1,e),pagesJson:Object.assign({},$1,r,{pages:i})})}const Fn={navigationBarBackgroundColor:"backgroundColor",navigationBarTextStyle:"titleColor",navigationBarTitleText:"titleText",navigationStyle:"style",titleImage:"titleImage",titlePenetrate:"titlePenetrate",transparentTitle:"transparentTitle"};function nc(t){const e={},r={black:"#000000",white:"#ffffff"};for(const n in t)Fn[n]&&(e[Fn[n]]=n==="navigationBarTextStyle"?r[t[n]]||r.black:t[n]);return e}function N1(t){const e={};for(const r in t)Fn[r]||(e[r]=t[r]);return e}function B1(t){var e,r;return((r=(e=t.h5)==null?void 0:e.router)==null?void 0:r.mode)||"hash"}function L1(t){var e,r,n;return{topWindow:!!((e=t.topWindow)!=null&&e.path),leftWindow:!!((r=t.leftWindow)!=null&&r.path),rightWindow:!!((n=t.rightWindow)!=null&&n.path)}}function j1(t){const{pagesJson:e={}}=t,{globalStyle:r,pages:n=[]}=e;return!!(r!=null&&r.enablePullDownRefresh||n.find(i=>{var s;return!!((s=i.style)!=null&&s.enablePullDownRefresh)}))}function V1(t){const{pagesJson:e={}}=t,{globalStyle:r,pages:n=[]}=e;let i=!1;return(r==null?void 0:r.navigationStyle)==="custom"?(i=!0,n.find(s=>{var a;return((a=s.style)==null?void 0:a.navigationStyle)==="default"})&&(i=!1)):n.every(s=>{var a;return((a=s.style)==null?void 0:a.navigationStyle)==="custom"})&&(i=!0),i}function M1(t){var o;const e=V1(t),r={navigationBar:!1,navigationBarButtons:!1,navigationBarSearchInput:!1,navigationBarTransparent:!1},{pagesJson:n={}}=t,{globalStyle:i,pages:s=[]}=n;if(e)return r;r.navigationBar=!0;const a=(o=i==null?void 0:i.h5)==null?void 0:o.titleNView;return s.find(u=>{var c,l,h;return!!((h=(l=(c=u.style)==null?void 0:c.h5)==null?void 0:l.titleNView)!=null&&h.buttons.length)})&&(r.navigationBarButtons=!0),(a!=null&&a.searchInput||s.find(u=>{var c,l,h;return!!((h=(l=(c=u.style)==null?void 0:c.h5)==null?void 0:l.titleNView)!=null&&h.searchInput)}))&&(r.navigationBarSearchInput=!0),((a==null?void 0:a.type)==="transparent"||s.find(u=>{var c,l,h;return((h=(l=(c=u.style)==null?void 0:c.h5)==null?void 0:l.titleNView)==null?void 0:h.type)==="transparent"}))&&(r.navigationBarTransparent=!0),r}function F1(t,e=window){var p,f,d,m;const{pagesJson:r={},manifestJson:n={}}=t,{topWindow:i,leftWindow:s,rightWindow:a}=L1(r),{navigationBar:o,navigationBarButtons:u,navigationBarSearchInput:c,navigationBarTransparent:l}=M1(t),h={__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__:B1(n),__UNI_FEATURE_PAGES__:!!((p=r.pages)!=null&&p.length),__UNI_FEATURE_TABBAR__:!!((d=(f=r.tabBar)==null?void 0:f.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__:a,__UNI_FEATURE_RESPONSIVE__:!1,__UNI_FEATURE_NAVIGATIONBAR__:o,__UNI_FEATURE_PULL_DOWN_REFRESH__:j1(t),__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__:u,__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__:c,__UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__:l};Object.entries(h).forEach(([v,S])=>{e[v]=S})}const U1="5.07";function H1(t,e=window){var h,p;const{pagesJson:r={},manifestJson:n={}}=t,{easycom:i={}}=r,{appid:s="",name:a="",versionCode:o="",versionName:u=""}=n,c=r.globalStyle,l=((h=n.h5)==null?void 0:h.router)||{};e.__uniConfig={easycom:i,globalStyle:ue(F({},N1(c)),{navigationBar:nc(c),isNVue:!1}),compilerVersion:U1,appId:s,appName:a,appVersion:u,appVersionCode:String(o),async:F({loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0},((p=n.h5)==null?void 0:p.async)||{}),debug:!1,networkTimeout:F({request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},n.networkTimeout||{}),sdkConfigs:{},nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:{},router:F({mode:"hash",base:"/",assets:"assets",routerBase:l.base||"/"},l),darkmode:!1,themeConfig:{},tabBar:r.tabBar?F({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 q1(t,e=window){const{UniServiceJSBridge:r,UniViewJSBridge:n,getApp:i,uni:s,getCurrentPages:a,upx2px:o,setupPage:u}=t;e.UniServiceJSBridge=r,e.UniViewJSBridge=n,e.getApp=i,e.uni=s,e.wx=s,e.getCurrentPages=a,e.upx2px=o,e.__setupPage=c=>u(c)}function z1(t,e,r){const{openBlock:n,createBlock:i,withCtx:s,createVNode:a}=t,{PageComponent:o,setupPage:u,getApp:c}=e;return{mpType:"page",setup(){return M(this,null,function*(){var m,v;const h=((v=(m=c())==null?void 0:m.$route)==null?void 0:v.query)||{},{loader:p,component:f}=r,d=p?yield p(r):f||{};return()=>(n(),i(o,null,{page:s(()=>[a(u(d),Object.assign({},h,{ref:"page"}),null,512)]),_:1}))})}}}function W1(t,e,r){var f;const{path:n,style:i={},meta:s={},home:a,id:o}=e,u=((f=t.tabBar)==null?void 0:f.list)||[],c=u.findIndex(d=>{var m;return d.pagePath===n||((m=d.pagePath)==null?void 0:m.endsWith(o))}),l=u[c],h=!!l,p=r===0;return F({isTabBar:h,tabBarIndex:c,isQuit:a!=null?a:p,isEntry:a!=null?a:p,navigationBar:F({type:"default"},nc(i)),isNVue:!1,route:l?l.pagePath:n},s)}function G1(t,e,r,n,i=window){const s=r.map((a,o)=>{const u=W1(n,a,o),c=z1(t,e,a),{path:l}=a;return{path:l,alias:l,meta:u,component:{render(){return t.h(t.Suspense,[t.h(c)])}}}});i.__uniRoutes=s,i.__uniLayout={}}function K1(t,e,r=window){Pr(r,String(t),e)}function J1(t,e){e&&["View","ScrollView","Swiper","MovableArea","MovableView","CoverView","CoverImage","Icon","Text","RichText","Progress","Button","CheckboxGroup","Checkbox","Editor","Form","Input","Label","Picker","PickerView","RadioGroup","Radio","Slider","Switch","Textarea","Navigator","Image","Video","Map","Canvas","WebView","PickerViewColumn","ResizeSensor","SwiperItem"].forEach(r=>{const n=e[r];t.component(r,n)})}function Y1(t){const e=D1(t),{Vue:r,App:n,UniH5:i,routes:s=[],pagesJson:a={},manifestJson:o={},window:u,css:c=""}=e;if(!i)return r.createApp(n);const{plugin:l,setupApp:h}=i;F1(e,u),H1(e,u),q1(i,u),G1(r,i,s,a,u),K1(o.appid||Date.now(),c,u);const p=r.createApp(h(n));return p.use(J1,i),p.use(l),p}function Z1(t,e){const r={};return Object.entries(t).forEach(([n,i])=>{b1.includes(n)&&i&&(r[n]=e(i))}),r}function qs(t,e){return()=>M(null,null,function*(){const r=yield t.getDsl(e);if(r){const{renderer:n}=t.createDslRenderer(r);return n}return null})}function Q1(n){return M(this,arguments,function*(t,e=!1,r=fn){var o,u,c;const i=lo(((o=t.project)==null?void 0:o.pages)||[]),s=[];for(const l of i){const h=((u=t.project)==null?void 0:u.homepage)===l.id;s.push({id:l.id,path:r===fn?`/${Bm(l)}`:`${r}/${l.id}`,loader:qs(t,l.id),style:F({navigationBarTitleText:l.title},l.style),needLogin:l.needLogin,home:h})}const a=s.find(l=>!!l.home)||s[0];if(a){const l=r===fn?"/":r;s.unshift(ue(F({},a),{path:l}))}if(e){const l=((c=t.project)==null?void 0:c.blocks)||[];for(const h of l)s.push({id:h.id,path:`${r}/${h.id}`,loader:qs(t,h.id),style:{navigationStyle:"custom"}})}return s})}function Un(){if(typeof uni<"u")return uni;if(typeof globalThis<"u"&&globalThis.uni)return globalThis.uni;if(typeof window<"u"&&window.uni)return window.uni}function X1(){const t=Un();return t!=null&&t.showLoading&&t.showLoading({title:"加载中...",mask:!0}),{close:()=>{const e=Un();e!=null&&e.hideLoading&&e.hideLoading()}}}function ic(t,e="",r="warning"){return M(this,null,function*(){const n=Un();return n!=null&&n.showModal?n.showModal({title:e,content:t,showCancel:!1}):(typeof window<"u"&&window.alert(t),!0)})}function e0(t=se.Runtime){let e={};t===se.Runtime?e=Object.assign({}):e=Object.assign({});const r=Object.assign({});e=F(F({},e),r);let n={};for(const[i,s]of Object.entries(e))n[i]=typeof s=="function"?s:()=>Promise.resolve(s);return n}const t0=dy({loading:X1,notify:ic}),sc=new y1(m1(ic)),r0=e0(),{provider:n0,onReady:i0}=h1({nodeEnv:"production",mode:se.Runtime,modules:r0,materialPath:"../",adapter:t0,service:sc,dependencies:{Vue:()=>Ei(()=>import("./@dcloudio-uni-h5-vue-ZHZeNOoM.js").then(t=>t.y),__vite__mapDeps([0,1,2]),import.meta.url),VueRouter:()=>Ei(()=>import("./vue-router-cjYR4veV.js"),__vite__mapDeps([3,0,1,2]),import.meta.url)}}),s0=t=>M(null,null,function*(){const e=(yield sc.getExtension().catch(()=>null))||{},r=top||window,n=yield f1(e.enhance,r.location.pathname),{Vue:i,UniH5:s}=window,a=t.project;if(!a)return;const o=a.uniConfig||{},u=Z1(o,d=>Ae(d,window,!1,!0)),{manifestJson:c,pagesJson:l,css:h}=o,p=yield Q1(t,!0),f=Y1({Vue:i,App:u,UniH5:s,routes:p,css:h,manifestJson:c,pagesJson:l});f.use(t),n&&f.use(n,t),f.mount(document.body)});i0(()=>s0(n0));
@@ -44,7 +44,7 @@
44
44
  <title></title>
45
45
  <!--preload-links-->
46
46
  <!--app-context-->
47
- <script type="module" crossorigin src="./assets/index-B6U9VYnA.js"></script>
47
+ <script type="module" crossorigin src="./assets/index-CUlEhdBA.js"></script>
48
48
  <link rel="modulepreload" crossorigin href="./assets/axios-Cc-15rbk.js">
49
49
  <link rel="modulepreload" crossorigin href="./assets/vue-DefuvV9N.js">
50
50
  <link rel="modulepreload" crossorigin href="./assets/@dcloudio-uni-shared-BN07FyFa.js">
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vtj/pro",
3
3
  "private": false,
4
- "version": "0.20.2",
4
+ "version": "0.20.4",
5
5
  "keywords": [
6
6
  "AI低代码",
7
7
  "AI编程",
@@ -23,22 +23,22 @@
23
23
  "license": "MIT",
24
24
  "type": "module",
25
25
  "dependencies": {
26
- "@vtj/core": "~0.20.2",
27
- "@vtj/designer": "~0.20.2",
28
- "@vtj/local": "~0.20.2",
29
- "@vtj/renderer": "~0.20.2",
30
- "@vtj/materials": "~0.20.2",
31
- "@vtj/uni": "~0.20.2"
26
+ "@vtj/core": "~0.20.4",
27
+ "@vtj/designer": "~0.20.4",
28
+ "@vtj/renderer": "~0.20.4",
29
+ "@vtj/local": "~0.20.4",
30
+ "@vtj/materials": "~0.20.4",
31
+ "@vtj/uni": "~0.20.4"
32
32
  },
33
33
  "devDependencies": {
34
34
  "vite-plugin-vue-devtools": "~8.0.2",
35
35
  "vue": "~3.5.37",
36
36
  "vue-router": "~4.6.0",
37
- "@vtj/charts": "~0.20.2",
38
37
  "@vtj/cli": "~0.14.2",
39
- "@vtj/icons": "~0.20.2",
40
- "@vtj/ui": "~0.20.2",
41
- "@vtj/utils": "~0.20.2"
38
+ "@vtj/charts": "~0.20.4",
39
+ "@vtj/ui": "~0.20.4",
40
+ "@vtj/icons": "~0.20.4",
41
+ "@vtj/utils": "~0.20.4"
42
42
  },
43
43
  "exports": {
44
44
  "./vite": {
@@ -1 +0,0 @@
1
- var d=Object.defineProperty;var g=Object.getOwnPropertySymbols;var I=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable;var p=(t,a,s)=>a in t?d(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)&&p(t,s,a[s]);if(g)for(var s of g(a))O.call(a,s)&&p(t,s,a[s]);return t};var E=(t,a,s)=>p(t,typeof a!="symbol"?a+"":a,s);var S=(t,a,s)=>new Promise((o,n)=>{var e=r=>{try{i(s.next(r))}catch(l){n(l)}},c=r=>{try{i(s.throw(r))}catch(l){n(l)}},i=r=>r.done?o(r.value):Promise.resolve(r.value).then(e,c);i((s=s.apply(t,a)).next())});import{aA as h}from"./vue-wWzmtsAU.js";import{i as T,$ as m,l as f,r as A,q as V,a as b,p as P,Q as y,n as R,c as M,e as N,h as L,f as D,g as B,j as k,k as w,v as x,m as v,o as K,s as H,t as W,u as Y,w as C,x as F,y as G,z as U,A as $,B as j,C as z,E as J,G as Z,V as q,I as X,Z as Q,_ as aa,S as sa,L as ea,O as ta,P as ra,R as na,U as ia,W as oa,a0 as la,a1 as Ea,a2 as _a,a3 as ca,a4 as pa,a5 as ga,a6 as Sa,a7 as ua,a8 as da,a9 as Ia,aa as Oa,ab as ha,ac as Ta,ad as ma,ae as fa,af as Aa,ag as Va,ah as ba,ai as Pa,aj as ya,ak as Ra,al as Ma,am as Na,an as La,ao as Da,ap as Ba,aq as ka,ar as wa,as as xa,at as va,au as Ka,av as Ha,aw as Wa,ax as Ya,ay as Ca,az as Fa,aA as Ga,aB as Ua,N as $a,aC as ja,aD as za,aE as Ja,aF as Za,aG as qa,aH as Xa,aI as Qa,aJ as as}from"./Editor-BOOEBxlN-BdTWZ2QX.js";import{E as ss,a as es,b as ts}from"./element-plus-wUcGoN3I.js";import"./dayjs-CxR8wwn9.js";const rs=Object.freeze(Object.defineProperty({__proto__:null,API_METHOD_TYPES:T,ActionMenu:m,Assets:f,Binder:A,Box:V,CodeIncrementalUpdater:b,DEVTOOLS_DEP:P,DepsManager:y,Designer:R,EVENT_MODIFIERS:M,Editor:N,Engine:L,EventBinder:D,GET_TOKENS_LINK:B,HOT_KEYS_DEP:k,Icon:w,Item:x,KEYBOARD_EVENT_LIST:v,MAX_TOKENS:K,MOBILE_SIZE:H,MOUSE_EVENT_LIST:W,NAME_REGEX:Y,NPM_REGISTRY_URL:C,OpenApi:F,PAD_SIZE:G,Panel:U,REPORT_API:$,RegionType:j,RegionWrapper:z,Renderer:J,SAVE_BLOCK_FILE_FINISH:Z,SESSION_ID_KEY:q,STATE_KEY:X,SetterManager:Q,SetterView:aa,SetterWrapper:sa,Simulator:ea,Skeleton:ta,SkeletonWrapper:ra,SlotsPicker:na,State:ia,TOOL_CONFIGS:oa,Tabs:la,ToolRegistry:Ea,VERSION_REGEX:_a,VTJ_DESIGNER_VERSION:ca,VUE_DEVTOOLS_FRAME_STATE_KEY:pa,VUE_DEVTOOLS_OVERLAY_PATH:ga,VUE_DEVTOOLS_PATH:Sa,VariableBinder:ua,Viewer:da,Viewport:Ia,WidgetGroup:Oa,WidgetManager:ha,WidgetWrapper:Ta,alert:ma,builtInDeps:fa,builtInMaterials:Aa,builtInSetters:Va,builtInWidgets:ba,codeIncrementalUpdater:Pa,confirm:ya,createSlotsPicker:Ra,defaultSetter:Ma,depsManager:Na,engineKey:La,expressionValidate:Da,getClassProperties:Ba,getComposableNames:ka,loading:wa,message:xa,normalizedStyle:va,notify:Ka,proxyContext:Ha,readJsonFile:Wa,regions:Ya,setterManager:Ca,setters:Fa,upgradeVersion:Ga,useEngine:Ua,widgetManager:$a,widgets:ja},Symbol.toStringTag,{value:"Module"}));class _s{constructor(a){E(this,"urls",[]);E(this,"library","");E(this,"params",[]);E(this,"__BASE_PATH__","/");this.config=a;const s=_(_(_({},Ja),rs),za),o={Vue:h,__VTJ_PRO__:s};for(const[l,u]of Object.entries(o))window[l]=u;const{extension:n,__BASE_PATH__:e="/"}=a||{},{urls:c=[],library:i,params:r=[]}=n||{};i&&(this.urls=c,this.library=i,this.params=r,this.__BASE_PATH__=e)}load(){return S(this,null,function*(){let a={};if(this.library){const s=this.__BASE_PATH__,o=this.urls.filter(e=>Za(e)).map(e=>`${s}${e}`),n=this.urls.filter(e=>qa(e)).map(e=>`${s}${e}`);if(Xa(o),n.length){const e=yield Qa(n,this.library).catch(()=>null);e&&typeof e=="function"?a=e.call(e,this.config,...this.params):a=e||{}}}return Object.assign({},this.getEngineOptions(),a)})}getEngineOptions(){const a=["materialPath","pageBasePath","pageRouteName","remote","checkVersion","noMask","auth"];return as(this.config,a)}}function cs(){return ts.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"})}function ps(t,a="",s="warning"){es({title:a,message:t,type:s})}function gs(t,a){return ss.alert(t,a)}export{_s as E,gs as a,cs as l,ps as n};