@vtj/pro 0.9.1 → 0.9.2

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.
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./mockjs-C1Gq5sDs.js","./dayjs-DpOeJKaG.js","./index-wxL8RGHQ.js","./vue-router-DB3on22t.js","./vue-BCaExZnh.js","./element-plus-CfygosTj.js","./lodash-es-Cmvm8wvQ.js","./@vueuse-Cpn_N91X.js","./@element-plus-icons-vue-BAbt3LbA.js","./shared-WQ2u-3_G.js","./element-plus-BbdgoGGn.css","./vxe-BJf2YWDp.js","./vxe-BAb1d5vW.css","./extension-Dgtw6cSf.js","./monaco-editor-Ckv89Lpe.js","./monaco-editor-CO43Fv42.css","./html2canvas-CIV5arX1.js","./extension-BDteyEK_.css","./_plugin-vue_export-helper-DlAUqK2U.js","./index-DmXmiv30.css","./preview-DEx2pHKv.js","./page-DWv9R3T3.js","./auth-BhvfOEC4.js","./auth-Cx6hwQ0X.css"])))=>i.map(i=>d[i]);
2
- var nl=Object.defineProperty,il=Object.defineProperties;var sl=Object.getOwnPropertyDescriptors;var dr=Object.getOwnPropertySymbols;var fs=Object.prototype.hasOwnProperty,ps=Object.prototype.propertyIsEnumerable;var dn=(e,t,r)=>t in e?nl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,K=(e,t)=>{for(var r in t||(t={}))fs.call(t,r)&&dn(e,r,t[r]);if(dr)for(var r of dr(t))ps.call(t,r)&&dn(e,r,t[r]);return e},pt=(e,t)=>il(e,sl(t));var mn=(e,t)=>{var r={};for(var n in e)fs.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&dr)for(var n of dr(e))t.indexOf(n)<0&&ps.call(e,n)&&(r[n]=e[n]);return r};var j=(e,t,r)=>dn(e,typeof t!="symbol"?t+"":t,r);var H=(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())});import{aw as ds,ax as Kr,d as Jr,e as Ye,af as Nn,p as Mo,f as Fo,o as Bn,c as ol,a as ce,P as gn,w as al,m as cl,r as ul,j as ll,X as hl,k as Lo,g as fl,b as pl,u as In,h as Vo,i as dl,ag as ml,I as ms,J as gs,ay as gl,R as vl,at as yl}from"./vue-BCaExZnh.js";import{_ as Me}from"./monaco-editor-Ckv89Lpe.js";import{useRoute as Ho,createRouter as bl,createWebHashHistory as _l}from"./vue-router-DB3on22t.js";import{E as Yr,a as wl,z as El,b as Sl}from"./element-plus-CfygosTj.js";import"./lodash-es-Cmvm8wvQ.js";import"./@vueuse-Cpn_N91X.js";import"./@element-plus-icons-vue-BAbt3LbA.js";import"./shared-WQ2u-3_G.js";import"./dayjs-DpOeJKaG.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 xl={ENV_TYPE:"live",NODE_ENV:"production"},Tl=typeof global=="object"&&global&&global.Object===Object&&global;const Uo=Tl;var Ol=typeof self=="object"&&self&&self.Object===Object&&self,Al=Uo||Ol||Function("return this")();const At=Al;var $l=At.Symbol;const Rt=$l;var zo=Object.prototype,jl=zo.hasOwnProperty,Rl=zo.toString,Ne=Rt?Rt.toStringTag:void 0;function Dl(e){var t=jl.call(e,Ne),r=e[Ne];try{e[Ne]=void 0;var n=!0}catch(s){}var i=Rl.call(e);return n&&(t?e[Ne]=r:delete e[Ne]),i}var Pl=Object.prototype,Cl=Pl.toString;function kl(e){return Cl.call(e)}var Nl="[object Null]",Bl="[object Undefined]",vs=Rt?Rt.toStringTag:void 0;function bt(e){return e==null?e===void 0?Bl:Nl:vs&&vs in Object(e)?Dl(e):kl(e)}function st(e){return e!=null&&typeof e=="object"}var Il="[object Symbol]";function ir(e){return typeof e=="symbol"||st(e)&&bt(e)==Il}function qo(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 Ml=Array.isArray;const ht=Ml;var Fl=1/0,ys=Rt?Rt.prototype:void 0,bs=ys?ys.toString:void 0;function Ko(e){if(typeof e=="string")return e;if(ht(e))return qo(e,Ko)+"";if(ir(e))return bs?bs.call(e):"";var t=e+"";return t=="0"&&1/e==-Fl?"-0":t}var Ll=/\s/;function Vl(e){for(var t=e.length;t--&&Ll.test(e.charAt(t)););return t}var Hl=/^\s+/;function Ul(e){return e&&e.slice(0,Vl(e)+1).replace(Hl,"")}function ot(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var _s=NaN,zl=/^[-+]0x[0-9a-f]+$/i,ql=/^0b[01]+$/i,Kl=/^0o[0-7]+$/i,Jl=parseInt;function ws(e){if(typeof e=="number")return e;if(ir(e))return _s;if(ot(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ot(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Ul(e);var r=ql.test(e);return r||Kl.test(e)?Jl(e.slice(2),r?2:8):zl.test(e)?_s:+e}function _i(e){return e}var Yl="[object AsyncFunction]",Wl="[object Function]",Gl="[object GeneratorFunction]",Zl="[object Proxy]";function ne(e){if(!ot(e))return!1;var t=bt(e);return t==Wl||t==Gl||t==Yl||t==Zl}var Ql=At["__core-js_shared__"];const vn=Ql;var Es=function(){var e=/[^.]+$/.exec(vn&&vn.keys&&vn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Xl(e){return!!Es&&Es in e}var th=Function.prototype,eh=th.toString;function ie(e){if(e!=null){try{return eh.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var rh=/[\\^$.*+?()[\]{}|]/g,nh=/^\[object .+?Constructor\]$/,ih=Function.prototype,sh=Object.prototype,oh=ih.toString,ah=sh.hasOwnProperty,ch=RegExp("^"+oh.call(ah).replace(rh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function uh(e){if(!ot(e)||Xl(e))return!1;var t=ne(e)?ch:nh;return t.test(ie(e))}function lh(e,t){return e==null?void 0:e[t]}function se(e,t){var r=lh(e,t);return uh(r)?r:void 0}var hh=se(At,"WeakMap");const Mn=hh;var Ss=Object.create,fh=function(){function e(){}return function(t){if(!ot(t))return{};if(Ss)return Ss(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const ph=fh;function Jo(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 dh(){}function mh(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var gh=800,vh=16,yh=Date.now;function bh(e){var t=0,r=0;return function(){var n=yh(),i=vh-(n-r);if(r=n,i>0){if(++t>=gh)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function _h(e){return function(){return e}}var wh=function(){try{var e=se(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();const Mr=wh;var Eh=Mr?function(e,t){return Mr(e,"toString",{configurable:!0,enumerable:!1,value:_h(t),writable:!0})}:_i;const Sh=Eh;var xh=bh(Sh);const Th=xh;function Oh(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var Ah=9007199254740991,$h=/^(?:0|[1-9]\d*)$/;function Wr(e,t){var r=typeof e;return t=t!=null?t:Ah,!!t&&(r=="number"||r!="symbol"&&$h.test(e))&&e>-1&&e%1==0&&e<t}function Gr(e,t,r){t=="__proto__"&&Mr?Mr(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Re(e,t){return e===t||e!==e&&t!==t}var jh=Object.prototype,Rh=jh.hasOwnProperty;function wi(e,t,r){var n=e[t];(!(Rh.call(e,t)&&Re(n,r))||r===void 0&&!(t in e))&&Gr(e,t,r)}function Yo(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?Gr(r,a,u):wi(r,a,u)}return r}var xs=Math.max;function Dh(e,t,r){return t=xs(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,s=xs(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),Jo(e,this,a)}}function Wo(e,t){return Th(Dh(e,t,_i),e+"")}var Ph=9007199254740991;function Ei(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ph}function sr(e){return e!=null&&Ei(e.length)&&!ne(e)}function Go(e,t,r){if(!ot(r))return!1;var n=typeof t;return(n=="number"?sr(r)&&Wr(t,r.length):n=="string"&&t in r)?Re(r[t],e):!1}function Zo(e){return Wo(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&&Go(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 Ch=Object.prototype;function Si(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Ch;return e===r}function kh(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Nh="[object Arguments]";function Ts(e){return st(e)&&bt(e)==Nh}var Qo=Object.prototype,Bh=Qo.hasOwnProperty,Ih=Qo.propertyIsEnumerable,Mh=Ts(function(){return arguments}())?Ts:function(e){return st(e)&&Bh.call(e,"callee")&&!Ih.call(e,"callee")};const Fr=Mh;function Fh(){return!1}var Xo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Os=Xo&&typeof module=="object"&&module&&!module.nodeType&&module,Lh=Os&&Os.exports===Xo,As=Lh?At.Buffer:void 0,Vh=As?As.isBuffer:void 0,Hh=Vh||Fh;const xe=Hh;var Uh="[object Arguments]",zh="[object Array]",qh="[object Boolean]",Kh="[object Date]",Jh="[object Error]",Yh="[object Function]",Wh="[object Map]",Gh="[object Number]",Zh="[object Object]",Qh="[object RegExp]",Xh="[object Set]",tf="[object String]",ef="[object WeakMap]",rf="[object ArrayBuffer]",nf="[object DataView]",sf="[object Float32Array]",of="[object Float64Array]",af="[object Int8Array]",cf="[object Int16Array]",uf="[object Int32Array]",lf="[object Uint8Array]",hf="[object Uint8ClampedArray]",ff="[object Uint16Array]",pf="[object Uint32Array]",X={};X[sf]=X[of]=X[af]=X[cf]=X[uf]=X[lf]=X[hf]=X[ff]=X[pf]=!0,X[Uh]=X[zh]=X[rf]=X[qh]=X[nf]=X[Kh]=X[Jh]=X[Yh]=X[Wh]=X[Gh]=X[Zh]=X[Qh]=X[Xh]=X[tf]=X[ef]=!1;function df(e){return st(e)&&Ei(e.length)&&!!X[bt(e)]}function or(e){return function(t){return e(t)}}var ta=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ze=ta&&typeof module=="object"&&module&&!module.nodeType&&module,mf=ze&&ze.exports===ta,yn=mf&&Uo.process,gf=function(){try{var e=ze&&ze.require&&ze.require("util").types;return e||yn&&yn.binding&&yn.binding("util")}catch(t){}}();const Dt=gf;var $s=Dt&&Dt.isTypedArray,vf=$s?or($s):df;const xi=vf;var yf=Object.prototype,bf=yf.hasOwnProperty;function ea(e,t){var r=ht(e),n=!r&&Fr(e),i=!r&&!n&&xe(e),s=!r&&!n&&!i&&xi(e),o=r||n||i||s,a=o?kh(e.length,String):[],u=a.length;for(var c in e)(t||bf.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Wr(c,u)))&&a.push(c);return a}function ra(e,t){return function(r){return e(t(r))}}var _f=ra(Object.keys,Object);const wf=_f;var Ef=Object.prototype,Sf=Ef.hasOwnProperty;function xf(e){if(!Si(e))return wf(e);var t=[];for(var r in Object(e))Sf.call(e,r)&&r!="constructor"&&t.push(r);return t}function Zr(e){return sr(e)?ea(e):xf(e)}function Tf(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Of=Object.prototype,Af=Of.hasOwnProperty;function $f(e){if(!ot(e))return Tf(e);var t=Si(e),r=[];for(var n in e)n=="constructor"&&(t||!Af.call(e,n))||r.push(n);return r}function Ti(e){return sr(e)?ea(e,!0):$f(e)}var jf=Zo(function(e,t,r,n){Yo(t,Ti(t),e,n)});const js=jf;var Rf=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Df=/^\w*$/;function Oi(e,t){if(ht(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||ir(e)?!0:Df.test(e)||!Rf.test(e)||t!=null&&e in Object(t)}var Pf=se(Object,"create");const We=Pf;function Cf(){this.__data__=We?We(null):{},this.size=0}function kf(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Nf="__lodash_hash_undefined__",Bf=Object.prototype,If=Bf.hasOwnProperty;function Mf(e){var t=this.__data__;if(We){var r=t[e];return r===Nf?void 0:r}return If.call(t,e)?t[e]:void 0}var Ff=Object.prototype,Lf=Ff.hasOwnProperty;function Vf(e){var t=this.__data__;return We?t[e]!==void 0:Lf.call(t,e)}var Hf="__lodash_hash_undefined__";function Uf(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=We&&t===void 0?Hf: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=Cf,Xt.prototype.delete=kf,Xt.prototype.get=Mf,Xt.prototype.has=Vf,Xt.prototype.set=Uf;function zf(){this.__data__=[],this.size=0}function Qr(e,t){for(var r=e.length;r--;)if(Re(e[r][0],t))return r;return-1}var qf=Array.prototype,Kf=qf.splice;function Jf(e){var t=this.__data__,r=Qr(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Kf.call(t,r,1),--this.size,!0}function Yf(e){var t=this.__data__,r=Qr(t,e);return r<0?void 0:t[r][1]}function Wf(e){return Qr(this.__data__,e)>-1}function Gf(e,t){var r=this.__data__,n=Qr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Bt(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])}}Bt.prototype.clear=zf,Bt.prototype.delete=Jf,Bt.prototype.get=Yf,Bt.prototype.has=Wf,Bt.prototype.set=Gf;var Zf=se(At,"Map");const Ge=Zf;function Qf(){this.size=0,this.__data__={hash:new Xt,map:new(Ge||Bt),string:new Xt}}function Xf(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Xr(e,t){var r=e.__data__;return Xf(t)?r[typeof t=="string"?"string":"hash"]:r.map}function tp(e){var t=Xr(this,e).delete(e);return this.size-=t?1:0,t}function ep(e){return Xr(this,e).get(e)}function rp(e){return Xr(this,e).has(e)}function np(e,t){var r=Xr(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,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=Qf,It.prototype.delete=tp,It.prototype.get=ep,It.prototype.has=rp,It.prototype.set=np;var ip="Expected a function";function Ai(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(ip);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(Ai.Cache||It),r}Ai.Cache=It;var sp=500;function op(e){var t=Ai(e,function(n){return r.size===sp&&r.clear(),n}),r=t.cache;return t}var ap=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cp=/\\(\\)?/g,up=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(cp,"$1"):n||r)}),t});const lp=up;function oe(e){return e==null?"":Ko(e)}function $i(e,t){return ht(e)?e:Oi(e,t)?[e]:lp(oe(e))}var hp=1/0;function ar(e){if(typeof e=="string"||ir(e))return e;var t=e+"";return t=="0"&&1/e==-hp?"-0":t}function na(e,t){t=$i(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[ar(t[r++])];return r&&r==n?e:void 0}function ia(e,t,r){var n=e==null?void 0:na(e,t);return n===void 0?r:n}function fp(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var pp=ra(Object.getPrototypeOf,Object);const sa=pp;var dp="[object Object]",mp=Function.prototype,gp=Object.prototype,oa=mp.toString,vp=gp.hasOwnProperty,yp=oa.call(Object);function ji(e){if(!st(e)||bt(e)!=dp)return!1;var t=sa(e);if(t===null)return!0;var r=vp.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&oa.call(r)==yp}var bp="[object DOMException]",_p="[object Error]";function aa(e){if(!st(e))return!1;var t=bt(e);return t==_p||t==bp||typeof e.message=="string"&&typeof e.name=="string"&&!ji(e)}var wp=Wo(function(e,t){try{return Jo(e,void 0,t)}catch(r){return aa(r)?r:new Error(r)}});const Ep=wp;function Sp(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 xp(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:Sp(e,t,r)}var Tp="\\ud800-\\udfff",Op="\\u0300-\\u036f",Ap="\\ufe20-\\ufe2f",$p="\\u20d0-\\u20ff",jp=Op+Ap+$p,Rp="\\ufe0e\\ufe0f",Dp="\\u200d",Pp=RegExp("["+Dp+Tp+jp+Rp+"]");function ca(e){return Pp.test(e)}function Cp(e){return e.split("")}var ua="\\ud800-\\udfff",kp="\\u0300-\\u036f",Np="\\ufe20-\\ufe2f",Bp="\\u20d0-\\u20ff",Ip=kp+Np+Bp,Mp="\\ufe0e\\ufe0f",Fp="["+ua+"]",Fn="["+Ip+"]",Ln="\\ud83c[\\udffb-\\udfff]",Lp="(?:"+Fn+"|"+Ln+")",la="[^"+ua+"]",ha="(?:\\ud83c[\\udde6-\\uddff]){2}",fa="[\\ud800-\\udbff][\\udc00-\\udfff]",Vp="\\u200d",pa=Lp+"?",da="["+Mp+"]?",Hp="(?:"+Vp+"(?:"+[la,ha,fa].join("|")+")"+da+pa+")*",Up=da+pa+Hp,zp="(?:"+[la+Fn+"?",Fn,ha,fa,Fp].join("|")+")",qp=RegExp(Ln+"(?="+Ln+")|"+zp+Up,"g");function Kp(e){return e.match(qp)||[]}function Jp(e){return ca(e)?Kp(e):Cp(e)}function ma(e){return function(t){t=oe(t);var r=ca(t)?Jp(t):void 0,n=r?r[0]:t.charAt(0),i=r?xp(r,1).join(""):t.slice(1);return n[e]()+i}}var Yp=ma("toUpperCase");const tn=Yp;function Wp(e){return tn(oe(e).toLowerCase())}function Gp(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 ga(e){return function(t){return e==null?void 0:e[t]}}var Zp={À:"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"},Qp=ga(Zp);const Xp=Qp;var td=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ed="\\u0300-\\u036f",rd="\\ufe20-\\ufe2f",nd="\\u20d0-\\u20ff",id=ed+rd+nd,sd="["+id+"]",od=RegExp(sd,"g");function ad(e){return e=oe(e),e&&e.replace(td,Xp).replace(od,"")}var cd=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function ud(e){return e.match(cd)||[]}var ld=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function hd(e){return ld.test(e)}var va="\\ud800-\\udfff",fd="\\u0300-\\u036f",pd="\\ufe20-\\ufe2f",dd="\\u20d0-\\u20ff",md=fd+pd+dd,ya="\\u2700-\\u27bf",ba="a-z\\xdf-\\xf6\\xf8-\\xff",gd="\\xac\\xb1\\xd7\\xf7",vd="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",yd="\\u2000-\\u206f",bd=" \\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",_a="A-Z\\xc0-\\xd6\\xd8-\\xde",_d="\\ufe0e\\ufe0f",wa=gd+vd+yd+bd,Ea="['’]",Rs="["+wa+"]",wd="["+md+"]",Sa="\\d+",Ed="["+ya+"]",xa="["+ba+"]",Ta="[^"+va+wa+Sa+ya+ba+_a+"]",Sd="\\ud83c[\\udffb-\\udfff]",xd="(?:"+wd+"|"+Sd+")",Td="[^"+va+"]",Oa="(?:\\ud83c[\\udde6-\\uddff]){2}",Aa="[\\ud800-\\udbff][\\udc00-\\udfff]",pe="["+_a+"]",Od="\\u200d",Ds="(?:"+xa+"|"+Ta+")",Ad="(?:"+pe+"|"+Ta+")",Ps="(?:"+Ea+"(?:d|ll|m|re|s|t|ve))?",Cs="(?:"+Ea+"(?:D|LL|M|RE|S|T|VE))?",$a=xd+"?",ja="["+_d+"]?",$d="(?:"+Od+"(?:"+[Td,Oa,Aa].join("|")+")"+ja+$a+")*",jd="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Rd="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Dd=ja+$a+$d,Pd="(?:"+[Ed,Oa,Aa].join("|")+")"+Dd,Cd=RegExp([pe+"?"+xa+"+"+Ps+"(?="+[Rs,pe,"$"].join("|")+")",Ad+"+"+Cs+"(?="+[Rs,pe+Ds,"$"].join("|")+")",pe+"?"+Ds+"+"+Ps,pe+"+"+Cs,Rd,jd,Sa,Pd].join("|"),"g");function kd(e){return e.match(Cd)||[]}function Nd(e,t,r){return e=oe(e),t=t,t===void 0?hd(e)?kd(e):ud(e):e.match(t)||[]}var Bd="['’]",Id=RegExp(Bd,"g");function Ri(e){return function(t){return Gp(Nd(ad(t).replace(Id,"")),e,"")}}var Md=Ri(function(e,t,r){return t=t.toLowerCase(),e+(r?Wp(t):t)});const kt=Md;function Fd(){this.__data__=new Bt,this.size=0}function Ld(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Vd(e){return this.__data__.get(e)}function Hd(e){return this.__data__.has(e)}var Ud=200;function zd(e,t){var r=this.__data__;if(r instanceof Bt){var n=r.__data__;if(!Ge||n.length<Ud-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new It(n)}return r.set(e,t),this.size=r.size,this}function Ot(e){var t=this.__data__=new Bt(e);this.size=t.size}Ot.prototype.clear=Fd,Ot.prototype.delete=Ld,Ot.prototype.get=Vd,Ot.prototype.has=Hd,Ot.prototype.set=zd;var Ra=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ks=Ra&&typeof module=="object"&&module&&!module.nodeType&&module,qd=ks&&ks.exports===Ra,Ns=qd?At.Buffer:void 0,Bs=Ns?Ns.allocUnsafe:void 0;function Da(e,t){if(t)return e.slice();var r=e.length,n=Bs?Bs(r):new e.constructor(r);return e.copy(n),n}function Kd(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 Jd(){return[]}var Yd=Object.prototype,Wd=Yd.propertyIsEnumerable,Is=Object.getOwnPropertySymbols,Gd=Is?function(e){return e==null?[]:(e=Object(e),Kd(Is(e),function(t){return Wd.call(e,t)}))}:Jd;const Zd=Gd;function Qd(e,t,r){var n=t(e);return ht(e)?n:fp(n,r(e))}function Vn(e){return Qd(e,Zr,Zd)}var Xd=se(At,"DataView");const Hn=Xd;var tm=se(At,"Promise");const Un=tm;var em=se(At,"Set");const zn=em;var Ms="[object Map]",rm="[object Object]",Fs="[object Promise]",Ls="[object Set]",Vs="[object WeakMap]",Hs="[object DataView]",nm=ie(Hn),im=ie(Ge),sm=ie(Un),om=ie(zn),am=ie(Mn),Qt=bt;(Hn&&Qt(new Hn(new ArrayBuffer(1)))!=Hs||Ge&&Qt(new Ge)!=Ms||Un&&Qt(Un.resolve())!=Fs||zn&&Qt(new zn)!=Ls||Mn&&Qt(new Mn)!=Vs)&&(Qt=function(e){var t=bt(e),r=t==rm?e.constructor:void 0,n=r?ie(r):"";if(n)switch(n){case nm:return Hs;case im:return Ms;case sm:return Fs;case om:return Ls;case am:return Vs}return t});const Ze=Qt;var cm=Object.prototype,um=cm.hasOwnProperty;function lm(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&um.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var hm=At.Uint8Array;const Lr=hm;function Di(e){var t=new e.constructor(e.byteLength);return new Lr(t).set(new Lr(e)),t}function fm(e,t){var r=Di(e.buffer);return new e.constructor(r,e.byteOffset,e.byteLength)}var pm=/\w*$/;function dm(e){var t=new e.constructor(e.source,pm.exec(e));return t.lastIndex=e.lastIndex,t}var Us=Rt?Rt.prototype:void 0,zs=Us?Us.valueOf:void 0;function mm(e){return zs?Object(zs.call(e)):{}}function Pa(e,t){var r=t?Di(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var gm="[object Boolean]",vm="[object Date]",ym="[object Map]",bm="[object Number]",_m="[object RegExp]",wm="[object Set]",Em="[object String]",Sm="[object Symbol]",xm="[object ArrayBuffer]",Tm="[object DataView]",Om="[object Float32Array]",Am="[object Float64Array]",$m="[object Int8Array]",jm="[object Int16Array]",Rm="[object Int32Array]",Dm="[object Uint8Array]",Pm="[object Uint8ClampedArray]",Cm="[object Uint16Array]",km="[object Uint32Array]";function Nm(e,t,r){var n=e.constructor;switch(t){case xm:return Di(e);case gm:case vm:return new n(+e);case Tm:return fm(e);case Om:case Am:case $m:case jm:case Rm:case Dm:case Pm:case Cm:case km:return Pa(e,r);case ym:return new n;case bm:case Em:return new n(e);case _m:return dm(e);case wm:return new n;case Sm:return mm(e)}}function Ca(e){return typeof e.constructor=="function"&&!Si(e)?ph(sa(e)):{}}var Bm="[object Map]";function Im(e){return st(e)&&Ze(e)==Bm}var qs=Dt&&Dt.isMap,Mm=qs?or(qs):Im;const Fm=Mm;var Lm="[object Set]";function Vm(e){return st(e)&&Ze(e)==Lm}var Ks=Dt&&Dt.isSet,Hm=Ks?or(Ks):Vm;const Um=Hm;var zm=1,ka="[object Arguments]",qm="[object Array]",Km="[object Boolean]",Jm="[object Date]",Ym="[object Error]",Na="[object Function]",Wm="[object GeneratorFunction]",Gm="[object Map]",Zm="[object Number]",Ba="[object Object]",Qm="[object RegExp]",Xm="[object Set]",tg="[object String]",eg="[object Symbol]",rg="[object WeakMap]",ng="[object ArrayBuffer]",ig="[object DataView]",sg="[object Float32Array]",og="[object Float64Array]",ag="[object Int8Array]",cg="[object Int16Array]",ug="[object Int32Array]",lg="[object Uint8Array]",hg="[object Uint8ClampedArray]",fg="[object Uint16Array]",pg="[object Uint32Array]",Q={};Q[ka]=Q[qm]=Q[ng]=Q[ig]=Q[Km]=Q[Jm]=Q[sg]=Q[og]=Q[ag]=Q[cg]=Q[ug]=Q[Gm]=Q[Zm]=Q[Ba]=Q[Qm]=Q[Xm]=Q[tg]=Q[eg]=Q[lg]=Q[hg]=Q[fg]=Q[pg]=!0,Q[Ym]=Q[Na]=Q[rg]=!1;function Or(e,t,r,n,i,s){var o,a=t&zm;if(o!==void 0)return o;if(!ot(e))return e;var u=ht(e);if(u)o=lm(e);else{var c=Ze(e),l=c==Na||c==Wm;if(xe(e))return Da(e,a);if(c==Ba||c==ka||l&&!i)o=l?{}:Ca(e);else{if(!Q[c])return i?e:{};o=Nm(e,c,a)}}s||(s=new Ot);var h=s.get(e);if(h)return h;s.set(e,o),Um(e)?e.forEach(function(d){o.add(Or(d,t,r,d,e,s))}):Fm(e)&&e.forEach(function(d,m){o.set(m,Or(d,t,r,m,e,s))});var f=Vn,p=u?void 0:f(e);return Oh(p||e,function(d,m){p&&(m=d,d=e[m]),wi(o,m,Or(d,t,r,m,e,s))}),o}var dg=1,mg=4;function Qe(e){return Or(e,dg|mg)}var gg="__lodash_hash_undefined__";function vg(e){return this.__data__.set(e,gg),this}function yg(e){return this.__data__.has(e)}function Ar(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new It;++t<r;)this.add(e[t])}Ar.prototype.add=Ar.prototype.push=vg,Ar.prototype.has=yg;function bg(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 _g(e,t){return e.has(t)}var wg=1,Eg=2;function Ia(e,t,r,n,i,s){var o=r&wg,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&Eg?new Ar: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(!bg(t,function(S,v){if(!_g(p,v)&&(d===S||i(d,S,r,n,s)))return p.push(v)})){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 Sg(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function xg(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Tg=1,Og=2,Ag="[object Boolean]",$g="[object Date]",jg="[object Error]",Rg="[object Map]",Dg="[object Number]",Pg="[object RegExp]",Cg="[object Set]",kg="[object String]",Ng="[object Symbol]",Bg="[object ArrayBuffer]",Ig="[object DataView]",Js=Rt?Rt.prototype:void 0,bn=Js?Js.valueOf:void 0;function Mg(e,t,r,n,i,s,o){switch(r){case Ig:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Bg:return!(e.byteLength!=t.byteLength||!s(new Lr(e),new Lr(t)));case Ag:case $g:case Dg:return Re(+e,+t);case jg:return e.name==t.name&&e.message==t.message;case Pg:case kg:return e==t+"";case Rg:var a=Sg;case Cg:var u=n&Tg;if(a||(a=xg),e.size!=t.size&&!u)return!1;var c=o.get(e);if(c)return c==t;n|=Og,o.set(e,t);var l=Ia(a(e),a(t),n,i,s,o);return o.delete(e),l;case Ng:if(bn)return bn.call(e)==bn.call(t)}return!1}var Fg=1,Lg=Object.prototype,Vg=Lg.hasOwnProperty;function Hg(e,t,r,n,i,s){var o=r&Fg,a=Vn(e),u=a.length,c=Vn(t),l=c.length;if(u!=l&&!o)return!1;for(var h=u;h--;){var f=a[h];if(!(o?f in t:Vg.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 S=e[f],v=t[f];if(n)var y=o?n(v,S,f,t,e,s):n(S,v,f,e,t,s);if(!(y===void 0?S===v||i(S,v,r,n,s):y)){m=!1;break}b||(b=f=="constructor")}if(m&&!b){var _=e.constructor,E=t.constructor;_!=E&&"constructor"in e&&"constructor"in t&&!(typeof _=="function"&&_ instanceof _&&typeof E=="function"&&E instanceof E)&&(m=!1)}return s.delete(e),s.delete(t),m}var Ug=1,Ys="[object Arguments]",Ws="[object Array]",mr="[object Object]",zg=Object.prototype,Gs=zg.hasOwnProperty;function qg(e,t,r,n,i,s){var o=ht(e),a=ht(t),u=o?Ws:Ze(e),c=a?Ws:Ze(t);u=u==Ys?mr:u,c=c==Ys?mr:c;var l=u==mr,h=c==mr,f=u==c;if(f&&xe(e)){if(!xe(t))return!1;o=!0,l=!1}if(f&&!l)return s||(s=new Ot),o||xi(e)?Ia(e,t,r,n,i,s):Mg(e,t,u,r,n,i,s);if(!(r&Ug)){var p=l&&Gs.call(e,"__wrapped__"),d=h&&Gs.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),Hg(e,t,r,n,i,s)):!1}function en(e,t,r,n,i){return e===t?!0:e==null||t==null||!st(e)&&!st(t)?e!==e&&t!==t:qg(e,t,r,n,en,i)}var Kg=1,Jg=2;function Yg(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?en(c,u,Kg|Jg,n,l):h))return!1}}return!0}function Ma(e){return e===e&&!ot(e)}function Wg(e){for(var t=Zr(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,Ma(i)]}return t}function Fa(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function Gg(e){var t=Wg(e);return t.length==1&&t[0][2]?Fa(t[0][0],t[0][1]):function(r){return r===e||Yg(r,e,t)}}function Zg(e,t){return e!=null&&t in Object(e)}function Qg(e,t,r){t=$i(t,e);for(var n=-1,i=t.length,s=!1;++n<i;){var o=ar(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&&Ei(i)&&Wr(o,i)&&(ht(e)||Fr(e)))}function Xg(e,t){return e!=null&&Qg(e,t,Zg)}var t1=1,e1=2;function r1(e,t){return Oi(e)&&Ma(t)?Fa(ar(e),t):function(r){var n=ia(r,e);return n===void 0&&n===t?Xg(r,e):en(t,n,t1|e1)}}function n1(e){return function(t){return t==null?void 0:t[e]}}function i1(e){return function(t){return na(t,e)}}function s1(e){return Oi(e)?n1(ar(e)):i1(e)}function o1(e){return typeof e=="function"?e:e==null?_i:typeof e=="object"?ht(e)?r1(e[0],e[1]):Gg(e):s1(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 c1(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 u1=c1();const La=u1;function l1(e,t){return e&&La(e,t,Zr)}function h1(e,t){return function(r,n){if(r==null)return r;if(!sr(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 f1=h1(l1);const p1=f1;function d1(e,t,r,n){return p1(e,function(i,s,o){t(n,i,r(i),o)}),n}function m1(e,t){return function(r,n){var i=ht(r)?a1:d1,s={};return i(r,e,o1(n),s)}}var g1=function(){return At.Date.now()};const _n=g1;var v1="Expected a function",y1=Math.max,b1=Math.min;function Pi(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(v1);t=ws(t)||0,ot(r)&&(l=!!r.leading,h="maxWait"in r,s=h?y1(ws(r.maxWait)||0,t):s,f="trailing"in r?!!r.trailing:f);function p(g){var x=n,O=i;return n=i=void 0,c=g,o=e.apply(O,x),o}function d(g){return c=g,a=setTimeout(S,t),l?p(g):o}function m(g){var x=g-u,O=g-c,V=t-x;return h?b1(V,s-O):V}function b(g){var x=g-u,O=g-c;return u===void 0||x>=t||x<0||h&&O>=s}function S(){var g=_n();if(b(g))return v(g);a=setTimeout(S,m(g))}function v(g){return a=void 0,f&&n?p(g):(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:v(_n())}function E(){var g=_n(),x=b(g);if(n=arguments,i=this,u=g,x){if(a===void 0)return d(u);if(h)return clearTimeout(a),a=setTimeout(S,t),p(u)}return a===void 0&&(a=setTimeout(S,t)),o}return E.cancel=y,E.flush=_,E}function qn(e,t,r){(r!==void 0&&!Re(e[t],r)||r===void 0&&!(t in e))&&Gr(e,t,r)}function _1(e){return st(e)&&sr(e)}function Kn(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function w1(e){return Yo(e,Ti(e))}function E1(e,t,r,n,i,s,o){var a=Kn(e,r),u=Kn(t,r),c=o.get(u);if(c){qn(e,r,c);return}var l=s?s(a,u,r+"",e,t,o):void 0,h=l===void 0;if(h){var f=ht(u),p=!f&&xe(u),d=!f&&!p&&xi(u);l=u,f||p||d?ht(a)?l=a:_1(a)?l=mh(a):p?(h=!1,l=Da(u,!0)):d?(h=!1,l=Pa(u,!0)):l=[]:ji(u)||Fr(u)?(l=a,Fr(a)?l=w1(a):(!ot(a)||ne(a))&&(l=Ca(u))):h=!1}h&&(o.set(u,l),i(l,u,n,s,o),o.delete(u)),qn(e,r,l)}function Va(e,t,r,n,i){e!==t&&La(t,function(s,o){if(i||(i=new Ot),ot(s))E1(e,t,o,r,Va,n,i);else{var a=n?n(Kn(e,o),s,o+"",e,t,i):void 0;a===void 0&&(a=s),qn(e,o,a)}},Ti)}var S1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},x1=ga(S1);const T1=x1;var Ha=/[&<>"']/g,O1=RegExp(Ha.source);function A1(e){return e=oe(e),e&&O1.test(e)?e.replace(Ha,T1):e}var $1=Object.prototype,j1=$1.hasOwnProperty,R1=m1(function(e,t,r){j1.call(e,r)?e[r].push(t):Gr(e,r,[t])});const Ua=R1;var D1="[object String]";function yt(e){return typeof e=="string"||!ht(e)&&st(e)&&bt(e)==D1}function P1(e,t){return qo(t,function(r){return e[r]})}var C1="[object ArrayBuffer]";function k1(e){return st(e)&&bt(e)==C1}var Zs=Dt&&Dt.isArrayBuffer,N1=Zs?or(Zs):k1;const B1=N1;var I1="[object Boolean]";function M1(e){return e===!0||e===!1||st(e)&&bt(e)==I1}var F1="[object Date]";function L1(e){return st(e)&&bt(e)==F1}var Qs=Dt&&Dt.isDate,V1=Qs?or(Qs):L1;const H1=V1;function U1(e,t){return en(e,t)}var z1="[object Number]";function za(e){return typeof e=="number"||st(e)&&bt(e)==z1}function q1(e){return za(e)&&e!=+e}function K1(e){return e===null}function J1(e){return e===void 0}var Y1=Ri(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()});const W1=Y1;var G1=ma("toLowerCase");const Z1=G1;var Q1=Zo(function(e,t,r){Va(e,t,r)});const $t=Q1;function X1(e,t,r,n){if(!ot(e))return e;t=$i(t,e);for(var i=-1,s=t.length,o=s-1,a=e;a!=null&&++i<s;){var u=ar(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=ot(l)?l:Wr(t[i+1])?[]:{})}wi(a,u,c),a=a[u]}return e}function t0(e,t,r){return e==null?e:X1(e,t,r)}var e0=Ri(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});const r0=e0;var qa=Object.prototype,n0=qa.hasOwnProperty;function Xs(e,t,r,n){return e===void 0||Re(e,qa[r])&&!n0.call(n,r)?t:e}var i0={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function s0(e){return"\\"+i0[e]}var o0=/<%=([\s\S]+?)%>/g;const Ka=o0;var a0=/<%-([\s\S]+?)%>/g;const c0=a0;var u0=/<%([\s\S]+?)%>/g;const l0=u0;var h0={escape:c0,evaluate:l0,interpolate:Ka,variable:"",imports:{_:{escape:A1}}};const to=h0;var f0="Invalid `variable` option passed into `_.template`",p0=/\b__p \+= '';/g,d0=/\b(__p \+=) '' \+/g,m0=/(__e\(.*?\)|\b__t\)) \+\n'';/g,g0=/[()=,{}\[\]\/\s]/,v0=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gr=/($^)/,y0=/['\n\r\u2028\u2029\\]/g,b0=Object.prototype,eo=b0.hasOwnProperty;function Ja(e,t,r){var n=to.imports._.templateSettings||to;r&&Go(e,t,r)&&(t=void 0),e=oe(e),t=js({},t,n,Xs);var i=js({},t.imports,n.imports,Xs),s=Zr(i),o=P1(i,s),a,u,c=0,l=t.interpolate||gr,h="__p += '",f=RegExp((t.escape||gr).source+"|"+l.source+"|"+(l===Ka?v0:gr).source+"|"+(t.evaluate||gr).source+"|$","g"),p=eo.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./mockjs-CMngCJLd.js","./dayjs-DpOeJKaG.js","./index-CbobV5nh.js","./vue-router-DB3on22t.js","./vue-BCaExZnh.js","./element-plus-CfygosTj.js","./lodash-es-Cmvm8wvQ.js","./@vueuse-Cpn_N91X.js","./@element-plus-icons-vue-BAbt3LbA.js","./shared-WQ2u-3_G.js","./element-plus-BbdgoGGn.css","./vxe-BJf2YWDp.js","./vxe-BAb1d5vW.css","./extension-CJuyTImz.js","./monaco-editor-Ckv89Lpe.js","./monaco-editor-CO43Fv42.css","./html2canvas-CIV5arX1.js","./extension-B7YsICyT.css","./_plugin-vue_export-helper-DlAUqK2U.js","./index-DmXmiv30.css","./preview-WdJT79pk.js","./page-DLaTT2eZ.js","./auth-CAAHD2fo.js","./auth-rAe8S_7e.css"])))=>i.map(i=>d[i]);
2
+ var nl=Object.defineProperty,il=Object.defineProperties;var sl=Object.getOwnPropertyDescriptors;var dr=Object.getOwnPropertySymbols;var fs=Object.prototype.hasOwnProperty,ps=Object.prototype.propertyIsEnumerable;var dn=(e,t,r)=>t in e?nl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,K=(e,t)=>{for(var r in t||(t={}))fs.call(t,r)&&dn(e,r,t[r]);if(dr)for(var r of dr(t))ps.call(t,r)&&dn(e,r,t[r]);return e},pt=(e,t)=>il(e,sl(t));var mn=(e,t)=>{var r={};for(var n in e)fs.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&dr)for(var n of dr(e))t.indexOf(n)<0&&ps.call(e,n)&&(r[n]=e[n]);return r};var j=(e,t,r)=>dn(e,typeof t!="symbol"?t+"":t,r);var H=(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())});import{aw as ds,ax as Kr,d as Jr,e as Ye,af as Nn,p as Mo,f as Fo,o as Bn,c as ol,a as ce,P as gn,w as al,m as cl,r as ul,j as ll,X as hl,k as Lo,g as fl,b as pl,u as In,h as Vo,i as dl,ag as ml,I as ms,J as gs,ay as gl,R as vl,at as yl}from"./vue-BCaExZnh.js";import{_ as Me}from"./monaco-editor-Ckv89Lpe.js";import{useRoute as Ho,createRouter as bl,createWebHashHistory as _l}from"./vue-router-DB3on22t.js";import{E as Yr,a as wl,z as El,b as Sl}from"./element-plus-CfygosTj.js";import"./lodash-es-Cmvm8wvQ.js";import"./@vueuse-Cpn_N91X.js";import"./@element-plus-icons-vue-BAbt3LbA.js";import"./shared-WQ2u-3_G.js";import"./dayjs-DpOeJKaG.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 xl={ENV_TYPE:"live",NODE_ENV:"production"},Tl=typeof global=="object"&&global&&global.Object===Object&&global;const Uo=Tl;var Ol=typeof self=="object"&&self&&self.Object===Object&&self,Al=Uo||Ol||Function("return this")();const At=Al;var $l=At.Symbol;const Rt=$l;var zo=Object.prototype,jl=zo.hasOwnProperty,Rl=zo.toString,Ne=Rt?Rt.toStringTag:void 0;function Dl(e){var t=jl.call(e,Ne),r=e[Ne];try{e[Ne]=void 0;var n=!0}catch(s){}var i=Rl.call(e);return n&&(t?e[Ne]=r:delete e[Ne]),i}var Pl=Object.prototype,Cl=Pl.toString;function kl(e){return Cl.call(e)}var Nl="[object Null]",Bl="[object Undefined]",vs=Rt?Rt.toStringTag:void 0;function bt(e){return e==null?e===void 0?Bl:Nl:vs&&vs in Object(e)?Dl(e):kl(e)}function st(e){return e!=null&&typeof e=="object"}var Il="[object Symbol]";function ir(e){return typeof e=="symbol"||st(e)&&bt(e)==Il}function qo(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 Ml=Array.isArray;const ht=Ml;var Fl=1/0,ys=Rt?Rt.prototype:void 0,bs=ys?ys.toString:void 0;function Ko(e){if(typeof e=="string")return e;if(ht(e))return qo(e,Ko)+"";if(ir(e))return bs?bs.call(e):"";var t=e+"";return t=="0"&&1/e==-Fl?"-0":t}var Ll=/\s/;function Vl(e){for(var t=e.length;t--&&Ll.test(e.charAt(t)););return t}var Hl=/^\s+/;function Ul(e){return e&&e.slice(0,Vl(e)+1).replace(Hl,"")}function ot(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var _s=NaN,zl=/^[-+]0x[0-9a-f]+$/i,ql=/^0b[01]+$/i,Kl=/^0o[0-7]+$/i,Jl=parseInt;function ws(e){if(typeof e=="number")return e;if(ir(e))return _s;if(ot(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ot(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Ul(e);var r=ql.test(e);return r||Kl.test(e)?Jl(e.slice(2),r?2:8):zl.test(e)?_s:+e}function _i(e){return e}var Yl="[object AsyncFunction]",Wl="[object Function]",Gl="[object GeneratorFunction]",Zl="[object Proxy]";function ne(e){if(!ot(e))return!1;var t=bt(e);return t==Wl||t==Gl||t==Yl||t==Zl}var Ql=At["__core-js_shared__"];const vn=Ql;var Es=function(){var e=/[^.]+$/.exec(vn&&vn.keys&&vn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Xl(e){return!!Es&&Es in e}var th=Function.prototype,eh=th.toString;function ie(e){if(e!=null){try{return eh.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var rh=/[\\^$.*+?()[\]{}|]/g,nh=/^\[object .+?Constructor\]$/,ih=Function.prototype,sh=Object.prototype,oh=ih.toString,ah=sh.hasOwnProperty,ch=RegExp("^"+oh.call(ah).replace(rh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function uh(e){if(!ot(e)||Xl(e))return!1;var t=ne(e)?ch:nh;return t.test(ie(e))}function lh(e,t){return e==null?void 0:e[t]}function se(e,t){var r=lh(e,t);return uh(r)?r:void 0}var hh=se(At,"WeakMap");const Mn=hh;var Ss=Object.create,fh=function(){function e(){}return function(t){if(!ot(t))return{};if(Ss)return Ss(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const ph=fh;function Jo(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 dh(){}function mh(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var gh=800,vh=16,yh=Date.now;function bh(e){var t=0,r=0;return function(){var n=yh(),i=vh-(n-r);if(r=n,i>0){if(++t>=gh)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function _h(e){return function(){return e}}var wh=function(){try{var e=se(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();const Mr=wh;var Eh=Mr?function(e,t){return Mr(e,"toString",{configurable:!0,enumerable:!1,value:_h(t),writable:!0})}:_i;const Sh=Eh;var xh=bh(Sh);const Th=xh;function Oh(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var Ah=9007199254740991,$h=/^(?:0|[1-9]\d*)$/;function Wr(e,t){var r=typeof e;return t=t!=null?t:Ah,!!t&&(r=="number"||r!="symbol"&&$h.test(e))&&e>-1&&e%1==0&&e<t}function Gr(e,t,r){t=="__proto__"&&Mr?Mr(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Re(e,t){return e===t||e!==e&&t!==t}var jh=Object.prototype,Rh=jh.hasOwnProperty;function wi(e,t,r){var n=e[t];(!(Rh.call(e,t)&&Re(n,r))||r===void 0&&!(t in e))&&Gr(e,t,r)}function Yo(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?Gr(r,a,u):wi(r,a,u)}return r}var xs=Math.max;function Dh(e,t,r){return t=xs(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,s=xs(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),Jo(e,this,a)}}function Wo(e,t){return Th(Dh(e,t,_i),e+"")}var Ph=9007199254740991;function Ei(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ph}function sr(e){return e!=null&&Ei(e.length)&&!ne(e)}function Go(e,t,r){if(!ot(r))return!1;var n=typeof t;return(n=="number"?sr(r)&&Wr(t,r.length):n=="string"&&t in r)?Re(r[t],e):!1}function Zo(e){return Wo(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&&Go(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 Ch=Object.prototype;function Si(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Ch;return e===r}function kh(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Nh="[object Arguments]";function Ts(e){return st(e)&&bt(e)==Nh}var Qo=Object.prototype,Bh=Qo.hasOwnProperty,Ih=Qo.propertyIsEnumerable,Mh=Ts(function(){return arguments}())?Ts:function(e){return st(e)&&Bh.call(e,"callee")&&!Ih.call(e,"callee")};const Fr=Mh;function Fh(){return!1}var Xo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Os=Xo&&typeof module=="object"&&module&&!module.nodeType&&module,Lh=Os&&Os.exports===Xo,As=Lh?At.Buffer:void 0,Vh=As?As.isBuffer:void 0,Hh=Vh||Fh;const xe=Hh;var Uh="[object Arguments]",zh="[object Array]",qh="[object Boolean]",Kh="[object Date]",Jh="[object Error]",Yh="[object Function]",Wh="[object Map]",Gh="[object Number]",Zh="[object Object]",Qh="[object RegExp]",Xh="[object Set]",tf="[object String]",ef="[object WeakMap]",rf="[object ArrayBuffer]",nf="[object DataView]",sf="[object Float32Array]",of="[object Float64Array]",af="[object Int8Array]",cf="[object Int16Array]",uf="[object Int32Array]",lf="[object Uint8Array]",hf="[object Uint8ClampedArray]",ff="[object Uint16Array]",pf="[object Uint32Array]",X={};X[sf]=X[of]=X[af]=X[cf]=X[uf]=X[lf]=X[hf]=X[ff]=X[pf]=!0,X[Uh]=X[zh]=X[rf]=X[qh]=X[nf]=X[Kh]=X[Jh]=X[Yh]=X[Wh]=X[Gh]=X[Zh]=X[Qh]=X[Xh]=X[tf]=X[ef]=!1;function df(e){return st(e)&&Ei(e.length)&&!!X[bt(e)]}function or(e){return function(t){return e(t)}}var ta=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ze=ta&&typeof module=="object"&&module&&!module.nodeType&&module,mf=ze&&ze.exports===ta,yn=mf&&Uo.process,gf=function(){try{var e=ze&&ze.require&&ze.require("util").types;return e||yn&&yn.binding&&yn.binding("util")}catch(t){}}();const Dt=gf;var $s=Dt&&Dt.isTypedArray,vf=$s?or($s):df;const xi=vf;var yf=Object.prototype,bf=yf.hasOwnProperty;function ea(e,t){var r=ht(e),n=!r&&Fr(e),i=!r&&!n&&xe(e),s=!r&&!n&&!i&&xi(e),o=r||n||i||s,a=o?kh(e.length,String):[],u=a.length;for(var c in e)(t||bf.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Wr(c,u)))&&a.push(c);return a}function ra(e,t){return function(r){return e(t(r))}}var _f=ra(Object.keys,Object);const wf=_f;var Ef=Object.prototype,Sf=Ef.hasOwnProperty;function xf(e){if(!Si(e))return wf(e);var t=[];for(var r in Object(e))Sf.call(e,r)&&r!="constructor"&&t.push(r);return t}function Zr(e){return sr(e)?ea(e):xf(e)}function Tf(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Of=Object.prototype,Af=Of.hasOwnProperty;function $f(e){if(!ot(e))return Tf(e);var t=Si(e),r=[];for(var n in e)n=="constructor"&&(t||!Af.call(e,n))||r.push(n);return r}function Ti(e){return sr(e)?ea(e,!0):$f(e)}var jf=Zo(function(e,t,r,n){Yo(t,Ti(t),e,n)});const js=jf;var Rf=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Df=/^\w*$/;function Oi(e,t){if(ht(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||ir(e)?!0:Df.test(e)||!Rf.test(e)||t!=null&&e in Object(t)}var Pf=se(Object,"create");const We=Pf;function Cf(){this.__data__=We?We(null):{},this.size=0}function kf(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Nf="__lodash_hash_undefined__",Bf=Object.prototype,If=Bf.hasOwnProperty;function Mf(e){var t=this.__data__;if(We){var r=t[e];return r===Nf?void 0:r}return If.call(t,e)?t[e]:void 0}var Ff=Object.prototype,Lf=Ff.hasOwnProperty;function Vf(e){var t=this.__data__;return We?t[e]!==void 0:Lf.call(t,e)}var Hf="__lodash_hash_undefined__";function Uf(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=We&&t===void 0?Hf: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=Cf,Xt.prototype.delete=kf,Xt.prototype.get=Mf,Xt.prototype.has=Vf,Xt.prototype.set=Uf;function zf(){this.__data__=[],this.size=0}function Qr(e,t){for(var r=e.length;r--;)if(Re(e[r][0],t))return r;return-1}var qf=Array.prototype,Kf=qf.splice;function Jf(e){var t=this.__data__,r=Qr(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Kf.call(t,r,1),--this.size,!0}function Yf(e){var t=this.__data__,r=Qr(t,e);return r<0?void 0:t[r][1]}function Wf(e){return Qr(this.__data__,e)>-1}function Gf(e,t){var r=this.__data__,n=Qr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Bt(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])}}Bt.prototype.clear=zf,Bt.prototype.delete=Jf,Bt.prototype.get=Yf,Bt.prototype.has=Wf,Bt.prototype.set=Gf;var Zf=se(At,"Map");const Ge=Zf;function Qf(){this.size=0,this.__data__={hash:new Xt,map:new(Ge||Bt),string:new Xt}}function Xf(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Xr(e,t){var r=e.__data__;return Xf(t)?r[typeof t=="string"?"string":"hash"]:r.map}function tp(e){var t=Xr(this,e).delete(e);return this.size-=t?1:0,t}function ep(e){return Xr(this,e).get(e)}function rp(e){return Xr(this,e).has(e)}function np(e,t){var r=Xr(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,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=Qf,It.prototype.delete=tp,It.prototype.get=ep,It.prototype.has=rp,It.prototype.set=np;var ip="Expected a function";function Ai(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(ip);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(Ai.Cache||It),r}Ai.Cache=It;var sp=500;function op(e){var t=Ai(e,function(n){return r.size===sp&&r.clear(),n}),r=t.cache;return t}var ap=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cp=/\\(\\)?/g,up=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(cp,"$1"):n||r)}),t});const lp=up;function oe(e){return e==null?"":Ko(e)}function $i(e,t){return ht(e)?e:Oi(e,t)?[e]:lp(oe(e))}var hp=1/0;function ar(e){if(typeof e=="string"||ir(e))return e;var t=e+"";return t=="0"&&1/e==-hp?"-0":t}function na(e,t){t=$i(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[ar(t[r++])];return r&&r==n?e:void 0}function ia(e,t,r){var n=e==null?void 0:na(e,t);return n===void 0?r:n}function fp(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var pp=ra(Object.getPrototypeOf,Object);const sa=pp;var dp="[object Object]",mp=Function.prototype,gp=Object.prototype,oa=mp.toString,vp=gp.hasOwnProperty,yp=oa.call(Object);function ji(e){if(!st(e)||bt(e)!=dp)return!1;var t=sa(e);if(t===null)return!0;var r=vp.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&oa.call(r)==yp}var bp="[object DOMException]",_p="[object Error]";function aa(e){if(!st(e))return!1;var t=bt(e);return t==_p||t==bp||typeof e.message=="string"&&typeof e.name=="string"&&!ji(e)}var wp=Wo(function(e,t){try{return Jo(e,void 0,t)}catch(r){return aa(r)?r:new Error(r)}});const Ep=wp;function Sp(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 xp(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:Sp(e,t,r)}var Tp="\\ud800-\\udfff",Op="\\u0300-\\u036f",Ap="\\ufe20-\\ufe2f",$p="\\u20d0-\\u20ff",jp=Op+Ap+$p,Rp="\\ufe0e\\ufe0f",Dp="\\u200d",Pp=RegExp("["+Dp+Tp+jp+Rp+"]");function ca(e){return Pp.test(e)}function Cp(e){return e.split("")}var ua="\\ud800-\\udfff",kp="\\u0300-\\u036f",Np="\\ufe20-\\ufe2f",Bp="\\u20d0-\\u20ff",Ip=kp+Np+Bp,Mp="\\ufe0e\\ufe0f",Fp="["+ua+"]",Fn="["+Ip+"]",Ln="\\ud83c[\\udffb-\\udfff]",Lp="(?:"+Fn+"|"+Ln+")",la="[^"+ua+"]",ha="(?:\\ud83c[\\udde6-\\uddff]){2}",fa="[\\ud800-\\udbff][\\udc00-\\udfff]",Vp="\\u200d",pa=Lp+"?",da="["+Mp+"]?",Hp="(?:"+Vp+"(?:"+[la,ha,fa].join("|")+")"+da+pa+")*",Up=da+pa+Hp,zp="(?:"+[la+Fn+"?",Fn,ha,fa,Fp].join("|")+")",qp=RegExp(Ln+"(?="+Ln+")|"+zp+Up,"g");function Kp(e){return e.match(qp)||[]}function Jp(e){return ca(e)?Kp(e):Cp(e)}function ma(e){return function(t){t=oe(t);var r=ca(t)?Jp(t):void 0,n=r?r[0]:t.charAt(0),i=r?xp(r,1).join(""):t.slice(1);return n[e]()+i}}var Yp=ma("toUpperCase");const tn=Yp;function Wp(e){return tn(oe(e).toLowerCase())}function Gp(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 ga(e){return function(t){return e==null?void 0:e[t]}}var Zp={À:"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"},Qp=ga(Zp);const Xp=Qp;var td=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ed="\\u0300-\\u036f",rd="\\ufe20-\\ufe2f",nd="\\u20d0-\\u20ff",id=ed+rd+nd,sd="["+id+"]",od=RegExp(sd,"g");function ad(e){return e=oe(e),e&&e.replace(td,Xp).replace(od,"")}var cd=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function ud(e){return e.match(cd)||[]}var ld=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function hd(e){return ld.test(e)}var va="\\ud800-\\udfff",fd="\\u0300-\\u036f",pd="\\ufe20-\\ufe2f",dd="\\u20d0-\\u20ff",md=fd+pd+dd,ya="\\u2700-\\u27bf",ba="a-z\\xdf-\\xf6\\xf8-\\xff",gd="\\xac\\xb1\\xd7\\xf7",vd="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",yd="\\u2000-\\u206f",bd=" \\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",_a="A-Z\\xc0-\\xd6\\xd8-\\xde",_d="\\ufe0e\\ufe0f",wa=gd+vd+yd+bd,Ea="['’]",Rs="["+wa+"]",wd="["+md+"]",Sa="\\d+",Ed="["+ya+"]",xa="["+ba+"]",Ta="[^"+va+wa+Sa+ya+ba+_a+"]",Sd="\\ud83c[\\udffb-\\udfff]",xd="(?:"+wd+"|"+Sd+")",Td="[^"+va+"]",Oa="(?:\\ud83c[\\udde6-\\uddff]){2}",Aa="[\\ud800-\\udbff][\\udc00-\\udfff]",pe="["+_a+"]",Od="\\u200d",Ds="(?:"+xa+"|"+Ta+")",Ad="(?:"+pe+"|"+Ta+")",Ps="(?:"+Ea+"(?:d|ll|m|re|s|t|ve))?",Cs="(?:"+Ea+"(?:D|LL|M|RE|S|T|VE))?",$a=xd+"?",ja="["+_d+"]?",$d="(?:"+Od+"(?:"+[Td,Oa,Aa].join("|")+")"+ja+$a+")*",jd="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Rd="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Dd=ja+$a+$d,Pd="(?:"+[Ed,Oa,Aa].join("|")+")"+Dd,Cd=RegExp([pe+"?"+xa+"+"+Ps+"(?="+[Rs,pe,"$"].join("|")+")",Ad+"+"+Cs+"(?="+[Rs,pe+Ds,"$"].join("|")+")",pe+"?"+Ds+"+"+Ps,pe+"+"+Cs,Rd,jd,Sa,Pd].join("|"),"g");function kd(e){return e.match(Cd)||[]}function Nd(e,t,r){return e=oe(e),t=t,t===void 0?hd(e)?kd(e):ud(e):e.match(t)||[]}var Bd="['’]",Id=RegExp(Bd,"g");function Ri(e){return function(t){return Gp(Nd(ad(t).replace(Id,"")),e,"")}}var Md=Ri(function(e,t,r){return t=t.toLowerCase(),e+(r?Wp(t):t)});const kt=Md;function Fd(){this.__data__=new Bt,this.size=0}function Ld(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Vd(e){return this.__data__.get(e)}function Hd(e){return this.__data__.has(e)}var Ud=200;function zd(e,t){var r=this.__data__;if(r instanceof Bt){var n=r.__data__;if(!Ge||n.length<Ud-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new It(n)}return r.set(e,t),this.size=r.size,this}function Ot(e){var t=this.__data__=new Bt(e);this.size=t.size}Ot.prototype.clear=Fd,Ot.prototype.delete=Ld,Ot.prototype.get=Vd,Ot.prototype.has=Hd,Ot.prototype.set=zd;var Ra=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ks=Ra&&typeof module=="object"&&module&&!module.nodeType&&module,qd=ks&&ks.exports===Ra,Ns=qd?At.Buffer:void 0,Bs=Ns?Ns.allocUnsafe:void 0;function Da(e,t){if(t)return e.slice();var r=e.length,n=Bs?Bs(r):new e.constructor(r);return e.copy(n),n}function Kd(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 Jd(){return[]}var Yd=Object.prototype,Wd=Yd.propertyIsEnumerable,Is=Object.getOwnPropertySymbols,Gd=Is?function(e){return e==null?[]:(e=Object(e),Kd(Is(e),function(t){return Wd.call(e,t)}))}:Jd;const Zd=Gd;function Qd(e,t,r){var n=t(e);return ht(e)?n:fp(n,r(e))}function Vn(e){return Qd(e,Zr,Zd)}var Xd=se(At,"DataView");const Hn=Xd;var tm=se(At,"Promise");const Un=tm;var em=se(At,"Set");const zn=em;var Ms="[object Map]",rm="[object Object]",Fs="[object Promise]",Ls="[object Set]",Vs="[object WeakMap]",Hs="[object DataView]",nm=ie(Hn),im=ie(Ge),sm=ie(Un),om=ie(zn),am=ie(Mn),Qt=bt;(Hn&&Qt(new Hn(new ArrayBuffer(1)))!=Hs||Ge&&Qt(new Ge)!=Ms||Un&&Qt(Un.resolve())!=Fs||zn&&Qt(new zn)!=Ls||Mn&&Qt(new Mn)!=Vs)&&(Qt=function(e){var t=bt(e),r=t==rm?e.constructor:void 0,n=r?ie(r):"";if(n)switch(n){case nm:return Hs;case im:return Ms;case sm:return Fs;case om:return Ls;case am:return Vs}return t});const Ze=Qt;var cm=Object.prototype,um=cm.hasOwnProperty;function lm(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&um.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var hm=At.Uint8Array;const Lr=hm;function Di(e){var t=new e.constructor(e.byteLength);return new Lr(t).set(new Lr(e)),t}function fm(e,t){var r=Di(e.buffer);return new e.constructor(r,e.byteOffset,e.byteLength)}var pm=/\w*$/;function dm(e){var t=new e.constructor(e.source,pm.exec(e));return t.lastIndex=e.lastIndex,t}var Us=Rt?Rt.prototype:void 0,zs=Us?Us.valueOf:void 0;function mm(e){return zs?Object(zs.call(e)):{}}function Pa(e,t){var r=t?Di(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var gm="[object Boolean]",vm="[object Date]",ym="[object Map]",bm="[object Number]",_m="[object RegExp]",wm="[object Set]",Em="[object String]",Sm="[object Symbol]",xm="[object ArrayBuffer]",Tm="[object DataView]",Om="[object Float32Array]",Am="[object Float64Array]",$m="[object Int8Array]",jm="[object Int16Array]",Rm="[object Int32Array]",Dm="[object Uint8Array]",Pm="[object Uint8ClampedArray]",Cm="[object Uint16Array]",km="[object Uint32Array]";function Nm(e,t,r){var n=e.constructor;switch(t){case xm:return Di(e);case gm:case vm:return new n(+e);case Tm:return fm(e);case Om:case Am:case $m:case jm:case Rm:case Dm:case Pm:case Cm:case km:return Pa(e,r);case ym:return new n;case bm:case Em:return new n(e);case _m:return dm(e);case wm:return new n;case Sm:return mm(e)}}function Ca(e){return typeof e.constructor=="function"&&!Si(e)?ph(sa(e)):{}}var Bm="[object Map]";function Im(e){return st(e)&&Ze(e)==Bm}var qs=Dt&&Dt.isMap,Mm=qs?or(qs):Im;const Fm=Mm;var Lm="[object Set]";function Vm(e){return st(e)&&Ze(e)==Lm}var Ks=Dt&&Dt.isSet,Hm=Ks?or(Ks):Vm;const Um=Hm;var zm=1,ka="[object Arguments]",qm="[object Array]",Km="[object Boolean]",Jm="[object Date]",Ym="[object Error]",Na="[object Function]",Wm="[object GeneratorFunction]",Gm="[object Map]",Zm="[object Number]",Ba="[object Object]",Qm="[object RegExp]",Xm="[object Set]",tg="[object String]",eg="[object Symbol]",rg="[object WeakMap]",ng="[object ArrayBuffer]",ig="[object DataView]",sg="[object Float32Array]",og="[object Float64Array]",ag="[object Int8Array]",cg="[object Int16Array]",ug="[object Int32Array]",lg="[object Uint8Array]",hg="[object Uint8ClampedArray]",fg="[object Uint16Array]",pg="[object Uint32Array]",Q={};Q[ka]=Q[qm]=Q[ng]=Q[ig]=Q[Km]=Q[Jm]=Q[sg]=Q[og]=Q[ag]=Q[cg]=Q[ug]=Q[Gm]=Q[Zm]=Q[Ba]=Q[Qm]=Q[Xm]=Q[tg]=Q[eg]=Q[lg]=Q[hg]=Q[fg]=Q[pg]=!0,Q[Ym]=Q[Na]=Q[rg]=!1;function Or(e,t,r,n,i,s){var o,a=t&zm;if(o!==void 0)return o;if(!ot(e))return e;var u=ht(e);if(u)o=lm(e);else{var c=Ze(e),l=c==Na||c==Wm;if(xe(e))return Da(e,a);if(c==Ba||c==ka||l&&!i)o=l?{}:Ca(e);else{if(!Q[c])return i?e:{};o=Nm(e,c,a)}}s||(s=new Ot);var h=s.get(e);if(h)return h;s.set(e,o),Um(e)?e.forEach(function(d){o.add(Or(d,t,r,d,e,s))}):Fm(e)&&e.forEach(function(d,m){o.set(m,Or(d,t,r,m,e,s))});var f=Vn,p=u?void 0:f(e);return Oh(p||e,function(d,m){p&&(m=d,d=e[m]),wi(o,m,Or(d,t,r,m,e,s))}),o}var dg=1,mg=4;function Qe(e){return Or(e,dg|mg)}var gg="__lodash_hash_undefined__";function vg(e){return this.__data__.set(e,gg),this}function yg(e){return this.__data__.has(e)}function Ar(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new It;++t<r;)this.add(e[t])}Ar.prototype.add=Ar.prototype.push=vg,Ar.prototype.has=yg;function bg(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 _g(e,t){return e.has(t)}var wg=1,Eg=2;function Ia(e,t,r,n,i,s){var o=r&wg,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&Eg?new Ar: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(!bg(t,function(S,v){if(!_g(p,v)&&(d===S||i(d,S,r,n,s)))return p.push(v)})){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 Sg(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function xg(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Tg=1,Og=2,Ag="[object Boolean]",$g="[object Date]",jg="[object Error]",Rg="[object Map]",Dg="[object Number]",Pg="[object RegExp]",Cg="[object Set]",kg="[object String]",Ng="[object Symbol]",Bg="[object ArrayBuffer]",Ig="[object DataView]",Js=Rt?Rt.prototype:void 0,bn=Js?Js.valueOf:void 0;function Mg(e,t,r,n,i,s,o){switch(r){case Ig:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Bg:return!(e.byteLength!=t.byteLength||!s(new Lr(e),new Lr(t)));case Ag:case $g:case Dg:return Re(+e,+t);case jg:return e.name==t.name&&e.message==t.message;case Pg:case kg:return e==t+"";case Rg:var a=Sg;case Cg:var u=n&Tg;if(a||(a=xg),e.size!=t.size&&!u)return!1;var c=o.get(e);if(c)return c==t;n|=Og,o.set(e,t);var l=Ia(a(e),a(t),n,i,s,o);return o.delete(e),l;case Ng:if(bn)return bn.call(e)==bn.call(t)}return!1}var Fg=1,Lg=Object.prototype,Vg=Lg.hasOwnProperty;function Hg(e,t,r,n,i,s){var o=r&Fg,a=Vn(e),u=a.length,c=Vn(t),l=c.length;if(u!=l&&!o)return!1;for(var h=u;h--;){var f=a[h];if(!(o?f in t:Vg.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 S=e[f],v=t[f];if(n)var y=o?n(v,S,f,t,e,s):n(S,v,f,e,t,s);if(!(y===void 0?S===v||i(S,v,r,n,s):y)){m=!1;break}b||(b=f=="constructor")}if(m&&!b){var _=e.constructor,E=t.constructor;_!=E&&"constructor"in e&&"constructor"in t&&!(typeof _=="function"&&_ instanceof _&&typeof E=="function"&&E instanceof E)&&(m=!1)}return s.delete(e),s.delete(t),m}var Ug=1,Ys="[object Arguments]",Ws="[object Array]",mr="[object Object]",zg=Object.prototype,Gs=zg.hasOwnProperty;function qg(e,t,r,n,i,s){var o=ht(e),a=ht(t),u=o?Ws:Ze(e),c=a?Ws:Ze(t);u=u==Ys?mr:u,c=c==Ys?mr:c;var l=u==mr,h=c==mr,f=u==c;if(f&&xe(e)){if(!xe(t))return!1;o=!0,l=!1}if(f&&!l)return s||(s=new Ot),o||xi(e)?Ia(e,t,r,n,i,s):Mg(e,t,u,r,n,i,s);if(!(r&Ug)){var p=l&&Gs.call(e,"__wrapped__"),d=h&&Gs.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),Hg(e,t,r,n,i,s)):!1}function en(e,t,r,n,i){return e===t?!0:e==null||t==null||!st(e)&&!st(t)?e!==e&&t!==t:qg(e,t,r,n,en,i)}var Kg=1,Jg=2;function Yg(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?en(c,u,Kg|Jg,n,l):h))return!1}}return!0}function Ma(e){return e===e&&!ot(e)}function Wg(e){for(var t=Zr(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,Ma(i)]}return t}function Fa(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function Gg(e){var t=Wg(e);return t.length==1&&t[0][2]?Fa(t[0][0],t[0][1]):function(r){return r===e||Yg(r,e,t)}}function Zg(e,t){return e!=null&&t in Object(e)}function Qg(e,t,r){t=$i(t,e);for(var n=-1,i=t.length,s=!1;++n<i;){var o=ar(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&&Ei(i)&&Wr(o,i)&&(ht(e)||Fr(e)))}function Xg(e,t){return e!=null&&Qg(e,t,Zg)}var t1=1,e1=2;function r1(e,t){return Oi(e)&&Ma(t)?Fa(ar(e),t):function(r){var n=ia(r,e);return n===void 0&&n===t?Xg(r,e):en(t,n,t1|e1)}}function n1(e){return function(t){return t==null?void 0:t[e]}}function i1(e){return function(t){return na(t,e)}}function s1(e){return Oi(e)?n1(ar(e)):i1(e)}function o1(e){return typeof e=="function"?e:e==null?_i:typeof e=="object"?ht(e)?r1(e[0],e[1]):Gg(e):s1(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 c1(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 u1=c1();const La=u1;function l1(e,t){return e&&La(e,t,Zr)}function h1(e,t){return function(r,n){if(r==null)return r;if(!sr(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 f1=h1(l1);const p1=f1;function d1(e,t,r,n){return p1(e,function(i,s,o){t(n,i,r(i),o)}),n}function m1(e,t){return function(r,n){var i=ht(r)?a1:d1,s={};return i(r,e,o1(n),s)}}var g1=function(){return At.Date.now()};const _n=g1;var v1="Expected a function",y1=Math.max,b1=Math.min;function Pi(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(v1);t=ws(t)||0,ot(r)&&(l=!!r.leading,h="maxWait"in r,s=h?y1(ws(r.maxWait)||0,t):s,f="trailing"in r?!!r.trailing:f);function p(g){var x=n,O=i;return n=i=void 0,c=g,o=e.apply(O,x),o}function d(g){return c=g,a=setTimeout(S,t),l?p(g):o}function m(g){var x=g-u,O=g-c,V=t-x;return h?b1(V,s-O):V}function b(g){var x=g-u,O=g-c;return u===void 0||x>=t||x<0||h&&O>=s}function S(){var g=_n();if(b(g))return v(g);a=setTimeout(S,m(g))}function v(g){return a=void 0,f&&n?p(g):(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:v(_n())}function E(){var g=_n(),x=b(g);if(n=arguments,i=this,u=g,x){if(a===void 0)return d(u);if(h)return clearTimeout(a),a=setTimeout(S,t),p(u)}return a===void 0&&(a=setTimeout(S,t)),o}return E.cancel=y,E.flush=_,E}function qn(e,t,r){(r!==void 0&&!Re(e[t],r)||r===void 0&&!(t in e))&&Gr(e,t,r)}function _1(e){return st(e)&&sr(e)}function Kn(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function w1(e){return Yo(e,Ti(e))}function E1(e,t,r,n,i,s,o){var a=Kn(e,r),u=Kn(t,r),c=o.get(u);if(c){qn(e,r,c);return}var l=s?s(a,u,r+"",e,t,o):void 0,h=l===void 0;if(h){var f=ht(u),p=!f&&xe(u),d=!f&&!p&&xi(u);l=u,f||p||d?ht(a)?l=a:_1(a)?l=mh(a):p?(h=!1,l=Da(u,!0)):d?(h=!1,l=Pa(u,!0)):l=[]:ji(u)||Fr(u)?(l=a,Fr(a)?l=w1(a):(!ot(a)||ne(a))&&(l=Ca(u))):h=!1}h&&(o.set(u,l),i(l,u,n,s,o),o.delete(u)),qn(e,r,l)}function Va(e,t,r,n,i){e!==t&&La(t,function(s,o){if(i||(i=new Ot),ot(s))E1(e,t,o,r,Va,n,i);else{var a=n?n(Kn(e,o),s,o+"",e,t,i):void 0;a===void 0&&(a=s),qn(e,o,a)}},Ti)}var S1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},x1=ga(S1);const T1=x1;var Ha=/[&<>"']/g,O1=RegExp(Ha.source);function A1(e){return e=oe(e),e&&O1.test(e)?e.replace(Ha,T1):e}var $1=Object.prototype,j1=$1.hasOwnProperty,R1=m1(function(e,t,r){j1.call(e,r)?e[r].push(t):Gr(e,r,[t])});const Ua=R1;var D1="[object String]";function vt(e){return typeof e=="string"||!ht(e)&&st(e)&&bt(e)==D1}function P1(e,t){return qo(t,function(r){return e[r]})}var C1="[object ArrayBuffer]";function k1(e){return st(e)&&bt(e)==C1}var Zs=Dt&&Dt.isArrayBuffer,N1=Zs?or(Zs):k1;const B1=N1;var I1="[object Boolean]";function M1(e){return e===!0||e===!1||st(e)&&bt(e)==I1}var F1="[object Date]";function L1(e){return st(e)&&bt(e)==F1}var Qs=Dt&&Dt.isDate,V1=Qs?or(Qs):L1;const H1=V1;function U1(e,t){return en(e,t)}var z1="[object Number]";function za(e){return typeof e=="number"||st(e)&&bt(e)==z1}function q1(e){return za(e)&&e!=+e}function K1(e){return e===null}function J1(e){return e===void 0}var Y1=Ri(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()});const W1=Y1;var G1=ma("toLowerCase");const Z1=G1;var Q1=Zo(function(e,t,r){Va(e,t,r)});const $t=Q1;function X1(e,t,r,n){if(!ot(e))return e;t=$i(t,e);for(var i=-1,s=t.length,o=s-1,a=e;a!=null&&++i<s;){var u=ar(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=ot(l)?l:Wr(t[i+1])?[]:{})}wi(a,u,c),a=a[u]}return e}function t0(e,t,r){return e==null?e:X1(e,t,r)}var e0=Ri(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});const r0=e0;var qa=Object.prototype,n0=qa.hasOwnProperty;function Xs(e,t,r,n){return e===void 0||Re(e,qa[r])&&!n0.call(n,r)?t:e}var i0={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function s0(e){return"\\"+i0[e]}var o0=/<%=([\s\S]+?)%>/g;const Ka=o0;var a0=/<%-([\s\S]+?)%>/g;const c0=a0;var u0=/<%([\s\S]+?)%>/g;const l0=u0;var h0={escape:c0,evaluate:l0,interpolate:Ka,variable:"",imports:{_:{escape:A1}}};const to=h0;var f0="Invalid `variable` option passed into `_.template`",p0=/\b__p \+= '';/g,d0=/\b(__p \+=) '' \+/g,m0=/(__e\(.*?\)|\b__t\)) \+\n'';/g,g0=/[()=,{}\[\]\/\s]/,v0=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gr=/($^)/,y0=/['\n\r\u2028\u2029\\]/g,b0=Object.prototype,eo=b0.hasOwnProperty;function Ja(e,t,r){var n=to.imports._.templateSettings||to;r&&Go(e,t,r)&&(t=void 0),e=oe(e),t=js({},t,n,Xs);var i=js({},t.imports,n.imports,Xs),s=Zr(i),o=P1(i,s),a,u,c=0,l=t.interpolate||gr,h="__p += '",f=RegExp((t.escape||gr).source+"|"+l.source+"|"+(l===Ka?v0:gr).source+"|"+(t.evaluate||gr).source+"|$","g"),p=eo.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+`
3
3
  `:"";e.replace(f,function(b,S,v,y,_,E){return v||(v=y),h+=e.slice(c,E).replace(y0,s0),S&&(a=!0,h+=`' +
4
4
  __e(`+S+`) +
5
5
  '`),_&&(u=!0,h+=`';
@@ -51,15 +51,15 @@ version: 2.9.0
51
51
  * Copyright (c) 2024, VTJ.PRO All rights reserved.
52
52
  * @name @vtj/core
53
53
  * @author CHC chenhuachun1549@dingtalk.com
54
- * @version 0.9.1
54
+ * @version 0.9.2
55
55
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
56
- */const kv="0.9.1",Nv="BuiltIn",Mi="VueMaterial",Fi="VueRouterMaterial",Bv=[Mi,Fi],Iv={vue:"Vue","vue-router":"VueRouter"},jc={[Mi]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[Fi]:["RouterView","RouterLink"]},Mv=["slot","template","component","img","div","p","h1","h2","h3","span","a"];let Fv=class{},Rc=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}},Rr=class Dc{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 Dc(n,i),r),{})}},Dr=class Pc{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 Pc(i),r),{})}},Le=class Cc{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||mt(),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 Cc(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 Hr=(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=mt(),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=Rr.parse(a),this.events=Dr.parse(u),this.directives=Le.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 Rr(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 Dr(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=this.directives.findIndex(i=>i.id===t.id);n>=0?this.directives.splice(n,1,new Le(t)):this.directives.push(new Le(t)),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:Rr.toDsl(u),directives:Le.toDsl(c),events:Dr.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",Je=class Je{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||mt(),this.update(t,!0)}update(t,r=!1){for(const i of Je.normalAttrs){const s=t[i];s&&(this[i]=s)}const{nodes:n=[]}=t;n.length&&(this.nodes=n.map(i=>new Hr(i))),r||F.emit(G,this)}toDsl(t){const{__VTJ_BLOCK__:r,id:n,nodes:i}=this;return pt(K({},Je.normalAttrs.reduce((s,o)=>(s[o]=this[o],s),{})),{__VTJ_BLOCK__:r,__VERSION__:t||yc().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||mt();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=yt(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=>yt(i)?i===t:i.name===t);n>-1&&(this.emits.splice(n,1),r||F.emit(G,this))}setSlot(t,r=!1){const n=yt(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=>yt(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=Vi(t.toDsl()),i=new Hr(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(Je,"normalAttrs",["name","locked","inject","state","lifeCycles","methods","computed","watch","css","props","emits","slots","dataSources","__TEMPLATE_ID__"]);let Mt=Je;const it="EVENT_PROJECT_CHANGE",ti="EVENT_PROJECT_ACTIVED",ei="EVENT_PROJECT_DEPS_CHANGE",Ve="EVENT_PROJECT_PAGES_CHANGE",ge="EVENT_PROJECT_BLOCKS_CHANGE",ri="EVENT_PROJECT_APIS_CHANGE",ni="EVENT_PROJECT_META_CHANGE",kc="EVENT_PROJECT_PUBLISH",Nc="EVENT_PROJECT_FILE_PUBLISH",Bc="EVENT_PROJECT_GEN_SOURCE";var Kt;let Xe=(Kt=class{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||mt(),this.update(t,!0)}update(t,r=!1){for(const n of Kt.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=Kt.attrs.reduce((i,s)=>(i[s]=this[s],i),{});return n.pages&&(n.pages=n.pages.map(i=>Qe(pt(K({},i),{dsl:void 0}))),this.cleanPagesDsl(n.pages)),n.blocks&&(n.blocks=n.blocks.map(i=>Qe(pt(K({},i),{dsl:void 0})))),K({__VTJ_PROJECT__:!0,id:r},n)}active(t,r=!1){this.currentFile=t,r||F.emit(ti,{model:this,type:"update",data:t})}deactivate(t=!1){this.currentFile=null,t||F.emit(ti,{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,K(K({},n[i]),t))):(s="create",n.push(t)),!r){const o={model:this,type:s,data:t};F.emit(ei,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(ei,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 H(this,null,function*(){if(t.id=t.raw?t.name:t.id||mt(),t.type="page",t.dir?t.children=[]:t.dsl=t.dsl||new Mt({id:t.id,name:Jn(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(Ve,i),F.emit(it,i)}!this.currentFile&&!t.dir&&(yield be(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(Ve,i),F.emit(it,i)}}clonePage(t,r,n=!1){var h;const i=mt(),s=`${t.name}Copy`,o=`${t.title}_副本`,a=new Mt({id:i,name:s}).toDsl(),u=$t({},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(Ve,f),F.emit(it,f)}}saveToBlock(t,r=!1){return H(this,null,function*(){this.active(t,r),yield be(1e3);const n=mt(),i=t.name,s=t.title,o=new Mt({id:n,name:i}).toDsl(),a=$t({},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(ge,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(Ve,o),F.emit(it,o)}}getBlock(t){return this.blocks.find(r=>r.id===t)}createBlock(t,r=!1){return H(this,null,function*(){const n=t.id||mt(),i=Jn(t.name);t.id=n,t.type="block",t.dsl=new Mt({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(ge,o),F.emit(it,o)}!this.currentFile&&s==="Schema"&&(yield be(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(ge,i),F.emit(it,i)}}cloneBlock(t,r=!1){const n=mt(),i=`${t.name}Copy`,s=`${t.title}_副本`,o=new Mt({id:n,name:i}).toDsl(),a=$t({},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(ge,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(ge,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=mt(),this.apis.push(t)),!r){const s={model:this,type:i,data:t};F.emit(ri,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(ri,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=mt(),this.meta.push(t)),!r){const s={model:this,type:i,data:t};F.emit(ni,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(ni,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(Nc,r):F.emit(kc,r)}genSource(){const t={model:this,type:"gen",data:null};F.emit(Bc,t)}},j(Kt,"attrs",["name","homepage","description","dependencies","pages","blocks","apis","meta","config","__BASE_PATH__"]),Kt);const He="EVENT_HISTORY_CHANGE",Pr="EVENT_HISTORY_LOAD";let Li=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:mt(),label:new Date().toLocaleString(),dsl:Qe(t)};if(this.items.unshift(i),this.items.length>n){const s=this.items.splice(n);r||F.emit(He,{model:this,type:"delete",data:s.map(o=>o.id)})}this.index=-1,r||F.emit(He,{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(He,{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(Pr,{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(Pr,{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(Pr,{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(He,{model:this,type:"clear",data:r})}};const F=Oc();function Lv(e){return e instanceof Mt}function Vv(e){return e instanceof Hr}function Hv(e){return!!e.__VTJ_BLOCK__}function Vi(e){const t=Qe(e);return delete t.id,Array.isArray(t.children)&&(t.children=t.children.map(r=>Vi(r))),t}function Uv(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 Cw=Object.freeze(Object.defineProperty({__proto__:null,BUILT_IN_COMPONENTS:jc,BUILT_IN_LIBRARAY_MAP:Iv,BUILT_IN_MATERIALS:Bv,BUILT_IN_NAME:Nv,BUILT_IN_TAGS:Mv,BUILT_IN_VUE:Mi,BUILT_IN_VUE_ROUTER:Fi,Base:Rc,BlockModel:Mt,DirectiveModel:Le,EVENT_BLOCK_CHANGE:G,EVENT_HISTORY_CHANGE:He,EVENT_HISTORY_LOAD:Pr,EVENT_NODE_CHANGE:nt,EVENT_PROJECT_ACTIVED:ti,EVENT_PROJECT_APIS_CHANGE:ri,EVENT_PROJECT_BLOCKS_CHANGE:ge,EVENT_PROJECT_CHANGE:it,EVENT_PROJECT_DEPS_CHANGE:ei,EVENT_PROJECT_FILE_PUBLISH:Nc,EVENT_PROJECT_GEN_SOURCE:Bc,EVENT_PROJECT_META_CHANGE:ni,EVENT_PROJECT_PAGES_CHANGE:Ve,EVENT_PROJECT_PUBLISH:kc,EventModel:Dr,HistoryModel:Li,NodeModel:Hr,ProjectModel:Xe,PropModel:Rr,Service:Fv,VTJ_CORE_VERSION:kv,cloneDsl:Vi,createNodeFrom:Uv,emitter:F,isBlock:Lv,isBlockSchema:Hv,isNode:Vv},Symbol.toStringTag,{value:"Module"}));var zv=Object.defineProperty,qv=(e,t,r)=>t in e?zv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wt=(e,t,r)=>qv(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 kv="0.9.2",Nv="BuiltIn",Mi="VueMaterial",Fi="VueRouterMaterial",Bv=[Mi,Fi],Iv={vue:"Vue","vue-router":"VueRouter"},jc={[Mi]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[Fi]:["RouterView","RouterLink"]},Mv=["slot","template","component","img","div","p","h1","h2","h3","span","a"];let Fv=class{},Rc=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}},Rr=class Dc{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 Dc(n,i),r),{})}},Dr=class Pc{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 Pc(i),r),{})}},Le=class Cc{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||mt(),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 Cc(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 Hr=(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=mt(),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=Rr.parse(a),this.events=Dr.parse(u),this.directives=Le.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 Rr(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 Dr(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 Le?t:new Le(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:Rr.toDsl(u),directives:Le.toDsl(c),events:Dr.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",Je=class Je{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||mt(),this.update(t,!0)}update(t,r=!1){for(const i of Je.normalAttrs){const s=t[i];s&&(this[i]=s)}const{nodes:n=[]}=t;n.length&&(this.nodes=n.map(i=>new Hr(i))),r||F.emit(G,this)}toDsl(t){const{__VTJ_BLOCK__:r,id:n,nodes:i}=this;return pt(K({},Je.normalAttrs.reduce((s,o)=>(s[o]=this[o],s),{})),{__VTJ_BLOCK__:r,__VERSION__:t||yc().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||mt();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=vt(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=>vt(i)?i===t:i.name===t);n>-1&&(this.emits.splice(n,1),r||F.emit(G,this))}setSlot(t,r=!1){const n=vt(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=>vt(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=Vi(t.toDsl()),i=new Hr(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(Je,"normalAttrs",["name","locked","inject","state","lifeCycles","methods","computed","watch","css","props","emits","slots","dataSources","__TEMPLATE_ID__"]);let Mt=Je;const it="EVENT_PROJECT_CHANGE",ti="EVENT_PROJECT_ACTIVED",ei="EVENT_PROJECT_DEPS_CHANGE",Ve="EVENT_PROJECT_PAGES_CHANGE",ge="EVENT_PROJECT_BLOCKS_CHANGE",ri="EVENT_PROJECT_APIS_CHANGE",ni="EVENT_PROJECT_META_CHANGE",kc="EVENT_PROJECT_PUBLISH",Nc="EVENT_PROJECT_FILE_PUBLISH",Bc="EVENT_PROJECT_GEN_SOURCE";var Kt;let Xe=(Kt=class{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||mt(),this.update(t,!0)}update(t,r=!1){for(const n of Kt.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=Kt.attrs.reduce((i,s)=>(i[s]=this[s],i),{});return n.pages&&(n.pages=n.pages.map(i=>Qe(pt(K({},i),{dsl:void 0}))),this.cleanPagesDsl(n.pages)),n.blocks&&(n.blocks=n.blocks.map(i=>Qe(pt(K({},i),{dsl:void 0})))),K({__VTJ_PROJECT__:!0,id:r},n)}active(t,r=!1){this.currentFile=t,r||F.emit(ti,{model:this,type:"update",data:t})}deactivate(t=!1){this.currentFile=null,t||F.emit(ti,{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,K(K({},n[i]),t))):(s="create",n.push(t)),!r){const o={model:this,type:s,data:t};F.emit(ei,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(ei,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 H(this,null,function*(){if(t.id=t.raw?t.name:t.id||mt(),t.type="page",t.dir?t.children=[]:t.dsl=t.dsl||new Mt({id:t.id,name:Jn(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(Ve,i),F.emit(it,i)}!this.currentFile&&!t.dir&&(yield be(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(Ve,i),F.emit(it,i)}}clonePage(t,r,n=!1){var h;const i=mt(),s=`${t.name}Copy`,o=`${t.title}_副本`,a=new Mt({id:i,name:s}).toDsl(),u=$t({},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(Ve,f),F.emit(it,f)}}saveToBlock(t,r=!1){return H(this,null,function*(){this.active(t,r),yield be(1e3);const n=mt(),i=t.name,s=t.title,o=new Mt({id:n,name:i}).toDsl(),a=$t({},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(ge,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(Ve,o),F.emit(it,o)}}getBlock(t){return this.blocks.find(r=>r.id===t)}createBlock(t,r=!1){return H(this,null,function*(){const n=t.id||mt(),i=Jn(t.name);t.id=n,t.type="block",t.dsl=new Mt({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(ge,o),F.emit(it,o)}!this.currentFile&&s==="Schema"&&(yield be(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(ge,i),F.emit(it,i)}}cloneBlock(t,r=!1){const n=mt(),i=`${t.name}Copy`,s=`${t.title}_副本`,o=new Mt({id:n,name:i}).toDsl(),a=$t({},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(ge,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(ge,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=mt(),this.apis.push(t)),!r){const s={model:this,type:i,data:t};F.emit(ri,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(ri,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=mt(),this.meta.push(t)),!r){const s={model:this,type:i,data:t};F.emit(ni,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(ni,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(Nc,r):F.emit(kc,r)}genSource(){const t={model:this,type:"gen",data:null};F.emit(Bc,t)}},j(Kt,"attrs",["name","homepage","description","dependencies","pages","blocks","apis","meta","config","__BASE_PATH__"]),Kt);const He="EVENT_HISTORY_CHANGE",Pr="EVENT_HISTORY_LOAD";let Li=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:mt(),label:new Date().toLocaleString(),dsl:Qe(t)};if(this.items.unshift(i),this.items.length>n){const s=this.items.splice(n);r||F.emit(He,{model:this,type:"delete",data:s.map(o=>o.id)})}this.index=-1,r||F.emit(He,{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(He,{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(Pr,{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(Pr,{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(Pr,{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(He,{model:this,type:"clear",data:r})}};const F=Oc();function Lv(e){return e instanceof Mt}function Vv(e){return e instanceof Hr}function Hv(e){return!!e.__VTJ_BLOCK__}function Vi(e){const t=Qe(e);return delete t.id,Array.isArray(t.children)&&(t.children=t.children.map(r=>Vi(r))),t}function Uv(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 Cw=Object.freeze(Object.defineProperty({__proto__:null,BUILT_IN_COMPONENTS:jc,BUILT_IN_LIBRARAY_MAP:Iv,BUILT_IN_MATERIALS:Bv,BUILT_IN_NAME:Nv,BUILT_IN_TAGS:Mv,BUILT_IN_VUE:Mi,BUILT_IN_VUE_ROUTER:Fi,Base:Rc,BlockModel:Mt,DirectiveModel:Le,EVENT_BLOCK_CHANGE:G,EVENT_HISTORY_CHANGE:He,EVENT_HISTORY_LOAD:Pr,EVENT_NODE_CHANGE:nt,EVENT_PROJECT_ACTIVED:ti,EVENT_PROJECT_APIS_CHANGE:ri,EVENT_PROJECT_BLOCKS_CHANGE:ge,EVENT_PROJECT_CHANGE:it,EVENT_PROJECT_DEPS_CHANGE:ei,EVENT_PROJECT_FILE_PUBLISH:Nc,EVENT_PROJECT_GEN_SOURCE:Bc,EVENT_PROJECT_META_CHANGE:ni,EVENT_PROJECT_PAGES_CHANGE:Ve,EVENT_PROJECT_PUBLISH:kc,EventModel:Dr,HistoryModel:Li,NodeModel:Hr,ProjectModel:Xe,PropModel:Rr,Service:Fv,VTJ_CORE_VERSION:kv,cloneDsl:Vi,createNodeFrom:Uv,emitter:F,isBlock:Lv,isBlockSchema:Hv,isNode:Vv},Symbol.toStringTag,{value:"Module"}));var zv=Object.defineProperty,qv=(e,t,r)=>t in e?zv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wt=(e,t,r)=>qv(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) 2024, VTJ.PRO All rights reserved.
58
58
  * @name @vtj/utils
59
59
  * @author CHC chenhuachun1549@dingtalk.com
60
- * @version 0.9.1
60
+ * @version 0.9.2
61
61
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
62
- */const Kv="0.9.1";/**
62
+ */const Kv="0.9.2";/**
63
63
  * @vue/shared v3.5.13
64
64
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
65
65
  * @license MIT
@@ -68,16 +68,16 @@ version: 2.9.0
68
68
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(i=>n.set(i)),n}static accessor(t){const r=(this[jo]=this[jo]={accessors:{}}).accessors,n=this.prototype;function i(s){const o=Ie(s);r[o]||(Eb(n,s),r[o]=!0)}return A.isArray(t)?t.forEach(i):i(t),this}};xt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);A.reduceDescriptors(xt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});A.freezeMethods(xt);function Dn(e,t){const r=this||lr,n=t||r,i=xt.from(n.headers);let s=n.data;return A.forEach(e,function(o){s=o.call(r,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function hu(e){return!!(e&&e.__CANCEL__)}function hr(e,t,r){W.call(this,e!=null?e:"canceled",W.ERR_CANCELED,t,r),this.name="CanceledError"}A.inherits(hr,W,{__CANCEL__:!0});function Sb(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new W("Request failed with status code "+r.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const xb=jt.hasStandardBrowserEnv?{write(e,t,r,n,i,s){const o=[e+"="+encodeURIComponent(t)];A.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),A.isString(n)&&o.push("path="+n),A.isString(i)&&o.push("domain="+i),s===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Tb(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ob(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function fu(e,t){return e&&!Tb(t)?Ob(e,t):t}const Ab=jt.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function n(i){let s=i;return e&&(t.setAttribute("href",s),s=t.href),t.setAttribute("href",s),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return r=n(window.location.href),function(i){const s=A.isString(i)?n(i):i;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function $b(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function jb(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,s=0,o;return t=t!==void 0?t:1e3,function(a){const u=Date.now(),c=n[s];o||(o=u),r[i]=a,n[i]=u;let l=s,h=0;for(;l!==i;)h+=r[l++],l=l%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),u-o<t)return;const f=c&&u-c;return f?Math.round(h*1e3/f):void 0}}function Ro(e,t){let r=0;const n=jb(50,250);return i=>{const s=i.loaded,o=i.lengthComputable?i.total:void 0,a=s-r,u=n(a),c=s<=o;r=s;const l={loaded:s,total:o,progress:o?s/o:void 0,bytes:a,rate:u||void 0,estimated:u&&o&&c?(o-s)/u:void 0,event:i};l[t?"download":"upload"]=!0,e(l)}}const Rb=typeof XMLHttpRequest<"u",Db=Rb&&function(e){return new Promise(function(t,r){let n=e.data;const i=xt.from(e.headers).normalize();let{responseType:s,withXSRFToken:o}=e,a;function u(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}let c;if(A.isFormData(n)){if(jt.hasStandardBrowserEnv||jt.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((c=i.getContentType())!==!1){const[d,...m]=c?c.split(";").map(b=>b.trim()).filter(Boolean):[];i.setContentType([d||"multipart/form-data",...m].join("; "))}}let l=new XMLHttpRequest;if(e.auth){const d=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(d+":"+m))}const h=fu(e.baseURL,e.url);l.open(e.method.toUpperCase(),au(h,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function f(){if(!l)return;const d=xt.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),m={data:!s||s==="text"||s==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:d,config:e,request:l};Sb(function(b){t(b),u()},function(b){r(b),u()},m),l=null}if("onloadend"in l?l.onloadend=f:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(f)},l.onabort=function(){l&&(r(new W("Request aborted",W.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new W("Network Error",W.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let d=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||cu;e.timeoutErrorMessage&&(d=e.timeoutErrorMessage),r(new W(d,m.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,e,l)),l=null},jt.hasStandardBrowserEnv&&(o&&A.isFunction(o)&&(o=o(e)),o||o!==!1&&Ab(h))){const d=e.xsrfHeaderName&&e.xsrfCookieName&&xb.read(e.xsrfCookieName);d&&i.set(e.xsrfHeaderName,d)}n===void 0&&i.setContentType(null),"setRequestHeader"in l&&A.forEach(i.toJSON(),function(d,m){l.setRequestHeader(m,d)}),A.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),s&&s!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",Ro(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",Ro(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=d=>{l&&(r(!d||d.type?new hr(null,e,l):d),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const p=$b(h);if(p&&jt.protocols.indexOf(p)===-1){r(new W("Unsupported protocol "+p+":",W.ERR_BAD_REQUEST,e));return}l.send(n||null)})},li={http:rb,xhr:Db};A.forEach(li,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}});const Do=e=>`- ${e}`,Pb=e=>A.isFunction(e)||e===null||e===!1,pu={getAdapter:e=>{e=A.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let s=0;s<t;s++){r=e[s];let o;if(n=r,!Pb(r)&&(n=li[(o=String(r)).toLowerCase()],n===void 0))throw new W(`Unknown adapter '${o}'`);if(n)break;i[o||"#"+s]=n}if(!n){const s=Object.entries(i).map(([a,u])=>`adapter ${a} `+(u===!1?"is not supported by the environment":"is not available in the build"));let o=t?s.length>1?`since :
69
69
  `+s.map(Do).join(`
70
70
  `):" "+Do(s[0]):"as no adapter specified";throw new W("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:li};function Pn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new hr(null,e)}function Po(e){return Pn(e),e.headers=xt.from(e.headers),e.data=Dn.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),pu.getAdapter(e.adapter||lr.adapter)(e).then(function(t){return Pn(e),t.data=Dn.call(e,e.transformResponse,t),t.headers=xt.from(t.headers),t},function(t){return hu(t)||(Pn(e),t&&t.response&&(t.response.data=Dn.call(e,e.transformResponse,t.response),t.response.headers=xt.from(t.response.headers))),Promise.reject(t)})}const Co=e=>e instanceof xt?K({},e):e;function Ae(e,t){t=t||{};const r={};function n(c,l,h){return A.isPlainObject(c)&&A.isPlainObject(l)?A.merge.call({caseless:h},c,l):A.isPlainObject(l)?A.merge({},l):A.isArray(l)?l.slice():l}function i(c,l,h){if(A.isUndefined(l)){if(!A.isUndefined(c))return n(void 0,c,h)}else return n(c,l,h)}function s(c,l){if(!A.isUndefined(l))return n(void 0,l)}function o(c,l){if(A.isUndefined(l)){if(!A.isUndefined(c))return n(void 0,c)}else return n(void 0,l)}function a(c,l,h){if(h in t)return n(c,l);if(h in e)return n(void 0,c)}const u={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(c,l)=>i(Co(c),Co(l),!0)};return A.forEach(Object.keys(Object.assign({},e,t)),function(c){const l=u[c]||i,h=l(e[c],t[c],c);A.isUndefined(h)&&l!==a||(r[c]=h)}),r}const du="1.6.8",Yi={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Yi[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ko={};Yi.transitional=function(e,t,r){function n(i,s){return"[Axios v"+du+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,o)=>{if(e===!1)throw new W(n(s," has been removed"+(t?" in "+t:"")),W.ERR_DEPRECATED);return t&&!ko[s]&&(ko[s]=!0,console.warn(n(s," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,s,o):!0}};function Cb(e,t,r){if(typeof e!="object")throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const s=n[i],o=t[s];if(o){const a=e[s],u=a===void 0||o(a,s,e);if(u!==!0)throw new W("option "+s+" must be "+u,W.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new W("Unknown option "+s,W.ERR_BAD_OPTION)}}const hi={assertOptions:Cb,validators:Yi},Vt=hi.validators;let ee=class{constructor(t){this.defaults=t,this.interceptors={request:new $o,response:new $o}}request(t,r){return H(this,null,function*(){try{return yield this._request(t,r)}catch(n){if(n instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";n.stack?s&&!String(n.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(n.stack+=`
71
- `+s):n.stack=s}throw n}})}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ae(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:s}=r;n!==void 0&&hi.assertOptions(n,{silentJSONParsing:Vt.transitional(Vt.boolean),forcedJSONParsing:Vt.transitional(Vt.boolean),clarifyTimeoutError:Vt.transitional(Vt.boolean)},!1),i!=null&&(A.isFunction(i)?r.paramsSerializer={serialize:i}:hi.assertOptions(i,{encode:Vt.function,serialize:Vt.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=s&&A.merge(s.common,s[r.method]);s&&A.forEach(["delete","get","head","post","put","patch","common"],d=>{delete s[d]}),r.headers=xt.concat(o,s);const a=[];let u=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(r)===!1||(u=u&&d.synchronous,a.unshift(d.fulfilled,d.rejected))});const c=[];this.interceptors.response.forEach(function(d){c.push(d.fulfilled,d.rejected)});let l,h=0,f;if(!u){const d=[Po.bind(this),void 0];for(d.unshift.apply(d,a),d.push.apply(d,c),f=d.length,l=Promise.resolve(r);h<f;)l=l.then(d[h++],d[h++]);return l}f=a.length;let p=r;for(h=0;h<f;){const d=a[h++],m=a[h++];try{p=d(p)}catch(b){m.call(this,b);break}}try{l=Po.call(this,p)}catch(d){return Promise.reject(d)}for(h=0,f=c.length;h<f;)l=l.then(c[h++],c[h++]);return l}getUri(t){t=Ae(this.defaults,t);const r=fu(t.baseURL,t.url);return au(r,t.params,t.paramsSerializer)}};A.forEach(["delete","get","head","options"],function(e){ee.prototype[e]=function(t,r){return this.request(Ae(r||{},{method:e,url:t,data:(r||{}).data}))}});A.forEach(["post","put","patch"],function(e){function t(r){return function(n,i,s){return this.request(Ae(s||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}ee.prototype[e]=t(),ee.prototype[e+"Form"]=t(!0)});class Wi{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(i=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](i);n._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(a=>{n.subscribe(a),s=a}).then(i);return o.cancel=function(){n.unsubscribe(s)},o},t(function(i,s,o){n.reason||(n.reason=new hr(i,s,o),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new Wi(function(r){t=r}),cancel:t}}}function kb(e){return function(t){return e.apply(null,t)}}function Nb(e){return A.isObject(e)&&e.isAxiosError===!0}const fi={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(fi).forEach(([e,t])=>{fi[t]=e});function mu(e){const t=new ee(e),r=Wc(ee.prototype.request,t);return A.extend(r,ee.prototype,t,{allOwnKeys:!0}),A.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return mu(Ae(e,n))},r}const et=mu(lr);et.Axios=ee;et.CanceledError=hr;et.CancelToken=Wi;et.isCancel=hu;et.VERSION=du;et.toFormData=ln;et.AxiosError=W;et.Cancel=et.CanceledError;et.all=function(e){return Promise.all(e)};et.spread=kb;et.isAxiosError=Nb;et.mergeConfig=Ae;et.AxiosHeaders=xt;et.formToJSON=e=>lu(A.isHTMLForm(e)?new FormData(e):e);et.getAdapter=pu.getAdapter;et.HttpStatusCode=fi;et.default=et;const Bb={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},Ib=["put","post","patch"],pi="Local-Request-Id",Mb=100,Fb=300;class Gi{constructor(t={}){wt(this,"axios"),wt(this,"settings"),wt(this,"records",{}),wt(this,"isLoading",!1),wt(this,"stopSkipWarn"),wt(this,"showLoading"),wt(this,"showError"),this.settings=Object.assign({type:"form"},t.settings||{});const r=jr(t,["settings","query"]);this.axios=et.create($t({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:2*60*1e3},r)),this.setupSkipWarn(this.settings),this.showLoading=Pi(this.openLoading.bind(this),Mb),this.showError=Ya(this._showError.bind(this),Fb,{leading:!0,trailing:!1})}setConfig(t={}){this.settings=$t(this.settings,t.settings||{});const r=jr(t,["settings","query"]);this.axios.defaults=$t(this.axios.defaults,r),this.setupSkipWarn(this.settings)}cancel(t,r="请求已取消"){if(t){const n=this.records[t];if(!n)return;n.source.cancel(r)}else for(const n of Object.values(this.records))n.source.cancel(r)}createHeaders(t,r,n){const i=r.injectHeaders?typeof r.headers=="function"?r.headers(t,n,r):r.headers||{}:{},s=K(K({"Content-Type":Bb[r.type||"form"]},n.headers),i);return r.skipWarn&&(s[pi]=t),s}isJsonType(t){return Object.entries(t).some(([r,n])=>r.toLowerCase()==="content-type"&&String(n).includes("application/json"))}toFormData(t,r="data"){if(t instanceof FormData||t instanceof URLSearchParams)return t;const n=r==="data"?new FormData:new URLSearchParams;return Object.entries(t).forEach(([i,s])=>{n.append(i,s)}),n}createSendData(t,r,n,i,s={}){const{type:o,skipWarn:a}=t,{name:u="skipWarn"}=a||{};let{data:c,params:l={},method:h="get"}=r;const f=i?{[u]:!0}:{};return Ib.includes(h.toLowerCase())?(c=Object.assign(c||{},f),c=o!=="json"||!this.isJsonType(n)?this.toFormData(c,o):c,l=K({},s)):o==="form"?l=K(K(K({},c||{}),s),f):(c&&(o!=="json"||!this.isJsonType(n))&&(c=this.toFormData(c,o)),l=K(K({},s),f)),{data:c,params:l}}createUrl(t){let{url:r,params:n}=t;if(r)try{return Ac(r,{encode:encodeURIComponent})(n||{})}catch(i){console.warn("createUrl","pathToRegexpCompile error",r)}return r}openLoading(t){const{loading:r,showLoading:n}=t;r&&n&&Object.keys(this.records).length>0&&(this.isLoading=!0,n())}closeLoading(t){const{loading:r,hideLoading:n}=t;if(!r)return;this.isLoading=!1;const i=Object.keys(this.records);n&&i.length===0&&(this.isLoading=!1,n())}_showError(t,r){var s;const{failMessage:n,showError:i}=t;if(n&&i){const o=(s=r.response)==null?void 0:s.data,a=(o==null?void 0:o.message)||(o==null?void 0:o.msg)||(r==null?void 0:r.message)||(r==null?void 0:r.msg)||"未知错误";i(a,r)}}validResponse(t,r){const{validSuccess:n,validate:i}=t;return n&&i?!!i(r):!0}isSkipWarnResponse(t){return!!t.promise}send(t={},r=!1){const n=$t({},this.settings,t.settings||{}),i=t.query||{},s=jr(t,["settings","query"]),o=bc(!1),a=et.CancelToken.source();this.records[o]={settings:n,config:s,source:a};const u=this.createUrl(s),c=this.createHeaders(o,n,s),{data:l,params:h}=this.createSendData(n,s,c,r,i);return this.showLoading(n),new Promise((f,p)=>{this.axios(pt(K({cancelToken:a.token},s),{url:u,headers:c,data:l,params:h})).then(d=>{var m;return this.isSkipWarnResponse(d)?f(d.promise):this.validResponse(n,d)?f(n.originResponse?d:(m=d.data)==null?void 0:m.data):(this.showError(n,d.data),p(d.data))}).catch(d=>(this.showError(n,d),p(d))).finally(()=>{delete this.records[o],this.closeLoading(n)})})}useResponse(t,r){const{response:n}=this.axios.interceptors,i=n.use(t,r);return()=>n.eject(i)}useRequest(t,r){const{request:n}=this.axios.interceptors,i=n.use(t,r);return()=>n.eject(i)}setupSkipWarn(t){if(this.stopSkipWarn&&(this.stopSkipWarn(),this.stopSkipWarn=void 0),!t.skipWarn)return;const{code:r,executor:n,callback:i,complete:s}=t.skipWarn;this.stopSkipWarn=this.useResponse(o=>{const a=(o.config.headers||{})[pi],u=this.records[a];if(!u)return o;const{data:c}=o;if(!c||typeof c!="object")return o;if((c==null?void 0:c.code)===r){i&&i(o);const l=new Promise(n).then(()=>this.send(pt(K({},u.config),{settings:u.settings}),!0));l.catch(h=>h).finally(()=>{s&&s()}),o.promise=l}return o})}}function Zi(e={}){const t=new Gi(e),r=t.send.bind(t),n=t.cancel.bind(t),i=t.setConfig.bind(t),s=t.useRequest.bind(t),o=t.useResponse.bind(t);return Object.assign(r,pt(K({},t),{instance:t,send:r,cancel:n,setConfig:i,useRequest:s,useResponse:o}))}const gu=Zi({settings:{injectHeaders:!0,loading:!0,originResponse:!0}});function vu(e){const t=typeof e=="string"?{url:e}:e;return(r,n)=>gu.send($t({},t,n||{},{data:r}))}function Lb(e){const t={};for(const[r,n]of Object.entries(e))t[r]=vu(n);return t}function Vb(e,t){const r=$n(null),n=$n(),i=$n(!0);return e.then(s=>{r.value=t?t(s):s}).catch(s=>{n.value=s}).finally(()=>{i.value=!1}),{data:r,error:n,loading:i}}const $e=typeof window<"u",Hb=e=>new Promise((t,r)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=()=>{t(n.result)},n.onerror=i=>{r(i)}});function yu(e){const t={};return e?(e.forEach((r,n)=>{t[n]=typeof r=="string"?decodeURIComponent(r):r}),t):{}}function Ub(e){var o;const t=e.split(","),r=(o=t[0].match(/:(.*?);/))==null?void 0:o[1],n=atob(t[1]);let i=n.length;const s=new Uint8Array(i);for(;i--;)s[i]=n.charCodeAt(i);return new Blob([s],{type:r})}function zb(e,t){const r=e;return r.lastModified=Date.now(),r.lastModifiedDate=new Date,r.name=t,r}const qb=e=>$e?window.requestAnimationFrame(e):setTimeout(e,16),Kb=e=>$e?window.cancelAnimationFrame(e):clearTimeout(e);class Qi{constructor(t={}){wt(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"}),wt(this,"caches",{}),wt(this,"types"),this.types={local:$e?window.localStorage:this.caches,session:$e?window.sessionStorage:this.caches,cache:this.caches},this.config(t)}config(t={}){this.options=Object.assign(this.options,t)}save(t,r,n={}){const{type:i,expired:s,prefix:o}=K(K({},this.options),n),a=Date.now(),u=o+t,c=this.types[i]||this.caches,l={value:r,timestamp:a,expired:s};c===this.caches?c[u]=l:c.setItem(u,JSON.stringify(l))}get(t,r={}){const{type:n,prefix:i}=K(K({},this.options),r),s=i+t,o=this.types[n]||this.caches;let a;if(o===this.caches)a=o[s];else{const h=o.getItem(s);h&&(a=JSON.parse(h))}if(!a)return null;const{value:u,timestamp:c,expired:l}=a;return l>0&&c+l<Date.now()?(this.remove(t,r),null):u}remove(t,r={}){const{type:n,prefix:i}=K(K({},this.options),r),s=this.types[n]||this.caches,o=i+t;s===this.caches?delete s[o]:s.removeItem(o)}clear(t={}){const{type:r}=K(K({},this.options),t),n=this.types[r]||this.caches;n===this.caches?this.caches={}:n.clear()}}const Br=new Qi;var Jb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var di={exports:{}};(function(e,t){(function(r,n){n(t,e)})(Jb,function(r,n){var i={timeout:5e3,jsonpCallback:"callback",jsonpCallbackFunction:null};function s(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function o(c){try{delete window[c]}catch(l){window[c]=void 0}}function a(c){var l=document.getElementById(c);l&&document.getElementsByTagName("head")[0].removeChild(l)}function u(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],h=c,f=l.timeout||i.timeout,p=l.jsonpCallback||i.jsonpCallback,d=void 0;return new Promise(function(m,b){var S=l.jsonpCallbackFunction||s(),v=p+"_"+S;window[S]=function(_){m({ok:!0,json:function(){return Promise.resolve(_)}}),d&&clearTimeout(d),a(v),o(S)},h+=h.indexOf("?")===-1?"?":"&";var y=document.createElement("script");y.setAttribute("src",""+h+p+"="+S),l.charset&&y.setAttribute("charset",l.charset),l.nonce&&y.setAttribute("nonce",l.nonce),l.referrerPolicy&&y.setAttribute("referrerPolicy",l.referrerPolicy),l.crossorigin&&y.setAttribute("crossorigin","true"),y.id=v,document.getElementsByTagName("head")[0].appendChild(y),d=setTimeout(function(){b(new Error("JSONP request to "+c+" timed out")),o(S),a(v),window[S]=function(){o(S)}},f),y.onerror=function(){b(new Error("JSONP request to "+c+" failed")),o(S),a(v),d&&clearTimeout(d)}})}n.exports=u})})(di,di.exports);var Yb=di.exports;const Wb=bu(Yb);function Gb(e){if($e){const{protocol:t,host:r,pathname:n}=location;return`${t}//${r}${e?n:""}`}else return null}function Zb(e=""){const t=e.match(ki);return t?t[0]:""}function _u(e){const t=[];for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push([r,encodeURIComponent(e[r])].join("="));return t.join("&")}function mi(e,t,r){const n={};e=(e||location.search).replace(/^[^]*\?/,""),t=t||"&",r=r||"=";let i;const s=new RegExp("(?:^|\\"+t+")([^\\"+r+"\\"+t+"]+)(?:\\"+r+"([^\\"+t+"]*))?","g");for(;(i=s.exec(e))!==null;)i[1]!==e&&(n[decodeURIComponent(i[1])]=decodeURIComponent(i[2]||""));return n}function wu(e,t){t=typeof t=="string"?mi(t):t;const r=e.split("?")[0],n=mi(e),i=Object.assign({},n,t),s=_u(i);return s?[r,s].join("?"):e}const re=Object.freeze(Object.defineProperty({__proto__:null,append:wu,getCurrentHost:Gb,getHost:Zb,parse:mi,stringify:_u},Symbol.toStringTag,{value:"Module"}));function Eu(r){return H(this,arguments,function*(e,t={}){const{query:n={}}=t;e.includes("${")&&(e=Ja(e)(n||{}));const i=wu(e,n);return yield(yield Wb(i,t)).json()})}var Qb=function(e,t,r){var n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script");typeof t=="function"&&(r=t,t={}),t=t||{},r=r||function(){},i.type=t.type||"text/javascript",i.charset=t.charset||"utf8",i.async="async"in t?!!t.async:!0,i.src=e,t.attrs&&Xb(i,t.attrs),t.text&&(i.text=""+t.text);var s="onload"in i?No:t_;s(i,r),i.onload||No(i,r),n.appendChild(i)};function Xb(e,t){for(var r in t)e.setAttribute(r,t[r])}function No(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function t_(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}const e_=bu(Qb);function gi(e,t={}){return new Promise((r,n)=>{const{library:i}=t;e_(e,t,(s,o)=>{s?n(s):r(i?window[i]:void 0)})})}const Bo={debug:-1,log:0,info:0,warn:1,error:2},r_=function(e,t,r,n){return function(...i){if(t&&Bo[t]<=Bo[e]&&console[e].apply&&(n==="*"||r.startsWith(n)))return console[e].apply(console,n_(i,r))}};function n_(e,t){return t!=="*"&&(typeof e[0]=="string"?e[0]=`[${t}] ${e[0]}`:e=["["+t+"]"].concat(e)),e}function i_(e,t){if(!e)return{targetLevel:t.level,targetBizName:t.bizName};if(~e.indexOf(":")){const r=e.split(":");return{targetLevel:r[0],targetBizName:r[1]}}return{targetLevel:e,targetBizName:"*"}}const s_={level:"warn",bizName:"*"};let Su=class{constructor(t){wt(this,"config"),wt(this,"options"),this.options=K(K({},s_),t);const r=typeof location<"u"?location:{},n=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(r.href)||[])[1];this.config=i_(n,t)}_log(t){const{targetLevel:r,targetBizName:n}=this.config,{bizName:i}=this.options;return r_(t,r,i,n)}debug(...t){return this._log("debug")(...t)}log(...t){return this._log("log")(...t)}info(...t){return this._log("info")(...t)}warn(...t){return this._log("warn")(...t)}error(...t){return this._log("error")(...t)}};function xu(e){return new Su(e)}const rr=xu({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function Tr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var o_={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function vi(e,t){function r(i,s,o){if(!(typeof document>"u")){o=Tr({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var u in o)o[u]&&(a+="; "+u,o[u]!==!0&&(a+="="+o[u].split(";")[0]));return document.cookie=i+"="+e.write(s,i)+a}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],o={},a=0;a<s.length;a++){var u=s[a].split("="),c=u.slice(1).join("=");try{var l=decodeURIComponent(u[0]);if(o[l]=e.read(c,l),i===l)break}catch(h){}}return i?o[i]:o}}return Object.create({set:r,get:n,remove:function(i,s){r(i,"",Tr({},s,{expires:-1}))},withAttributes:function(i){return vi(this.converter,Tr({},this.attributes,i))},withConverter:function(i){return vi(Tr({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Xi=vi(o_,{path:"/"});function a_(e,t,r){Xi.set(e,t,r)}function c_(e){return Xi.get(e)}function u_(e,t){Xi.remove(e,t)}const Ir=Object.freeze(Object.defineProperty({__proto__:null,get:c_,remove:u_,set:a_},Symbol.toStringTag,{value:"Module"}));function l_(e,t=""){const r=document.createElement("a");r.download=t,r.href=e,r.target="_blank",r.click()}function ts(e,t="",r){const n=new Blob([e],{type:r}),i=document.createElement("a");i.download=t,i.style.display="none",i.href=URL.createObjectURL(n),i.click(),URL.revokeObjectURL(i.href)}function h_(e,t="",r){return H(this,null,function*(){return fetch(e,{credentials:"include"}).then(n=>H(this,null,function*(){const i=yield n.blob();return ts(i,t,r),i}))})}function f_(e,t=""){const r=JSON.stringify(e);ts(r,t,"application/json")}const Fw=Object.freeze(Object.defineProperty({__proto__:null,AES:nv,LOCAL_REQUEST_ID:pi,Logger:Su,MD5:X0,RSA:rv,Request:Gi,Storage:Qi,VTJ_UTILS_VERSION:Kv,arrayToKv:yv,arrayToMap:_c,arrayToTree:xv,avg:wv,axios:et,base64:tv,blobToFile:zb,cAF:Kb,camelCase:kt,cloneDeep:Qe,compress:Pv,cookie:Ir,createApi:vu,createApis:Lb,createRequest:Zi,dataURLtoBlob:Ub,dateFormat:pv,dayjs:Ni,debounce:Pi,decompress:Cv,dedupArray:wc,delay:be,downloadBlob:ts,downloadJson:f_,downloadRemoteFile:h_,downloadUrl:l_,fileToBase64:Hb,flatChildren:xc,formDataToJson:yu,get:ia,getLogger:xu,groupBy:Ua,isArray:ht,isArrayBuffer:B1,isBoolean:M1,isBuffer:xe,isCarNo:cv,isClient:$e,isDate:H1,isDef:mv,isEmail:sv,isEqual:U1,isFunction:ne,isIdCardNo:ov,isMobilePhone:av,isNaN:q1,isNull:K1,isNumber:za,isObject:ot,isPlainObject:ji,isString:yt,isSymbol:ir,isUndefined:J1,isUrl:fc,jsonp:Eu,kebabCase:W1,kvToArray:bv,loadScript:gi,logger:rr,lowerFirst:Z1,mapToObject:nn,merge:$t,mitt:Oc,noop:dh,now:gv,numberFormat:lv,numeral:dc,omit:jr,pathToRegexp:sn,pathToRegexpCompile:Ac,pathToRegexpMatch:$c,pathToRegexpParse:Bi,pick:Ec,rAF:qb,rCar:hc,rEmail:cc,rID:uc,rMobile:lc,rURL:ki,random:vv,request:gu,set:t0,snakeCase:r0,splitParser:Ev,splitStringify:Sv,storage:Br,sum:Sc,template:Ja,throttle:Ya,timestamp:yc,toArray:Zn,toFixed:hv,toRawType:dv,toTypeString:vc,trim:Qn,uid:mt,unAES:iv,unBase64:ev,unRSA:Gn,upperFirst:tn,upperFirstCamelCase:Jn,url:re,useApi:Vb,uuid:bc,zipObject:_v},Symbol.toStringTag,{value:"Module"}));/**!
71
+ `+s):n.stack=s}throw n}})}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ae(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:s}=r;n!==void 0&&hi.assertOptions(n,{silentJSONParsing:Vt.transitional(Vt.boolean),forcedJSONParsing:Vt.transitional(Vt.boolean),clarifyTimeoutError:Vt.transitional(Vt.boolean)},!1),i!=null&&(A.isFunction(i)?r.paramsSerializer={serialize:i}:hi.assertOptions(i,{encode:Vt.function,serialize:Vt.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=s&&A.merge(s.common,s[r.method]);s&&A.forEach(["delete","get","head","post","put","patch","common"],d=>{delete s[d]}),r.headers=xt.concat(o,s);const a=[];let u=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(r)===!1||(u=u&&d.synchronous,a.unshift(d.fulfilled,d.rejected))});const c=[];this.interceptors.response.forEach(function(d){c.push(d.fulfilled,d.rejected)});let l,h=0,f;if(!u){const d=[Po.bind(this),void 0];for(d.unshift.apply(d,a),d.push.apply(d,c),f=d.length,l=Promise.resolve(r);h<f;)l=l.then(d[h++],d[h++]);return l}f=a.length;let p=r;for(h=0;h<f;){const d=a[h++],m=a[h++];try{p=d(p)}catch(b){m.call(this,b);break}}try{l=Po.call(this,p)}catch(d){return Promise.reject(d)}for(h=0,f=c.length;h<f;)l=l.then(c[h++],c[h++]);return l}getUri(t){t=Ae(this.defaults,t);const r=fu(t.baseURL,t.url);return au(r,t.params,t.paramsSerializer)}};A.forEach(["delete","get","head","options"],function(e){ee.prototype[e]=function(t,r){return this.request(Ae(r||{},{method:e,url:t,data:(r||{}).data}))}});A.forEach(["post","put","patch"],function(e){function t(r){return function(n,i,s){return this.request(Ae(s||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}ee.prototype[e]=t(),ee.prototype[e+"Form"]=t(!0)});class Wi{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(i=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](i);n._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(a=>{n.subscribe(a),s=a}).then(i);return o.cancel=function(){n.unsubscribe(s)},o},t(function(i,s,o){n.reason||(n.reason=new hr(i,s,o),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new Wi(function(r){t=r}),cancel:t}}}function kb(e){return function(t){return e.apply(null,t)}}function Nb(e){return A.isObject(e)&&e.isAxiosError===!0}const fi={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(fi).forEach(([e,t])=>{fi[t]=e});function mu(e){const t=new ee(e),r=Wc(ee.prototype.request,t);return A.extend(r,ee.prototype,t,{allOwnKeys:!0}),A.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return mu(Ae(e,n))},r}const et=mu(lr);et.Axios=ee;et.CanceledError=hr;et.CancelToken=Wi;et.isCancel=hu;et.VERSION=du;et.toFormData=ln;et.AxiosError=W;et.Cancel=et.CanceledError;et.all=function(e){return Promise.all(e)};et.spread=kb;et.isAxiosError=Nb;et.mergeConfig=Ae;et.AxiosHeaders=xt;et.formToJSON=e=>lu(A.isHTMLForm(e)?new FormData(e):e);et.getAdapter=pu.getAdapter;et.HttpStatusCode=fi;et.default=et;const Bb={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},Ib=["put","post","patch"],pi="Local-Request-Id",Mb=100,Fb=300;class Gi{constructor(t={}){wt(this,"axios"),wt(this,"settings"),wt(this,"records",{}),wt(this,"isLoading",!1),wt(this,"stopSkipWarn"),wt(this,"showLoading"),wt(this,"showError"),this.settings=Object.assign({type:"form"},t.settings||{});const r=jr(t,["settings","query"]);this.axios=et.create($t({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:2*60*1e3},r)),this.setupSkipWarn(this.settings),this.showLoading=Pi(this.openLoading.bind(this),Mb),this.showError=Ya(this._showError.bind(this),Fb,{leading:!0,trailing:!1})}setConfig(t={}){this.settings=$t(this.settings,t.settings||{});const r=jr(t,["settings","query"]);this.axios.defaults=$t(this.axios.defaults,r),this.setupSkipWarn(this.settings)}cancel(t,r="请求已取消"){if(t){const n=this.records[t];if(!n)return;n.source.cancel(r)}else for(const n of Object.values(this.records))n.source.cancel(r)}createHeaders(t,r,n){const i=r.injectHeaders?typeof r.headers=="function"?r.headers(t,n,r):r.headers||{}:{},s=K(K({"Content-Type":Bb[r.type||"form"]},n.headers),i);return r.skipWarn&&(s[pi]=t),s}isJsonType(t){return Object.entries(t).some(([r,n])=>r.toLowerCase()==="content-type"&&String(n).includes("application/json"))}toFormData(t,r="data"){if(t instanceof FormData||t instanceof URLSearchParams)return t;const n=r==="data"?new FormData:new URLSearchParams;return Object.entries(t).forEach(([i,s])=>{n.append(i,s)}),n}createSendData(t,r,n,i,s={}){const{type:o,skipWarn:a}=t,{name:u="skipWarn"}=a||{};let{data:c,params:l={},method:h="get"}=r;const f=i?{[u]:!0}:{};return Ib.includes(h.toLowerCase())?(c=Object.assign(c||{},f),c=o!=="json"||!this.isJsonType(n)?this.toFormData(c,o):c,l=K({},s)):o==="form"?l=K(K(K({},c||{}),s),f):(c&&(o!=="json"||!this.isJsonType(n))&&(c=this.toFormData(c,o)),l=K(K({},s),f)),{data:c,params:l}}createUrl(t){let{url:r,params:n}=t;if(r)try{return Ac(r,{encode:encodeURIComponent})(n||{})}catch(i){console.warn("createUrl","pathToRegexpCompile error",r)}return r}openLoading(t){const{loading:r,showLoading:n}=t;r&&n&&Object.keys(this.records).length>0&&(this.isLoading=!0,n())}closeLoading(t){const{loading:r,hideLoading:n}=t;if(!r)return;this.isLoading=!1;const i=Object.keys(this.records);n&&i.length===0&&(this.isLoading=!1,n())}_showError(t,r){var s;const{failMessage:n,showError:i}=t;if(n&&i){const o=(s=r.response)==null?void 0:s.data,a=(o==null?void 0:o.message)||(o==null?void 0:o.msg)||(r==null?void 0:r.message)||(r==null?void 0:r.msg)||"未知错误";i(a,r)}}validResponse(t,r){const{validSuccess:n,validate:i}=t;return n&&i?!!i(r):!0}isSkipWarnResponse(t){return!!t.promise}send(t={},r=!1){const n=$t({},this.settings,t.settings||{}),i=t.query||{},s=jr(t,["settings","query"]),o=bc(!1),a=et.CancelToken.source();this.records[o]={settings:n,config:s,source:a};const u=this.createUrl(s),c=this.createHeaders(o,n,s),{data:l,params:h}=this.createSendData(n,s,c,r,i);return this.showLoading(n),new Promise((f,p)=>{this.axios(pt(K({cancelToken:a.token},s),{url:u,headers:c,data:l,params:h})).then(d=>{var m;return this.isSkipWarnResponse(d)?f(d.promise):this.validResponse(n,d)?f(n.originResponse?d:(m=d.data)==null?void 0:m.data):(this.showError(n,d.data),p(d.data))}).catch(d=>(this.showError(n,d),p(d))).finally(()=>{delete this.records[o],this.closeLoading(n)})})}useResponse(t,r){const{response:n}=this.axios.interceptors,i=n.use(t,r);return()=>n.eject(i)}useRequest(t,r){const{request:n}=this.axios.interceptors,i=n.use(t,r);return()=>n.eject(i)}setupSkipWarn(t){if(this.stopSkipWarn&&(this.stopSkipWarn(),this.stopSkipWarn=void 0),!t.skipWarn)return;const{code:r,executor:n,callback:i,complete:s}=t.skipWarn;this.stopSkipWarn=this.useResponse(o=>{const a=(o.config.headers||{})[pi],u=this.records[a];if(!u)return o;const{data:c}=o;if(!c||typeof c!="object")return o;if((c==null?void 0:c.code)===r){i&&i(o);const l=new Promise(n).then(()=>this.send(pt(K({},u.config),{settings:u.settings}),!0));l.catch(h=>h).finally(()=>{s&&s()}),o.promise=l}return o})}}function Zi(e={}){const t=new Gi(e),r=t.send.bind(t),n=t.cancel.bind(t),i=t.setConfig.bind(t),s=t.useRequest.bind(t),o=t.useResponse.bind(t);return Object.assign(r,pt(K({},t),{instance:t,send:r,cancel:n,setConfig:i,useRequest:s,useResponse:o}))}const gu=Zi({settings:{injectHeaders:!0,loading:!0,originResponse:!0}});function vu(e){const t=typeof e=="string"?{url:e}:e;return(r,n)=>gu.send($t({},t,n||{},{data:r}))}function Lb(e){const t={};for(const[r,n]of Object.entries(e))t[r]=vu(n);return t}function Vb(e,t){const r=$n(null),n=$n(),i=$n(!0);return e.then(s=>{r.value=t?t(s):s}).catch(s=>{n.value=s}).finally(()=>{i.value=!1}),{data:r,error:n,loading:i}}const $e=typeof window<"u",Hb=e=>new Promise((t,r)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=()=>{t(n.result)},n.onerror=i=>{r(i)}});function yu(e){const t={};return e?(e.forEach((r,n)=>{t[n]=typeof r=="string"?decodeURIComponent(r):r}),t):{}}function Ub(e){var o;const t=e.split(","),r=(o=t[0].match(/:(.*?);/))==null?void 0:o[1],n=atob(t[1]);let i=n.length;const s=new Uint8Array(i);for(;i--;)s[i]=n.charCodeAt(i);return new Blob([s],{type:r})}function zb(e,t){const r=e;return r.lastModified=Date.now(),r.lastModifiedDate=new Date,r.name=t,r}const qb=e=>$e?window.requestAnimationFrame(e):setTimeout(e,16),Kb=e=>$e?window.cancelAnimationFrame(e):clearTimeout(e);class Qi{constructor(t={}){wt(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"}),wt(this,"caches",{}),wt(this,"types"),this.types={local:$e?window.localStorage:this.caches,session:$e?window.sessionStorage:this.caches,cache:this.caches},this.config(t)}config(t={}){this.options=Object.assign(this.options,t)}save(t,r,n={}){const{type:i,expired:s,prefix:o}=K(K({},this.options),n),a=Date.now(),u=o+t,c=this.types[i]||this.caches,l={value:r,timestamp:a,expired:s};c===this.caches?c[u]=l:c.setItem(u,JSON.stringify(l))}get(t,r={}){const{type:n,prefix:i}=K(K({},this.options),r),s=i+t,o=this.types[n]||this.caches;let a;if(o===this.caches)a=o[s];else{const h=o.getItem(s);h&&(a=JSON.parse(h))}if(!a)return null;const{value:u,timestamp:c,expired:l}=a;return l>0&&c+l<Date.now()?(this.remove(t,r),null):u}remove(t,r={}){const{type:n,prefix:i}=K(K({},this.options),r),s=this.types[n]||this.caches,o=i+t;s===this.caches?delete s[o]:s.removeItem(o)}clear(t={}){const{type:r}=K(K({},this.options),t),n=this.types[r]||this.caches;n===this.caches?this.caches={}:n.clear()}}const Br=new Qi;var Jb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var di={exports:{}};(function(e,t){(function(r,n){n(t,e)})(Jb,function(r,n){var i={timeout:5e3,jsonpCallback:"callback",jsonpCallbackFunction:null};function s(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function o(c){try{delete window[c]}catch(l){window[c]=void 0}}function a(c){var l=document.getElementById(c);l&&document.getElementsByTagName("head")[0].removeChild(l)}function u(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],h=c,f=l.timeout||i.timeout,p=l.jsonpCallback||i.jsonpCallback,d=void 0;return new Promise(function(m,b){var S=l.jsonpCallbackFunction||s(),v=p+"_"+S;window[S]=function(_){m({ok:!0,json:function(){return Promise.resolve(_)}}),d&&clearTimeout(d),a(v),o(S)},h+=h.indexOf("?")===-1?"?":"&";var y=document.createElement("script");y.setAttribute("src",""+h+p+"="+S),l.charset&&y.setAttribute("charset",l.charset),l.nonce&&y.setAttribute("nonce",l.nonce),l.referrerPolicy&&y.setAttribute("referrerPolicy",l.referrerPolicy),l.crossorigin&&y.setAttribute("crossorigin","true"),y.id=v,document.getElementsByTagName("head")[0].appendChild(y),d=setTimeout(function(){b(new Error("JSONP request to "+c+" timed out")),o(S),a(v),window[S]=function(){o(S)}},f),y.onerror=function(){b(new Error("JSONP request to "+c+" failed")),o(S),a(v),d&&clearTimeout(d)}})}n.exports=u})})(di,di.exports);var Yb=di.exports;const Wb=bu(Yb);function Gb(e){if($e){const{protocol:t,host:r,pathname:n}=location;return`${t}//${r}${e?n:""}`}else return null}function Zb(e=""){const t=e.match(ki);return t?t[0]:""}function _u(e){const t=[];for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push([r,encodeURIComponent(e[r])].join("="));return t.join("&")}function mi(e,t,r){const n={};e=(e||location.search).replace(/^[^]*\?/,""),t=t||"&",r=r||"=";let i;const s=new RegExp("(?:^|\\"+t+")([^\\"+r+"\\"+t+"]+)(?:\\"+r+"([^\\"+t+"]*))?","g");for(;(i=s.exec(e))!==null;)i[1]!==e&&(n[decodeURIComponent(i[1])]=decodeURIComponent(i[2]||""));return n}function wu(e,t){t=typeof t=="string"?mi(t):t;const r=e.split("?")[0],n=mi(e),i=Object.assign({},n,t),s=_u(i);return s?[r,s].join("?"):e}const re=Object.freeze(Object.defineProperty({__proto__:null,append:wu,getCurrentHost:Gb,getHost:Zb,parse:mi,stringify:_u},Symbol.toStringTag,{value:"Module"}));function Eu(r){return H(this,arguments,function*(e,t={}){const{query:n={}}=t;e.includes("${")&&(e=Ja(e)(n||{}));const i=wu(e,n);return yield(yield Wb(i,t)).json()})}var Qb=function(e,t,r){var n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script");typeof t=="function"&&(r=t,t={}),t=t||{},r=r||function(){},i.type=t.type||"text/javascript",i.charset=t.charset||"utf8",i.async="async"in t?!!t.async:!0,i.src=e,t.attrs&&Xb(i,t.attrs),t.text&&(i.text=""+t.text);var s="onload"in i?No:t_;s(i,r),i.onload||No(i,r),n.appendChild(i)};function Xb(e,t){for(var r in t)e.setAttribute(r,t[r])}function No(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function t_(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}const e_=bu(Qb);function gi(e,t={}){return new Promise((r,n)=>{const{library:i}=t;e_(e,t,(s,o)=>{s?n(s):r(i?window[i]:void 0)})})}const Bo={debug:-1,log:0,info:0,warn:1,error:2},r_=function(e,t,r,n){return function(...i){if(t&&Bo[t]<=Bo[e]&&console[e].apply&&(n==="*"||r.startsWith(n)))return console[e].apply(console,n_(i,r))}};function n_(e,t){return t!=="*"&&(typeof e[0]=="string"?e[0]=`[${t}] ${e[0]}`:e=["["+t+"]"].concat(e)),e}function i_(e,t){if(!e)return{targetLevel:t.level,targetBizName:t.bizName};if(~e.indexOf(":")){const r=e.split(":");return{targetLevel:r[0],targetBizName:r[1]}}return{targetLevel:e,targetBizName:"*"}}const s_={level:"warn",bizName:"*"};let Su=class{constructor(t){wt(this,"config"),wt(this,"options"),this.options=K(K({},s_),t);const r=typeof location<"u"?location:{},n=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(r.href)||[])[1];this.config=i_(n,t)}_log(t){const{targetLevel:r,targetBizName:n}=this.config,{bizName:i}=this.options;return r_(t,r,i,n)}debug(...t){return this._log("debug")(...t)}log(...t){return this._log("log")(...t)}info(...t){return this._log("info")(...t)}warn(...t){return this._log("warn")(...t)}error(...t){return this._log("error")(...t)}};function xu(e){return new Su(e)}const rr=xu({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function Tr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var o_={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function vi(e,t){function r(i,s,o){if(!(typeof document>"u")){o=Tr({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var u in o)o[u]&&(a+="; "+u,o[u]!==!0&&(a+="="+o[u].split(";")[0]));return document.cookie=i+"="+e.write(s,i)+a}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],o={},a=0;a<s.length;a++){var u=s[a].split("="),c=u.slice(1).join("=");try{var l=decodeURIComponent(u[0]);if(o[l]=e.read(c,l),i===l)break}catch(h){}}return i?o[i]:o}}return Object.create({set:r,get:n,remove:function(i,s){r(i,"",Tr({},s,{expires:-1}))},withAttributes:function(i){return vi(this.converter,Tr({},this.attributes,i))},withConverter:function(i){return vi(Tr({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Xi=vi(o_,{path:"/"});function a_(e,t,r){Xi.set(e,t,r)}function c_(e){return Xi.get(e)}function u_(e,t){Xi.remove(e,t)}const Ir=Object.freeze(Object.defineProperty({__proto__:null,get:c_,remove:u_,set:a_},Symbol.toStringTag,{value:"Module"}));function l_(e,t=""){const r=document.createElement("a");r.download=t,r.href=e,r.target="_blank",r.click()}function ts(e,t="",r){const n=new Blob([e],{type:r}),i=document.createElement("a");i.download=t,i.style.display="none",i.href=URL.createObjectURL(n),i.click(),URL.revokeObjectURL(i.href)}function h_(e,t="",r){return H(this,null,function*(){return fetch(e,{credentials:"include"}).then(n=>H(this,null,function*(){const i=yield n.blob();return ts(i,t,r),i}))})}function f_(e,t=""){const r=JSON.stringify(e);ts(r,t,"application/json")}const Fw=Object.freeze(Object.defineProperty({__proto__:null,AES:nv,LOCAL_REQUEST_ID:pi,Logger:Su,MD5:X0,RSA:rv,Request:Gi,Storage:Qi,VTJ_UTILS_VERSION:Kv,arrayToKv:yv,arrayToMap:_c,arrayToTree:xv,avg:wv,axios:et,base64:tv,blobToFile:zb,cAF:Kb,camelCase:kt,cloneDeep:Qe,compress:Pv,cookie:Ir,createApi:vu,createApis:Lb,createRequest:Zi,dataURLtoBlob:Ub,dateFormat:pv,dayjs:Ni,debounce:Pi,decompress:Cv,dedupArray:wc,delay:be,downloadBlob:ts,downloadJson:f_,downloadRemoteFile:h_,downloadUrl:l_,fileToBase64:Hb,flatChildren:xc,formDataToJson:yu,get:ia,getLogger:xu,groupBy:Ua,isArray:ht,isArrayBuffer:B1,isBoolean:M1,isBuffer:xe,isCarNo:cv,isClient:$e,isDate:H1,isDef:mv,isEmail:sv,isEqual:U1,isFunction:ne,isIdCardNo:ov,isMobilePhone:av,isNaN:q1,isNull:K1,isNumber:za,isObject:ot,isPlainObject:ji,isString:vt,isSymbol:ir,isUndefined:J1,isUrl:fc,jsonp:Eu,kebabCase:W1,kvToArray:bv,loadScript:gi,logger:rr,lowerFirst:Z1,mapToObject:nn,merge:$t,mitt:Oc,noop:dh,now:gv,numberFormat:lv,numeral:dc,omit:jr,pathToRegexp:sn,pathToRegexpCompile:Ac,pathToRegexpMatch:$c,pathToRegexpParse:Bi,pick:Ec,rAF:qb,rCar:hc,rEmail:cc,rID:uc,rMobile:lc,rURL:ki,random:vv,request:gu,set:t0,snakeCase:r0,splitParser:Ev,splitStringify:Sv,storage:Br,sum:Sc,template:Ja,throttle:Ya,timestamp:yc,toArray:Zn,toFixed:hv,toRawType:dv,toTypeString:vc,trim:Qn,uid:mt,unAES:iv,unBase64:ev,unRSA:Gn,upperFirst:tn,upperFirstCamelCase:Jn,url:re,useApi:Vb,uuid:bc,zipObject:_v},Symbol.toStringTag,{value:"Module"}));/**!
72
72
  * Copyright (c) 2024, VTJ.PRO All rights reserved.
73
73
  * @name @vtj/renderer
74
74
  * @author CHC chenhuachun1549@dingtalk.com
75
- * @version 0.9.1
75
+ * @version 0.9.2
76
76
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
77
- */const Ee="0.9.1";var lt=(e=>(e.Runtime="Runtime",e.Design="Design",e.Raw="Raw",e.VNode="VNode",e))(lt||{});const yi=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],p_=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted","errorCaptured","renderTracked","renderTriggered","activated","deactivated"],Tu=["vIf","vShow","vModel","vFor","vBind"],Ou={String,Number,Boolean,Array,Object,Function,Date},Se="VtjPage",Ke="VtjHomepage",Au="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(","),$u="component,slot".split(",");function Ue(e,t){return e.map(r=>fc(r)||r.startsWith("/")?r:`${t}${r}`)}function hn(e){return/\.css$/.test(e)}function fn(e){return/\.js$/.test(e)}function ju(e){return/\.json$/.test(e)}function d_(e){return e.map(t=>`<script src="${re.append(t,{v:Ee})}"><\/script>`).join("")}function m_(e=[]){return e.map(t=>`<link rel="stylesheet" href="${re.append(t,{v:Ee})}" />`).join("")}function Ru(e,t=!1){return t&&e.endsWith(".prod.js")?e.replace(".prod.js",".js"):e}function Du(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(S=>{fn(S)&&i.push(Ru(S,r)),hn(S)&&s.push(S)}),d&&(a.push(d),u[d]=Ue(f||[],t),b&&(c[d]=b)),p&&o.push(p),m&&l.push(m),d&&m&&(h[m]=d)}),{scripts:Ue(i,t),css:Ue(s,t),materials:Ue(o,t),libraryExports:a,materialExports:wc(l),materialMapLibrary:h,libraryMap:u,libraryLocaleMap:c}}function Pu(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 es(e){return yt(e)?e:JSON.stringify(e)}function rs(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 Cu(e,t){return H(this,null,function*(){const r=yield window.fetch(t).then(n=>n.text()).catch(()=>"");r&&rs(window,e,r)})}function ku(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 Nu(n,i){return H(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 Bu(e){return ne(e)||ne(e==null?void 0:e.install)}function Iu(e){return $u.includes(e)}function Mu(e){return Au.includes(e)}function je(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
- `)+o;const a=`with(${r?"{}":"$scope || {}"}) { ${o} }`;return new Function("$scope",a)(t)}catch(s){if(rr.error("parseExpression.error",s,e,(i=t==null?void 0:t.__self)!=null?i:t),n)throw s}}function bi(e,t,r=!1,n=!1){var s;const i=je(e,t,r,n);if(typeof i!="function"&&(rr.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 vt(e){return e&&e.type==="JSExpression"}function fr(e){return typeof e=="object"&&e&&e.type==="JSFunction"}function Fu(e){return vt(e)||fr(e)}function g_(e){return Fu(e)?e.value:JSON.stringify(e)}let fe=null;const v_=Zi({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=>{Yr.error({message:e||"未知错误"})},showLoading:()=>{fe&&fe.close(),fe=wl.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.05)"})},hideLoading:()=>{fe&&(fe.close(),fe=null)}}});let ve;function Lu(e,t){const{jsonp:r,request:n}=t;if(e.method==="jsonp")return(i={})=>r(e.url,pt(K({},e.jsonpOptions),{query:i}));{const i=e.headers?je(e.headers,{},!0):void 0,s={url:e.url,method:e.method,settings:pt(K({},e.settings),{headers:i})};return(o,a)=>(delete s.data,n.send($t(s,a||{},{data:o})))}}function Vu(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 Hu(e=[],t=[],r){const n={};for(const i of e)n[i.id]=Lu(i,r);for(const i of t)n[i.id]=Vu(i,r);return n}function Uu(){return H(this,arguments,function*(e=[]){ve=yield Me(()=>import("./mockjs-C1Gq5sDs.js").then(t=>t.m),__vite__mapDeps([0,1]),import.meta.url).then(t=>t.default||t),ve&&(ve.setup({timeout:"50-500"}),ns(),e.forEach(t=>zu(ve,t)))})}function zu(e,t){if(!t.mock)return;const{url:r,mockTemplate:n}=t;if(r&&n){const i=sn(`${r}(.*)`),s=$c(r,{decode:decodeURIComponent}),o=je(n,{},!0);e.mock(i,a=>{var h;const u=re.parse(a.url)||{},c=a.body instanceof FormData?yu(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 ns(){ve&&(ve._mocked={})}const y_={session:!1,authKey:"Authorization",storageKey:"ACCESS_STORAGE",storagePrefix:"__VTJ_",unauthorized:void 0,auth:"/#/login",redirectParam:"r",unauthorizedCode:401,unauthorizedMessage:"登录已经失效,请重新登录!",noPermissionMessage:"无权限访问该页面",appName:""},is=Symbol("access");class qu{constructor(t){j(this,"options");j(this,"data",null);j(this,"mode",lt.Raw);this.options=Object.assign({},y_,t),this.loadData()}connect(t){const{mode:r,router:n,request:i}=t;this.mode=r,n&&this.mode===lt.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&&(Br.save(r,t,{type:"local",prefix:n}),i&&Ir.set(s,this.data.token))}clear(){const{storageKey:t,storagePrefix:r,session:n,authKey:i}=this.options;this.data=null,Br.remove(t,{type:"local",prefix:r}),n&&Ir.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):Zn(t).every(i=>n[i]||n[r+"."+i])}some(t){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return Zn(t).some(i=>n[i]||n[r+"."+i])}install(t){t.config.globalProperties.$access||(t.config.globalProperties.$access=this),t.provide(is,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=>Gn(i,r));this.data=JSON.parse(n.join(""));return}if(typeof t=="string")try{const n=r?Gn(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=Br.get(t,{type:"local",prefix:r});this.setData(n||null)}isLogined(){const{session:t,authKey:r}=this.options;return t&&r?!!Ir.get(r):!!this.getToken()}hasRoutePermission(t){if(t.name===Se){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 H(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),ne(i)?(i(),r(!1)):yt(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 H(this,null,function*(){const{unauthorizedMessage:r="登录已失效"}=this.options;this.isUnauthorized(t)&&(yield this.showTip(r),this.toLogin())})}showTip(t){return H(this,null,function*(){const{alert:r}=this.options;return r?(yield be(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=>H(this,null,function*(){return yield this.showUnauthorizedAlert(r),r}),r=>H(this,null,function*(){const n=r.response||r||{};return yield this.showUnauthorizedAlert(n),Promise.reject(r)}))}}function Ku(){return Mo(is,null)}class Ju{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=Kr){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&&yi.forEach(t=>{var r;this[t]=(r=this.__instance)==null?void 0:r[t]})}__cleanup(){yi.forEach(t=>{this[t]=null})}__parseFunction(t){var r;if(t)if(this.__mode===lt.Runtime){const{id:n,type:i}=t,s=n&&(r=this.__transform[n])!=null?r:t.value;return bi({type:i,value:s},this)}else return bi(t,this)}__parseExpression(t){var r;if(t)if(this.__mode===lt.Runtime){const{id:n,type:i}=t,s=n&&(r=this.__transform[n])!=null?r:t.value;return je({type:i,value:s},this)}else return je(t,this)}__ref(t=null,r){if(this.__mode!==lt.VNode)return t&&t!==this.__id&&(this.__contextRefs[t]=this),n=>H(this,null,function*(){var s,o;yield be(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,lt.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=K(K({},this.context),t),n=pt(K({},r),{context:r});return n.context.__proto__=this.context,n.__proto__=this,n}}function zr(e){var h,f;const{Vue:t=Kr,mode:r=lt.Runtime,components:n={},libs:i={},apis:s={},loader:o}=e,a=t.computed(()=>e.dsl),u={$components:n,$libs:i,$apis:s},c=new Ju({mode:r,dsl:a.value,attrs:u}),l=t.defineComponent(K({name:a.value.name,props:K({},__((h=a.value.props)!=null?h:[],c)),setup(p){var y,_,E,g;c.$props=p,c.props=p,a.value.id&&rs(e.window||window,a.value.id,a.value.css||""),c.state=w_(t,(y=a.value.state)!=null?y:{},c);const d=E_(t,(_=a.value.computed)!=null?_:{},c),m=S_((E=a.value.methods)!=null?E:{},c),b=x_(t,a.value.inject,c),S=Yu(a.value.dataSources||{},c),v=K(K(K(K({},b),d),m),S);return c.setup(v,t),T_(t,(g=a.value.watch)!=null?g:[],c),{vtj:c}},emits:b_(a.value.emits),expose:["vtj"],render(){if(!a.value.nodes)return null;const p=a.value.nodes||[];return p.length===1?nr(p[0],c,t,o):p.map(d=>nr(d,c,t,o))}},O_((f=a.value.lifeCycles)!=null?f:{},c)));return{renderer:t.markRaw(l),context:c}}function b_(e=[]){return e.map(t=>yt(t)?t:t.name)}function __(e=[],t){const r=n=>n?(Array.isArray(n)?n:[n]).map(i=>Ou[i]):void 0;return e.map(n=>yt(n)?{name:n}:{name:n.name,type:n.type,required:n.required,default:vt(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 w_(e,t,r){return e.reactive(Object.keys(t||{}).reduce((n,i)=>{let s=t[i];return vt(s)?s=r.__parseExpression(s):fr(s)&&(s=r.__parseFunction(s)),n[i]=s,n},{}))}function E_(e,t,r){return Object.entries(t!=null?t:{}).reduce((n,[i,s])=>(n[i]=e.computed(r.__parseFunction(s)),n),{})}function S_(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}function x_(e,t=[],r){return t.reduce((n,i)=>{var c;const{name:s,from:o}=i||{};i.default;const a=vt(o)?r.__parseExpression(o)||s:o!=null?o:s,u=vt(i.default)?r.__parseExpression(i.default):(c=i.default)!=null?c:null;return n[s]=e.inject(a,u),n},{})}function Yu(e,t){return Object.keys(e).reduce((r,n)=>{const i=e[n],s=t.$apis[i.ref],o=fr(i.transform)?i.transform.value?t.__parseFunction(i.transform):void 0:i.transform;return r[n]=(...a)=>H(this,null,function*(){const u=yield s.apply(t,a);return o?o(u):u}),r},{})}function T_(e,t=[],r){t.forEach(n=>{e.watch(r.__parseExpression(n.source),r.__parseFunction(n.handler),{deep:n.deep,immediate:n.immediate})})}function O_(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}let Cn=[];const Wu=e=>e;function ss(r){return H(this,arguments,function*(e,t=window){const{urls:n=[],library:i}=e,s=n.filter(a=>fn(a));if(s.length===0||!i)return null;const o=n.filter(a=>hn(a));return o.length&&ku(o,t),yield Nu(s,i,t).catch(a=>(console.warn("loadScriptUrl error",s,i,a),null))})}function qr(e){const{getDsl:t,getDslByUrl:r,options:n}=e;return n.window&&(Cn.forEach(i=>{delete n.window[i]}),Cn=[]),(i,s,o=Kr)=>!s||typeof s=="string"?i:s.type==="Schema"&&s.id?o.defineAsyncComponent(()=>H(this,null,function*(){const a=yield t(s.id);return a&&(a.name=i),a?zr(pt(K({},n),{Vue:o,dsl:a,mode:lt.Runtime,loader:qr(e)})).renderer:null})):s.type==="UrlSchema"&&s.url?o.defineAsyncComponent(()=>H(this,null,function*(){const a=yield r(s.url);return a&&(a.name=i),a?zr(pt(K({},n),{Vue:o,dsl:a,mode:lt.Runtime,loader:qr(e)})).renderer:null})):s.type==="Plugin"?(s.library&&Cn.push(s.library),o.defineAsyncComponent(()=>H(this,null,function*(){return(yield ss(s,n.window))||(console.warn("getPlugin result is null",s),null)}))):i}function nr(e,t,r=Kr,n=Wu){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}=$_(o);if(a&&!j_(a,t))return null;const d=b=>{var O,V,w,T;const S=b.$components,v=(()=>{var P,I,D,k;if(e.name==="component")return R_(b,(P=e.props)==null?void 0:P.is);if(e.name==="slot")return e.name;const M=n(e.name,e.from,r);return yt(M)?Iu(M)||Mu(M)?M:(k=(D=S[M])!=null?D:(I=i==null?void 0:i.app)==null?void 0:I.component(M))!=null?k:M:M})(),y=D_(s,(O=e.props)!=null?O:{},b),_=P_(r,(V=e.events)!=null?V:{},b);if(e.name==="slot")return C_(r,e,y,b,n);h&&Object.assign(y,b.__parseExpression(h.value)),c&&(y.style=Object.assign((w=y.style)!=null?w:{},N_(c,b))),f&&Object.assign(y,B_(f,b)),l.forEach(M=>{Object.assign(y,I_(r,M,b))});const E=M_(r,(T=e.children)!=null?T:[],b,n,e);let g=r.createVNode(v,K(K({},y),_),E);const x=i?A_(i,p,b):[];return x.length&&(g=r.withDirectives(g,x)),g};return u?V_(u,d,t):d(t)}function A_(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(vt(i.modifiers)?r.__parseExpression(i.modifiers):i.modifiers),o}).filter(i=>!!i)}function $_(e=[]){const t=e.find(u=>kt(u.name)==="vIf"),r=e.find(u=>kt(u.name)==="vFor"),n=e.find(u=>kt(u.name)==="vShow"),i=e.find(u=>kt(u.name)==="vBind"),s=e.find(u=>kt(u.name)==="vHtml"),o=e.filter(u=>kt(u.name)==="vModel"),a=e.filter(u=>!Tu.includes(kt(u.name)));return{vIf:t,vFor:r,vShow:n,vModels:o,vBind:i,others:a,vHtml:s}}function j_(e,t){return!!t.__parseExpression(e.value)}function R_(e,t){return t?vt(t)?e.__parseExpression(t):t:"div"}function D_(e,t,r){const n=Object.keys(t||{}).reduce((i,s)=>{let o=t[s];return vt(o)?o=r.__parseExpression(o):fr(o)&&(o=r.__parseFunction(o)),i[s]=o,i},{});return n.ref=r.__ref(e,n.ref),n}function P_(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=os(a.modifiers),c=u.find(f=>n.includes(f)),l="on"+tn(o)+(c&&i[c]||""),h=r.__parseFunction(a.handler);return h&&(s[l]=e.withModifiers(h,u)),s},{})}function os(e={},t=!1){const r=Object.keys(e);return t?r.map(n=>"."+n):r}function C_(e,t,r,n,i){var u;const{children:s}=t,o=k_(t,n),a=(u=n.$slots)==null?void 0:u[o.name];return a?a(r):s?yt(s)?e.createTextVNode(s):vt(s)?e.createTextVNode(es(n.__parseExpression(s))):Array.isArray(s)?s.map(c=>nr(c,n,e,i)):null:null}function k_(e,t){const{props:r}=e,n=(r==null?void 0:r.name)||"default";return{name:vt(n)?t.__parseExpression(n):n,params:[]}}function N_(e,t){return t.__parseExpression(e.value)?{}:{display:"none"}}function B_(e,t){return{innerHTML:t.__parseExpression(e.value)||""}}function I_(e,t,r){var a;const n={type:"JSFunction",value:(a=t.value)!=null&&a.value?`(v) => {
77
+ */const Ee="0.9.2";var lt=(e=>(e.Runtime="Runtime",e.Design="Design",e.Raw="Raw",e.VNode="VNode",e))(lt||{});const yi=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],p_=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted","errorCaptured","renderTracked","renderTriggered","activated","deactivated"],Tu=["vIf","vShow","vModel","vFor","vBind","vHtml"],Ou={String,Number,Boolean,Array,Object,Function,Date},Se="VtjPage",Ke="VtjHomepage",Au="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(","),$u="component,slot".split(",");function Ue(e,t){return e.map(r=>fc(r)||r.startsWith("/")?r:`${t}${r}`)}function hn(e){return/\.css$/.test(e)}function fn(e){return/\.js$/.test(e)}function ju(e){return/\.json$/.test(e)}function d_(e){return e.map(t=>`<script src="${re.append(t,{v:Ee})}"><\/script>`).join("")}function m_(e=[]){return e.map(t=>`<link rel="stylesheet" href="${re.append(t,{v:Ee})}" />`).join("")}function Ru(e,t=!1){return t&&e.endsWith(".prod.js")?e.replace(".prod.js",".js"):e}function Du(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(S=>{fn(S)&&i.push(Ru(S,r)),hn(S)&&s.push(S)}),d&&(a.push(d),u[d]=Ue(f||[],t),b&&(c[d]=b)),p&&o.push(p),m&&l.push(m),d&&m&&(h[m]=d)}),{scripts:Ue(i,t),css:Ue(s,t),materials:Ue(o,t),libraryExports:a,materialExports:wc(l),materialMapLibrary:h,libraryMap:u,libraryLocaleMap:c}}function Pu(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 es(e){return vt(e)?e:JSON.stringify(e)}function rs(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 Cu(e,t){return H(this,null,function*(){const r=yield window.fetch(t).then(n=>n.text()).catch(()=>"");r&&rs(window,e,r)})}function ku(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 Nu(n,i){return H(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 Bu(e){return ne(e)||ne(e==null?void 0:e.install)}function Iu(e){return $u.includes(e)}function Mu(e){return Au.includes(e)}function je(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
+ `)+o;const a=`with(${r?"{}":"$scope || {}"}) { ${o} }`;return new Function("$scope",a)(t)}catch(s){if(rr.error("parseExpression.error",s,e,(i=t==null?void 0:t.__self)!=null?i:t),n)throw s}}function bi(e,t,r=!1,n=!1){var s;const i=je(e,t,r,n);if(typeof i!="function"&&(rr.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 yt(e){return e&&e.type==="JSExpression"}function fr(e){return typeof e=="object"&&e&&e.type==="JSFunction"}function Fu(e){return yt(e)||fr(e)}function g_(e){return Fu(e)?e.value:JSON.stringify(e)}let fe=null;const v_=Zi({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=>{Yr.error({message:e||"未知错误"})},showLoading:()=>{fe&&fe.close(),fe=wl.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.05)"})},hideLoading:()=>{fe&&(fe.close(),fe=null)}}});let ve;function Lu(e,t){const{jsonp:r,request:n}=t;if(e.method==="jsonp")return(i={})=>r(e.url,pt(K({},e.jsonpOptions),{query:i}));{const i=e.headers?je(e.headers,{},!0):void 0,s={url:e.url,method:e.method,settings:pt(K({},e.settings),{headers:i})};return(o,a)=>(delete s.data,n.send($t(s,a||{},{data:o})))}}function Vu(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 Hu(e=[],t=[],r){const n={};for(const i of e)n[i.id]=Lu(i,r);for(const i of t)n[i.id]=Vu(i,r);return n}function Uu(){return H(this,arguments,function*(e=[]){ve=yield Me(()=>import("./mockjs-CMngCJLd.js").then(t=>t.m),__vite__mapDeps([0,1]),import.meta.url).then(t=>t.default||t),ve&&(ve.setup({timeout:"50-500"}),ns(),e.forEach(t=>zu(ve,t)))})}function zu(e,t){if(!t.mock)return;const{url:r,mockTemplate:n}=t;if(r&&n){const i=sn(`${r}(.*)`),s=$c(r,{decode:decodeURIComponent}),o=je(n,{},!0);e.mock(i,a=>{var h;const u=re.parse(a.url)||{},c=a.body instanceof FormData?yu(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 ns(){ve&&(ve._mocked={})}const y_={session:!1,authKey:"Authorization",storageKey:"ACCESS_STORAGE",storagePrefix:"__VTJ_",unauthorized:void 0,auth:"/#/login",redirectParam:"r",unauthorizedCode:401,unauthorizedMessage:"登录已经失效,请重新登录!",noPermissionMessage:"无权限访问该页面",appName:""},is=Symbol("access");class qu{constructor(t){j(this,"options");j(this,"data",null);j(this,"mode",lt.Raw);this.options=Object.assign({},y_,t),this.loadData()}connect(t){const{mode:r,router:n,request:i}=t;this.mode=r,n&&this.mode===lt.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&&(Br.save(r,t,{type:"local",prefix:n}),i&&Ir.set(s,this.data.token))}clear(){const{storageKey:t,storagePrefix:r,session:n,authKey:i}=this.options;this.data=null,Br.remove(t,{type:"local",prefix:r}),n&&Ir.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):Zn(t).every(i=>n[i]||n[r+"."+i])}some(t){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return Zn(t).some(i=>n[i]||n[r+"."+i])}install(t){t.config.globalProperties.$access||(t.config.globalProperties.$access=this),t.provide(is,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=>Gn(i,r));this.data=JSON.parse(n.join(""));return}if(typeof t=="string")try{const n=r?Gn(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=Br.get(t,{type:"local",prefix:r});this.setData(n||null)}isLogined(){const{session:t,authKey:r}=this.options;return t&&r?!!Ir.get(r):!!this.getToken()}hasRoutePermission(t){if(t.name===Se){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 H(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),ne(i)?(i(),r(!1)):vt(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 H(this,null,function*(){const{unauthorizedMessage:r="登录已失效"}=this.options;this.isUnauthorized(t)&&(yield this.showTip(r),this.toLogin())})}showTip(t){return H(this,null,function*(){const{alert:r}=this.options;return r?(yield be(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=>H(this,null,function*(){return yield this.showUnauthorizedAlert(r),r}),r=>H(this,null,function*(){const n=r.response||r||{};return yield this.showUnauthorizedAlert(n),Promise.reject(r)}))}}function Ku(){return Mo(is,null)}class Ju{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=Kr){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&&yi.forEach(t=>{var r;this[t]=(r=this.__instance)==null?void 0:r[t]})}__cleanup(){yi.forEach(t=>{this[t]=null})}__parseFunction(t){var r;if(t)if(this.__mode===lt.Runtime){const{id:n,type:i}=t,s=n&&(r=this.__transform[n])!=null?r:t.value;return bi({type:i,value:s},this)}else return bi(t,this)}__parseExpression(t){var r;if(t)if(this.__mode===lt.Runtime){const{id:n,type:i}=t,s=n&&(r=this.__transform[n])!=null?r:t.value;return je({type:i,value:s},this)}else return je(t,this)}__ref(t=null,r){if(this.__mode!==lt.VNode)return t&&t!==this.__id&&(this.__contextRefs[t]=this),n=>H(this,null,function*(){var s,o;yield be(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,lt.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=K(K({},this.context),t),n=pt(K({},r),{context:r});return n.context.__proto__=this.context,n.__proto__=this,n}}function zr(e){var h,f;const{Vue:t=Kr,mode:r=lt.Runtime,components:n={},libs:i={},apis:s={},loader:o}=e,a=t.computed(()=>e.dsl),u={$components:n,$libs:i,$apis:s},c=new Ju({mode:r,dsl:a.value,attrs:u}),l=t.defineComponent(K({name:a.value.name,props:K({},__((h=a.value.props)!=null?h:[],c)),setup(p){var y,_,E,g;c.$props=p,c.props=p,a.value.id&&rs(e.window||window,a.value.id,a.value.css||""),c.state=w_(t,(y=a.value.state)!=null?y:{},c);const d=E_(t,(_=a.value.computed)!=null?_:{},c),m=S_((E=a.value.methods)!=null?E:{},c),b=x_(t,a.value.inject,c),S=Yu(a.value.dataSources||{},c),v=K(K(K(K({},b),d),m),S);return c.setup(v,t),T_(t,(g=a.value.watch)!=null?g:[],c),{vtj:c}},emits:b_(a.value.emits),expose:["vtj"],render(){if(!a.value.nodes)return null;const p=a.value.nodes||[];return p.length===1?nr(p[0],c,t,o):p.map(d=>nr(d,c,t,o))}},O_((f=a.value.lifeCycles)!=null?f:{},c)));return{renderer:t.markRaw(l),context:c}}function b_(e=[]){return e.map(t=>vt(t)?t:t.name)}function __(e=[],t){const r=n=>n?(Array.isArray(n)?n:[n]).map(i=>Ou[i]):void 0;return e.map(n=>vt(n)?{name:n}:{name:n.name,type:n.type,required:n.required,default:yt(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 w_(e,t,r){return e.reactive(Object.keys(t||{}).reduce((n,i)=>{let s=t[i];return yt(s)?s=r.__parseExpression(s):fr(s)&&(s=r.__parseFunction(s)),n[i]=s,n},{}))}function E_(e,t,r){return Object.entries(t!=null?t:{}).reduce((n,[i,s])=>(n[i]=e.computed(r.__parseFunction(s)),n),{})}function S_(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}function x_(e,t=[],r){return t.reduce((n,i)=>{var c;const{name:s,from:o}=i||{};i.default;const a=yt(o)?r.__parseExpression(o)||s:o!=null?o:s,u=yt(i.default)?r.__parseExpression(i.default):(c=i.default)!=null?c:null;return n[s]=e.inject(a,u),n},{})}function Yu(e,t){return Object.keys(e).reduce((r,n)=>{const i=e[n],s=t.$apis[i.ref],o=fr(i.transform)?i.transform.value?t.__parseFunction(i.transform):void 0:i.transform;return r[n]=(...a)=>H(this,null,function*(){const u=yield s.apply(t,a);return o?o(u):u}),r},{})}function T_(e,t=[],r){t.forEach(n=>{e.watch(r.__parseExpression(n.source),r.__parseFunction(n.handler),{deep:n.deep,immediate:n.immediate})})}function O_(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}let Cn=[];const Wu=e=>e;function ss(r){return H(this,arguments,function*(e,t=window){const{urls:n=[],library:i}=e,s=n.filter(a=>fn(a));if(s.length===0||!i)return null;const o=n.filter(a=>hn(a));return o.length&&ku(o,t),yield Nu(s,i,t).catch(a=>(console.warn("loadScriptUrl error",s,i,a),null))})}function qr(e){const{getDsl:t,getDslByUrl:r,options:n}=e;return n.window&&(Cn.forEach(i=>{delete n.window[i]}),Cn=[]),(i,s,o=Kr)=>!s||typeof s=="string"?i:s.type==="Schema"&&s.id?o.defineAsyncComponent(()=>H(this,null,function*(){const a=yield t(s.id);return a&&(a.name=i),a?zr(pt(K({},n),{Vue:o,dsl:a,mode:lt.Runtime,loader:qr(e)})).renderer:null})):s.type==="UrlSchema"&&s.url?o.defineAsyncComponent(()=>H(this,null,function*(){const a=yield r(s.url);return a&&(a.name=i),a?zr(pt(K({},n),{Vue:o,dsl:a,mode:lt.Runtime,loader:qr(e)})).renderer:null})):s.type==="Plugin"?(s.library&&Cn.push(s.library),o.defineAsyncComponent(()=>H(this,null,function*(){return(yield ss(s,n.window))||(console.warn("getPlugin result is null",s),null)}))):i}function nr(e,t,r=Kr,n=Wu){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}=$_(o);if(a&&!j_(a,t))return null;const d=b=>{var O,V,w,T;const S=b.$components,v=(()=>{var P,I,D,k;if(e.name==="component")return R_(b,(P=e.props)==null?void 0:P.is);if(e.name==="slot")return e.name;const M=n(e.name,e.from,r);return vt(M)?Iu(M)||Mu(M)?M:(k=(D=S[M])!=null?D:(I=i==null?void 0:i.app)==null?void 0:I.component(M))!=null?k:M:M})(),y=D_(s,(O=e.props)!=null?O:{},b),_=P_(r,(V=e.events)!=null?V:{},b);if(e.name==="slot")return C_(r,e,y,b,n);h&&Object.assign(y,b.__parseExpression(h.value)),c&&(y.style=Object.assign((w=y.style)!=null?w:{},N_(c,b))),f&&Object.assign(y,B_(f,b)),l.forEach(M=>{Object.assign(y,I_(r,M,b))});const E=M_(r,(T=e.children)!=null?T:[],b,n,e);let g=r.createVNode(v,K(K({},y),_),E);const x=i?A_(i,p,b):[];return x.length&&(g=r.withDirectives(g,x)),g};return u?V_(u,d,t):d(t)}function A_(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 $_(e=[]){const t=e.find(u=>kt(u.name)==="vIf"),r=e.find(u=>kt(u.name)==="vFor"),n=e.find(u=>kt(u.name)==="vShow"),i=e.find(u=>kt(u.name)==="vBind"),s=e.find(u=>kt(u.name)==="vHtml"),o=e.filter(u=>kt(u.name)==="vModel"),a=e.filter(u=>!Tu.includes(kt(u.name)));return{vIf:t,vFor:r,vShow:n,vModels:o,vBind:i,others:a,vHtml:s}}function j_(e,t){return!!t.__parseExpression(e.value)}function R_(e,t){return t?yt(t)?e.__parseExpression(t):t:"div"}function D_(e,t,r){const n=Object.keys(t||{}).reduce((i,s)=>{let o=t[s];return yt(o)?o=r.__parseExpression(o):fr(o)&&(o=r.__parseFunction(o)),i[s]=o,i},{});return n.ref=r.__ref(e,n.ref),n}function P_(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=os(a.modifiers),c=u.find(f=>n.includes(f)),l="on"+tn(o)+(c&&i[c]||""),h=r.__parseFunction(a.handler);return h&&(s[l]=e.withModifiers(h,u)),s},{})}function os(e={},t=!1){const r=Object.keys(e);return t?r.map(n=>"."+n):r}function C_(e,t,r,n,i){var u;const{children:s}=t,o=k_(t,n),a=(u=n.$slots)==null?void 0:u[o.name];return a?a(r):s?vt(s)?e.createTextVNode(s):yt(s)?e.createTextVNode(es(n.__parseExpression(s))):Array.isArray(s)?s.map(c=>nr(c,n,e,i)):null:null}function k_(e,t){const{props:r}=e,n=(r==null?void 0:r.name)||"default";return{name:yt(n)?t.__parseExpression(n):n,params:[]}}function N_(e,t){return t.__parseExpression(e.value)?{}:{display:"none"}}function B_(e,t){return{innerHTML:t.__parseExpression(e.value)||""}}function I_(e,t,r){var a;const n={type:"JSFunction",value:(a=t.value)!=null&&a.value?`(v) => {
79
79
  ${t.value.value} = v;
80
- }`:"(v) => {}"},i=r.__parseFunction(n),s=os(vt(t.modifiers)?r.__parseExpression(t.modifiers):t.modifiers),o=vt(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 M_(e,t,r,n,i){if(!t)return null;if(yt(t))return{default:()=>t};if(vt(t))return{default:()=>es(r.__parseExpression(t))};if(Array.isArray(t)&&t.length>0){const s=F_(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?Ec(h!=null?h:{},l):o(h);return c.map(p=>nr(p,r.__clone(f),e,n))},a),{})}return null}function F_(e){const t={default:{params:[],nodes:[]}};for(const r of e){const n=L_(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 L_(e="default"){return yt(e)?{name:e,params:[]}:K({params:[]},e)}function V_(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 H_(e){return fl()?(pl(e),!0):!1}function as(e){return typeof e=="function"?e():In(e)}const Gu=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const U_=e=>e!=null,z_=()=>{};function q_(e){return Vo()}function K_(...e){if(e.length!==1)return cl(...e);const t=e[0];return typeof t=="function"?ul(ll(()=>({get:t,set:z_}))):Ye(t)}function J_(e,t){q_()&&hl(e,t)}const Y_=Gu?window:void 0,W_=Gu?window.document:void 0;function G_(e){var t;const r=as(e);return(t=r==null?void 0:r.$el)!=null?t:r}function Z_(){const e=Ye(!1),t=Vo();return t&&dl(()=>{e.value=!0},t),e}function Q_(e){const t=Z_();return Lo(()=>(t.value,!!e()))}function X_(e,t,r={}){const f=r,{window:n=Y_}=f,i=mn(f,["window"]);let s;const o=Q_(()=>n&&"MutationObserver"in n),a=()=>{s&&(s.disconnect(),s=void 0)},u=Lo(()=>{const p=as(e),d=(Array.isArray(p)?p:[p]).map(G_).filter(U_);return new Set(d)}),c=Fo(()=>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 H_(h),{isSupported:o,stop:h,takeRecords:l}}function tw(e=null,t={}){var r,n,i;const{document:s=W_,restoreOnUnmount:o=h=>h}=t,a=(r=s==null?void 0:s.title)!=null?r:"",u=K_((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):as(f).replace(/%s/g,h)}return Fo(u,(h,f)=>{h!==f&&s&&(s.title=l(typeof h=="string"?h:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&s&&!c&&X_((i=s.head)==null?void 0:i.querySelector("title"),()=>{s&&s.title!==u.value&&(u.value=l(s.title))},{childList:!0}),J_(()=>{if(o){const h=o(a,u.value||"");h!=null&&s&&(s.title=h)}}),u}const Io=Jr({name:"VtjPageContainer",setup(){return H(this,null,function*(){const e=us(),t=Ho(),r=t.params.id,n=r?e.getPage(r):e.getHomepage(),i=n?yield e.getRenderComponent(n.id):null,s=Ye(Symbol());return n&&(Object.assign(t.meta,n.meta||{},{cache:n.cache}),tw(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?Nn(e,pt(K({},t),{key:r})):Nn("div","页面不存在")},activated(){this.meta.cache===!1&&(this.sid=Symbol())}}),ew={"data-l-h6o7ki7":"",class:"vtj-startup__wrapper"},rw={"data-l-h6o7ki7":"",class:"vtj-startup"},nw={"data-l-h6o7ki7":"",class:"vtj-startup__name"},iw={"data-l-h6o7ki7":""},sw={"data-l-h6o7ki7":"",class:"vtj-startup__tagline"},ow={"data-l-h6o7ki7":"",class:"vtj-startup__actions"},Zu=Jr({__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",`
80
+ }`:"(v) => {}"},i=r.__parseFunction(n),s=os(yt(t.modifiers)?r.__parseExpression(t.modifiers):t.modifiers),o=yt(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 M_(e,t,r,n,i){if(!t)return null;if(vt(t))return{default:()=>t};if(yt(t))return{default:()=>es(r.__parseExpression(t))};if(Array.isArray(t)&&t.length>0){const s=F_(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?Ec(h!=null?h:{},l):o(h);return c.map(p=>nr(p,r.__clone(f),e,n))},a),{})}return null}function F_(e){const t={default:{params:[],nodes:[]}};for(const r of e){const n=L_(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 L_(e="default"){return vt(e)?{name:e,params:[]}:K({params:[]},e)}function V_(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 H_(e){return fl()?(pl(e),!0):!1}function as(e){return typeof e=="function"?e():In(e)}const Gu=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const U_=e=>e!=null,z_=()=>{};function q_(e){return Vo()}function K_(...e){if(e.length!==1)return cl(...e);const t=e[0];return typeof t=="function"?ul(ll(()=>({get:t,set:z_}))):Ye(t)}function J_(e,t){q_()&&hl(e,t)}const Y_=Gu?window:void 0,W_=Gu?window.document:void 0;function G_(e){var t;const r=as(e);return(t=r==null?void 0:r.$el)!=null?t:r}function Z_(){const e=Ye(!1),t=Vo();return t&&dl(()=>{e.value=!0},t),e}function Q_(e){const t=Z_();return Lo(()=>(t.value,!!e()))}function X_(e,t,r={}){const f=r,{window:n=Y_}=f,i=mn(f,["window"]);let s;const o=Q_(()=>n&&"MutationObserver"in n),a=()=>{s&&(s.disconnect(),s=void 0)},u=Lo(()=>{const p=as(e),d=(Array.isArray(p)?p:[p]).map(G_).filter(U_);return new Set(d)}),c=Fo(()=>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 H_(h),{isSupported:o,stop:h,takeRecords:l}}function tw(e=null,t={}){var r,n,i;const{document:s=W_,restoreOnUnmount:o=h=>h}=t,a=(r=s==null?void 0:s.title)!=null?r:"",u=K_((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):as(f).replace(/%s/g,h)}return Fo(u,(h,f)=>{h!==f&&s&&(s.title=l(typeof h=="string"?h:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&s&&!c&&X_((i=s.head)==null?void 0:i.querySelector("title"),()=>{s&&s.title!==u.value&&(u.value=l(s.title))},{childList:!0}),J_(()=>{if(o){const h=o(a,u.value||"");h!=null&&s&&(s.title=h)}}),u}const Io=Jr({name:"VtjPageContainer",setup(){return H(this,null,function*(){const e=us(),t=Ho(),r=t.params.id,n=r?e.getPage(r):e.getHomepage(),i=n?yield e.getRenderComponent(n.id):null,s=Ye(Symbol());return n&&(Object.assign(t.meta,n.meta||{},{cache:n.cache}),tw(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?Nn(e,pt(K({},t),{key:r})):Nn("div","页面不存在")},activated(){this.meta.cache===!1&&(this.sid=Symbol())}}),ew={"data-l-h6o7ki7":"",class:"vtj-startup__wrapper"},rw={"data-l-h6o7ki7":"",class:"vtj-startup"},nw={"data-l-h6o7ki7":"",class:"vtj-startup__name"},iw={"data-l-h6o7ki7":""},sw={"data-l-h6o7ki7":"",class:"vtj-startup__tagline"},ow={"data-l-h6o7ki7":"",class:"vtj-startup__actions"},Zu=Jr({__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",`
81
81
  .vtj-startup[data-l-h6o7ki7]{
82
82
  padding: 20px;
83
83
  border-radius: 4px;
@@ -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)=>(Bn(),ol("div",ew,[ce("div",rw,[ce("h1",nw,[ce("span",iw,gn(t.name),1)]),ce("div",sw,gn(t.tagline),1),ce("div",ow,[ce("button",{"data-l-h6o7ki7":"",onClick:r},gn(t.actionText),1)])])]))}}),aw=Jr({name:"VtjStartupContainer",render(){return Nn(Zu)}}),cs=Symbol("Provider");var Qu=(e=>(e.Production="production",e.Development="development",e))(Qu||{});class Xu extends Rc{constructor(r){super();j(this,"mode");j(this,"globals",{});j(this,"modules",{});j(this,"adapter",{request:v_,jsonp:Eu});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=lt.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!==lt.Design?this.load(a):this.project=a}load(r){return H(this,null,function*(){var a;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===lt.Raw?yield this.loadDependencies(o):yield this.loadAssets(o),this.apis=Hu(i,s,this.adapter),ns(),(a=this.project.config)!=null&&a.mock&&Uu(i),this.initRouter(),this.triggerReady()})}loadDependencies(r){return H(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 H(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}=Du(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 S=l[d]||[];for(const v of S)hn(v)&&(yield Cu(d,re.append(v,{v:Ee}))),fn(v)&&(yield gi(re.append(v,{v:Ee})));s[d]=r[d]}}if(u==="development"){for(const m of h)yield gi(re.append(m,{v:Ee}));const d=this.materials||{};for(const m of f){const b=r[p[m]],S=jc[m];if(S)b&&S.forEach(v=>{o[v]=b[v]});else{const v=d[m]?(yield d[m]()).default:r[m];v&&b&&(v.components||[]).forEach(y=>{o[y.name]=Pu(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:Se,component:Io},h={path:c,name:Ke,component:n!=null&&n.homepage?Io:s.startupComponent||aw,meta:u};r.hasRoute(Se)&&r.removeRoute(Se),r.hasRoute(Ke)&&r.removeRoute(Ke),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]&&Bu(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(cs,this),r.config.globalProperties.installed=n,this.mode===lt.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),Yr.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 H(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 H(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=K({mode:o,Vue:i.Vue,components:s,libs:i,apis:a,window},n),c=qr({getDsl:l=>H(this,null,function*(){return(yield this.getDsl(l))||null}),getDslByUrl:l=>H(this,null,function*(){return(yield this.getDslByUrl(l))||null}),options:u});return zr(pt(K({},u),{dsl:r,loader:c}))}getRenderComponent(r,n){return H(this,null,function*(){var u;const i=this.getFile(r);if(!i)return rr.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:(rr.warn(`Can not find dsl: ${r}`),null)})}defineUrlSchemaComponent(r,n){return ds(()=>H(this,null,function*(){const i=yield this.getDslByUrl(r);return i?(i.name=n||i.name,this.createDslRenderer(i).renderer):null}))}definePluginComponent(r){return ds(()=>H(this,null,function*(){return yield ss(r,window)}))}}function cw(e){const t=new Xu(e);return{provider:t,onReady:r=>t.ready(r)}}function us(e={}){const t=Mo(cs);if(!t)throw new Error("Can not find provider");if(t.nodeEnv==="development"){const{id:r,version:n}=e;r&&n&&H(this,null,function*(){const i=yield t.getDsl(r);(i==null?void 0:i.__VERSION__)!==n&&Yr.warning({title:i==null?void 0:i.name,message:"当前组件源码版本与运行时版本不一致,请重新发布组件"})})}return t}const ls=new Gi({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=>{Yr.error({message:e||"未知错误"})}}}),uw=(e="/__vtj__/api/:type.json")=>(t,r)=>ls.send({url:e,method:"post",params:{type:t},data:{type:t,data:r}}),lw=(e="/__vtj__/api/uploader.json")=>(t,r)=>H(void 0,null,function*(){return yield ls.send({url:e,method:"post",data:{files:t,projectId:r},settings:{type:"data"}}).then(n=>n&&n[0]?n[0]:null).catch(()=>null)});class pn{constructor(){j(this,"api");j(this,"pluginCaches",{});j(this,"uploader");this.api=uw(),this.uploader=lw()}getExtension(){return H(this,null,function*(){console.log("BaseService.getExtension")})}init(t){return H(this,null,function*(){return console.log("BaseService.init",t),{}})}saveProject(t){return H(this,null,function*(){return!!(yield this.api("saveProject",t).catch(()=>!1))})}saveMaterials(t,r){return H(this,null,function*(){return console.log("BaseService.saveMaterials",t,r),!1})}saveFile(t){return H(this,null,function*(){return console.log("BaseService.saveFile",t),!1})}getFile(t){return H(this,null,function*(){return console.log("BaseService.getFile",t),{}})}removeFile(t){return H(this,null,function*(){return console.log("BaseService.removeFile",t),!1})}saveHistory(t){return H(this,null,function*(){return console.log("BaseService.saveHistory",t),!1})}removeHistory(t){return H(this,null,function*(){return console.log("BaseService.removeHistory",t),!1})}getHistory(t){return H(this,null,function*(){return console.log("BaseService.getHistory",t),{}})}getHistoryItem(t,r){return H(this,null,function*(){return console.log("BaseService.getHistoryItem",t,r),{}})}saveHistoryItem(t,r){return H(this,null,function*(){return console.log("BaseService.saveHistoryItem",t,r),!1})}removeHistoryItem(t,r){return H(this,null,function*(){return console.log("BaseService.removeHistoryItem",t,r),!1})}publish(t){return H(this,null,function*(){return!!(yield this.api("publish",t).catch(()=>!1))})}publishFile(t,r){return H(this,null,function*(){return!!(yield this.api("publishFile",{project:t,file:r}).catch(()=>!1))})}genVueContent(t,r){return H(this,null,function*(){return yield this.api("genVueContent",{project:t,dsl:r}).catch(()=>"")})}createRawPage(t){return H(this,null,function*(){return yield this.api("createRawPage",t).catch(()=>"")})}removeRawPage(t){return H(this,null,function*(){return yield this.api("removeRawPage",t).catch(()=>"")})}uploadStaticFile(t,r){return H(this,null,function*(){return yield this.uploader(t,r).catch(()=>null)})}getStaticFiles(t){return H(this,null,function*(){return yield this.api("getStaticFiles",t).catch(()=>[])})}removeStaticFile(t,r){return H(this,null,function*(){return yield this.api("removeStaticFile",{name:t,projectId:r}).catch(()=>"")})}clearStaticFiles(t){return H(this,null,function*(){return yield this.api("clearStaticFiles",t).catch(()=>"")})}getPluginMaterial(t){return H(this,null,function*(){const{urls:r=[]}=t,n=r.filter(s=>ju(s))[0];return n?this.pluginCaches[n]||(this.pluginCaches[n]=ls.send({url:n,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(s=>s.data).catch(()=>null)):null})}genSource(t){return H(this,null,function*(){return console.log("BaseService.genSource",t),""})}}const dt=new Qi({type:"local",expired:0,prefix:"__VTJ_"});class hw extends pn{init(t){const r=new Xe(t),n=dt.get(`project_${r.id}`),i=Object.assign(r.toDsl(),n||{});return dt.save(`project_${r.id}`,i),Promise.resolve(i)}saveProject(t){const r=new Xe(t);return dt.save(`project_${r.id}`,r.toDsl()),Promise.resolve(!0)}saveMaterials(t,r){return dt.save(`materials_${t.id}`,nn(r)),Promise.resolve(!0)}saveFile(t){return dt.save(`file_${t.id}`,t),Promise.resolve(!0)}getFile(t){const r=dt.get(`file_${t}`);return r?Promise.resolve(r):Promise.reject(null)}removeFile(t){return dt.remove(`file_${t}`),Promise.resolve(!0)}saveHistory(t){return dt.save(`history_${t.id}`,t),Promise.resolve(!0)}removeHistory(t){const r=dt.get(`history_${t}`);if(r){const n=(r.items||[]).map(i=>i.id);this.removeHistoryItem(t,n),dt.remove(`history_${t}`)}return Promise.resolve(!0)}getHistory(t){const r=dt.get(`history_${t}`),n=new Li(r||{id:t});return Promise.resolve(n.toDsl())}getHistoryItem(t,r){const n=dt.get(`history_${t}_${r}`);return Promise.resolve(n)}saveHistoryItem(t,r){return dt.save(`history_${t}_${r.id}`,r),Promise.resolve(!0)}removeHistoryItem(t,r){return r.forEach(n=>{dt.remove(`history_${t}_${n}`)}),Promise.resolve(!0)}}class tl extends pn{constructor(){super(...arguments);j(this,"projects",{});j(this,"materials",{});j(this,"files",{});j(this,"histories",{});j(this,"historyItems",{})}init(r){const n=new Xe(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 Xe(r);return this.projects[n.id]=n.toDsl(),Promise.resolve(!0)}saveMaterials(r,n){return r.id&&(this.materials[r.id]=nn(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 Li(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 kn=null;function fw(){return kn||(kn=new tl,kn)}class pw extends pn{constructor(){super(...arguments);j(this,"getFileCaches",{})}getExtension(){return H(this,null,function*(){return yield this.api("getExtension",{}).catch(()=>{})})}init(r){return H(this,null,function*(){return(yield this.api("init",r).catch(()=>null))||{}})}saveProject(r){return H(this,null,function*(){return!!(yield this.api("saveProject",r).catch(()=>!1))})}saveMaterials(r,n){return H(this,null,function*(){return!!(yield this.api("saveMaterials",{project:r,materials:nn(n)}).catch(()=>!1))})}saveFile(r){return H(this,null,function*(){return!!(yield this.api("saveFile",r).catch(()=>!1))})}getFile(r){return H(this,null,function*(){return this.getFileCaches[r]||(this.getFileCaches[r]=this.api("getFile",r).catch(()=>null)).finally(()=>{delete this.getFileCaches[r]})})}removeFile(r){return H(this,null,function*(){return!!(yield this.api("removeFile",r).catch(()=>!1))})}saveHistory(r){return H(this,null,function*(){return!!(yield this.api("saveHistory",r).catch(()=>!1))})}removeHistory(r){return H(this,null,function*(){return!!(yield this.api("removeHistory",r).catch(()=>!1))})}getHistory(r){return H(this,null,function*(){return(yield this.api("getHistory",r).catch(()=>null))||{}})}getHistoryItem(r,n){return H(this,null,function*(){return(yield this.api("getHistoryItem",{fId:r,id:n}).catch(()=>null))||{}})}saveHistoryItem(r,n){return H(this,null,function*(){return!!(yield this.api("saveHistoryItem",{fId:r,item:n}).catch(()=>!1))})}removeHistoryItem(r,n){return H(this,null,function*(){return!!(yield this.api("removeHistoryItem",{fId:r,ids:n}).catch(()=>!1))})}}function el(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?el(e,t,a):void 0}})}function rl(e,t){if(!t)return e;let r=[];for(const n of e)if(n.children&&n.children.length){const i=rl(n.children,t);i.length&&(n.children=i,r.push(n))}else t.can(n.id.toString())&&r.push(n);return r}function dw(e){const{menuPathPrefix:t="",pageRouteName:r="page",disableMenusFilter:n=!1}=e||{},i=us(),s=Ho(),o=Ku(),a=Ye(!1),u=Ye(!1),c=i.project;al(()=>{const{name:f,params:p,meta:d}=s;if(f===Se){const m=i.getPage(p.id);a.value=!(m!=null&&m.mask),u.value=!!(m!=null&&m.pure)}else if(f===Ke){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=el(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:rl(l,o),pure:u}}const Lw=Object.freeze(Object.defineProperty({__proto__:null,ACCESS_KEY:is,Access:qu,BUILD_IN_TAGS:$u,BUILT_IN_DIRECTIVES:Tu,BaseService:pn,CONTEXT_HOST:yi,Context:Ju,ContextMode:lt,DATA_TYPES:Ou,HOMEPAGE_ROUTE_NAME:Ke,HTML_TAGS:Au,JSCodeToString:g_,LIFE_CYCLES_LIST:p_,LocalService:pw,MemoryService:tl,NodeEnv:Qu,PAGE_ROUTE_NAME:Se,Provider:Xu,Startup:Zu,StorageService:hw,VTJ_RENDERER_VERSION:Ee,adoptedStyleSheets:rs,createAssetScripts:d_,createAssetsCss:m_,createDataSources:Yu,createLoader:qr,createMemoryService:fw,createMetaApi:Vu,createProvider:cw,createRenderer:zr,createSchemaApi:Lu,createSchemaApis:Hu,defaultLoader:Wu,fillBasePath:Ue,getModifiers:os,getPlugin:ss,getRawComponent:Pu,isBuiltInTag:Iu,isCSSUrl:hn,isJSCode:Fu,isJSExpression:vt,isJSFunction:fr,isJSON:ju,isJSUrl:fn,isNativeTag:Mu,isVuePlugin:Bu,loadCss:Cu,loadCssUrl:ku,loadScriptUrl:Nu,mockApi:zu,mockApis:Uu,mockCleanup:ns,nodeRender:nr,parseDeps:Du,parseExpression:je,parseFunction:bi,providerKey:cs,removeProdFlag:Ru,toString:es,useAccess:Ku,useMask:dw,useProvider:us},Symbol.toStringTag,{value:"Module"})),mw=Jr({__name:"app",setup(e){return(t,r)=>{const n=ml("router-view");return Bn(),ms(In(Sl),{locale:In(El)},{default:gs(()=>[(Bn(),ms(gl,null,{default:gs(()=>[vl(n)]),_:1}))]),_:1},8,["locale"])}}}),gw=[{path:"/",name:"home",component:()=>Me(()=>import("./index-wxL8RGHQ.js"),__vite__mapDeps([2,3,4,5,6,7,8,9,1,10,11,12,13,14,15,16,0,17,18,19]),import.meta.url)},{path:"/preview/:id",name:"preview",component:()=>Me(()=>import("./preview-DEx2pHKv.js"),__vite__mapDeps([20,14,15,3,4,5,6,7,8,9,1,10,11,12,13,16,0,17]),import.meta.url)},{path:"/page/:id",name:"page",component:()=>Me(()=>import("./page-DWv9R3T3.js"),__vite__mapDeps([21,14,15,3,4,13,8,7,11,1,9,12,5,6,10,16,0,17]),import.meta.url),meta:{pure:!0}},{path:"/auth",name:"auth",component:()=>Me(()=>import("./auth-BhvfOEC4.js"),__vite__mapDeps([22,3,4,5,6,7,8,9,1,10,11,12,13,14,15,16,0,17,18,23]),import.meta.url)}],vw=bl({history:_l(),routes:gw}),yw="RRO_IDE_ACCESS_STORAGE__",hs=yl(mw),bw=new qu({storageKey:yw});hs.use(bw);hs.use(vw);hs.mount("#app");export{Bc as $,yw as A,G as B,rr as C,cw as D,nt as E,kc as F,He as G,pw as H,qu as I,ne as J,lv as K,ia as L,Mt as M,Ve as N,$t as O,Eu as P,Li as Q,t0 as R,W1 as S,Kb as T,fr as U,Pr as V,Uv as W,Jn as X,hv as Y,ot as Z,vt as _,Zn as a,g_ as a0,p_ as a1,je as a2,Ou as a3,Du as a4,m_ as a5,d_ as a6,Nv as a7,Pu as a8,Hu as a9,Uu as aa,bi as ab,Pi as ac,Hr as ad,Iv as ae,ns as af,Le as ag,Ub as ah,Mi as ai,Fi as aj,Hb as ak,dv as al,ji as am,Fw as an,hn as ao,fn as ap,ku as aq,Nu as ar,Cw as as,Lw as at,wc as b,Qe as c,Br as d,qb as e,h_ as f,kt as g,Lv as h,Rc as i,fc as j,Ua as k,Xu as l,U1 as m,Xe as n,yt as o,F as p,it as q,be as r,ge as s,mt as t,ei as u,l_ as v,ti as w,Nc as x,lt as y,_c 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)=>(Bn(),ol("div",ew,[ce("div",rw,[ce("h1",nw,[ce("span",iw,gn(t.name),1)]),ce("div",sw,gn(t.tagline),1),ce("div",ow,[ce("button",{"data-l-h6o7ki7":"",onClick:r},gn(t.actionText),1)])])]))}}),aw=Jr({name:"VtjStartupContainer",render(){return Nn(Zu)}}),cs=Symbol("Provider");var Qu=(e=>(e.Production="production",e.Development="development",e))(Qu||{});class Xu extends Rc{constructor(r){super();j(this,"mode");j(this,"globals",{});j(this,"modules",{});j(this,"adapter",{request:v_,jsonp:Eu});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=lt.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!==lt.Design?this.load(a):this.project=a}load(r){return H(this,null,function*(){var a;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===lt.Raw?yield this.loadDependencies(o):yield this.loadAssets(o),this.apis=Hu(i,s,this.adapter),ns(),(a=this.project.config)!=null&&a.mock&&Uu(i),this.initRouter(),this.triggerReady()})}loadDependencies(r){return H(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 H(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}=Du(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 S=l[d]||[];for(const v of S)hn(v)&&(yield Cu(d,re.append(v,{v:Ee}))),fn(v)&&(yield gi(re.append(v,{v:Ee})));s[d]=r[d]}}if(u==="development"){for(const m of h)yield gi(re.append(m,{v:Ee}));const d=this.materials||{};for(const m of f){const b=r[p[m]],S=jc[m];if(S)b&&S.forEach(v=>{o[v]=b[v]});else{const v=d[m]?(yield d[m]()).default:r[m];v&&b&&(v.components||[]).forEach(y=>{o[y.name]=Pu(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:Se,component:Io},h={path:c,name:Ke,component:n!=null&&n.homepage?Io:s.startupComponent||aw,meta:u};r.hasRoute(Se)&&r.removeRoute(Se),r.hasRoute(Ke)&&r.removeRoute(Ke),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]&&Bu(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(cs,this),r.config.globalProperties.installed=n,this.mode===lt.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),Yr.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 H(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 H(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=K({mode:o,Vue:i.Vue,components:s,libs:i,apis:a,window},n),c=qr({getDsl:l=>H(this,null,function*(){return(yield this.getDsl(l))||null}),getDslByUrl:l=>H(this,null,function*(){return(yield this.getDslByUrl(l))||null}),options:u});return zr(pt(K({},u),{dsl:r,loader:c}))}getRenderComponent(r,n){return H(this,null,function*(){var u;const i=this.getFile(r);if(!i)return rr.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:(rr.warn(`Can not find dsl: ${r}`),null)})}defineUrlSchemaComponent(r,n){return ds(()=>H(this,null,function*(){const i=yield this.getDslByUrl(r);return i?(i.name=n||i.name,this.createDslRenderer(i).renderer):null}))}definePluginComponent(r){return ds(()=>H(this,null,function*(){return yield ss(r,window)}))}}function cw(e){const t=new Xu(e);return{provider:t,onReady:r=>t.ready(r)}}function us(e={}){const t=Mo(cs);if(!t)throw new Error("Can not find provider");if(t.nodeEnv==="development"){const{id:r,version:n}=e;r&&n&&H(this,null,function*(){const i=yield t.getDsl(r);(i==null?void 0:i.__VERSION__)!==n&&Yr.warning({title:i==null?void 0:i.name,message:"当前组件源码版本与运行时版本不一致,请重新发布组件"})})}return t}const ls=new Gi({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=>{Yr.error({message:e||"未知错误"})}}}),uw=(e="/__vtj__/api/:type.json")=>(t,r)=>ls.send({url:e,method:"post",params:{type:t},data:{type:t,data:r}}),lw=(e="/__vtj__/api/uploader.json")=>(t,r)=>H(void 0,null,function*(){return yield ls.send({url:e,method:"post",data:{files:t,projectId:r},settings:{type:"data"}}).then(n=>n&&n[0]?n[0]:null).catch(()=>null)});class pn{constructor(){j(this,"api");j(this,"pluginCaches",{});j(this,"uploader");this.api=uw(),this.uploader=lw()}getExtension(){return H(this,null,function*(){console.log("BaseService.getExtension")})}init(t){return H(this,null,function*(){return console.log("BaseService.init",t),{}})}saveProject(t){return H(this,null,function*(){return!!(yield this.api("saveProject",t).catch(()=>!1))})}saveMaterials(t,r){return H(this,null,function*(){return console.log("BaseService.saveMaterials",t,r),!1})}saveFile(t){return H(this,null,function*(){return console.log("BaseService.saveFile",t),!1})}getFile(t){return H(this,null,function*(){return console.log("BaseService.getFile",t),{}})}removeFile(t){return H(this,null,function*(){return console.log("BaseService.removeFile",t),!1})}saveHistory(t){return H(this,null,function*(){return console.log("BaseService.saveHistory",t),!1})}removeHistory(t){return H(this,null,function*(){return console.log("BaseService.removeHistory",t),!1})}getHistory(t){return H(this,null,function*(){return console.log("BaseService.getHistory",t),{}})}getHistoryItem(t,r){return H(this,null,function*(){return console.log("BaseService.getHistoryItem",t,r),{}})}saveHistoryItem(t,r){return H(this,null,function*(){return console.log("BaseService.saveHistoryItem",t,r),!1})}removeHistoryItem(t,r){return H(this,null,function*(){return console.log("BaseService.removeHistoryItem",t,r),!1})}publish(t){return H(this,null,function*(){return!!(yield this.api("publish",t).catch(()=>!1))})}publishFile(t,r){return H(this,null,function*(){return!!(yield this.api("publishFile",{project:t,file:r}).catch(()=>!1))})}genVueContent(t,r){return H(this,null,function*(){return yield this.api("genVueContent",{project:t,dsl:r}).catch(()=>"")})}createRawPage(t){return H(this,null,function*(){return yield this.api("createRawPage",t).catch(()=>"")})}removeRawPage(t){return H(this,null,function*(){return yield this.api("removeRawPage",t).catch(()=>"")})}uploadStaticFile(t,r){return H(this,null,function*(){return yield this.uploader(t,r).catch(()=>null)})}getStaticFiles(t){return H(this,null,function*(){return yield this.api("getStaticFiles",t).catch(()=>[])})}removeStaticFile(t,r){return H(this,null,function*(){return yield this.api("removeStaticFile",{name:t,projectId:r}).catch(()=>"")})}clearStaticFiles(t){return H(this,null,function*(){return yield this.api("clearStaticFiles",t).catch(()=>"")})}getPluginMaterial(t){return H(this,null,function*(){const{urls:r=[]}=t,n=r.filter(s=>ju(s))[0];return n?this.pluginCaches[n]||(this.pluginCaches[n]=ls.send({url:n,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(s=>s.data).catch(()=>null)):null})}genSource(t){return H(this,null,function*(){return console.log("BaseService.genSource",t),""})}}const dt=new Qi({type:"local",expired:0,prefix:"__VTJ_"});class hw extends pn{init(t){const r=new Xe(t),n=dt.get(`project_${r.id}`),i=Object.assign(r.toDsl(),n||{});return dt.save(`project_${r.id}`,i),Promise.resolve(i)}saveProject(t){const r=new Xe(t);return dt.save(`project_${r.id}`,r.toDsl()),Promise.resolve(!0)}saveMaterials(t,r){return dt.save(`materials_${t.id}`,nn(r)),Promise.resolve(!0)}saveFile(t){return dt.save(`file_${t.id}`,t),Promise.resolve(!0)}getFile(t){const r=dt.get(`file_${t}`);return r?Promise.resolve(r):Promise.reject(null)}removeFile(t){return dt.remove(`file_${t}`),Promise.resolve(!0)}saveHistory(t){return dt.save(`history_${t.id}`,t),Promise.resolve(!0)}removeHistory(t){const r=dt.get(`history_${t}`);if(r){const n=(r.items||[]).map(i=>i.id);this.removeHistoryItem(t,n),dt.remove(`history_${t}`)}return Promise.resolve(!0)}getHistory(t){const r=dt.get(`history_${t}`),n=new Li(r||{id:t});return Promise.resolve(n.toDsl())}getHistoryItem(t,r){const n=dt.get(`history_${t}_${r}`);return Promise.resolve(n)}saveHistoryItem(t,r){return dt.save(`history_${t}_${r.id}`,r),Promise.resolve(!0)}removeHistoryItem(t,r){return r.forEach(n=>{dt.remove(`history_${t}_${n}`)}),Promise.resolve(!0)}}class tl extends pn{constructor(){super(...arguments);j(this,"projects",{});j(this,"materials",{});j(this,"files",{});j(this,"histories",{});j(this,"historyItems",{})}init(r){const n=new Xe(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 Xe(r);return this.projects[n.id]=n.toDsl(),Promise.resolve(!0)}saveMaterials(r,n){return r.id&&(this.materials[r.id]=nn(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 Li(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 kn=null;function fw(){return kn||(kn=new tl,kn)}class pw extends pn{constructor(){super(...arguments);j(this,"getFileCaches",{})}getExtension(){return H(this,null,function*(){return yield this.api("getExtension",{}).catch(()=>{})})}init(r){return H(this,null,function*(){return(yield this.api("init",r).catch(()=>null))||{}})}saveProject(r){return H(this,null,function*(){return!!(yield this.api("saveProject",r).catch(()=>!1))})}saveMaterials(r,n){return H(this,null,function*(){return!!(yield this.api("saveMaterials",{project:r,materials:nn(n)}).catch(()=>!1))})}saveFile(r){return H(this,null,function*(){return!!(yield this.api("saveFile",r).catch(()=>!1))})}getFile(r){return H(this,null,function*(){return this.getFileCaches[r]||(this.getFileCaches[r]=this.api("getFile",r).catch(()=>null)).finally(()=>{delete this.getFileCaches[r]})})}removeFile(r){return H(this,null,function*(){return!!(yield this.api("removeFile",r).catch(()=>!1))})}saveHistory(r){return H(this,null,function*(){return!!(yield this.api("saveHistory",r).catch(()=>!1))})}removeHistory(r){return H(this,null,function*(){return!!(yield this.api("removeHistory",r).catch(()=>!1))})}getHistory(r){return H(this,null,function*(){return(yield this.api("getHistory",r).catch(()=>null))||{}})}getHistoryItem(r,n){return H(this,null,function*(){return(yield this.api("getHistoryItem",{fId:r,id:n}).catch(()=>null))||{}})}saveHistoryItem(r,n){return H(this,null,function*(){return!!(yield this.api("saveHistoryItem",{fId:r,item:n}).catch(()=>!1))})}removeHistoryItem(r,n){return H(this,null,function*(){return!!(yield this.api("removeHistoryItem",{fId:r,ids:n}).catch(()=>!1))})}}function el(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?el(e,t,a):void 0}})}function rl(e,t){if(!t)return e;let r=[];for(const n of e)if(n.children&&n.children.length){const i=rl(n.children,t);i.length&&(n.children=i,r.push(n))}else t.can(n.id.toString())&&r.push(n);return r}function dw(e){const{menuPathPrefix:t="",pageRouteName:r="page",disableMenusFilter:n=!1}=e||{},i=us(),s=Ho(),o=Ku(),a=Ye(!1),u=Ye(!1),c=i.project;al(()=>{const{name:f,params:p,meta:d}=s;if(f===Se){const m=i.getPage(p.id);a.value=!(m!=null&&m.mask),u.value=!!(m!=null&&m.pure)}else if(f===Ke){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=el(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:rl(l,o),pure:u}}const Lw=Object.freeze(Object.defineProperty({__proto__:null,ACCESS_KEY:is,Access:qu,BUILD_IN_TAGS:$u,BUILT_IN_DIRECTIVES:Tu,BaseService:pn,CONTEXT_HOST:yi,Context:Ju,ContextMode:lt,DATA_TYPES:Ou,HOMEPAGE_ROUTE_NAME:Ke,HTML_TAGS:Au,JSCodeToString:g_,LIFE_CYCLES_LIST:p_,LocalService:pw,MemoryService:tl,NodeEnv:Qu,PAGE_ROUTE_NAME:Se,Provider:Xu,Startup:Zu,StorageService:hw,VTJ_RENDERER_VERSION:Ee,adoptedStyleSheets:rs,createAssetScripts:d_,createAssetsCss:m_,createDataSources:Yu,createLoader:qr,createMemoryService:fw,createMetaApi:Vu,createProvider:cw,createRenderer:zr,createSchemaApi:Lu,createSchemaApis:Hu,defaultLoader:Wu,fillBasePath:Ue,getModifiers:os,getPlugin:ss,getRawComponent:Pu,isBuiltInTag:Iu,isCSSUrl:hn,isJSCode:Fu,isJSExpression:yt,isJSFunction:fr,isJSON:ju,isJSUrl:fn,isNativeTag:Mu,isVuePlugin:Bu,loadCss:Cu,loadCssUrl:ku,loadScriptUrl:Nu,mockApi:zu,mockApis:Uu,mockCleanup:ns,nodeRender:nr,parseDeps:Du,parseExpression:je,parseFunction:bi,providerKey:cs,removeProdFlag:Ru,toString:es,useAccess:Ku,useMask:dw,useProvider:us},Symbol.toStringTag,{value:"Module"})),mw=Jr({__name:"app",setup(e){return(t,r)=>{const n=ml("router-view");return Bn(),ms(In(Sl),{locale:In(El)},{default:gs(()=>[(Bn(),ms(gl,null,{default:gs(()=>[vl(n)]),_:1}))]),_:1},8,["locale"])}}}),gw=[{path:"/",name:"home",component:()=>Me(()=>import("./index-CbobV5nh.js"),__vite__mapDeps([2,3,4,5,6,7,8,9,1,10,11,12,13,14,15,16,0,17,18,19]),import.meta.url)},{path:"/preview/:id",name:"preview",component:()=>Me(()=>import("./preview-WdJT79pk.js"),__vite__mapDeps([20,14,15,3,4,5,6,7,8,9,1,10,11,12,13,16,0,17]),import.meta.url)},{path:"/page/:id",name:"page",component:()=>Me(()=>import("./page-DLaTT2eZ.js"),__vite__mapDeps([21,14,15,3,4,13,8,7,11,1,9,12,5,6,10,16,0,17]),import.meta.url),meta:{pure:!0}},{path:"/auth",name:"auth",component:()=>Me(()=>import("./auth-CAAHD2fo.js"),__vite__mapDeps([22,3,4,5,6,7,8,9,1,10,11,12,13,14,15,16,0,17,18,23]),import.meta.url)}],vw=bl({history:_l(),routes:gw}),yw="RRO_IDE_ACCESS_STORAGE__",hs=yl(mw),bw=new qu({storageKey:yw});hs.use(bw);hs.use(vw);hs.mount("#app");export{Bc as $,yw as A,Nc as B,rr as C,cw as D,G as E,kc as F,nt as G,He as H,qu as I,ne as J,lv as K,ia as L,Mt as M,Ve as N,pw as O,Eu as P,Li as Q,t0 as R,W1 as S,Kb as T,fr as U,Pr as V,Uv as W,Jn as X,hv as Y,ot as Z,yt as _,Zn as a,g_ as a0,p_ as a1,je as a2,Ou as a3,Du as a4,m_ as a5,d_ as a6,Nv as a7,Pu as a8,Hu as a9,Uu as aa,bi as ab,Le as ac,Tu as ad,Pi as ae,Hr as af,Iv as ag,ns as ah,Ub as ai,Mi as aj,Fi as ak,Hb as al,dv as am,ji as an,Fw as ao,hn as ap,fn as aq,ku as ar,Nu as as,Cw as at,Lw as au,$t as b,wc as c,Qe as d,Br as e,qb as f,h_ as g,kt as h,Lv as i,fc as j,Ua as k,Rc as l,U1 as m,Xu as n,vt as o,Xe as p,F as q,be as r,it as s,mt as t,ge as u,l_ as v,ei as w,ti as x,lt as y,_c as z};