@vtj/pro 0.9.6 → 0.9.7
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.
- package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/element/index.umd.js +4 -4
- package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/vant/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/element-plus/index.css +1 -1
- package/dist/@vtj/materials/deps/element-plus/index.full.min.js +13 -13
- package/dist/@vtj/materials/deps/element-plus/zh-cn.js +1 -1
- package/dist/assets/{auth-BNLa1o8j.js → auth-ChUE4eDn.js} +1 -1
- package/dist/assets/element-plus-atKQmRsE.js +21 -0
- package/dist/assets/{element-plus-BbdgoGGn.css → element-plus-oK66jojF.css} +1 -1
- package/dist/assets/{extension-C3i8Db2L.js → extension-n9Xhh9I6.js} +8 -8
- package/dist/assets/{index-CSO9rqBp.js → index-CvsdciBA.js} +9 -9
- package/dist/assets/{index-Bo3SubWr.js → index-cQzjg-b9.js} +1 -1
- package/dist/assets/{lodash-es-Cmvm8wvQ.js → lodash-es-D0ldFxdg.js} +1 -1
- package/dist/assets/{page-OZVGcgfg.js → page-CAzOTY4_.js} +1 -1
- package/dist/assets/{preview-BK90FAA6.js → preview-B0hdUTvJ.js} +1 -1
- package/dist/index.html +6 -6
- package/package.json +11 -11
- package/dist/assets/element-plus-BHLTgCyt.js +0 -21
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-
|
|
2
|
-
var Sl=Object.defineProperty,xl=Object.defineProperties;var Tl=Object.getOwnPropertyDescriptors;var vr=Object.getOwnPropertySymbols;var xs=Object.prototype.hasOwnProperty,Ts=Object.prototype.propertyIsEnumerable;var de=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),$l=e=>{throw TypeError(e)};var xn=(e,t,r)=>t in e?Sl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,z=(e,t)=>{for(var r in t||(t={}))xs.call(t,r)&&xn(e,r,t[r]);if(vr)for(var r of vr(t))Ts.call(t,r)&&xn(e,r,t[r]);return e},ct=(e,t)=>xl(e,Tl(t));var Tn=(e,t)=>{var r={};for(var n in e)xs.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&vr)for(var n of vr(e))t.indexOf(n)<0&&Ts.call(e,n)&&(r[n]=e[n]);return r};var j=(e,t,r)=>xn(e,typeof t!="symbol"?t+"":t,r);var L=(e,t,r)=>new Promise((n,i)=>{var s=u=>{try{a(r.next(u))}catch(c){i(c)}},o=u=>{try{a(r.throw(u))}catch(c){i(c)}},a=u=>u.done?n(u.value):Promise.resolve(u.value).then(s,o);a((r=r.apply(e,t)).next())}),Gt=function(e,t){this[0]=e,this[1]=t},$n=(e,t,r)=>{var n=(o,a,u,c)=>{try{var l=r[o](a),h=(a=l.value)instanceof Gt,f=l.done;Promise.resolve(h?a[0]:a).then(p=>h?n(o==="return"?o:"next",a[1]?{done:p.done,value:p.value}:p,u,c):u({value:p,done:f})).catch(p=>n("throw",p,u,c))}catch(p){c(p)}},i=o=>s[o]=a=>new Promise((u,c)=>n(o,a,u,c)),s={};return r=r.apply(e,t),s[de("asyncIterator")]=()=>s,i("next"),i("throw"),i("return"),s},On=e=>{var t=e[de("asyncIterator")],r=!1,n,i={};return t==null?(t=e[de("iterator")](),n=s=>i[s]=o=>t[s](o)):(t=t.call(e),n=s=>i[s]=o=>{if(r){if(r=!1,s==="throw")throw o;return o}return r=!0,{done:!1,value:new Gt(new Promise(a=>{var u=t[s](o);u instanceof Object||$l("Object expected"),a(u)}),1)}}),i[de("iterator")]=()=>i,n("next"),"throw"in t?n("throw"):i.throw=s=>{throw s},"return"in t&&n("return"),i},$s=(e,t,r)=>(t=e[de("asyncIterator")])?t.call(e):(e=e[de("iterator")](),t={},r=(n,i)=>(i=e[n])&&(t[n]=s=>new Promise((o,a,u)=>(s=i.call(e,s),u=s.done,Promise.resolve(s.value).then(c=>o({value:c,done:u}),a)))),r("next"),r("return"),t);import{ax as Os,ay as tn,d as en,e as er,ag as Wn,q as ea,f as ra,o as Yn,c as Ol,a as me,Q as An,w as Al,m as jl,r as Rl,j as Dl,Y as Cl,k as na,g as Pl,b as kl,u as Gn,h as ia,i as Nl,ah as Bl,J as As,K as js,az as Il,S as Ml,au as Fl}from"./vue-Dzbx66BV.js";import{t as oe}from"./mockjs-BiYWQEnZ.js";import{useRoute as sa,createRouter as Ll,createWebHashHistory as Vl}from"./vue-router-CBK9GHjZ.js";import{E as rn,a as Hl,z as Ul,b as zl}from"./element-plus-BHLTgCyt.js";import{_ as yr}from"./monaco-editor-Lba3v2gb.js";import"./dayjs-DO-COJPZ.js";import"./lodash-es-Cmvm8wvQ.js";import"./@vueuse-BwkL59YI.js";import"./@element-plus-icons-vue-BM7nPgXL.js";import"./shared-BAqo0W56.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(i){if(i.ep)return;i.ep=!0;const s=r(i);fetch(i.href,s)}})();var ql={ENV_TYPE:"live",NODE_ENV:"production"},Kl=typeof global=="object"&&global&&global.Object===Object&&global;const oa=Kl;var Jl=typeof self=="object"&&self&&self.Object===Object&&self,Wl=oa||Jl||Function("return this")();const At=Wl;var Yl=At.Symbol;const Ct=Yl;var aa=Object.prototype,Gl=aa.hasOwnProperty,Zl=aa.toString,Ue=Ct?Ct.toStringTag:void 0;function Ql(e){var t=Gl.call(e,Ue),r=e[Ue];try{e[Ue]=void 0;var n=!0}catch(s){}var i=Zl.call(e);return n&&(t?e[Ue]=r:delete e[Ue]),i}var Xl=Object.prototype,th=Xl.toString;function eh(e){return th.call(e)}var rh="[object Null]",nh="[object Undefined]",Rs=Ct?Ct.toStringTag:void 0;function Et(e){return e==null?e===void 0?nh:rh:Rs&&Rs in Object(e)?Ql(e):eh(e)}function ot(e){return e!=null&&typeof e=="object"}var ih="[object Symbol]";function ur(e){return typeof e=="symbol"||ot(e)&&Et(e)==ih}function ca(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var sh=Array.isArray;const pt=sh;var oh=1/0,Ds=Ct?Ct.prototype:void 0,Cs=Ds?Ds.toString:void 0;function ua(e){if(typeof e=="string")return e;if(pt(e))return ca(e,ua)+"";if(ur(e))return Cs?Cs.call(e):"";var t=e+"";return t=="0"&&1/e==-oh?"-0":t}var ah=/\s/;function ch(e){for(var t=e.length;t--&&ah.test(e.charAt(t)););return t}var uh=/^\s+/;function lh(e){return e&&e.slice(0,ch(e)+1).replace(uh,"")}function at(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ps=NaN,hh=/^[-+]0x[0-9a-f]+$/i,fh=/^0b[01]+$/i,ph=/^0o[0-7]+$/i,dh=parseInt;function ks(e){if(typeof e=="number")return e;if(ur(e))return Ps;if(at(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=at(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=lh(e);var r=fh.test(e);return r||ph.test(e)?dh(e.slice(2),r?2:8):hh.test(e)?Ps:+e}function Ci(e){return e}var mh="[object AsyncFunction]",gh="[object Function]",vh="[object GeneratorFunction]",yh="[object Proxy]";function ae(e){if(!at(e))return!1;var t=Et(e);return t==gh||t==vh||t==mh||t==yh}var bh=At["__core-js_shared__"];const jn=bh;var Ns=function(){var e=/[^.]+$/.exec(jn&&jn.keys&&jn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function _h(e){return!!Ns&&Ns in e}var wh=Function.prototype,Eh=wh.toString;function le(e){if(e!=null){try{return Eh.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var Sh=/[\\^$.*+?()[\]{}|]/g,xh=/^\[object .+?Constructor\]$/,Th=Function.prototype,$h=Object.prototype,Oh=Th.toString,Ah=$h.hasOwnProperty,jh=RegExp("^"+Oh.call(Ah).replace(Sh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Rh(e){if(!at(e)||_h(e))return!1;var t=ae(e)?jh:xh;return t.test(le(e))}function Dh(e,t){return e==null?void 0:e[t]}function he(e,t){var r=Dh(e,t);return Rh(r)?r:void 0}var Ch=he(At,"WeakMap");const Zn=Ch;var Bs=Object.create,Ph=function(){function e(){}return function(t){if(!at(t))return{};if(Bs)return Bs(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const kh=Ph;function la(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Nh(){}function Bh(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Ih=800,Mh=16,Fh=Date.now;function Lh(e){var t=0,r=0;return function(){var n=Fh(),i=Mh-(n-r);if(r=n,i>0){if(++t>=Ih)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Vh(e){return function(){return e}}var Hh=function(){try{var e=he(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();const Ur=Hh;var Uh=Ur?function(e,t){return Ur(e,"toString",{configurable:!0,enumerable:!1,value:Vh(t),writable:!0})}:Ci;const zh=Uh;var qh=Lh(zh);const Kh=qh;function Jh(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var Wh=9007199254740991,Yh=/^(?:0|[1-9]\d*)$/;function nn(e,t){var r=typeof e;return t=t!=null?t:Wh,!!t&&(r=="number"||r!="symbol"&&Yh.test(e))&&e>-1&&e%1==0&&e<t}function sn(e,t,r){t=="__proto__"&&Ur?Ur(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Be(e,t){return e===t||e!==e&&t!==t}var Gh=Object.prototype,Zh=Gh.hasOwnProperty;function Pi(e,t,r){var n=e[t];(!(Zh.call(e,t)&&Be(n,r))||r===void 0&&!(t in e))&&sn(e,t,r)}function ha(e,t,r,n){var i=!r;r||(r={});for(var s=-1,o=t.length;++s<o;){var a=t[s],u=n?n(r[a],e[a],a,r,e):void 0;u===void 0&&(u=e[a]),i?sn(r,a,u):Pi(r,a,u)}return r}var Is=Math.max;function Qh(e,t,r){return t=Is(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,s=Is(n.length-t,0),o=Array(s);++i<s;)o[i]=n[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=n[i];return a[t]=r(o),la(e,this,a)}}function fa(e,t){return Kh(Qh(e,t,Ci),e+"")}var Xh=9007199254740991;function ki(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Xh}function lr(e){return e!=null&&ki(e.length)&&!ae(e)}function pa(e,t,r){if(!at(r))return!1;var n=typeof t;return(n=="number"?lr(r)&&nn(t,r.length):n=="string"&&t in r)?Be(r[t],e):!1}function da(e){return fa(function(t,r){var n=-1,i=r.length,s=i>1?r[i-1]:void 0,o=i>2?r[2]:void 0;for(s=e.length>3&&typeof s=="function"?(i--,s):void 0,o&&pa(r[0],r[1],o)&&(s=i<3?void 0:s,i=1),t=Object(t);++n<i;){var a=r[n];a&&e(t,a,n,s)}return t})}var tf=Object.prototype;function Ni(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||tf;return e===r}function ef(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var rf="[object Arguments]";function Ms(e){return ot(e)&&Et(e)==rf}var ma=Object.prototype,nf=ma.hasOwnProperty,sf=ma.propertyIsEnumerable,of=Ms(function(){return arguments}())?Ms:function(e){return ot(e)&&nf.call(e,"callee")&&!sf.call(e,"callee")};const zr=of;function af(){return!1}var ga=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Fs=ga&&typeof module=="object"&&module&&!module.nodeType&&module,cf=Fs&&Fs.exports===ga,Ls=cf?At.Buffer:void 0,uf=Ls?Ls.isBuffer:void 0,lf=uf||af;const De=lf;var hf="[object Arguments]",ff="[object Array]",pf="[object Boolean]",df="[object Date]",mf="[object Error]",gf="[object Function]",vf="[object Map]",yf="[object Number]",bf="[object Object]",_f="[object RegExp]",wf="[object Set]",Ef="[object String]",Sf="[object WeakMap]",xf="[object ArrayBuffer]",Tf="[object DataView]",$f="[object Float32Array]",Of="[object Float64Array]",Af="[object Int8Array]",jf="[object Int16Array]",Rf="[object Int32Array]",Df="[object Uint8Array]",Cf="[object Uint8ClampedArray]",Pf="[object Uint16Array]",kf="[object Uint32Array]",X={};X[$f]=X[Of]=X[Af]=X[jf]=X[Rf]=X[Df]=X[Cf]=X[Pf]=X[kf]=!0,X[hf]=X[ff]=X[xf]=X[pf]=X[Tf]=X[df]=X[mf]=X[gf]=X[vf]=X[yf]=X[bf]=X[_f]=X[wf]=X[Ef]=X[Sf]=!1;function Nf(e){return ot(e)&&ki(e.length)&&!!X[Et(e)]}function hr(e){return function(t){return e(t)}}var va=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ze=va&&typeof module=="object"&&module&&!module.nodeType&&module,Bf=Ze&&Ze.exports===va,Rn=Bf&&oa.process,If=function(){try{var e=Ze&&Ze.require&&Ze.require("util").types;return e||Rn&&Rn.binding&&Rn.binding("util")}catch(t){}}();const Pt=If;var Vs=Pt&&Pt.isTypedArray,Mf=Vs?hr(Vs):Nf;const Bi=Mf;var Ff=Object.prototype,Lf=Ff.hasOwnProperty;function ya(e,t){var r=pt(e),n=!r&&zr(e),i=!r&&!n&&De(e),s=!r&&!n&&!i&&Bi(e),o=r||n||i||s,a=o?ef(e.length,String):[],u=a.length;for(var c in e)(t||Lf.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||nn(c,u)))&&a.push(c);return a}function ba(e,t){return function(r){return e(t(r))}}var Vf=ba(Object.keys,Object);const Hf=Vf;var Uf=Object.prototype,zf=Uf.hasOwnProperty;function qf(e){if(!Ni(e))return Hf(e);var t=[];for(var r in Object(e))zf.call(e,r)&&r!="constructor"&&t.push(r);return t}function on(e){return lr(e)?ya(e):qf(e)}function Kf(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Jf=Object.prototype,Wf=Jf.hasOwnProperty;function Yf(e){if(!at(e))return Kf(e);var t=Ni(e),r=[];for(var n in e)n=="constructor"&&(t||!Wf.call(e,n))||r.push(n);return r}function Ii(e){return lr(e)?ya(e,!0):Yf(e)}var Gf=da(function(e,t,r,n){ha(t,Ii(t),e,n)});const Hs=Gf;var Zf=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Qf=/^\w*$/;function Mi(e,t){if(pt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||ur(e)?!0:Qf.test(e)||!Zf.test(e)||t!=null&&e in Object(t)}var Xf=he(Object,"create");const rr=Xf;function tp(){this.__data__=rr?rr(null):{},this.size=0}function ep(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var rp="__lodash_hash_undefined__",np=Object.prototype,ip=np.hasOwnProperty;function sp(e){var t=this.__data__;if(rr){var r=t[e];return r===rp?void 0:r}return ip.call(t,e)?t[e]:void 0}var op=Object.prototype,ap=op.hasOwnProperty;function cp(e){var t=this.__data__;return rr?t[e]!==void 0:ap.call(t,e)}var up="__lodash_hash_undefined__";function lp(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=rr&&t===void 0?up:t,this}function Xt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Xt.prototype.clear=tp,Xt.prototype.delete=ep,Xt.prototype.get=sp,Xt.prototype.has=cp,Xt.prototype.set=lp;function hp(){this.__data__=[],this.size=0}function an(e,t){for(var r=e.length;r--;)if(Be(e[r][0],t))return r;return-1}var fp=Array.prototype,pp=fp.splice;function dp(e){var t=this.__data__,r=an(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():pp.call(t,r,1),--this.size,!0}function mp(e){var t=this.__data__,r=an(t,e);return r<0?void 0:t[r][1]}function gp(e){return an(this.__data__,e)>-1}function vp(e,t){var r=this.__data__,n=an(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function It(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}It.prototype.clear=hp,It.prototype.delete=dp,It.prototype.get=mp,It.prototype.has=gp,It.prototype.set=vp;var yp=he(At,"Map");const nr=yp;function bp(){this.size=0,this.__data__={hash:new Xt,map:new(nr||It),string:new Xt}}function _p(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function cn(e,t){var r=e.__data__;return _p(t)?r[typeof t=="string"?"string":"hash"]:r.map}function wp(e){var t=cn(this,e).delete(e);return this.size-=t?1:0,t}function Ep(e){return cn(this,e).get(e)}function Sp(e){return cn(this,e).has(e)}function xp(e,t){var r=cn(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Mt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Mt.prototype.clear=bp,Mt.prototype.delete=wp,Mt.prototype.get=Ep,Mt.prototype.has=Sp,Mt.prototype.set=xp;var Tp="Expected a function";function Fi(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Tp);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],s=r.cache;if(s.has(i))return s.get(i);var o=e.apply(this,n);return r.cache=s.set(i,o)||s,o};return r.cache=new(Fi.Cache||Mt),r}Fi.Cache=Mt;var $p=500;function Op(e){var t=Fi(e,function(n){return r.size===$p&&r.clear(),n}),r=t.cache;return t}var Ap=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,jp=/\\(\\)?/g,Rp=Op(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Ap,function(r,n,i,s){t.push(i?s.replace(jp,"$1"):n||r)}),t});const Dp=Rp;function fe(e){return e==null?"":ua(e)}function Li(e,t){return pt(e)?e:Mi(e,t)?[e]:Dp(fe(e))}var Cp=1/0;function fr(e){if(typeof e=="string"||ur(e))return e;var t=e+"";return t=="0"&&1/e==-Cp?"-0":t}function _a(e,t){t=Li(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[fr(t[r++])];return r&&r==n?e:void 0}function wa(e,t,r){var n=e==null?void 0:_a(e,t);return n===void 0?r:n}function Pp(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var kp=ba(Object.getPrototypeOf,Object);const Ea=kp;var Np="[object Object]",Bp=Function.prototype,Ip=Object.prototype,Sa=Bp.toString,Mp=Ip.hasOwnProperty,Fp=Sa.call(Object);function Vi(e){if(!ot(e)||Et(e)!=Np)return!1;var t=Ea(e);if(t===null)return!0;var r=Mp.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Sa.call(r)==Fp}var Lp="[object DOMException]",Vp="[object Error]";function xa(e){if(!ot(e))return!1;var t=Et(e);return t==Vp||t==Lp||typeof e.message=="string"&&typeof e.name=="string"&&!Vi(e)}var Hp=fa(function(e,t){try{return la(e,void 0,t)}catch(r){return xa(r)?r:new Error(r)}});const Up=Hp;function zp(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var s=Array(i);++n<i;)s[n]=e[n+t];return s}function qp(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:zp(e,t,r)}var Kp="\\ud800-\\udfff",Jp="\\u0300-\\u036f",Wp="\\ufe20-\\ufe2f",Yp="\\u20d0-\\u20ff",Gp=Jp+Wp+Yp,Zp="\\ufe0e\\ufe0f",Qp="\\u200d",Xp=RegExp("["+Qp+Kp+Gp+Zp+"]");function Ta(e){return Xp.test(e)}function td(e){return e.split("")}var $a="\\ud800-\\udfff",ed="\\u0300-\\u036f",rd="\\ufe20-\\ufe2f",nd="\\u20d0-\\u20ff",id=ed+rd+nd,sd="\\ufe0e\\ufe0f",od="["+$a+"]",Qn="["+id+"]",Xn="\\ud83c[\\udffb-\\udfff]",ad="(?:"+Qn+"|"+Xn+")",Oa="[^"+$a+"]",Aa="(?:\\ud83c[\\udde6-\\uddff]){2}",ja="[\\ud800-\\udbff][\\udc00-\\udfff]",cd="\\u200d",Ra=ad+"?",Da="["+sd+"]?",ud="(?:"+cd+"(?:"+[Oa,Aa,ja].join("|")+")"+Da+Ra+")*",ld=Da+Ra+ud,hd="(?:"+[Oa+Qn+"?",Qn,Aa,ja,od].join("|")+")",fd=RegExp(Xn+"(?="+Xn+")|"+hd+ld,"g");function pd(e){return e.match(fd)||[]}function dd(e){return Ta(e)?pd(e):td(e)}function Ca(e){return function(t){t=fe(t);var r=Ta(t)?dd(t):void 0,n=r?r[0]:t.charAt(0),i=r?qp(r,1).join(""):t.slice(1);return n[e]()+i}}var md=Ca("toUpperCase");const un=md;function gd(e){return un(fe(e).toLowerCase())}function vd(e,t,r,n){var i=-1,s=e==null?0:e.length;for(n;++i<s;)r=t(r,e[i],i,e);return r}function Pa(e){return function(t){return e==null?void 0:e[t]}}var yd={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},bd=Pa(yd);const _d=bd;var wd=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ed="\\u0300-\\u036f",Sd="\\ufe20-\\ufe2f",xd="\\u20d0-\\u20ff",Td=Ed+Sd+xd,$d="["+Td+"]",Od=RegExp($d,"g");function Ad(e){return e=fe(e),e&&e.replace(wd,_d).replace(Od,"")}var jd=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Rd(e){return e.match(jd)||[]}var Dd=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Cd(e){return Dd.test(e)}var ka="\\ud800-\\udfff",Pd="\\u0300-\\u036f",kd="\\ufe20-\\ufe2f",Nd="\\u20d0-\\u20ff",Bd=Pd+kd+Nd,Na="\\u2700-\\u27bf",Ba="a-z\\xdf-\\xf6\\xf8-\\xff",Id="\\xac\\xb1\\xd7\\xf7",Md="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Fd="\\u2000-\\u206f",Ld=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ia="A-Z\\xc0-\\xd6\\xd8-\\xde",Vd="\\ufe0e\\ufe0f",Ma=Id+Md+Fd+Ld,Fa="['’]",Us="["+Ma+"]",Hd="["+Bd+"]",La="\\d+",Ud="["+Na+"]",Va="["+Ba+"]",Ha="[^"+ka+Ma+La+Na+Ba+Ia+"]",zd="\\ud83c[\\udffb-\\udfff]",qd="(?:"+Hd+"|"+zd+")",Kd="[^"+ka+"]",Ua="(?:\\ud83c[\\udde6-\\uddff]){2}",za="[\\ud800-\\udbff][\\udc00-\\udfff]",_e="["+Ia+"]",Jd="\\u200d",zs="(?:"+Va+"|"+Ha+")",Wd="(?:"+_e+"|"+Ha+")",qs="(?:"+Fa+"(?:d|ll|m|re|s|t|ve))?",Ks="(?:"+Fa+"(?:D|LL|M|RE|S|T|VE))?",qa=qd+"?",Ka="["+Vd+"]?",Yd="(?:"+Jd+"(?:"+[Kd,Ua,za].join("|")+")"+Ka+qa+")*",Gd="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Zd="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Qd=Ka+qa+Yd,Xd="(?:"+[Ud,Ua,za].join("|")+")"+Qd,tm=RegExp([_e+"?"+Va+"+"+qs+"(?="+[Us,_e,"$"].join("|")+")",Wd+"+"+Ks+"(?="+[Us,_e+zs,"$"].join("|")+")",_e+"?"+zs+"+"+qs,_e+"+"+Ks,Zd,Gd,La,Xd].join("|"),"g");function em(e){return e.match(tm)||[]}function rm(e,t,r){return e=fe(e),t=t,t===void 0?Cd(e)?em(e):Rd(e):e.match(t)||[]}var nm="['’]",im=RegExp(nm,"g");function Hi(e){return function(t){return vd(rm(Ad(t).replace(im,"")),e,"")}}var sm=Hi(function(e,t,r){return t=t.toLowerCase(),e+(r?gd(t):t)});const Nt=sm;function om(){this.__data__=new It,this.size=0}function am(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function cm(e){return this.__data__.get(e)}function um(e){return this.__data__.has(e)}var lm=200;function hm(e,t){var r=this.__data__;if(r instanceof It){var n=r.__data__;if(!nr||n.length<lm-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Mt(n)}return r.set(e,t),this.size=r.size,this}function Ot(e){var t=this.__data__=new It(e);this.size=t.size}Ot.prototype.clear=om,Ot.prototype.delete=am,Ot.prototype.get=cm,Ot.prototype.has=um,Ot.prototype.set=hm;var Ja=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Js=Ja&&typeof module=="object"&&module&&!module.nodeType&&module,fm=Js&&Js.exports===Ja,Ws=fm?At.Buffer:void 0,Ys=Ws?Ws.allocUnsafe:void 0;function Wa(e,t){if(t)return e.slice();var r=e.length,n=Ys?Ys(r):new e.constructor(r);return e.copy(n),n}function pm(e,t){for(var r=-1,n=e==null?0:e.length,i=0,s=[];++r<n;){var o=e[r];t(o,r,e)&&(s[i++]=o)}return s}function dm(){return[]}var mm=Object.prototype,gm=mm.propertyIsEnumerable,Gs=Object.getOwnPropertySymbols,vm=Gs?function(e){return e==null?[]:(e=Object(e),pm(Gs(e),function(t){return gm.call(e,t)}))}:dm;const ym=vm;function bm(e,t,r){var n=t(e);return pt(e)?n:Pp(n,r(e))}function ti(e){return bm(e,on,ym)}var _m=he(At,"DataView");const ei=_m;var wm=he(At,"Promise");const ri=wm;var Em=he(At,"Set");const ni=Em;var Zs="[object Map]",Sm="[object Object]",Qs="[object Promise]",Xs="[object Set]",to="[object WeakMap]",eo="[object DataView]",xm=le(ei),Tm=le(nr),$m=le(ri),Om=le(ni),Am=le(Zn),Qt=Et;(ei&&Qt(new ei(new ArrayBuffer(1)))!=eo||nr&&Qt(new nr)!=Zs||ri&&Qt(ri.resolve())!=Qs||ni&&Qt(new ni)!=Xs||Zn&&Qt(new Zn)!=to)&&(Qt=function(e){var t=Et(e),r=t==Sm?e.constructor:void 0,n=r?le(r):"";if(n)switch(n){case xm:return eo;case Tm:return Zs;case $m:return Qs;case Om:return Xs;case Am:return to}return t});const ir=Qt;var jm=Object.prototype,Rm=jm.hasOwnProperty;function Dm(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&Rm.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Cm=At.Uint8Array;const qr=Cm;function Ui(e){var t=new e.constructor(e.byteLength);return new qr(t).set(new qr(e)),t}function Pm(e,t){var r=Ui(e.buffer);return new e.constructor(r,e.byteOffset,e.byteLength)}var km=/\w*$/;function Nm(e){var t=new e.constructor(e.source,km.exec(e));return t.lastIndex=e.lastIndex,t}var ro=Ct?Ct.prototype:void 0,no=ro?ro.valueOf:void 0;function Bm(e){return no?Object(no.call(e)):{}}function Ya(e,t){var r=t?Ui(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var Im="[object Boolean]",Mm="[object Date]",Fm="[object Map]",Lm="[object Number]",Vm="[object RegExp]",Hm="[object Set]",Um="[object String]",zm="[object Symbol]",qm="[object ArrayBuffer]",Km="[object DataView]",Jm="[object Float32Array]",Wm="[object Float64Array]",Ym="[object Int8Array]",Gm="[object Int16Array]",Zm="[object Int32Array]",Qm="[object Uint8Array]",Xm="[object Uint8ClampedArray]",tg="[object Uint16Array]",eg="[object Uint32Array]";function rg(e,t,r){var n=e.constructor;switch(t){case qm:return Ui(e);case Im:case Mm:return new n(+e);case Km:return Pm(e);case Jm:case Wm:case Ym:case Gm:case Zm:case Qm:case Xm:case tg:case eg:return Ya(e,r);case Fm:return new n;case Lm:case Um:return new n(e);case Vm:return Nm(e);case Hm:return new n;case zm:return Bm(e)}}function Ga(e){return typeof e.constructor=="function"&&!Ni(e)?kh(Ea(e)):{}}var ng="[object Map]";function ig(e){return ot(e)&&ir(e)==ng}var io=Pt&&Pt.isMap,sg=io?hr(io):ig;const og=sg;var ag="[object Set]";function cg(e){return ot(e)&&ir(e)==ag}var so=Pt&&Pt.isSet,ug=so?hr(so):cg;const lg=ug;var hg=1,Za="[object Arguments]",fg="[object Array]",pg="[object Boolean]",dg="[object Date]",mg="[object Error]",Qa="[object Function]",gg="[object GeneratorFunction]",vg="[object Map]",yg="[object Number]",Xa="[object Object]",bg="[object RegExp]",_g="[object Set]",wg="[object String]",Eg="[object Symbol]",Sg="[object WeakMap]",xg="[object ArrayBuffer]",Tg="[object DataView]",$g="[object Float32Array]",Og="[object Float64Array]",Ag="[object Int8Array]",jg="[object Int16Array]",Rg="[object Int32Array]",Dg="[object Uint8Array]",Cg="[object Uint8ClampedArray]",Pg="[object Uint16Array]",kg="[object Uint32Array]",Q={};Q[Za]=Q[fg]=Q[xg]=Q[Tg]=Q[pg]=Q[dg]=Q[$g]=Q[Og]=Q[Ag]=Q[jg]=Q[Rg]=Q[vg]=Q[yg]=Q[Xa]=Q[bg]=Q[_g]=Q[wg]=Q[Eg]=Q[Dg]=Q[Cg]=Q[Pg]=Q[kg]=!0,Q[mg]=Q[Qa]=Q[Sg]=!1;function Rr(e,t,r,n,i,s){var o,a=t&hg;if(o!==void 0)return o;if(!at(e))return e;var u=pt(e);if(u)o=Dm(e);else{var c=ir(e),l=c==Qa||c==gg;if(De(e))return Wa(e,a);if(c==Xa||c==Za||l&&!i)o=l?{}:Ga(e);else{if(!Q[c])return i?e:{};o=rg(e,c,a)}}s||(s=new Ot);var h=s.get(e);if(h)return h;s.set(e,o),lg(e)?e.forEach(function(d){o.add(Rr(d,t,r,d,e,s))}):og(e)&&e.forEach(function(d,m){o.set(m,Rr(d,t,r,m,e,s))});var f=ti,p=u?void 0:f(e);return Jh(p||e,function(d,m){p&&(m=d,d=e[m]),Pi(o,m,Rr(d,t,r,m,e,s))}),o}var Ng=1,Bg=4;function sr(e){return Rr(e,Ng|Bg)}var Ig="__lodash_hash_undefined__";function Mg(e){return this.__data__.set(e,Ig),this}function Fg(e){return this.__data__.has(e)}function Dr(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Mt;++t<r;)this.add(e[t])}Dr.prototype.add=Dr.prototype.push=Mg,Dr.prototype.has=Fg;function Lg(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function Vg(e,t){return e.has(t)}var Hg=1,Ug=2;function tc(e,t,r,n,i,s){var o=r&Hg,a=e.length,u=t.length;if(a!=u&&!(o&&u>a))return!1;var c=s.get(e),l=s.get(t);if(c&&l)return c==t&&l==e;var h=-1,f=!0,p=r&Ug?new Dr:void 0;for(s.set(e,t),s.set(t,e);++h<a;){var d=e[h],m=t[h];if(n)var b=o?n(m,d,h,t,e,s):n(d,m,h,e,t,s);if(b!==void 0){if(b)continue;f=!1;break}if(p){if(!Lg(t,function(E,g){if(!Vg(p,g)&&(d===E||i(d,E,r,n,s)))return p.push(g)})){f=!1;break}}else if(!(d===m||i(d,m,r,n,s))){f=!1;break}}return s.delete(e),s.delete(t),f}function zg(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function qg(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Kg=1,Jg=2,Wg="[object Boolean]",Yg="[object Date]",Gg="[object Error]",Zg="[object Map]",Qg="[object Number]",Xg="[object RegExp]",t1="[object Set]",e1="[object String]",r1="[object Symbol]",n1="[object ArrayBuffer]",i1="[object DataView]",oo=Ct?Ct.prototype:void 0,Dn=oo?oo.valueOf:void 0;function s1(e,t,r,n,i,s,o){switch(r){case i1:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case n1:return!(e.byteLength!=t.byteLength||!s(new qr(e),new qr(t)));case Wg:case Yg:case Qg:return Be(+e,+t);case Gg:return e.name==t.name&&e.message==t.message;case Xg:case e1:return e==t+"";case Zg:var a=zg;case t1:var u=n&Kg;if(a||(a=qg),e.size!=t.size&&!u)return!1;var c=o.get(e);if(c)return c==t;n|=Jg,o.set(e,t);var l=tc(a(e),a(t),n,i,s,o);return o.delete(e),l;case r1:if(Dn)return Dn.call(e)==Dn.call(t)}return!1}var o1=1,a1=Object.prototype,c1=a1.hasOwnProperty;function u1(e,t,r,n,i,s){var o=r&o1,a=ti(e),u=a.length,c=ti(t),l=c.length;if(u!=l&&!o)return!1;for(var h=u;h--;){var f=a[h];if(!(o?f in t:c1.call(t,f)))return!1}var p=s.get(e),d=s.get(t);if(p&&d)return p==t&&d==e;var m=!0;s.set(e,t),s.set(t,e);for(var b=o;++h<u;){f=a[h];var E=e[f],g=t[f];if(n)var y=o?n(g,E,f,t,e,s):n(E,g,f,e,t,s);if(!(y===void 0?E===g||i(E,g,r,n,s):y)){m=!1;break}b||(b=f=="constructor")}if(m&&!b){var _=e.constructor,S=t.constructor;_!=S&&"constructor"in e&&"constructor"in t&&!(typeof _=="function"&&_ instanceof _&&typeof S=="function"&&S instanceof S)&&(m=!1)}return s.delete(e),s.delete(t),m}var l1=1,ao="[object Arguments]",co="[object Array]",br="[object Object]",h1=Object.prototype,uo=h1.hasOwnProperty;function f1(e,t,r,n,i,s){var o=pt(e),a=pt(t),u=o?co:ir(e),c=a?co:ir(t);u=u==ao?br:u,c=c==ao?br:c;var l=u==br,h=c==br,f=u==c;if(f&&De(e)){if(!De(t))return!1;o=!0,l=!1}if(f&&!l)return s||(s=new Ot),o||Bi(e)?tc(e,t,r,n,i,s):s1(e,t,u,r,n,i,s);if(!(r&l1)){var p=l&&uo.call(e,"__wrapped__"),d=h&&uo.call(t,"__wrapped__");if(p||d){var m=p?e.value():e,b=d?t.value():t;return s||(s=new Ot),i(m,b,r,n,s)}}return f?(s||(s=new Ot),u1(e,t,r,n,i,s)):!1}function ln(e,t,r,n,i){return e===t?!0:e==null||t==null||!ot(e)&&!ot(t)?e!==e&&t!==t:f1(e,t,r,n,ln,i)}var p1=1,d1=2;function m1(e,t,r,n){var i=r.length,s=i;if(e==null)return!s;for(e=Object(e);i--;){var o=r[i];if(o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++i<s;){o=r[i];var a=o[0],u=e[a],c=o[1];if(o[2]){if(u===void 0&&!(a in e))return!1}else{var l=new Ot,h;if(!(h===void 0?ln(c,u,p1|d1,n,l):h))return!1}}return!0}function ec(e){return e===e&&!at(e)}function g1(e){for(var t=on(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,ec(i)]}return t}function rc(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function v1(e){var t=g1(e);return t.length==1&&t[0][2]?rc(t[0][0],t[0][1]):function(r){return r===e||m1(r,e,t)}}function y1(e,t){return e!=null&&t in Object(e)}function b1(e,t,r){t=Li(t,e);for(var n=-1,i=t.length,s=!1;++n<i;){var o=fr(t[n]);if(!(s=e!=null&&r(e,o)))break;e=e[o]}return s||++n!=i?s:(i=e==null?0:e.length,!!i&&ki(i)&&nn(o,i)&&(pt(e)||zr(e)))}function _1(e,t){return e!=null&&b1(e,t,y1)}var w1=1,E1=2;function S1(e,t){return Mi(e)&&ec(t)?rc(fr(e),t):function(r){var n=wa(r,e);return n===void 0&&n===t?_1(r,e):ln(t,n,w1|E1)}}function x1(e){return function(t){return t==null?void 0:t[e]}}function T1(e){return function(t){return _a(t,e)}}function $1(e){return Mi(e)?x1(fr(e)):T1(e)}function O1(e){return typeof e=="function"?e:e==null?Ci:typeof e=="object"?pt(e)?S1(e[0],e[1]):v1(e):$1(e)}function A1(e,t,r,n){for(var i=-1,s=e==null?0:e.length;++i<s;){var o=e[i];t(n,o,r(o),e)}return n}function j1(e){return function(t,r,n){for(var i=-1,s=Object(t),o=n(t),a=o.length;a--;){var u=o[++i];if(r(s[u],u,s)===!1)break}return t}}var R1=j1();const nc=R1;function D1(e,t){return e&&nc(e,t,on)}function C1(e,t){return function(r,n){if(r==null)return r;if(!lr(r))return e(r,n);for(var i=r.length,s=-1,o=Object(r);++s<i&&n(o[s],s,o)!==!1;);return r}}var P1=C1(D1);const k1=P1;function N1(e,t,r,n){return k1(e,function(i,s,o){t(n,i,r(i),o)}),n}function B1(e,t){return function(r,n){var i=pt(r)?A1:N1,s={};return i(r,e,O1(n),s)}}var I1=function(){return At.Date.now()};const Cn=I1;var M1="Expected a function",F1=Math.max,L1=Math.min;function zi(e,t,r){var n,i,s,o,a,u,c=0,l=!1,h=!1,f=!0;if(typeof e!="function")throw new TypeError(M1);t=ks(t)||0,at(r)&&(l=!!r.leading,h="maxWait"in r,s=h?F1(ks(r.maxWait)||0,t):s,f="trailing"in r?!!r.trailing:f);function p(v){var x=n,O=i;return n=i=void 0,c=v,o=e.apply(O,x),o}function d(v){return c=v,a=setTimeout(E,t),l?p(v):o}function m(v){var x=v-u,O=v-c,V=t-x;return h?L1(V,s-O):V}function b(v){var x=v-u,O=v-c;return u===void 0||x>=t||x<0||h&&O>=s}function E(){var v=Cn();if(b(v))return g(v);a=setTimeout(E,m(v))}function g(v){return a=void 0,f&&n?p(v):(n=i=void 0,o)}function y(){a!==void 0&&clearTimeout(a),c=0,n=u=i=a=void 0}function _(){return a===void 0?o:g(Cn())}function S(){var v=Cn(),x=b(v);if(n=arguments,i=this,u=v,x){if(a===void 0)return d(u);if(h)return clearTimeout(a),a=setTimeout(E,t),p(u)}return a===void 0&&(a=setTimeout(E,t)),o}return S.cancel=y,S.flush=_,S}function ii(e,t,r){(r!==void 0&&!Be(e[t],r)||r===void 0&&!(t in e))&&sn(e,t,r)}function V1(e){return ot(e)&&lr(e)}function si(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function H1(e){return ha(e,Ii(e))}function U1(e,t,r,n,i,s,o){var a=si(e,r),u=si(t,r),c=o.get(u);if(c){ii(e,r,c);return}var l=s?s(a,u,r+"",e,t,o):void 0,h=l===void 0;if(h){var f=pt(u),p=!f&&De(u),d=!f&&!p&&Bi(u);l=u,f||p||d?pt(a)?l=a:V1(a)?l=Bh(a):p?(h=!1,l=Wa(u,!0)):d?(h=!1,l=Ya(u,!0)):l=[]:Vi(u)||zr(u)?(l=a,zr(a)?l=H1(a):(!at(a)||ae(a))&&(l=Ga(u))):h=!1}h&&(o.set(u,l),i(l,u,n,s,o),o.delete(u)),ii(e,r,l)}function ic(e,t,r,n,i){e!==t&&nc(t,function(s,o){if(i||(i=new Ot),at(s))U1(e,t,o,r,ic,n,i);else{var a=n?n(si(e,o),s,o+"",e,t,i):void 0;a===void 0&&(a=s),ii(e,o,a)}},Ii)}var z1={"&":"&","<":"<",">":">",'"':""","'":"'"},q1=Pa(z1);const K1=q1;var sc=/[&<>"']/g,J1=RegExp(sc.source);function W1(e){return e=fe(e),e&&J1.test(e)?e.replace(sc,K1):e}var Y1=Object.prototype,G1=Y1.hasOwnProperty,Z1=B1(function(e,t,r){G1.call(e,r)?e[r].push(t):sn(e,r,[t])});const oc=Z1;var Q1="[object String]";function bt(e){return typeof e=="string"||!pt(e)&&ot(e)&&Et(e)==Q1}function X1(e,t){return ca(t,function(r){return e[r]})}var t0="[object ArrayBuffer]";function e0(e){return ot(e)&&Et(e)==t0}var lo=Pt&&Pt.isArrayBuffer,r0=lo?hr(lo):e0;const n0=r0;var i0="[object Boolean]";function s0(e){return e===!0||e===!1||ot(e)&&Et(e)==i0}var o0="[object Date]";function a0(e){return ot(e)&&Et(e)==o0}var ho=Pt&&Pt.isDate,c0=ho?hr(ho):a0;const u0=c0;function l0(e,t){return ln(e,t)}var h0="[object Number]";function ac(e){return typeof e=="number"||ot(e)&&Et(e)==h0}function f0(e){return ac(e)&&e!=+e}function p0(e){return e===null}function d0(e){return e===void 0}var m0=Hi(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()});const g0=m0;var v0=Ca("toLowerCase");const y0=v0;var b0=da(function(e,t,r){ic(e,t,r)});const Dt=b0;function _0(e,t,r,n){if(!at(e))return e;t=Li(t,e);for(var i=-1,s=t.length,o=s-1,a=e;a!=null&&++i<s;){var u=fr(t[i]),c=r;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(i!=o){var l=a[u];c=void 0,c===void 0&&(c=at(l)?l:nn(t[i+1])?[]:{})}Pi(a,u,c),a=a[u]}return e}function w0(e,t,r){return e==null?e:_0(e,t,r)}var E0=Hi(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});const S0=E0;var cc=Object.prototype,x0=cc.hasOwnProperty;function fo(e,t,r,n){return e===void 0||Be(e,cc[r])&&!x0.call(n,r)?t:e}var T0={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function $0(e){return"\\"+T0[e]}var O0=/<%=([\s\S]+?)%>/g;const uc=O0;var A0=/<%-([\s\S]+?)%>/g;const j0=A0;var R0=/<%([\s\S]+?)%>/g;const D0=R0;var C0={escape:j0,evaluate:D0,interpolate:uc,variable:"",imports:{_:{escape:W1}}};const po=C0;var P0="Invalid `variable` option passed into `_.template`",k0=/\b__p \+= '';/g,N0=/\b(__p \+=) '' \+/g,B0=/(__e\(.*?\)|\b__t\)) \+\n'';/g,I0=/[()=,{}\[\]\/\s]/,M0=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_r=/($^)/,F0=/['\n\r\u2028\u2029\\]/g,L0=Object.prototype,mo=L0.hasOwnProperty;function lc(e,t,r){var n=po.imports._.templateSettings||po;r&&pa(e,t,r)&&(t=void 0),e=fe(e),t=Hs({},t,n,fo);var i=Hs({},t.imports,n.imports,fo),s=on(i),o=X1(i,s),a,u,c=0,l=t.interpolate||_r,h="__p += '",f=RegExp((t.escape||_r).source+"|"+l.source+"|"+(l===uc?M0:_r).source+"|"+(t.evaluate||_r).source+"|$","g"),p=mo.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-cQzjg-b9.js","./vue-router-CBK9GHjZ.js","./vue-Dzbx66BV.js","./element-plus-atKQmRsE.js","./lodash-es-D0ldFxdg.js","./@vueuse-BwkL59YI.js","./@element-plus-icons-vue-BM7nPgXL.js","./shared-BAqo0W56.js","./dayjs-DO-COJPZ.js","./element-plus-oK66jojF.css","./vxe-l3jZ90Gb.js","./vxe-BAb1d5vW.css","./extension-n9Xhh9I6.js","./monaco-editor-Lba3v2gb.js","./monaco-editor-Cpw7ccEV.css","./html2canvas-CIV5arX1.js","./mockjs-BiYWQEnZ.js","./extension-R1YTJeE6.css","./_plugin-vue_export-helper-DlAUqK2U.js","./index-DmXmiv30.css","./preview-B0hdUTvJ.js","./page-CAzOTY4_.js","./auth-ChUE4eDn.js","./auth-rAe8S_7e.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
var Sl=Object.defineProperty,xl=Object.defineProperties;var Tl=Object.getOwnPropertyDescriptors;var vr=Object.getOwnPropertySymbols;var xs=Object.prototype.hasOwnProperty,Ts=Object.prototype.propertyIsEnumerable;var de=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),$l=e=>{throw TypeError(e)};var xn=(e,t,r)=>t in e?Sl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,z=(e,t)=>{for(var r in t||(t={}))xs.call(t,r)&&xn(e,r,t[r]);if(vr)for(var r of vr(t))Ts.call(t,r)&&xn(e,r,t[r]);return e},ct=(e,t)=>xl(e,Tl(t));var Tn=(e,t)=>{var r={};for(var n in e)xs.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&vr)for(var n of vr(e))t.indexOf(n)<0&&Ts.call(e,n)&&(r[n]=e[n]);return r};var j=(e,t,r)=>xn(e,typeof t!="symbol"?t+"":t,r);var L=(e,t,r)=>new Promise((n,i)=>{var s=u=>{try{a(r.next(u))}catch(c){i(c)}},o=u=>{try{a(r.throw(u))}catch(c){i(c)}},a=u=>u.done?n(u.value):Promise.resolve(u.value).then(s,o);a((r=r.apply(e,t)).next())}),Gt=function(e,t){this[0]=e,this[1]=t},$n=(e,t,r)=>{var n=(o,a,u,c)=>{try{var l=r[o](a),h=(a=l.value)instanceof Gt,f=l.done;Promise.resolve(h?a[0]:a).then(p=>h?n(o==="return"?o:"next",a[1]?{done:p.done,value:p.value}:p,u,c):u({value:p,done:f})).catch(p=>n("throw",p,u,c))}catch(p){c(p)}},i=o=>s[o]=a=>new Promise((u,c)=>n(o,a,u,c)),s={};return r=r.apply(e,t),s[de("asyncIterator")]=()=>s,i("next"),i("throw"),i("return"),s},On=e=>{var t=e[de("asyncIterator")],r=!1,n,i={};return t==null?(t=e[de("iterator")](),n=s=>i[s]=o=>t[s](o)):(t=t.call(e),n=s=>i[s]=o=>{if(r){if(r=!1,s==="throw")throw o;return o}return r=!0,{done:!1,value:new Gt(new Promise(a=>{var u=t[s](o);u instanceof Object||$l("Object expected"),a(u)}),1)}}),i[de("iterator")]=()=>i,n("next"),"throw"in t?n("throw"):i.throw=s=>{throw s},"return"in t&&n("return"),i},$s=(e,t,r)=>(t=e[de("asyncIterator")])?t.call(e):(e=e[de("iterator")](),t={},r=(n,i)=>(i=e[n])&&(t[n]=s=>new Promise((o,a,u)=>(s=i.call(e,s),u=s.done,Promise.resolve(s.value).then(c=>o({value:c,done:u}),a)))),r("next"),r("return"),t);import{ax as Os,ay as tn,d as en,e as er,ag as Wn,q as ea,f as ra,o as Yn,c as Ol,a as me,Q as An,w as Al,m as jl,r as Rl,j as Dl,Y as Cl,k as na,g as Pl,b as kl,u as Gn,h as ia,i as Nl,ah as Bl,J as As,K as js,az as Il,S as Ml,au as Fl}from"./vue-Dzbx66BV.js";import{t as oe}from"./mockjs-BiYWQEnZ.js";import{useRoute as sa,createRouter as Ll,createWebHashHistory as Vl}from"./vue-router-CBK9GHjZ.js";import{E as rn,a as Hl,z as Ul,b as zl}from"./element-plus-atKQmRsE.js";import{_ as yr}from"./monaco-editor-Lba3v2gb.js";import"./dayjs-DO-COJPZ.js";import"./lodash-es-D0ldFxdg.js";import"./@vueuse-BwkL59YI.js";import"./@element-plus-icons-vue-BM7nPgXL.js";import"./shared-BAqo0W56.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(i){if(i.ep)return;i.ep=!0;const s=r(i);fetch(i.href,s)}})();var ql={ENV_TYPE:"live",NODE_ENV:"production"},Kl=typeof global=="object"&&global&&global.Object===Object&&global;const oa=Kl;var Jl=typeof self=="object"&&self&&self.Object===Object&&self,Wl=oa||Jl||Function("return this")();const At=Wl;var Yl=At.Symbol;const Ct=Yl;var aa=Object.prototype,Gl=aa.hasOwnProperty,Zl=aa.toString,Ue=Ct?Ct.toStringTag:void 0;function Ql(e){var t=Gl.call(e,Ue),r=e[Ue];try{e[Ue]=void 0;var n=!0}catch(s){}var i=Zl.call(e);return n&&(t?e[Ue]=r:delete e[Ue]),i}var Xl=Object.prototype,th=Xl.toString;function eh(e){return th.call(e)}var rh="[object Null]",nh="[object Undefined]",Rs=Ct?Ct.toStringTag:void 0;function Et(e){return e==null?e===void 0?nh:rh:Rs&&Rs in Object(e)?Ql(e):eh(e)}function ot(e){return e!=null&&typeof e=="object"}var ih="[object Symbol]";function ur(e){return typeof e=="symbol"||ot(e)&&Et(e)==ih}function ca(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var sh=Array.isArray;const pt=sh;var oh=1/0,Ds=Ct?Ct.prototype:void 0,Cs=Ds?Ds.toString:void 0;function ua(e){if(typeof e=="string")return e;if(pt(e))return ca(e,ua)+"";if(ur(e))return Cs?Cs.call(e):"";var t=e+"";return t=="0"&&1/e==-oh?"-0":t}var ah=/\s/;function ch(e){for(var t=e.length;t--&&ah.test(e.charAt(t)););return t}var uh=/^\s+/;function lh(e){return e&&e.slice(0,ch(e)+1).replace(uh,"")}function at(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ps=NaN,hh=/^[-+]0x[0-9a-f]+$/i,fh=/^0b[01]+$/i,ph=/^0o[0-7]+$/i,dh=parseInt;function ks(e){if(typeof e=="number")return e;if(ur(e))return Ps;if(at(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=at(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=lh(e);var r=fh.test(e);return r||ph.test(e)?dh(e.slice(2),r?2:8):hh.test(e)?Ps:+e}function Ci(e){return e}var mh="[object AsyncFunction]",gh="[object Function]",vh="[object GeneratorFunction]",yh="[object Proxy]";function ae(e){if(!at(e))return!1;var t=Et(e);return t==gh||t==vh||t==mh||t==yh}var bh=At["__core-js_shared__"];const jn=bh;var Ns=function(){var e=/[^.]+$/.exec(jn&&jn.keys&&jn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function _h(e){return!!Ns&&Ns in e}var wh=Function.prototype,Eh=wh.toString;function le(e){if(e!=null){try{return Eh.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var Sh=/[\\^$.*+?()[\]{}|]/g,xh=/^\[object .+?Constructor\]$/,Th=Function.prototype,$h=Object.prototype,Oh=Th.toString,Ah=$h.hasOwnProperty,jh=RegExp("^"+Oh.call(Ah).replace(Sh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Rh(e){if(!at(e)||_h(e))return!1;var t=ae(e)?jh:xh;return t.test(le(e))}function Dh(e,t){return e==null?void 0:e[t]}function he(e,t){var r=Dh(e,t);return Rh(r)?r:void 0}var Ch=he(At,"WeakMap");const Zn=Ch;var Bs=Object.create,Ph=function(){function e(){}return function(t){if(!at(t))return{};if(Bs)return Bs(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const kh=Ph;function la(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Nh(){}function Bh(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Ih=800,Mh=16,Fh=Date.now;function Lh(e){var t=0,r=0;return function(){var n=Fh(),i=Mh-(n-r);if(r=n,i>0){if(++t>=Ih)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Vh(e){return function(){return e}}var Hh=function(){try{var e=he(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();const Ur=Hh;var Uh=Ur?function(e,t){return Ur(e,"toString",{configurable:!0,enumerable:!1,value:Vh(t),writable:!0})}:Ci;const zh=Uh;var qh=Lh(zh);const Kh=qh;function Jh(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var Wh=9007199254740991,Yh=/^(?:0|[1-9]\d*)$/;function nn(e,t){var r=typeof e;return t=t!=null?t:Wh,!!t&&(r=="number"||r!="symbol"&&Yh.test(e))&&e>-1&&e%1==0&&e<t}function sn(e,t,r){t=="__proto__"&&Ur?Ur(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Be(e,t){return e===t||e!==e&&t!==t}var Gh=Object.prototype,Zh=Gh.hasOwnProperty;function Pi(e,t,r){var n=e[t];(!(Zh.call(e,t)&&Be(n,r))||r===void 0&&!(t in e))&&sn(e,t,r)}function ha(e,t,r,n){var i=!r;r||(r={});for(var s=-1,o=t.length;++s<o;){var a=t[s],u=n?n(r[a],e[a],a,r,e):void 0;u===void 0&&(u=e[a]),i?sn(r,a,u):Pi(r,a,u)}return r}var Is=Math.max;function Qh(e,t,r){return t=Is(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,s=Is(n.length-t,0),o=Array(s);++i<s;)o[i]=n[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=n[i];return a[t]=r(o),la(e,this,a)}}function fa(e,t){return Kh(Qh(e,t,Ci),e+"")}var Xh=9007199254740991;function ki(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Xh}function lr(e){return e!=null&&ki(e.length)&&!ae(e)}function pa(e,t,r){if(!at(r))return!1;var n=typeof t;return(n=="number"?lr(r)&&nn(t,r.length):n=="string"&&t in r)?Be(r[t],e):!1}function da(e){return fa(function(t,r){var n=-1,i=r.length,s=i>1?r[i-1]:void 0,o=i>2?r[2]:void 0;for(s=e.length>3&&typeof s=="function"?(i--,s):void 0,o&&pa(r[0],r[1],o)&&(s=i<3?void 0:s,i=1),t=Object(t);++n<i;){var a=r[n];a&&e(t,a,n,s)}return t})}var tf=Object.prototype;function Ni(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||tf;return e===r}function ef(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var rf="[object Arguments]";function Ms(e){return ot(e)&&Et(e)==rf}var ma=Object.prototype,nf=ma.hasOwnProperty,sf=ma.propertyIsEnumerable,of=Ms(function(){return arguments}())?Ms:function(e){return ot(e)&&nf.call(e,"callee")&&!sf.call(e,"callee")};const zr=of;function af(){return!1}var ga=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Fs=ga&&typeof module=="object"&&module&&!module.nodeType&&module,cf=Fs&&Fs.exports===ga,Ls=cf?At.Buffer:void 0,uf=Ls?Ls.isBuffer:void 0,lf=uf||af;const De=lf;var hf="[object Arguments]",ff="[object Array]",pf="[object Boolean]",df="[object Date]",mf="[object Error]",gf="[object Function]",vf="[object Map]",yf="[object Number]",bf="[object Object]",_f="[object RegExp]",wf="[object Set]",Ef="[object String]",Sf="[object WeakMap]",xf="[object ArrayBuffer]",Tf="[object DataView]",$f="[object Float32Array]",Of="[object Float64Array]",Af="[object Int8Array]",jf="[object Int16Array]",Rf="[object Int32Array]",Df="[object Uint8Array]",Cf="[object Uint8ClampedArray]",Pf="[object Uint16Array]",kf="[object Uint32Array]",X={};X[$f]=X[Of]=X[Af]=X[jf]=X[Rf]=X[Df]=X[Cf]=X[Pf]=X[kf]=!0,X[hf]=X[ff]=X[xf]=X[pf]=X[Tf]=X[df]=X[mf]=X[gf]=X[vf]=X[yf]=X[bf]=X[_f]=X[wf]=X[Ef]=X[Sf]=!1;function Nf(e){return ot(e)&&ki(e.length)&&!!X[Et(e)]}function hr(e){return function(t){return e(t)}}var va=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ze=va&&typeof module=="object"&&module&&!module.nodeType&&module,Bf=Ze&&Ze.exports===va,Rn=Bf&&oa.process,If=function(){try{var e=Ze&&Ze.require&&Ze.require("util").types;return e||Rn&&Rn.binding&&Rn.binding("util")}catch(t){}}();const Pt=If;var Vs=Pt&&Pt.isTypedArray,Mf=Vs?hr(Vs):Nf;const Bi=Mf;var Ff=Object.prototype,Lf=Ff.hasOwnProperty;function ya(e,t){var r=pt(e),n=!r&&zr(e),i=!r&&!n&&De(e),s=!r&&!n&&!i&&Bi(e),o=r||n||i||s,a=o?ef(e.length,String):[],u=a.length;for(var c in e)(t||Lf.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||nn(c,u)))&&a.push(c);return a}function ba(e,t){return function(r){return e(t(r))}}var Vf=ba(Object.keys,Object);const Hf=Vf;var Uf=Object.prototype,zf=Uf.hasOwnProperty;function qf(e){if(!Ni(e))return Hf(e);var t=[];for(var r in Object(e))zf.call(e,r)&&r!="constructor"&&t.push(r);return t}function on(e){return lr(e)?ya(e):qf(e)}function Kf(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Jf=Object.prototype,Wf=Jf.hasOwnProperty;function Yf(e){if(!at(e))return Kf(e);var t=Ni(e),r=[];for(var n in e)n=="constructor"&&(t||!Wf.call(e,n))||r.push(n);return r}function Ii(e){return lr(e)?ya(e,!0):Yf(e)}var Gf=da(function(e,t,r,n){ha(t,Ii(t),e,n)});const Hs=Gf;var Zf=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Qf=/^\w*$/;function Mi(e,t){if(pt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||ur(e)?!0:Qf.test(e)||!Zf.test(e)||t!=null&&e in Object(t)}var Xf=he(Object,"create");const rr=Xf;function tp(){this.__data__=rr?rr(null):{},this.size=0}function ep(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var rp="__lodash_hash_undefined__",np=Object.prototype,ip=np.hasOwnProperty;function sp(e){var t=this.__data__;if(rr){var r=t[e];return r===rp?void 0:r}return ip.call(t,e)?t[e]:void 0}var op=Object.prototype,ap=op.hasOwnProperty;function cp(e){var t=this.__data__;return rr?t[e]!==void 0:ap.call(t,e)}var up="__lodash_hash_undefined__";function lp(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=rr&&t===void 0?up:t,this}function Xt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Xt.prototype.clear=tp,Xt.prototype.delete=ep,Xt.prototype.get=sp,Xt.prototype.has=cp,Xt.prototype.set=lp;function hp(){this.__data__=[],this.size=0}function an(e,t){for(var r=e.length;r--;)if(Be(e[r][0],t))return r;return-1}var fp=Array.prototype,pp=fp.splice;function dp(e){var t=this.__data__,r=an(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():pp.call(t,r,1),--this.size,!0}function mp(e){var t=this.__data__,r=an(t,e);return r<0?void 0:t[r][1]}function gp(e){return an(this.__data__,e)>-1}function vp(e,t){var r=this.__data__,n=an(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function It(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}It.prototype.clear=hp,It.prototype.delete=dp,It.prototype.get=mp,It.prototype.has=gp,It.prototype.set=vp;var yp=he(At,"Map");const nr=yp;function bp(){this.size=0,this.__data__={hash:new Xt,map:new(nr||It),string:new Xt}}function _p(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function cn(e,t){var r=e.__data__;return _p(t)?r[typeof t=="string"?"string":"hash"]:r.map}function wp(e){var t=cn(this,e).delete(e);return this.size-=t?1:0,t}function Ep(e){return cn(this,e).get(e)}function Sp(e){return cn(this,e).has(e)}function xp(e,t){var r=cn(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Mt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Mt.prototype.clear=bp,Mt.prototype.delete=wp,Mt.prototype.get=Ep,Mt.prototype.has=Sp,Mt.prototype.set=xp;var Tp="Expected a function";function Fi(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Tp);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],s=r.cache;if(s.has(i))return s.get(i);var o=e.apply(this,n);return r.cache=s.set(i,o)||s,o};return r.cache=new(Fi.Cache||Mt),r}Fi.Cache=Mt;var $p=500;function Op(e){var t=Fi(e,function(n){return r.size===$p&&r.clear(),n}),r=t.cache;return t}var Ap=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,jp=/\\(\\)?/g,Rp=Op(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Ap,function(r,n,i,s){t.push(i?s.replace(jp,"$1"):n||r)}),t});const Dp=Rp;function fe(e){return e==null?"":ua(e)}function Li(e,t){return pt(e)?e:Mi(e,t)?[e]:Dp(fe(e))}var Cp=1/0;function fr(e){if(typeof e=="string"||ur(e))return e;var t=e+"";return t=="0"&&1/e==-Cp?"-0":t}function _a(e,t){t=Li(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[fr(t[r++])];return r&&r==n?e:void 0}function wa(e,t,r){var n=e==null?void 0:_a(e,t);return n===void 0?r:n}function Pp(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var kp=ba(Object.getPrototypeOf,Object);const Ea=kp;var Np="[object Object]",Bp=Function.prototype,Ip=Object.prototype,Sa=Bp.toString,Mp=Ip.hasOwnProperty,Fp=Sa.call(Object);function Vi(e){if(!ot(e)||Et(e)!=Np)return!1;var t=Ea(e);if(t===null)return!0;var r=Mp.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Sa.call(r)==Fp}var Lp="[object DOMException]",Vp="[object Error]";function xa(e){if(!ot(e))return!1;var t=Et(e);return t==Vp||t==Lp||typeof e.message=="string"&&typeof e.name=="string"&&!Vi(e)}var Hp=fa(function(e,t){try{return la(e,void 0,t)}catch(r){return xa(r)?r:new Error(r)}});const Up=Hp;function zp(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var s=Array(i);++n<i;)s[n]=e[n+t];return s}function qp(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:zp(e,t,r)}var Kp="\\ud800-\\udfff",Jp="\\u0300-\\u036f",Wp="\\ufe20-\\ufe2f",Yp="\\u20d0-\\u20ff",Gp=Jp+Wp+Yp,Zp="\\ufe0e\\ufe0f",Qp="\\u200d",Xp=RegExp("["+Qp+Kp+Gp+Zp+"]");function Ta(e){return Xp.test(e)}function td(e){return e.split("")}var $a="\\ud800-\\udfff",ed="\\u0300-\\u036f",rd="\\ufe20-\\ufe2f",nd="\\u20d0-\\u20ff",id=ed+rd+nd,sd="\\ufe0e\\ufe0f",od="["+$a+"]",Qn="["+id+"]",Xn="\\ud83c[\\udffb-\\udfff]",ad="(?:"+Qn+"|"+Xn+")",Oa="[^"+$a+"]",Aa="(?:\\ud83c[\\udde6-\\uddff]){2}",ja="[\\ud800-\\udbff][\\udc00-\\udfff]",cd="\\u200d",Ra=ad+"?",Da="["+sd+"]?",ud="(?:"+cd+"(?:"+[Oa,Aa,ja].join("|")+")"+Da+Ra+")*",ld=Da+Ra+ud,hd="(?:"+[Oa+Qn+"?",Qn,Aa,ja,od].join("|")+")",fd=RegExp(Xn+"(?="+Xn+")|"+hd+ld,"g");function pd(e){return e.match(fd)||[]}function dd(e){return Ta(e)?pd(e):td(e)}function Ca(e){return function(t){t=fe(t);var r=Ta(t)?dd(t):void 0,n=r?r[0]:t.charAt(0),i=r?qp(r,1).join(""):t.slice(1);return n[e]()+i}}var md=Ca("toUpperCase");const un=md;function gd(e){return un(fe(e).toLowerCase())}function vd(e,t,r,n){var i=-1,s=e==null?0:e.length;for(n;++i<s;)r=t(r,e[i],i,e);return r}function Pa(e){return function(t){return e==null?void 0:e[t]}}var yd={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},bd=Pa(yd);const _d=bd;var wd=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ed="\\u0300-\\u036f",Sd="\\ufe20-\\ufe2f",xd="\\u20d0-\\u20ff",Td=Ed+Sd+xd,$d="["+Td+"]",Od=RegExp($d,"g");function Ad(e){return e=fe(e),e&&e.replace(wd,_d).replace(Od,"")}var jd=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Rd(e){return e.match(jd)||[]}var Dd=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Cd(e){return Dd.test(e)}var ka="\\ud800-\\udfff",Pd="\\u0300-\\u036f",kd="\\ufe20-\\ufe2f",Nd="\\u20d0-\\u20ff",Bd=Pd+kd+Nd,Na="\\u2700-\\u27bf",Ba="a-z\\xdf-\\xf6\\xf8-\\xff",Id="\\xac\\xb1\\xd7\\xf7",Md="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Fd="\\u2000-\\u206f",Ld=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ia="A-Z\\xc0-\\xd6\\xd8-\\xde",Vd="\\ufe0e\\ufe0f",Ma=Id+Md+Fd+Ld,Fa="['’]",Us="["+Ma+"]",Hd="["+Bd+"]",La="\\d+",Ud="["+Na+"]",Va="["+Ba+"]",Ha="[^"+ka+Ma+La+Na+Ba+Ia+"]",zd="\\ud83c[\\udffb-\\udfff]",qd="(?:"+Hd+"|"+zd+")",Kd="[^"+ka+"]",Ua="(?:\\ud83c[\\udde6-\\uddff]){2}",za="[\\ud800-\\udbff][\\udc00-\\udfff]",_e="["+Ia+"]",Jd="\\u200d",zs="(?:"+Va+"|"+Ha+")",Wd="(?:"+_e+"|"+Ha+")",qs="(?:"+Fa+"(?:d|ll|m|re|s|t|ve))?",Ks="(?:"+Fa+"(?:D|LL|M|RE|S|T|VE))?",qa=qd+"?",Ka="["+Vd+"]?",Yd="(?:"+Jd+"(?:"+[Kd,Ua,za].join("|")+")"+Ka+qa+")*",Gd="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Zd="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Qd=Ka+qa+Yd,Xd="(?:"+[Ud,Ua,za].join("|")+")"+Qd,tm=RegExp([_e+"?"+Va+"+"+qs+"(?="+[Us,_e,"$"].join("|")+")",Wd+"+"+Ks+"(?="+[Us,_e+zs,"$"].join("|")+")",_e+"?"+zs+"+"+qs,_e+"+"+Ks,Zd,Gd,La,Xd].join("|"),"g");function em(e){return e.match(tm)||[]}function rm(e,t,r){return e=fe(e),t=t,t===void 0?Cd(e)?em(e):Rd(e):e.match(t)||[]}var nm="['’]",im=RegExp(nm,"g");function Hi(e){return function(t){return vd(rm(Ad(t).replace(im,"")),e,"")}}var sm=Hi(function(e,t,r){return t=t.toLowerCase(),e+(r?gd(t):t)});const Nt=sm;function om(){this.__data__=new It,this.size=0}function am(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function cm(e){return this.__data__.get(e)}function um(e){return this.__data__.has(e)}var lm=200;function hm(e,t){var r=this.__data__;if(r instanceof It){var n=r.__data__;if(!nr||n.length<lm-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Mt(n)}return r.set(e,t),this.size=r.size,this}function Ot(e){var t=this.__data__=new It(e);this.size=t.size}Ot.prototype.clear=om,Ot.prototype.delete=am,Ot.prototype.get=cm,Ot.prototype.has=um,Ot.prototype.set=hm;var Ja=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Js=Ja&&typeof module=="object"&&module&&!module.nodeType&&module,fm=Js&&Js.exports===Ja,Ws=fm?At.Buffer:void 0,Ys=Ws?Ws.allocUnsafe:void 0;function Wa(e,t){if(t)return e.slice();var r=e.length,n=Ys?Ys(r):new e.constructor(r);return e.copy(n),n}function pm(e,t){for(var r=-1,n=e==null?0:e.length,i=0,s=[];++r<n;){var o=e[r];t(o,r,e)&&(s[i++]=o)}return s}function dm(){return[]}var mm=Object.prototype,gm=mm.propertyIsEnumerable,Gs=Object.getOwnPropertySymbols,vm=Gs?function(e){return e==null?[]:(e=Object(e),pm(Gs(e),function(t){return gm.call(e,t)}))}:dm;const ym=vm;function bm(e,t,r){var n=t(e);return pt(e)?n:Pp(n,r(e))}function ti(e){return bm(e,on,ym)}var _m=he(At,"DataView");const ei=_m;var wm=he(At,"Promise");const ri=wm;var Em=he(At,"Set");const ni=Em;var Zs="[object Map]",Sm="[object Object]",Qs="[object Promise]",Xs="[object Set]",to="[object WeakMap]",eo="[object DataView]",xm=le(ei),Tm=le(nr),$m=le(ri),Om=le(ni),Am=le(Zn),Qt=Et;(ei&&Qt(new ei(new ArrayBuffer(1)))!=eo||nr&&Qt(new nr)!=Zs||ri&&Qt(ri.resolve())!=Qs||ni&&Qt(new ni)!=Xs||Zn&&Qt(new Zn)!=to)&&(Qt=function(e){var t=Et(e),r=t==Sm?e.constructor:void 0,n=r?le(r):"";if(n)switch(n){case xm:return eo;case Tm:return Zs;case $m:return Qs;case Om:return Xs;case Am:return to}return t});const ir=Qt;var jm=Object.prototype,Rm=jm.hasOwnProperty;function Dm(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&Rm.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Cm=At.Uint8Array;const qr=Cm;function Ui(e){var t=new e.constructor(e.byteLength);return new qr(t).set(new qr(e)),t}function Pm(e,t){var r=Ui(e.buffer);return new e.constructor(r,e.byteOffset,e.byteLength)}var km=/\w*$/;function Nm(e){var t=new e.constructor(e.source,km.exec(e));return t.lastIndex=e.lastIndex,t}var ro=Ct?Ct.prototype:void 0,no=ro?ro.valueOf:void 0;function Bm(e){return no?Object(no.call(e)):{}}function Ya(e,t){var r=t?Ui(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var Im="[object Boolean]",Mm="[object Date]",Fm="[object Map]",Lm="[object Number]",Vm="[object RegExp]",Hm="[object Set]",Um="[object String]",zm="[object Symbol]",qm="[object ArrayBuffer]",Km="[object DataView]",Jm="[object Float32Array]",Wm="[object Float64Array]",Ym="[object Int8Array]",Gm="[object Int16Array]",Zm="[object Int32Array]",Qm="[object Uint8Array]",Xm="[object Uint8ClampedArray]",tg="[object Uint16Array]",eg="[object Uint32Array]";function rg(e,t,r){var n=e.constructor;switch(t){case qm:return Ui(e);case Im:case Mm:return new n(+e);case Km:return Pm(e);case Jm:case Wm:case Ym:case Gm:case Zm:case Qm:case Xm:case tg:case eg:return Ya(e,r);case Fm:return new n;case Lm:case Um:return new n(e);case Vm:return Nm(e);case Hm:return new n;case zm:return Bm(e)}}function Ga(e){return typeof e.constructor=="function"&&!Ni(e)?kh(Ea(e)):{}}var ng="[object Map]";function ig(e){return ot(e)&&ir(e)==ng}var io=Pt&&Pt.isMap,sg=io?hr(io):ig;const og=sg;var ag="[object Set]";function cg(e){return ot(e)&&ir(e)==ag}var so=Pt&&Pt.isSet,ug=so?hr(so):cg;const lg=ug;var hg=1,Za="[object Arguments]",fg="[object Array]",pg="[object Boolean]",dg="[object Date]",mg="[object Error]",Qa="[object Function]",gg="[object GeneratorFunction]",vg="[object Map]",yg="[object Number]",Xa="[object Object]",bg="[object RegExp]",_g="[object Set]",wg="[object String]",Eg="[object Symbol]",Sg="[object WeakMap]",xg="[object ArrayBuffer]",Tg="[object DataView]",$g="[object Float32Array]",Og="[object Float64Array]",Ag="[object Int8Array]",jg="[object Int16Array]",Rg="[object Int32Array]",Dg="[object Uint8Array]",Cg="[object Uint8ClampedArray]",Pg="[object Uint16Array]",kg="[object Uint32Array]",Q={};Q[Za]=Q[fg]=Q[xg]=Q[Tg]=Q[pg]=Q[dg]=Q[$g]=Q[Og]=Q[Ag]=Q[jg]=Q[Rg]=Q[vg]=Q[yg]=Q[Xa]=Q[bg]=Q[_g]=Q[wg]=Q[Eg]=Q[Dg]=Q[Cg]=Q[Pg]=Q[kg]=!0,Q[mg]=Q[Qa]=Q[Sg]=!1;function Rr(e,t,r,n,i,s){var o,a=t&hg;if(o!==void 0)return o;if(!at(e))return e;var u=pt(e);if(u)o=Dm(e);else{var c=ir(e),l=c==Qa||c==gg;if(De(e))return Wa(e,a);if(c==Xa||c==Za||l&&!i)o=l?{}:Ga(e);else{if(!Q[c])return i?e:{};o=rg(e,c,a)}}s||(s=new Ot);var h=s.get(e);if(h)return h;s.set(e,o),lg(e)?e.forEach(function(d){o.add(Rr(d,t,r,d,e,s))}):og(e)&&e.forEach(function(d,m){o.set(m,Rr(d,t,r,m,e,s))});var f=ti,p=u?void 0:f(e);return Jh(p||e,function(d,m){p&&(m=d,d=e[m]),Pi(o,m,Rr(d,t,r,m,e,s))}),o}var Ng=1,Bg=4;function sr(e){return Rr(e,Ng|Bg)}var Ig="__lodash_hash_undefined__";function Mg(e){return this.__data__.set(e,Ig),this}function Fg(e){return this.__data__.has(e)}function Dr(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Mt;++t<r;)this.add(e[t])}Dr.prototype.add=Dr.prototype.push=Mg,Dr.prototype.has=Fg;function Lg(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function Vg(e,t){return e.has(t)}var Hg=1,Ug=2;function tc(e,t,r,n,i,s){var o=r&Hg,a=e.length,u=t.length;if(a!=u&&!(o&&u>a))return!1;var c=s.get(e),l=s.get(t);if(c&&l)return c==t&&l==e;var h=-1,f=!0,p=r&Ug?new Dr:void 0;for(s.set(e,t),s.set(t,e);++h<a;){var d=e[h],m=t[h];if(n)var b=o?n(m,d,h,t,e,s):n(d,m,h,e,t,s);if(b!==void 0){if(b)continue;f=!1;break}if(p){if(!Lg(t,function(E,g){if(!Vg(p,g)&&(d===E||i(d,E,r,n,s)))return p.push(g)})){f=!1;break}}else if(!(d===m||i(d,m,r,n,s))){f=!1;break}}return s.delete(e),s.delete(t),f}function zg(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function qg(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Kg=1,Jg=2,Wg="[object Boolean]",Yg="[object Date]",Gg="[object Error]",Zg="[object Map]",Qg="[object Number]",Xg="[object RegExp]",t1="[object Set]",e1="[object String]",r1="[object Symbol]",n1="[object ArrayBuffer]",i1="[object DataView]",oo=Ct?Ct.prototype:void 0,Dn=oo?oo.valueOf:void 0;function s1(e,t,r,n,i,s,o){switch(r){case i1:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case n1:return!(e.byteLength!=t.byteLength||!s(new qr(e),new qr(t)));case Wg:case Yg:case Qg:return Be(+e,+t);case Gg:return e.name==t.name&&e.message==t.message;case Xg:case e1:return e==t+"";case Zg:var a=zg;case t1:var u=n&Kg;if(a||(a=qg),e.size!=t.size&&!u)return!1;var c=o.get(e);if(c)return c==t;n|=Jg,o.set(e,t);var l=tc(a(e),a(t),n,i,s,o);return o.delete(e),l;case r1:if(Dn)return Dn.call(e)==Dn.call(t)}return!1}var o1=1,a1=Object.prototype,c1=a1.hasOwnProperty;function u1(e,t,r,n,i,s){var o=r&o1,a=ti(e),u=a.length,c=ti(t),l=c.length;if(u!=l&&!o)return!1;for(var h=u;h--;){var f=a[h];if(!(o?f in t:c1.call(t,f)))return!1}var p=s.get(e),d=s.get(t);if(p&&d)return p==t&&d==e;var m=!0;s.set(e,t),s.set(t,e);for(var b=o;++h<u;){f=a[h];var E=e[f],g=t[f];if(n)var y=o?n(g,E,f,t,e,s):n(E,g,f,e,t,s);if(!(y===void 0?E===g||i(E,g,r,n,s):y)){m=!1;break}b||(b=f=="constructor")}if(m&&!b){var _=e.constructor,S=t.constructor;_!=S&&"constructor"in e&&"constructor"in t&&!(typeof _=="function"&&_ instanceof _&&typeof S=="function"&&S instanceof S)&&(m=!1)}return s.delete(e),s.delete(t),m}var l1=1,ao="[object Arguments]",co="[object Array]",br="[object Object]",h1=Object.prototype,uo=h1.hasOwnProperty;function f1(e,t,r,n,i,s){var o=pt(e),a=pt(t),u=o?co:ir(e),c=a?co:ir(t);u=u==ao?br:u,c=c==ao?br:c;var l=u==br,h=c==br,f=u==c;if(f&&De(e)){if(!De(t))return!1;o=!0,l=!1}if(f&&!l)return s||(s=new Ot),o||Bi(e)?tc(e,t,r,n,i,s):s1(e,t,u,r,n,i,s);if(!(r&l1)){var p=l&&uo.call(e,"__wrapped__"),d=h&&uo.call(t,"__wrapped__");if(p||d){var m=p?e.value():e,b=d?t.value():t;return s||(s=new Ot),i(m,b,r,n,s)}}return f?(s||(s=new Ot),u1(e,t,r,n,i,s)):!1}function ln(e,t,r,n,i){return e===t?!0:e==null||t==null||!ot(e)&&!ot(t)?e!==e&&t!==t:f1(e,t,r,n,ln,i)}var p1=1,d1=2;function m1(e,t,r,n){var i=r.length,s=i;if(e==null)return!s;for(e=Object(e);i--;){var o=r[i];if(o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++i<s;){o=r[i];var a=o[0],u=e[a],c=o[1];if(o[2]){if(u===void 0&&!(a in e))return!1}else{var l=new Ot,h;if(!(h===void 0?ln(c,u,p1|d1,n,l):h))return!1}}return!0}function ec(e){return e===e&&!at(e)}function g1(e){for(var t=on(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,ec(i)]}return t}function rc(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function v1(e){var t=g1(e);return t.length==1&&t[0][2]?rc(t[0][0],t[0][1]):function(r){return r===e||m1(r,e,t)}}function y1(e,t){return e!=null&&t in Object(e)}function b1(e,t,r){t=Li(t,e);for(var n=-1,i=t.length,s=!1;++n<i;){var o=fr(t[n]);if(!(s=e!=null&&r(e,o)))break;e=e[o]}return s||++n!=i?s:(i=e==null?0:e.length,!!i&&ki(i)&&nn(o,i)&&(pt(e)||zr(e)))}function _1(e,t){return e!=null&&b1(e,t,y1)}var w1=1,E1=2;function S1(e,t){return Mi(e)&&ec(t)?rc(fr(e),t):function(r){var n=wa(r,e);return n===void 0&&n===t?_1(r,e):ln(t,n,w1|E1)}}function x1(e){return function(t){return t==null?void 0:t[e]}}function T1(e){return function(t){return _a(t,e)}}function $1(e){return Mi(e)?x1(fr(e)):T1(e)}function O1(e){return typeof e=="function"?e:e==null?Ci:typeof e=="object"?pt(e)?S1(e[0],e[1]):v1(e):$1(e)}function A1(e,t,r,n){for(var i=-1,s=e==null?0:e.length;++i<s;){var o=e[i];t(n,o,r(o),e)}return n}function j1(e){return function(t,r,n){for(var i=-1,s=Object(t),o=n(t),a=o.length;a--;){var u=o[++i];if(r(s[u],u,s)===!1)break}return t}}var R1=j1();const nc=R1;function D1(e,t){return e&&nc(e,t,on)}function C1(e,t){return function(r,n){if(r==null)return r;if(!lr(r))return e(r,n);for(var i=r.length,s=-1,o=Object(r);++s<i&&n(o[s],s,o)!==!1;);return r}}var P1=C1(D1);const k1=P1;function N1(e,t,r,n){return k1(e,function(i,s,o){t(n,i,r(i),o)}),n}function B1(e,t){return function(r,n){var i=pt(r)?A1:N1,s={};return i(r,e,O1(n),s)}}var I1=function(){return At.Date.now()};const Cn=I1;var M1="Expected a function",F1=Math.max,L1=Math.min;function zi(e,t,r){var n,i,s,o,a,u,c=0,l=!1,h=!1,f=!0;if(typeof e!="function")throw new TypeError(M1);t=ks(t)||0,at(r)&&(l=!!r.leading,h="maxWait"in r,s=h?F1(ks(r.maxWait)||0,t):s,f="trailing"in r?!!r.trailing:f);function p(v){var x=n,O=i;return n=i=void 0,c=v,o=e.apply(O,x),o}function d(v){return c=v,a=setTimeout(E,t),l?p(v):o}function m(v){var x=v-u,O=v-c,V=t-x;return h?L1(V,s-O):V}function b(v){var x=v-u,O=v-c;return u===void 0||x>=t||x<0||h&&O>=s}function E(){var v=Cn();if(b(v))return g(v);a=setTimeout(E,m(v))}function g(v){return a=void 0,f&&n?p(v):(n=i=void 0,o)}function y(){a!==void 0&&clearTimeout(a),c=0,n=u=i=a=void 0}function _(){return a===void 0?o:g(Cn())}function S(){var v=Cn(),x=b(v);if(n=arguments,i=this,u=v,x){if(a===void 0)return d(u);if(h)return clearTimeout(a),a=setTimeout(E,t),p(u)}return a===void 0&&(a=setTimeout(E,t)),o}return S.cancel=y,S.flush=_,S}function ii(e,t,r){(r!==void 0&&!Be(e[t],r)||r===void 0&&!(t in e))&&sn(e,t,r)}function V1(e){return ot(e)&&lr(e)}function si(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function H1(e){return ha(e,Ii(e))}function U1(e,t,r,n,i,s,o){var a=si(e,r),u=si(t,r),c=o.get(u);if(c){ii(e,r,c);return}var l=s?s(a,u,r+"",e,t,o):void 0,h=l===void 0;if(h){var f=pt(u),p=!f&&De(u),d=!f&&!p&&Bi(u);l=u,f||p||d?pt(a)?l=a:V1(a)?l=Bh(a):p?(h=!1,l=Wa(u,!0)):d?(h=!1,l=Ya(u,!0)):l=[]:Vi(u)||zr(u)?(l=a,zr(a)?l=H1(a):(!at(a)||ae(a))&&(l=Ga(u))):h=!1}h&&(o.set(u,l),i(l,u,n,s,o),o.delete(u)),ii(e,r,l)}function ic(e,t,r,n,i){e!==t&&nc(t,function(s,o){if(i||(i=new Ot),at(s))U1(e,t,o,r,ic,n,i);else{var a=n?n(si(e,o),s,o+"",e,t,i):void 0;a===void 0&&(a=s),ii(e,o,a)}},Ii)}var z1={"&":"&","<":"<",">":">",'"':""","'":"'"},q1=Pa(z1);const K1=q1;var sc=/[&<>"']/g,J1=RegExp(sc.source);function W1(e){return e=fe(e),e&&J1.test(e)?e.replace(sc,K1):e}var Y1=Object.prototype,G1=Y1.hasOwnProperty,Z1=B1(function(e,t,r){G1.call(e,r)?e[r].push(t):sn(e,r,[t])});const oc=Z1;var Q1="[object String]";function bt(e){return typeof e=="string"||!pt(e)&&ot(e)&&Et(e)==Q1}function X1(e,t){return ca(t,function(r){return e[r]})}var t0="[object ArrayBuffer]";function e0(e){return ot(e)&&Et(e)==t0}var lo=Pt&&Pt.isArrayBuffer,r0=lo?hr(lo):e0;const n0=r0;var i0="[object Boolean]";function s0(e){return e===!0||e===!1||ot(e)&&Et(e)==i0}var o0="[object Date]";function a0(e){return ot(e)&&Et(e)==o0}var ho=Pt&&Pt.isDate,c0=ho?hr(ho):a0;const u0=c0;function l0(e,t){return ln(e,t)}var h0="[object Number]";function ac(e){return typeof e=="number"||ot(e)&&Et(e)==h0}function f0(e){return ac(e)&&e!=+e}function p0(e){return e===null}function d0(e){return e===void 0}var m0=Hi(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()});const g0=m0;var v0=Ca("toLowerCase");const y0=v0;var b0=da(function(e,t,r){ic(e,t,r)});const Dt=b0;function _0(e,t,r,n){if(!at(e))return e;t=Li(t,e);for(var i=-1,s=t.length,o=s-1,a=e;a!=null&&++i<s;){var u=fr(t[i]),c=r;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(i!=o){var l=a[u];c=void 0,c===void 0&&(c=at(l)?l:nn(t[i+1])?[]:{})}Pi(a,u,c),a=a[u]}return e}function w0(e,t,r){return e==null?e:_0(e,t,r)}var E0=Hi(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});const S0=E0;var cc=Object.prototype,x0=cc.hasOwnProperty;function fo(e,t,r,n){return e===void 0||Be(e,cc[r])&&!x0.call(n,r)?t:e}var T0={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function $0(e){return"\\"+T0[e]}var O0=/<%=([\s\S]+?)%>/g;const uc=O0;var A0=/<%-([\s\S]+?)%>/g;const j0=A0;var R0=/<%([\s\S]+?)%>/g;const D0=R0;var C0={escape:j0,evaluate:D0,interpolate:uc,variable:"",imports:{_:{escape:W1}}};const po=C0;var P0="Invalid `variable` option passed into `_.template`",k0=/\b__p \+= '';/g,N0=/\b(__p \+=) '' \+/g,B0=/(__e\(.*?\)|\b__t\)) \+\n'';/g,I0=/[()=,{}\[\]\/\s]/,M0=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_r=/($^)/,F0=/['\n\r\u2028\u2029\\]/g,L0=Object.prototype,mo=L0.hasOwnProperty;function lc(e,t,r){var n=po.imports._.templateSettings||po;r&&pa(e,t,r)&&(t=void 0),e=fe(e),t=Hs({},t,n,fo);var i=Hs({},t.imports,n.imports,fo),s=on(i),o=X1(i,s),a,u,c=0,l=t.interpolate||_r,h="__p += '",f=RegExp((t.escape||_r).source+"|"+l.source+"|"+(l===uc?M0:_r).source+"|"+(t.evaluate||_r).source+"|$","g"),p=mo.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+`
|
|
3
3
|
`:"";e.replace(f,function(b,E,g,y,_,S){return g||(g=y),h+=e.slice(c,S).replace(F0,$0),E&&(a=!0,h+=`' +
|
|
4
4
|
__e(`+E+`) +
|
|
5
5
|
'`),_&&(u=!0,h+=`';
|
|
@@ -51,15 +51,15 @@ version: 2.9.0
|
|
|
51
51
|
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
|
52
52
|
* @name @vtj/core
|
|
53
53
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
54
|
-
* @version 0.9.
|
|
54
|
+
* @version 0.9.7
|
|
55
55
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
56
|
-
*/const ry="0.9.6",ny="BuiltIn",Gi="VueMaterial",Zi="VueRouterMaterial",iy=[Gi,Zi],sy={vue:"Vue","vue-router":"VueRouter"},Kc={[Gi]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[Zi]:["RouterView","RouterLink"]},oy=["slot","template","component","img","div","p","h1","h2","h3","span","a"];let ay=class{},Jc=class{constructor(){j(this,"listeners",[]);j(this,"isReady",!1)}triggerReady(){this.isReady=!0;for(const t of this.listeners)t();this.listeners=[]}ready(t){this.isReady?t():this.listeners.push(t)}resetReady(){this.isReady=!1}},kr=class Wc{constructor(t,r,n){j(this,"isUnset",!1);this.name=t,this.value=r,this.defaultValue=n,this.setValue(r)}setValue(t){this.value=t,this.isUnset=this.value===this.defaultValue}getValue(){var t;return(t=this.value)!=null?t:this.defaultValue}static toDsl(t={}){return Object.entries(t).reduce((r,[n,i])=>(i.isUnset||(r[n]=i.getValue()),r),{})}static parse(t={}){return Object.entries(t).reduce((r,[n,i])=>(r[n]=new Wc(n,i),r),{})}};class $e{constructor(t){j(this,"name");j(this,"handler");j(this,"modifiers",{});this.schema=t;const{name:r,handler:n}=this.schema;this.name=r,this.handler=n,this.update(t)}update(t){Object.assign(this.schema,t);const{handler:r,modifiers:n={}}=this.schema;this.handler=r,this.modifiers=n}static toDsl(t){return Object.entries(t).reduce((r,[n,i])=>{const{handler:s,modifiers:o}=i;return r[n]={name:n,handler:s,modifiers:o},r},{})}static parse(t={}){return Object.entries(t).reduce((r,[n,i])=>(r[n]=new $e(i),r),{})}}let Je=class Yc{constructor(t){j(this,"id");j(this,"name","");j(this,"arg");j(this,"modifiers");j(this,"value");j(this,"iterator");this.schema=t,this.id=t.id||gt(),this.update(t)}update(t){Object.assign(this.schema,t);const{name:r,arg:n,modifiers:i,value:s,iterator:o}=this.schema;this.name=r,this.arg=n,this.modifiers=i,this.value=s,this.iterator=o}static parse(t=[]){return t.map(r=>new Yc(r))}static toDsl(t=[]){return t.map(r=>{const{name:n,arg:i,modifiers:s,value:o,iterator:a,id:u}=r;return{id:u,name:n,arg:i,modifiers:s,value:o,iterator:a}})}};const nt="EVENT_NODE_CHANGE";var Ft;let Jr=(Ft=class{constructor(t,r=null){j(this,"__VTJ_NODE__",!0);j(this,"locked",!1);j(this,"id");j(this,"name");j(this,"from");j(this,"invisible",!1);j(this,"children","");j(this,"slot");j(this,"props",{});j(this,"events",{});j(this,"directives",[]);j(this,"disposed",!1);this.parent=r;const{id:n=gt(),name:i,from:s=""}=t;this.id=n,this.name=i,this.from=s,this.update(t,!0),Ft.nodes[this.id]=this}update(t,r=!1){const{invisible:n=!1,locked:i=!1,children:s=[],slot:o,props:a={},events:u={},directives:c=[]}=t;this.invisible=n,this.locked=i,this.setChildren(s,!0),this.setSlot(o,!0),this.props=kr.parse(a),this.events=$e.parse(u),this.directives=Je.parse(c),r||F.emit(nt,this)}setChildren(t="",r=!1){Array.isArray(t)?this.children=t.map(n=>new Ft(n,this)):this.children=t,r||F.emit(nt,this)}setSlot(t,r=!1){this.slot=typeof t=="string"?{name:t,params:[]}:t,r||F.emit(nt,this)}setProp(t,r,n,i=!1){const s=this.props[t];s?s.setValue(r):this.props[t]=new kr(t,r,n),i||F.emit(nt,this)}removeProp(t,r=!1){delete this.props[t],r||F.emit(nt,this)}getPropValue(t){const r=this.props[t];if(r)return r.getValue()}setEvent(t,r=!1){const n=this.events[t.name];n?n.update(t):this.events[t.name]=new $e(t),r||F.emit(nt,this)}removeEvent(t,r=!1){delete this.events[t],r||F.emit(nt,this)}setDirective(t,r=!1){const n=t instanceof Je?t:new Je(t),i=this.directives.findIndex(s=>s.id===t.id);i>=0?this.directives.splice(i,1,n):this.directives.push(n),r||F.emit(nt,this)}removeDirective(t,r=!1){const n=this.directives.findIndex(i=>i===t||i.id===t.id);n>=0&&this.directives.splice(n,1),r||F.emit(nt,this)}removeChild(t,r=!1){const{children:n,disposed:i}=this;if(i||!Array.isArray(n))return;const s=n.findIndex(o=>o===t);t.parent=null,n.splice(s,1),r||F.emit(nt,this)}appendChild(t,r=!1){const{children:n,disposed:i}=this;i||(t.parent=this,Array.isArray(n)?n.push(t):this.children=[t],r||F.emit(nt,this))}insertAfter(t,r=!1){if(!this.parent)return;const n=this.parent.children;if(Array.isArray(n)){t.parent=this.parent;const i=n.indexOf(this);n.splice(i+1,0,t),r||F.emit(nt,this.parent)}}insertBefore(t,r=!1){if(!this.parent)return;const n=this.parent.children;if(Array.isArray(n)){t.parent=this.parent;const i=n.indexOf(this);n.splice(i,0,t),r||F.emit(nt,this.parent)}}movePrev(t=!1){const r=this.parent;if(!r)return;const n=r.children;if(Array.isArray(n)){const i=n.indexOf(this);i>0&&(n.splice(i,1),n.splice(i-1,0,this),t||F.emit(nt,r))}}moveNext(t=!1){const r=this.parent;if(!r)return;const n=r.children;if(Array.isArray(n)){const i=n.indexOf(this);i>-1&&i<n.length-1&&(n.splice(i,1),n.splice(i+1,0,this),t||F.emit(nt,r))}}toDsl(){const{id:t,name:r,from:n,invisible:i,locked:s,slot:o,children:a,props:u,directives:c,events:l}=this,h=Array.isArray(a)?a.map(f=>f.toDsl()):a;return{id:t,name:r,from:n,invisible:i,locked:s,slot:o,children:h,props:kr.toDsl(u),directives:Je.toDsl(c),events:$e.toDsl(l)}}dispose(t=!1){const{children:r,disposed:n}=this;n||(Array.isArray(r)&&r.forEach(i=>i.dispose(!0)),this.parent?this.parent.removeChild(this,t):t||F.emit(nt,this),this.parent=null,this.disposed=!0,delete Ft.nodes[this.id])}lock(t=!1){if(this.locked=!0,Array.isArray(this.children))for(const r of this.children)r.lock(!0);t||F.emit(nt,this)}unlock(t=!1){if(this.locked=!1,Array.isArray(this.children))for(const r of this.children)r.unlock(!0);t||F.emit(nt,this)}setVisible(t,r=!1){if(this.invisible=!t,Array.isArray(this.children))for(const n of this.children)n.setVisible(t,!0);r||F.emit(nt,this)}isChild(t){let r=!1;if(Array.isArray(this.children)){for(const n of this.children)if(t===n||t.id===n.id){r=!0;break}else if(r=n.isChild(t),r)break}return r}},j(Ft,"nodes",{}),Ft);const G="EVENT_BLOCK_CHANGE";var qt;let te=(qt=class{constructor(t){j(this,"__VTJ_BLOCK__",!0);j(this,"id");j(this,"name","");j(this,"inject",[]);j(this,"state",{});j(this,"lifeCycles",{});j(this,"methods",{});j(this,"computed",{});j(this,"watch",[]);j(this,"css","");j(this,"props",[]);j(this,"emits",[]);j(this,"slots",[]);j(this,"dataSources",{});j(this,"nodes",[]);j(this,"locked",!1);j(this,"disposed",!1);const{id:r}=t;this.id=r||gt(),this.update(t,!0)}update(t,r=!1){for(const i of qt.normalAttrs){const s=t[i];s&&(this[i]=s)}const{nodes:n=[]}=t;n.length&&(this.nodes=n.map(i=>new Jr(i))),r||F.emit(G,this)}toDsl(t){const{__VTJ_BLOCK__:r,id:n,nodes:i}=this;return ct(z({},qt.normalAttrs.reduce((s,o)=>(s[o]=this[o],s),{})),{__VTJ_BLOCK__:r,__VERSION__:t||Nc().toString(),id:n,nodes:i.map(s=>s.toDsl())})}dispose(){this.nodes.map(t=>t.dispose(!0)),this.nodes=[],this.disposed=!0}setFunction(t,r,n,i=!1){this[t][r]=n,i||F.emit(G,this)}removeFunction(t,r,n=!1){delete this[t][r],n||F.emit(G,this)}setState(t,r,n=!1){this.state[t]=r,n||F.emit(G,this)}removeState(t,r=!1){delete this.state[t],r||F.emit(G,this)}setCss(t,r=!1){this.css=t,r||F.emit(G,this)}setWatch(t,r=!1){t.id=t.id||gt();const n=this.watch.findIndex(i=>i.id&&i.id===t.id||i===t);n>-1?this.watch.splice(n,1,t):this.watch.push(t),r||F.emit(G,this)}removeWatch(t,r=!1){const n=this.watch.findIndex(i=>i.id&&i.id===t.id||i===t);n>-1&&(this.watch.splice(n,1),r||F.emit(G,this))}setProp(t,r=!1){const n=this.props.findIndex(i=>typeof i=="string"?i===t.name:i.name===t.name);n>-1?this.props.splice(n,1,t):this.props.push(t),r||F.emit(G,this)}removeProp(t,r=!1){const n=this.props.findIndex(i=>typeof i=="string"?i===t.name:i.name===t.name);n>-1&&(this.props.splice(n,1),r||F.emit(G,this))}setEmit(t,r=!1){const n=bt(t)?{name:t,params:[]}:t,i=this.emits.findIndex(s=>s===n.name||s===n);i>-1?this.emits.splice(i,1,n):this.emits.push(n),r||F.emit(G,this)}removeEmit(t,r=!1){const n=this.emits.findIndex(i=>bt(i)?i===t:i.name===t);n>-1&&(this.emits.splice(n,1),r||F.emit(G,this))}setSlot(t,r=!1){const n=bt(t)?{name:t,params:[]}:t,i=this.slots.findIndex(s=>s===n.name||s===n);i>-1?this.slots.splice(i,1,n):this.slots.push(n),r||F.emit(G,this)}removeSlot(t,r=!1){const n=this.slots.findIndex(i=>bt(i)?i===t:i.name===t);n>-1&&(this.slots.splice(n,1),r||F.emit(G,this))}setInject(t,r=!1){const n=this.inject.findIndex(i=>i.name===t.name);n>-1?this.inject.splice(n,1,t):this.inject.push(t),r||F.emit(G,this)}removeInject(t,r=!1){const n=this.inject.findIndex(i=>i.name===t.name);n>-1&&(this.inject.splice(n,1),r||F.emit(G,this))}setDataSource(t,r=!1){this.dataSources[t.name]=t,r||F.emit(G,this)}removeDataSource(t,r=!1){delete this.dataSources[t],r||F.emit(G,this)}insertAfter(t,r,n=!1){t.parent=null;const i=this.nodes.indexOf(r);this.nodes.splice(i+1,0,t),n||F.emit(G,this)}insertBefore(t,r,n=!1){t.parent=null;const i=this.nodes.indexOf(r);this.nodes.splice(i,0,t),n||F.emit(G,this)}appendNode(t,r=!1){t.parent=null,this.nodes.push(t),r||F.emit(G,this)}addNode(t,r,n="inner",i=!1){r?["left","top"].includes(n)?r.parent?r.insertAfter(t,i):this.insertBefore(t,r,i):["right","bottom"].includes(n)?r.parent?r.insertAfter(t,i):this.insertAfter(t,r,i):r.appendChild(t,i):this.appendNode(t,i)}__removeNode(t,r=!1){const n=this.nodes.findIndex(i=>i.id===t.id);n>-1&&(this.nodes.splice(n,1),r||F.emit(G,this))}removeNode(t,r=!1){t.parent?t.dispose(r):(t.dispose(!0),this.__removeNode(t,r))}move(t,r,n="inner",i=!1){t.parent?t.parent.removeChild(t,!0):this.__removeNode(t,!0),this.addNode(t,r,n,i)}movePrev(t,r=!1){if(t.parent)t.movePrev(r);else{const n=this.nodes,i=n.indexOf(t);i>0&&(n.splice(i,1),n.splice(i-1,0,t),r||F.emit(G,this))}}moveNext(t,r=!1){if(t.parent)t.moveNext(r);else{const n=this.nodes,i=n.indexOf(t);i>-1&&i<n.length-1&&(n.splice(i,1),n.splice(i+1,0,t),r||F.emit(G,this))}}cloneNode(t,r=!1){const n=Xi(t.toDsl()),i=new Jr(n);return this.addNode(i,t,"bottom",r),i}lock(t=!1){this.locked=!0;for(const r of this.nodes)r.lock(!0);t||F.emit(G,this)}unlock(t=!1){this.locked=!1;for(const r of this.nodes)r.unlock(!0);t||F.emit(G,this)}isChild(t){let r=!1;for(const n of this.nodes)if(t===n||t.id===n.id){r=!0;break}else if(r=n.isChild(t),r)break;return r}},j(qt,"normalAttrs",["name","locked","inject","state","lifeCycles","methods","computed","watch","css","props","emits","slots","dataSources","__TEMPLATE_ID__"]),qt);const it="EVENT_PROJECT_CHANGE",pi="EVENT_PROJECT_ACTIVED",di="EVENT_PROJECT_DEPS_CHANGE",We="EVENT_PROJECT_PAGES_CHANGE",Se="EVENT_PROJECT_BLOCKS_CHANGE",mi="EVENT_PROJECT_APIS_CHANGE",gi="EVENT_PROJECT_META_CHANGE",Gc="EVENT_PROJECT_PUBLISH",Zc="EVENT_PROJECT_FILE_PUBLISH",Qc="EVENT_PROJECT_GEN_SOURCE",tr=class tr{constructor(t){j(this,"id","");j(this,"name","");j(this,"description","");j(this,"homepage","");j(this,"dependencies",[]);j(this,"pages",[]);j(this,"blocks",[]);j(this,"apis",[]);j(this,"meta",[]);j(this,"currentFile",null);j(this,"config",{});j(this,"__BASE_PATH__","/");const{id:r}=t;this.id=r||gt(),this.update(t,!0)}update(t,r=!1){for(const n of tr.attrs){const i=t[n];i&&(this[n]=i)}r||F.emit(it,{model:this,type:"update",data:t})}isPageFile(t){return t.type==="page"}cleanPagesDsl(t){for(const r of t)delete r.dsl,r.children&&r.children.length&&this.cleanPagesDsl(r.children)}toDsl(t){const{id:r}=this,n=tr.attrs.reduce((i,s)=>(i[s]=this[s],i),{});return n.pages&&(n.pages=n.pages.map(i=>sr(ct(z({},i),{dsl:void 0}))),this.cleanPagesDsl(n.pages)),n.blocks&&(n.blocks=n.blocks.map(i=>sr(ct(z({},i),{dsl:void 0})))),z({__VTJ_PROJECT__:!0,id:r},n)}active(t,r=!1){this.currentFile=t,r||F.emit(pi,{model:this,type:"update",data:t})}deactivate(t=!1){this.currentFile=null,t||F.emit(pi,{model:this,type:"update",data:null})}setDeps(t,r=!1){const n=this.dependencies,i=n.findIndex(o=>o.package===t.package);let s;if(i>-1?(s="update",n.splice(i,1,z(z({},n[i]),t))):(s="create",n.push(t)),!r){const o={model:this,type:s,data:t};F.emit(di,o),F.emit(it,o)}}removeDeps(t,r=!1){const n=this.dependencies,i=n.findIndex(s=>s.package===t.package);if(i>-1&&n.splice(i,1),!r){const s={model:this,type:"delete",data:t};F.emit(di,s),F.emit(it,s)}}getPage(t){const r=(n,i=[])=>{for(const s of i){if(s.id===n)return s;if(s.children&&s.children.length){const o=r(n,s.children);if(o)return o}}};return r(t,this.pages)}getPages(){const t=(r=[])=>{let n=[];for(const i of r)i.dir?i.children&&i.children.length&&(n=n.concat(t(i.children))):n.push(i);return n};return t(this.pages)}createPage(t,r,n=!1){return L(this,null,function*(){if(t.id=t.raw?t.name:t.id||gt(),t.type="page",t.dir?t.children=[]:t.dsl=t.dsl||new te({id:t.id,name:oi(t.name)}).toDsl(),r){const i=this.getPage(r);i?i.children?i.children.push(t):i.children=[t]:console.warn(`not found PageFile for id: ${r} `)}else this.pages.push(t);if(!n){const i={model:this,type:"create",data:t};F.emit(We,i),F.emit(it,i)}!this.currentFile&&!t.dir&&(yield Te(1e3),this.active(t,n))})}updatePage(t,r=!1){const n=this.getPage(t.id);if(n?Object.assign(n,t):console.warn(`not found PageFile for id: ${t.id} `),!r){const i={model:this,type:"update",data:t};F.emit(We,i),F.emit(it,i)}}clonePage(t,r,n=!1){var h;const i=gt(),s=`${t.name}Copy`,o=`${t.title}_副本`,a=new te({id:i,name:s}).toDsl(),u=Dt({},t,{id:i,name:s,title:o,dsl:a}),c=r?((h=this.getPage(r))==null?void 0:h.children)||[]:this.pages,l=c.findIndex(f=>f.id===t.id);if(c.splice(l+1,0,u),!n){const f={model:this,type:"clone",data:{source:t,target:u}};F.emit(We,f),F.emit(it,f)}}saveToBlock(t,r=!1){return L(this,null,function*(){this.active(t,r),yield Te(1e3);const n=gt(),i=t.name,s=t.title,o=new te({id:n,name:i}).toDsl(),a=Dt({},t,{id:n,name:i,title:s,dsl:o,type:"block",fromType:"Schema"});if(this.blocks.push(a),!r){const u={model:this,type:"create",data:a};F.emit(Se,u),F.emit(it,u)}})}removePage(t,r=!1){var s;const n=this.getPage(t),i=(o,a)=>{const u=a.findIndex(c=>c.id===o);if(u>=0){a.splice(u,1);return}for(const c of a)c.children&&c.children.length&&i(o,c.children)};if(i(t,this.pages),t===this.homepage&&(this.homepage=""),((s=this.currentFile)==null?void 0:s.id)===t&&this.deactivate(r),!r){const o={model:this,type:"delete",data:n};F.emit(We,o),F.emit(it,o)}}getBlock(t){return this.blocks.find(r=>r.id===t)}createBlock(t,r=!1){return L(this,null,function*(){const n=t.id||gt(),i=oi(t.name);t.id=n,t.type="block",t.dsl=new te({id:n,name:i}).toDsl(),this.blocks.push(t);const s=t.fromType||"Schema";if(!r){const o={model:this,type:"create",data:t};F.emit(Se,o),F.emit(it,o)}!this.currentFile&&s==="Schema"&&(yield Te(1e3),this.active(t,r))})}updateBlock(t,r=!1){const n=this.getBlock(t.id);if(n?(Object.assign(n,t),n.dsl&&(n.dsl.name=t.name)):console.warn(`not found PageFile for id: ${t.id} `),!r){const i={model:this,type:"update",data:t};F.emit(Se,i),F.emit(it,i)}}cloneBlock(t,r=!1){const n=gt(),i=`${t.name}Copy`,s=`${t.title}_副本`,o=new te({id:n,name:i}).toDsl(),a=Dt({},t,{id:n,name:i,title:s,dsl:o}),u=this.blocks.findIndex(c=>c.id===t.id);if(this.blocks.splice(u+1,0,a),!r){const c={model:this,type:"clone",data:{source:t,target:a}};F.emit(Se,c),F.emit(it,c)}}removeBlock(t,r=!1){var o;const n=this.getBlock(t),i=this.blocks,s=i.findIndex(a=>a.id===t);if(s>-1?(i.splice(s,1),((o=this.currentFile)==null?void 0:o.id)===t&&this.deactivate(r)):console.warn(`not found PageFile for id: ${t} `),!r){const a={model:this,type:"delete",data:n};F.emit(Se,a),F.emit(it,a)}}existBlockName(t,r=[]){return this.blocks.some(n=>n.name===t&&!r.includes(n.id))}existPageName(t,r=[]){return this.getPages().some(n=>n.name===t&&!r.includes(n.id))}setApi(t,r=!1){const n=this.apis.find(s=>s.name===t.name||s.id===t.id);let i;if(n?(i="update",Object.assign(n,t)):(i="create",t.id=gt(),this.apis.push(t)),!r){const s={model:this,type:i,data:t};F.emit(mi,s),F.emit(it,s)}}removeApi(t,r=!1){const n=this.apis.findIndex(i=>i.name===t||i.id===t);if(n>-1?this.apis.splice(n,1):console.warn(`not found Api for name: ${t} `),!r){const i={model:this,type:"delete",data:t};F.emit(mi,i),F.emit(it,i)}}existApiName(t,r=[]){return this.apis.some(n=>n.name===t&&!r.includes(n.id))}setMeta(t,r=!1){const n=this.meta.find(s=>s.code===t.code||s.id===t.id);let i;if(n?(i="update",Object.assign(n,t)):(i="create",t.id=gt(),this.meta.push(t)),!r){const s={model:this,type:i,data:t};F.emit(gi,s),F.emit(it,s)}}removeMeta(t,r=!1){const n=this.meta.findIndex(i=>i.code===t||i.id===t);if(n>-1?this.meta.splice(n,1):console.warn(`not found meta for name: ${name} `),!r){const i={model:this,type:"delete",data:t};F.emit(gi,i),F.emit(it,i)}}existMetaCode(t,r=[]){return this.meta.some(n=>n.code===t&&!r.includes(n.id))}setHomepage(t,r=!1){if(this.homepage=t,!r){const n={model:this,type:"update",data:t};F.emit(it,n)}}setConfig(t,r=!1){if(this.config=Object.assign(this.config,t),!r){const n={model:this,type:"update",data:t};F.emit(it,n)}}publish(t){const r={model:this,type:"publish",data:t||this};t?F.emit(Zc,r):F.emit(Gc,r)}genSource(){const t={model:this,type:"gen",data:null};F.emit(Qc,t)}};j(tr,"attrs",["name","homepage","description","dependencies","pages","blocks","apis","meta","config","__BASE_PATH__"]);let ce=tr;const Ye="EVENT_HISTORY_CHANGE",Nr="EVENT_HISTORY_LOAD";let Qi=class{constructor(t,r={}){j(this,"options",{max:50});j(this,"index",-1);j(this,"id");j(this,"items");Object.assign(this.options,r);const{id:n,items:i=[]}=t;this.id=n,this.items=i}toDsl(){const{id:t,items:r}=this;return{id:t,items:r.map(n=>({id:n.id,label:n.label}))}}get(t){return this.items.find(r=>r.id===t)}add(t,r=!1){const{max:n}=this.options,i={id:gt(),label:new Date().toLocaleString(),dsl:sr(t)};if(this.items.unshift(i),this.items.length>n){const s=this.items.splice(n);r||F.emit(Ye,{model:this,type:"delete",data:s.map(o=>o.id)})}this.index=-1,r||F.emit(Ye,{model:this,type:"create",data:i})}remove(t,r=!1){const n=this.items.findIndex(i=>i.id===t);n>-1?(this.items.splice(n,1),n===this.index?this.index=-1:this.index>=this.items.length&&(this.index=this.items.length-1)):console.warn(`not found HistoryItem for id: ${t} `),r||F.emit(Ye,{model:this,type:"delete",data:[t]})}forward(t=!1){const{index:r,items:n}=this;if(r<0)return;--this.index;const i=n[this.index];i&&!t&&F.emit(Nr,{model:this,type:"load",data:i})}backward(t=!1){const{index:r,items:n}=this;if(r>=n.length-1)return;r<0&&(this.index=0),++this.index;const i=n[this.index];i&&!t&&F.emit(Nr,{model:this,type:"load",data:i})}load(t,r=!1){const n=this.items.findIndex(i=>i.id===t);n>=0&&(this.index=n,r||F.emit(Nr,{model:this,type:"load",data:this.items[n]}))}clear(t=!1){this.index=-1;const r=this.items.map(n=>n.id);this.items=[],t||F.emit(Ye,{model:this,type:"clear",data:r})}};const F=Uc();function cy(e){return e instanceof te}function uy(e){return e instanceof Jr}function ly(e){return!!e.__VTJ_BLOCK__}function Xi(e){const t=sr(e);return delete t.id,Array.isArray(t.children)&&(t.children=t.children.map(r=>Xi(r))),t}function hy(e){const t=e.fromType||"Schema";return t==="Schema"?{type:"Schema",id:e.id}:t==="UrlSchema"?{type:"UrlSchema",url:(e.urls||"").split(",")[0]||""}:t==="Plugin"?{type:"Plugin",urls:(e.urls||"").split(","),library:e.library}:""}const v2=Object.freeze(Object.defineProperty({__proto__:null,BUILT_IN_COMPONENTS:Kc,BUILT_IN_LIBRARAY_MAP:sy,BUILT_IN_MATERIALS:iy,BUILT_IN_NAME:ny,BUILT_IN_TAGS:oy,BUILT_IN_VUE:Gi,BUILT_IN_VUE_ROUTER:Zi,Base:Jc,BlockModel:te,DirectiveModel:Je,EVENT_BLOCK_CHANGE:G,EVENT_HISTORY_CHANGE:Ye,EVENT_HISTORY_LOAD:Nr,EVENT_NODE_CHANGE:nt,EVENT_PROJECT_ACTIVED:pi,EVENT_PROJECT_APIS_CHANGE:mi,EVENT_PROJECT_BLOCKS_CHANGE:Se,EVENT_PROJECT_CHANGE:it,EVENT_PROJECT_DEPS_CHANGE:di,EVENT_PROJECT_FILE_PUBLISH:Zc,EVENT_PROJECT_GEN_SOURCE:Qc,EVENT_PROJECT_META_CHANGE:gi,EVENT_PROJECT_PAGES_CHANGE:We,EVENT_PROJECT_PUBLISH:Gc,EventModel:$e,HistoryModel:Qi,NodeModel:Jr,ProjectModel:ce,PropModel:kr,Service:ay,VTJ_CORE_VERSION:ry,cloneDsl:Xi,createNodeFrom:hy,emitter:F,isBlock:cy,isBlockSchema:ly,isNode:uy},Symbol.toStringTag,{value:"Module"}));var fy=Object.defineProperty,py=(e,t,r)=>t in e?fy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xt=(e,t,r)=>py(e,typeof t!="symbol"?t+"":t,r);(function(){if(typeof window>"u"||typeof EventTarget>"u")return;const e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(t,r,n){typeof n!="boolean"&&(n=n||{},n.passive=!1),e.call(this,t,r,n)}})();/**!
|
|
56
|
+
*/const ry="0.9.7",ny="BuiltIn",Gi="VueMaterial",Zi="VueRouterMaterial",iy=[Gi,Zi],sy={vue:"Vue","vue-router":"VueRouter"},Kc={[Gi]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[Zi]:["RouterView","RouterLink"]},oy=["slot","template","component","img","div","p","h1","h2","h3","span","a"];let ay=class{},Jc=class{constructor(){j(this,"listeners",[]);j(this,"isReady",!1)}triggerReady(){this.isReady=!0;for(const t of this.listeners)t();this.listeners=[]}ready(t){this.isReady?t():this.listeners.push(t)}resetReady(){this.isReady=!1}},kr=class Wc{constructor(t,r,n){j(this,"isUnset",!1);this.name=t,this.value=r,this.defaultValue=n,this.setValue(r)}setValue(t){this.value=t,this.isUnset=this.value===this.defaultValue}getValue(){var t;return(t=this.value)!=null?t:this.defaultValue}static toDsl(t={}){return Object.entries(t).reduce((r,[n,i])=>(i.isUnset||(r[n]=i.getValue()),r),{})}static parse(t={}){return Object.entries(t).reduce((r,[n,i])=>(r[n]=new Wc(n,i),r),{})}};class $e{constructor(t){j(this,"name");j(this,"handler");j(this,"modifiers",{});this.schema=t;const{name:r,handler:n}=this.schema;this.name=r,this.handler=n,this.update(t)}update(t){Object.assign(this.schema,t);const{handler:r,modifiers:n={}}=this.schema;this.handler=r,this.modifiers=n}static toDsl(t){return Object.entries(t).reduce((r,[n,i])=>{const{handler:s,modifiers:o}=i;return r[n]={name:n,handler:s,modifiers:o},r},{})}static parse(t={}){return Object.entries(t).reduce((r,[n,i])=>(r[n]=new $e(i),r),{})}}let Je=class Yc{constructor(t){j(this,"id");j(this,"name","");j(this,"arg");j(this,"modifiers");j(this,"value");j(this,"iterator");this.schema=t,this.id=t.id||gt(),this.update(t)}update(t){Object.assign(this.schema,t);const{name:r,arg:n,modifiers:i,value:s,iterator:o}=this.schema;this.name=r,this.arg=n,this.modifiers=i,this.value=s,this.iterator=o}static parse(t=[]){return t.map(r=>new Yc(r))}static toDsl(t=[]){return t.map(r=>{const{name:n,arg:i,modifiers:s,value:o,iterator:a,id:u}=r;return{id:u,name:n,arg:i,modifiers:s,value:o,iterator:a}})}};const nt="EVENT_NODE_CHANGE";var Ft;let Jr=(Ft=class{constructor(t,r=null){j(this,"__VTJ_NODE__",!0);j(this,"locked",!1);j(this,"id");j(this,"name");j(this,"from");j(this,"invisible",!1);j(this,"children","");j(this,"slot");j(this,"props",{});j(this,"events",{});j(this,"directives",[]);j(this,"disposed",!1);this.parent=r;const{id:n=gt(),name:i,from:s=""}=t;this.id=n,this.name=i,this.from=s,this.update(t,!0),Ft.nodes[this.id]=this}update(t,r=!1){const{invisible:n=!1,locked:i=!1,children:s=[],slot:o,props:a={},events:u={},directives:c=[]}=t;this.invisible=n,this.locked=i,this.setChildren(s,!0),this.setSlot(o,!0),this.props=kr.parse(a),this.events=$e.parse(u),this.directives=Je.parse(c),r||F.emit(nt,this)}setChildren(t="",r=!1){Array.isArray(t)?this.children=t.map(n=>new Ft(n,this)):this.children=t,r||F.emit(nt,this)}setSlot(t,r=!1){this.slot=typeof t=="string"?{name:t,params:[]}:t,r||F.emit(nt,this)}setProp(t,r,n,i=!1){const s=this.props[t];s?s.setValue(r):this.props[t]=new kr(t,r,n),i||F.emit(nt,this)}removeProp(t,r=!1){delete this.props[t],r||F.emit(nt,this)}getPropValue(t){const r=this.props[t];if(r)return r.getValue()}setEvent(t,r=!1){const n=this.events[t.name];n?n.update(t):this.events[t.name]=new $e(t),r||F.emit(nt,this)}removeEvent(t,r=!1){delete this.events[t],r||F.emit(nt,this)}setDirective(t,r=!1){const n=t instanceof Je?t:new Je(t),i=this.directives.findIndex(s=>s.id===t.id);i>=0?this.directives.splice(i,1,n):this.directives.push(n),r||F.emit(nt,this)}removeDirective(t,r=!1){const n=this.directives.findIndex(i=>i===t||i.id===t.id);n>=0&&this.directives.splice(n,1),r||F.emit(nt,this)}removeChild(t,r=!1){const{children:n,disposed:i}=this;if(i||!Array.isArray(n))return;const s=n.findIndex(o=>o===t);t.parent=null,n.splice(s,1),r||F.emit(nt,this)}appendChild(t,r=!1){const{children:n,disposed:i}=this;i||(t.parent=this,Array.isArray(n)?n.push(t):this.children=[t],r||F.emit(nt,this))}insertAfter(t,r=!1){if(!this.parent)return;const n=this.parent.children;if(Array.isArray(n)){t.parent=this.parent;const i=n.indexOf(this);n.splice(i+1,0,t),r||F.emit(nt,this.parent)}}insertBefore(t,r=!1){if(!this.parent)return;const n=this.parent.children;if(Array.isArray(n)){t.parent=this.parent;const i=n.indexOf(this);n.splice(i,0,t),r||F.emit(nt,this.parent)}}movePrev(t=!1){const r=this.parent;if(!r)return;const n=r.children;if(Array.isArray(n)){const i=n.indexOf(this);i>0&&(n.splice(i,1),n.splice(i-1,0,this),t||F.emit(nt,r))}}moveNext(t=!1){const r=this.parent;if(!r)return;const n=r.children;if(Array.isArray(n)){const i=n.indexOf(this);i>-1&&i<n.length-1&&(n.splice(i,1),n.splice(i+1,0,this),t||F.emit(nt,r))}}toDsl(){const{id:t,name:r,from:n,invisible:i,locked:s,slot:o,children:a,props:u,directives:c,events:l}=this,h=Array.isArray(a)?a.map(f=>f.toDsl()):a;return{id:t,name:r,from:n,invisible:i,locked:s,slot:o,children:h,props:kr.toDsl(u),directives:Je.toDsl(c),events:$e.toDsl(l)}}dispose(t=!1){const{children:r,disposed:n}=this;n||(Array.isArray(r)&&r.forEach(i=>i.dispose(!0)),this.parent?this.parent.removeChild(this,t):t||F.emit(nt,this),this.parent=null,this.disposed=!0,delete Ft.nodes[this.id])}lock(t=!1){if(this.locked=!0,Array.isArray(this.children))for(const r of this.children)r.lock(!0);t||F.emit(nt,this)}unlock(t=!1){if(this.locked=!1,Array.isArray(this.children))for(const r of this.children)r.unlock(!0);t||F.emit(nt,this)}setVisible(t,r=!1){if(this.invisible=!t,Array.isArray(this.children))for(const n of this.children)n.setVisible(t,!0);r||F.emit(nt,this)}isChild(t){let r=!1;if(Array.isArray(this.children)){for(const n of this.children)if(t===n||t.id===n.id){r=!0;break}else if(r=n.isChild(t),r)break}return r}},j(Ft,"nodes",{}),Ft);const G="EVENT_BLOCK_CHANGE";var qt;let te=(qt=class{constructor(t){j(this,"__VTJ_BLOCK__",!0);j(this,"id");j(this,"name","");j(this,"inject",[]);j(this,"state",{});j(this,"lifeCycles",{});j(this,"methods",{});j(this,"computed",{});j(this,"watch",[]);j(this,"css","");j(this,"props",[]);j(this,"emits",[]);j(this,"slots",[]);j(this,"dataSources",{});j(this,"nodes",[]);j(this,"locked",!1);j(this,"disposed",!1);const{id:r}=t;this.id=r||gt(),this.update(t,!0)}update(t,r=!1){for(const i of qt.normalAttrs){const s=t[i];s&&(this[i]=s)}const{nodes:n=[]}=t;n.length&&(this.nodes=n.map(i=>new Jr(i))),r||F.emit(G,this)}toDsl(t){const{__VTJ_BLOCK__:r,id:n,nodes:i}=this;return ct(z({},qt.normalAttrs.reduce((s,o)=>(s[o]=this[o],s),{})),{__VTJ_BLOCK__:r,__VERSION__:t||Nc().toString(),id:n,nodes:i.map(s=>s.toDsl())})}dispose(){this.nodes.map(t=>t.dispose(!0)),this.nodes=[],this.disposed=!0}setFunction(t,r,n,i=!1){this[t][r]=n,i||F.emit(G,this)}removeFunction(t,r,n=!1){delete this[t][r],n||F.emit(G,this)}setState(t,r,n=!1){this.state[t]=r,n||F.emit(G,this)}removeState(t,r=!1){delete this.state[t],r||F.emit(G,this)}setCss(t,r=!1){this.css=t,r||F.emit(G,this)}setWatch(t,r=!1){t.id=t.id||gt();const n=this.watch.findIndex(i=>i.id&&i.id===t.id||i===t);n>-1?this.watch.splice(n,1,t):this.watch.push(t),r||F.emit(G,this)}removeWatch(t,r=!1){const n=this.watch.findIndex(i=>i.id&&i.id===t.id||i===t);n>-1&&(this.watch.splice(n,1),r||F.emit(G,this))}setProp(t,r=!1){const n=this.props.findIndex(i=>typeof i=="string"?i===t.name:i.name===t.name);n>-1?this.props.splice(n,1,t):this.props.push(t),r||F.emit(G,this)}removeProp(t,r=!1){const n=this.props.findIndex(i=>typeof i=="string"?i===t.name:i.name===t.name);n>-1&&(this.props.splice(n,1),r||F.emit(G,this))}setEmit(t,r=!1){const n=bt(t)?{name:t,params:[]}:t,i=this.emits.findIndex(s=>s===n.name||s===n);i>-1?this.emits.splice(i,1,n):this.emits.push(n),r||F.emit(G,this)}removeEmit(t,r=!1){const n=this.emits.findIndex(i=>bt(i)?i===t:i.name===t);n>-1&&(this.emits.splice(n,1),r||F.emit(G,this))}setSlot(t,r=!1){const n=bt(t)?{name:t,params:[]}:t,i=this.slots.findIndex(s=>s===n.name||s===n);i>-1?this.slots.splice(i,1,n):this.slots.push(n),r||F.emit(G,this)}removeSlot(t,r=!1){const n=this.slots.findIndex(i=>bt(i)?i===t:i.name===t);n>-1&&(this.slots.splice(n,1),r||F.emit(G,this))}setInject(t,r=!1){const n=this.inject.findIndex(i=>i.name===t.name);n>-1?this.inject.splice(n,1,t):this.inject.push(t),r||F.emit(G,this)}removeInject(t,r=!1){const n=this.inject.findIndex(i=>i.name===t.name);n>-1&&(this.inject.splice(n,1),r||F.emit(G,this))}setDataSource(t,r=!1){this.dataSources[t.name]=t,r||F.emit(G,this)}removeDataSource(t,r=!1){delete this.dataSources[t],r||F.emit(G,this)}insertAfter(t,r,n=!1){t.parent=null;const i=this.nodes.indexOf(r);this.nodes.splice(i+1,0,t),n||F.emit(G,this)}insertBefore(t,r,n=!1){t.parent=null;const i=this.nodes.indexOf(r);this.nodes.splice(i,0,t),n||F.emit(G,this)}appendNode(t,r=!1){t.parent=null,this.nodes.push(t),r||F.emit(G,this)}addNode(t,r,n="inner",i=!1){r?["left","top"].includes(n)?r.parent?r.insertAfter(t,i):this.insertBefore(t,r,i):["right","bottom"].includes(n)?r.parent?r.insertAfter(t,i):this.insertAfter(t,r,i):r.appendChild(t,i):this.appendNode(t,i)}__removeNode(t,r=!1){const n=this.nodes.findIndex(i=>i.id===t.id);n>-1&&(this.nodes.splice(n,1),r||F.emit(G,this))}removeNode(t,r=!1){t.parent?t.dispose(r):(t.dispose(!0),this.__removeNode(t,r))}move(t,r,n="inner",i=!1){t.parent?t.parent.removeChild(t,!0):this.__removeNode(t,!0),this.addNode(t,r,n,i)}movePrev(t,r=!1){if(t.parent)t.movePrev(r);else{const n=this.nodes,i=n.indexOf(t);i>0&&(n.splice(i,1),n.splice(i-1,0,t),r||F.emit(G,this))}}moveNext(t,r=!1){if(t.parent)t.moveNext(r);else{const n=this.nodes,i=n.indexOf(t);i>-1&&i<n.length-1&&(n.splice(i,1),n.splice(i+1,0,t),r||F.emit(G,this))}}cloneNode(t,r=!1){const n=Xi(t.toDsl()),i=new Jr(n);return this.addNode(i,t,"bottom",r),i}lock(t=!1){this.locked=!0;for(const r of this.nodes)r.lock(!0);t||F.emit(G,this)}unlock(t=!1){this.locked=!1;for(const r of this.nodes)r.unlock(!0);t||F.emit(G,this)}isChild(t){let r=!1;for(const n of this.nodes)if(t===n||t.id===n.id){r=!0;break}else if(r=n.isChild(t),r)break;return r}},j(qt,"normalAttrs",["name","locked","inject","state","lifeCycles","methods","computed","watch","css","props","emits","slots","dataSources","__TEMPLATE_ID__"]),qt);const it="EVENT_PROJECT_CHANGE",pi="EVENT_PROJECT_ACTIVED",di="EVENT_PROJECT_DEPS_CHANGE",We="EVENT_PROJECT_PAGES_CHANGE",Se="EVENT_PROJECT_BLOCKS_CHANGE",mi="EVENT_PROJECT_APIS_CHANGE",gi="EVENT_PROJECT_META_CHANGE",Gc="EVENT_PROJECT_PUBLISH",Zc="EVENT_PROJECT_FILE_PUBLISH",Qc="EVENT_PROJECT_GEN_SOURCE",tr=class tr{constructor(t){j(this,"id","");j(this,"name","");j(this,"description","");j(this,"homepage","");j(this,"dependencies",[]);j(this,"pages",[]);j(this,"blocks",[]);j(this,"apis",[]);j(this,"meta",[]);j(this,"currentFile",null);j(this,"config",{});j(this,"__BASE_PATH__","/");const{id:r}=t;this.id=r||gt(),this.update(t,!0)}update(t,r=!1){for(const n of tr.attrs){const i=t[n];i&&(this[n]=i)}r||F.emit(it,{model:this,type:"update",data:t})}isPageFile(t){return t.type==="page"}cleanPagesDsl(t){for(const r of t)delete r.dsl,r.children&&r.children.length&&this.cleanPagesDsl(r.children)}toDsl(t){const{id:r}=this,n=tr.attrs.reduce((i,s)=>(i[s]=this[s],i),{});return n.pages&&(n.pages=n.pages.map(i=>sr(ct(z({},i),{dsl:void 0}))),this.cleanPagesDsl(n.pages)),n.blocks&&(n.blocks=n.blocks.map(i=>sr(ct(z({},i),{dsl:void 0})))),z({__VTJ_PROJECT__:!0,id:r},n)}active(t,r=!1){this.currentFile=t,r||F.emit(pi,{model:this,type:"update",data:t})}deactivate(t=!1){this.currentFile=null,t||F.emit(pi,{model:this,type:"update",data:null})}setDeps(t,r=!1){const n=this.dependencies,i=n.findIndex(o=>o.package===t.package);let s;if(i>-1?(s="update",n.splice(i,1,z(z({},n[i]),t))):(s="create",n.push(t)),!r){const o={model:this,type:s,data:t};F.emit(di,o),F.emit(it,o)}}removeDeps(t,r=!1){const n=this.dependencies,i=n.findIndex(s=>s.package===t.package);if(i>-1&&n.splice(i,1),!r){const s={model:this,type:"delete",data:t};F.emit(di,s),F.emit(it,s)}}getPage(t){const r=(n,i=[])=>{for(const s of i){if(s.id===n)return s;if(s.children&&s.children.length){const o=r(n,s.children);if(o)return o}}};return r(t,this.pages)}getPages(){const t=(r=[])=>{let n=[];for(const i of r)i.dir?i.children&&i.children.length&&(n=n.concat(t(i.children))):n.push(i);return n};return t(this.pages)}createPage(t,r,n=!1){return L(this,null,function*(){if(t.id=t.raw?t.name:t.id||gt(),t.type="page",t.dir?t.children=[]:t.dsl=t.dsl||new te({id:t.id,name:oi(t.name)}).toDsl(),r){const i=this.getPage(r);i?i.children?i.children.push(t):i.children=[t]:console.warn(`not found PageFile for id: ${r} `)}else this.pages.push(t);if(!n){const i={model:this,type:"create",data:t};F.emit(We,i),F.emit(it,i)}!this.currentFile&&!t.dir&&(yield Te(1e3),this.active(t,n))})}updatePage(t,r=!1){const n=this.getPage(t.id);if(n?Object.assign(n,t):console.warn(`not found PageFile for id: ${t.id} `),!r){const i={model:this,type:"update",data:t};F.emit(We,i),F.emit(it,i)}}clonePage(t,r,n=!1){var h;const i=gt(),s=`${t.name}Copy`,o=`${t.title}_副本`,a=new te({id:i,name:s}).toDsl(),u=Dt({},t,{id:i,name:s,title:o,dsl:a}),c=r?((h=this.getPage(r))==null?void 0:h.children)||[]:this.pages,l=c.findIndex(f=>f.id===t.id);if(c.splice(l+1,0,u),!n){const f={model:this,type:"clone",data:{source:t,target:u}};F.emit(We,f),F.emit(it,f)}}saveToBlock(t,r=!1){return L(this,null,function*(){this.active(t,r),yield Te(1e3);const n=gt(),i=t.name,s=t.title,o=new te({id:n,name:i}).toDsl(),a=Dt({},t,{id:n,name:i,title:s,dsl:o,type:"block",fromType:"Schema"});if(this.blocks.push(a),!r){const u={model:this,type:"create",data:a};F.emit(Se,u),F.emit(it,u)}})}removePage(t,r=!1){var s;const n=this.getPage(t),i=(o,a)=>{const u=a.findIndex(c=>c.id===o);if(u>=0){a.splice(u,1);return}for(const c of a)c.children&&c.children.length&&i(o,c.children)};if(i(t,this.pages),t===this.homepage&&(this.homepage=""),((s=this.currentFile)==null?void 0:s.id)===t&&this.deactivate(r),!r){const o={model:this,type:"delete",data:n};F.emit(We,o),F.emit(it,o)}}getBlock(t){return this.blocks.find(r=>r.id===t)}createBlock(t,r=!1){return L(this,null,function*(){const n=t.id||gt(),i=oi(t.name);t.id=n,t.type="block",t.dsl=new te({id:n,name:i}).toDsl(),this.blocks.push(t);const s=t.fromType||"Schema";if(!r){const o={model:this,type:"create",data:t};F.emit(Se,o),F.emit(it,o)}!this.currentFile&&s==="Schema"&&(yield Te(1e3),this.active(t,r))})}updateBlock(t,r=!1){const n=this.getBlock(t.id);if(n?(Object.assign(n,t),n.dsl&&(n.dsl.name=t.name)):console.warn(`not found PageFile for id: ${t.id} `),!r){const i={model:this,type:"update",data:t};F.emit(Se,i),F.emit(it,i)}}cloneBlock(t,r=!1){const n=gt(),i=`${t.name}Copy`,s=`${t.title}_副本`,o=new te({id:n,name:i}).toDsl(),a=Dt({},t,{id:n,name:i,title:s,dsl:o}),u=this.blocks.findIndex(c=>c.id===t.id);if(this.blocks.splice(u+1,0,a),!r){const c={model:this,type:"clone",data:{source:t,target:a}};F.emit(Se,c),F.emit(it,c)}}removeBlock(t,r=!1){var o;const n=this.getBlock(t),i=this.blocks,s=i.findIndex(a=>a.id===t);if(s>-1?(i.splice(s,1),((o=this.currentFile)==null?void 0:o.id)===t&&this.deactivate(r)):console.warn(`not found PageFile for id: ${t} `),!r){const a={model:this,type:"delete",data:n};F.emit(Se,a),F.emit(it,a)}}existBlockName(t,r=[]){return this.blocks.some(n=>n.name===t&&!r.includes(n.id))}existPageName(t,r=[]){return this.getPages().some(n=>n.name===t&&!r.includes(n.id))}setApi(t,r=!1){const n=this.apis.find(s=>s.name===t.name||s.id===t.id);let i;if(n?(i="update",Object.assign(n,t)):(i="create",t.id=gt(),this.apis.push(t)),!r){const s={model:this,type:i,data:t};F.emit(mi,s),F.emit(it,s)}}removeApi(t,r=!1){const n=this.apis.findIndex(i=>i.name===t||i.id===t);if(n>-1?this.apis.splice(n,1):console.warn(`not found Api for name: ${t} `),!r){const i={model:this,type:"delete",data:t};F.emit(mi,i),F.emit(it,i)}}existApiName(t,r=[]){return this.apis.some(n=>n.name===t&&!r.includes(n.id))}setMeta(t,r=!1){const n=this.meta.find(s=>s.code===t.code||s.id===t.id);let i;if(n?(i="update",Object.assign(n,t)):(i="create",t.id=gt(),this.meta.push(t)),!r){const s={model:this,type:i,data:t};F.emit(gi,s),F.emit(it,s)}}removeMeta(t,r=!1){const n=this.meta.findIndex(i=>i.code===t||i.id===t);if(n>-1?this.meta.splice(n,1):console.warn(`not found meta for name: ${name} `),!r){const i={model:this,type:"delete",data:t};F.emit(gi,i),F.emit(it,i)}}existMetaCode(t,r=[]){return this.meta.some(n=>n.code===t&&!r.includes(n.id))}setHomepage(t,r=!1){if(this.homepage=t,!r){const n={model:this,type:"update",data:t};F.emit(it,n)}}setConfig(t,r=!1){if(this.config=Object.assign(this.config,t),!r){const n={model:this,type:"update",data:t};F.emit(it,n)}}publish(t){const r={model:this,type:"publish",data:t||this};t?F.emit(Zc,r):F.emit(Gc,r)}genSource(){const t={model:this,type:"gen",data:null};F.emit(Qc,t)}};j(tr,"attrs",["name","homepage","description","dependencies","pages","blocks","apis","meta","config","__BASE_PATH__"]);let ce=tr;const Ye="EVENT_HISTORY_CHANGE",Nr="EVENT_HISTORY_LOAD";let Qi=class{constructor(t,r={}){j(this,"options",{max:50});j(this,"index",-1);j(this,"id");j(this,"items");Object.assign(this.options,r);const{id:n,items:i=[]}=t;this.id=n,this.items=i}toDsl(){const{id:t,items:r}=this;return{id:t,items:r.map(n=>({id:n.id,label:n.label}))}}get(t){return this.items.find(r=>r.id===t)}add(t,r=!1){const{max:n}=this.options,i={id:gt(),label:new Date().toLocaleString(),dsl:sr(t)};if(this.items.unshift(i),this.items.length>n){const s=this.items.splice(n);r||F.emit(Ye,{model:this,type:"delete",data:s.map(o=>o.id)})}this.index=-1,r||F.emit(Ye,{model:this,type:"create",data:i})}remove(t,r=!1){const n=this.items.findIndex(i=>i.id===t);n>-1?(this.items.splice(n,1),n===this.index?this.index=-1:this.index>=this.items.length&&(this.index=this.items.length-1)):console.warn(`not found HistoryItem for id: ${t} `),r||F.emit(Ye,{model:this,type:"delete",data:[t]})}forward(t=!1){const{index:r,items:n}=this;if(r<0)return;--this.index;const i=n[this.index];i&&!t&&F.emit(Nr,{model:this,type:"load",data:i})}backward(t=!1){const{index:r,items:n}=this;if(r>=n.length-1)return;r<0&&(this.index=0),++this.index;const i=n[this.index];i&&!t&&F.emit(Nr,{model:this,type:"load",data:i})}load(t,r=!1){const n=this.items.findIndex(i=>i.id===t);n>=0&&(this.index=n,r||F.emit(Nr,{model:this,type:"load",data:this.items[n]}))}clear(t=!1){this.index=-1;const r=this.items.map(n=>n.id);this.items=[],t||F.emit(Ye,{model:this,type:"clear",data:r})}};const F=Uc();function cy(e){return e instanceof te}function uy(e){return e instanceof Jr}function ly(e){return!!e.__VTJ_BLOCK__}function Xi(e){const t=sr(e);return delete t.id,Array.isArray(t.children)&&(t.children=t.children.map(r=>Xi(r))),t}function hy(e){const t=e.fromType||"Schema";return t==="Schema"?{type:"Schema",id:e.id}:t==="UrlSchema"?{type:"UrlSchema",url:(e.urls||"").split(",")[0]||""}:t==="Plugin"?{type:"Plugin",urls:(e.urls||"").split(","),library:e.library}:""}const v2=Object.freeze(Object.defineProperty({__proto__:null,BUILT_IN_COMPONENTS:Kc,BUILT_IN_LIBRARAY_MAP:sy,BUILT_IN_MATERIALS:iy,BUILT_IN_NAME:ny,BUILT_IN_TAGS:oy,BUILT_IN_VUE:Gi,BUILT_IN_VUE_ROUTER:Zi,Base:Jc,BlockModel:te,DirectiveModel:Je,EVENT_BLOCK_CHANGE:G,EVENT_HISTORY_CHANGE:Ye,EVENT_HISTORY_LOAD:Nr,EVENT_NODE_CHANGE:nt,EVENT_PROJECT_ACTIVED:pi,EVENT_PROJECT_APIS_CHANGE:mi,EVENT_PROJECT_BLOCKS_CHANGE:Se,EVENT_PROJECT_CHANGE:it,EVENT_PROJECT_DEPS_CHANGE:di,EVENT_PROJECT_FILE_PUBLISH:Zc,EVENT_PROJECT_GEN_SOURCE:Qc,EVENT_PROJECT_META_CHANGE:gi,EVENT_PROJECT_PAGES_CHANGE:We,EVENT_PROJECT_PUBLISH:Gc,EventModel:$e,HistoryModel:Qi,NodeModel:Jr,ProjectModel:ce,PropModel:kr,Service:ay,VTJ_CORE_VERSION:ry,cloneDsl:Xi,createNodeFrom:hy,emitter:F,isBlock:cy,isBlockSchema:ly,isNode:uy},Symbol.toStringTag,{value:"Module"}));var fy=Object.defineProperty,py=(e,t,r)=>t in e?fy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xt=(e,t,r)=>py(e,typeof t!="symbol"?t+"":t,r);(function(){if(typeof window>"u"||typeof EventTarget>"u")return;const e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(t,r,n){typeof n!="boolean"&&(n=n||{},n.passive=!1),e.call(this,t,r,n)}})();/**!
|
|
57
57
|
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
|
58
58
|
* @name @vtj/utils
|
|
59
59
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
60
|
-
* @version 0.9.
|
|
60
|
+
* @version 0.9.7
|
|
61
61
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
62
|
-
*/const dy="0.9.
|
|
62
|
+
*/const dy="0.9.7";/**
|
|
63
63
|
* @vue/shared v3.5.13
|
|
64
64
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
65
65
|
* @license MIT
|
|
@@ -72,9 +72,9 @@ version: 2.9.0
|
|
|
72
72
|
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
|
73
73
|
* @name @vtj/renderer
|
|
74
74
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
75
|
-
* @version 0.9.
|
|
75
|
+
* @version 0.9.7
|
|
76
76
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
77
|
-
*/const je="0.9.
|
|
77
|
+
*/const je="0.9.7";var ft=(e=>(e.Runtime="Runtime",e.Design="Design",e.Raw="Raw",e.VNode="VNode",e))(ft||{});const Di=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],G_=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted","errorCaptured","renderTracked","renderTriggered","activated","deactivated"],zu=["vIf","vShow","vModel","vFor","vBind","vHtml"],qu={String,Number,Boolean,Array,Object,Function,Date},Re="VtjPage",Xe="VtjHomepage",Ku="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot".split(","),Ju="component,slot".split(",");function Ge(e,t){return e.map(r=>jc(r)||r.startsWith("/")?r:`${t}${r}`)}function wn(e){return/\.css$/.test(e)}function En(e){return/\.js$/.test(e)}function Wu(e){return/\.json$/.test(e)}function Z_(e){return e.map(t=>`<script src="${ie.append(t,{v:je})}"><\/script>`).join("")}function Q_(e=[]){return e.map(t=>`<link rel="stylesheet" href="${ie.append(t,{v:je})}" />`).join("")}function Yu(e,t=!1){return t&&e.endsWith(".prod.js")?e.replace(".prod.js",".js"):e}function Gu(e,t,r=!1){const n=e.filter(f=>!!f.enabled),i=[],s=[],o=[],a=[],u={},c={},l=[],h={};return n.forEach(({urls:f,assetsUrl:p,library:d,assetsLibrary:m,localeLibrary:b})=>{f==null||f.forEach(E=>{En(E)&&i.push(Yu(E,r)),wn(E)&&s.push(E)}),d&&(a.push(d),u[d]=Ge(f||[],t),b&&(c[d]=b)),p&&o.push(p),m&&l.push(m),d&&m&&(h[m]=d)}),{scripts:Ge(i,t),css:Ge(s,t),materials:Ge(o,t),libraryExports:a,materialExports:Mc(l),materialMapLibrary:h,libraryMap:u,libraryLocaleMap:c}}function Zu(e,t){var s;const{name:r,parent:n,alias:i}=e;return n?(s=t[n])==null?void 0:s[i||r]:t[i||r]}function ps(e){return bt(e)?e:JSON.stringify(e)}function ds(e,t,r){const n=e.CSSStyleSheet;if(n.prototype.replaceSync){const i=new n;i.id=t,i.replaceSync(r);const s=e.document,o=s.adoptedStyleSheets,a=Array.from(o).filter(u=>u.id!==t);s.adoptedStyleSheets=[...a,i]}else{const i=e.document;let s=i.getElementById(t);s?s.innerHTML=r:(s=i.createElement("style"),s.id=t,s.innerHTML=r,i.head.appendChild(s))}}function Qu(e,t){return L(this,null,function*(){const r=yield window.fetch(t).then(n=>n.text()).catch(()=>"");r&&ds(window,e,r)})}function Xu(e,t=window){const r=t.document,n=t.document.head;for(const i of e)if(!r.getElementById(i)){const s=r.createElement("link");s.rel="stylesheet",s.id=i,s.href=i,n.appendChild(s)}}function tl(n,i){return L(this,arguments,function*(e,t,r=window){const s=r.document,o=r.document.head;let a=r[t];return a?a.default||a:new Promise((u,c)=>{for(const l of e){const h=s.createElement("script");h.src=l,h.onload=()=>{a=r[t],a?u(a.default||a):c(null)},h.onerror=f=>{c(f)},o.appendChild(h)}})})}function el(e){return ae(e)||ae(e==null?void 0:e.install)}function rl(e){return Ju.includes(e)}function nl(e){return Ku.includes(e)}function Ne(e,t,r=!1,n=!1){var i;try{const s=['"use strict";',"var __self = arguments[0];"];s.push("return ");let o=(e.value||"").trim();o=o.replace(/this(\W|$)/g,(u,c)=>`__self${c}`),o=s.join(`
|
|
78
78
|
`)+o;const a=`with(${r?"{}":"$scope || {}"}) { ${o} }`;return new Function("$scope",a)(t)}catch(s){if(se.error("parseExpression.error",s,e,(i=t==null?void 0:t.__self)!=null?i:t),n)throw s}}function Zr(e,t,r=!1,n=!1){var s;const i=Ne(e,t,r,n);if(typeof i!="function"&&(se.error("parseFunction.error","not a function",e,(s=t==null?void 0:t.__self)!=null?s:t),n))throw new Error(`"${e.value}" not a function`);return i}function wt(e){return e&&e.type==="JSExpression"}function Le(e){return typeof e=="object"&&e&&e.type==="JSFunction"}function il(e){return wt(e)||Le(e)}function X_(e){return il(e)?e.value:JSON.stringify(e)}let be=null;const tw=us({settings:{type:"form",validSuccess:!0,originResponse:!1,loading:!0,validate:e=>{var t,r;return((t=e.data)==null?void 0:t.code)===0||!!((r=e.data)!=null&&r.success)},failMessage:!0,showError:e=>{rn.error({message:e||"未知错误"})},showLoading:()=>{be&&be.close(),be=Hl.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.05)"})},hideLoading:()=>{be&&(be.close(),be=null)}}});function sl(e,t){const{jsonp:r,request:n}=t;if(e.method==="jsonp")return(i={})=>r(e.url,ct(z({},e.jsonpOptions),{query:i}));{const i=e.headers?Ne(e.headers,{},!0):void 0,s={url:e.url,method:e.method,settings:ct(z({},e.settings),{headers:i})};return(o,a)=>(delete s.data,n.send(Dt(s,a||{},{data:o})))}}function ol(e,t){const{metaQuery:r}=t;if(!r)return;const{code:n,queryCode:i}=e;return(s,o)=>{if(!r){console.warn("adapter.metaQuery is not defined!");return}return r(n,i,s,o)}}function al(e=[],t=[],r){const n={};for(const i of e)n[i.id]=sl(i,r);for(const i of t)n[i.id]=ol(i,r);return n}function cl(){return L(this,arguments,function*(e=[]){oe&&(ms(),e.forEach(t=>ll(oe,t)))})}function ul(e){const t=Le(e.mockTemplate)&&e.mockTemplate.value?Zr(e.mockTemplate,{},!0):void 0;return(...r)=>L(this,null,function*(){let n={};if(t)try{n=yield t.apply(t,r)}catch(i){se.warn("模拟数据模版异常",i)}return oe.mock(n)})}function ll(e,t){if(!t.mock)return;const{url:r,mockTemplate:n}=t;if(r&&n){const i=pn(`${r}(.*)`),s=qc(r,{decode:decodeURIComponent}),o=Ne(n,{},!0);e.mock(i,a=>{var h;const u=ie.parse(a.url)||{},c=a.body instanceof FormData?Iu(a.body):a.body,l=(h=s(a.url))==null?void 0:h.params;return Object.assign(a,{data:c,params:u,query:l}),e.mock(o(a))})}}function ms(){oe&&(oe._mocked={})}const ew={session:!1,authKey:"Authorization",storageKey:"ACCESS_STORAGE",storagePrefix:"__VTJ_",unauthorized:void 0,auth:"/#/login",redirectParam:"r",unauthorizedCode:401,unauthorizedMessage:"登录已经失效,请重新登录!",noPermissionMessage:"无权限访问该页面",appName:""},gs=Symbol("access");class hl{constructor(t){j(this,"options");j(this,"data",null);j(this,"mode",ft.Raw);this.options=Object.assign({},ew,t),this.loadData()}connect(t){const{mode:r,router:n,request:i}=t;this.mode=r,n&&this.mode===ft.Raw&&this.setGuard(n),i&&this.setRequest(i)}login(t){const{storageKey:r,storagePrefix:n,session:i,authKey:s}=this.options;this.setData(t),this.data&&(Lr.save(r,t,{type:"local",prefix:n}),i&&Hr.set(s,this.data.token))}clear(){const{storageKey:t,storagePrefix:r,session:n,authKey:i}=this.options;this.data=null,Lr.remove(t,{type:"local",prefix:r}),n&&Hr.remove(i)}logout(){this.clear(),this.toLogin()}getData(){return this.data?this.data:(this.loadData(),this.data)}getToken(){var t;return this.data||this.loadData(),(t=this.data)==null?void 0:t.token}can(t){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return typeof t=="function"?t(n):li(t).every(i=>n[i]||n[r+"."+i])}some(t){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return li(t).some(i=>n[i]||n[r+"."+i])}install(t){t.config.globalProperties.$access||(t.config.globalProperties.$access=this),t.provide(gs,this)}isAuthPath(t){const{auth:r,isAuth:n}=this.options;if(n)return n(t);if(t.path&&typeof r=="string"){const i=r.split("#")[1]||r;return t.path===i}return!1}toLogin(){const{auth:t,redirectParam:r}=this.options;if(!t)return;const n=r?`?${r}=${encodeURIComponent(location.href)}`:"";typeof t=="function"?t(n):location.href=r?`${t}${n}`:t}setData(t){const{privateKey:r}=this.options;if(Array.isArray(t)&&r){const n=t.map(i=>ui(i,r));this.data=JSON.parse(n.join(""));return}if(typeof t=="string")try{const n=r?ui(t,r):t;n?this.data=JSON.parse(n):console.warn("RSA解密失败或登录信息缺失")}catch(n){console.warn(n)}else this.data=t}loadData(){const{storageKey:t,storagePrefix:r}=this.options,n=Lr.get(t,{type:"local",prefix:r});this.setData(n||null)}isLogined(){const{session:t,authKey:r}=this.options;return t&&r?!!Hr.get(r):!!this.getToken()}hasRoutePermission(t){if(t.name===Re){const r=t.params.id;return r&&this.can(r)}return!0}setGuard(t){t.beforeEach((r,n,i)=>this.guard(r,i))}guard(t,r){return L(this,null,function*(){if(this.isWhiteList(t)||this.isAuthPath(t))return r();if(this.isLogined()){if(this.hasRoutePermission(t))return r();{const{noPermissionMessage:n="无权限访问",unauthorized:i=!1}=this.options;return yield this.showTip(n),ae(i)?(i(),r(!1)):bt(i)?r(i):r(!1)}}r(!1),this.toLogin()})}isWhiteList(t){const{whiteList:r}=this.options;return r?Array.isArray(r)?r.some(n=>t.fullPath.startsWith(n)):r(t):!1}isUnauthorized(t){const{unauthorizedCode:r=401}=this.options;return t.status===r||t.data.code===r}showUnauthorizedAlert(t){return L(this,null,function*(){const{unauthorizedMessage:r="登录已失效"}=this.options;this.isUnauthorized(t)&&(yield this.showTip(r),this.toLogin())})}showTip(t){return L(this,null,function*(){const{alert:r}=this.options;return r?(yield Te(150),yield r(t,{title:"提示",type:"warning"}).catch(()=>!1)):!1})}setRequest(t){t.useRequest(r=>{var n,i;return(n=this.data)!=null&&n.token&&(r.headers[this.options.authKey]=(i=this.data)==null?void 0:i.token),r}),t.useResponse(r=>L(this,null,function*(){return yield this.showUnauthorizedAlert(r),r}),r=>L(this,null,function*(){const n=r.response||r||{};return yield this.showUnauthorizedAlert(n),Promise.reject(r)}))}}function fl(){return ea(gs,null)}class pl{constructor(t){j(this,"__id",null);j(this,"__mode");j(this,"__instance",null);j(this,"__contextRefs",{});j(this,"__refs",{});j(this,"context",{});j(this,"state",{});j(this,"props",{});j(this,"$props",{});j(this,"$refs",{});j(this,"$el",null);j(this,"$emit",null);j(this,"$nextTick",null);j(this,"$parent",null);j(this,"$root",null);j(this,"$attrs",null);j(this,"$slots",null);j(this,"$watch",null);j(this,"$options",null);j(this,"$forceUpdate",null);j(this,"$components",{});j(this,"$libs",{});j(this,"$apis",{});j(this,"__transform",{});const{mode:r,dsl:n,attrs:i}=t;this.__mode=r,n&&(this.__id=n.id||null,this.__transform=n.transform||{}),i&&Object.assign(this,i)}setup(t,r=tn){const n=r.getCurrentInstance();if(!n)return;this.__refs={},this.$refs={},this.context={},this.__contextRefs={},this.__instance=n.proxy;const i=n.appContext.config.globalProperties;Object.assign(this,i),Object.assign(this,t||{}),this.__proxy(),r.onMounted(()=>{this.__proxy()}),r.onUnmounted(()=>{this.__cleanup()}),r.onBeforeUpdate(()=>{this.__refs={},this.$refs={},this.__contextRefs={},this.context={}})}__proxy(){this.__instance&&Di.forEach(t=>{var r;this[t]=(r=this.__instance)==null?void 0:r[t]})}__cleanup(){Di.forEach(t=>{this[t]=null})}__parseFunction(t){var r;if(t)if(this.__mode===ft.Runtime){const{id:n,type:i}=t,s=n&&(r=this.__transform[n])!=null?r:t.value;return Zr({type:i,value:s},this)}else return Zr(t,this)}__parseExpression(t){var r;if(t)if(this.__mode===ft.Runtime){const{id:n,type:i}=t,s=n&&(r=this.__transform[n])!=null?r:t.value;return Ne({type:i,value:s},this)}else return Ne(t,this)}__ref(t=null,r){if(this.__mode!==ft.VNode)return t&&t!==this.__id&&(this.__contextRefs[t]=this),n=>L(this,null,function*(){var s,o;yield Te(0);let i=(n==null?void 0:n.$vtjEl)||(n==null?void 0:n.$el)||((o=(s=n==null?void 0:n._)==null?void 0:s.vnode)==null?void 0:o.el)||n;if(!i){typeof r=="string"&&(delete this.$refs[r],t&&delete this.__refs[t]);return}if(i.nodeType===3&&i.nextSibling&&(i=i.nextSibling),i.__vtj__=t,ft.Design===this.__mode&&(i.__context__=this,i.draggable=!0),t&&(this.__refs[t]=n),typeof r=="function")r(n);else if(r){const a=this.$refs[r];if(a&&n!==a){const u=new Set([].concat(a,n));this.$refs[r]=Array.from(u)}else this.$refs[r]=n}return n})}__clone(t={}){const r=z(z({},this.context),t),n=ct(z({},r),{context:r});return n.context.__proto__=this.context,n.__proto__=this,n}}function Qr(e){var h,f;const{Vue:t=tn,mode:r=ft.Runtime,components:n={},libs:i={},apis:s={},loader:o}=e,a=t.computed(()=>e.dsl),u={$components:n,$libs:i,$apis:s},c=new pl({mode:r,dsl:a.value,attrs:u}),l=t.defineComponent(z({name:a.value.name,props:z({},nw((h=a.value.props)!=null?h:[],c)),setup(p){var y,_,S,v;c.$props=p,c.props=p,a.value.id&&ds(e.window||window,a.value.id,a.value.css||""),c.state=iw(t,(y=a.value.state)!=null?y:{},c);const d=sw(t,(_=a.value.computed)!=null?_:{},c),m=ow((S=a.value.methods)!=null?S:{},c),b=aw(t,a.value.inject,c),E=dl(a.value.dataSources||{},c),g=z(z(z(z({},b),d),m),E);return c.setup(g,t),cw(t,(v=a.value.watch)!=null?v:[],c),{vtj:c}},emits:rw(a.value.emits),expose:["vtj"],render(){if(!a.value.nodes)return null;const p=a.value.nodes||[];return p.length===1?cr(p[0],c,t,o):p.map(d=>cr(d,c,t,o))}},uw((f=a.value.lifeCycles)!=null?f:{},c)));return{renderer:t.markRaw(l),context:c}}function rw(e=[]){return e.map(t=>bt(t)?t:t.name)}function nw(e=[],t){const r=n=>n?(Array.isArray(n)?n:[n]).map(i=>qu[i]):void 0;return e.map(n=>bt(n)?{name:n}:{name:n.name,type:n.type,required:n.required,default:wt(n.default)?t.__parseExpression(n.default):n.default}).reduce((n,i)=>(n[i.name]={type:r(i.type),required:i.required,default:i.default},n),{})}function iw(e,t,r){return e.reactive(Object.keys(t||{}).reduce((n,i)=>{let s=t[i];return wt(s)?s=r.__parseExpression(s):Le(s)&&(s=r.__parseFunction(s)),n[i]=s,n},{}))}function sw(e,t,r){return Object.entries(t!=null?t:{}).reduce((n,[i,s])=>(n[i]=e.computed(r.__parseFunction(s)),n),{})}function ow(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}function aw(e,t=[],r){return t.reduce((n,i)=>{var c;const{name:s,from:o}=i||{};i.default;const a=wt(o)?r.__parseExpression(o)||s:o!=null?o:s,u=wt(i.default)?r.__parseExpression(i.default):(c=i.default)!=null?c:null;return n[s]=e.inject(a,u),n},{})}function dl(e,t){return Object.keys(e).reduce((r,n)=>{const i=e[n];if(i.type==="mock")r[n]=ul(i);else if(i.ref){const s=t.$apis[i.ref],o=Le(i.transform)?i.transform.value?t.__parseFunction(i.transform):void 0:i.transform;r[n]=(...a)=>L(this,null,function*(){const u=yield s.apply(t,a);return o?o(u):u})}return r},{})}function cw(e,t=[],r){t.forEach(n=>{e.watch(r.__parseExpression(n.source),r.__parseFunction(n.handler),{deep:n.deep,immediate:n.immediate})})}function uw(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}let Kn=[];const ml=e=>e;function vs(r){return L(this,arguments,function*(e,t=window){const{urls:n=[],library:i}=e,s=n.filter(a=>En(a));if(s.length===0||!i)return null;const o=n.filter(a=>wn(a));return o.length&&Xu(o,t),yield tl(s,i,t).catch(a=>(console.warn("loadScriptUrl error",s,i,a),null))})}function Xr(e){const{getDsl:t,getDslByUrl:r,options:n}=e;return n.window&&(Kn.forEach(i=>{delete n.window[i]}),Kn=[]),(i,s,o=tn)=>!s||typeof s=="string"?i:s.type==="Schema"&&s.id?o.defineAsyncComponent(()=>L(this,null,function*(){const a=yield t(s.id);return a&&(a.name=i),a?Qr(ct(z({},n),{Vue:o,dsl:a,mode:ft.Runtime,loader:Xr(e)})).renderer:null})):s.type==="UrlSchema"&&s.url?o.defineAsyncComponent(()=>L(this,null,function*(){const a=yield r(s.url);return a&&(a.name=i),a?Qr(ct(z({},n),{Vue:o,dsl:a,mode:ft.Runtime,loader:Xr(e)})).renderer:null})):s.type==="Plugin"?(s.library&&Kn.push(s.library),o.defineAsyncComponent(()=>L(this,null,function*(){return(yield vs(s,n.window))||(console.warn("getPlugin result is null",s),null)}))):i}function cr(e,t,r=tn,n=ml){var m;if(!e||!e.name||e.invisible)return null;const i=(m=r.getCurrentInstance())==null?void 0:m.appContext,{id:s=null,directives:o=[]}=e,{vIf:a,vFor:u,vShow:c,vModels:l,vBind:h,vHtml:f,others:p}=hw(o);if(a&&!fw(a,t))return null;const d=b=>{var O,V,w,T;const E=b.$components,g=(()=>{var C,I,D,k;if(e.name==="component")return pw(b,(C=e.props)==null?void 0:C.is);if(e.name==="slot")return e.name;const M=n(e.name,e.from,r);return bt(M)?rl(M)||nl(M)?M:(k=(D=E[M])!=null?D:(I=i==null?void 0:i.app)==null?void 0:I.component(M))!=null?k:M:M})(),y=dw(s,(O=e.props)!=null?O:{},b),_=mw(r,(V=e.events)!=null?V:{},b);if(e.name==="slot")return gw(r,e,y,b,n);h&&Object.assign(y,b.__parseExpression(h.value)),c&&(y.style=Object.assign((w=y.style)!=null?w:{},yw(c,b))),f&&Object.assign(y,bw(f,b)),l.forEach(M=>{Object.assign(y,_w(r,M,b))});const S=ww(r,(T=e.children)!=null?T:[],b,n,e);let v=r.createVNode(g,z(z({},y),_),S);const x=i?lw(i,p,b):[];return x.length&&(v=r.withDirectives(v,x)),v};return u?xw(u,d,t):d(t)}function lw(e,t,r){const n=e.app;return t.map(i=>{const s=typeof i.name=="string"?n.directive(i.name):r.__parseExpression(i.name);if(!s)return null;const o=[s];return i.value&&o.push(r.__parseExpression(i.value)),i.arg&&o.push(i.arg),i.modifiers&&o.push(i.modifiers),o}).filter(i=>!!i)}function hw(e=[]){const t=e.find(u=>Nt(u.name)==="vIf"),r=e.find(u=>Nt(u.name)==="vFor"),n=e.find(u=>Nt(u.name)==="vShow"),i=e.find(u=>Nt(u.name)==="vBind"),s=e.find(u=>Nt(u.name)==="vHtml"),o=e.filter(u=>Nt(u.name)==="vModel"),a=e.filter(u=>!zu.includes(Nt(u.name)));return{vIf:t,vFor:r,vShow:n,vModels:o,vBind:i,others:a,vHtml:s}}function fw(e,t){return!!t.__parseExpression(e.value)}function pw(e,t){return t?wt(t)?e.__parseExpression(t):t:"div"}function dw(e,t,r){const n=Object.keys(t||{}).reduce((i,s)=>{let o=t[s];return wt(o)?o=r.__parseExpression(o):Le(o)&&(o=r.__parseFunction(o)),i[s]=o,i},{});return n.ref=r.__ref(e,n.ref),n}function mw(e,t,r){const n=["passive","capture","once"],i={capture:"Capture",once:"Once",passive:"OnceCapture"};return Object.keys(t||{}).reduce((s,o)=>{const a=t[o],u=ys(a.modifiers),c=u.find(f=>n.includes(f)),l="on"+un(o)+(c&&i[c]||""),h=r.__parseFunction(a.handler);return h&&(s[l]=e.withModifiers(h,u)),s},{})}function ys(e={},t=!1){const r=Object.keys(e);return t?r.map(n=>"."+n):r}function gw(e,t,r,n,i){var u;const{children:s}=t,o=vw(t,n),a=(u=n.$slots)==null?void 0:u[o.name];return a?a(r):s?bt(s)?e.createTextVNode(s):wt(s)?e.createTextVNode(ps(n.__parseExpression(s))):Array.isArray(s)?s.map(c=>cr(c,n,e,i)):null:null}function vw(e,t){const{props:r}=e,n=(r==null?void 0:r.name)||"default";return{name:wt(n)?t.__parseExpression(n):n,params:[]}}function yw(e,t){return t.__parseExpression(e.value)?{}:{display:"none"}}function bw(e,t){return{innerHTML:t.__parseExpression(e.value)||""}}function _w(e,t,r){var a;const n={type:"JSFunction",value:(a=t.value)!=null&&a.value?`(v) => {
|
|
79
79
|
${t.value.value} = v;
|
|
80
80
|
}`:"(v) => {}"},i=r.__parseFunction(n),s=ys(wt(t.modifiers)?r.__parseExpression(t.modifiers):t.modifiers),o=wt(t.arg)?r.__parseExpression(t.arg):t.arg||"modelValue";return{[o]:r.__parseExpression(t.value),[`onUpdate:${o}`]:s.length&&i?e.withModifiers(i,s):i}}function ww(e,t,r,n,i){if(!t)return null;if(bt(t))return{default:()=>t};if(wt(t))return{default:()=>ps(r.__parseExpression(t))};if(Array.isArray(t)&&t.length>0){const s=Ew(t),o=a=>!a||!i?{}:i!=null&&i.id&&Object.keys(a).length?{[`scope_${i.id}`]:a}:{};return Object.entries(s).reduce((a,[u,{nodes:c,params:l}])=>(a[u]=h=>{const f=l.length?Fc(h!=null?h:{},l):o(h);return c.map(p=>cr(p,r.__clone(f),e,n))},a),{})}return null}function Ew(e){const t={default:{params:[],nodes:[]}};for(const r of e){const n=Sw(r.slot),i=n.name;t[i]?(t[i].nodes.push(r),t[i].params=t[i].params.concat(n.params)):t[i]={nodes:[r],params:n.params}}return t}function Sw(e="default"){return bt(e)?{name:e,params:[]}:z({params:[]},e)}function xw(e,t,r){const{value:n,iterator:i}=e,{item:s="item",index:o="index"}=i||{};let a=r.__parseExpression(n)||[];return Number.isInteger(a)&&(a=new Array(a).fill(!0).map((u,c)=>c+1)),Array.isArray(a)?a.map((u,c)=>t(r.__clone({[s]:u,[o]:c}))):(console.warn("[vForRender]:",`${n==null?void 0:n.value} is not a Arrary`),[])}function Tw(e){return Pl()?(kl(e),!0):!1}function bs(e){return typeof e=="function"?e():Gn(e)}const gl=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const $w=e=>e!=null,Ow=()=>{};function Aw(e){return ia()}function jw(...e){if(e.length!==1)return jl(...e);const t=e[0];return typeof t=="function"?Rl(Dl(()=>({get:t,set:Ow}))):er(t)}function Rw(e,t){Aw()&&Cl(e,t)}const Dw=gl?window:void 0,Cw=gl?window.document:void 0;function Pw(e){var t;const r=bs(e);return(t=r==null?void 0:r.$el)!=null?t:r}function kw(){const e=er(!1),t=ia();return t&&Nl(()=>{e.value=!0},t),e}function Nw(e){const t=kw();return na(()=>(t.value,!!e()))}function Bw(e,t,r={}){const f=r,{window:n=Dw}=f,i=Tn(f,["window"]);let s;const o=Nw(()=>n&&"MutationObserver"in n),a=()=>{s&&(s.disconnect(),s=void 0)},u=na(()=>{const p=bs(e),d=(Array.isArray(p)?p:[p]).map(Pw).filter($w);return new Set(d)}),c=ra(()=>u.value,p=>{a(),o.value&&p.size&&(s=new MutationObserver(t),p.forEach(d=>s.observe(d,i)))},{immediate:!0,flush:"post"}),l=()=>s==null?void 0:s.takeRecords(),h=()=>{c(),a()};return Tw(h),{isSupported:o,stop:h,takeRecords:l}}function Iw(e=null,t={}){var r,n,i;const{document:s=Cw,restoreOnUnmount:o=h=>h}=t,a=(r=s==null?void 0:s.title)!=null?r:"",u=jw((n=e!=null?e:s==null?void 0:s.title)!=null?n:null),c=e&&typeof e=="function";function l(h){if(!("titleTemplate"in t))return h;const f=t.titleTemplate||"%s";return typeof f=="function"?f(h):bs(f).replace(/%s/g,h)}return ra(u,(h,f)=>{h!==f&&s&&(s.title=l(typeof h=="string"?h:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&s&&!c&&Bw((i=s.head)==null?void 0:i.querySelector("title"),()=>{s&&s.title!==u.value&&(u.value=l(s.title))},{childList:!0}),Rw(()=>{if(o){const h=o(a,u.value||"");h!=null&&s&&(s.title=h)}}),u}const ta=en({name:"VtjPageContainer",setup(){return L(this,null,function*(){const e=ws(),t=sa(),r=t.params.id,n=r?e.getPage(r):e.getHomepage(),i=n?yield e.getRenderComponent(n.id):null,s=er(Symbol());return n&&(Object.assign(t.meta,n.meta||{},{cache:n.cache}),Iw(n.title||"VTJ")),{provider:e,component:i,file:n,query:t.query,meta:t.meta,sid:s,route:t}})},render(){const{component:e,query:t,sid:r}=this;return e?Wn(e,ct(z({},t),{key:r})):Wn("div","页面不存在")},activated(){this.meta.cache===!1&&(this.sid=Symbol())}}),Mw={"data-l-h6o7ki7":"",class:"vtj-startup__wrapper"},Fw={"data-l-h6o7ki7":"",class:"vtj-startup"},Lw={"data-l-h6o7ki7":"",class:"vtj-startup__name"},Vw={"data-l-h6o7ki7":""},Hw={"data-l-h6o7ki7":"",class:"vtj-startup__tagline"},Uw={"data-l-h6o7ki7":"",class:"vtj-startup__actions"},vl=en({__name:"Startup",props:{name:{default:"VTJ.PRO"},tagline:{default:"基于 Vue3 + TypeScript 快速打造高生产力的低代码研发平台"},actionText:{default:"开始设计"},link:{}},setup(e){((n,i)=>{let s=document.getElementById("h6o7ki7");s||(s=document.createElement("style"),s.id="h6o7ki7",document.head.appendChild(s),s.innerHTML=i)})("h6o7ki7",`
|
|
@@ -142,4 +142,4 @@ version: 2.9.0
|
|
|
142
142
|
}
|
|
143
143
|
.vtj-startup__actions button[data-l-h6o7ki7]:hover{
|
|
144
144
|
opacity: 0.7;
|
|
145
|
-
}`);const t=e,r=()=>{if(typeof window<"u"){if(t.link){typeof t.link=="function"?t.link():window.location.href=t.link;return}let n=(window.__VTJ_LINK__||{}).href||window.location.pathname+"__vtj__/#/";window.location.href=n}};return(n,i)=>(Yn(),Ol("div",Mw,[me("div",Fw,[me("h1",Lw,[me("span",Vw,An(t.name),1)]),me("div",Hw,An(t.tagline),1),me("div",Uw,[me("button",{"data-l-h6o7ki7":"",onClick:r},An(t.actionText),1)])])]))}}),zw=en({name:"VtjStartupContainer",render(){return Wn(vl)}}),_s=Symbol("Provider");var yl=(e=>(e.Production="production",e.Development="development",e))(yl||{});class bl extends Jc{constructor(r){super();j(this,"mode");j(this,"globals",{});j(this,"modules",{});j(this,"adapter",{request:tw,jsonp:Vu});j(this,"apis",{});j(this,"dependencies",{});j(this,"materials",{});j(this,"library",{});j(this,"service");j(this,"project",null);j(this,"components",{});j(this,"nodeEnv","development");j(this,"router",null);j(this,"materialPath","./");j(this,"urlDslCaches",{});this.options=r;const{service:n,mode:i=ft.Raw,dependencies:s,materials:o,project:a={},adapter:u={},globals:c={},modules:l={},router:h=null,materialPath:f="./",nodeEnv:p="development"}=r;this.mode=i,this.modules=l,this.service=n,this.router=h,this.materialPath=f,this.nodeEnv=p,s&&(this.dependencies=s),o&&(this.materials=o),Object.assign(this.globals,c),Object.assign(this.adapter,u);const{access:d,request:m}=this.adapter;d&&d.connect({mode:i,router:h,request:m}),a&&i!==ft.Design?this.load(a):this.project=a,oe.setup({timeout:"50-500"})}createMock(r){return(...n)=>L(this,null,function*(){let i={};if(r)try{i=yield r.apply(r,n)}catch(s){se.warn("模拟数据模版异常",s)}return oe.mock(i)})}load(r){return L(this,null,function*(){const n=this.modules[`.vtj/projects/${r.id}.json`];if(this.project=n?yield n():yield this.service.init(r),!this.project)throw new Error("project is null");const{apis:i=[],meta:s=[]}=this.project,o=window;o.CKEDITOR_VERSION=void 0,this.mode===ft.Raw?yield this.loadDependencies(o):yield this.loadAssets(o),this.apis=al(i,s,this.adapter),ms(),cl(i),this.initRouter(),this.triggerReady()})}loadDependencies(r){return L(this,null,function*(){const n=Object.entries(this.dependencies);for(const[i,s]of n)r[i]||(r[i]=this.library[i]=yield s())})}loadAssets(r){return L(this,null,function*(){const{dependencies:n=[]}=this.project,{dependencies:i,library:s,components:o,materialPath:a,nodeEnv:u}=this,{libraryExports:c,libraryMap:l,materials:h,materialExports:f,materialMapLibrary:p}=Gu(n,a,u==="development");for(const d of c){const m=i[d],b=r[d];if(b)s[d]=b;else if(m)r[d]=s[d]=yield m();else{const E=l[d]||[];for(const g of E)wn(g)&&(yield Qu(d,ie.append(g,{v:je}))),En(g)&&(yield ji(ie.append(g,{v:je})));s[d]=r[d]}}if(u==="development"){for(const m of h)yield ji(ie.append(m,{v:je}));const d=this.materials||{};for(const m of f){const b=r[p[m]],E=Kc[m];if(E)b&&E.forEach(g=>{o[g]=b[g]});else{const g=d[m]?(yield d[m]()).default:r[m];g&&b&&(g.components||[]).forEach(y=>{o[y.name]=Zu(y,b)})}}}})}initRouter(){const{router:r,project:n,options:i,adapter:s}=this;if(!r)return;const{routeAppendTo:o,pageRouteName:a="page",routeMeta:u}=i,c=o?"":"/",l={path:`${c}${a}/:id`,name:Re,component:ta},h={path:c,name:Xe,component:n!=null&&n.homepage?ta:s.startupComponent||zw,meta:u};r.hasRoute(Re)&&r.removeRoute(Re),r.hasRoute(Xe)&&r.removeRoute(Xe),o?(r.addRoute(o,l),r.addRoute(o,h)):(r.addRoute(l),r.addRoute(h))}install(r){const n=r.config.globalProperties.installed||{};for(const[i,s]of Object.entries(this.library))!n[i]&&el(s)&&(r.use(s),n[i]=!0);this.options.install&&r.use(this.options.install),this.adapter.access&&r.use(this.adapter.access),r.provide(_s,this),r.config.globalProperties.installed=n,this.mode===ft.Design&&(r.config.errorHandler=(i,s,o)=>{const a=s==null?void 0:s.$options.name,u=typeof i=="string"?i:(i==null?void 0:i.message)||(i==null?void 0:i.msg)||"未知错误",c=`[ ${a} ] ${u} ${o}`;console.error("[VTJ Error]:",{err:i,instance:s,info:o},i==null?void 0:i.stack),rn.error({title:"未处理的异常:请在控制台查看详情",message:c})})}getFile(r){const{blocks:n=[]}=this.project||{};return this.getPage(r)||n.find(i=>i.id===r)||null}getPage(r){const{pages:n=[]}=this.project||{},i=(s,o=[])=>{for(const a of o){if(a.id===s)return a;if(a.children&&a.children.length){const u=i(s,a.children);if(u)return u}}};return i(r,n)||null}getHomepage(){const{homepage:r}=this.project||{};return r?this.getPage(r):null}getDsl(r){return L(this,null,function*(){const n=this.modules[`.vtj/files/${r}.json`];return n?yield n():this.service.getFile(r,this.project||void 0).catch(()=>null)})}getDslByUrl(r){return L(this,null,function*(){return this.urlDslCaches[r]||(this.urlDslCaches[r]=this.adapter.request.send({url:r,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(i=>i.data).catch(()=>null))})}createDslRenderer(r,n={}){const{library:i,components:s,mode:o,apis:a}=this,u=z({mode:o,Vue:i.Vue,components:s,libs:i,apis:a,window},n),c=Xr({getDsl:l=>L(this,null,function*(){return(yield this.getDsl(l))||null}),getDslByUrl:l=>L(this,null,function*(){return(yield this.getDslByUrl(l))||null}),options:u});return Qr(ct(z({},u),{dsl:r,loader:c}))}getRenderComponent(r,n){return L(this,null,function*(){var u;const i=this.getFile(r);if(!i)return se.warn(`Can not find file: ${r}`),null;n&&n(i);const s=`.vtj/vue/${r}.vue`,o=this.modules[s];if(o)return(u=yield o())==null?void 0:u.default;const a=yield this.getDsl(i.id);return a?this.createDslRenderer(a).renderer:(se.warn(`Can not find dsl: ${r}`),null)})}defineUrlSchemaComponent(r,n){return Os(()=>L(this,null,function*(){const i=yield this.getDslByUrl(r);return i?(i.name=n||i.name,this.createDslRenderer(i).renderer):null}))}definePluginComponent(r){return Os(()=>L(this,null,function*(){return yield vs(r,window)}))}}function qw(e){const t=new bl(e);return{provider:t,onReady:r=>t.ready(r)}}function ws(e={}){const t=ea(_s);if(!t)throw new Error("Can not find provider");if(t.nodeEnv==="development"){const{id:r,version:n}=e;r&&n&&L(this,null,function*(){const i=yield t.getDsl(r);(i==null?void 0:i.__VERSION__)!==n&&rn.warning({title:i==null?void 0:i.name,message:"当前组件源码版本与运行时版本不一致,请重新发布组件"})})}return t}const Es=new cs({settings:{type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:e=>{var t;return((t=e.data)==null?void 0:t.code)===0},showError:e=>{rn.error({message:e||"未知错误"})}}}),Kw=(e="/__vtj__/api/:type.json")=>(t,r)=>Es.send({url:e,method:"post",params:{type:t},data:{type:t,data:r}}),Jw=(e="/__vtj__/api/uploader.json")=>(t,r)=>L(void 0,null,function*(){return yield Es.send({url:e,method:"post",data:{files:t,projectId:r},settings:{type:"data"}}).then(n=>n&&n[0]?n[0]:null).catch(()=>null)});class Sn{constructor(){j(this,"api");j(this,"pluginCaches",{});j(this,"uploader");this.api=Kw(),this.uploader=Jw()}getExtension(){return L(this,null,function*(){console.log("BaseService.getExtension")})}init(t){return L(this,null,function*(){return console.log("BaseService.init",t),{}})}saveProject(t){return L(this,null,function*(){return!!(yield this.api("saveProject",t).catch(()=>!1))})}saveMaterials(t,r){return L(this,null,function*(){return console.log("BaseService.saveMaterials",t,r),!1})}saveFile(t){return L(this,null,function*(){return console.log("BaseService.saveFile",t),!1})}getFile(t){return L(this,null,function*(){return console.log("BaseService.getFile",t),{}})}removeFile(t){return L(this,null,function*(){return console.log("BaseService.removeFile",t),!1})}saveHistory(t){return L(this,null,function*(){return console.log("BaseService.saveHistory",t),!1})}removeHistory(t){return L(this,null,function*(){return console.log("BaseService.removeHistory",t),!1})}getHistory(t){return L(this,null,function*(){return console.log("BaseService.getHistory",t),{}})}getHistoryItem(t,r){return L(this,null,function*(){return console.log("BaseService.getHistoryItem",t,r),{}})}saveHistoryItem(t,r){return L(this,null,function*(){return console.log("BaseService.saveHistoryItem",t,r),!1})}removeHistoryItem(t,r){return L(this,null,function*(){return console.log("BaseService.removeHistoryItem",t,r),!1})}publish(t){return L(this,null,function*(){return!!(yield this.api("publish",t).catch(()=>!1))})}publishFile(t,r){return L(this,null,function*(){return!!(yield this.api("publishFile",{project:t,file:r}).catch(()=>!1))})}genVueContent(t,r){return L(this,null,function*(){return yield this.api("genVueContent",{project:t,dsl:r}).catch(()=>"")})}createRawPage(t){return L(this,null,function*(){return yield this.api("createRawPage",t).catch(()=>"")})}removeRawPage(t){return L(this,null,function*(){return yield this.api("removeRawPage",t).catch(()=>"")})}uploadStaticFile(t,r){return L(this,null,function*(){return yield this.uploader(t,r).catch(()=>null)})}getStaticFiles(t){return L(this,null,function*(){return yield this.api("getStaticFiles",t).catch(()=>[])})}removeStaticFile(t,r){return L(this,null,function*(){return yield this.api("removeStaticFile",{name:t,projectId:r}).catch(()=>"")})}clearStaticFiles(t){return L(this,null,function*(){return yield this.api("clearStaticFiles",t).catch(()=>"")})}getPluginMaterial(t){return L(this,null,function*(){const{urls:r=[]}=t,n=r.filter(s=>Wu(s))[0];return n?this.pluginCaches[n]||(this.pluginCaches[n]=Es.send({url:n,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(s=>s.data).catch(()=>null)):null})}genSource(t){return L(this,null,function*(){return console.log("BaseService.genSource",t),""})}}const mt=new ls({type:"local",expired:0,prefix:"__VTJ_"});class Ww extends Sn{init(t){const r=new ce(t),n=mt.get(`project_${r.id}`),i=Object.assign(r.toDsl(),n||{});return mt.save(`project_${r.id}`,i),Promise.resolve(i)}saveProject(t){const r=new ce(t);return mt.save(`project_${r.id}`,r.toDsl()),Promise.resolve(!0)}saveMaterials(t,r){return mt.save(`materials_${t.id}`,fn(r)),Promise.resolve(!0)}saveFile(t){return mt.save(`file_${t.id}`,t),Promise.resolve(!0)}getFile(t){const r=mt.get(`file_${t}`);return r?Promise.resolve(r):Promise.reject(null)}removeFile(t){return mt.remove(`file_${t}`),Promise.resolve(!0)}saveHistory(t){return mt.save(`history_${t.id}`,t),Promise.resolve(!0)}removeHistory(t){const r=mt.get(`history_${t}`);if(r){const n=(r.items||[]).map(i=>i.id);this.removeHistoryItem(t,n),mt.remove(`history_${t}`)}return Promise.resolve(!0)}getHistory(t){const r=mt.get(`history_${t}`),n=new Qi(r||{id:t});return Promise.resolve(n.toDsl())}getHistoryItem(t,r){const n=mt.get(`history_${t}_${r}`);return Promise.resolve(n)}saveHistoryItem(t,r){return mt.save(`history_${t}_${r.id}`,r),Promise.resolve(!0)}removeHistoryItem(t,r){return r.forEach(n=>{mt.remove(`history_${t}_${n}`)}),Promise.resolve(!0)}}class _l extends Sn{constructor(){super(...arguments);j(this,"projects",{});j(this,"materials",{});j(this,"files",{});j(this,"histories",{});j(this,"historyItems",{})}init(r){const n=new ce(r),i=this.projects[n.id]||{},s=Object.assign(n.toDsl(),i);return this.projects[s.id]=s,Promise.resolve(s)}saveProject(r){const n=new ce(r);return this.projects[n.id]=n.toDsl(),Promise.resolve(!0)}saveMaterials(r,n){return r.id&&(this.materials[r.id]=fn(n)),Promise.resolve(!0)}saveFile(r){return this.files[r.id]=r,Promise.resolve(!0)}getFile(r){const n=this.files[r];return n?Promise.resolve(n):Promise.reject(null)}removeFile(r){return delete this.files[r],Promise.resolve(!0)}saveHistory(r){return this.histories[r.id]=r,Promise.resolve(!0)}removeHistory(r){const n=this.histories[r];if(n){const i=(n.items||[]).map(s=>s.id);this.removeHistoryItem(r,i),delete this.historyItems[r]}return Promise.resolve(!0)}getHistory(r){const n=this.histories[r],i=new Qi(n||{id:r});return Promise.resolve(i)}getHistoryItem(r,n){const i=`${r}_${n}`,s=this.historyItems[i]||{};return Promise.resolve(s)}saveHistoryItem(r,n){const i=`${r}_${n.id}`;return this.historyItems[i]=n,Promise.resolve(!0)}removeHistoryItem(r,n){return n.forEach(i=>{const s=`${r}_${i}`;delete this.historyItems[s]}),Promise.resolve(!0)}}let Jn=null;function Yw(){return Jn||(Jn=new _l,Jn)}class Gw extends Sn{constructor(){super(...arguments);j(this,"getFileCaches",{})}getExtension(){return L(this,null,function*(){return yield this.api("getExtension",{}).catch(()=>{})})}init(r){return L(this,null,function*(){return(yield this.api("init",r).catch(()=>null))||{}})}saveProject(r){return L(this,null,function*(){return!!(yield this.api("saveProject",r).catch(()=>!1))})}saveMaterials(r,n){return L(this,null,function*(){return!!(yield this.api("saveMaterials",{project:r,materials:fn(n)}).catch(()=>!1))})}saveFile(r){return L(this,null,function*(){return!!(yield this.api("saveFile",r).catch(()=>!1))})}getFile(r){return L(this,null,function*(){return this.getFileCaches[r]||(this.getFileCaches[r]=this.api("getFile",r).catch(()=>null)).finally(()=>{delete this.getFileCaches[r]})})}removeFile(r){return L(this,null,function*(){return!!(yield this.api("removeFile",r).catch(()=>!1))})}saveHistory(r){return L(this,null,function*(){return!!(yield this.api("saveHistory",r).catch(()=>!1))})}removeHistory(r){return L(this,null,function*(){return!!(yield this.api("removeHistory",r).catch(()=>!1))})}getHistory(r){return L(this,null,function*(){return(yield this.api("getHistory",r).catch(()=>null))||{}})}getHistoryItem(r,n){return L(this,null,function*(){return(yield this.api("getHistoryItem",{fId:r,id:n}).catch(()=>null))||{}})}saveHistoryItem(r,n){return L(this,null,function*(){return!!(yield this.api("saveHistoryItem",{fId:r,item:n}).catch(()=>!1))})}removeHistoryItem(r,n){return L(this,null,function*(){return!!(yield this.api("removeHistoryItem",{fId:r,ids:n}).catch(()=>!1))})}}function wl(e,t,r=[]){return r.map(n=>{const{id:i,title:s,icon:o,children:a,hidden:u}=n;return{id:i,title:s,icon:o,hidden:u,url:`${e}/${t}/${i}`,children:a&&a.length?wl(e,t,a):void 0}})}function El(e,t){if(!t)return e;let r=[];for(const n of e)if(n.children&&n.children.length){const i=El(n.children,t);i.length&&(n.children=i,r.push(n))}else t.can(n.id.toString())&&r.push(n);return r}function Zw(e){const{menuPathPrefix:t="",pageRouteName:r="page",disableMenusFilter:n=!1}=e||{},i=ws(),s=sa(),o=fl(),a=er(!1),u=er(!1),c=i.project;Al(()=>{const{name:f,params:p,meta:d}=s;if(f===Re){const m=i.getPage(p.id);a.value=!(m!=null&&m.mask),u.value=!!(m!=null&&m.pure)}else if(f===Xe){const m=i.getHomepage();a.value=!(m!=null&&m.mask),u.value=!!(m!=null&&m.pure)}else a.value=!d.mask,u.value=!!d.pure});const l=wl(t,r,c==null?void 0:c.pages),h=c==null?void 0:c.config;return{disabled:a,logo:h==null?void 0:h.logo,themeSwitchable:h==null?void 0:h.themeSwitchable,title:(h==null?void 0:h.title)||(c==null?void 0:c.description)||(c==null?void 0:c.name)||"VTJ App",menus:n?l:El(l,o),pure:u}}const x2=Object.freeze(Object.defineProperty({__proto__:null,ACCESS_KEY:gs,Access:hl,BUILD_IN_TAGS:Ju,BUILT_IN_DIRECTIVES:zu,BaseService:Sn,CONTEXT_HOST:Di,Context:pl,ContextMode:ft,DATA_TYPES:qu,HOMEPAGE_ROUTE_NAME:Xe,HTML_TAGS:Ku,JSCodeToString:X_,LIFE_CYCLES_LIST:G_,LocalService:Gw,MemoryService:_l,NodeEnv:yl,PAGE_ROUTE_NAME:Re,Provider:bl,Startup:vl,StorageService:Ww,VTJ_RENDERER_VERSION:je,adoptedStyleSheets:ds,createAssetScripts:Z_,createAssetsCss:Q_,createDataSources:dl,createLoader:Xr,createMemoryService:Yw,createMetaApi:ol,createMock:ul,createProvider:qw,createRenderer:Qr,createSchemaApi:sl,createSchemaApis:al,defaultLoader:ml,fillBasePath:Ge,getModifiers:ys,getPlugin:vs,getRawComponent:Zu,isBuiltInTag:rl,isCSSUrl:wn,isJSCode:il,isJSExpression:wt,isJSFunction:Le,isJSON:Wu,isJSUrl:En,isNativeTag:nl,isVuePlugin:el,loadCss:Qu,loadCssUrl:Xu,loadScriptUrl:tl,mockApi:ll,mockApis:cl,mockCleanup:ms,nodeRender:cr,parseDeps:Gu,parseExpression:Ne,parseFunction:Zr,providerKey:_s,removeProdFlag:Yu,toString:ps,useAccess:fl,useMask:Zw,useProvider:ws},Symbol.toStringTag,{value:"Module"})),Qw=en({__name:"app",setup(e){return(t,r)=>{const n=Bl("router-view");return Yn(),As(Gn(zl),{locale:Gn(Ul)},{default:js(()=>[(Yn(),As(Il,null,{default:js(()=>[Ml(n)]),_:1}))]),_:1},8,["locale"])}}}),Xw=[{path:"/",name:"home",component:()=>yr(()=>import("./index-Bo3SubWr.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]),import.meta.url)},{path:"/preview/:id",name:"preview",component:()=>yr(()=>import("./preview-BK90FAA6.js"),__vite__mapDeps([20,13,14,1,2,3,4,5,6,7,8,9,10,11,12,15,16,17]),import.meta.url)},{path:"/page/:id",name:"page",component:()=>yr(()=>import("./page-OZVGcgfg.js"),__vite__mapDeps([21,13,14,1,2,12,6,5,10,8,7,11,3,4,9,15,16,17]),import.meta.url),meta:{pure:!0}},{path:"/auth",name:"auth",component:()=>yr(()=>import("./auth-BNLa1o8j.js"),__vite__mapDeps([22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,23]),import.meta.url)}],t2=Ll({history:Vl(),routes:Xw}),e2="RRO_IDE_ACCESS_STORAGE__",Ss=Fl(Qw),r2=new hl({storageKey:e2});Ss.use(r2);Ss.use(t2);Ss.mount("#app");export{Qc as $,e2 as A,We as B,di as C,hl as D,pi as E,Gc as F,Zc as G,qw as H,G as I,ae as J,Dv as K,wa as L,nt as M,Gw as N,Dt as O,Ye as P,te as Q,w0 as R,g0 as S,Qi as T,Le as U,Nr as V,hy as W,oi as X,Cv as Y,at as Z,wt as _,li as a,X_ as a0,G_ as a1,Ne as a2,qu as a3,Gu as a4,Q_ as a5,Z_ as a6,ny as a7,Zu as a8,al as a9,ms as aa,cl as ab,Zr as ac,Je as ad,zu as ae,zi as af,Jr as ag,sy as ah,$_ as ai,ul as aj,Gi as ak,Zi as al,T_ as am,Bv as an,Vi as ao,S2 as ap,wn as aq,En as ar,Xu as as,tl as at,v2 as au,x2 as av,Mc as b,sr as c,Lr as d,gt as e,A_ as f,W_ as g,se as h,j_ as i,jc as j,oc as k,Jc as l,l0 as m,Te as n,bt as o,J_ as p,bl as q,ce as r,F as s,cy as t,Vu as u,Nt as v,it as w,Se as x,ft as y,Ic as z};
|
|
145
|
+
}`);const t=e,r=()=>{if(typeof window<"u"){if(t.link){typeof t.link=="function"?t.link():window.location.href=t.link;return}let n=(window.__VTJ_LINK__||{}).href||window.location.pathname+"__vtj__/#/";window.location.href=n}};return(n,i)=>(Yn(),Ol("div",Mw,[me("div",Fw,[me("h1",Lw,[me("span",Vw,An(t.name),1)]),me("div",Hw,An(t.tagline),1),me("div",Uw,[me("button",{"data-l-h6o7ki7":"",onClick:r},An(t.actionText),1)])])]))}}),zw=en({name:"VtjStartupContainer",render(){return Wn(vl)}}),_s=Symbol("Provider");var yl=(e=>(e.Production="production",e.Development="development",e))(yl||{});class bl extends Jc{constructor(r){super();j(this,"mode");j(this,"globals",{});j(this,"modules",{});j(this,"adapter",{request:tw,jsonp:Vu});j(this,"apis",{});j(this,"dependencies",{});j(this,"materials",{});j(this,"library",{});j(this,"service");j(this,"project",null);j(this,"components",{});j(this,"nodeEnv","development");j(this,"router",null);j(this,"materialPath","./");j(this,"urlDslCaches",{});this.options=r;const{service:n,mode:i=ft.Raw,dependencies:s,materials:o,project:a={},adapter:u={},globals:c={},modules:l={},router:h=null,materialPath:f="./",nodeEnv:p="development"}=r;this.mode=i,this.modules=l,this.service=n,this.router=h,this.materialPath=f,this.nodeEnv=p,s&&(this.dependencies=s),o&&(this.materials=o),Object.assign(this.globals,c),Object.assign(this.adapter,u);const{access:d,request:m}=this.adapter;d&&d.connect({mode:i,router:h,request:m}),a&&i!==ft.Design?this.load(a):this.project=a,oe.setup({timeout:"50-500"})}createMock(r){return(...n)=>L(this,null,function*(){let i={};if(r)try{i=yield r.apply(r,n)}catch(s){se.warn("模拟数据模版异常",s)}return oe.mock(i)})}load(r){return L(this,null,function*(){const n=this.modules[`.vtj/projects/${r.id}.json`];if(this.project=n?yield n():yield this.service.init(r),!this.project)throw new Error("project is null");const{apis:i=[],meta:s=[]}=this.project,o=window;o.CKEDITOR_VERSION=void 0,this.mode===ft.Raw?yield this.loadDependencies(o):yield this.loadAssets(o),this.apis=al(i,s,this.adapter),ms(),cl(i),this.initRouter(),this.triggerReady()})}loadDependencies(r){return L(this,null,function*(){const n=Object.entries(this.dependencies);for(const[i,s]of n)r[i]||(r[i]=this.library[i]=yield s())})}loadAssets(r){return L(this,null,function*(){const{dependencies:n=[]}=this.project,{dependencies:i,library:s,components:o,materialPath:a,nodeEnv:u}=this,{libraryExports:c,libraryMap:l,materials:h,materialExports:f,materialMapLibrary:p}=Gu(n,a,u==="development");for(const d of c){const m=i[d],b=r[d];if(b)s[d]=b;else if(m)r[d]=s[d]=yield m();else{const E=l[d]||[];for(const g of E)wn(g)&&(yield Qu(d,ie.append(g,{v:je}))),En(g)&&(yield ji(ie.append(g,{v:je})));s[d]=r[d]}}if(u==="development"){for(const m of h)yield ji(ie.append(m,{v:je}));const d=this.materials||{};for(const m of f){const b=r[p[m]],E=Kc[m];if(E)b&&E.forEach(g=>{o[g]=b[g]});else{const g=d[m]?(yield d[m]()).default:r[m];g&&b&&(g.components||[]).forEach(y=>{o[y.name]=Zu(y,b)})}}}})}initRouter(){const{router:r,project:n,options:i,adapter:s}=this;if(!r)return;const{routeAppendTo:o,pageRouteName:a="page",routeMeta:u}=i,c=o?"":"/",l={path:`${c}${a}/:id`,name:Re,component:ta},h={path:c,name:Xe,component:n!=null&&n.homepage?ta:s.startupComponent||zw,meta:u};r.hasRoute(Re)&&r.removeRoute(Re),r.hasRoute(Xe)&&r.removeRoute(Xe),o?(r.addRoute(o,l),r.addRoute(o,h)):(r.addRoute(l),r.addRoute(h))}install(r){const n=r.config.globalProperties.installed||{};for(const[i,s]of Object.entries(this.library))!n[i]&&el(s)&&(r.use(s),n[i]=!0);this.options.install&&r.use(this.options.install),this.adapter.access&&r.use(this.adapter.access),r.provide(_s,this),r.config.globalProperties.installed=n,this.mode===ft.Design&&(r.config.errorHandler=(i,s,o)=>{const a=s==null?void 0:s.$options.name,u=typeof i=="string"?i:(i==null?void 0:i.message)||(i==null?void 0:i.msg)||"未知错误",c=`[ ${a} ] ${u} ${o}`;console.error("[VTJ Error]:",{err:i,instance:s,info:o},i==null?void 0:i.stack),rn.error({title:"未处理的异常:请在控制台查看详情",message:c})})}getFile(r){const{blocks:n=[]}=this.project||{};return this.getPage(r)||n.find(i=>i.id===r)||null}getPage(r){const{pages:n=[]}=this.project||{},i=(s,o=[])=>{for(const a of o){if(a.id===s)return a;if(a.children&&a.children.length){const u=i(s,a.children);if(u)return u}}};return i(r,n)||null}getHomepage(){const{homepage:r}=this.project||{};return r?this.getPage(r):null}getDsl(r){return L(this,null,function*(){const n=this.modules[`.vtj/files/${r}.json`];return n?yield n():this.service.getFile(r,this.project||void 0).catch(()=>null)})}getDslByUrl(r){return L(this,null,function*(){return this.urlDslCaches[r]||(this.urlDslCaches[r]=this.adapter.request.send({url:r,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(i=>i.data).catch(()=>null))})}createDslRenderer(r,n={}){const{library:i,components:s,mode:o,apis:a}=this,u=z({mode:o,Vue:i.Vue,components:s,libs:i,apis:a,window},n),c=Xr({getDsl:l=>L(this,null,function*(){return(yield this.getDsl(l))||null}),getDslByUrl:l=>L(this,null,function*(){return(yield this.getDslByUrl(l))||null}),options:u});return Qr(ct(z({},u),{dsl:r,loader:c}))}getRenderComponent(r,n){return L(this,null,function*(){var u;const i=this.getFile(r);if(!i)return se.warn(`Can not find file: ${r}`),null;n&&n(i);const s=`.vtj/vue/${r}.vue`,o=this.modules[s];if(o)return(u=yield o())==null?void 0:u.default;const a=yield this.getDsl(i.id);return a?this.createDslRenderer(a).renderer:(se.warn(`Can not find dsl: ${r}`),null)})}defineUrlSchemaComponent(r,n){return Os(()=>L(this,null,function*(){const i=yield this.getDslByUrl(r);return i?(i.name=n||i.name,this.createDslRenderer(i).renderer):null}))}definePluginComponent(r){return Os(()=>L(this,null,function*(){return yield vs(r,window)}))}}function qw(e){const t=new bl(e);return{provider:t,onReady:r=>t.ready(r)}}function ws(e={}){const t=ea(_s);if(!t)throw new Error("Can not find provider");if(t.nodeEnv==="development"){const{id:r,version:n}=e;r&&n&&L(this,null,function*(){const i=yield t.getDsl(r);(i==null?void 0:i.__VERSION__)!==n&&rn.warning({title:i==null?void 0:i.name,message:"当前组件源码版本与运行时版本不一致,请重新发布组件"})})}return t}const Es=new cs({settings:{type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:e=>{var t;return((t=e.data)==null?void 0:t.code)===0},showError:e=>{rn.error({message:e||"未知错误"})}}}),Kw=(e="/__vtj__/api/:type.json")=>(t,r)=>Es.send({url:e,method:"post",params:{type:t},data:{type:t,data:r}}),Jw=(e="/__vtj__/api/uploader.json")=>(t,r)=>L(void 0,null,function*(){return yield Es.send({url:e,method:"post",data:{files:t,projectId:r},settings:{type:"data"}}).then(n=>n&&n[0]?n[0]:null).catch(()=>null)});class Sn{constructor(){j(this,"api");j(this,"pluginCaches",{});j(this,"uploader");this.api=Kw(),this.uploader=Jw()}getExtension(){return L(this,null,function*(){console.log("BaseService.getExtension")})}init(t){return L(this,null,function*(){return console.log("BaseService.init",t),{}})}saveProject(t){return L(this,null,function*(){return!!(yield this.api("saveProject",t).catch(()=>!1))})}saveMaterials(t,r){return L(this,null,function*(){return console.log("BaseService.saveMaterials",t,r),!1})}saveFile(t){return L(this,null,function*(){return console.log("BaseService.saveFile",t),!1})}getFile(t){return L(this,null,function*(){return console.log("BaseService.getFile",t),{}})}removeFile(t){return L(this,null,function*(){return console.log("BaseService.removeFile",t),!1})}saveHistory(t){return L(this,null,function*(){return console.log("BaseService.saveHistory",t),!1})}removeHistory(t){return L(this,null,function*(){return console.log("BaseService.removeHistory",t),!1})}getHistory(t){return L(this,null,function*(){return console.log("BaseService.getHistory",t),{}})}getHistoryItem(t,r){return L(this,null,function*(){return console.log("BaseService.getHistoryItem",t,r),{}})}saveHistoryItem(t,r){return L(this,null,function*(){return console.log("BaseService.saveHistoryItem",t,r),!1})}removeHistoryItem(t,r){return L(this,null,function*(){return console.log("BaseService.removeHistoryItem",t,r),!1})}publish(t){return L(this,null,function*(){return!!(yield this.api("publish",t).catch(()=>!1))})}publishFile(t,r){return L(this,null,function*(){return!!(yield this.api("publishFile",{project:t,file:r}).catch(()=>!1))})}genVueContent(t,r){return L(this,null,function*(){return yield this.api("genVueContent",{project:t,dsl:r}).catch(()=>"")})}createRawPage(t){return L(this,null,function*(){return yield this.api("createRawPage",t).catch(()=>"")})}removeRawPage(t){return L(this,null,function*(){return yield this.api("removeRawPage",t).catch(()=>"")})}uploadStaticFile(t,r){return L(this,null,function*(){return yield this.uploader(t,r).catch(()=>null)})}getStaticFiles(t){return L(this,null,function*(){return yield this.api("getStaticFiles",t).catch(()=>[])})}removeStaticFile(t,r){return L(this,null,function*(){return yield this.api("removeStaticFile",{name:t,projectId:r}).catch(()=>"")})}clearStaticFiles(t){return L(this,null,function*(){return yield this.api("clearStaticFiles",t).catch(()=>"")})}getPluginMaterial(t){return L(this,null,function*(){const{urls:r=[]}=t,n=r.filter(s=>Wu(s))[0];return n?this.pluginCaches[n]||(this.pluginCaches[n]=Es.send({url:n,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(s=>s.data).catch(()=>null)):null})}genSource(t){return L(this,null,function*(){return console.log("BaseService.genSource",t),""})}}const mt=new ls({type:"local",expired:0,prefix:"__VTJ_"});class Ww extends Sn{init(t){const r=new ce(t),n=mt.get(`project_${r.id}`),i=Object.assign(r.toDsl(),n||{});return mt.save(`project_${r.id}`,i),Promise.resolve(i)}saveProject(t){const r=new ce(t);return mt.save(`project_${r.id}`,r.toDsl()),Promise.resolve(!0)}saveMaterials(t,r){return mt.save(`materials_${t.id}`,fn(r)),Promise.resolve(!0)}saveFile(t){return mt.save(`file_${t.id}`,t),Promise.resolve(!0)}getFile(t){const r=mt.get(`file_${t}`);return r?Promise.resolve(r):Promise.reject(null)}removeFile(t){return mt.remove(`file_${t}`),Promise.resolve(!0)}saveHistory(t){return mt.save(`history_${t.id}`,t),Promise.resolve(!0)}removeHistory(t){const r=mt.get(`history_${t}`);if(r){const n=(r.items||[]).map(i=>i.id);this.removeHistoryItem(t,n),mt.remove(`history_${t}`)}return Promise.resolve(!0)}getHistory(t){const r=mt.get(`history_${t}`),n=new Qi(r||{id:t});return Promise.resolve(n.toDsl())}getHistoryItem(t,r){const n=mt.get(`history_${t}_${r}`);return Promise.resolve(n)}saveHistoryItem(t,r){return mt.save(`history_${t}_${r.id}`,r),Promise.resolve(!0)}removeHistoryItem(t,r){return r.forEach(n=>{mt.remove(`history_${t}_${n}`)}),Promise.resolve(!0)}}class _l extends Sn{constructor(){super(...arguments);j(this,"projects",{});j(this,"materials",{});j(this,"files",{});j(this,"histories",{});j(this,"historyItems",{})}init(r){const n=new ce(r),i=this.projects[n.id]||{},s=Object.assign(n.toDsl(),i);return this.projects[s.id]=s,Promise.resolve(s)}saveProject(r){const n=new ce(r);return this.projects[n.id]=n.toDsl(),Promise.resolve(!0)}saveMaterials(r,n){return r.id&&(this.materials[r.id]=fn(n)),Promise.resolve(!0)}saveFile(r){return this.files[r.id]=r,Promise.resolve(!0)}getFile(r){const n=this.files[r];return n?Promise.resolve(n):Promise.reject(null)}removeFile(r){return delete this.files[r],Promise.resolve(!0)}saveHistory(r){return this.histories[r.id]=r,Promise.resolve(!0)}removeHistory(r){const n=this.histories[r];if(n){const i=(n.items||[]).map(s=>s.id);this.removeHistoryItem(r,i),delete this.historyItems[r]}return Promise.resolve(!0)}getHistory(r){const n=this.histories[r],i=new Qi(n||{id:r});return Promise.resolve(i)}getHistoryItem(r,n){const i=`${r}_${n}`,s=this.historyItems[i]||{};return Promise.resolve(s)}saveHistoryItem(r,n){const i=`${r}_${n.id}`;return this.historyItems[i]=n,Promise.resolve(!0)}removeHistoryItem(r,n){return n.forEach(i=>{const s=`${r}_${i}`;delete this.historyItems[s]}),Promise.resolve(!0)}}let Jn=null;function Yw(){return Jn||(Jn=new _l,Jn)}class Gw extends Sn{constructor(){super(...arguments);j(this,"getFileCaches",{})}getExtension(){return L(this,null,function*(){return yield this.api("getExtension",{}).catch(()=>{})})}init(r){return L(this,null,function*(){return(yield this.api("init",r).catch(()=>null))||{}})}saveProject(r){return L(this,null,function*(){return!!(yield this.api("saveProject",r).catch(()=>!1))})}saveMaterials(r,n){return L(this,null,function*(){return!!(yield this.api("saveMaterials",{project:r,materials:fn(n)}).catch(()=>!1))})}saveFile(r){return L(this,null,function*(){return!!(yield this.api("saveFile",r).catch(()=>!1))})}getFile(r){return L(this,null,function*(){return this.getFileCaches[r]||(this.getFileCaches[r]=this.api("getFile",r).catch(()=>null)).finally(()=>{delete this.getFileCaches[r]})})}removeFile(r){return L(this,null,function*(){return!!(yield this.api("removeFile",r).catch(()=>!1))})}saveHistory(r){return L(this,null,function*(){return!!(yield this.api("saveHistory",r).catch(()=>!1))})}removeHistory(r){return L(this,null,function*(){return!!(yield this.api("removeHistory",r).catch(()=>!1))})}getHistory(r){return L(this,null,function*(){return(yield this.api("getHistory",r).catch(()=>null))||{}})}getHistoryItem(r,n){return L(this,null,function*(){return(yield this.api("getHistoryItem",{fId:r,id:n}).catch(()=>null))||{}})}saveHistoryItem(r,n){return L(this,null,function*(){return!!(yield this.api("saveHistoryItem",{fId:r,item:n}).catch(()=>!1))})}removeHistoryItem(r,n){return L(this,null,function*(){return!!(yield this.api("removeHistoryItem",{fId:r,ids:n}).catch(()=>!1))})}}function wl(e,t,r=[]){return r.map(n=>{const{id:i,title:s,icon:o,children:a,hidden:u}=n;return{id:i,title:s,icon:o,hidden:u,url:`${e}/${t}/${i}`,children:a&&a.length?wl(e,t,a):void 0}})}function El(e,t){if(!t)return e;let r=[];for(const n of e)if(n.children&&n.children.length){const i=El(n.children,t);i.length&&(n.children=i,r.push(n))}else t.can(n.id.toString())&&r.push(n);return r}function Zw(e){const{menuPathPrefix:t="",pageRouteName:r="page",disableMenusFilter:n=!1}=e||{},i=ws(),s=sa(),o=fl(),a=er(!1),u=er(!1),c=i.project;Al(()=>{const{name:f,params:p,meta:d}=s;if(f===Re){const m=i.getPage(p.id);a.value=!(m!=null&&m.mask),u.value=!!(m!=null&&m.pure)}else if(f===Xe){const m=i.getHomepage();a.value=!(m!=null&&m.mask),u.value=!!(m!=null&&m.pure)}else a.value=!d.mask,u.value=!!d.pure});const l=wl(t,r,c==null?void 0:c.pages),h=c==null?void 0:c.config;return{disabled:a,logo:h==null?void 0:h.logo,themeSwitchable:h==null?void 0:h.themeSwitchable,title:(h==null?void 0:h.title)||(c==null?void 0:c.description)||(c==null?void 0:c.name)||"VTJ App",menus:n?l:El(l,o),pure:u}}const x2=Object.freeze(Object.defineProperty({__proto__:null,ACCESS_KEY:gs,Access:hl,BUILD_IN_TAGS:Ju,BUILT_IN_DIRECTIVES:zu,BaseService:Sn,CONTEXT_HOST:Di,Context:pl,ContextMode:ft,DATA_TYPES:qu,HOMEPAGE_ROUTE_NAME:Xe,HTML_TAGS:Ku,JSCodeToString:X_,LIFE_CYCLES_LIST:G_,LocalService:Gw,MemoryService:_l,NodeEnv:yl,PAGE_ROUTE_NAME:Re,Provider:bl,Startup:vl,StorageService:Ww,VTJ_RENDERER_VERSION:je,adoptedStyleSheets:ds,createAssetScripts:Z_,createAssetsCss:Q_,createDataSources:dl,createLoader:Xr,createMemoryService:Yw,createMetaApi:ol,createMock:ul,createProvider:qw,createRenderer:Qr,createSchemaApi:sl,createSchemaApis:al,defaultLoader:ml,fillBasePath:Ge,getModifiers:ys,getPlugin:vs,getRawComponent:Zu,isBuiltInTag:rl,isCSSUrl:wn,isJSCode:il,isJSExpression:wt,isJSFunction:Le,isJSON:Wu,isJSUrl:En,isNativeTag:nl,isVuePlugin:el,loadCss:Qu,loadCssUrl:Xu,loadScriptUrl:tl,mockApi:ll,mockApis:cl,mockCleanup:ms,nodeRender:cr,parseDeps:Gu,parseExpression:Ne,parseFunction:Zr,providerKey:_s,removeProdFlag:Yu,toString:ps,useAccess:fl,useMask:Zw,useProvider:ws},Symbol.toStringTag,{value:"Module"})),Qw=en({__name:"app",setup(e){return(t,r)=>{const n=Bl("router-view");return Yn(),As(Gn(zl),{locale:Gn(Ul)},{default:js(()=>[(Yn(),As(Il,null,{default:js(()=>[Ml(n)]),_:1}))]),_:1},8,["locale"])}}}),Xw=[{path:"/",name:"home",component:()=>yr(()=>import("./index-cQzjg-b9.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]),import.meta.url)},{path:"/preview/:id",name:"preview",component:()=>yr(()=>import("./preview-B0hdUTvJ.js"),__vite__mapDeps([20,13,14,1,2,3,4,5,6,7,8,9,10,11,12,15,16,17]),import.meta.url)},{path:"/page/:id",name:"page",component:()=>yr(()=>import("./page-CAzOTY4_.js"),__vite__mapDeps([21,13,14,1,2,12,6,5,10,8,7,11,3,4,9,15,16,17]),import.meta.url),meta:{pure:!0}},{path:"/auth",name:"auth",component:()=>yr(()=>import("./auth-ChUE4eDn.js"),__vite__mapDeps([22,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,23]),import.meta.url)}],t2=Ll({history:Vl(),routes:Xw}),e2="RRO_IDE_ACCESS_STORAGE__",Ss=Fl(Qw),r2=new hl({storageKey:e2});Ss.use(r2);Ss.use(t2);Ss.mount("#app");export{Qc as $,e2 as A,We as B,di as C,hl as D,pi as E,Gc as F,Zc as G,qw as H,G as I,ae as J,Dv as K,wa as L,nt as M,Gw as N,Dt as O,Ye as P,te as Q,w0 as R,g0 as S,Qi as T,Le as U,Nr as V,hy as W,oi as X,Cv as Y,at as Z,wt as _,li as a,X_ as a0,G_ as a1,Ne as a2,qu as a3,Gu as a4,Q_ as a5,Z_ as a6,ny as a7,Zu as a8,al as a9,ms as aa,cl as ab,Zr as ac,Je as ad,zu as ae,zi as af,Jr as ag,sy as ah,$_ as ai,ul as aj,Gi as ak,Zi as al,T_ as am,Bv as an,Vi as ao,S2 as ap,wn as aq,En as ar,Xu as as,tl as at,v2 as au,x2 as av,Mc as b,sr as c,Lr as d,gt as e,A_ as f,W_ as g,se as h,j_ as i,jc as j,oc as k,Jc as l,l0 as m,Te as n,bt as o,J_ as p,bl as q,ce as r,F as s,cy as t,Vu as u,Nt as v,it as w,Se as x,ft as y,Ic as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var b=Object.defineProperty,F=Object.defineProperties;var N=Object.getOwnPropertyDescriptors;var w=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var x=(n,e,t)=>e in n?b(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,u=(n,e)=>{for(var t in e||(e={}))O.call(e,t)&&x(n,t,e[t]);if(w)for(var t of w(e))T.call(e,t)&&x(n,t,e[t]);return n},$=(n,e)=>F(n,N(e));var y=(n,e,t)=>new Promise((m,i)=>{var p=s=>{try{r(t.next(s))}catch(a){i(a)}},c=s=>{try{r(t.throw(s))}catch(a){i(a)}},r=s=>s.done?m(s.value):Promise.resolve(s.value).then(p,c);r((t=t.apply(n,e)).next())});import{useRoute as j}from"./vue-router-CBK9GHjZ.js";import{D as q,A as D,N as H}from"./index-
|
|
1
|
+
var b=Object.defineProperty,F=Object.defineProperties;var N=Object.getOwnPropertyDescriptors;var w=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var x=(n,e,t)=>e in n?b(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,u=(n,e)=>{for(var t in e||(e={}))O.call(e,t)&&x(n,t,e[t]);if(w)for(var t of w(e))T.call(e,t)&&x(n,t,e[t]);return n},$=(n,e)=>F(n,N(e));var y=(n,e,t)=>new Promise((m,i)=>{var p=s=>{try{r(t.next(s))}catch(a){i(a)}},c=s=>{try{r(t.throw(s))}catch(a){i(a)}},r=s=>s.done?m(s.value):Promise.resolve(s.value).then(p,c);r((t=t.apply(n,e)).next())});import{useRoute as j}from"./vue-router-CBK9GHjZ.js";import{D as q,A as D,N as H}from"./index-CvsdciBA.js";import{c as K}from"./element-plus-atKQmRsE.js";import"./vxe-l3jZ90Gb.js";import{c as E,l as W,E as G}from"./extension-n9Xhh9I6.js";import{d as I,e as J,aA as v,f as M,c as V,o as Y}from"./vue-Dzbx66BV.js";import{_ as z}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./mockjs-BiYWQEnZ.js";import"./dayjs-DO-COJPZ.js";import"./monaco-editor-Lba3v2gb.js";import"./lodash-es-D0ldFxdg.js";import"./@vueuse-BwkL59YI.js";import"./@element-plus-icons-vue-BM7nPgXL.js";import"./shared-BAqo0W56.js";import"./html2canvas-CIV5arX1.js";const L=I({__name:"index",setup(n){return y(this,null,function*(){let e,t;const m=j(),i=J(),p=new H,c=([e,t]=v(()=>p.getExtension().catch(()=>null)),e=yield e,t(),e),{options:r,adapters:s}=c?([e,t]=v(()=>new G(c).load()),e=yield e,t(),e):{},{__BASE_PATH__:a="/",history:A="hash",base:P="/",pageRouteName:C="page"}=c||{},h=s==null?void 0:s.access,S=s==null?void 0:s.remote,k=h?new q(u({alert:K.alert,storageKey:D},h)):void 0,B=()=>A==="hash",R=o=>o==="/"?"":(o.startsWith("/")&&(o=o.substring(1)),o.endsWith("/")||(o=o+"/"),o);E.set("Switcher",{props:{onClick:o=>{const l=location.pathname;let _=l===`${a}__vtj__/`?a:l;const f=o.currentFile;if(f&&f.type==="page"&&o.homepage!==f.id){const g=`${R(P)}${C}/${f.id}`;_=B()?`${_}#/${g}`:`${_}${g}`}window.open(_,"VTJProject")}}}),E.set("Previewer",{props:{path:o=>`${location.pathname}#/preview/${o.id}`}});const d=new W($(u({container:i,service:p,materialPath:a},r),{adapter:Object.assign({access:k,remote:S},(r==null?void 0:r.adapter)||{})}));return d.ready(()=>{d.openFile(m.query.id)}),M(()=>m.query.id,o=>{d.openFile(o)}),(o,l)=>(Y(),V("div",{class:"designer",ref_key:"container",ref:i},null,512))})}}),_e=z(L,[["__scopeId","data-v-d927fa78"]]);export{_e as default};
|