@vtj/pro 0.11.7 → 0.11.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/uni-h5/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/uni-ui/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/vant/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +2 -2
- package/dist/assets/{@element-plus-icons-vue-CiUy_FB_.js → @element-plus-icons-vue-D9M6af3i.js} +1 -1
- package/dist/assets/{@vueuse-CceCMEgA.js → @vueuse-CBolIfk8.js} +1 -1
- package/dist/assets/{Editor-7SLplEph-BOZTEciy.js → Editor-7SLplEph-B1lds3kB.js} +1 -1
- package/dist/assets/auth-BYDBQwF1.js +1 -0
- package/dist/assets/{element-plus-CQpgC9_i.js → element-plus-DVZXCX6H.js} +1 -1
- package/dist/assets/index-CSFzrcq4.js +2 -0
- package/dist/assets/index-CWUrd3SB.js +247 -0
- package/dist/assets/index-eyvKjvuv.js +1 -0
- package/dist/assets/{mockjs-Br3MU93j.js → mockjs-BSD1DCM1.js} +1 -1
- package/dist/assets/page-C9bdIsUF.js +2 -0
- package/dist/assets/preview-Dr-xPsp8.js +2 -0
- package/dist/assets/{uni-page-Cjqcu6iY.js → uni-page-DLae1FnZ.js} +1 -1
- package/dist/assets/utils-CXIlvN3w.js +1 -0
- package/dist/assets/{vue-CK7CG2oW.js → vue-B-E4FNFR.js} +1 -1
- package/dist/assets/{vue-router-5AKQpGpA.js → vue-router-CYHi_K9j.js} +1 -1
- package/dist/assets/{vxe-N9ALOqba.js → vxe-C7V99fHW.js} +1 -1
- package/dist/index.html +8 -8
- package/dist/uni/assets/{index-C31svkEP.js → index-bt58RsEJ.js} +6 -6
- package/dist/uni/index.html +1 -1
- package/package.json +11 -11
- package/dist/assets/auth-C-5femxN.js +0 -1
- package/dist/assets/index-3SYMiJzN.js +0 -169
- package/dist/assets/index-BVqpvgWv.js +0 -1
- package/dist/assets/index-C3lIo7ov.js +0 -80
- package/dist/assets/page-CqUg-Ezr.js +0 -2
- package/dist/assets/preview-i-h1x2G5.js +0 -2
- package/dist/assets/utils-BW9N8B4f.js +0 -1
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-BVqpvgWv.js","./vue-router-5AKQpGpA.js","./vue-CK7CG2oW.js","./@vueuse-CceCMEgA.js","./element-plus-CQpgC9_i.js","./lodash-es-BL-d_OSa.js","./@element-plus-icons-vue-CiUy_FB_.js","./shared-CFJLz5mK.js","./dayjs-DO-COJPZ.js","./element-plus-CfFwvTok.css","./vxe-N9ALOqba.js","./vxe-BAb1d5vW.css","./index-3SYMiJzN.js","./monaco-editor-B8dwQNlP.js","./monaco-editor-Cpw7ccEV.css","./html2canvas-CIV5arX1.js","./mockjs-Br3MU93j.js","./index-CmSQeSxO.css","./utils-BW9N8B4f.js","./_plugin-vue_export-helper-DlAUqK2U.js","./index-5RBG6XMh.css","./preview-i-h1x2G5.js","./page-CqUg-Ezr.js","./uni-page-Cjqcu6iY.js","./uni-page-Diqmj53r.css","./auth-C-5femxN.js","./auth-D9f-Hr0r.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
var dl=Object.defineProperty,pl=Object.defineProperties;var ml=Object.getOwnPropertyDescriptors;var gr=Object.getOwnPropertySymbols;var vs=Object.prototype.hasOwnProperty,ys=Object.prototype.propertyIsEnumerable;var pe=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),gl=e=>{throw TypeError(e)};var Sn=(e,t,r)=>t in e?dl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,z=(e,t)=>{for(var r in t||(t={}))vs.call(t,r)&&Sn(e,r,t[r]);if(gr)for(var r of gr(t))ys.call(t,r)&&Sn(e,r,t[r]);return e},st=(e,t)=>pl(e,ml(t));var bs=(e,t)=>{var r={};for(var n in e)vs.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&gr)for(var n of gr(e))t.indexOf(n)<0&&ys.call(e,n)&&(r[n]=e[n]);return r};var A=(e,t,r)=>Sn(e,typeof t!="symbol"?t+"":t,r);var L=(e,t,r)=>new Promise((n,i)=>{var s=u=>{try{a(r.next(u))}catch(c){i(c)}},o=u=>{try{a(r.throw(u))}catch(c){i(c)}},a=u=>u.done?n(u.value):Promise.resolve(u.value).then(s,o);a((r=r.apply(e,t)).next())}),Gt=function(e,t){this[0]=e,this[1]=t},xn=(e,t,r)=>{var n=(o,a,u,c)=>{try{var l=r[o](a),f=(a=l.value)instanceof Gt,d=l.done;Promise.resolve(f?a[0]:a).then(h=>f?n(o==="return"?o:"next",a[1]?{done:h.done,value:h.value}:h,u,c):u({value:h,done:d})).catch(h=>n("throw",h,u,c))}catch(h){c(h)}},i=o=>s[o]=a=>new Promise((u,c)=>n(o,a,u,c)),s={};return r=r.apply(e,t),s[pe("asyncIterator")]=()=>s,i("next"),i("throw"),i("return"),s},Tn=e=>{var t=e[pe("asyncIterator")],r=!1,n,i={};return t==null?(t=e[pe("iterator")](),n=s=>i[s]=o=>t[s](o)):(t=t.call(e),n=s=>i[s]=o=>{if(r){if(r=!1,s==="throw")throw o;return o}return r=!0,{done:!1,value:new Gt(new Promise(a=>{var u=t[s](o);u instanceof Object||gl("Object expected"),a(u)}),1)}}),i[pe("iterator")]=()=>i,n("next"),"throw"in t?n("throw"):i.throw=s=>{throw s},"return"in t&&n("return"),i},_s=(e,t,r)=>(t=e[pe("asyncIterator")])?t.call(e):(e=e[pe("iterator")](),t={},r=(n,i)=>(i=e[n])&&(t[n]=s=>new Promise((o,a,u)=>(s=i.call(e,s),u=s.done,Promise.resolve(s.value).then(c=>o({value:c,done:u}),a)))),r("next"),r("return"),t);import{d as $i,ay as ws,az as Qr,ah as zn,e as qn,v as Go,w as vl,K as Es,u as Ss,ai as yl,o as xs,L as Ts,aA as bl,T as _l,av as wl}from"./vue-CK7CG2oW.js";import{useRoute as Zo,createRouter as El,createWebHashHistory as Sl}from"./vue-router-5AKQpGpA.js";import{z as xl,E as Tl}from"./element-plus-CQpgC9_i.js";import{_ as Ve}from"./monaco-editor-B8dwQNlP.js";import"./lodash-es-BL-d_OSa.js";import"./@vueuse-CceCMEgA.js";import"./@element-plus-icons-vue-CiUy_FB_.js";import"./shared-CFJLz5mK.js";import"./dayjs-DO-COJPZ.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 Ol={ENV_TYPE:"live",NODE_ENV:"production"},$l=typeof global=="object"&&global&&global.Object===Object&&global;const Xo=$l;var Al=typeof self=="object"&&self&&self.Object===Object&&self,Rl=Xo||Al||Function("return this")();const At=Rl;var jl=At.Symbol;const Ct=jl;var Qo=Object.prototype,Dl=Qo.hasOwnProperty,Cl=Qo.toString,Ue=Ct?Ct.toStringTag:void 0;function Pl(e){var t=Dl.call(e,Ue),r=e[Ue];try{e[Ue]=void 0;var n=!0}catch(s){}var i=Cl.call(e);return n&&(t?e[Ue]=r:delete e[Ue]),i}var Nl=Object.prototype,Bl=Nl.toString;function kl(e){return Bl.call(e)}var Ml="[object Null]",Il="[object Undefined]",Os=Ct?Ct.toStringTag:void 0;function Et(e){return e==null?e===void 0?Il:Ml:Os&&Os in Object(e)?Pl(e):kl(e)}function at(e){return e!=null&&typeof e=="object"}var Fl="[object Symbol]";function cr(e){return typeof e=="symbol"||at(e)&&Et(e)==Fl}function ta(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 Ll=Array.isArray;const dt=Ll;var $s=Ct?Ct.prototype:void 0,As=$s?$s.toString:void 0;function ea(e){if(typeof e=="string")return e;if(dt(e))return ta(e,ea)+"";if(cr(e))return As?As.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Vl=/\s/;function Ul(e){for(var t=e.length;t--&&Vl.test(e.charAt(t)););return t}var Hl=/^\s+/;function zl(e){return e&&e.slice(0,Ul(e)+1).replace(Hl,"")}function ct(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Rs=NaN,ql=/^[-+]0x[0-9a-f]+$/i,Kl=/^0b[01]+$/i,Jl=/^0o[0-7]+$/i,Wl=parseInt;function js(e){if(typeof e=="number")return e;if(cr(e))return Rs;if(ct(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ct(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=zl(e);var r=Kl.test(e);return r||Jl.test(e)?Wl(e.slice(2),r?2:8):ql.test(e)?Rs:+e}function Ai(e){return e}var Yl="[object AsyncFunction]",Gl="[object Function]",Zl="[object GeneratorFunction]",Xl="[object Proxy]";function oe(e){if(!ct(e))return!1;var t=Et(e);return t==Gl||t==Zl||t==Yl||t==Xl}var Ql=At["__core-js_shared__"];const On=Ql;var Ds=function(){var e=/[^.]+$/.exec(On&&On.keys&&On.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function tf(e){return!!Ds&&Ds in e}var ef=Function.prototype,rf=ef.toString;function le(e){if(e!=null){try{return rf.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var nf=/[\\^$.*+?()[\]{}|]/g,sf=/^\[object .+?Constructor\]$/,of=Function.prototype,af=Object.prototype,cf=of.toString,uf=af.hasOwnProperty,lf=RegExp("^"+cf.call(uf).replace(nf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ff(e){if(!ct(e)||tf(e))return!1;var t=oe(e)?lf:sf;return t.test(le(e))}function hf(e,t){return e==null?void 0:e[t]}function fe(e,t){var r=hf(e,t);return ff(r)?r:void 0}var df=fe(At,"WeakMap");const Kn=df;var Cs=Object.create,pf=function(){function e(){}return function(t){if(!ct(t))return{};if(Cs)return Cs(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const mf=pf;function ra(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 gf(){}function vf(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var yf=800,bf=16,_f=Date.now;function wf(e){var t=0,r=0;return function(){var n=_f(),i=bf-(n-r);if(r=n,i>0){if(++t>=yf)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ef(e){return function(){return e}}var Sf=function(){try{var e=fe(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();const Ur=Sf;var xf=Ur?function(e,t){return Ur(e,"toString",{configurable:!0,enumerable:!1,value:Ef(t),writable:!0})}:Ai;const Tf=xf;var Of=wf(Tf);const $f=Of;function Af(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var Rf=9007199254740991,jf=/^(?:0|[1-9]\d*)$/;function tn(e,t){var r=typeof e;return t=t!=null?t:Rf,!!t&&(r=="number"||r!="symbol"&&jf.test(e))&&e>-1&&e%1==0&&e<t}function en(e,t,r){t=="__proto__"&&Ur?Ur(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Ne(e,t){return e===t||e!==e&&t!==t}var Df=Object.prototype,Cf=Df.hasOwnProperty;function Ri(e,t,r){var n=e[t];(!(Cf.call(e,t)&&Ne(n,r))||r===void 0&&!(t in e))&&en(e,t,r)}function na(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?en(r,a,u):Ri(r,a,u)}return r}var Ps=Math.max;function Pf(e,t,r){return t=Ps(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,s=Ps(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),ra(e,this,a)}}function ia(e,t){return $f(Pf(e,t,Ai),e+"")}var Nf=9007199254740991;function ji(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Nf}function ur(e){return e!=null&&ji(e.length)&&!oe(e)}function sa(e,t,r){if(!ct(r))return!1;var n=typeof t;return(n=="number"?ur(r)&&tn(t,r.length):n=="string"&&t in r)?Ne(r[t],e):!1}function oa(e){return ia(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&&sa(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 Bf=Object.prototype;function Di(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Bf;return e===r}function kf(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Mf="[object Arguments]";function Ns(e){return at(e)&&Et(e)==Mf}var aa=Object.prototype,If=aa.hasOwnProperty,Ff=aa.propertyIsEnumerable,Lf=Ns(function(){return arguments}())?Ns:function(e){return at(e)&&If.call(e,"callee")&&!Ff.call(e,"callee")};const Hr=Lf;function Vf(){return!1}var ca=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Bs=ca&&typeof module=="object"&&module&&!module.nodeType&&module,Uf=Bs&&Bs.exports===ca,ks=Uf?At.Buffer:void 0,Hf=ks?ks.isBuffer:void 0,zf=Hf||Vf;const Ae=zf;var qf="[object Arguments]",Kf="[object Array]",Jf="[object Boolean]",Wf="[object Date]",Yf="[object Error]",Gf="[object Function]",Zf="[object Map]",Xf="[object Number]",Qf="[object Object]",th="[object RegExp]",eh="[object Set]",rh="[object String]",nh="[object WeakMap]",ih="[object ArrayBuffer]",sh="[object DataView]",oh="[object Float32Array]",ah="[object Float64Array]",ch="[object Int8Array]",uh="[object Int16Array]",lh="[object Int32Array]",fh="[object Uint8Array]",hh="[object Uint8ClampedArray]",dh="[object Uint16Array]",ph="[object Uint32Array]",Q={};Q[oh]=Q[ah]=Q[ch]=Q[uh]=Q[lh]=Q[fh]=Q[hh]=Q[dh]=Q[ph]=!0,Q[qf]=Q[Kf]=Q[ih]=Q[Jf]=Q[sh]=Q[Wf]=Q[Yf]=Q[Gf]=Q[Zf]=Q[Xf]=Q[Qf]=Q[th]=Q[eh]=Q[rh]=Q[nh]=!1;function mh(e){return at(e)&&ji(e.length)&&!!Q[Et(e)]}function lr(e){return function(t){return e(t)}}var ua=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ge=ua&&typeof module=="object"&&module&&!module.nodeType&&module,gh=Ge&&Ge.exports===ua,$n=gh&&Xo.process,vh=function(){try{var e=Ge&&Ge.require&&Ge.require("util").types;return e||$n&&$n.binding&&$n.binding("util")}catch(t){}}();const Pt=vh;var Ms=Pt&&Pt.isTypedArray,yh=Ms?lr(Ms):mh;const Ci=yh;var bh=Object.prototype,_h=bh.hasOwnProperty;function la(e,t){var r=dt(e),n=!r&&Hr(e),i=!r&&!n&&Ae(e),s=!r&&!n&&!i&&Ci(e),o=r||n||i||s,a=o?kf(e.length,String):[],u=a.length;for(var c in e)(t||_h.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||tn(c,u)))&&a.push(c);return a}function fa(e,t){return function(r){return e(t(r))}}var wh=fa(Object.keys,Object);const Eh=wh;var Sh=Object.prototype,xh=Sh.hasOwnProperty;function Th(e){if(!Di(e))return Eh(e);var t=[];for(var r in Object(e))xh.call(e,r)&&r!="constructor"&&t.push(r);return t}function rn(e){return ur(e)?la(e):Th(e)}function Oh(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var $h=Object.prototype,Ah=$h.hasOwnProperty;function Rh(e){if(!ct(e))return Oh(e);var t=Di(e),r=[];for(var n in e)n=="constructor"&&(t||!Ah.call(e,n))||r.push(n);return r}function Pi(e){return ur(e)?la(e,!0):Rh(e)}var jh=oa(function(e,t,r,n){na(t,Pi(t),e,n)});const Is=jh;var Dh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ch=/^\w*$/;function Ni(e,t){if(dt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||cr(e)?!0:Ch.test(e)||!Dh.test(e)||t!=null&&e in Object(t)}var Ph=fe(Object,"create");const er=Ph;function Nh(){this.__data__=er?er(null):{},this.size=0}function Bh(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var kh="__lodash_hash_undefined__",Mh=Object.prototype,Ih=Mh.hasOwnProperty;function Fh(e){var t=this.__data__;if(er){var r=t[e];return r===kh?void 0:r}return Ih.call(t,e)?t[e]:void 0}var Lh=Object.prototype,Vh=Lh.hasOwnProperty;function Uh(e){var t=this.__data__;return er?t[e]!==void 0:Vh.call(t,e)}var Hh="__lodash_hash_undefined__";function zh(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=er&&t===void 0?Hh:t,this}function te(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])}}te.prototype.clear=Nh,te.prototype.delete=Bh,te.prototype.get=Fh,te.prototype.has=Uh,te.prototype.set=zh;function qh(){this.__data__=[],this.size=0}function nn(e,t){for(var r=e.length;r--;)if(Ne(e[r][0],t))return r;return-1}var Kh=Array.prototype,Jh=Kh.splice;function Wh(e){var t=this.__data__,r=nn(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Jh.call(t,r,1),--this.size,!0}function Yh(e){var t=this.__data__,r=nn(t,e);return r<0?void 0:t[r][1]}function Gh(e){return nn(this.__data__,e)>-1}function Zh(e,t){var r=this.__data__,n=nn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Mt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Mt.prototype.clear=qh,Mt.prototype.delete=Wh,Mt.prototype.get=Yh,Mt.prototype.has=Gh,Mt.prototype.set=Zh;var Xh=fe(At,"Map");const rr=Xh;function Qh(){this.size=0,this.__data__={hash:new te,map:new(rr||Mt),string:new te}}function td(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function sn(e,t){var r=e.__data__;return td(t)?r[typeof t=="string"?"string":"hash"]:r.map}function ed(e){var t=sn(this,e).delete(e);return this.size-=t?1:0,t}function rd(e){return sn(this,e).get(e)}function nd(e){return sn(this,e).has(e)}function id(e,t){var r=sn(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=Qh,It.prototype.delete=ed,It.prototype.get=rd,It.prototype.has=nd,It.prototype.set=id;var sd="Expected a function";function Bi(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(sd);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(Bi.Cache||It),r}Bi.Cache=It;var od=500;function ad(e){var t=Bi(e,function(n){return r.size===od&&r.clear(),n}),r=t.cache;return t}var cd=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ud=/\\(\\)?/g,ld=ad(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(cd,function(r,n,i,s){t.push(i?s.replace(ud,"$1"):n||r)}),t});const fd=ld;function he(e){return e==null?"":ea(e)}function ki(e,t){return dt(e)?e:Ni(e,t)?[e]:fd(he(e))}function fr(e){if(typeof e=="string"||cr(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function ha(e,t){t=ki(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[fr(t[r++])];return r&&r==n?e:void 0}function da(e,t,r){var n=e==null?void 0:ha(e,t);return n===void 0?r:n}function hd(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var dd=fa(Object.getPrototypeOf,Object);const pa=dd;var pd="[object Object]",md=Function.prototype,gd=Object.prototype,ma=md.toString,vd=gd.hasOwnProperty,yd=ma.call(Object);function Mi(e){if(!at(e)||Et(e)!=pd)return!1;var t=pa(e);if(t===null)return!0;var r=vd.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&ma.call(r)==yd}var bd="[object DOMException]",_d="[object Error]";function ga(e){if(!at(e))return!1;var t=Et(e);return t==_d||t==bd||typeof e.message=="string"&&typeof e.name=="string"&&!Mi(e)}var wd=ia(function(e,t){try{return ra(e,void 0,t)}catch(r){return ga(r)?r:new Error(r)}});const Ed=wd;function Sd(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 xd(e,t,r){var n=e.length;return r=r===void 0?n:r,Sd(e,t,r)}var Td="\\ud800-\\udfff",Od="\\u0300-\\u036f",$d="\\ufe20-\\ufe2f",Ad="\\u20d0-\\u20ff",Rd=Od+$d+Ad,jd="\\ufe0e\\ufe0f",Dd="\\u200d",Cd=RegExp("["+Dd+Td+Rd+jd+"]");function va(e){return Cd.test(e)}function Pd(e){return e.split("")}var ya="\\ud800-\\udfff",Nd="\\u0300-\\u036f",Bd="\\ufe20-\\ufe2f",kd="\\u20d0-\\u20ff",Md=Nd+Bd+kd,Id="\\ufe0e\\ufe0f",Fd="["+ya+"]",Jn="["+Md+"]",Wn="\\ud83c[\\udffb-\\udfff]",Ld="(?:"+Jn+"|"+Wn+")",ba="[^"+ya+"]",_a="(?:\\ud83c[\\udde6-\\uddff]){2}",wa="[\\ud800-\\udbff][\\udc00-\\udfff]",Vd="\\u200d",Ea=Ld+"?",Sa="["+Id+"]?",Ud="(?:"+Vd+"(?:"+[ba,_a,wa].join("|")+")"+Sa+Ea+")*",Hd=Sa+Ea+Ud,zd="(?:"+[ba+Jn+"?",Jn,_a,wa,Fd].join("|")+")",qd=RegExp(Wn+"(?="+Wn+")|"+zd+Hd,"g");function Kd(e){return e.match(qd)||[]}function Jd(e){return va(e)?Kd(e):Pd(e)}function xa(e){return function(t){t=he(t);var r=va(t)?Jd(t):void 0,n=r?r[0]:t.charAt(0),i=r?xd(r,1).join(""):t.slice(1);return n[e]()+i}}var Wd=xa("toUpperCase");const on=Wd;function Yd(e){return on(he(e).toLowerCase())}function Gd(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 Ta(e){return function(t){return e==null?void 0:e[t]}}var Zd={À:"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"},Xd=Ta(Zd);const Qd=Xd;var tp=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ep="\\u0300-\\u036f",rp="\\ufe20-\\ufe2f",np="\\u20d0-\\u20ff",ip=ep+rp+np,sp="["+ip+"]",op=RegExp(sp,"g");function ap(e){return e=he(e),e&&e.replace(tp,Qd).replace(op,"")}var cp=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function up(e){return e.match(cp)||[]}var lp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function fp(e){return lp.test(e)}var Oa="\\ud800-\\udfff",hp="\\u0300-\\u036f",dp="\\ufe20-\\ufe2f",pp="\\u20d0-\\u20ff",mp=hp+dp+pp,$a="\\u2700-\\u27bf",Aa="a-z\\xdf-\\xf6\\xf8-\\xff",gp="\\xac\\xb1\\xd7\\xf7",vp="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",yp="\\u2000-\\u206f",bp=" \\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",Ra="A-Z\\xc0-\\xd6\\xd8-\\xde",_p="\\ufe0e\\ufe0f",ja=gp+vp+yp+bp,Da="['’]",Fs="["+ja+"]",wp="["+mp+"]",Ca="\\d+",Ep="["+$a+"]",Pa="["+Aa+"]",Na="[^"+Oa+ja+Ca+$a+Aa+Ra+"]",Sp="\\ud83c[\\udffb-\\udfff]",xp="(?:"+wp+"|"+Sp+")",Tp="[^"+Oa+"]",Ba="(?:\\ud83c[\\udde6-\\uddff]){2}",ka="[\\ud800-\\udbff][\\udc00-\\udfff]",ye="["+Ra+"]",Op="\\u200d",Ls="(?:"+Pa+"|"+Na+")",$p="(?:"+ye+"|"+Na+")",Vs="(?:"+Da+"(?:d|ll|m|re|s|t|ve))?",Us="(?:"+Da+"(?:D|LL|M|RE|S|T|VE))?",Ma=xp+"?",Ia="["+_p+"]?",Ap="(?:"+Op+"(?:"+[Tp,Ba,ka].join("|")+")"+Ia+Ma+")*",Rp="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",jp="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Dp=Ia+Ma+Ap,Cp="(?:"+[Ep,Ba,ka].join("|")+")"+Dp,Pp=RegExp([ye+"?"+Pa+"+"+Vs+"(?="+[Fs,ye,"$"].join("|")+")",$p+"+"+Us+"(?="+[Fs,ye+Ls,"$"].join("|")+")",ye+"?"+Ls+"+"+Vs,ye+"+"+Us,jp,Rp,Ca,Cp].join("|"),"g");function Np(e){return e.match(Pp)||[]}function Bp(e,t,r){return e=he(e),t=t,t===void 0?fp(e)?Np(e):up(e):e.match(t)||[]}var kp="['’]",Mp=RegExp(kp,"g");function Ii(e){return function(t){return Gd(Bp(ap(t).replace(Mp,"")),e,"")}}var Ip=Ii(function(e,t,r){return t=t.toLowerCase(),e+(r?Yd(t):t)});const Bt=Ip;function Fp(){this.__data__=new Mt,this.size=0}function Lp(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Vp(e){return this.__data__.get(e)}function Up(e){return this.__data__.has(e)}var Hp=200;function zp(e,t){var r=this.__data__;if(r instanceof Mt){var n=r.__data__;if(!rr||n.length<Hp-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 $t(e){var t=this.__data__=new Mt(e);this.size=t.size}$t.prototype.clear=Fp,$t.prototype.delete=Lp,$t.prototype.get=Vp,$t.prototype.has=Up,$t.prototype.set=zp;var Fa=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Hs=Fa&&typeof module=="object"&&module&&!module.nodeType&&module,qp=Hs&&Hs.exports===Fa,zs=qp?At.Buffer:void 0,qs=zs?zs.allocUnsafe:void 0;function La(e,t){if(t)return e.slice();var r=e.length,n=qs?qs(r):new e.constructor(r);return e.copy(n),n}function Kp(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 Jp(){return[]}var Wp=Object.prototype,Yp=Wp.propertyIsEnumerable,Ks=Object.getOwnPropertySymbols,Gp=Ks?function(e){return e==null?[]:(e=Object(e),Kp(Ks(e),function(t){return Yp.call(e,t)}))}:Jp;const Zp=Gp;function Xp(e,t,r){var n=t(e);return dt(e)?n:hd(n,r(e))}function Yn(e){return Xp(e,rn,Zp)}var Qp=fe(At,"DataView");const Gn=Qp;var tm=fe(At,"Promise");const Zn=tm;var em=fe(At,"Set");const Xn=em;var Js="[object Map]",rm="[object Object]",Ws="[object Promise]",Ys="[object Set]",Gs="[object WeakMap]",Zs="[object DataView]",nm=le(Gn),im=le(rr),sm=le(Zn),om=le(Xn),am=le(Kn),Xt=Et;(Gn&&Xt(new Gn(new ArrayBuffer(1)))!=Zs||rr&&Xt(new rr)!=Js||Zn&&Xt(Zn.resolve())!=Ws||Xn&&Xt(new Xn)!=Ys||Kn&&Xt(new Kn)!=Gs)&&(Xt=function(e){var t=Et(e),r=t==rm?e.constructor:void 0,n=r?le(r):"";if(n)switch(n){case nm:return Zs;case im:return Js;case sm:return Ws;case om:return Ys;case am:return Gs}return t});const nr=Xt;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 fm=At.Uint8Array;const zr=fm;function Fi(e){var t=new e.constructor(e.byteLength);return new zr(t).set(new zr(e)),t}function hm(e,t){var r=Fi(e.buffer);return new e.constructor(r,e.byteOffset,e.byteLength)}var dm=/\w*$/;function pm(e){var t=new e.constructor(e.source,dm.exec(e));return t.lastIndex=e.lastIndex,t}var Xs=Ct?Ct.prototype:void 0,Qs=Xs?Xs.valueOf:void 0;function mm(e){return Qs?Object(Qs.call(e)):{}}function Va(e,t){var r=t?Fi(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]",$m="[object Float64Array]",Am="[object Int8Array]",Rm="[object Int16Array]",jm="[object Int32Array]",Dm="[object Uint8Array]",Cm="[object Uint8ClampedArray]",Pm="[object Uint16Array]",Nm="[object Uint32Array]";function Bm(e,t,r){var n=e.constructor;switch(t){case xm:return Fi(e);case gm:case vm:return new n(+e);case Tm:return hm(e);case Om:case $m:case Am:case Rm:case jm:case Dm:case Cm:case Pm:case Nm:return Va(e,r);case ym:return new n;case bm:case Em:return new n(e);case _m:return pm(e);case wm:return new n;case Sm:return mm(e)}}function Ua(e){return typeof e.constructor=="function"&&!Di(e)?mf(pa(e)):{}}var km="[object Map]";function Mm(e){return at(e)&&nr(e)==km}var to=Pt&&Pt.isMap,Im=to?lr(to):Mm;const Fm=Im;var Lm="[object Set]";function Vm(e){return at(e)&&nr(e)==Lm}var eo=Pt&&Pt.isSet,Um=eo?lr(eo):Vm;const Hm=Um;var zm=1,Ha="[object Arguments]",qm="[object Array]",Km="[object Boolean]",Jm="[object Date]",Wm="[object Error]",za="[object Function]",Ym="[object GeneratorFunction]",Gm="[object Map]",Zm="[object Number]",qa="[object Object]",Xm="[object RegExp]",Qm="[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]",fg="[object Uint8ClampedArray]",hg="[object Uint16Array]",dg="[object Uint32Array]",X={};X[Ha]=X[qm]=X[ng]=X[ig]=X[Km]=X[Jm]=X[sg]=X[og]=X[ag]=X[cg]=X[ug]=X[Gm]=X[Zm]=X[qa]=X[Xm]=X[Qm]=X[tg]=X[eg]=X[lg]=X[fg]=X[hg]=X[dg]=!0,X[Wm]=X[za]=X[rg]=!1;function Ar(e,t,r,n,i,s){var o,a=t&zm;if(o!==void 0)return o;if(!ct(e))return e;var u=dt(e);if(u)o=lm(e);else{var c=nr(e),l=c==za||c==Ym;if(Ae(e))return La(e,a);if(c==qa||c==Ha||l&&!i)o=l?{}:Ua(e);else{if(!X[c])return i?e:{};o=Bm(e,c,a)}}s||(s=new $t);var f=s.get(e);if(f)return f;s.set(e,o),Hm(e)?e.forEach(function(m){o.add(Ar(m,t,r,m,e,s))}):Fm(e)&&e.forEach(function(m,p){o.set(p,Ar(m,t,r,p,e,s))});var d=Yn,h=u?void 0:d(e);return Af(h||e,function(m,p){h&&(p=m,m=e[p]),Ri(o,p,Ar(m,t,r,p,e,s))}),o}var pg=1,mg=4;function ae(e){return Ar(e,pg|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 Rr(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new It;++t<r;)this.add(e[t])}Rr.prototype.add=Rr.prototype.push=vg,Rr.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 Ka(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 f=-1,d=!0,h=r&Eg?new Rr:void 0;for(s.set(e,t),s.set(t,e);++f<a;){var m=e[f],p=t[f];if(n)var b=o?n(p,m,f,t,e,s):n(m,p,f,e,t,s);if(b!==void 0){if(b)continue;d=!1;break}if(h){if(!bg(t,function(E,g){if(!_g(h,g)&&(m===E||i(m,E,r,n,s)))return h.push(g)})){d=!1;break}}else if(!(m===p||i(m,p,r,n,s))){d=!1;break}}return s.delete(e),s.delete(t),d}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,$g="[object Boolean]",Ag="[object Date]",Rg="[object Error]",jg="[object Map]",Dg="[object Number]",Cg="[object RegExp]",Pg="[object Set]",Ng="[object String]",Bg="[object Symbol]",kg="[object ArrayBuffer]",Mg="[object DataView]",ro=Ct?Ct.prototype:void 0,An=ro?ro.valueOf:void 0;function Ig(e,t,r,n,i,s,o){switch(r){case Mg:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case kg:return!(e.byteLength!=t.byteLength||!s(new zr(e),new zr(t)));case $g:case Ag:case Dg:return Ne(+e,+t);case Rg:return e.name==t.name&&e.message==t.message;case Cg:case Ng:return e==t+"";case jg:var a=Sg;case Pg: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=Ka(a(e),a(t),n,i,s,o);return o.delete(e),l;case Bg:if(An)return An.call(e)==An.call(t)}return!1}var Fg=1,Lg=Object.prototype,Vg=Lg.hasOwnProperty;function Ug(e,t,r,n,i,s){var o=r&Fg,a=Yn(e),u=a.length,c=Yn(t),l=c.length;if(u!=l&&!o)return!1;for(var f=u;f--;){var d=a[f];if(!(o?d in t:Vg.call(t,d)))return!1}var h=s.get(e),m=s.get(t);if(h&&m)return h==t&&m==e;var p=!0;s.set(e,t),s.set(t,e);for(var b=o;++f<u;){d=a[f];var E=e[d],g=t[d];if(n)var y=o?n(g,E,d,t,e,s):n(E,g,d,e,t,s);if(!(y===void 0?E===g||i(E,g,r,n,s):y)){p=!1;break}b||(b=d=="constructor")}if(p&&!b){var _=e.constructor,S=t.constructor;_!=S&&"constructor"in e&&"constructor"in t&&!(typeof _=="function"&&_ instanceof _&&typeof S=="function"&&S instanceof S)&&(p=!1)}return s.delete(e),s.delete(t),p}var Hg=1,no="[object Arguments]",io="[object Array]",vr="[object Object]",zg=Object.prototype,so=zg.hasOwnProperty;function qg(e,t,r,n,i,s){var o=dt(e),a=dt(t),u=o?io:nr(e),c=a?io:nr(t);u=u==no?vr:u,c=c==no?vr:c;var l=u==vr,f=c==vr,d=u==c;if(d&&Ae(e)){if(!Ae(t))return!1;o=!0,l=!1}if(d&&!l)return s||(s=new $t),o||Ci(e)?Ka(e,t,r,n,i,s):Ig(e,t,u,r,n,i,s);if(!(r&Hg)){var h=l&&so.call(e,"__wrapped__"),m=f&&so.call(t,"__wrapped__");if(h||m){var p=h?e.value():e,b=m?t.value():t;return s||(s=new $t),i(p,b,r,n,s)}}return d?(s||(s=new $t),Ug(e,t,r,n,i,s)):!1}function an(e,t,r,n,i){return e===t?!0:e==null||t==null||!at(e)&&!at(t)?e!==e&&t!==t:qg(e,t,r,n,an,i)}var Kg=1,Jg=2;function Wg(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 $t,f;if(!(f===void 0?an(c,u,Kg|Jg,n,l):f))return!1}}return!0}function Ja(e){return e===e&&!ct(e)}function Yg(e){for(var t=rn(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,Ja(i)]}return t}function Wa(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function Gg(e){var t=Yg(e);return t.length==1&&t[0][2]?Wa(t[0][0],t[0][1]):function(r){return r===e||Wg(r,e,t)}}function Zg(e,t){return e!=null&&t in Object(e)}function Xg(e,t,r){t=ki(t,e);for(var n=-1,i=t.length,s=!1;++n<i;){var o=fr(t[n]);if(!(s=e!=null&&r(e,o)))break;e=e[o]}return s||++n!=i?s:(i=e==null?0:e.length,!!i&&ji(i)&&tn(o,i)&&(dt(e)||Hr(e)))}function Qg(e,t){return e!=null&&Xg(e,t,Zg)}var tv=1,ev=2;function rv(e,t){return Ni(e)&&Ja(t)?Wa(fr(e),t):function(r){var n=da(r,e);return n===void 0&&n===t?Qg(r,e):an(t,n,tv|ev)}}function nv(e){return function(t){return t==null?void 0:t[e]}}function iv(e){return function(t){return ha(t,e)}}function sv(e){return Ni(e)?nv(fr(e)):iv(e)}function ov(e){return typeof e=="function"?e:e==null?Ai:typeof e=="object"?dt(e)?rv(e[0],e[1]):Gg(e):sv(e)}function av(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 cv(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 uv=cv();const Ya=uv;function lv(e,t){return e&&Ya(e,t,rn)}function fv(e,t){return function(r,n){if(r==null)return r;if(!ur(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 hv=fv(lv);const dv=hv;function pv(e,t,r,n){return dv(e,function(i,s,o){t(n,i,r(i),o)}),n}function mv(e,t){return function(r,n){var i=dt(r)?av:pv,s={};return i(r,e,ov(n),s)}}var gv=function(){return At.Date.now()};const Rn=gv;var vv="Expected a function",yv=Math.max,bv=Math.min;function Li(e,t,r){var n,i,s,o,a,u,c=0,l=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(vv);t=js(t)||0,ct(r)&&(l=!!r.leading,f="maxWait"in r,s=f?yv(js(r.maxWait)||0,t):s,d="trailing"in r?!!r.trailing:d);function h(v){var x=n,$=i;return n=i=void 0,c=v,o=e.apply($,x),o}function m(v){return c=v,a=setTimeout(E,t),l?h(v):o}function p(v){var x=v-u,$=v-c,V=t-x;return f?bv(V,s-$):V}function b(v){var x=v-u,$=v-c;return u===void 0||x>=t||x<0||f&&$>=s}function E(){var v=Rn();if(b(v))return g(v);a=setTimeout(E,p(v))}function g(v){return a=void 0,d&&n?h(v):(n=i=void 0,o)}function y(){a!==void 0&&clearTimeout(a),c=0,n=u=i=a=void 0}function _(){return a===void 0?o:g(Rn())}function S(){var v=Rn(),x=b(v);if(n=arguments,i=this,u=v,x){if(a===void 0)return m(u);if(f)return clearTimeout(a),a=setTimeout(E,t),h(u)}return a===void 0&&(a=setTimeout(E,t)),o}return S.cancel=y,S.flush=_,S}function Qn(e,t,r){(r!==void 0&&!Ne(e[t],r)||r===void 0&&!(t in e))&&en(e,t,r)}function _v(e){return at(e)&&ur(e)}function ti(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function wv(e){return na(e,Pi(e))}function Ev(e,t,r,n,i,s,o){var a=ti(e,r),u=ti(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,f=l===void 0;if(f){var d=dt(u),h=!d&&Ae(u),m=!d&&!h&&Ci(u);l=u,d||h||m?dt(a)?l=a:_v(a)?l=vf(a):h?(f=!1,l=La(u,!0)):m?(f=!1,l=Va(u,!0)):l=[]:Mi(u)||Hr(u)?(l=a,Hr(a)?l=wv(a):(!ct(a)||oe(a))&&(l=Ua(u))):f=!1}f&&(o.set(u,l),i(l,u,n,s,o),o.delete(u)),Qn(e,r,l)}function Ga(e,t,r,n,i){e!==t&&Ya(t,function(s,o){if(i||(i=new $t),ct(s))Ev(e,t,o,r,Ga,n,i);else{var a=n?n(ti(e,o),s,o+"",e,t,i):void 0;a===void 0&&(a=s),Qn(e,o,a)}},Pi)}var Sv={"&":"&","<":"<",">":">",'"':""","'":"'"},xv=Ta(Sv);const Tv=xv;var Za=/[&<>"']/g,Ov=RegExp(Za.source);function $v(e){return e=he(e),e&&Ov.test(e)?e.replace(Za,Tv):e}var Av=Object.prototype,Rv=Av.hasOwnProperty,jv=mv(function(e,t,r){Rv.call(e,r)?e[r].push(t):en(e,r,[t])});const Xa=jv;var Dv="[object String]";function bt(e){return typeof e=="string"||!dt(e)&&at(e)&&Et(e)==Dv}function Cv(e,t){return ta(t,function(r){return e[r]})}var Pv="[object ArrayBuffer]";function Nv(e){return at(e)&&Et(e)==Pv}var oo=Pt&&Pt.isArrayBuffer,Bv=oo?lr(oo):Nv;const kv=Bv;var Mv="[object Boolean]";function Iv(e){return e===!0||e===!1||at(e)&&Et(e)==Mv}var Fv="[object Date]";function Lv(e){return at(e)&&Et(e)==Fv}var ao=Pt&&Pt.isDate,Vv=ao?lr(ao):Lv;const Uv=Vv;function Hv(e,t){return an(e,t)}var zv="[object Number]";function Qa(e){return typeof e=="number"||at(e)&&Et(e)==zv}function qv(e){return Qa(e)&&e!=+e}function Kv(e){return e===null}function Jv(e){return e===void 0}var Wv=Ii(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()});const Yv=Wv;var Gv=xa("toLowerCase");const Zv=Gv;var Xv=oa(function(e,t,r){Ga(e,t,r)});const Dt=Xv;function Qv(e,t,r,n){if(!ct(e))return e;t=ki(t,e);for(var i=-1,s=t.length,o=s-1,a=e;a!=null&&++i<s;){var u=fr(t[i]),c=r;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(i!=o){var l=a[u];c=void 0,c===void 0&&(c=ct(l)?l:tn(t[i+1])?[]:{})}Ri(a,u,c),a=a[u]}return e}function ty(e,t,r){return e==null?e:Qv(e,t,r)}var ey=Ii(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});const ry=ey;var tc=Object.prototype,ny=tc.hasOwnProperty;function co(e,t,r,n){return e===void 0||Ne(e,tc[r])&&!ny.call(n,r)?t:e}var iy={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function sy(e){return"\\"+iy[e]}var oy=/<%=([\s\S]+?)%>/g;const ec=oy;var ay=/<%-([\s\S]+?)%>/g;const cy=ay;var uy=/<%([\s\S]+?)%>/g;const ly=uy;var fy={escape:cy,evaluate:ly,interpolate:ec,variable:"",imports:{_:{escape:$v}}};const uo=fy;var hy="Invalid `variable` option passed into `_.template`",dy=/\b__p \+= '';/g,py=/\b(__p \+=) '' \+/g,my=/(__e\(.*?\)|\b__t\)) \+\n'';/g,gy=/[()=,{}\[\]\/\s]/,vy=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,yr=/($^)/,yy=/['\n\r\u2028\u2029\\]/g,by=Object.prototype,lo=by.hasOwnProperty;function rc(e,t,r){var n=uo.imports._.templateSettings||uo;r&&sa(e,t,r)&&(t=void 0),e=he(e),t=Is({},t,n,co);var i=Is({},t.imports,n.imports,co),s=rn(i),o=Cv(i,s),a,u,c=0,l=t.interpolate||yr,f="__p += '",d=RegExp((t.escape||yr).source+"|"+l.source+"|"+(l===ec?vy:yr).source+"|"+(t.evaluate||yr).source+"|$","g"),h=lo.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+`
|
|
3
|
-
`:"";e.replace(d,function(b,E,g,y,_,S){return g||(g=y),f+=e.slice(c,S).replace(yy,sy),E&&(a=!0,f+=`' +
|
|
4
|
-
__e(`+E+`) +
|
|
5
|
-
'`),_&&(u=!0,f+=`';
|
|
6
|
-
`+_+`;
|
|
7
|
-
__p += '`),g&&(f+=`' +
|
|
8
|
-
((__t = (`+g+`)) == null ? '' : __t) +
|
|
9
|
-
'`),c=S+b.length,b}),f+=`';
|
|
10
|
-
`;var m=lo.call(t,"variable")&&t.variable;if(!m)f=`with (obj) {
|
|
11
|
-
`+f+`
|
|
12
|
-
}
|
|
13
|
-
`;else if(gy.test(m))throw new Error(hy);f=(u?f.replace(dy,""):f).replace(py,"$1").replace(my,"$1;"),f="function("+(m||"obj")+`) {
|
|
14
|
-
`+(m?"":`obj || (obj = {});
|
|
15
|
-
`)+"var __t, __p = ''"+(a?", __e = _.escape":"")+(u?`, __j = Array.prototype.join;
|
|
16
|
-
function print() { __p += __j.call(arguments, '') }
|
|
17
|
-
`:`;
|
|
18
|
-
`)+f+`return __p
|
|
19
|
-
}`;var p=Ed(function(){return Function(s,h+"return "+f).apply(void 0,o)});if(p.source=f,ga(p))throw p;return p}var _y="Expected a function";function nc(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(_y);return ct(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Li(e,t,{leading:n,maxWait:t,trailing:i})}function ei(e){return on(Bt(e))}var ft=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Be(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ic={exports:{}};function wy(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var fo={exports:{}},ho;function Jt(){return ho||(ho=1,function(e,t){(function(r,n){e.exports=n()})(ft,function(){var r=r||function(n,i){var s;if(typeof window<"u"&&window.crypto&&(s=window.crypto),typeof self<"u"&&self.crypto&&(s=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(s=globalThis.crypto),!s&&typeof window<"u"&&window.msCrypto&&(s=window.msCrypto),!s&&typeof ft<"u"&&ft.crypto&&(s=ft.crypto),!s&&typeof wy=="function")try{s=require("crypto")}catch(g){}var o=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch(g){}if(typeof s.randomBytes=="function")try{return s.randomBytes(4).readInt32LE()}catch(g){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function g(){}return function(y){var _;return g.prototype=y,_=new g,g.prototype=null,_}}(),u={},c=u.lib={},l=c.Base=function(){return{extend:function(g){var y=a(this);return g&&y.mixIn(g),(!y.hasOwnProperty("init")||this.init===y.init)&&(y.init=function(){y.$super.init.apply(this,arguments)}),y.init.prototype=y,y.$super=this,y},create:function(){var g=this.extend();return g.init.apply(g,arguments),g},init:function(){},mixIn:function(g){for(var y in g)g.hasOwnProperty(y)&&(this[y]=g[y]);g.hasOwnProperty("toString")&&(this.toString=g.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),f=c.WordArray=l.extend({init:function(g,y){g=this.words=g||[],y!=i?this.sigBytes=y:this.sigBytes=g.length*4},toString:function(g){return(g||h).stringify(this)},concat:function(g){var y=this.words,_=g.words,S=this.sigBytes,v=g.sigBytes;if(this.clamp(),S%4)for(var x=0;x<v;x++){var $=_[x>>>2]>>>24-x%4*8&255;y[S+x>>>2]|=$<<24-(S+x)%4*8}else for(var V=0;V<v;V+=4)y[S+V>>>2]=_[V>>>2];return this.sigBytes+=v,this},clamp:function(){var g=this.words,y=this.sigBytes;g[y>>>2]&=4294967295<<32-y%4*8,g.length=n.ceil(y/4)},clone:function(){var g=l.clone.call(this);return g.words=this.words.slice(0),g},random:function(g){for(var y=[],_=0;_<g;_+=4)y.push(o());return new f.init(y,g)}}),d=u.enc={},h=d.Hex={stringify:function(g){for(var y=g.words,_=g.sigBytes,S=[],v=0;v<_;v++){var x=y[v>>>2]>>>24-v%4*8&255;S.push((x>>>4).toString(16)),S.push((x&15).toString(16))}return S.join("")},parse:function(g){for(var y=g.length,_=[],S=0;S<y;S+=2)_[S>>>3]|=parseInt(g.substr(S,2),16)<<24-S%8*4;return new f.init(_,y/2)}},m=d.Latin1={stringify:function(g){for(var y=g.words,_=g.sigBytes,S=[],v=0;v<_;v++){var x=y[v>>>2]>>>24-v%4*8&255;S.push(String.fromCharCode(x))}return S.join("")},parse:function(g){for(var y=g.length,_=[],S=0;S<y;S++)_[S>>>2]|=(g.charCodeAt(S)&255)<<24-S%4*8;return new f.init(_,y)}},p=d.Utf8={stringify:function(g){try{return decodeURIComponent(escape(m.stringify(g)))}catch(y){throw new Error("Malformed UTF-8 data")}},parse:function(g){return m.parse(unescape(encodeURIComponent(g)))}},b=c.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(g){typeof g=="string"&&(g=p.parse(g)),this._data.concat(g),this._nDataBytes+=g.sigBytes},_process:function(g){var y,_=this._data,S=_.words,v=_.sigBytes,x=this.blockSize,$=x*4,V=v/$;g?V=n.ceil(V):V=n.max((V|0)-this._minBufferSize,0);var w=V*x,T=n.min(w*4,v);if(w){for(var F=0;F<w;F+=x)this._doProcessBlock(S,F);y=S.splice(0,w),_.sigBytes-=T}return new f.init(y,T)},clone:function(){var g=l.clone.call(this);return g._data=this._data.clone(),g},_minBufferSize:0});c.Hasher=b.extend({cfg:l.extend(),init:function(g){this.cfg=this.cfg.extend(g),this.reset()},reset:function(){b.reset.call(this),this._doReset()},update:function(g){return this._append(g),this._process(),this},finalize:function(g){g&&this._append(g);var y=this._doFinalize();return y},blockSize:16,_createHelper:function(g){return function(y,_){return new g.init(_).finalize(y)}},_createHmacHelper:function(g){return function(y,_){return new E.HMAC.init(g,_).finalize(y)}}});var E=u.algo={};return u}(Math);return r})}(fo)),fo.exports}(function(e,t){(function(r,n){e.exports=n(Jt())})(ft,function(r){return function(n){var i=r,s=i.lib,o=s.WordArray,a=s.Hasher,u=i.algo,c=[];(function(){for(var p=0;p<64;p++)c[p]=n.abs(n.sin(p+1))*4294967296|0})();var l=u.MD5=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(p,b){for(var E=0;E<16;E++){var g=b+E,y=p[g];p[g]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360}var _=this._hash.words,S=p[b+0],v=p[b+1],x=p[b+2],$=p[b+3],V=p[b+4],w=p[b+5],T=p[b+6],F=p[b+7],C=p[b+8],M=p[b+9],D=p[b+10],N=p[b+11],H=p[b+12],U=p[b+13],q=p[b+14],K=p[b+15],R=_[0],P=_[1],B=_[2],k=_[3];R=f(R,P,B,k,S,7,c[0]),k=f(k,R,P,B,v,12,c[1]),B=f(B,k,R,P,x,17,c[2]),P=f(P,B,k,R,$,22,c[3]),R=f(R,P,B,k,V,7,c[4]),k=f(k,R,P,B,w,12,c[5]),B=f(B,k,R,P,T,17,c[6]),P=f(P,B,k,R,F,22,c[7]),R=f(R,P,B,k,C,7,c[8]),k=f(k,R,P,B,M,12,c[9]),B=f(B,k,R,P,D,17,c[10]),P=f(P,B,k,R,N,22,c[11]),R=f(R,P,B,k,H,7,c[12]),k=f(k,R,P,B,U,12,c[13]),B=f(B,k,R,P,q,17,c[14]),P=f(P,B,k,R,K,22,c[15]),R=d(R,P,B,k,v,5,c[16]),k=d(k,R,P,B,T,9,c[17]),B=d(B,k,R,P,N,14,c[18]),P=d(P,B,k,R,S,20,c[19]),R=d(R,P,B,k,w,5,c[20]),k=d(k,R,P,B,D,9,c[21]),B=d(B,k,R,P,K,14,c[22]),P=d(P,B,k,R,V,20,c[23]),R=d(R,P,B,k,M,5,c[24]),k=d(k,R,P,B,q,9,c[25]),B=d(B,k,R,P,$,14,c[26]),P=d(P,B,k,R,C,20,c[27]),R=d(R,P,B,k,U,5,c[28]),k=d(k,R,P,B,x,9,c[29]),B=d(B,k,R,P,F,14,c[30]),P=d(P,B,k,R,H,20,c[31]),R=h(R,P,B,k,w,4,c[32]),k=h(k,R,P,B,C,11,c[33]),B=h(B,k,R,P,N,16,c[34]),P=h(P,B,k,R,q,23,c[35]),R=h(R,P,B,k,v,4,c[36]),k=h(k,R,P,B,V,11,c[37]),B=h(B,k,R,P,F,16,c[38]),P=h(P,B,k,R,D,23,c[39]),R=h(R,P,B,k,U,4,c[40]),k=h(k,R,P,B,S,11,c[41]),B=h(B,k,R,P,$,16,c[42]),P=h(P,B,k,R,T,23,c[43]),R=h(R,P,B,k,M,4,c[44]),k=h(k,R,P,B,H,11,c[45]),B=h(B,k,R,P,K,16,c[46]),P=h(P,B,k,R,x,23,c[47]),R=m(R,P,B,k,S,6,c[48]),k=m(k,R,P,B,F,10,c[49]),B=m(B,k,R,P,q,15,c[50]),P=m(P,B,k,R,w,21,c[51]),R=m(R,P,B,k,H,6,c[52]),k=m(k,R,P,B,$,10,c[53]),B=m(B,k,R,P,D,15,c[54]),P=m(P,B,k,R,v,21,c[55]),R=m(R,P,B,k,C,6,c[56]),k=m(k,R,P,B,K,10,c[57]),B=m(B,k,R,P,T,15,c[58]),P=m(P,B,k,R,U,21,c[59]),R=m(R,P,B,k,V,6,c[60]),k=m(k,R,P,B,N,10,c[61]),B=m(B,k,R,P,x,15,c[62]),P=m(P,B,k,R,M,21,c[63]),_[0]=_[0]+R|0,_[1]=_[1]+P|0,_[2]=_[2]+B|0,_[3]=_[3]+k|0},_doFinalize:function(){var p=this._data,b=p.words,E=this._nDataBytes*8,g=p.sigBytes*8;b[g>>>5]|=128<<24-g%32;var y=n.floor(E/4294967296),_=E;b[(g+64>>>9<<4)+15]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,b[(g+64>>>9<<4)+14]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,p.sigBytes=(b.length+1)*4,this._process();for(var S=this._hash,v=S.words,x=0;x<4;x++){var $=v[x];v[x]=($<<8|$>>>24)&16711935|($<<24|$>>>8)&4278255360}return S},clone:function(){var p=a.clone.call(this);return p._hash=this._hash.clone(),p}});function f(p,b,E,g,y,_,S){var v=p+(b&E|~b&g)+y+S;return(v<<_|v>>>32-_)+b}function d(p,b,E,g,y,_,S){var v=p+(b&g|E&~g)+y+S;return(v<<_|v>>>32-_)+b}function h(p,b,E,g,y,_,S){var v=p+(b^E^g)+y+S;return(v<<_|v>>>32-_)+b}function m(p,b,E,g,y,_,S){var v=p+(E^(b|~g))+y+S;return(v<<_|v>>>32-_)+b}i.MD5=a._createHelper(l),i.HmacMD5=a._createHmacHelper(l)}(Math),r.MD5})})(ic);var sc=ic.exports;const Ey=Be(sc);var oc={exports:{}};(function(e,t){(function(r,n){e.exports=n(Jt())})(ft,function(r){return function(){var n=r,i=n.lib,s=i.WordArray,o=n.enc;o.Base64={stringify:function(u){var c=u.words,l=u.sigBytes,f=this._map;u.clamp();for(var d=[],h=0;h<l;h+=3)for(var m=c[h>>>2]>>>24-h%4*8&255,p=c[h+1>>>2]>>>24-(h+1)%4*8&255,b=c[h+2>>>2]>>>24-(h+2)%4*8&255,E=m<<16|p<<8|b,g=0;g<4&&h+g*.75<l;g++)d.push(f.charAt(E>>>6*(3-g)&63));var y=f.charAt(64);if(y)for(;d.length%4;)d.push(y);return d.join("")},parse:function(u){var c=u.length,l=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var d=0;d<l.length;d++)f[l.charCodeAt(d)]=d}var h=l.charAt(64);if(h){var m=u.indexOf(h);m!==-1&&(c=m)}return a(u,c,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function a(u,c,l){for(var f=[],d=0,h=0;h<c;h++)if(h%4){var m=l[u.charCodeAt(h-1)]<<h%4*2,p=l[u.charCodeAt(h)]>>>6-h%4*2,b=m|p;f[d>>>2]|=b<<24-d%4*8,d++}return s.create(f,d)}}(),r.enc.Base64})})(oc);var ac=oc.exports;const cc=Be(ac);var uc={exports:{}};(function(e,t){(function(r,n){e.exports=n(Jt())})(ft,function(r){return r.enc.Utf8})})(uc);var Sy=uc.exports;const Vi=Be(Sy);var lc={exports:{}},po={exports:{}},mo={exports:{}},go;function xy(){return go||(go=1,function(e,t){(function(r,n){e.exports=n(Jt())})(ft,function(r){return function(){var n=r,i=n.lib,s=i.WordArray,o=i.Hasher,a=n.algo,u=[],c=a.SHA1=o.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(l,f){for(var d=this._hash.words,h=d[0],m=d[1],p=d[2],b=d[3],E=d[4],g=0;g<80;g++){if(g<16)u[g]=l[f+g]|0;else{var y=u[g-3]^u[g-8]^u[g-14]^u[g-16];u[g]=y<<1|y>>>31}var _=(h<<5|h>>>27)+E+u[g];g<20?_+=(m&p|~m&b)+1518500249:g<40?_+=(m^p^b)+1859775393:g<60?_+=(m&p|m&b|p&b)-1894007588:_+=(m^p^b)-899497514,E=b,b=p,p=m<<30|m>>>2,m=h,h=_}d[0]=d[0]+h|0,d[1]=d[1]+m|0,d[2]=d[2]+p|0,d[3]=d[3]+b|0,d[4]=d[4]+E|0},_doFinalize:function(){var l=this._data,f=l.words,d=this._nDataBytes*8,h=l.sigBytes*8;return f[h>>>5]|=128<<24-h%32,f[(h+64>>>9<<4)+14]=Math.floor(d/4294967296),f[(h+64>>>9<<4)+15]=d,l.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var l=o.clone.call(this);return l._hash=this._hash.clone(),l}});n.SHA1=o._createHelper(c),n.HmacSHA1=o._createHmacHelper(c)}(),r.SHA1})}(mo)),mo.exports}var vo={exports:{}},yo;function Ty(){return yo||(yo=1,function(e,t){(function(r,n){e.exports=n(Jt())})(ft,function(r){(function(){var n=r,i=n.lib,s=i.Base,o=n.enc,a=o.Utf8,u=n.algo;u.HMAC=s.extend({init:function(c,l){c=this._hasher=new c.init,typeof l=="string"&&(l=a.parse(l));var f=c.blockSize,d=f*4;l.sigBytes>d&&(l=c.finalize(l)),l.clamp();for(var h=this._oKey=l.clone(),m=this._iKey=l.clone(),p=h.words,b=m.words,E=0;E<f;E++)p[E]^=1549556828,b[E]^=909522486;h.sigBytes=m.sigBytes=d,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var l=this._hasher,f=l.finalize(c);l.reset();var d=l.finalize(this._oKey.clone().concat(f));return d}})})()})}(vo)),vo.exports}var bo;function fc(){return bo||(bo=1,function(e,t){(function(r,n,i){e.exports=n(Jt(),xy(),Ty())})(ft,function(r){return function(){var n=r,i=n.lib,s=i.Base,o=i.WordArray,a=n.algo,u=a.MD5,c=a.EvpKDF=s.extend({cfg:s.extend({keySize:128/32,hasher:u,iterations:1}),init:function(l){this.cfg=this.cfg.extend(l)},compute:function(l,f){for(var d,h=this.cfg,m=h.hasher.create(),p=o.create(),b=p.words,E=h.keySize,g=h.iterations;b.length<E;){d&&m.update(d),d=m.update(l).finalize(f),m.reset();for(var y=1;y<g;y++)d=m.finalize(d),m.reset();p.concat(d)}return p.sigBytes=E*4,p}});n.EvpKDF=function(l,f,d){return c.create(d).compute(l,f)}}(),r.EvpKDF})}(po)),po.exports}var _o={exports:{}},wo;function Oy(){return wo||(wo=1,function(e,t){(function(r,n,i){e.exports=n(Jt(),fc())})(ft,function(r){r.lib.Cipher||function(n){var i=r,s=i.lib,o=s.Base,a=s.WordArray,u=s.BufferedBlockAlgorithm,c=i.enc;c.Utf8;var l=c.Base64,f=i.algo,d=f.EvpKDF,h=s.Cipher=u.extend({cfg:o.extend(),createEncryptor:function(w,T){return this.create(this._ENC_XFORM_MODE,w,T)},createDecryptor:function(w,T){return this.create(this._DEC_XFORM_MODE,w,T)},init:function(w,T,F){this.cfg=this.cfg.extend(F),this._xformMode=w,this._key=T,this.reset()},reset:function(){u.reset.call(this),this._doReset()},process:function(w){return this._append(w),this._process()},finalize:function(w){w&&this._append(w);var T=this._doFinalize();return T},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function w(T){return typeof T=="string"?V:v}return function(T){return{encrypt:function(F,C,M){return w(C).encrypt(T,F,C,M)},decrypt:function(F,C,M){return w(C).decrypt(T,F,C,M)}}}}()});s.StreamCipher=h.extend({_doFinalize:function(){var w=this._process(!0);return w},blockSize:1});var m=i.mode={},p=s.BlockCipherMode=o.extend({createEncryptor:function(w,T){return this.Encryptor.create(w,T)},createDecryptor:function(w,T){return this.Decryptor.create(w,T)},init:function(w,T){this._cipher=w,this._iv=T}}),b=m.CBC=function(){var w=p.extend();w.Encryptor=w.extend({processBlock:function(F,C){var M=this._cipher,D=M.blockSize;T.call(this,F,C,D),M.encryptBlock(F,C),this._prevBlock=F.slice(C,C+D)}}),w.Decryptor=w.extend({processBlock:function(F,C){var M=this._cipher,D=M.blockSize,N=F.slice(C,C+D);M.decryptBlock(F,C),T.call(this,F,C,D),this._prevBlock=N}});function T(F,C,M){var D,N=this._iv;N?(D=N,this._iv=n):D=this._prevBlock;for(var H=0;H<M;H++)F[C+H]^=D[H]}return w}(),E=i.pad={},g=E.Pkcs7={pad:function(w,T){for(var F=T*4,C=F-w.sigBytes%F,M=C<<24|C<<16|C<<8|C,D=[],N=0;N<C;N+=4)D.push(M);var H=a.create(D,C);w.concat(H)},unpad:function(w){var T=w.words[w.sigBytes-1>>>2]&255;w.sigBytes-=T}};s.BlockCipher=h.extend({cfg:h.cfg.extend({mode:b,padding:g}),reset:function(){var w;h.reset.call(this);var T=this.cfg,F=T.iv,C=T.mode;this._xformMode==this._ENC_XFORM_MODE?w=C.createEncryptor:(w=C.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==w?this._mode.init(this,F&&F.words):(this._mode=w.call(C,this,F&&F.words),this._mode.__creator=w)},_doProcessBlock:function(w,T){this._mode.processBlock(w,T)},_doFinalize:function(){var w,T=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(T.pad(this._data,this.blockSize),w=this._process(!0)):(w=this._process(!0),T.unpad(w)),w},blockSize:128/32});var y=s.CipherParams=o.extend({init:function(w){this.mixIn(w)},toString:function(w){return(w||this.formatter).stringify(this)}}),_=i.format={},S=_.OpenSSL={stringify:function(w){var T,F=w.ciphertext,C=w.salt;return C?T=a.create([1398893684,1701076831]).concat(C).concat(F):T=F,T.toString(l)},parse:function(w){var T,F=l.parse(w),C=F.words;return C[0]==1398893684&&C[1]==1701076831&&(T=a.create(C.slice(2,4)),C.splice(0,4),F.sigBytes-=16),y.create({ciphertext:F,salt:T})}},v=s.SerializableCipher=o.extend({cfg:o.extend({format:S}),encrypt:function(w,T,F,C){C=this.cfg.extend(C);var M=w.createEncryptor(F,C),D=M.finalize(T),N=M.cfg;return y.create({ciphertext:D,key:F,iv:N.iv,algorithm:w,mode:N.mode,padding:N.padding,blockSize:w.blockSize,formatter:C.format})},decrypt:function(w,T,F,C){C=this.cfg.extend(C),T=this._parse(T,C.format);var M=w.createDecryptor(F,C).finalize(T.ciphertext);return M},_parse:function(w,T){return typeof w=="string"?T.parse(w,this):w}}),x=i.kdf={},$=x.OpenSSL={execute:function(w,T,F,C,M){if(C||(C=a.random(64/8)),M)var D=d.create({keySize:T+F,hasher:M}).compute(w,C);else var D=d.create({keySize:T+F}).compute(w,C);var N=a.create(D.words.slice(T),F*4);return D.sigBytes=T*4,y.create({key:D,iv:N,salt:C})}},V=s.PasswordBasedCipher=v.extend({cfg:v.cfg.extend({kdf:$}),encrypt:function(w,T,F,C){C=this.cfg.extend(C);var M=C.kdf.execute(F,w.keySize,w.ivSize,C.salt,C.hasher);C.iv=M.iv;var D=v.encrypt.call(this,w,T,M.key,C);return D.mixIn(M),D},decrypt:function(w,T,F,C){C=this.cfg.extend(C),T=this._parse(T,C.format);var M=C.kdf.execute(F,w.keySize,w.ivSize,T.salt,C.hasher);C.iv=M.iv;var D=v.decrypt.call(this,w,T,M.key,C);return D}})}()})}(_o)),_o.exports}(function(e,t){(function(r,n,i){e.exports=n(Jt(),ac,sc,fc(),Oy())})(ft,function(r){return function(){var n=r,i=n.lib,s=i.BlockCipher,o=n.algo,a=[],u=[],c=[],l=[],f=[],d=[],h=[],m=[],p=[],b=[];(function(){for(var y=[],_=0;_<256;_++)_<128?y[_]=_<<1:y[_]=_<<1^283;for(var S=0,v=0,_=0;_<256;_++){var x=v^v<<1^v<<2^v<<3^v<<4;x=x>>>8^x&255^99,a[S]=x,u[x]=S;var $=y[S],V=y[$],w=y[V],T=y[x]*257^x*16843008;c[S]=T<<24|T>>>8,l[S]=T<<16|T>>>16,f[S]=T<<8|T>>>24,d[S]=T;var T=w*16843009^V*65537^$*257^S*16843008;h[x]=T<<24|T>>>8,m[x]=T<<16|T>>>16,p[x]=T<<8|T>>>24,b[x]=T,S?(S=$^y[y[y[w^$]]],v^=y[y[v]]):S=v=1}})();var E=[0,1,2,4,8,16,32,64,128,27,54],g=o.AES=s.extend({_doReset:function(){var y;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var _=this._keyPriorReset=this._key,S=_.words,v=_.sigBytes/4,x=this._nRounds=v+6,$=(x+1)*4,V=this._keySchedule=[],w=0;w<$;w++)w<v?V[w]=S[w]:(y=V[w-1],w%v?v>6&&w%v==4&&(y=a[y>>>24]<<24|a[y>>>16&255]<<16|a[y>>>8&255]<<8|a[y&255]):(y=y<<8|y>>>24,y=a[y>>>24]<<24|a[y>>>16&255]<<16|a[y>>>8&255]<<8|a[y&255],y^=E[w/v|0]<<24),V[w]=V[w-v]^y);for(var T=this._invKeySchedule=[],F=0;F<$;F++){var w=$-F;if(F%4)var y=V[w];else var y=V[w-4];F<4||w<=4?T[F]=y:T[F]=h[a[y>>>24]]^m[a[y>>>16&255]]^p[a[y>>>8&255]]^b[a[y&255]]}}},encryptBlock:function(y,_){this._doCryptBlock(y,_,this._keySchedule,c,l,f,d,a)},decryptBlock:function(y,_){var S=y[_+1];y[_+1]=y[_+3],y[_+3]=S,this._doCryptBlock(y,_,this._invKeySchedule,h,m,p,b,u);var S=y[_+1];y[_+1]=y[_+3],y[_+3]=S},_doCryptBlock:function(y,_,S,v,x,$,V,w){for(var T=this._nRounds,F=y[_]^S[0],C=y[_+1]^S[1],M=y[_+2]^S[2],D=y[_+3]^S[3],N=4,H=1;H<T;H++){var U=v[F>>>24]^x[C>>>16&255]^$[M>>>8&255]^V[D&255]^S[N++],q=v[C>>>24]^x[M>>>16&255]^$[D>>>8&255]^V[F&255]^S[N++],K=v[M>>>24]^x[D>>>16&255]^$[F>>>8&255]^V[C&255]^S[N++],R=v[D>>>24]^x[F>>>16&255]^$[C>>>8&255]^V[M&255]^S[N++];F=U,C=q,M=K,D=R}var U=(w[F>>>24]<<24|w[C>>>16&255]<<16|w[M>>>8&255]<<8|w[D&255])^S[N++],q=(w[C>>>24]<<24|w[M>>>16&255]<<16|w[D>>>8&255]<<8|w[F&255])^S[N++],K=(w[M>>>24]<<24|w[D>>>16&255]<<16|w[F>>>8&255]<<8|w[C&255])^S[N++],R=(w[D>>>24]<<24|w[F>>>16&255]<<16|w[C>>>8&255]<<8|w[M&255])^S[N++];y[_]=U,y[_+1]=q,y[_+2]=K,y[_+3]=R},keySize:256/32});n.AES=s._createHelper(g)}(),r.AES})})(lc);var $y=lc.exports;const hc=Be($y);var Ay="0123456789abcdefghijklmnopqrstuvwxyz";function kt(e){return Ay.charAt(e)}function Ry(e,t){return e&t}function br(e,t){return e|t}function Eo(e,t){return e^t}function So(e,t){return e&~t}function jy(e){if(e==0)return-1;var t=0;return e&65535||(e>>=16,t+=16),e&255||(e>>=8,t+=8),e&15||(e>>=4,t+=4),e&3||(e>>=2,t+=2),e&1||++t,t}function Dy(e){for(var t=0;e!=0;)e&=e-1,++t;return t}var be="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",dc="=";function qr(e){var t,r,n="";for(t=0;t+3<=e.length;t+=3)r=parseInt(e.substring(t,t+3),16),n+=be.charAt(r>>6)+be.charAt(r&63);for(t+1==e.length?(r=parseInt(e.substring(t,t+1),16),n+=be.charAt(r<<2)):t+2==e.length&&(r=parseInt(e.substring(t,t+2),16),n+=be.charAt(r>>2)+be.charAt((r&3)<<4));(n.length&3)>0;)n+=dc;return n}function xo(e){var t="",r,n=0,i=0;for(r=0;r<e.length&&e.charAt(r)!=dc;++r){var s=be.indexOf(e.charAt(r));s<0||(n==0?(t+=kt(s>>2),i=s&3,n=1):n==1?(t+=kt(i<<2|s>>4),i=s&15,n=2):n==2?(t+=kt(i),t+=kt(s>>2),i=s&3,n=3):(t+=kt(i<<2|s>>4),t+=kt(s&15),n=0))}return n==1&&(t+=kt(i<<2)),t}var me,Cy={decode:function(e){var t;if(me===void 0){var r="0123456789ABCDEF",n=` \f
|
|
20
|
-
\r \u2028\u2029`;for(me={},t=0;t<16;++t)me[r.charAt(t)]=t;for(r=r.toLowerCase(),t=10;t<16;++t)me[r.charAt(t)]=t;for(t=0;t<n.length;++t)me[n.charAt(t)]=-1}var i=[],s=0,o=0;for(t=0;t<e.length;++t){var a=e.charAt(t);if(a=="=")break;if(a=me[a],a!=-1){if(a===void 0)throw new Error("Illegal character at offset "+t);s|=a,++o>=2?(i[i.length]=s,s=0,o=0):s<<=4}}if(o)throw new Error("Hex encoding incomplete: 4 bits missing");return i}},Zt,ri={decode:function(e){var t;if(Zt===void 0){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=`= \f
|
|
21
|
-
\r \u2028\u2029`;for(Zt=Object.create(null),t=0;t<64;++t)Zt[r.charAt(t)]=t;for(Zt["-"]=62,Zt._=63,t=0;t<n.length;++t)Zt[n.charAt(t)]=-1}var i=[],s=0,o=0;for(t=0;t<e.length;++t){var a=e.charAt(t);if(a=="=")break;if(a=Zt[a],a!=-1){if(a===void 0)throw new Error("Illegal character at offset "+t);s|=a,++o>=4?(i[i.length]=s>>16,i[i.length]=s>>8&255,i[i.length]=s&255,s=0,o=0):s<<=6}}switch(o){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:i[i.length]=s>>10;break;case 3:i[i.length]=s>>16,i[i.length]=s>>8&255;break}return i},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var t=ri.re.exec(e);if(t)if(t[1])e=t[1];else if(t[2])e=t[2];else throw new Error("RegExp out of sync");return ri.decode(e)}},ge=1e13,qe=function(){function e(t){this.buf=[+t||0]}return e.prototype.mulAdd=function(t,r){var n=this.buf,i=n.length,s,o;for(s=0;s<i;++s)o=n[s]*t+r,o<ge?r=0:(r=0|o/ge,o-=r*ge),n[s]=o;r>0&&(n[s]=r)},e.prototype.sub=function(t){var r=this.buf,n=r.length,i,s;for(i=0;i<n;++i)s=r[i]-t,s<0?(s+=ge,t=1):t=0,r[i]=s;for(;r[r.length-1]===0;)r.pop()},e.prototype.toString=function(t){if((t||10)!=10)throw new Error("only base 10 is supported");for(var r=this.buf,n=r[r.length-1].toString(),i=r.length-2;i>=0;--i)n+=(ge+r[i]).toString().substring(1);return n},e.prototype.valueOf=function(){for(var t=this.buf,r=0,n=t.length-1;n>=0;--n)r=r*ge+t[n];return r},e.prototype.simplify=function(){var t=this.buf;return t.length==1?t[0]:this},e}(),pc="…",Py=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,Ny=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function Ee(e,t){return e.length>t&&(e=e.substring(0,t)+pc),e}var jn=function(){function e(t,r){this.hexDigits="0123456789ABCDEF",t instanceof e?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=r)}return e.prototype.get=function(t){if(t===void 0&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset ".concat(t," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(t):this.enc[t]},e.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(t&15)},e.prototype.hexDump=function(t,r,n){for(var i="",s=t;s<r;++s)if(i+=this.hexByte(this.get(s)),n!==!0)switch(s&15){case 7:i+=" ";break;case 15:i+=`
|
|
22
|
-
`;break;default:i+=" "}return i},e.prototype.isASCII=function(t,r){for(var n=t;n<r;++n){var i=this.get(n);if(i<32||i>176)return!1}return!0},e.prototype.parseStringISO=function(t,r){for(var n="",i=t;i<r;++i)n+=String.fromCharCode(this.get(i));return n},e.prototype.parseStringUTF=function(t,r){for(var n="",i=t;i<r;){var s=this.get(i++);s<128?n+=String.fromCharCode(s):s>191&&s<224?n+=String.fromCharCode((s&31)<<6|this.get(i++)&63):n+=String.fromCharCode((s&15)<<12|(this.get(i++)&63)<<6|this.get(i++)&63)}return n},e.prototype.parseStringBMP=function(t,r){for(var n="",i,s,o=t;o<r;)i=this.get(o++),s=this.get(o++),n+=String.fromCharCode(i<<8|s);return n},e.prototype.parseTime=function(t,r,n){var i=this.parseStringISO(t,r),s=(n?Py:Ny).exec(i);return s?(n&&(s[1]=+s[1],s[1]+=+s[1]<70?2e3:1900),i=s[1]+"-"+s[2]+"-"+s[3]+" "+s[4],s[5]&&(i+=":"+s[5],s[6]&&(i+=":"+s[6],s[7]&&(i+="."+s[7]))),s[8]&&(i+=" UTC",s[8]!="Z"&&(i+=s[8],s[9]&&(i+=":"+s[9]))),i):"Unrecognized time: "+i},e.prototype.parseInteger=function(t,r){for(var n=this.get(t),i=n>127,s=i?255:0,o,a="";n==s&&++t<r;)n=this.get(t);if(o=r-t,o===0)return i?-1:0;if(o>4){for(a=n,o<<=3;!((+a^s)&128);)a=+a<<1,--o;a="("+o+` bit)
|
|
23
|
-
`}i&&(n=n-256);for(var u=new qe(n),c=t+1;c<r;++c)u.mulAdd(256,this.get(c));return a+u.toString()},e.prototype.parseBitString=function(t,r,n){for(var i=this.get(t),s=(r-t-1<<3)-i,o="("+s+` bit)
|
|
24
|
-
`,a="",u=t+1;u<r;++u){for(var c=this.get(u),l=u==r-1?i:0,f=7;f>=l;--f)a+=c>>f&1?"1":"0";if(a.length>n)return o+Ee(a,n)}return o+a},e.prototype.parseOctetString=function(t,r,n){if(this.isASCII(t,r))return Ee(this.parseStringISO(t,r),n);var i=r-t,s="("+i+` byte)
|
|
25
|
-
`;n/=2,i>n&&(r=t+n);for(var o=t;o<r;++o)s+=this.hexByte(this.get(o));return i>n&&(s+=pc),s},e.prototype.parseOID=function(t,r,n){for(var i="",s=new qe,o=0,a=t;a<r;++a){var u=this.get(a);if(s.mulAdd(128,u&127),o+=7,!(u&128)){if(i==="")if(s=s.simplify(),s instanceof qe)s.sub(80),i="2."+s.toString();else{var c=s<80?s<40?0:1:2;i=c+"."+(s-c*40)}else i+="."+s.toString();if(i.length>n)return Ee(i,n);s=new qe,o=0}}return o>0&&(i+=".incomplete"),i},e}(),By=function(){function e(t,r,n,i,s){if(!(i instanceof To))throw new Error("Invalid tag value.");this.stream=t,this.header=r,this.length=n,this.tag=i,this.sub=s}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(t){if(this.tag===void 0)return null;t===void 0&&(t=1/0);var r=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(r,r+n,t);switch(this.tag.tagNumber){case 1:return this.stream.get(r)===0?"false":"true";case 2:return this.stream.parseInteger(r,r+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(r,r+n,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(r,r+n,t);case 6:return this.stream.parseOID(r,r+n,t);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return Ee(this.stream.parseStringUTF(r,r+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return Ee(this.stream.parseStringISO(r,r+n),t);case 30:return Ee(this.stream.parseStringBMP(r,r+n),t);case 23:case 24:return this.stream.parseTime(r,r+n,this.tag.tagNumber==23)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(t){t===void 0&&(t="");var r=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(r+="+"),r+=this.length,this.tag.tagConstructed?r+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(r+=" (encapsulates)"),r+=`
|
|
26
|
-
`,this.sub!==null){t+=" ";for(var n=0,i=this.sub.length;n<i;++n)r+=this.sub[n].toPrettyString(t)}return r},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(t){var r=t.get(),n=r&127;if(n==r)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(n===0)return null;r=0;for(var i=0;i<n;++i)r=r*256+t.get();return r},e.prototype.getHexStringValue=function(){var t=this.toHexString(),r=this.header*2,n=this.length*2;return t.substr(r,n)},e.decode=function(t){var r;t instanceof jn?r=t:r=new jn(t,0);var n=new jn(r),i=new To(r),s=e.decodeLength(r),o=r.pos,a=o-n.pos,u=null,c=function(){var f=[];if(s!==null){for(var d=o+s;r.pos<d;)f[f.length]=e.decode(r);if(r.pos!=d)throw new Error("Content size is not correct for container starting at offset "+o)}else try{for(;;){var h=e.decode(r);if(h.tag.isEOC())break;f[f.length]=h}s=o-r.pos}catch(m){throw new Error("Exception while decoding undefined length content: "+m)}return f};if(i.tagConstructed)u=c();else if(i.isUniversal()&&(i.tagNumber==3||i.tagNumber==4))try{if(i.tagNumber==3&&r.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");u=c();for(var l=0;l<u.length;++l)if(u[l].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(f){u=null}if(u===null){if(s===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+o);r.pos=o+Math.abs(s)}return new e(n,a,s,i,u)},e}(),To=function(){function e(t){var r=t.get();if(this.tagClass=r>>6,this.tagConstructed=(r&32)!==0,this.tagNumber=r&31,this.tagNumber==31){var n=new qe;do r=t.get(),n.mulAdd(128,r&127);while(r&128);this.tagNumber=n.simplify()}}return e.prototype.isUniversal=function(){return this.tagClass===0},e.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},e}(),Ut,ky=0xdeadbeefcafe,Oo=(ky&16777215)==15715070,ut=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],My=(1<<26)/ut[ut.length-1],W=function(){function e(t,r,n){t!=null&&(typeof t=="number"?this.fromNumber(t,r,n):r==null&&typeof t!="string"?this.fromString(t,256):this.fromString(t,r))}return e.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var r;if(t==16)r=4;else if(t==8)r=3;else if(t==2)r=1;else if(t==32)r=5;else if(t==4)r=2;else return this.toRadix(t);var n=(1<<r)-1,i,s=!1,o="",a=this.t,u=this.DB-a*this.DB%r;if(a-- >0)for(u<this.DB&&(i=this[a]>>u)>0&&(s=!0,o=kt(i));a>=0;)u<r?(i=(this[a]&(1<<u)-1)<<r-u,i|=this[--a]>>(u+=this.DB-r)):(i=this[a]>>(u-=r)&n,u<=0&&(u+=this.DB,--a)),i>0&&(s=!0),s&&(o+=kt(i));return s?o:"0"},e.prototype.negate=function(){var t=Y();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(t){var r=this.s-t.s;if(r!=0)return r;var n=this.t;if(r=n-t.t,r!=0)return this.s<0?-r:r;for(;--n>=0;)if((r=this[n]-t[n])!=0)return r;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+_r(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var r=Y();return this.abs().divRemTo(t,null,r),this.s<0&&r.compareTo(e.ZERO)>0&&t.subTo(r,r),r},e.prototype.modPowInt=function(t,r){var n;return t<256||r.isEven()?n=new $o(r):n=new Ao(r),this.exp(t,n)},e.prototype.clone=function(){var t=Y();return this.copyTo(t),t},e.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var t=this.t,r=[];r[0]=this.s;var n=this.DB-t*this.DB%8,i,s=0;if(t-- >0)for(n<this.DB&&(i=this[t]>>n)!=(this.s&this.DM)>>n&&(r[s++]=i|this.s<<this.DB-n);t>=0;)n<8?(i=(this[t]&(1<<n)-1)<<8-n,i|=this[--t]>>(n+=this.DB-8)):(i=this[t]>>(n-=8)&255,n<=0&&(n+=this.DB,--t)),i&128&&(i|=-256),s==0&&(this.s&128)!=(i&128)&&++s,(s>0||i!=this.s)&&(r[s++]=i);return r},e.prototype.equals=function(t){return this.compareTo(t)==0},e.prototype.min=function(t){return this.compareTo(t)<0?this:t},e.prototype.max=function(t){return this.compareTo(t)>0?this:t},e.prototype.and=function(t){var r=Y();return this.bitwiseTo(t,Ry,r),r},e.prototype.or=function(t){var r=Y();return this.bitwiseTo(t,br,r),r},e.prototype.xor=function(t){var r=Y();return this.bitwiseTo(t,Eo,r),r},e.prototype.andNot=function(t){var r=Y();return this.bitwiseTo(t,So,r),r},e.prototype.not=function(){for(var t=Y(),r=0;r<this.t;++r)t[r]=this.DM&~this[r];return t.t=this.t,t.s=~this.s,t},e.prototype.shiftLeft=function(t){var r=Y();return t<0?this.rShiftTo(-t,r):this.lShiftTo(t,r),r},e.prototype.shiftRight=function(t){var r=Y();return t<0?this.lShiftTo(-t,r):this.rShiftTo(t,r),r},e.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(this[t]!=0)return t*this.DB+jy(this[t]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var t=0,r=this.s&this.DM,n=0;n<this.t;++n)t+=Dy(this[n]^r);return t},e.prototype.testBit=function(t){var r=Math.floor(t/this.DB);return r>=this.t?this.s!=0:(this[r]&1<<t%this.DB)!=0},e.prototype.setBit=function(t){return this.changeBit(t,br)},e.prototype.clearBit=function(t){return this.changeBit(t,So)},e.prototype.flipBit=function(t){return this.changeBit(t,Eo)},e.prototype.add=function(t){var r=Y();return this.addTo(t,r),r},e.prototype.subtract=function(t){var r=Y();return this.subTo(t,r),r},e.prototype.multiply=function(t){var r=Y();return this.multiplyTo(t,r),r},e.prototype.divide=function(t){var r=Y();return this.divRemTo(t,r,null),r},e.prototype.remainder=function(t){var r=Y();return this.divRemTo(t,null,r),r},e.prototype.divideAndRemainder=function(t){var r=Y(),n=Y();return this.divRemTo(t,r,n),[r,n]},e.prototype.modPow=function(t,r){var n=t.bitLength(),i,s=Ht(1),o;if(n<=0)return s;n<18?i=1:n<48?i=3:n<144?i=4:n<768?i=5:i=6,n<8?o=new $o(r):r.isEven()?o=new Fy(r):o=new Ao(r);var a=[],u=3,c=i-1,l=(1<<i)-1;if(a[1]=o.convert(this),i>1){var f=Y();for(o.sqrTo(a[1],f);u<=l;)a[u]=Y(),o.mulTo(f,a[u-2],a[u]),u+=2}var d=t.t-1,h,m=!0,p=Y(),b;for(n=_r(t[d])-1;d>=0;){for(n>=c?h=t[d]>>n-c&l:(h=(t[d]&(1<<n+1)-1)<<c-n,d>0&&(h|=t[d-1]>>this.DB+n-c)),u=i;!(h&1);)h>>=1,--u;if((n-=u)<0&&(n+=this.DB,--d),m)a[h].copyTo(s),m=!1;else{for(;u>1;)o.sqrTo(s,p),o.sqrTo(p,s),u-=2;u>0?o.sqrTo(s,p):(b=s,s=p,p=b),o.mulTo(p,a[h],s)}for(;d>=0&&!(t[d]&1<<n);)o.sqrTo(s,p),b=s,s=p,p=b,--n<0&&(n=this.DB-1,--d)}return o.revert(s)},e.prototype.modInverse=function(t){var r=t.isEven();if(this.isEven()&&r||t.signum()==0)return e.ZERO;for(var n=t.clone(),i=this.clone(),s=Ht(1),o=Ht(0),a=Ht(0),u=Ht(1);n.signum()!=0;){for(;n.isEven();)n.rShiftTo(1,n),r?((!s.isEven()||!o.isEven())&&(s.addTo(this,s),o.subTo(t,o)),s.rShiftTo(1,s)):o.isEven()||o.subTo(t,o),o.rShiftTo(1,o);for(;i.isEven();)i.rShiftTo(1,i),r?((!a.isEven()||!u.isEven())&&(a.addTo(this,a),u.subTo(t,u)),a.rShiftTo(1,a)):u.isEven()||u.subTo(t,u),u.rShiftTo(1,u);n.compareTo(i)>=0?(n.subTo(i,n),r&&s.subTo(a,s),o.subTo(u,o)):(i.subTo(n,i),r&&a.subTo(s,a),u.subTo(o,u))}if(i.compareTo(e.ONE)!=0)return e.ZERO;if(u.compareTo(t)>=0)return u.subtract(t);if(u.signum()<0)u.addTo(t,u);else return u;return u.signum()<0?u.add(t):u},e.prototype.pow=function(t){return this.exp(t,new Iy)},e.prototype.gcd=function(t){var r=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(r.compareTo(n)<0){var i=r;r=n,n=i}var s=r.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return r;for(s<o&&(o=s),o>0&&(r.rShiftTo(o,r),n.rShiftTo(o,n));r.signum()>0;)(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),(s=n.getLowestSetBit())>0&&n.rShiftTo(s,n),r.compareTo(n)>=0?(r.subTo(n,r),r.rShiftTo(1,r)):(n.subTo(r,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},e.prototype.isProbablePrime=function(t){var r,n=this.abs();if(n.t==1&&n[0]<=ut[ut.length-1]){for(r=0;r<ut.length;++r)if(n[0]==ut[r])return!0;return!1}if(n.isEven())return!1;for(r=1;r<ut.length;){for(var i=ut[r],s=r+1;s<ut.length&&i<My;)i*=ut[s++];for(i=n.modInt(i);r<s;)if(i%ut[r++]==0)return!1}return n.millerRabin(t)},e.prototype.copyTo=function(t){for(var r=this.t-1;r>=0;--r)t[r]=this[r];t.t=this.t,t.s=this.s},e.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},e.prototype.fromString=function(t,r){var n;if(r==16)n=4;else if(r==8)n=3;else if(r==256)n=8;else if(r==2)n=1;else if(r==32)n=5;else if(r==4)n=2;else{this.fromRadix(t,r);return}this.t=0,this.s=0;for(var i=t.length,s=!1,o=0;--i>=0;){var a=n==8?+t[i]&255:jo(t,i);if(a<0){t.charAt(i)=="-"&&(s=!0);continue}s=!1,o==0?this[this.t++]=a:o+n>this.DB?(this[this.t-1]|=(a&(1<<this.DB-o)-1)<<o,this[this.t++]=a>>this.DB-o):this[this.t-1]|=a<<o,o+=n,o>=this.DB&&(o-=this.DB)}n==8&&+t[0]&128&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),s&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},e.prototype.dlShiftTo=function(t,r){var n;for(n=this.t-1;n>=0;--n)r[n+t]=this[n];for(n=t-1;n>=0;--n)r[n]=0;r.t=this.t+t,r.s=this.s},e.prototype.drShiftTo=function(t,r){for(var n=t;n<this.t;++n)r[n-t]=this[n];r.t=Math.max(this.t-t,0),r.s=this.s},e.prototype.lShiftTo=function(t,r){for(var n=t%this.DB,i=this.DB-n,s=(1<<i)-1,o=Math.floor(t/this.DB),a=this.s<<n&this.DM,u=this.t-1;u>=0;--u)r[u+o+1]=this[u]>>i|a,a=(this[u]&s)<<n;for(var u=o-1;u>=0;--u)r[u]=0;r[o]=a,r.t=this.t+o+1,r.s=this.s,r.clamp()},e.prototype.rShiftTo=function(t,r){r.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t){r.t=0;return}var i=t%this.DB,s=this.DB-i,o=(1<<i)-1;r[0]=this[n]>>i;for(var a=n+1;a<this.t;++a)r[a-n-1]|=(this[a]&o)<<s,r[a-n]=this[a]>>i;i>0&&(r[this.t-n-1]|=(this.s&o)<<s),r.t=this.t-n,r.clamp()},e.prototype.subTo=function(t,r){for(var n=0,i=0,s=Math.min(t.t,this.t);n<s;)i+=this[n]-t[n],r[n++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i-=t.s;n<this.t;)i+=this[n],r[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<t.t;)i-=t[n],r[n++]=i&this.DM,i>>=this.DB;i-=t.s}r.s=i<0?-1:0,i<-1?r[n++]=this.DV+i:i>0&&(r[n++]=i),r.t=n,r.clamp()},e.prototype.multiplyTo=function(t,r){var n=this.abs(),i=t.abs(),s=n.t;for(r.t=s+i.t;--s>=0;)r[s]=0;for(s=0;s<i.t;++s)r[s+n.t]=n.am(0,i[s],r,s,0,n.t);r.s=0,r.clamp(),this.s!=t.s&&e.ZERO.subTo(r,r)},e.prototype.squareTo=function(t){for(var r=this.abs(),n=t.t=2*r.t;--n>=0;)t[n]=0;for(n=0;n<r.t-1;++n){var i=r.am(n,r[n],t,2*n,0,1);(t[n+r.t]+=r.am(n+1,2*r[n],t,2*n+1,i,r.t-n-1))>=r.DV&&(t[n+r.t]-=r.DV,t[n+r.t+1]=1)}t.t>0&&(t[t.t-1]+=r.am(n,r[n],t,2*n,0,1)),t.s=0,t.clamp()},e.prototype.divRemTo=function(t,r,n){var i=t.abs();if(!(i.t<=0)){var s=this.abs();if(s.t<i.t){r==null||r.fromInt(0),n!=null&&this.copyTo(n);return}n==null&&(n=Y());var o=Y(),a=this.s,u=t.s,c=this.DB-_r(i[i.t-1]);c>0?(i.lShiftTo(c,o),s.lShiftTo(c,n)):(i.copyTo(o),s.copyTo(n));var l=o.t,f=o[l-1];if(f!=0){var d=f*(1<<this.F1)+(l>1?o[l-2]>>this.F2:0),h=this.FV/d,m=(1<<this.F1)/d,p=1<<this.F2,b=n.t,E=b-l,g=r!=null?r:Y();for(o.dlShiftTo(E,g),n.compareTo(g)>=0&&(n[n.t++]=1,n.subTo(g,n)),e.ONE.dlShiftTo(l,g),g.subTo(o,o);o.t<l;)o[o.t++]=0;for(;--E>=0;){var y=n[--b]==f?this.DM:Math.floor(n[b]*h+(n[b-1]+p)*m);if((n[b]+=o.am(0,y,n,E,0,l))<y)for(o.dlShiftTo(E,g),n.subTo(g,n);n[b]<--y;)n.subTo(g,n)}r!=null&&(n.drShiftTo(l,r),a!=u&&e.ZERO.subTo(r,r)),n.t=l,n.clamp(),c>0&&n.rShiftTo(c,n),a<0&&e.ZERO.subTo(n,n)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(!(t&1))return 0;var r=t&3;return r=r*(2-(t&15)*r)&15,r=r*(2-(t&255)*r)&255,r=r*(2-((t&65535)*r&65535))&65535,r=r*(2-t*r%this.DV)%this.DV,r>0?this.DV-r:-r},e.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},e.prototype.exp=function(t,r){if(t>4294967295||t<1)return e.ONE;var n=Y(),i=Y(),s=r.convert(this),o=_r(t)-1;for(s.copyTo(n);--o>=0;)if(r.sqrTo(n,i),(t&1<<o)>0)r.mulTo(i,s,n);else{var a=n;n=i,i=a}return r.revert(n)},e.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},e.prototype.toRadix=function(t){if(t==null&&(t=10),this.signum()==0||t<2||t>36)return"0";var r=this.chunkSize(t),n=Math.pow(t,r),i=Ht(n),s=Y(),o=Y(),a="";for(this.divRemTo(i,s,o);s.signum()>0;)a=(n+o.intValue()).toString(t).substr(1)+a,s.divRemTo(i,s,o);return o.intValue().toString(t)+a},e.prototype.fromRadix=function(t,r){this.fromInt(0),r==null&&(r=10);for(var n=this.chunkSize(r),i=Math.pow(r,n),s=!1,o=0,a=0,u=0;u<t.length;++u){var c=jo(t,u);if(c<0){t.charAt(u)=="-"&&this.signum()==0&&(s=!0);continue}a=r*a+c,++o>=n&&(this.dMultiply(i),this.dAddOffset(a,0),o=0,a=0)}o>0&&(this.dMultiply(Math.pow(r,o)),this.dAddOffset(a,0)),s&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(t,r,n){if(typeof r=="number")if(t<2)this.fromInt(1);else for(this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),br,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(r);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(e.ONE.shiftLeft(t-1),this);else{var i=[],s=t&7;i.length=(t>>3)+1,r.nextBytes(i),s>0?i[0]&=(1<<s)-1:i[0]=0,this.fromString(i,256)}},e.prototype.bitwiseTo=function(t,r,n){var i,s,o=Math.min(t.t,this.t);for(i=0;i<o;++i)n[i]=r(this[i],t[i]);if(t.t<this.t){for(s=t.s&this.DM,i=o;i<this.t;++i)n[i]=r(this[i],s);n.t=this.t}else{for(s=this.s&this.DM,i=o;i<t.t;++i)n[i]=r(s,t[i]);n.t=t.t}n.s=r(this.s,t.s),n.clamp()},e.prototype.changeBit=function(t,r){var n=e.ONE.shiftLeft(t);return this.bitwiseTo(n,r,n),n},e.prototype.addTo=function(t,r){for(var n=0,i=0,s=Math.min(t.t,this.t);n<s;)i+=this[n]+t[n],r[n++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i+=t.s;n<this.t;)i+=this[n],r[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<t.t;)i+=t[n],r[n++]=i&this.DM,i>>=this.DB;i+=t.s}r.s=i<0?-1:0,i>0?r[n++]=i:i<-1&&(r[n++]=this.DV+i),r.t=n,r.clamp()},e.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(t,r){if(t!=0){for(;this.t<=r;)this[this.t++]=0;for(this[r]+=t;this[r]>=this.DV;)this[r]-=this.DV,++r>=this.t&&(this[this.t++]=0),++this[r]}},e.prototype.multiplyLowerTo=function(t,r,n){var i=Math.min(this.t+t.t,r);for(n.s=0,n.t=i;i>0;)n[--i]=0;for(var s=n.t-this.t;i<s;++i)n[i+this.t]=this.am(0,t[i],n,i,0,this.t);for(var s=Math.min(t.t,r);i<s;++i)this.am(0,t[i],n,i,0,r-i);n.clamp()},e.prototype.multiplyUpperTo=function(t,r,n){--r;var i=n.t=this.t+t.t-r;for(n.s=0;--i>=0;)n[i]=0;for(i=Math.max(r-this.t,0);i<t.t;++i)n[this.t+i-r]=this.am(r-i,t[i],n,0,0,this.t+i-r);n.clamp(),n.drShiftTo(1,n)},e.prototype.modInt=function(t){if(t<=0)return 0;var r=this.DV%t,n=this.s<0?t-1:0;if(this.t>0)if(r==0)n=this[0]%t;else for(var i=this.t-1;i>=0;--i)n=(r*n+this[i])%t;return n},e.prototype.millerRabin=function(t){var r=this.subtract(e.ONE),n=r.getLowestSetBit();if(n<=0)return!1;var i=r.shiftRight(n);t=t+1>>1,t>ut.length&&(t=ut.length);for(var s=Y(),o=0;o<t;++o){s.fromInt(ut[Math.floor(Math.random()*ut.length)]);var a=s.modPow(i,this);if(a.compareTo(e.ONE)!=0&&a.compareTo(r)!=0){for(var u=1;u++<n&&a.compareTo(r)!=0;)if(a=a.modPowInt(2,this),a.compareTo(e.ONE)==0)return!1;if(a.compareTo(r)!=0)return!1}}return!0},e.prototype.square=function(){var t=Y();return this.squareTo(t),t},e.prototype.gcda=function(t,r){var n=this.s<0?this.negate():this.clone(),i=t.s<0?t.negate():t.clone();if(n.compareTo(i)<0){var s=n;n=i,i=s}var o=n.getLowestSetBit(),a=i.getLowestSetBit();if(a<0){r(n);return}o<a&&(a=o),a>0&&(n.rShiftTo(a,n),i.rShiftTo(a,i));var u=function(){(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),(o=i.getLowestSetBit())>0&&i.rShiftTo(o,i),n.compareTo(i)>=0?(n.subTo(i,n),n.rShiftTo(1,n)):(i.subTo(n,i),i.rShiftTo(1,i)),n.signum()>0?setTimeout(u,0):(a>0&&i.lShiftTo(a,i),setTimeout(function(){r(i)},0))};setTimeout(u,10)},e.prototype.fromNumberAsync=function(t,r,n,i){if(typeof r=="number")if(t<2)this.fromInt(1);else{this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),br,this),this.isEven()&&this.dAddOffset(1,0);var s=this,o=function(){s.dAddOffset(2,0),s.bitLength()>t&&s.subTo(e.ONE.shiftLeft(t-1),s),s.isProbablePrime(r)?setTimeout(function(){i()},0):setTimeout(o,0)};setTimeout(o,0)}else{var a=[],u=t&7;a.length=(t>>3)+1,r.nextBytes(a),u>0?a[0]&=(1<<u)-1:a[0]=0,this.fromString(a,256)}},e}(),Iy=function(){function e(){}return e.prototype.convert=function(t){return t},e.prototype.revert=function(t){return t},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n)},e.prototype.sqrTo=function(t,r){t.squareTo(r)},e}(),$o=function(){function e(t){this.m=t}return e.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},e.prototype.revert=function(t){return t},e.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n),this.reduce(n)},e.prototype.sqrTo=function(t,r){t.squareTo(r),this.reduce(r)},e}(),Ao=function(){function e(t){this.m=t,this.mp=t.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return e.prototype.convert=function(t){var r=Y();return t.abs().dlShiftTo(this.m.t,r),r.divRemTo(this.m,null,r),t.s<0&&r.compareTo(W.ZERO)>0&&this.m.subTo(r,r),r},e.prototype.revert=function(t){var r=Y();return t.copyTo(r),this.reduce(r),r},e.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var r=0;r<this.m.t;++r){var n=t[r]&32767,i=n*this.mpl+((n*this.mph+(t[r]>>15)*this.mpl&this.um)<<15)&t.DM;for(n=r+this.m.t,t[n]+=this.m.am(0,i,t,r,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n),this.reduce(n)},e.prototype.sqrTo=function(t,r){t.squareTo(r),this.reduce(r)},e}(),Fy=function(){function e(t){this.m=t,this.r2=Y(),this.q3=Y(),W.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return e.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var r=Y();return t.copyTo(r),this.reduce(r),r},e.prototype.revert=function(t){return t},e.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n),this.reduce(n)},e.prototype.sqrTo=function(t,r){t.squareTo(r),this.reduce(r)},e}();function Y(){return new W(null)}function et(e,t){return new W(e,t)}var Ro=typeof navigator<"u";Ro&&Oo&&navigator.appName=="Microsoft Internet Explorer"?(W.prototype.am=function(e,t,r,n,i,s){for(var o=t&32767,a=t>>15;--s>=0;){var u=this[e]&32767,c=this[e++]>>15,l=a*u+c*o;u=o*u+((l&32767)<<15)+r[n]+(i&1073741823),i=(u>>>30)+(l>>>15)+a*c+(i>>>30),r[n++]=u&1073741823}return i},Ut=30):Ro&&Oo&&navigator.appName!="Netscape"?(W.prototype.am=function(e,t,r,n,i,s){for(;--s>=0;){var o=t*this[e++]+r[n]+i;i=Math.floor(o/67108864),r[n++]=o&67108863}return i},Ut=26):(W.prototype.am=function(e,t,r,n,i,s){for(var o=t&16383,a=t>>14;--s>=0;){var u=this[e]&16383,c=this[e++]>>14,l=a*u+c*o;u=o*u+((l&16383)<<14)+r[n]+i,i=(u>>28)+(l>>14)+a*c,r[n++]=u&268435455}return i},Ut=28),W.prototype.DB=Ut,W.prototype.DM=(1<<Ut)-1,W.prototype.DV=1<<Ut;var Dn=52;W.prototype.FV=Math.pow(2,Dn),W.prototype.F1=Dn-Ut,W.prototype.F2=2*Ut-Dn;var cn=[],Re,Tt;for(Re=48,Tt=0;Tt<=9;++Tt)cn[Re++]=Tt;for(Re=97,Tt=10;Tt<36;++Tt)cn[Re++]=Tt;for(Re=65,Tt=10;Tt<36;++Tt)cn[Re++]=Tt;function jo(e,t){var r=cn[e.charCodeAt(t)];return r!=null?r:-1}function Ht(e){var t=Y();return t.fromInt(e),t}function _r(e){var t=1,r;return(r=e>>>16)!=0&&(e=r,t+=16),(r=e>>8)!=0&&(e=r,t+=8),(r=e>>4)!=0&&(e=r,t+=4),(r=e>>2)!=0&&(e=r,t+=2),(r=e>>1)!=0&&(e=r,t+=1),t}W.ZERO=Ht(0),W.ONE=Ht(1);var Ly=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(t){var r,n,i;for(r=0;r<256;++r)this.S[r]=r;for(n=0,r=0;r<256;++r)n=n+this.S[r]+t[r%t.length]&255,i=this.S[r],this.S[r]=this.S[n],this.S[n]=i;this.i=0,this.j=0},e.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},e}();function Vy(){return new Ly}var mc=256,wr,qt=null,Ot;if(qt==null){qt=[],Ot=0;var Er=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var Cn=new Uint32Array(256);for(window.crypto.getRandomValues(Cn),Er=0;Er<Cn.length;++Er)qt[Ot++]=Cn[Er]&255}var Sr=0,xr=function(e){if(Sr=Sr||0,Sr>=256||Ot>=mc){window.removeEventListener?window.removeEventListener("mousemove",xr,!1):window.detachEvent&&window.detachEvent("onmousemove",xr);return}try{var t=e.x+e.y;qt[Ot++]=t&255,Sr+=1}catch(r){}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",xr,!1):window.attachEvent&&window.attachEvent("onmousemove",xr))}function Uy(){if(wr==null){for(wr=Vy();Ot<mc;){var e=Math.floor(65536*Math.random());qt[Ot++]=e&255}for(wr.init(qt),Ot=0;Ot<qt.length;++Ot)qt[Ot]=0;Ot=0}return wr.next()}var ni=function(){function e(){}return e.prototype.nextBytes=function(t){for(var r=0;r<t.length;++r)t[r]=Uy()},e}();function Hy(e,t){if(t<e.length+22)return console.error("Message too long for RSA"),null;for(var r=t-e.length-6,n="",i=0;i<r;i+=2)n+="ff";var s="0001"+n+"00"+e;return et(s,16)}function zy(e,t){if(t<e.length+11)return console.error("Message too long for RSA"),null;for(var r=[],n=e.length-1;n>=0&&t>0;){var i=e.charCodeAt(n--);i<128?r[--t]=i:i>127&&i<2048?(r[--t]=i&63|128,r[--t]=i>>6|192):(r[--t]=i&63|128,r[--t]=i>>6&63|128,r[--t]=i>>12|224)}r[--t]=0;for(var s=new ni,o=[];t>2;){for(o[0]=0;o[0]==0;)s.nextBytes(o);r[--t]=o[0]}return r[--t]=2,r[--t]=0,new W(r)}var qy=function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(t){if(this.p==null||this.q==null)return t.modPow(this.d,this.n);for(var r=t.mod(this.p).modPow(this.dmp1,this.p),n=t.mod(this.q).modPow(this.dmq1,this.q);r.compareTo(n)<0;)r=r.add(this.p);return r.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},e.prototype.setPublic=function(t,r){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=et(t,16),this.e=parseInt(r,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(t){var r=this.n.bitLength()+7>>3,n=zy(t,r);if(n==null)return null;var i=this.doPublic(n);if(i==null)return null;for(var s=i.toString(16),o=s.length,a=0;a<r*2-o;a++)s="0"+s;return s},e.prototype.setPrivate=function(t,r,n){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=et(t,16),this.e=parseInt(r,16),this.d=et(n,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(t,r,n,i,s,o,a,u){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=et(t,16),this.e=parseInt(r,16),this.d=et(n,16),this.p=et(i,16),this.q=et(s,16),this.dmp1=et(o,16),this.dmq1=et(a,16),this.coeff=et(u,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(t,r){var n=new ni,i=t>>1;this.e=parseInt(r,16);for(var s=new W(r,16);;){for(;this.p=new W(t-i,1,n),!(this.p.subtract(W.ONE).gcd(s).compareTo(W.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new W(i,1,n),!(this.q.subtract(W.ONE).gcd(s).compareTo(W.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var a=this.p.subtract(W.ONE),u=this.q.subtract(W.ONE),c=a.multiply(u);if(c.gcd(s).compareTo(W.ONE)==0){this.n=this.p.multiply(this.q),this.d=s.modInverse(c),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(u),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(t){var r=et(t,16),n=this.doPrivate(r);return n==null?null:Ky(n,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(t,r,n){var i=new ni,s=t>>1;this.e=parseInt(r,16);var o=new W(r,16),a=this,u=function(){var c=function(){if(a.p.compareTo(a.q)<=0){var d=a.p;a.p=a.q,a.q=d}var h=a.p.subtract(W.ONE),m=a.q.subtract(W.ONE),p=h.multiply(m);p.gcd(o).compareTo(W.ONE)==0?(a.n=a.p.multiply(a.q),a.d=o.modInverse(p),a.dmp1=a.d.mod(h),a.dmq1=a.d.mod(m),a.coeff=a.q.modInverse(a.p),setTimeout(function(){n()},0)):setTimeout(u,0)},l=function(){a.q=Y(),a.q.fromNumberAsync(s,1,i,function(){a.q.subtract(W.ONE).gcda(o,function(d){d.compareTo(W.ONE)==0&&a.q.isProbablePrime(10)?setTimeout(c,0):setTimeout(l,0)})})},f=function(){a.p=Y(),a.p.fromNumberAsync(t-s,1,i,function(){a.p.subtract(W.ONE).gcda(o,function(d){d.compareTo(W.ONE)==0&&a.p.isProbablePrime(10)?setTimeout(l,0):setTimeout(f,0)})})};setTimeout(f,0)};setTimeout(u,0)},e.prototype.sign=function(t,r,n){var i=Jy(n),s=i+r(t).toString(),o=Hy(s,this.n.bitLength()/4);if(o==null)return null;var a=this.doPrivate(o);if(a==null)return null;var u=a.toString(16);return u.length&1?"0"+u:u},e.prototype.verify=function(t,r,n){var i=et(r,16),s=this.doPublic(i);if(s==null)return null;var o=s.toString(16).replace(/^1f+00/,""),a=Wy(o);return a==n(t).toString()},e}();function Ky(e,t){for(var r=e.toByteArray(),n=0;n<r.length&&r[n]==0;)++n;if(r.length-n!=t-1||r[n]!=2)return null;for(++n;r[n]!=0;)if(++n>=r.length)return null;for(var i="";++n<r.length;){var s=r[n]&255;s<128?i+=String.fromCharCode(s):s>191&&s<224?(i+=String.fromCharCode((s&31)<<6|r[n+1]&63),++n):(i+=String.fromCharCode((s&15)<<12|(r[n+1]&63)<<6|r[n+2]&63),n+=2)}return i}var jr={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Jy(e){return jr[e]||""}function Wy(e){for(var t in jr)if(jr.hasOwnProperty(t)){var r=jr[t],n=r.length;if(e.substr(0,n)==r)return e.substr(n)}return e}/*!
|
|
27
|
-
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
|
28
|
-
Code licensed under the BSD License:
|
|
29
|
-
http://developer.yahoo.com/yui/license.html
|
|
30
|
-
version: 2.9.0
|
|
31
|
-
*/var rt={};rt.lang={extend:function(e,t,r){if(!t||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var n=function(){};if(n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t),r){var i;for(i in r)e.prototype[i]=r[i];var s=function(){},o=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(s=function(a,u){for(i=0;i<o.length;i=i+1){var c=o[i],l=u[c];typeof l=="function"&&l!=Object.prototype[c]&&(a[c]=l)}})}catch(a){}s(e.prototype,r)}}};/**
|
|
32
|
-
* @fileOverview
|
|
33
|
-
* @name asn1-1.0.js
|
|
34
|
-
* @author Kenji Urushima kenji.urushima@gmail.com
|
|
35
|
-
* @version asn1 1.0.13 (2017-Jun-02)
|
|
36
|
-
* @since jsrsasign 2.1
|
|
37
|
-
* @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
|
|
38
|
-
*/var j={};(typeof j.asn1>"u"||!j.asn1)&&(j.asn1={}),j.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(e){var t=e.toString(16);if(t.substr(0,1)!="-")t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var r=t.substr(1),n=r.length;n%2==1?n+=1:t.match(/^[0-7]/)||(n+=2);for(var i="",s=0;s<n;s++)i+="f";var o=new W(i,16),a=o.xor(e).add(W.ONE);t=a.toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(e,t){return hextopem(e,t)},this.newObject=function(e){var t=j,r=t.asn1,n=r.DERBoolean,i=r.DERInteger,s=r.DERBitString,o=r.DEROctetString,a=r.DERNull,u=r.DERObjectIdentifier,c=r.DEREnumerated,l=r.DERUTF8String,f=r.DERNumericString,d=r.DERPrintableString,h=r.DERTeletexString,m=r.DERIA5String,p=r.DERUTCTime,b=r.DERGeneralizedTime,E=r.DERSequence,g=r.DERSet,y=r.DERTaggedObject,_=r.ASN1Util.newObject,S=Object.keys(e);if(S.length!=1)throw"key of param shall be only one.";var v=S[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+v+":")==-1)throw"undefined key: "+v;if(v=="bool")return new n(e[v]);if(v=="int")return new i(e[v]);if(v=="bitstr")return new s(e[v]);if(v=="octstr")return new o(e[v]);if(v=="null")return new a(e[v]);if(v=="oid")return new u(e[v]);if(v=="enum")return new c(e[v]);if(v=="utf8str")return new l(e[v]);if(v=="numstr")return new f(e[v]);if(v=="prnstr")return new d(e[v]);if(v=="telstr")return new h(e[v]);if(v=="ia5str")return new m(e[v]);if(v=="utctime")return new p(e[v]);if(v=="gentime")return new b(e[v]);if(v=="seq"){for(var x=e[v],$=[],V=0;V<x.length;V++){var w=_(x[V]);$.push(w)}return new E({array:$})}if(v=="set"){for(var x=e[v],$=[],V=0;V<x.length;V++){var w=_(x[V]);$.push(w)}return new g({array:$})}if(v=="tag"){var T=e[v];if(Object.prototype.toString.call(T)==="[object Array]"&&T.length==3){var F=_(T[2]);return new y({tag:T[0],explicit:T[1],obj:F})}else{var C={};if(T.explicit!==void 0&&(C.explicit=T.explicit),T.tag!==void 0&&(C.tag=T.tag),T.obj===void 0)throw"obj shall be specified for 'tag'.";return C.obj=_(T.obj),new y(C)}}},this.jsonToASN1HEX=function(e){var t=this.newObject(e);return t.getEncodedHex()}},j.asn1.ASN1Util.oidHexToInt=function(e){for(var i="",t=parseInt(e.substr(0,2),16),r=Math.floor(t/40),n=t%40,i=r+"."+n,s="",o=2;o<e.length;o+=2){var a=parseInt(e.substr(o,2),16),u=("00000000"+a.toString(2)).slice(-8);if(s=s+u.substr(1,7),u.substr(0,1)=="0"){var c=new W(s,2);i=i+"."+c.toString(10),s=""}}return i},j.asn1.ASN1Util.oidIntToHex=function(e){var t=function(a){var u=a.toString(16);return u.length==1&&(u="0"+u),u},r=function(a){var u="",c=new W(a,10),l=c.toString(2),f=7-l.length%7;f==7&&(f=0);for(var d="",h=0;h<f;h++)d+="0";l=d+l;for(var h=0;h<l.length-1;h+=7){var m=l.substr(h,7);h!=l.length-7&&(m="1"+m),u+=t(parseInt(m,2))}return u};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var n="",i=e.split("."),s=parseInt(i[0])*40+parseInt(i[1]);n+=t(s),i.splice(0,2);for(var o=0;o<i.length;o++)n+=r(i[o]);return n},j.asn1.ASN1Object=function(){var e="";this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+e.length+",v="+this.hV;var t=this.hV.length/2,r=t.toString(16);if(r.length%2==1&&(r="0"+r),t<128)return r;var n=r.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);var i=128+n;return i.toString(16)+r},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},j.asn1.DERAbstractString=function(e){j.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"?this.setString(e):typeof e.str<"u"?this.setString(e.str):typeof e.hex<"u"&&this.setStringHex(e.hex))},rt.lang.extend(j.asn1.DERAbstractString,j.asn1.ASN1Object),j.asn1.DERAbstractTime=function(e){j.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){utc=t.getTime()+t.getTimezoneOffset()*6e4;var r=new Date(utc);return r},this.formatDate=function(t,r,n){var i=this.zeroPadding,s=this.localDateToUTC(t),o=String(s.getFullYear());r=="utc"&&(o=o.substr(2,2));var a=i(String(s.getMonth()+1),2),u=i(String(s.getDate()),2),c=i(String(s.getHours()),2),l=i(String(s.getMinutes()),2),f=i(String(s.getSeconds()),2),d=o+a+u+c+l+f;if(n===!0){var h=s.getMilliseconds();if(h!=0){var m=i(String(h),3);m=m.replace(/[0]+$/,""),d=d+"."+m}}return d+"Z"},this.zeroPadding=function(t,r){return t.length>=r?t:new Array(r-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,r,n,i,s,o){var a=new Date(Date.UTC(t,r-1,n,i,s,o,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}},rt.lang.extend(j.asn1.DERAbstractTime,j.asn1.ASN1Object),j.asn1.DERAbstractStructured=function(e){j.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,typeof e<"u"&&typeof e.array<"u"&&(this.asn1Array=e.array)},rt.lang.extend(j.asn1.DERAbstractStructured,j.asn1.ASN1Object),j.asn1.DERBoolean=function(){j.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},rt.lang.extend(j.asn1.DERBoolean,j.asn1.ASN1Object),j.asn1.DERInteger=function(e){j.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=j.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var r=new W(String(t),10);this.setByBigInteger(r)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.bigint<"u"?this.setByBigInteger(e.bigint):typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},rt.lang.extend(j.asn1.DERInteger,j.asn1.ASN1Object),j.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var t=j.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.getEncodedHex()}j.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(r){this.hTLV=null,this.isModified=!0,this.hV=r},this.setUnusedBitsAndHexValue=function(r,n){if(r<0||7<r)throw"unused bits shall be from 0 to 7: u = "+r;var i="0"+r;this.hTLV=null,this.isModified=!0,this.hV=i+n},this.setByBinaryString=function(r){r=r.replace(/0+$/,"");var n=8-r.length%8;n==8&&(n=0);for(var i=0;i<=n;i++)r+="0";for(var s="",i=0;i<r.length-1;i+=8){var o=r.substr(i,8),a=parseInt(o,2).toString(16);a.length==1&&(a="0"+a),s+=a}this.hTLV=null,this.isModified=!0,this.hV="0"+n+s},this.setByBooleanArray=function(r){for(var n="",i=0;i<r.length;i++)r[i]==!0?n+="1":n+="0";this.setByBinaryString(n)},this.newFalseArray=function(r){for(var n=new Array(r),i=0;i<r;i++)n[i]=!1;return n},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e=="string"&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):typeof e.hex<"u"?this.setHexValueIncludingUnusedBits(e.hex):typeof e.bin<"u"?this.setByBinaryString(e.bin):typeof e.array<"u"&&this.setByBooleanArray(e.array))},rt.lang.extend(j.asn1.DERBitString,j.asn1.ASN1Object),j.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var t=j.asn1.ASN1Util.newObject(e.obj);e.hex=t.getEncodedHex()}j.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},rt.lang.extend(j.asn1.DEROctetString,j.asn1.DERAbstractString),j.asn1.DERNull=function(){j.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},rt.lang.extend(j.asn1.DERNull,j.asn1.ASN1Object),j.asn1.DERObjectIdentifier=function(e){var t=function(n){var i=n.toString(16);return i.length==1&&(i="0"+i),i},r=function(n){var i="",s=new W(n,10),o=s.toString(2),a=7-o.length%7;a==7&&(a=0);for(var u="",c=0;c<a;c++)u+="0";o=u+o;for(var c=0;c<o.length-1;c+=7){var l=o.substr(c,7);c!=o.length-7&&(l="1"+l),i+=t(parseInt(l,2))}return i};j.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(n){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=n},this.setValueOidString=function(n){if(!n.match(/^[0-9.]+$/))throw"malformed oid string: "+n;var i="",s=n.split("."),o=parseInt(s[0])*40+parseInt(s[1]);i+=t(o),s.splice(0,2);for(var a=0;a<s.length;a++)i+=r(s[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(n){var i=j.asn1.x509.OID.name2oid(n);if(i!=="")this.setValueOidString(i);else throw"DERObjectIdentifier oidName undefined: "+n},this.getFreshValueHex=function(){return this.hV},e!==void 0&&(typeof e=="string"?e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e):e.oid!==void 0?this.setValueOidString(e.oid):e.hex!==void 0?this.setValueHex(e.hex):e.name!==void 0&&this.setValueName(e.name))},rt.lang.extend(j.asn1.DERObjectIdentifier,j.asn1.ASN1Object),j.asn1.DEREnumerated=function(e){j.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=j.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var r=new W(String(t),10);this.setByBigInteger(r)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.int<"u"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex<"u"&&this.setValueHex(e.hex))},rt.lang.extend(j.asn1.DEREnumerated,j.asn1.ASN1Object),j.asn1.DERUTF8String=function(e){j.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},rt.lang.extend(j.asn1.DERUTF8String,j.asn1.DERAbstractString),j.asn1.DERNumericString=function(e){j.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},rt.lang.extend(j.asn1.DERNumericString,j.asn1.DERAbstractString),j.asn1.DERPrintableString=function(e){j.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},rt.lang.extend(j.asn1.DERPrintableString,j.asn1.DERAbstractString),j.asn1.DERTeletexString=function(e){j.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},rt.lang.extend(j.asn1.DERTeletexString,j.asn1.DERAbstractString),j.asn1.DERIA5String=function(e){j.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},rt.lang.extend(j.asn1.DERIA5String,j.asn1.DERAbstractString),j.asn1.DERUTCTime=function(e){j.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{12}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date))},rt.lang.extend(j.asn1.DERUTCTime,j.asn1.DERAbstractTime),j.asn1.DERGeneralizedTime=function(e){j.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{14}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date),e.millis===!0&&(this.withMillis=!0))},rt.lang.extend(j.asn1.DERGeneralizedTime,j.asn1.DERAbstractTime),j.asn1.DERSequence=function(e){j.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var t="",r=0;r<this.asn1Array.length;r++){var n=this.asn1Array[r];t+=n.getEncodedHex()}return this.hV=t,this.hV}},rt.lang.extend(j.asn1.DERSequence,j.asn1.DERAbstractStructured),j.asn1.DERSet=function(e){j.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,r=0;r<this.asn1Array.length;r++){var n=this.asn1Array[r];t.push(n.getEncodedHex())}return this.sortFlag==!0&&t.sort(),this.hV=t.join(""),this.hV},typeof e<"u"&&typeof e.sortflag<"u"&&e.sortflag==!1&&(this.sortFlag=!1)},rt.lang.extend(j.asn1.DERSet,j.asn1.DERAbstractStructured),j.asn1.DERTaggedObject=function(e){j.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,r,n){this.hT=r,this.isExplicit=t,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,r),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof e<"u"&&(typeof e.tag<"u"&&(this.hT=e.tag),typeof e.explicit<"u"&&(this.isExplicit=e.explicit),typeof e.obj<"u"&&(this.asn1Object=e.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},rt.lang.extend(j.asn1.DERTaggedObject,j.asn1.ASN1Object);var Yy=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Do=function(e){Yy(t,e);function t(r){var n=e.call(this)||this;return r&&(typeof r=="string"?n.parseKey(r):(t.hasPrivateKeyProperty(r)||t.hasPublicKeyProperty(r))&&n.parsePropertiesFrom(r)),n}return t.prototype.parseKey=function(r){try{var n=0,i=0,s=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,o=s.test(r)?Cy.decode(r):ri.unarmor(r),a=By.decode(o);if(a.sub.length===3&&(a=a.sub[2].sub[0]),a.sub.length===9){n=a.sub[1].getHexStringValue(),this.n=et(n,16),i=a.sub[2].getHexStringValue(),this.e=parseInt(i,16);var u=a.sub[3].getHexStringValue();this.d=et(u,16);var c=a.sub[4].getHexStringValue();this.p=et(c,16);var l=a.sub[5].getHexStringValue();this.q=et(l,16);var f=a.sub[6].getHexStringValue();this.dmp1=et(f,16);var d=a.sub[7].getHexStringValue();this.dmq1=et(d,16);var h=a.sub[8].getHexStringValue();this.coeff=et(h,16)}else if(a.sub.length===2)if(a.sub[0].sub){var m=a.sub[1],p=m.sub[0];n=p.sub[0].getHexStringValue(),this.n=et(n,16),i=p.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else n=a.sub[0].getHexStringValue(),this.n=et(n,16),i=a.sub[1].getHexStringValue(),this.e=parseInt(i,16);else return!1;return!0}catch(b){return!1}},t.prototype.getPrivateBaseKey=function(){var r={array:[new j.asn1.DERInteger({int:0}),new j.asn1.DERInteger({bigint:this.n}),new j.asn1.DERInteger({int:this.e}),new j.asn1.DERInteger({bigint:this.d}),new j.asn1.DERInteger({bigint:this.p}),new j.asn1.DERInteger({bigint:this.q}),new j.asn1.DERInteger({bigint:this.dmp1}),new j.asn1.DERInteger({bigint:this.dmq1}),new j.asn1.DERInteger({bigint:this.coeff})]},n=new j.asn1.DERSequence(r);return n.getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return qr(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var r=new j.asn1.DERSequence({array:[new j.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new j.asn1.DERNull]}),n=new j.asn1.DERSequence({array:[new j.asn1.DERInteger({bigint:this.n}),new j.asn1.DERInteger({int:this.e})]}),i=new j.asn1.DERBitString({hex:"00"+n.getEncodedHex()}),s=new j.asn1.DERSequence({array:[r,i]});return s.getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return qr(this.getPublicBaseKey())},t.wordwrap=function(r,n){if(n=n||64,!r)return r;var i="(.{1,"+n+`})( +|$
|
|
39
|
-
?)|(.{1,`+n+"})";return r.match(RegExp(i,"g")).join(`
|
|
40
|
-
`)},t.prototype.getPrivateKey=function(){var r=`-----BEGIN RSA PRIVATE KEY-----
|
|
41
|
-
`;return r+=t.wordwrap(this.getPrivateBaseKeyB64())+`
|
|
42
|
-
`,r+="-----END RSA PRIVATE KEY-----",r},t.prototype.getPublicKey=function(){var r=`-----BEGIN PUBLIC KEY-----
|
|
43
|
-
`;return r+=t.wordwrap(this.getPublicBaseKeyB64())+`
|
|
44
|
-
`,r+="-----END PUBLIC KEY-----",r},t.hasPublicKeyProperty=function(r){return r=r||{},r.hasOwnProperty("n")&&r.hasOwnProperty("e")},t.hasPrivateKeyProperty=function(r){return r=r||{},r.hasOwnProperty("n")&&r.hasOwnProperty("e")&&r.hasOwnProperty("d")&&r.hasOwnProperty("p")&&r.hasOwnProperty("q")&&r.hasOwnProperty("dmp1")&&r.hasOwnProperty("dmq1")&&r.hasOwnProperty("coeff")},t.prototype.parsePropertiesFrom=function(r){this.n=r.n,this.e=r.e,r.hasOwnProperty("d")&&(this.d=r.d,this.p=r.p,this.q=r.q,this.dmp1=r.dmp1,this.dmq1=r.dmq1,this.coeff=r.coeff)},t}(qy),Pn,Gy=typeof process<"u"?(Pn=Ol)===null||Pn===void 0?void 0:Pn.npm_package_version:void 0,gc=function(){function e(t){t===void 0&&(t={}),t=t||{},this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}return e.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new Do(t)},e.prototype.setPrivateKey=function(t){this.setKey(t)},e.prototype.setPublicKey=function(t){this.setKey(t)},e.prototype.decrypt=function(t){try{return this.getKey().decrypt(xo(t))}catch(r){return!1}},e.prototype.encrypt=function(t){try{return qr(this.getKey().encrypt(t))}catch(r){return!1}},e.prototype.sign=function(t,r,n){try{return qr(this.getKey().sign(t,r,n))}catch(i){return!1}},e.prototype.verify=function(t,r,n){try{return this.getKey().verify(t,xo(r),n)}catch(i){return!1}},e.prototype.getKey=function(t){if(!this.key){if(this.key=new Do,t&&{}.toString.call(t)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},e.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},e.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},e.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},e.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},e.version=Gy,e}();const Zy="MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBALdyxTCEB5WcGnbeUyN4xn1cs8z+0tC72vgbd/L99om5TZ0OfRqRb6Y7RJfdimB9LJyvmyP9T1P0jWrHkotq8iUCAwEAAQ==",Xy="MIIBUwIBADANBgkqhkiG9w0BAQEFAASCAT0wggE5AgEAAkEAt3LFMIQHlZwadt5TI3jGfVyzzP7S0Lva+Bt38v32iblNnQ59GpFvpjtEl92KYH0snK+bI/1PU/SNaseSi2ryJQIDAQABAkBGHyXG7MDlbD0lcMhAx9q/cp773fABf70sl3tbM754V+mH8dEiAim398NhhrADz4F4K12H74R39O/0Hjr/VAZlAiEA5+3MoAbnsDOzFP+oT4YZJBjx8MmsukU3AaguPW4tYcMCIQDKfN+Qk/jD3vZlWsUJ23013D2NDSjgcH4gdV71oYb19wIgUMWYhgLhnZPjwmRnEYr6JoApglo6NYT1azZPJEXCuFECIDyQUQYbXCKpw6TZG2oxXigH8dkIgJtwyijHMlnhsE5NAiBxF7HA7U2rDnZ6+VRDXtIg+joD3o1h3bFy2A+QX5yDYA==";function Qy(e){return String(Ey(e))}function t1(e){const t=Vi.parse(e);return cc.stringify(t)}function e1(e){return Vi.stringify(cc.parse(e))}function r1(e,t=Zy){const r=new gc;return r.setKey(t),r.encrypt(e)}function ii(e,t=Xy){const r=new gc;return r.setPrivateKey(t),r.decrypt(e)}function n1(e,t){return hc.encrypt(e,t).toString()}function i1(e,t){return hc.decrypt(e,t).toString(Vi)}const Ui=/^(http|https):\/\/[\w.:\-@]*/,vc=/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/,yc=/^(^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$)|(^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])((\d{4})|\d{3}[Xx])$)$/,bc=/^(0|86|17951)?(1[\d]{10})$/,_c=/^([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[a-zA-Z](([DF]((?![IO])[a-zA-Z0-9](?![IO]))[0-9]{4})|([0-9]{5}[DF]))|[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-Z0-9]{4}[A-Z0-9挂学警港澳]{1})$/;function Hi(e){return Ui.test(e)}function s1(e){return vc.test(e)}function o1(e){return yc.test(e)}function a1(e){return bc.test(e)}function c1(e){return _c.test(e)}var wc={exports:{}};/*! @preserve
|
|
45
|
-
* numeral.js
|
|
46
|
-
* version : 2.0.6
|
|
47
|
-
* author : Adam Draper
|
|
48
|
-
* license : MIT
|
|
49
|
-
* http://adamwdraper.github.com/Numeral-js/
|
|
50
|
-
*/(function(e){(function(t,r){e.exports?e.exports=r():t.numeral=r()})(ft,function(){var t,r,n="2.0.6",i={},s={},o={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},a={currentLocale:o.currentLocale,zeroFormat:o.zeroFormat,nullFormat:o.nullFormat,defaultFormat:o.defaultFormat,scalePercentBy100:o.scalePercentBy100};function u(c,l){this._input=c,this._value=l}return t=function(c){var l,f,d,h;if(t.isNumeral(c))l=c.value();else if(c===0||typeof c>"u")l=0;else if(c===null||r.isNaN(c))l=null;else if(typeof c=="string")if(a.zeroFormat&&c===a.zeroFormat)l=0;else if(a.nullFormat&&c===a.nullFormat||!c.replace(/[^0-9]+/g,"").length)l=null;else{for(f in i)if(h=typeof i[f].regexps.unformat=="function"?i[f].regexps.unformat():i[f].regexps.unformat,h&&c.match(h)){d=i[f].unformat;break}d=d||t._.stringToNumber,l=d(c)}else l=Number(c)||null;return new u(c,l)},t.version=n,t.isNumeral=function(c){return c instanceof u},t._=r={numberToFormat:function(c,l,f){var d=s[t.options.currentLocale],h=!1,m=!1,p=0,b="",E=1e12,g=1e9,y=1e6,_=1e3,S="",v=!1,x,$,V,w,T,F,C;if(c=c||0,$=Math.abs(c),t._.includes(l,"(")?(h=!0,l=l.replace(/[\(|\)]/g,"")):(t._.includes(l,"+")||t._.includes(l,"-"))&&(T=t._.includes(l,"+")?l.indexOf("+"):c<0?l.indexOf("-"):-1,l=l.replace(/[\+|\-]/g,"")),t._.includes(l,"a")&&(x=l.match(/a(k|m|b|t)?/),x=x?x[1]:!1,t._.includes(l," a")&&(b=" "),l=l.replace(new RegExp(b+"a[kmbt]?"),""),$>=E&&!x||x==="t"?(b+=d.abbreviations.trillion,c=c/E):$<E&&$>=g&&!x||x==="b"?(b+=d.abbreviations.billion,c=c/g):$<g&&$>=y&&!x||x==="m"?(b+=d.abbreviations.million,c=c/y):($<y&&$>=_&&!x||x==="k")&&(b+=d.abbreviations.thousand,c=c/_)),t._.includes(l,"[.]")&&(m=!0,l=l.replace("[.]",".")),V=c.toString().split(".")[0],w=l.split(".")[1],F=l.indexOf(","),p=(l.split(".")[0].split(",")[0].match(/0/g)||[]).length,w?(t._.includes(w,"[")?(w=w.replace("]",""),w=w.split("["),S=t._.toFixed(c,w[0].length+w[1].length,f,w[1].length)):S=t._.toFixed(c,w.length,f),V=S.split(".")[0],t._.includes(S,".")?S=d.delimiters.decimal+S.split(".")[1]:S="",m&&Number(S.slice(1))===0&&(S="")):V=t._.toFixed(c,0,f),b&&!x&&Number(V)>=1e3&&b!==d.abbreviations.trillion)switch(V=String(Number(V)/1e3),b){case d.abbreviations.thousand:b=d.abbreviations.million;break;case d.abbreviations.million:b=d.abbreviations.billion;break;case d.abbreviations.billion:b=d.abbreviations.trillion;break}if(t._.includes(V,"-")&&(V=V.slice(1),v=!0),V.length<p)for(var M=p-V.length;M>0;M--)V="0"+V;return F>-1&&(V=V.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+d.delimiters.thousands)),l.indexOf(".")===0&&(V=""),C=V+S+(b||""),h?C=(h&&v?"(":"")+C+(h&&v?")":""):T>=0?C=T===0?(v?"-":"+")+C:C+(v?"-":"+"):v&&(C="-"+C),C},stringToNumber:function(c){var l=s[a.currentLocale],f=c,d={thousand:3,million:6,billion:9,trillion:12},h,m,p;if(a.zeroFormat&&c===a.zeroFormat)m=0;else if(a.nullFormat&&c===a.nullFormat||!c.replace(/[^0-9]+/g,"").length)m=null;else{m=1,l.delimiters.decimal!=="."&&(c=c.replace(/\./g,"").replace(l.delimiters.decimal,"."));for(h in d)if(p=new RegExp("[^a-zA-Z]"+l.abbreviations[h]+"(?:\\)|(\\"+l.currency.symbol+")?(?:\\))?)?$"),f.match(p)){m*=Math.pow(10,d[h]);break}m*=(c.split("-").length+Math.min(c.split("(").length-1,c.split(")").length-1))%2?1:-1,c=c.replace(/[^0-9\.]+/g,""),m*=Number(c)}return m},isNaN:function(c){return typeof c=="number"&&isNaN(c)},includes:function(c,l){return c.indexOf(l)!==-1},insert:function(c,l,f){return c.slice(0,f)+l+c.slice(f)},reduce:function(c,l){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof l!="function")throw new TypeError(l+" is not a function");var f=Object(c),d=f.length>>>0,h=0,m;if(arguments.length===3)m=arguments[2];else{for(;h<d&&!(h in f);)h++;if(h>=d)throw new TypeError("Reduce of empty array with no initial value");m=f[h++]}for(;h<d;h++)h in f&&(m=l(m,f[h],h,f));return m},multiplier:function(c){var l=c.toString().split(".");return l.length<2?1:Math.pow(10,l[1].length)},correctionFactor:function(){var c=Array.prototype.slice.call(arguments);return c.reduce(function(l,f){var d=r.multiplier(f);return l>d?l:d},1)},toFixed:function(c,l,f,d){var h=c.toString().split("."),m=l-(d||0),p,b,E,g;return h.length===2?p=Math.min(Math.max(h[1].length,m),l):p=m,E=Math.pow(10,p),g=(f(c+"e+"+p)/E).toFixed(p),d>l-p&&(b=new RegExp("\\.?0{1,"+(d-(l-p))+"}$"),g=g.replace(b,"")),g}},t.options=a,t.formats=i,t.locales=s,t.locale=function(c){return c&&(a.currentLocale=c.toLowerCase()),a.currentLocale},t.localeData=function(c){if(!c)return s[a.currentLocale];if(c=c.toLowerCase(),!s[c])throw new Error("Unknown locale : "+c);return s[c]},t.reset=function(){for(var c in o)a[c]=o[c]},t.zeroFormat=function(c){a.zeroFormat=typeof c=="string"?c:null},t.nullFormat=function(c){a.nullFormat=typeof c=="string"?c:null},t.defaultFormat=function(c){a.defaultFormat=typeof c=="string"?c:"0.0"},t.register=function(c,l,f){if(l=l.toLowerCase(),this[c+"s"][l])throw new TypeError(l+" "+c+" already registered.");return this[c+"s"][l]=f,f},t.validate=function(c,l){var f,d,h,m,p,b,E,g;if(typeof c!="string"&&(c+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",c)),c=c.trim(),c.match(/^\d+$/))return!0;if(c==="")return!1;try{E=t.localeData(l)}catch(y){E=t.localeData(t.locale())}return h=E.currency.symbol,p=E.abbreviations,f=E.delimiters.decimal,E.delimiters.thousands==="."?d="\\.":d=E.delimiters.thousands,g=c.match(/^[^\d]+/),g!==null&&(c=c.substr(1),g[0]!==h)||(g=c.match(/[^\d]+$/),g!==null&&(c=c.slice(0,-1),g[0]!==p.thousand&&g[0]!==p.million&&g[0]!==p.billion&&g[0]!==p.trillion))?!1:(b=new RegExp(d+"{2}"),c.match(/[^\d.,]/g)?!1:(m=c.split(f),m.length>2?!1:m.length<2?!!m[0].match(/^\d+.*\d$/)&&!m[0].match(b):m[0].length===1?!!m[0].match(/^\d+$/)&&!m[0].match(b)&&!!m[1].match(/^\d+$/):!!m[0].match(/^\d+.*\d$/)&&!m[0].match(b)&&!!m[1].match(/^\d+$/)))},t.fn=u.prototype={clone:function(){return t(this)},format:function(c,l){var f=this._value,d=c||a.defaultFormat,h,m,p;if(l=l||Math.round,f===0&&a.zeroFormat!==null)m=a.zeroFormat;else if(f===null&&a.nullFormat!==null)m=a.nullFormat;else{for(h in i)if(d.match(i[h].regexps.format)){p=i[h].format;break}p=p||t._.numberToFormat,m=p(f,d,l)}return m},value:function(){return this._value},input:function(){return this._input},set:function(c){return this._value=Number(c),this},add:function(c){var l=r.correctionFactor.call(null,this._value,c);function f(d,h,m,p){return d+Math.round(l*h)}return this._value=r.reduce([this._value,c],f,0)/l,this},subtract:function(c){var l=r.correctionFactor.call(null,this._value,c);function f(d,h,m,p){return d-Math.round(l*h)}return this._value=r.reduce([c],f,Math.round(this._value*l))/l,this},multiply:function(c){function l(f,d,h,m){var p=r.correctionFactor(f,d);return Math.round(f*p)*Math.round(d*p)/Math.round(p*p)}return this._value=r.reduce([this._value,c],l,1),this},divide:function(c){function l(f,d,h,m){var p=r.correctionFactor(f,d);return Math.round(f*p)/Math.round(d*p)}return this._value=r.reduce([this._value,c],l),this},difference:function(c){return Math.abs(t(this._value).subtract(c).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(c){var l=c%10;return~~(c%100/10)===1?"th":l===1?"st":l===2?"nd":l===3?"rd":"th"},currency:{symbol:"$"}}),function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(c,l,f){var d=t._.includes(l," BPS")?" ":"",h;return c=c*1e4,l=l.replace(/\s?BPS/,""),h=t._.numberToFormat(c,l,f),t._.includes(h,")")?(h=h.split(""),h.splice(-1,0,d+"BPS"),h=h.join("")):h=h+d+"BPS",h},unformat:function(c){return+(t._.stringToNumber(c)*1e-4).toFixed(15)}})}(),function(){var c={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},l={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},f=c.suffixes.concat(l.suffixes.filter(function(h){return c.suffixes.indexOf(h)<0})),d=f.join("|");d="("+d.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(d)},format:function(h,m,p){var b,E=t._.includes(m,"ib")?l:c,g=t._.includes(m," b")||t._.includes(m," ib")?" ":"",y,_,S;for(m=m.replace(/\s?i?b/,""),y=0;y<=E.suffixes.length;y++)if(_=Math.pow(E.base,y),S=Math.pow(E.base,y+1),h===null||h===0||h>=_&&h<S){g+=E.suffixes[y],_>0&&(h=h/_);break}return b=t._.numberToFormat(h,m,p),b+g},unformat:function(h){var m=t._.stringToNumber(h),p,b;if(m){for(p=c.suffixes.length-1;p>=0;p--){if(t._.includes(h,c.suffixes[p])){b=Math.pow(c.base,p);break}if(t._.includes(h,l.suffixes[p])){b=Math.pow(l.base,p);break}}m*=b||1}return m}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(c,l,f){var d=t.locales[t.options.currentLocale],h={before:l.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:l.match(/([\+|\-|\)|\s|\$]*)$/)[0]},m,p,b;for(l=l.replace(/\s?\$\s?/,""),m=t._.numberToFormat(c,l,f),c>=0?(h.before=h.before.replace(/[\-\(]/,""),h.after=h.after.replace(/[\-\)]/,"")):c<0&&!t._.includes(h.before,"-")&&!t._.includes(h.before,"(")&&(h.before="-"+h.before),b=0;b<h.before.length;b++)switch(p=h.before[b],p){case"$":m=t._.insert(m,d.currency.symbol,b);break;case" ":m=t._.insert(m," ",b+d.currency.symbol.length-1);break}for(b=h.after.length-1;b>=0;b--)switch(p=h.after[b],p){case"$":m=b===h.after.length-1?m+d.currency.symbol:t._.insert(m,d.currency.symbol,-(h.after.length-(1+b)));break;case" ":m=b===h.after.length-1?m+" ":t._.insert(m," ",-(h.after.length-(1+b)+d.currency.symbol.length-1));break}return m}})}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(c,l,f){var d,h=typeof c=="number"&&!t._.isNaN(c)?c.toExponential():"0e+0",m=h.split("e");return l=l.replace(/e[\+|\-]{1}0/,""),d=t._.numberToFormat(Number(m[0]),l,f),d+"e"+m[1]},unformat:function(c){var l=t._.includes(c,"e+")?c.split("e+"):c.split("e-"),f=Number(l[0]),d=Number(l[1]);d=t._.includes(c,"e-")?d*=-1:d;function h(m,p,b,E){var g=t._.correctionFactor(m,p),y=m*g*(p*g)/(g*g);return y}return t._.reduce([f,Math.pow(10,d)],h,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(c,l,f){var d=t.locales[t.options.currentLocale],h,m=t._.includes(l," o")?" ":"";return l=l.replace(/\s?o/,""),m+=d.ordinal(c),h=t._.numberToFormat(c,l,f),h+m}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(c,l,f){var d=t._.includes(l," %")?" ":"",h;return t.options.scalePercentBy100&&(c=c*100),l=l.replace(/\s?\%/,""),h=t._.numberToFormat(c,l,f),t._.includes(h,")")?(h=h.split(""),h.splice(-1,0,d+"%"),h=h.join("")):h=h+d+"%",h},unformat:function(c){var l=t._.stringToNumber(c);return t.options.scalePercentBy100?l*.01:l}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(c,l,f){var d=Math.floor(c/60/60),h=Math.floor((c-d*60*60)/60),m=Math.round(c-d*60*60-h*60);return d+":"+(h<10?"0"+h:h)+":"+(m<10?"0"+m:m)},unformat:function(c){var l=c.split(":"),f=0;return l.length===3?(f=f+Number(l[0])*60*60,f=f+Number(l[1])*60,f=f+Number(l[2])):l.length===2&&(f=f+Number(l[0])*60,f=f+Number(l[1])),Number(f)}})}(),t})})(wc);var u1=wc.exports;const Ec=Be(u1);function l1(e,t="0.00"){return Ec(e).format(t)}function f1(e,t=2,r){return(r?Math.round:Math.floor)(Math.pow(10,t)*e)/Math.pow(10,t)}var Sc={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(ft,function(){var r=1e3,n=6e4,i=36e5,s="millisecond",o="second",a="minute",u="hour",c="day",l="week",f="month",d="quarter",h="year",m="date",p="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(M){var D=["th","st","nd","rd"],N=M%100;return"["+M+(D[(N-20)%10]||D[N]||D[0])+"]"}},y=function(M,D,N){var H=String(M);return!H||H.length>=D?M:""+Array(D+1-H.length).join(N)+M},_={s:y,z:function(M){var D=-M.utcOffset(),N=Math.abs(D),H=Math.floor(N/60),U=N%60;return(D<=0?"+":"-")+y(H,2,"0")+":"+y(U,2,"0")},m:function M(D,N){if(D.date()<N.date())return-M(N,D);var H=12*(N.year()-D.year())+(N.month()-D.month()),U=D.clone().add(H,f),q=N-U<0,K=D.clone().add(H+(q?-1:1),f);return+(-(H+(N-U)/(q?U-K:K-U))||0)},a:function(M){return M<0?Math.ceil(M)||0:Math.floor(M)},p:function(M){return{M:f,y:h,w:l,d:c,D:m,h:u,m:a,s:o,ms:s,Q:d}[M]||String(M||"").toLowerCase().replace(/s$/,"")},u:function(M){return M===void 0}},S="en",v={};v[S]=g;var x="$isDayjsObject",$=function(M){return M instanceof F||!(!M||!M[x])},V=function M(D,N,H){var U;if(!D)return S;if(typeof D=="string"){var q=D.toLowerCase();v[q]&&(U=q),N&&(v[q]=N,U=q);var K=D.split("-");if(!U&&K.length>1)return M(K[0])}else{var R=D.name;v[R]=D,U=R}return!H&&U&&(S=U),U||!H&&S},w=function(M,D){if($(M))return M.clone();var N=typeof D=="object"?D:{};return N.date=M,N.args=arguments,new F(N)},T=_;T.l=V,T.i=$,T.w=function(M,D){return w(M,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var F=function(){function M(N){this.$L=V(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[x]=!0}var D=M.prototype;return D.parse=function(N){this.$d=function(H){var U=H.date,q=H.utc;if(U===null)return new Date(NaN);if(T.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var K=U.match(b);if(K){var R=K[2]-1||0,P=(K[7]||"0").substring(0,3);return q?new Date(Date.UTC(K[1],R,K[3]||1,K[4]||0,K[5]||0,K[6]||0,P)):new Date(K[1],R,K[3]||1,K[4]||0,K[5]||0,K[6]||0,P)}}return new Date(U)}(N),this.init()},D.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},D.$utils=function(){return T},D.isValid=function(){return this.$d.toString()!==p},D.isSame=function(N,H){var U=w(N);return this.startOf(H)<=U&&U<=this.endOf(H)},D.isAfter=function(N,H){return w(N)<this.startOf(H)},D.isBefore=function(N,H){return this.endOf(H)<w(N)},D.$g=function(N,H,U){return T.u(N)?this[H]:this.set(U,N)},D.unix=function(){return Math.floor(this.valueOf()/1e3)},D.valueOf=function(){return this.$d.getTime()},D.startOf=function(N,H){var U=this,q=!!T.u(H)||H,K=T.p(N),R=function(Yt,pt){var Vt=T.w(U.$u?Date.UTC(U.$y,pt,Yt):new Date(U.$y,pt,Yt),U);return q?Vt:Vt.endOf(c)},P=function(Yt,pt){return T.w(U.toDate()[Yt].apply(U.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(pt)),U)},B=this.$W,k=this.$M,St=this.$D,de="set"+(this.$u?"UTC":"");switch(K){case h:return q?R(1,0):R(31,11);case f:return q?R(1,k):R(0,k+1);case l:var Wt=this.$locale().weekStart||0,Fe=(B<Wt?B+7:B)-Wt;return R(q?St-Fe:St+(6-Fe),k);case c:case m:return P(de+"Hours",0);case u:return P(de+"Minutes",1);case a:return P(de+"Seconds",2);case o:return P(de+"Milliseconds",3);default:return this.clone()}},D.endOf=function(N){return this.startOf(N,!1)},D.$set=function(N,H){var U,q=T.p(N),K="set"+(this.$u?"UTC":""),R=(U={},U[c]=K+"Date",U[m]=K+"Date",U[f]=K+"Month",U[h]=K+"FullYear",U[u]=K+"Hours",U[a]=K+"Minutes",U[o]=K+"Seconds",U[s]=K+"Milliseconds",U)[q],P=q===c?this.$D+(H-this.$W):H;if(q===f||q===h){var B=this.clone().set(m,1);B.$d[R](P),B.init(),this.$d=B.set(m,Math.min(this.$D,B.daysInMonth())).$d}else R&&this.$d[R](P);return this.init(),this},D.set=function(N,H){return this.clone().$set(N,H)},D.get=function(N){return this[T.p(N)]()},D.add=function(N,H){var U,q=this;N=Number(N);var K=T.p(H),R=function(k){var St=w(q);return T.w(St.date(St.date()+Math.round(k*N)),q)};if(K===f)return this.set(f,this.$M+N);if(K===h)return this.set(h,this.$y+N);if(K===c)return R(1);if(K===l)return R(7);var P=(U={},U[a]=n,U[u]=i,U[o]=r,U)[K]||1,B=this.$d.getTime()+N*P;return T.w(B,this)},D.subtract=function(N,H){return this.add(-1*N,H)},D.format=function(N){var H=this,U=this.$locale();if(!this.isValid())return U.invalidDate||p;var q=N||"YYYY-MM-DDTHH:mm:ssZ",K=T.z(this),R=this.$H,P=this.$m,B=this.$M,k=U.weekdays,St=U.months,de=U.meridiem,Wt=function(pt,Vt,Le,mr){return pt&&(pt[Vt]||pt(H,q))||Le[Vt].slice(0,mr)},Fe=function(pt){return T.s(R%12||12,pt,"0")},Yt=de||function(pt,Vt,Le){var mr=pt<12?"AM":"PM";return Le?mr.toLowerCase():mr};return q.replace(E,function(pt,Vt){return Vt||function(Le){switch(Le){case"YY":return String(H.$y).slice(-2);case"YYYY":return T.s(H.$y,4,"0");case"M":return B+1;case"MM":return T.s(B+1,2,"0");case"MMM":return Wt(U.monthsShort,B,St,3);case"MMMM":return Wt(St,B);case"D":return H.$D;case"DD":return T.s(H.$D,2,"0");case"d":return String(H.$W);case"dd":return Wt(U.weekdaysMin,H.$W,k,2);case"ddd":return Wt(U.weekdaysShort,H.$W,k,3);case"dddd":return k[H.$W];case"H":return String(R);case"HH":return T.s(R,2,"0");case"h":return Fe(1);case"hh":return Fe(2);case"a":return Yt(R,P,!0);case"A":return Yt(R,P,!1);case"m":return String(P);case"mm":return T.s(P,2,"0");case"s":return String(H.$s);case"ss":return T.s(H.$s,2,"0");case"SSS":return T.s(H.$ms,3,"0");case"Z":return K}return null}(pt)||K.replace(":","")})},D.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},D.diff=function(N,H,U){var q,K=this,R=T.p(H),P=w(N),B=(P.utcOffset()-this.utcOffset())*n,k=this-P,St=function(){return T.m(K,P)};switch(R){case h:q=St()/12;break;case f:q=St();break;case d:q=St()/3;break;case l:q=(k-B)/6048e5;break;case c:q=(k-B)/864e5;break;case u:q=k/i;break;case a:q=k/n;break;case o:q=k/r;break;default:q=k}return U?q:T.a(q)},D.daysInMonth=function(){return this.endOf(f).$D},D.$locale=function(){return v[this.$L]},D.locale=function(N,H){if(!N)return this.$L;var U=this.clone(),q=V(N,H,!0);return q&&(U.$L=q),U},D.clone=function(){return T.w(this.$d,this)},D.toDate=function(){return new Date(this.valueOf())},D.toJSON=function(){return this.isValid()?this.toISOString():null},D.toISOString=function(){return this.$d.toISOString()},D.toString=function(){return this.$d.toUTCString()},M}(),C=F.prototype;return w.prototype=C,[["$ms",s],["$s",o],["$m",a],["$H",u],["$W",c],["$M",f],["$y",h],["$D",m]].forEach(function(M){C[M[1]]=function(D){return this.$g(D,M[0],M[1])}}),w.extend=function(M,D){return M.$i||(M(D,F,w),M.$i=!0),w},w.locale=V,w.isDayjs=$,w.unix=function(M){return w(1e3*M)},w.en=v[S],w.Ls=v,w.p={},w})})(Sc);var xc=Sc.exports;const zi=Be(xc);var h1={exports:{}};(function(e,t){(function(r,n){e.exports=n(xc)})(ft,function(r){function n(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var i=n(r),s={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(o,a){return a==="W"?o+"周":o+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(o,a){var u=100*o+a;return u<600?"凌晨":u<900?"早上":u<1100?"上午":u<1300?"中午":u<1800?"下午":"晚上"}};return i.default.locale(s,null,!0),s})})(h1),zi.locale("zh-cn");function d1(e,t="YYYY-MM-DD HH:mm:ss"){return zi(e).format(t)}let p1=0;const Tc=e=>Object.prototype.toString.call(e),m1=e=>Tc(e).slice(8,-1),g1=e=>typeof e<"u",v1=()=>Date.now(),Oc=()=>+Date.now(),y1=(e,t)=>(e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e);function gt(e=new Date("2025/01/01")){return(++p1).toString(36)+Number(Date.now()-e.getTime()).toString(36)}function $c(e=!0){const t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){const n=Math.random()*16|0;return(r==="x"?n:n&3|8).toString(16)});return e?t.toLowerCase():t.replace(/-/gi,"")}function Se(e=0){return L(this,null,function*(){return new Promise(t=>{setTimeout(t,e)})})}function Ac(e,t){return e.reduce((r,n)=>{const i=n[t];return r.set(i,n),r},new Map)}function un(e){return[...e.entries()].reduce((t,[r,n])=>(t[r]=n,t),{})}function b1(e=[],t="key",r="value"){const n={};for(const i of e)n[i[t]]=i[r];return n}function _1(e={},t="key",r="value"){return Object.entries(e).map(([n,i])=>({[t]:n,[r]:i}))}function Rc(e,t){if(t){const r=Ac(e,t);return Array.from(r.values())}else return Array.from(new Set(e))}function si(e){return e?[].concat(e):[]}function w1(e){return Object.keys(e).reduce((t,r)=>{const n=e[r];return n!=null&&(t[r]=n),t},{})}function Dr(e,t){const r={};if(Array.isArray(t))Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])});else{const n=t;Object.entries(e).forEach(([i,s])=>{n(i,s)||(r[i]=s)})}return r}function jc(e,t){const r={};if(Array.isArray(t))Object.keys(e).forEach(n=>{t.includes(n)&&(r[n]=e[n])});else{const n=t;Object.entries(e).forEach(([i,s])=>{n(i,s)&&(r[i]=s)})}return r}function oi(e){const t=typeof e;return t==="string"?e.trim():Array.isArray(e)?e.map(r=>oi(r)):(e&&t==="object"&&Object.entries(e).forEach(([r,n])=>{e[r]=oi(n)}),e)}function Dc(e=[],t){return t?e.reduce((r,n)=>r+Number(n[t]),0):e.reduce((r,n)=>r+Number(n),0)}function E1(e=[],t){const r=Dc(e,t);return e.length?r/e.length:0}function S1(e,t=","){return e?e.split(t):[]}function x1(e,t=","){return e?e.join(t):""}function T1(e,t="id",r="parentId",n="children",i="null"){const s=Xa(e,r);for(const o of Object.values(s))o.forEach(a=>{a[n]=s[a[t]]||[]});return s[i]}function Cc(e=[]){let t=[];return e.forEach(r=>{const s=r,{children:n}=s,i=bs(s,["children"]);r.children&&r.children.length>0&&(t=t.concat(Cc(r.children))),t.push(i)}),t}var Pc={exports:{}};(function(e){var t=function(){var r=String.fromCharCode,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",s={};function o(u,c){if(!s[u]){s[u]={};for(var l=0;l<u.length;l++)s[u][u.charAt(l)]=l}return s[u][c]}var a={compressToBase64:function(u){if(u==null)return"";var c=a._compress(u,6,function(l){return n.charAt(l)});switch(c.length%4){default:case 0:return c;case 1:return c+"===";case 2:return c+"==";case 3:return c+"="}},decompressFromBase64:function(u){return u==null?"":u==""?null:a._decompress(u.length,32,function(c){return o(n,u.charAt(c))})},compressToUTF16:function(u){return u==null?"":a._compress(u,15,function(c){return r(c+32)})+" "},decompressFromUTF16:function(u){return u==null?"":u==""?null:a._decompress(u.length,16384,function(c){return u.charCodeAt(c)-32})},compressToUint8Array:function(u){for(var c=a.compress(u),l=new Uint8Array(c.length*2),f=0,d=c.length;f<d;f++){var h=c.charCodeAt(f);l[f*2]=h>>>8,l[f*2+1]=h%256}return l},decompressFromUint8Array:function(u){if(u==null)return a.decompress(u);for(var c=new Array(u.length/2),l=0,f=c.length;l<f;l++)c[l]=u[l*2]*256+u[l*2+1];var d=[];return c.forEach(function(h){d.push(r(h))}),a.decompress(d.join(""))},compressToEncodedURIComponent:function(u){return u==null?"":a._compress(u,6,function(c){return i.charAt(c)})},decompressFromEncodedURIComponent:function(u){return u==null?"":u==""?null:(u=u.replace(/ /g,"+"),a._decompress(u.length,32,function(c){return o(i,u.charAt(c))}))},compress:function(u){return a._compress(u,16,function(c){return r(c)})},_compress:function(u,c,l){if(u==null)return"";var f,d,h={},m={},p="",b="",E="",g=2,y=3,_=2,S=[],v=0,x=0,$;for($=0;$<u.length;$+=1)if(p=u.charAt($),Object.prototype.hasOwnProperty.call(h,p)||(h[p]=y++,m[p]=!0),b=E+p,Object.prototype.hasOwnProperty.call(h,b))E=b;else{if(Object.prototype.hasOwnProperty.call(m,E)){if(E.charCodeAt(0)<256){for(f=0;f<_;f++)v=v<<1,x==c-1?(x=0,S.push(l(v)),v=0):x++;for(d=E.charCodeAt(0),f=0;f<8;f++)v=v<<1|d&1,x==c-1?(x=0,S.push(l(v)),v=0):x++,d=d>>1}else{for(d=1,f=0;f<_;f++)v=v<<1|d,x==c-1?(x=0,S.push(l(v)),v=0):x++,d=0;for(d=E.charCodeAt(0),f=0;f<16;f++)v=v<<1|d&1,x==c-1?(x=0,S.push(l(v)),v=0):x++,d=d>>1}g--,g==0&&(g=Math.pow(2,_),_++),delete m[E]}else for(d=h[E],f=0;f<_;f++)v=v<<1|d&1,x==c-1?(x=0,S.push(l(v)),v=0):x++,d=d>>1;g--,g==0&&(g=Math.pow(2,_),_++),h[b]=y++,E=String(p)}if(E!==""){if(Object.prototype.hasOwnProperty.call(m,E)){if(E.charCodeAt(0)<256){for(f=0;f<_;f++)v=v<<1,x==c-1?(x=0,S.push(l(v)),v=0):x++;for(d=E.charCodeAt(0),f=0;f<8;f++)v=v<<1|d&1,x==c-1?(x=0,S.push(l(v)),v=0):x++,d=d>>1}else{for(d=1,f=0;f<_;f++)v=v<<1|d,x==c-1?(x=0,S.push(l(v)),v=0):x++,d=0;for(d=E.charCodeAt(0),f=0;f<16;f++)v=v<<1|d&1,x==c-1?(x=0,S.push(l(v)),v=0):x++,d=d>>1}g--,g==0&&(g=Math.pow(2,_),_++),delete m[E]}else for(d=h[E],f=0;f<_;f++)v=v<<1|d&1,x==c-1?(x=0,S.push(l(v)),v=0):x++,d=d>>1;g--,g==0&&(g=Math.pow(2,_),_++)}for(d=2,f=0;f<_;f++)v=v<<1|d&1,x==c-1?(x=0,S.push(l(v)),v=0):x++,d=d>>1;for(;;)if(v=v<<1,x==c-1){S.push(l(v));break}else x++;return S.join("")},decompress:function(u){return u==null?"":u==""?null:a._decompress(u.length,32768,function(c){return u.charCodeAt(c)})},_decompress:function(u,c,l){var f=[],d=4,h=4,m=3,p="",b=[],E,g,y,_,S,v,x,$={val:l(0),position:c,index:1};for(E=0;E<3;E+=1)f[E]=E;for(y=0,S=Math.pow(2,2),v=1;v!=S;)_=$.val&$.position,$.position>>=1,$.position==0&&($.position=c,$.val=l($.index++)),y|=(_>0?1:0)*v,v<<=1;switch(y){case 0:for(y=0,S=Math.pow(2,8),v=1;v!=S;)_=$.val&$.position,$.position>>=1,$.position==0&&($.position=c,$.val=l($.index++)),y|=(_>0?1:0)*v,v<<=1;x=r(y);break;case 1:for(y=0,S=Math.pow(2,16),v=1;v!=S;)_=$.val&$.position,$.position>>=1,$.position==0&&($.position=c,$.val=l($.index++)),y|=(_>0?1:0)*v,v<<=1;x=r(y);break;case 2:return""}for(f[3]=x,g=x,b.push(x);;){if($.index>u)return"";for(y=0,S=Math.pow(2,m),v=1;v!=S;)_=$.val&$.position,$.position>>=1,$.position==0&&($.position=c,$.val=l($.index++)),y|=(_>0?1:0)*v,v<<=1;switch(x=y){case 0:for(y=0,S=Math.pow(2,8),v=1;v!=S;)_=$.val&$.position,$.position>>=1,$.position==0&&($.position=c,$.val=l($.index++)),y|=(_>0?1:0)*v,v<<=1;f[h++]=r(y),x=h-1,d--;break;case 1:for(y=0,S=Math.pow(2,16),v=1;v!=S;)_=$.val&$.position,$.position>>=1,$.position==0&&($.position=c,$.val=l($.index++)),y|=(_>0?1:0)*v,v<<=1;f[h++]=r(y),x=h-1,d--;break;case 2:return b.join("")}if(d==0&&(d=Math.pow(2,m),m++),f[x])p=f[x];else if(x===h)p=g+g.charAt(0);else return null;b.push(p),f[h++]=g+p.charAt(0),d--,g=p,d==0&&(d=Math.pow(2,m),m++)}}};return a}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})})(Pc);var Nc=Pc.exports;function Bc(e){return{all:e=e||new Map,on:function(t,r){var n=e.get(t);n?n.push(r):e.set(t,[r])},off:function(t,r){var n=e.get(t);n&&(r?n.splice(n.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var n=e.get(t);n&&n.slice().map(function(i){i(r)}),(n=e.get("*"))&&n.slice().map(function(i){i(t,r)})}}}function O1(e){for(var t=[],r=0;r<e.length;){var n=e[r];if(n==="*"||n==="+"||n==="?"){t.push({type:"MODIFIER",index:r,value:e[r++]});continue}if(n==="\\"){t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});continue}if(n==="{"){t.push({type:"OPEN",index:r,value:e[r++]});continue}if(n==="}"){t.push({type:"CLOSE",index:r,value:e[r++]});continue}if(n===":"){for(var i="",s=r+1;s<e.length;){var o=e.charCodeAt(s);if(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||o===95){i+=e[s++];continue}break}if(!i)throw new TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:i}),r=s;continue}if(n==="("){var a=1,u="",s=r+1;if(e[s]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<e.length;){if(e[s]==="\\"){u+=e[s++]+e[s++];continue}if(e[s]===")"){if(a--,a===0){s++;break}}else if(e[s]==="("&&(a++,e[s+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(s));u+=e[s++]}if(a)throw new TypeError("Unbalanced pattern at ".concat(r));if(!u)throw new TypeError("Missing pattern at ".concat(r));t.push({type:"PATTERN",index:r,value:u}),r=s;continue}t.push({type:"CHAR",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}function qi(e,t){t===void 0&&(t={});for(var r=O1(e),n=t.prefixes,i=n===void 0?"./":n,s="[^".concat(_e(t.delimiter||"/#?"),"]+?"),o=[],a=0,u=0,c="",l=function(v){if(u<r.length&&r[u].type===v)return r[u++].value},f=function(v){var x=l(v);if(x!==void 0)return x;var $=r[u],V=$.type,w=$.index;throw new TypeError("Unexpected ".concat(V," at ").concat(w,", expected ").concat(v))},d=function(){for(var v="",x;x=l("CHAR")||l("ESCAPED_CHAR");)v+=x;return v};u<r.length;){var h=l("CHAR"),m=l("NAME"),p=l("PATTERN");if(m||p){var b=h||"";i.indexOf(b)===-1&&(c+=b,b=""),c&&(o.push(c),c=""),o.push({name:m||a++,prefix:b,suffix:"",pattern:p||s,modifier:l("MODIFIER")||""});continue}var E=h||l("ESCAPED_CHAR");if(E){c+=E;continue}c&&(o.push(c),c="");var g=l("OPEN");if(g){var b=d(),y=l("NAME")||"",_=l("PATTERN")||"",S=d();f("CLOSE"),o.push({name:y||(_?a++:""),pattern:y&&!_?s:_,prefix:b,suffix:S,modifier:l("MODIFIER")||""});continue}f("END")}return o}function kc(e,t){return $1(qi(e,t),t)}function $1(e,t){t===void 0&&(t={});var r=Ki(t),n=t.encode,i=n===void 0?function(u){return u}:n,s=t.validate,o=s===void 0?!0:s,a=e.map(function(u){if(typeof u=="object")return new RegExp("^(?:".concat(u.pattern,")$"),r)});return function(u){for(var c="",l=0;l<e.length;l++){var f=e[l];if(typeof f=="string"){c+=f;continue}var d=u?u[f.name]:void 0,h=f.modifier==="?"||f.modifier==="*",m=f.modifier==="*"||f.modifier==="+";if(Array.isArray(d)){if(!m)throw new TypeError('Expected "'.concat(f.name,'" to not repeat, but got an array'));if(d.length===0){if(h)continue;throw new TypeError('Expected "'.concat(f.name,'" to not be empty'))}for(var p=0;p<d.length;p++){var b=i(d[p],f);if(o&&!a[l].test(b))throw new TypeError('Expected all "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(b,'"'));c+=f.prefix+b+f.suffix}continue}if(typeof d=="string"||typeof d=="number"){var b=i(String(d),f);if(o&&!a[l].test(b))throw new TypeError('Expected "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(b,'"'));c+=f.prefix+b+f.suffix;continue}if(!h){var E=m?"an array":"a string";throw new TypeError('Expected "'.concat(f.name,'" to be ').concat(E))}}return c}}function Mc(e,t){var r=[],n=ln(e,r,t);return A1(n,r,t)}function A1(e,t,r){r===void 0&&(r={});var n=r.decode,i=n===void 0?function(s){return s}:n;return function(s){var o=e.exec(s);if(!o)return!1;for(var a=o[0],u=o.index,c=Object.create(null),l=function(d){if(o[d]===void 0)return"continue";var h=t[d-1];h.modifier==="*"||h.modifier==="+"?c[h.name]=o[d].split(h.prefix+h.suffix).map(function(m){return i(m,h)}):c[h.name]=i(o[d],h)},f=1;f<o.length;f++)l(f);return{path:a,index:u,params:c}}}function _e(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function Ki(e){return e&&e.sensitive?"":"i"}function R1(e,t){if(!t)return e;for(var r=/\((?:\?<(.*?)>)?(?!\?)/g,n=0,i=r.exec(e.source);i;)t.push({name:i[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),i=r.exec(e.source);return e}function j1(e,t,r){var n=e.map(function(i){return ln(i,t,r).source});return new RegExp("(?:".concat(n.join("|"),")"),Ki(r))}function D1(e,t,r){return C1(qi(e,r),t,r)}function C1(e,t,r){r===void 0&&(r={});for(var n=r.strict,i=n===void 0?!1:n,s=r.start,o=s===void 0?!0:s,a=r.end,u=a===void 0?!0:a,c=r.encode,l=c===void 0?function(w){return w}:c,f=r.delimiter,d=f===void 0?"/#?":f,h=r.endsWith,m=h===void 0?"":h,p="[".concat(_e(m),"]|$"),b="[".concat(_e(d),"]"),E=o?"^":"",g=0,y=e;g<y.length;g++){var _=y[g];if(typeof _=="string")E+=_e(l(_));else{var S=_e(l(_.prefix)),v=_e(l(_.suffix));if(_.pattern)if(t&&t.push(_),S||v)if(_.modifier==="+"||_.modifier==="*"){var x=_.modifier==="*"?"?":"";E+="(?:".concat(S,"((?:").concat(_.pattern,")(?:").concat(v).concat(S,"(?:").concat(_.pattern,"))*)").concat(v,")").concat(x)}else E+="(?:".concat(S,"(").concat(_.pattern,")").concat(v,")").concat(_.modifier);else _.modifier==="+"||_.modifier==="*"?E+="((?:".concat(_.pattern,")").concat(_.modifier,")"):E+="(".concat(_.pattern,")").concat(_.modifier);else E+="(?:".concat(S).concat(v,")").concat(_.modifier)}}if(u)i||(E+="".concat(b,"?")),E+=r.endsWith?"(?=".concat(p,")"):"$";else{var $=e[e.length-1],V=typeof $=="string"?b.indexOf($[$.length-1])>-1:$===void 0;i||(E+="(?:".concat(b,"(?=").concat(p,"))?")),V||(E+="(?=".concat(b,"|").concat(p,")"))}return new RegExp(E,Ki(r))}function ln(e,t,r){return e instanceof RegExp?R1(e,t):Array.isArray(e)?j1(e,t,r):D1(e,t,r)}const P1=Nc.compress,N1=Nc.decompress;/**!
|
|
51
|
-
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
|
52
|
-
* @name @vtj/core
|
|
53
|
-
* @author CHC chenhuachun1549@dingtalk.com
|
|
54
|
-
* @version 0.11.7
|
|
55
|
-
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
56
|
-
*/const B1="0.11.7",k1="BuiltIn",Ji="VueMaterial",Wi="VueRouterMaterial",M1=[Ji,Wi],I1={vue:"Vue","vue-router":"VueRouter"},Ic={[Ji]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[Wi]:["RouterView","RouterLink"]},F1=["slot","template","component","img","div","p","h1","h2","h3","span","a"];let L1=class{},Fc=class{constructor(){A(this,"listeners",[]);A(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}},Cr=class Lc{constructor(t,r,n){A(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 Lc(n,i),r),{})}},Pr=class Vc{constructor(t){A(this,"name");A(this,"handler");A(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 Vc(i),r),{})}},Ke=class Uc{constructor(t){A(this,"id");A(this,"name","");A(this,"arg");A(this,"modifiers");A(this,"value");A(this,"iterator");this.schema=t,this.id=t.id||gt(),this.update(t)}update(t){Object.assign(this.schema,t);const{name:r,arg:n,modifiers:i,value:s,iterator:o}=this.schema;this.name=r,this.arg=n,this.modifiers=i,this.value=s,this.iterator=o}static parse(t=[]){return t.map(r=>new Uc(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 Lt;let Kr=(Lt=class{constructor(t,r=null){A(this,"__VTJ_NODE__",!0);A(this,"locked",!1);A(this,"id");A(this,"name");A(this,"from");A(this,"invisible",!1);A(this,"children","");A(this,"slot");A(this,"props",{});A(this,"events",{});A(this,"directives",[]);A(this,"disposed",!1);this.parent=r;const{id:n=gt(),name:i,from:s=""}=t;this.id=n,this.name=i,this.from=s,this.update(t,!0),Lt.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=Cr.parse(a),this.events=Pr.parse(u),this.directives=Ke.parse(c),r||I.emit(nt,this)}setChildren(t="",r=!1){Array.isArray(t)?this.children=t.map(n=>new Lt(n,this)):this.children=t,r||I.emit(nt,this)}setSlot(t,r=!1){this.slot=typeof t=="string"?{name:t,params:[]}:t,r||I.emit(nt,this)}setProp(t,r,n,i=!1){const s=this.props[t];s?s.setValue(r):this.props[t]=new Cr(t,r,n),i||I.emit(nt,this)}removeProp(t,r=!1){delete this.props[t],r||I.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 Pr(t),r||I.emit(nt,this)}removeEvent(t,r=!1){delete this.events[t],r||I.emit(nt,this)}setDirective(t,r=!1){const n=t instanceof Ke?t:new Ke(t),i=this.directives.findIndex(s=>s.id===t.id);i>=0?this.directives.splice(i,1,n):this.directives.push(n),r||I.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||I.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||I.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||I.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||I.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||I.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||I.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||I.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,f=Array.isArray(a)?a.map(d=>d.toDsl()):a;return{id:t,name:r,from:n,invisible:i,locked:s,slot:o,children:f,props:Cr.toDsl(u),directives:Ke.toDsl(c),events:Pr.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||I.emit(nt,this),this.parent=null,this.disposed=!0,delete Lt.nodes[this.id])}lock(t=!1){if(this.locked=!0,Array.isArray(this.children))for(const r of this.children)r.lock(!0);t||I.emit(nt,this)}unlock(t=!1){if(this.locked=!1,Array.isArray(this.children))for(const r of this.children)r.unlock(!0);t||I.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||I.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}},A(Lt,"nodes",{}),Lt);const G="EVENT_BLOCK_CHANGE",Qe=class Qe{constructor(t){A(this,"__VTJ_BLOCK__",!0);A(this,"id");A(this,"name","");A(this,"inject",[]);A(this,"state",{});A(this,"lifeCycles",{});A(this,"methods",{});A(this,"computed",{});A(this,"watch",[]);A(this,"css","");A(this,"props",[]);A(this,"emits",[]);A(this,"slots",[]);A(this,"dataSources",{});A(this,"nodes",[]);A(this,"locked",!1);A(this,"disposed",!1);const{id:r}=t;this.id=r||gt(),this.update(t,!0)}update(t,r=!1){for(const i of Qe.normalAttrs){const s=t[i];s&&(this[i]=s)}const{nodes:n=[]}=t;n.length&&(this.nodes=n.map(i=>new Kr(i))),r||I.emit(G,this)}toDsl(t){const{__VTJ_BLOCK__:r,id:n,nodes:i}=this;return st(z({},Qe.normalAttrs.reduce((s,o)=>(s[o]=this[o],s),{})),{__VTJ_BLOCK__:r,__VERSION__:t||Oc().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||I.emit(G,this)}removeFunction(t,r,n=!1){delete this[t][r],n||I.emit(G,this)}setState(t,r,n=!1){this.state[t]=r,n||I.emit(G,this)}removeState(t,r=!1){delete this.state[t],r||I.emit(G,this)}setCss(t,r=!1){this.css=t,r||I.emit(G,this)}setWatch(t,r=!1){t.id=t.id||gt();const n=this.watch.findIndex(i=>i.id&&i.id===t.id||i===t);n>-1?this.watch.splice(n,1,t):this.watch.push(t),r||I.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||I.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||I.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||I.emit(G,this))}setEmit(t,r=!1){const n=bt(t)?{name:t,params:[]}:t,i=this.emits.findIndex(s=>s===n.name||s===n);i>-1?this.emits.splice(i,1,n):this.emits.push(n),r||I.emit(G,this)}removeEmit(t,r=!1){const n=this.emits.findIndex(i=>bt(i)?i===t:i.name===t);n>-1&&(this.emits.splice(n,1),r||I.emit(G,this))}setSlot(t,r=!1){const n=bt(t)?{name:t,params:[]}:t,i=this.slots.findIndex(s=>s===n.name||s===n);i>-1?this.slots.splice(i,1,n):this.slots.push(n),r||I.emit(G,this)}removeSlot(t,r=!1){const n=this.slots.findIndex(i=>bt(i)?i===t:i.name===t);n>-1&&(this.slots.splice(n,1),r||I.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||I.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||I.emit(G,this))}setDataSource(t,r=!1){this.dataSources[t.name]=t,r||I.emit(G,this)}removeDataSource(t,r=!1){delete this.dataSources[t],r||I.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||I.emit(G,this)}insertBefore(t,r,n=!1){t.parent=null;const i=this.nodes.indexOf(r);this.nodes.splice(i,0,t),n||I.emit(G,this)}appendNode(t,r=!1){t.parent=null,this.nodes.push(t),r||I.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||I.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||I.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||I.emit(G,this))}}cloneNode(t,r=!1){const n=Gi(t.toDsl()),i=new Kr(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||I.emit(G,this)}unlock(t=!1){this.locked=!1;for(const r of this.nodes)r.unlock(!0);t||I.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}};A(Qe,"normalAttrs",["name","locked","inject","state","lifeCycles","methods","computed","watch","css","props","emits","slots","dataSources","__TEMPLATE_ID__"]);let Ft=Qe;const it="EVENT_PROJECT_CHANGE",ai="EVENT_PROJECT_ACTIVED",ci="EVENT_PROJECT_DEPS_CHANGE",Je="EVENT_PROJECT_PAGES_CHANGE",we="EVENT_PROJECT_BLOCKS_CHANGE",ui="EVENT_PROJECT_APIS_CHANGE",li="EVENT_PROJECT_META_CHANGE",Hc="EVENT_PROJECT_PUBLISH",zc="EVENT_PROJECT_FILE_PUBLISH",qc="EVENT_PROJECT_GEN_SOURCE",tr=class tr{constructor(t){A(this,"id","");A(this,"platform","web");A(this,"name","");A(this,"description","");A(this,"homepage","");A(this,"dependencies",[]);A(this,"pages",[]);A(this,"blocks",[]);A(this,"apis",[]);A(this,"meta",[]);A(this,"currentFile",null);A(this,"config",{});A(this,"uniConfig",{});A(this,"__BASE_PATH__","/");const{id:r}=t;this.id=r||gt(),this.update(t,!0)}update(t,r=!1){for(const n of tr.attrs){const i=t[n];i&&(this[n]=i)}r||I.emit(it,{model:this,type:"update",data:t})}isPageFile(t){return t.type==="page"}cleanPagesDsl(t){for(const r of t)delete r.dsl,r.children&&r.children.length&&this.cleanPagesDsl(r.children)}toDsl(t){const{id:r}=this,n=tr.attrs.reduce((i,s)=>(i[s]=this[s],i),{});return n.pages&&(n.pages=n.pages.map(i=>ae(st(z({},i),{dsl:void 0}))),this.cleanPagesDsl(n.pages)),n.blocks&&(n.blocks=n.blocks.map(i=>ae(st(z({},i),{dsl:void 0})))),z({__VTJ_PROJECT__:!0,id:r},n)}active(t,r=!1){this.currentFile=t,r||I.emit(ai,{model:this,type:"update",data:t})}deactivate(t=!1){this.currentFile=null,t||I.emit(ai,{model:this,type:"update",data:null})}setDeps(t,r=!1){const n=this.dependencies,i=n.findIndex(o=>o.package===t.package);let s;if(i>-1?(s="update",n.splice(i,1,z(z({},n[i]),t))):(s="create",n.push(t)),!r){const o={model:this,type:s,data:t};I.emit(ci,o),I.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};I.emit(ci,s),I.emit(it,s)}}getPage(t){const r=(n,i=[])=>{for(const s of i){if(s.id===n)return s;if(s.children&&s.children.length){const o=r(n,s.children);if(o)return o}}};return r(t,this.pages)}getPages(){const t=(r=[])=>{let n=[];for(const i of r)i.dir?i.children&&i.children.length&&(n=n.concat(t(i.children))):n.push(i);return n};return t(this.pages)}createPage(t,r,n=!1){return L(this,null,function*(){if(t.id=t.raw?t.name:t.id||gt(),t.type="page",t.dir?t.children=[]:t.dsl=t.dsl||new Ft({id:t.id,name:ei(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};I.emit(Je,i),I.emit(it,i)}!this.currentFile&&!t.dir&&(yield Se(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};I.emit(Je,i),I.emit(it,i)}}clonePage(t,r,n=!1){var f;const i=gt(),s=`${t.name}Copy`,o=`${t.title}_副本`,a=new Ft({id:i,name:s}).toDsl(),u=Dt({},t,{id:i,name:s,title:o,dsl:a}),c=r?((f=this.getPage(r))==null?void 0:f.children)||[]:this.pages,l=c.findIndex(d=>d.id===t.id);if(c.splice(l+1,0,u),!n){const d={model:this,type:"clone",data:{source:t,target:u}};I.emit(Je,d),I.emit(it,d)}}saveToBlock(t,r=!1){return L(this,null,function*(){this.active(t,r),yield Se(1e3);const n=gt(),i=t.name,s=t.title,o=new Ft({id:n,name:i}).toDsl(),a=Dt({},t,{id:n,name:i,title:s,dsl:o,type:"block",fromType:"Schema"});if(this.blocks.push(a),!r){const u={model:this,type:"create",data:a};I.emit(we,u),I.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};I.emit(Je,o),I.emit(it,o)}}getBlock(t){return this.blocks.find(r=>r.id===t)}createBlock(t,r=!1){return L(this,null,function*(){const n=t.id||gt(),i=ei(t.name);t.id=n,t.type="block",t.dsl=new Ft({id:n,name:i}).toDsl(),this.blocks.push(t);const s=t.fromType||"Schema";if(!r){const o={model:this,type:"create",data:t};I.emit(we,o),I.emit(it,o)}!this.currentFile&&s==="Schema"&&(yield Se(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};I.emit(we,i),I.emit(it,i)}}cloneBlock(t,r=!1){const n=gt(),i=`${t.name}Copy`,s=`${t.title}_副本`,o=new Ft({id:n,name:i}).toDsl(),a=Dt({},t,{id:n,name:i,title:s,dsl:o}),u=this.blocks.findIndex(c=>c.id===t.id);if(this.blocks.splice(u+1,0,a),!r){const c={model:this,type:"clone",data:{source:t,target:a}};I.emit(we,c),I.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};I.emit(we,a),I.emit(it,a)}}existBlockName(t,r=[]){return this.blocks.some(n=>n.name===t&&!r.includes(n.id))}existPageName(t,r=[]){return this.getPages().some(n=>n.name===t&&!r.includes(n.id))}setApi(t,r=!1){const n=this.apis.find(s=>s.name===t.name||s.id===t.id);let i;if(n?(i="update",Object.assign(n,t)):(i="create",t.id=gt(),this.apis.push(t)),!r){const s={model:this,type:i,data:t};I.emit(ui,s),I.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};I.emit(ui,i),I.emit(it,i)}}existApiName(t,r=[]){return this.apis.some(n=>n.name===t&&!r.includes(n.id))}setMeta(t,r=!1){const n=this.meta.find(s=>s.code===t.code||s.id===t.id);let i;if(n?(i="update",Object.assign(n,t)):(i="create",t.id=gt(),this.meta.push(t)),!r){const s={model:this,type:i,data:t};I.emit(li,s),I.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};I.emit(li,i),I.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};I.emit(it,n)}}setConfig(t,r=!1){if(this.config=Object.assign(this.config,t),!r){const n={model:this,type:"update",data:t};I.emit(it,n)}}setUniConfig(t,r,n=!1){if(this.uniConfig=Object.assign(this.uniConfig,{[t]:r}),!n){const i={model:this,type:"update",data:this.uniConfig};I.emit(it,i)}}publish(t){const r={model:this,type:"publish",data:t||this};t?I.emit(zc,r):I.emit(Hc,r)}genSource(){const t={model:this,type:"gen",data:null};I.emit(qc,t)}};A(tr,"attrs",["platform","name","homepage","description","dependencies","pages","blocks","apis","meta","config","uniConfig","__BASE_PATH__"]);let ce=tr;const We="EVENT_HISTORY_CHANGE",Nr="EVENT_HISTORY_LOAD";let Yi=class{constructor(t,r={}){A(this,"options",{max:50});A(this,"index",-1);A(this,"id");A(this,"items");Object.assign(this.options,r);const{id:n,items:i=[]}=t;this.id=n,this.items=i}toDsl(){const{id:t,items:r}=this;return{id:t,items:r.map(n=>({id:n.id,label:n.label}))}}get(t){return this.items.find(r=>r.id===t)}add(t,r=!1){const{max:n}=this.options,i={id:gt(),label:new Date().toLocaleString(),dsl:ae(t)};if(this.items.unshift(i),this.items.length>n){const s=this.items.splice(n);r||I.emit(We,{model:this,type:"delete",data:s.map(o=>o.id)})}this.index=-1,r||I.emit(We,{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||I.emit(We,{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&&I.emit(Nr,{model:this,type:"load",data:i})}backward(t=!1){const{index:r,items:n}=this;if(r>=n.length-1)return;r<0&&(this.index=0),++this.index;const i=n[this.index];i&&!t&&I.emit(Nr,{model:this,type:"load",data:i})}load(t,r=!1){const n=this.items.findIndex(i=>i.id===t);n>=0&&(this.index=n,r||I.emit(Nr,{model:this,type:"load",data:this.items[n]}))}clear(t=!1){this.index=-1;const r=this.items.map(n=>n.id);this.items=[],t||I.emit(We,{model:this,type:"clear",data:r})}};const I=Bc();function V1(e){return e instanceof Ft}function U1(e){return e instanceof Kr}function H1(e){return!!e.__VTJ_BLOCK__}function Gi(e){const t=ae(e);return delete t.id,Array.isArray(t.children)&&(t.children=t.children.map(r=>Gi(r))),t}function z1(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 Bw=Object.freeze(Object.defineProperty({__proto__:null,BUILT_IN_COMPONENTS:Ic,BUILT_IN_LIBRARAY_MAP:I1,BUILT_IN_MATERIALS:M1,BUILT_IN_NAME:k1,BUILT_IN_TAGS:F1,BUILT_IN_VUE:Ji,BUILT_IN_VUE_ROUTER:Wi,Base:Fc,BlockModel:Ft,DirectiveModel:Ke,EVENT_BLOCK_CHANGE:G,EVENT_HISTORY_CHANGE:We,EVENT_HISTORY_LOAD:Nr,EVENT_NODE_CHANGE:nt,EVENT_PROJECT_ACTIVED:ai,EVENT_PROJECT_APIS_CHANGE:ui,EVENT_PROJECT_BLOCKS_CHANGE:we,EVENT_PROJECT_CHANGE:it,EVENT_PROJECT_DEPS_CHANGE:ci,EVENT_PROJECT_FILE_PUBLISH:zc,EVENT_PROJECT_GEN_SOURCE:qc,EVENT_PROJECT_META_CHANGE:li,EVENT_PROJECT_PAGES_CHANGE:Je,EVENT_PROJECT_PUBLISH:Hc,EventModel:Pr,HistoryModel:Yi,NodeModel:Kr,ProjectModel:ce,PropModel:Cr,Service:L1,VTJ_CORE_VERSION:B1,cloneDsl:Gi,createNodeFrom:z1,emitter:I,isBlock:V1,isBlockSchema:H1,isNode:U1},Symbol.toStringTag,{value:"Module"}));var q1=Object.defineProperty,K1=(e,t,r)=>t in e?q1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xt=(e,t,r)=>K1(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
|
-
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
|
58
|
-
* @name @vtj/utils
|
|
59
|
-
* @author CHC chenhuachun1549@dingtalk.com
|
|
60
|
-
* @version 0.11.7
|
|
61
|
-
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
62
|
-
*/const J1="0.11.7";/**
|
|
63
|
-
* @vue/shared v3.5.13
|
|
64
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
65
|
-
* @license MIT
|
|
66
|
-
**//*! #__NO_SIDE_EFFECTS__ */function W1(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const Y1=Object.assign,G1=Object.prototype.hasOwnProperty,fi=(e,t)=>G1.call(e,t),xe=Array.isArray,Br=e=>Kc(e)==="[object Map]",Z1=e=>typeof e=="string",hr=e=>typeof e=="symbol",fn=e=>e!==null&&typeof e=="object",X1=Object.prototype.toString,Kc=e=>X1.call(e),Q1=e=>Kc(e).slice(8,-1),Zi=e=>Z1(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ze=(e,t)=>!Object.is(e,t);var t0={ENV_TYPE:"local",NODE_ENV:"production"};let e0,Jc=0,Nn;function Xi(){Jc++}function Qi(){if(--Jc>0)return;let e;for(;Nn;){let t=Nn;for(Nn=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=r}}if(e)throw e}let Jr=!0;const Wc=[];function r0(){Wc.push(Jr),Jr=!1}function n0(){const e=Wc.pop();Jr=e===void 0?!0:e}let Yc=class{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){}trigger(t){this.version++,this.notify(t)}notify(t){Xi();try{t0.NODE_ENV;for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{Qi()}}};const hi=new WeakMap,re=Symbol(""),di=Symbol(""),ir=Symbol("");function vt(e,t,r){if(Jr&&e0){let n=hi.get(e);n||hi.set(e,n=new Map);let i=n.get(r);i||(n.set(r,i=new Yc),i.map=n,i.key=r),i.track()}}function zt(e,t,r,n,i,s){const o=hi.get(e);if(!o)return;const a=u=>{u&&u.trigger()};if(Xi(),t==="clear")o.forEach(a);else{const u=xe(e),c=u&&Zi(r);if(u&&r==="length"){const l=Number(n);o.forEach((f,d)=>{(d==="length"||d===ir||!hr(d)&&d>=l)&&a(f)})}else switch((r!==void 0||o.has(void 0))&&a(o.get(r)),c&&a(o.get(ir)),t){case"add":u?c&&a(o.get("length")):(a(o.get(re)),Br(e)&&a(o.get(di)));break;case"delete":u||(a(o.get(re)),Br(e)&&a(o.get(di)));break;case"set":Br(e)&&a(o.get(re));break}}Qi()}function ve(e){const t=Z(e);return t===e?t:(vt(t,"iterate",ir),Kt(e)?t:t.map(lt))}function ts(e){return vt(e=Z(e),"iterate",ir),e}const i0={__proto__:null,[Symbol.iterator](){return Bn(this,Symbol.iterator,lt)},concat(...e){return ve(this).concat(...e.map(t=>xe(t)?ve(t):t))},entries(){return Bn(this,"entries",e=>(e[1]=lt(e[1]),e))},every(e,t){return Nt(this,"every",e,t,void 0,arguments)},filter(e,t){return Nt(this,"filter",e,t,r=>r.map(lt),arguments)},find(e,t){return Nt(this,"find",e,t,lt,arguments)},findIndex(e,t){return Nt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Nt(this,"findLast",e,t,lt,arguments)},findLastIndex(e,t){return Nt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Nt(this,"forEach",e,t,void 0,arguments)},includes(...e){return kn(this,"includes",e)},indexOf(...e){return kn(this,"indexOf",e)},join(e){return ve(this).join(e)},lastIndexOf(...e){return kn(this,"lastIndexOf",e)},map(e,t){return Nt(this,"map",e,t,void 0,arguments)},pop(){return He(this,"pop")},push(...e){return He(this,"push",e)},reduce(e,...t){return Co(this,"reduce",e,t)},reduceRight(e,...t){return Co(this,"reduceRight",e,t)},shift(){return He(this,"shift")},some(e,t){return Nt(this,"some",e,t,void 0,arguments)},splice(...e){return He(this,"splice",e)},toReversed(){return ve(this).toReversed()},toSorted(e){return ve(this).toSorted(e)},toSpliced(...e){return ve(this).toSpliced(...e)},unshift(...e){return He(this,"unshift",e)},values(){return Bn(this,"values",lt)}};function Bn(e,t,r){const n=ts(e),i=n[t]();return n!==e&&!Kt(e)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.value&&(s.value=r(s.value)),s}),i}const s0=Array.prototype;function Nt(e,t,r,n,i,s){const o=ts(e),a=o!==e&&!Kt(e),u=o[t];if(u!==s0[t]){const f=u.apply(e,s);return a?lt(f):f}let c=r;o!==e&&(a?c=function(f,d){return r.call(this,lt(f),d,e)}:r.length>2&&(c=function(f,d){return r.call(this,f,d,e)}));const l=u.call(o,c,n);return a&&i?i(l):l}function Co(e,t,r,n){const i=ts(e);let s=r;return i!==e&&(Kt(e)?r.length>3&&(s=function(o,a,u){return r.call(this,o,a,u,e)}):s=function(o,a,u){return r.call(this,o,lt(a),u,e)}),i[t](s,...n)}function kn(e,t,r){const n=Z(e);vt(n,"iterate",ir);const i=n[t](...r);return(i===-1||i===!1)&&_0(r[0])?(r[0]=Z(r[0]),n[t](...r)):i}function He(e,t,r=[]){r0(),Xi();const n=Z(e)[t].apply(e,r);return Qi(),n0(),n}const o0=W1("__proto__,__v_isRef,__isVue"),Gc=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(hr));function a0(e){hr(e)||(e=String(e));const t=Z(this);return vt(t,"has",e),t.hasOwnProperty(e)}let Zc=class{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,n){if(r==="__v_skip")return t.__v_skip;const i=this._isReadonly,s=this._isShallow;if(r==="__v_isReactive")return!i;if(r==="__v_isReadonly")return i;if(r==="__v_isShallow")return s;if(r==="__v_raw")return n===(i?s?v0:tu:s?g0:Qc).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=xe(t);if(!i){let u;if(o&&(u=i0[r]))return u;if(r==="hasOwnProperty")return a0}const a=Reflect.get(t,r,Te(t)?t:n);return(hr(r)?Gc.has(r):o0(r))||(i||vt(t,"get",r),s)?a:Te(a)?o&&Zi(r)?a:a.value:fn(a)?i?ru(a):eu(a):a}};class c0 extends Zc{constructor(t=!1){super(!1,t)}set(t,r,n,i){let s=t[r];if(!this._isShallow){const u=je(s);if(!Kt(n)&&!je(n)&&(s=Z(s),n=Z(n)),!xe(t)&&Te(s)&&!Te(n))return u?!1:(s.value=n,!0)}const o=xe(t)&&Zi(r)?Number(r)<t.length:fi(t,r),a=Reflect.set(t,r,n,Te(t)?t:i);return t===Z(i)&&(o?Ze(n,s)&&zt(t,"set",r,n):zt(t,"add",r,n)),a}deleteProperty(t,r){const n=fi(t,r);t[r];const i=Reflect.deleteProperty(t,r);return i&&n&&zt(t,"delete",r,void 0),i}has(t,r){const n=Reflect.has(t,r);return(!hr(r)||!Gc.has(r))&&vt(t,"has",r),n}ownKeys(t){return vt(t,"iterate",xe(t)?"length":re),Reflect.ownKeys(t)}}class u0 extends Zc{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const l0=new c0,f0=new u0,Tr=e=>Reflect.getPrototypeOf(e);function h0(e,t,r){return function(...n){const i=this.__v_raw,s=Z(i),o=Br(s),a=e==="entries"||e===Symbol.iterator&&o,u=e==="keys"&&o,c=i[e](...n),l=t?pi:lt;return!t&&vt(s,"iterate",u?di:re),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:a?[l(f[0]),l(f[1])]:l(f),done:d}},[Symbol.iterator](){return this}}}}function Or(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function d0(e,t){const r={get(n){const i=this.__v_raw,s=Z(i),o=Z(n);e||(Ze(n,o)&&vt(s,"get",n),vt(s,"get",o));const{has:a}=Tr(s),u=e?pi:lt;if(a.call(s,n))return u(i.get(n));if(a.call(s,o))return u(i.get(o));i!==s&&i.get(n)},get size(){const n=this.__v_raw;return!e&&vt(Z(n),"iterate",re),Reflect.get(n,"size",n)},has(n){const i=this.__v_raw,s=Z(i),o=Z(n);return e||(Ze(n,o)&&vt(s,"has",n),vt(s,"has",o)),n===o?i.has(n):i.has(n)||i.has(o)},forEach(n,i){const s=this,o=s.__v_raw,a=Z(o),u=e?pi:lt;return!e&&vt(a,"iterate",re),o.forEach((c,l)=>n.call(i,u(c),u(l),s))}};return Y1(r,e?{add:Or("add"),set:Or("set"),delete:Or("delete"),clear:Or("clear")}:{add(n){!Kt(n)&&!je(n)&&(n=Z(n));const i=Z(this);return Tr(i).has.call(i,n)||(i.add(n),zt(i,"add",n,n)),this},set(n,i){!Kt(i)&&!je(i)&&(i=Z(i));const s=Z(this),{has:o,get:a}=Tr(s);let u=o.call(s,n);u||(n=Z(n),u=o.call(s,n));const c=a.call(s,n);return s.set(n,i),u?Ze(i,c)&&zt(s,"set",n,i):zt(s,"add",n,i),this},delete(n){const i=Z(this),{has:s,get:o}=Tr(i);let a=s.call(i,n);a||(n=Z(n),a=s.call(i,n)),o&&o.call(i,n);const u=i.delete(n);return a&&zt(i,"delete",n,void 0),u},clear(){const n=Z(this),i=n.size!==0,s=n.clear();return i&&zt(n,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(n=>{r[n]=h0(n,e)}),r}function Xc(e,t){const r=d0(e);return(n,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(fi(r,i)&&i in n?r:n,i,s)}const p0={get:Xc(!1)},m0={get:Xc(!0)},Qc=new WeakMap,g0=new WeakMap,tu=new WeakMap,v0=new WeakMap;function y0(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function b0(e){return e.__v_skip||!Object.isExtensible(e)?0:y0(Q1(e))}function eu(e){return je(e)?e:nu(e,!1,l0,p0,Qc)}function ru(e){return nu(e,!0,f0,m0,tu)}function nu(e,t,r,n,i){if(!fn(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const o=b0(e);if(o===0)return e;const a=new Proxy(e,o===2?n:r);return i.set(e,a),a}function je(e){return!!(e&&e.__v_isReadonly)}function Kt(e){return!!(e&&e.__v_isShallow)}function _0(e){return e?!!e.__v_raw:!1}function Z(e){const t=e&&e.__v_raw;return t?Z(t):e}const lt=e=>fn(e)?eu(e):e,pi=e=>fn(e)?ru(e):e;function Te(e){return e?e.__v_isRef===!0:!1}function Mn(e){return w0(e,!1)}function w0(e,t){return Te(e)?e:new E0(e,t)}class E0{constructor(t,r){this.dep=new Yc,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:Z(t),this._value=r?t:lt(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,n=this.__v_isShallow||Kt(t)||je(t);t=n?t:Z(t),Ze(t,r)&&(this._rawValue=t,this._value=n?t:lt(t),this.dep.trigger())}}function iu(e,t){return function(){return e.apply(t,arguments)}}const{toString:S0}=Object.prototype,{getPrototypeOf:es}=Object,hn=(e=>t=>{const r=S0.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Rt=e=>(e=e.toLowerCase(),t=>hn(t)===e),dn=e=>t=>typeof t===e,{isArray:ke}=Array,sr=dn("undefined");function x0(e){return e!==null&&!sr(e)&&e.constructor!==null&&!sr(e.constructor)&&_t(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const su=Rt("ArrayBuffer");function T0(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&su(e.buffer),t}const O0=dn("string"),_t=dn("function"),ou=dn("number"),pn=e=>e!==null&&typeof e=="object",$0=e=>e===!0||e===!1,kr=e=>{if(hn(e)!=="object")return!1;const t=es(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},A0=Rt("Date"),R0=Rt("File"),j0=Rt("Blob"),D0=Rt("FileList"),C0=e=>pn(e)&&_t(e.pipe),P0=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||_t(e.append)&&((t=hn(e))==="formdata"||t==="object"&&_t(e.toString)&&e.toString()==="[object FormData]"))},N0=Rt("URLSearchParams"),[B0,k0,M0,I0]=["ReadableStream","Request","Response","Headers"].map(Rt),F0=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function dr(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),ke(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{const s=r?Object.getOwnPropertyNames(e):Object.keys(e),o=s.length;let a;for(n=0;n<o;n++)a=s[n],t.call(null,e[a],a,e)}}function au(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,i;for(;n-- >0;)if(i=r[n],t===i.toLowerCase())return i;return null}const ee=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,cu=e=>!sr(e)&&e!==ee;function mi(){const{caseless:e}=cu(this)&&this||{},t={},r=(n,i)=>{const s=e&&au(t,i)||i;kr(t[s])&&kr(n)?t[s]=mi(t[s],n):kr(n)?t[s]=mi({},n):ke(n)?t[s]=n.slice():t[s]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&dr(arguments[n],r);return t}const L0=(e,t,r,{allOwnKeys:n}={})=>(dr(t,(i,s)=>{r&&_t(i)?e[s]=iu(i,r):e[s]=i},{allOwnKeys:n}),e),V0=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),U0=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},H0=(e,t,r,n)=>{let i,s,o;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)o=i[s],(!n||n(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=r!==!1&&es(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},z0=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},q0=e=>{if(!e)return null;if(ke(e))return e;let t=e.length;if(!ou(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},K0=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&es(Uint8Array)),J0=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const i=n.value;t.call(e,i[0],i[1])}},W0=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Y0=Rt("HTMLFormElement"),G0=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),Po=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Z0=Rt("RegExp"),uu=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};dr(r,(i,s)=>{let o;(o=t(i,s,e))!==!1&&(n[s]=o||i)}),Object.defineProperties(e,n)},X0=e=>{uu(e,(t,r)=>{if(_t(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(_t(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Q0=(e,t)=>{const r={},n=i=>{i.forEach(s=>{r[s]=!0})};return ke(e)?n(e):n(String(e).split(t)),r},tb=()=>{},eb=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function rb(e){return!!(e&&_t(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const nb=e=>{const t=new Array(10),r=(n,i)=>{if(pn(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const s=ke(n)?[]:{};return dr(n,(o,a)=>{const u=r(o,i+1);!sr(u)&&(s[a]=u)}),t[i]=void 0,s}}return n};return r(e,0)},ib=Rt("AsyncFunction"),sb=e=>e&&(pn(e)||_t(e))&&_t(e.then)&&_t(e.catch),lu=((e,t)=>e?setImmediate:t?((r,n)=>(ee.addEventListener("message",({source:i,data:s})=>{i===ee&&s===r&&n.length&&n.shift()()},!1),i=>{n.push(i),ee.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",_t(ee.postMessage)),ob=typeof queueMicrotask<"u"?queueMicrotask.bind(ee):typeof process<"u"&&process.nextTick||lu,O={isArray:ke,isArrayBuffer:su,isBuffer:x0,isFormData:P0,isArrayBufferView:T0,isString:O0,isNumber:ou,isBoolean:$0,isObject:pn,isPlainObject:kr,isReadableStream:B0,isRequest:k0,isResponse:M0,isHeaders:I0,isUndefined:sr,isDate:A0,isFile:R0,isBlob:j0,isRegExp:Z0,isFunction:_t,isStream:C0,isURLSearchParams:N0,isTypedArray:K0,isFileList:D0,forEach:dr,merge:mi,extend:L0,trim:F0,stripBOM:V0,inherits:U0,toFlatObject:H0,kindOf:hn,kindOfTest:Rt,endsWith:z0,toArray:q0,forEachEntry:J0,matchAll:W0,isHTMLForm:Y0,hasOwnProperty:Po,hasOwnProp:Po,reduceDescriptors:uu,freezeMethods:X0,toObjectSet:Q0,toCamelCase:G0,noop:tb,toFiniteNumber:eb,findKey:au,global:ee,isContextDefined:cu,isSpecCompliantForm:rb,toJSONObject:nb,isAsyncFn:ib,isThenable:sb,setImmediate:lu,asap:ob};function J(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}O.inherits(J,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:O.toJSONObject(this.config),code:this.code,status:this.status}}});const fu=J.prototype,hu={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{hu[e]={value:e}});Object.defineProperties(J,hu);Object.defineProperty(fu,"isAxiosError",{value:!0});J.from=(e,t,r,n,i,s)=>{const o=Object.create(fu);return O.toFlatObject(e,o,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),J.call(o,e.message,t,r,n,i),o.cause=e,o.name=e.name,s&&Object.assign(o,s),o};const ab=null;function gi(e){return O.isPlainObject(e)||O.isArray(e)}function du(e){return O.endsWith(e,"[]")?e.slice(0,-2):e}function No(e,t,r){return e?e.concat(t).map(function(n,i){return n=du(n),!r&&i?"["+n+"]":n}).join(r?".":""):t}function cb(e){return O.isArray(e)&&!e.some(gi)}const ub=O.toFlatObject(O,{},null,function(e){return/^is[A-Z]/.test(e)});function mn(e,t,r){if(!O.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=O.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,m){return!O.isUndefined(m[h])});const n=r.metaTokens,i=r.visitor||c,s=r.dots,o=r.indexes,a=(r.Blob||typeof Blob<"u"&&Blob)&&O.isSpecCompliantForm(t);if(!O.isFunction(i))throw new TypeError("visitor must be a function");function u(h){if(h===null)return"";if(O.isDate(h))return h.toISOString();if(!a&&O.isBlob(h))throw new J("Blob is not supported. Use a Buffer instead.");return O.isArrayBuffer(h)||O.isTypedArray(h)?a&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function c(h,m,p){let b=h;if(h&&!p&&typeof h=="object"){if(O.endsWith(m,"{}"))m=n?m:m.slice(0,-2),h=JSON.stringify(h);else if(O.isArray(h)&&cb(h)||(O.isFileList(h)||O.endsWith(m,"[]"))&&(b=O.toArray(h)))return m=du(m),b.forEach(function(E,g){!(O.isUndefined(E)||E===null)&&t.append(o===!0?No([m],g,s):o===null?m:m+"[]",u(E))}),!1}return gi(h)?!0:(t.append(No(p,m,s),u(h)),!1)}const l=[],f=Object.assign(ub,{defaultVisitor:c,convertValue:u,isVisitable:gi});function d(h,m){if(!O.isUndefined(h)){if(l.indexOf(h)!==-1)throw Error("Circular reference detected in "+m.join("."));l.push(h),O.forEach(h,function(p,b){(!(O.isUndefined(p)||p===null)&&i.call(t,p,O.isString(b)?b.trim():b,m,f))===!0&&d(p,m?m.concat(b):[b])}),l.pop()}}if(!O.isObject(e))throw new TypeError("data must be an object");return d(e),t}function Bo(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function rs(e,t){this._pairs=[],e&&mn(e,this,t)}const pu=rs.prototype;pu.append=function(e,t){this._pairs.push([e,t])};pu.toString=function(e){const t=e?function(r){return e.call(this,r,Bo)}:Bo;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function lb(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function mu(e,t,r){if(!t)return e;const n=r&&r.encode||lb;O.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let s;if(i?s=i(t,r):s=O.isURLSearchParams(t)?t.toString():new rs(t,r).toString(n),s){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}let ko=class{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){O.forEach(this.handlers,function(r){r!==null&&t(r)})}};const gu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},fb=typeof URLSearchParams<"u"?URLSearchParams:rs,hb=typeof FormData<"u"?FormData:null,db=typeof Blob<"u"?Blob:null,pb={isBrowser:!0,classes:{URLSearchParams:fb,FormData:hb,Blob:db},protocols:["http","https","file","blob","url","data"]},ns=typeof window<"u"&&typeof document<"u",vi=typeof navigator=="object"&&navigator||void 0,mb=ns&&(!vi||["ReactNative","NativeScript","NS"].indexOf(vi.product)<0),gb=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",vb=ns&&window.location.href||"http://localhost",yb=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ns,hasStandardBrowserEnv:mb,hasStandardBrowserWebWorkerEnv:gb,navigator:vi,origin:vb},Symbol.toStringTag,{value:"Module"})),ot=z(z({},yb),pb);function bb(e,t){return mn(e,new ot.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,s){return ot.isNode&&O.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function _b(e){return O.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function wb(e){const t={},r=Object.keys(e);let n;const i=r.length;let s;for(n=0;n<i;n++)s=r[n],t[s]=e[s];return t}function vu(e){function t(r,n,i,s){let o=r[s++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),u=s>=r.length;return o=!o&&O.isArray(i)?i.length:o,u?(O.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!a):((!i[o]||!O.isObject(i[o]))&&(i[o]=[]),t(r,n,i[o],s)&&O.isArray(i[o])&&(i[o]=wb(i[o])),!a)}if(O.isFormData(e)&&O.isFunction(e.entries)){const r={};return O.forEachEntry(e,(n,i)=>{t(_b(n),i,r,0)}),r}return null}function Eb(e,t,r){if(O.isString(e))try{return(t||JSON.parse)(e),O.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const pr={transitional:gu,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=O.isObject(e);if(i&&O.isHTMLForm(e)&&(e=new FormData(e)),O.isFormData(e))return n?JSON.stringify(vu(e)):e;if(O.isArrayBuffer(e)||O.isBuffer(e)||O.isStream(e)||O.isFile(e)||O.isBlob(e)||O.isReadableStream(e))return e;if(O.isArrayBufferView(e))return e.buffer;if(O.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return bb(e,this.formSerializer).toString();if((s=O.isFileList(e))||r.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return mn(s?{"files[]":e}:e,o&&new o,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),Eb(e)):e}],transformResponse:[function(e){const t=this.transitional||pr.transitional,r=t&&t.forcedJSONParsing,n=this.responseType==="json";if(O.isResponse(e)||O.isReadableStream(e))return e;if(e&&O.isString(e)&&(r&&!this.responseType||n)){const i=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(s){if(i)throw s.name==="SyntaxError"?J.from(s,J.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ot.classes.FormData,Blob:ot.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};O.forEach(["delete","get","head","post","put","patch"],e=>{pr.headers[e]={}});const Sb=O.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),xb=e=>{const t={};let r,n,i;return e&&e.split(`
|
|
67
|
-
`).forEach(function(s){i=s.indexOf(":"),r=s.substring(0,i).trim().toLowerCase(),n=s.substring(i+1).trim(),!(!r||t[r]&&Sb[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Mo=Symbol("internals");function ze(e){return e&&String(e).trim().toLowerCase()}function Mr(e){return e===!1||e==null?e:O.isArray(e)?e.map(Mr):String(e)}function Tb(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const Ob=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function In(e,t,r,n,i){if(O.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!O.isString(t)){if(O.isString(n))return t.indexOf(n)!==-1;if(O.isRegExp(n))return n.test(t)}}function $b(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Ab(e,t){const r=O.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,s,o){return this[n].call(this,t,i,s,o)},configurable:!0})})}let yt=class{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function s(a,u,c){const l=ze(u);if(!l)throw new Error("header name must be a non-empty string");const f=O.findKey(i,l);(!f||i[f]===void 0||c===!0||c===void 0&&i[f]!==!1)&&(i[f||u]=Mr(a))}const o=(a,u)=>O.forEach(a,(c,l)=>s(c,l,u));if(O.isPlainObject(t)||t instanceof this.constructor)o(t,r);else if(O.isString(t)&&(t=t.trim())&&!Ob(t))o(xb(t),r);else if(O.isHeaders(t))for(const[a,u]of t.entries())s(u,a,n);else t!=null&&s(r,t,n);return this}get(t,r){if(t=ze(t),t){const n=O.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return Tb(i);if(O.isFunction(r))return r.call(this,i,n);if(O.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=ze(t),t){const n=O.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||In(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function s(o){if(o=ze(o),o){const a=O.findKey(n,o);a&&(!r||In(n,n[a],a,r))&&(delete n[a],i=!0)}}return O.isArray(t)?t.forEach(s):s(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const s=r[n];(!t||In(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const r=this,n={};return O.forEach(this,(i,s)=>{const o=O.findKey(n,s);if(o){r[o]=Mr(i),delete r[s];return}const a=t?$b(s):String(s).trim();a!==s&&delete r[s],r[a]=Mr(i),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return O.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&O.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
|
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[Mo]=this[Mo]={accessors:{}}).accessors,n=this.prototype;function i(s){const o=ze(s);r[o]||(Ab(n,s),r[o]=!0)}return O.isArray(t)?t.forEach(i):i(t),this}};yt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);O.reduceDescriptors(yt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});O.freezeMethods(yt);function Fn(e,t){const r=this||pr,n=t||r,i=yt.from(n.headers);let s=n.data;return O.forEach(e,function(o){s=o.call(r,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function yu(e){return!!(e&&e.__CANCEL__)}function Me(e,t,r){J.call(this,e!=null?e:"canceled",J.ERR_CANCELED,t,r),this.name="CanceledError"}O.inherits(Me,J,{__CANCEL__:!0});function bu(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new J("Request failed with status code "+r.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Rb(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,f=0;for(;l!==i;)f+=r[l++],l=l%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),u-o<t)return;const d=c&&u-c;return d?Math.round(f*1e3/d):void 0}}function Db(e,t){let r=0,n=1e3/t,i,s;const o=(a,u=Date.now())=>{r=u,i=null,s&&(clearTimeout(s),s=null),e.apply(null,a)};return[(...a)=>{const u=Date.now(),c=u-r;c>=n?o(a,u):(i=a,s||(s=setTimeout(()=>{s=null,o(i)},n-c)))},()=>i&&o(i)]}const Wr=(e,t,r=3)=>{let n=0;const i=jb(50,250);return Db(s=>{const o=s.loaded,a=s.lengthComputable?s.total:void 0,u=o-n,c=i(u),l=o<=a;n=o;const f={loaded:o,total:a,progress:a?o/a:void 0,bytes:u,rate:c||void 0,estimated:c&&a&&l?(a-o)/c:void 0,event:s,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(f)},r)},Io=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Fo=e=>(...t)=>O.asap(()=>e(...t)),Cb=ot.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,ot.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(ot.origin),ot.navigator&&/(msie|trident)/i.test(ot.navigator.userAgent)):()=>!0,Pb=ot.hasStandardBrowserEnv?{write(e,t,r,n,i,s){const o=[e+"="+encodeURIComponent(t)];O.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),O.isString(n)&&o.push("path="+n),O.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 Nb(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Bb(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function _u(e,t,r){let n=!Nb(t);return e&&n||r==!1?Bb(e,t):t}const Lo=e=>e instanceof yt?z({},e):e;function ue(e,t){t=t||{};const r={};function n(c,l,f,d){return O.isPlainObject(c)&&O.isPlainObject(l)?O.merge.call({caseless:d},c,l):O.isPlainObject(l)?O.merge({},l):O.isArray(l)?l.slice():l}function i(c,l,f,d){if(O.isUndefined(l)){if(!O.isUndefined(c))return n(void 0,c,f,d)}else return n(c,l,f,d)}function s(c,l){if(!O.isUndefined(l))return n(void 0,l)}function o(c,l){if(O.isUndefined(l)){if(!O.isUndefined(c))return n(void 0,c)}else return n(void 0,l)}function a(c,l,f){if(f in t)return n(c,l);if(f 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,f)=>i(Lo(c),Lo(l),f,!0)};return O.forEach(Object.keys(Object.assign({},e,t)),function(c){const l=u[c]||i,f=l(e[c],t[c],c);O.isUndefined(f)&&l!==a||(r[c]=f)}),r}const wu=e=>{const t=ue({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:s,headers:o,auth:a}=t;t.headers=o=yt.from(o),t.url=mu(_u(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let u;if(O.isFormData(r)){if(ot.hasStandardBrowserEnv||ot.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((u=o.getContentType())!==!1){const[c,...l]=u?u.split(";").map(f=>f.trim()).filter(Boolean):[];o.setContentType([c||"multipart/form-data",...l].join("; "))}}if(ot.hasStandardBrowserEnv&&(n&&O.isFunction(n)&&(n=n(t)),n||n!==!1&&Cb(t.url))){const c=i&&s&&Pb.read(s);c&&o.set(i,c)}return t},kb=typeof XMLHttpRequest<"u",Mb=kb&&function(e){return new Promise(function(t,r){const n=wu(e);let i=n.data;const s=yt.from(n.headers).normalize();let{responseType:o,onUploadProgress:a,onDownloadProgress:u}=n,c,l,f,d,h;function m(){d&&d(),h&&h(),n.cancelToken&&n.cancelToken.unsubscribe(c),n.signal&&n.signal.removeEventListener("abort",c)}let p=new XMLHttpRequest;p.open(n.method.toUpperCase(),n.url,!0),p.timeout=n.timeout;function b(){if(!p)return;const g=yt.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),y={data:!o||o==="text"||o==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:g,config:e,request:p};bu(function(_){t(_),m()},function(_){r(_),m()},y),p=null}"onloadend"in p?p.onloadend=b:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(b)},p.onabort=function(){p&&(r(new J("Request aborted",J.ECONNABORTED,e,p)),p=null)},p.onerror=function(){r(new J("Network Error",J.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let g=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const y=n.transitional||gu;n.timeoutErrorMessage&&(g=n.timeoutErrorMessage),r(new J(g,y.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,p)),p=null},i===void 0&&s.setContentType(null),"setRequestHeader"in p&&O.forEach(s.toJSON(),function(g,y){p.setRequestHeader(y,g)}),O.isUndefined(n.withCredentials)||(p.withCredentials=!!n.withCredentials),o&&o!=="json"&&(p.responseType=n.responseType),u&&([f,h]=Wr(u,!0),p.addEventListener("progress",f)),a&&p.upload&&([l,d]=Wr(a),p.upload.addEventListener("progress",l),p.upload.addEventListener("loadend",d)),(n.cancelToken||n.signal)&&(c=g=>{p&&(r(!g||g.type?new Me(null,e,p):g),p.abort(),p=null)},n.cancelToken&&n.cancelToken.subscribe(c),n.signal&&(n.signal.aborted?c():n.signal.addEventListener("abort",c)));const E=Rb(n.url);if(E&&ot.protocols.indexOf(E)===-1){r(new J("Unsupported protocol "+E+":",J.ERR_BAD_REQUEST,e));return}p.send(i||null)})},Ib=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,i;const s=function(c){if(!i){i=!0,a();const l=c instanceof Error?c:this.reason;n.abort(l instanceof J?l:new Me(l instanceof Error?l.message:l))}};let o=t&&setTimeout(()=>{o=null,s(new J(`timeout ${t} of ms exceeded`,J.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(s):c.removeEventListener("abort",s)}),e=null)};e.forEach(c=>c.addEventListener("abort",s));const{signal:u}=n;return u.unsubscribe=()=>O.asap(a),u}},Fb=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,i;for(;n<r;)i=n+t,yield e.slice(n,i),n=i},Lb=function(e,t){return xn(this,null,function*(){try{for(var r=_s(Vb(e)),n,i,s;n=!(i=yield new Gt(r.next())).done;n=!1){const o=i.value;yield*Tn(Fb(o,t))}}catch(i){s=[i]}finally{try{n&&(i=r.return)&&(yield new Gt(i.call(r)))}finally{if(s)throw s[0]}}})},Vb=function(e){return xn(this,null,function*(){if(e[Symbol.asyncIterator]){yield*Tn(e);return}const t=e.getReader();try{for(;;){const{done:r,value:n}=yield new Gt(t.read());if(r)break;yield n}}finally{yield new Gt(t.cancel())}})},Vo=(e,t,r,n)=>{const i=Lb(e,t);let s=0,o,a=c=>{o||(o=!0,n&&n(c))};return new ReadableStream({pull(c){return L(this,null,function*(){try{const{done:l,value:f}=yield i.next();if(l){a(),c.close();return}let d=f.byteLength;if(r){let h=s+=d;r(h)}c.enqueue(new Uint8Array(f))}catch(l){throw a(l),l}})},cancel(c){return a(c),i.return()}},{highWaterMark:2})},gn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Eu=gn&&typeof ReadableStream=="function",Ub=gn&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):e=>L(void 0,null,function*(){return new Uint8Array(yield new Response(e).arrayBuffer())})),Su=(e,...t)=>{try{return!!e(...t)}catch(r){return!1}},Hb=Eu&&Su(()=>{let e=!1;const t=new Request(ot.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Uo=64*1024,yi=Eu&&Su(()=>O.isReadableStream(new Response("").body)),Yr={stream:yi&&(e=>e.body)};gn&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Yr[t]&&(Yr[t]=O.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new J(`Response type '${t}' is not supported`,J.ERR_NOT_SUPPORT,n)})})})(new Response);const zb=e=>L(void 0,null,function*(){if(e==null)return 0;if(O.isBlob(e))return e.size;if(O.isSpecCompliantForm(e))return(yield new Request(ot.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(O.isArrayBufferView(e)||O.isArrayBuffer(e))return e.byteLength;if(O.isURLSearchParams(e)&&(e=e+""),O.isString(e))return(yield Ub(e)).byteLength}),qb=(e,t)=>L(void 0,null,function*(){const r=O.toFiniteNumber(e.getContentLength());return r!=null?r:zb(t)}),Kb=gn&&(e=>L(void 0,null,function*(){let{url:t,method:r,data:n,signal:i,cancelToken:s,timeout:o,onDownloadProgress:a,onUploadProgress:u,responseType:c,headers:l,withCredentials:f="same-origin",fetchOptions:d}=wu(e);c=c?(c+"").toLowerCase():"text";let h=Ib([i,s&&s.toAbortSignal()],o),m;const p=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let b;try{if(u&&Hb&&r!=="get"&&r!=="head"&&(b=yield qb(l,n))!==0){let S=new Request(t,{method:"POST",body:n,duplex:"half"}),v;if(O.isFormData(n)&&(v=S.headers.get("content-type"))&&l.setContentType(v),S.body){const[x,$]=Io(b,Wr(Fo(u)));n=Vo(S.body,Uo,x,$)}}O.isString(f)||(f=f?"include":"omit");const E="credentials"in Request.prototype;m=new Request(t,st(z({},d),{signal:h,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",credentials:E?f:void 0}));let g=yield fetch(m);const y=yi&&(c==="stream"||c==="response");if(yi&&(a||y&&p)){const S={};["status","statusText","headers"].forEach(V=>{S[V]=g[V]});const v=O.toFiniteNumber(g.headers.get("content-length")),[x,$]=a&&Io(v,Wr(Fo(a),!0))||[];g=new Response(Vo(g.body,Uo,x,()=>{$&&$(),p&&p()}),S)}c=c||"text";let _=yield Yr[O.findKey(Yr,c)||"text"](g,e);return!y&&p&&p(),yield new Promise((S,v)=>{bu(S,v,{data:_,headers:yt.from(g.headers),status:g.status,statusText:g.statusText,config:e,request:m})})}catch(E){throw p&&p(),E&&E.name==="TypeError"&&/fetch/i.test(E.message)?Object.assign(new J("Network Error",J.ERR_NETWORK,e,m),{cause:E.cause||E}):J.from(E,E&&E.code,e,m)}})),bi={http:ab,xhr:Mb,fetch:Kb};O.forEach(bi,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}});const Ho=e=>`- ${e}`,Jb=e=>O.isFunction(e)||e===null||e===!1,xu={getAdapter:e=>{e=O.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,!Jb(r)&&(n=bi[(o=String(r)).toLowerCase()],n===void 0))throw new J(`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
|
-
`+s.map(Ho).join(`
|
|
70
|
-
`):" "+Ho(s[0]):"as no adapter specified";throw new J("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:bi};function Ln(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Me(null,e)}function zo(e){return Ln(e),e.headers=yt.from(e.headers),e.data=Fn.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),xu.getAdapter(e.adapter||pr.adapter)(e).then(function(t){return Ln(e),t.data=Fn.call(e,e.transformResponse,t),t.headers=yt.from(t.headers),t},function(t){return yu(t)||(Ln(e),t&&t.response&&(t.response.data=Fn.call(e,e.transformResponse,t.response),t.response.headers=yt.from(t.response.headers))),Promise.reject(t)})}const Tu="1.8.3",vn={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{vn[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const qo={};vn.transitional=function(e,t,r){function n(i,s){return"[Axios v"+Tu+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,o)=>{if(e===!1)throw new J(n(s," has been removed"+(t?" in "+t:"")),J.ERR_DEPRECATED);return t&&!qo[s]&&(qo[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}};vn.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function Wb(e,t,r){if(typeof e!="object")throw new J("options must be an object",J.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 J("option "+s+" must be "+u,J.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new J("Unknown option "+s,J.ERR_BAD_OPTION)}}const Ir={assertOptions:Wb,validators:vn},jt=Ir.validators;let ne=class{constructor(e){this.defaults=e,this.interceptors={request:new ko,response:new ko}}request(e,t){return L(this,null,function*(){try{return yield this._request(e,t)}catch(r){if(r instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;const i=n.stack?n.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
71
|
-
`+i):r.stack=i}catch(s){}}throw r}})}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=ue(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:i}=t;r!==void 0&&Ir.assertOptions(r,{silentJSONParsing:jt.transitional(jt.boolean),forcedJSONParsing:jt.transitional(jt.boolean),clarifyTimeoutError:jt.transitional(jt.boolean)},!1),n!=null&&(O.isFunction(n)?t.paramsSerializer={serialize:n}:Ir.assertOptions(n,{encode:jt.function,serialize:jt.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Ir.assertOptions(t,{baseUrl:jt.spelling("baseURL"),withXsrfToken:jt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=i&&O.merge(i.common,i[t.method]);i&&O.forEach(["delete","get","head","post","put","patch","common"],h=>{delete i[h]}),t.headers=yt.concat(s,i);const o=[];let a=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(t)===!1||(a=a&&h.synchronous,o.unshift(h.fulfilled,h.rejected))});const u=[];this.interceptors.response.forEach(function(h){u.push(h.fulfilled,h.rejected)});let c,l=0,f;if(!a){const h=[zo.bind(this),void 0];for(h.unshift.apply(h,o),h.push.apply(h,u),f=h.length,c=Promise.resolve(t);l<f;)c=c.then(h[l++],h[l++]);return c}f=o.length;let d=t;for(l=0;l<f;){const h=o[l++],m=o[l++];try{d=h(d)}catch(p){m.call(this,p);break}}try{c=zo.call(this,d)}catch(h){return Promise.reject(h)}for(l=0,f=u.length;l<f;)c=c.then(u[l++],u[l++]);return c}getUri(e){e=ue(this.defaults,e);const t=_u(e.baseURL,e.url,e.allowAbsoluteUrls);return mu(t,e.params,e.paramsSerializer)}};O.forEach(["delete","get","head","options"],function(e){ne.prototype[e]=function(t,r){return this.request(ue(r||{},{method:e,url:t,data:(r||{}).data}))}});O.forEach(["post","put","patch"],function(e){function t(r){return function(n,i,s){return this.request(ue(s||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}ne.prototype[e]=t(),ne.prototype[e+"Form"]=t(!0)});let Yb=class Ou{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 Me(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)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Ou(function(r){t=r}),cancel:t}}};function Gb(e){return function(t){return e.apply(null,t)}}function Zb(e){return O.isObject(e)&&e.isAxiosError===!0}const _i={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(_i).forEach(([e,t])=>{_i[t]=e});function $u(e){const t=new ne(e),r=iu(ne.prototype.request,t);return O.extend(r,ne.prototype,t,{allOwnKeys:!0}),O.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return $u(ue(e,n))},r}const tt=$u(pr);tt.Axios=ne;tt.CanceledError=Me;tt.CancelToken=Yb;tt.isCancel=yu;tt.VERSION=Tu;tt.toFormData=mn;tt.AxiosError=J;tt.Cancel=tt.CanceledError;tt.all=function(e){return Promise.all(e)};tt.spread=Gb;tt.isAxiosError=Zb;tt.mergeConfig=ue;tt.AxiosHeaders=yt;tt.formToJSON=e=>vu(O.isHTMLForm(e)?new FormData(e):e);tt.getAdapter=xu.getAdapter;tt.HttpStatusCode=_i;tt.default=tt;const{Axios:Lw,AxiosError:Vw,CanceledError:Uw,isCancel:Hw,CancelToken:zw,VERSION:qw,all:Kw,Cancel:Jw,isAxiosError:Ww,spread:Yw,toFormData:Gw,AxiosHeaders:Zw,HttpStatusCode:Xw,formToJSON:Qw,getAdapter:tE,mergeConfig:eE}=tt,Xb={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},Qb=["put","post","patch"],wi="Local-Request-Id",t_=100,e_=300;let Au=class{constructor(e={}){xt(this,"axios"),xt(this,"settings"),xt(this,"records",{}),xt(this,"isLoading",!1),xt(this,"stopSkipWarn"),xt(this,"showLoading"),xt(this,"showError"),this.settings=Object.assign({type:"form"},e.settings||{});const t=Dr(e,["settings","query"]);this.axios=tt.create(Dt({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:2*60*1e3},t)),this.setupSkipWarn(this.settings),this.showLoading=Li(this.openLoading.bind(this),t_),this.showError=nc(this._showError.bind(this),e_,{leading:!0,trailing:!1})}setConfig(e={}){this.settings=Dt(this.settings,e.settings||{});const t=Dr(e,["settings","query"]);this.axios.defaults=Dt(this.axios.defaults,t),this.setupSkipWarn(this.settings)}cancel(e,t="请求已取消"){if(e){const r=this.records[e];if(!r)return;r.source.cancel(t)}else for(const r of Object.values(this.records))r.source.cancel(t)}createHeaders(e,t,r){const n=t.injectHeaders?typeof t.headers=="function"?t.headers(e,r,t):t.headers||{}:{},i=z(z({"Content-Type":Xb[t.type||"form"]},r.headers),n);return t.skipWarn&&(i[wi]=e),i}isJsonType(e){return Object.entries(e).some(([t,r])=>t.toLowerCase()==="content-type"&&String(r).includes("application/json"))}toFormData(e,t="data"){if(e instanceof FormData||e instanceof URLSearchParams)return e;const r=t==="data"?new FormData:new URLSearchParams;return Object.entries(e).forEach(([n,i])=>{r.append(n,i)}),r}createSendData(e,t,r,n,i={}){const{type:s,skipWarn:o}=e,{name:a="skipWarn"}=o||{};let{data:u,params:c={},method:l="get"}=t;const f=n?{[a]:!0}:{};return Qb.includes(l.toLowerCase())?(u=Object.assign(u||{},f),u=s!=="json"||!this.isJsonType(r)?this.toFormData(u,s):u,c=z({},i)):s==="form"?c=z(z(z({},u||{}),i),f):(u&&(s!=="json"||!this.isJsonType(r))&&(u=this.toFormData(u,s)),c=z(z({},i),f)),{data:u,params:c}}createUrl(e){let{url:t,params:r}=e;if(t){let n=Hi(t)?new URL(t).origin:"";const i=n?t.replace(n,""):t;try{const s=kc(i,{encode:encodeURIComponent});return n+s(r||{})}catch(s){console.warn("createUrl","pathToRegexpCompile error",t)}}return t}openLoading(e){const{loading:t,showLoading:r}=e;t&&r&&Object.keys(this.records).length>0&&(this.isLoading=!0,r())}closeLoading(e){const{loading:t,hideLoading:r}=e;if(!t)return;this.isLoading=!1;const n=Object.keys(this.records);r&&n.length===0&&(this.isLoading=!1,r())}_showError(e,t){var i;const{failMessage:r,showError:n}=e;if(r&&n){const s=(i=t==null?void 0:t.response)==null?void 0:i.data,o=(s==null?void 0:s.message)||(s==null?void 0:s.msg)||(t==null?void 0:t.message)||(t==null?void 0:t.msg)||"未知错误";n(o,t)}}validResponse(e,t){const{validSuccess:r,validate:n}=e;return r&&n?!!n(t):!0}isSkipWarnResponse(e){return!!e.promise}send(e={},t=!1){const r=Dt({},this.settings,e.settings||{}),n=e.query||{},i=Dr(e,["settings","query"]),s=$c(!1),o=tt.CancelToken.source();this.records[s]={settings:r,config:i,source:o};const a=this.createUrl(i),u=this.createHeaders(s,r,i),{data:c,params:l}=this.createSendData(r,i,u,t,n);return this.showLoading(r),new Promise((f,d)=>{this.axios(st(z({cancelToken:o.token},i),{url:a,headers:u,data:c,params:l})).then(h=>{var m;return this.isSkipWarnResponse(h)?f(h.promise):this.validResponse(r,h)?f(r.originResponse?h:(m=h.data)==null?void 0:m.data):(this.showError(r,h.data),d(h.data))}).catch(h=>(this.showError(r,h),d(h))).finally(()=>{delete this.records[s],this.closeLoading(r)})})}useResponse(e,t){const{response:r}=this.axios.interceptors,n=r.use(e,t);return()=>r.eject(n)}useRequest(e,t){const{request:r}=this.axios.interceptors,n=r.use(e,t);return()=>r.eject(n)}setupSkipWarn(e){if(this.stopSkipWarn&&(this.stopSkipWarn(),this.stopSkipWarn=void 0),!e.skipWarn)return;const{code:t,executor:r,callback:n,complete:i}=e.skipWarn;this.stopSkipWarn=this.useResponse(s=>{const o=(s.config.headers||{})[wi],a=this.records[o];if(!a)return s;const{data:u}=s;if(!u||typeof u!="object")return s;if((u==null?void 0:u.code)===t){n&&n(s);const c=new Promise(r).then(()=>this.send(st(z({},a.config),{settings:a.settings}),!0));c.catch(l=>l).finally(()=>{i&&i()}),s.promise=c}return s})}};function yn(e={}){const t=new Au(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,st(z({},t),{instance:t,send:r,cancel:n,setConfig:i,useRequest:s,useResponse:o}))}const or=yn({settings:{injectHeaders:!0,loading:!0,originResponse:!0}});function Ru(e){const t=typeof e=="string"?{url:e}:e;return(r,n)=>or.send(Dt({},t,n||{},{data:r}))}function r_(e){const t={};for(const[r,n]of Object.entries(e))t[r]=Ru(n);return t}function n_(e,t){const r=Mn(null),n=Mn(),i=Mn(!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 De=typeof window<"u",i_=e=>new Promise((t,r)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=()=>{t(n.result)},n.onerror=i=>{r(i)}});function ju(e){const t={};return e?(e.forEach((r,n)=>{t[n]=typeof r=="string"?decodeURIComponent(r):r}),t):{}}function s_(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 o_(e,t){const r=e;return r.lastModified=Date.now(),r.lastModifiedDate=new Date,r.name=t,r}const a_=e=>De?window.requestAnimationFrame(e):setTimeout(e,16),c_=e=>De?window.cancelAnimationFrame(e):clearTimeout(e);class is{constructor(t={}){xt(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"}),xt(this,"caches",{}),xt(this,"types"),this.types={local:De?window.localStorage:this.caches,session:De?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}=z(z({},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}=z(z({},this.options),r),s=i+t,o=this.types[n]||this.caches;let a;if(o===this.caches)a=o[s];else{const f=o.getItem(s);f&&(a=JSON.parse(f))}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}=z(z({},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}=z(z({},this.options),t),n=this.types[r]||this.caches;n===this.caches?this.caches={}:n.clear()}}const Fr=new is;function Du(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lr={exports:{}},u_=Lr.exports,Ko;function l_(){return Ko||(Ko=1,function(e,t){(function(r,n){n(t,e)})(u_,function(r,n){var i={timeout:5e3,jsonpCallback:"callback"};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],f=c,d=l.timeout||i.timeout,h=l.jsonpCallback||i.jsonpCallback,m=void 0;return new Promise(function(p,b){var E=l.jsonpCallbackFunction||s(),g=h+"_"+E;window[E]=function(_){p({ok:!0,json:function(){return Promise.resolve(_)}}),m&&clearTimeout(m),a(g),o(E)},f+=f.indexOf("?")===-1?"?":"&";var y=document.createElement("script");y.setAttribute("src",""+f+h+"="+E),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=g,document.getElementsByTagName("head")[0].appendChild(y),m=setTimeout(function(){b(new Error("JSONP request to "+c+" timed out")),o(E),a(g),window[E]=function(){o(E)}},d),y.onerror=function(){b(new Error("JSONP request to "+c+" failed")),o(E),a(g),m&&clearTimeout(m)}})}n.exports=u})}(Lr,Lr.exports)),Lr.exports}var f_=l_();const h_=Du(f_);function d_(e){if(De){const{protocol:t,host:r,pathname:n}=location;return`${t}//${r}${e?n:""}`}else return null}function p_(e=""){const t=e.match(Ui);return t?t[0]:""}function Cu(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 Ei(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 Pu(e,t){t=typeof t=="string"?Ei(t):t;const r=e.split("?")[0],n=Ei(e),i=Object.assign({},n,t),s=Cu(i);return s?[r,s].join("?"):e}const ie=Object.freeze(Object.defineProperty({__proto__:null,append:Pu,getCurrentHost:d_,getHost:p_,parse:Ei,stringify:Cu},Symbol.toStringTag,{value:"Module"}));function ss(r){return L(this,arguments,function*(e,t={}){const{query:n={}}=t;e.includes("${")&&(e=rc(e)(n||{}));const i=Pu(e,n);return yield(yield h_(i,t)).json()})}var Vn,Jo;function m_(){if(Jo)return Vn;Jo=1,Vn=function(n,i,s){var o=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");typeof i=="function"&&(s=i,i={}),i=i||{},s=s||function(){},a.type=i.type||"text/javascript",a.charset=i.charset||"utf8",a.async="async"in i?!!i.async:!0,a.src=n,i.attrs&&e(a,i.attrs),i.text&&(a.text=""+i.text);var u="onload"in a?t:r;u(a,s),a.onload||t(a,s),o.appendChild(a)};function e(n,i){for(var s in i)n.setAttribute(s,i[s])}function t(n,i){n.onload=function(){this.onerror=this.onload=null,i(null,n)},n.onerror=function(){this.onerror=this.onload=null,i(new Error("Failed to load "+this.src),n)}}function r(n,i){n.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,i(null,n))}}return Vn}var g_=m_();const v_=Du(g_);function Si(e,t={}){return new Promise((r,n)=>{const{library:i}=t;v_(e,t,(s,o)=>{s?n(s):r(i?window[i]:void 0)})})}const Wo={debug:-1,log:0,info:0,warn:1,error:2},y_=function(e,t,r,n){return function(...i){if(t&&Wo[t]<=Wo[e]&&console[e].apply&&(n==="*"||r.startsWith(n)))return console[e].apply(console,b_(i,r))}};function b_(e,t){return t!=="*"&&(typeof e[0]=="string"?e[0]=`[${t}] ${e[0]}`:e=["["+t+"]"].concat(e)),e}function __(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 w_={level:"warn",bizName:"*"};class Nu{constructor(t){xt(this,"config"),xt(this,"options"),this.options=z(z({},w_),t);const r=typeof location<"u"?location:{},n=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(r.href)||[])[1];this.config=__(n,t)}_log(t){const{targetLevel:r,targetBizName:n}=this.config,{bizName:i}=this.options;return y_(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 Bu(e){return new Nu(e)}const se=Bu({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function $r(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 E_={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 xi(e,t){function r(i,s,o){if(!(typeof document>"u")){o=$r({},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(f){}}return i?o[i]:o}}return Object.create({set:r,get:n,remove:function(i,s){r(i,"",$r({},s,{expires:-1}))},withAttributes:function(i){return xi(this.converter,$r({},this.attributes,i))},withConverter:function(i){return xi($r({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var os=xi(E_,{path:"/"});function S_(e,t,r){os.set(e,t,r)}function x_(e){return os.get(e)}function T_(e,t){os.remove(e,t)}const Vr=Object.freeze(Object.defineProperty({__proto__:null,get:x_,remove:T_,set:S_},Symbol.toStringTag,{value:"Module"}));function O_(e,t=""){const r=document.createElement("a");r.download=t,r.href=e,r.target="_blank",r.click()}function as(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 $_(e,t="",r){return L(this,null,function*(){return fetch(e,{credentials:"include"}).then(n=>L(this,null,function*(){const i=yield n.blob();return as(i,t,r),i}))})}function A_(e,t=""){const r=JSON.stringify(e);as(r,t,"application/json")}function R_(){const e=navigator.userAgent;let t="Unknown",r="Unknown",n="Unknown",i="Unknown",s=!1;if(/Windows NT/i.test(e)){t="Windows";const a={"12.0":"12","11.0":"11","10.0":"10","6.3":"8.1","6.2":"8","6.1":"7","6.0":"Vista","5.2":"XP 64-bit","5.1":"XP"},u=e.match(/Windows NT (\d+\.\d+)/);u&&(r=a[u[1]]||u[1])}else if(/Mac OS X/i.test(e)){t="Mac OS";const a=e.match(/Mac OS X (\d+[._]\d+[._]?\d*)/);a&&(r=a[1].replace(/_/g,"."))}else if(/(iPhone|iPad|iPod)/i.test(e)){t="iOS";const a=e.match(/OS (\d+[_\.]\d+[_\.]?\d*)/);a&&(r=a[1].replace(/_/g,"."))}else if(/Android/i.test(e)){t="Android";const a=e.match(/Android (\d+\.\d+)/);a&&(r=a[1])}else/Linux/i.test(e)&&(t="Linux");const o=e.match(/(Edge|Edg|Edga|EdgA)\/(\d+)/i);if(o)n="Microsoft Edge",i=o[2];else{const a=e.match(/Firefox\/(\d+)/i);if(a)n="Firefox",i=a[1];else{const u=e.match(/(Opera|OPR)\/(\d+)/i);if(u)n="Opera",i=u[2];else{const c=e.match(/Chrome\/(\d+)/i);if(c)n="Chrome",i=c[1];else{const l=e.match(/Version\/(\d+\.\d+)/i);if(l&&/Safari/i.test(e))n="Safari",i=l[1];else{const f=e.match(/(MSIE |Trident.*rv:)(\d+)/i);f&&(n="Internet Explorer",i=f[2])}}}}}return s=/(iPhone|iPod|iPad|Android|Windows Phone|Mobile)/i.test(e)||["iOS","Android"].includes(t),/(iPad|Tablet|Android(?!.*Mobile))/i.test(e)&&(s=!0),{os:t,osVersion:r,browser:n,browserVersion:i,isMobile:s}}const rE=Object.freeze(Object.defineProperty({__proto__:null,AES:n1,LOCAL_REQUEST_ID:wi,Logger:Nu,MD5:Qy,RSA:r1,Request:Au,Storage:is,VTJ_UTILS_VERSION:J1,arrayToKv:b1,arrayToMap:Ac,arrayToTree:T1,avg:E1,axios:tt,base64:t1,blobToFile:o_,cAF:c_,camelCase:Bt,cloneDeep:ae,compress:P1,cookie:Vr,createApi:Ru,createApis:r_,createRequest:yn,dataURLtoBlob:s_,dateFormat:d1,dayjs:zi,debounce:Li,decompress:N1,dedupArray:Rc,delay:Se,downloadBlob:as,downloadJson:A_,downloadRemoteFile:$_,downloadUrl:O_,fileToBase64:i_,flatChildren:Cc,formDataToJson:ju,get:da,getClientInfo:R_,getLogger:Bu,groupBy:Xa,isArray:dt,isArrayBuffer:kv,isBoolean:Iv,isBuffer:Ae,isCarNo:c1,isClient:De,isDate:Uv,isDef:g1,isEmail:s1,isEqual:Hv,isFunction:oe,isIdCardNo:o1,isMobilePhone:a1,isNaN:qv,isNull:Kv,isNumber:Qa,isObject:ct,isPlainObject:Mi,isString:bt,isSymbol:cr,isUndefined:Jv,isUrl:Hi,jsonp:ss,kebabCase:Yv,kvToArray:_1,loadScript:Si,logger:se,lowerFirst:Zv,mapToObject:un,merge:Dt,mitt:Bc,noop:gf,now:v1,numberFormat:l1,numeral:Ec,omit:Dr,pathToRegexp:ln,pathToRegexpCompile:kc,pathToRegexpMatch:Mc,pathToRegexpParse:qi,pick:jc,rAF:a_,rCar:_c,rEmail:vc,rID:yc,rMobile:bc,rURL:Ui,random:y1,request:or,set:ty,snakeCase:ry,splitParser:S1,splitStringify:x1,storage:Fr,sum:Dc,template:rc,throttle:nc,timestamp:Oc,toArray:si,toFixed:f1,toRawType:m1,toTypeString:Tc,trim:oi,uid:gt,unAES:i1,unBase64:e1,unRSA:ii,upperFirst:on,upperFirstCamelCase:ei,url:ie,useApi:n_,uuid:$c,zipObject:w1},Symbol.toStringTag,{value:"Module"}));/**!
|
|
72
|
-
* Copyright (c) 2025, VTJ.PRO All rights reserved.
|
|
73
|
-
* @name @vtj/renderer
|
|
74
|
-
* @author CHC chenhuachun1549@dingtalk.com
|
|
75
|
-
* @version 0.11.7
|
|
76
|
-
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
77
|
-
*/const Oe="0.11.7";var ht=(e=>(e.Runtime="Runtime",e.Design="Design",e.Raw="Raw",e.VNode="VNode",e))(ht||{});const Ti=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],j_=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeUnmount","unmounted","errorCaptured","renderTracked","renderTriggered","activated","deactivated"],ku=["vIf","vShow","vModel","vFor","vBind","vHtml"],Mu={String,Number,Boolean,Array,Object,Function,Date},$e="VtjPage",Xe="VtjHomepage",Iu="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(","),Fu="component,slot".split(",");function Ye(e,t){return e.map(r=>Hi(r)||r.startsWith("/")?r:`${t}${r}`)}function bn(e){return/\.css$/.test(e)}function _n(e){return/\.js$/.test(e)}function Lu(e){return/\.json$/.test(e)}function D_(e){return e.map(t=>`<script src="${ie.append(t,{v:Oe})}"><\/script>`).join("")}function C_(e=[]){return e.map(t=>`<link rel="stylesheet" href="${ie.append(t,{v:Oe})}" />`).join("")}function Vu(e,t=!1){return t&&e.endsWith(".prod.js")?e.replace(".prod.js",".js"):e}function Uu(e,t,r=!1){const n=e.filter(d=>!!d.enabled),i=[],s=[],o=[],a=[],u={},c={},l=[],f={};return n.forEach(({urls:d,assetsUrl:h,library:m,assetsLibrary:p,localeLibrary:b})=>{d==null||d.forEach(E=>{_n(E)&&i.push(Vu(E,r)),bn(E)&&s.push(E)}),m&&(a.push(m),u[m]=Ye(d||[],t),b&&(c[m]=b)),h&&o.push(h),p&&l.push(p),m&&p&&(f[p]=m)}),{scripts:Ye(i,t),css:Ye(s,t),materials:Ye(o,t),libraryExports:a,materialExports:Rc(l),materialMapLibrary:f,libraryMap:u,libraryLocaleMap:c}}function Hu(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 cs(e){return bt(e)?e:JSON.stringify(e)}function us(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 zu(e,t){return L(this,null,function*(){const r=yield window.fetch(t).then(n=>n.text()).catch(()=>"");r&&us(window,e,r)})}function qu(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 Ku(n,i){return L(this,arguments,function*(e,t,r=window){const s=r.document,o=r.document.head;let a=r[t];return a?a.default||a:new Promise((u,c)=>{for(const l of e){const f=s.createElement("script");f.src=l,f.onload=()=>{a=r[t],a?u(a.default||a):c(null)},f.onerror=d=>{c(d)},o.appendChild(f)}})})}function Ju(e){return oe(e)||oe(e==null?void 0:e.install)}function Wu(e){return Fu.includes(e)}function Yu(e){return Iu.includes(e)}function Ce(e=window){const t=window==null?void 0:window.Mock;if(t)return t;const r=e==null?void 0:e.Mock;if(r&&window)return window.Mock=r,r}function P_(e,t,r){Object.assign(t.meta,r.meta);const n=e==null?void 0:e._container;(r==null?void 0:r.type)==="page"&&n.classList.add("is-page"),r!=null&&r.pure&&n.classList.add("is-pure")}function Pe(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(se.error("parseExpression.error",s,e,(i=t==null?void 0:t.__self)!=null?i:t),n)throw s}}function Gr(e,t,r=!1,n=!1){var s;const i=Pe(e,t,r,n);if(typeof i!="function"&&(se.error("parseFunction.error","not a function",e,(s=t==null?void 0:t.__self)!=null?s:t),n))throw new Error(`"${e.value}" not a function`);return i}function wt(e){return e&&e.type==="JSExpression"}function Ie(e){return typeof e=="object"&&e&&e.type==="JSFunction"}function Gu(e){return wt(e)||Ie(e)}function N_(e){return Gu(e)?e.value:JSON.stringify(e)}const B_={session:!1,authKey:"Authorization",storageKey:"ACCESS_STORAGE",storagePrefix:"__VTJ_",unauthorized:void 0,auth:"/#/login",redirectParam:"r",unauthorizedCode:401,unauthorizedMessage:"登录已经失效,请重新登录!",noPermissionMessage:"无权限访问该页面",appName:""},ls=Symbol("access");class wn{constructor(t){A(this,"options");A(this,"data",null);A(this,"mode",ht.Raw);A(this,"interceptResponse",!0);this.options=Object.assign({},B_,t),this.loadData()}enableIntercept(){this.interceptResponse=!0}disableIntercept(){this.interceptResponse=!1}connect(t){const{mode:r,router:n,request:i}=t;this.mode=r,n&&this.mode===ht.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&&(Fr.save(r,t,{type:"local",prefix:n}),i&&Vr.set(s,this.data.token))}clear(){const{storageKey:t,storagePrefix:r,session:n,authKey:i}=this.options;this.data=null,Fr.remove(t,{type:"local",prefix:r}),n&&Vr.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):si(t).every(i=>n[i]||n[r+"."+i])}some(t){const{appName:r}=this.options,{permissions:n={}}=this.data||{};return si(t).some(i=>n[i]||n[r+"."+i])}install(t){t.config.globalProperties.$access||(t.config.globalProperties.$access=this,t.provide(ls,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=>ii(i,r));try{this.data=JSON.parse(n.join(""))}catch(i){console.warn(i)}return}if(typeof t=="string")try{const n=r?ii(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=Fr.get(t,{type:"local",prefix:r});this.setData(n||null)}isLogined(){const{session:t,authKey:r}=this.options;return t&&r?!!Vr.get(r):!!this.getToken()}hasRoutePermission(t){if(t.name===$e){const r=t.params.id;return r&&this.can(r)}return!0}setGuard(t){t.beforeEach((r,n,i)=>this.guard(r,i))}guard(t,r){return L(this,null,function*(){if(this.isWhiteList(t)||this.isAuthPath(t))return r();if(this.isLogined()){if(this.hasRoutePermission(t))return r();{const{noPermissionMessage:n="无权限访问",unauthorized:i=!1}=this.options;return yield this.showTip(n),oe(i)?(i(),r(!1)):bt(i)?r(i):r(!1)}}r(!1),this.toLogin()})}isWhiteList(t){const{whiteList:r}=this.options;return r?Array.isArray(r)?r.some(n=>t.fullPath.startsWith(n)):r(t):!1}isUnauthorized(t){var n;const{unauthorizedCode:r=401}=this.options;return t.status===r||((n=t.data)==null?void 0:n.code)===r}showUnauthorizedAlert(t){return L(this,null,function*(){const{unauthorizedMessage:r="登录已失效"}=this.options;this.isUnauthorized(t)&&(yield this.showTip(r),this.toLogin())})}showTip(t){return L(this,null,function*(){const{alert:r}=this.options;return r?(yield Se(150),yield r(t,{title:"提示",type:"warning"}).catch(()=>!1)):!1})}setRequest(t){t.useRequest(r=>{var n,i;return(n=this.data)!=null&&n.token&&(r.headers[this.options.authKey]=(i=this.data)==null?void 0:i.token),r}),t.useResponse(r=>L(this,null,function*(){return this.interceptResponse&&(yield this.showUnauthorizedAlert(r)),r}),r=>L(this,null,function*(){if(!this.interceptResponse)return Promise.reject(r);const n=r.response||r||{};return yield this.showUnauthorizedAlert(n),Promise.reject(r)}))}}function Zu(){return Go(ls,null)}function k_(e={}){const{notify:t,loading:r,settings:n={},Startup:i,access:s,useTitle:o,alert:a}=e;let u=null;return{request:yn({settings:z({type:"form",validSuccess:!0,originResponse:!1,loading:!0,validate:c=>{var l,f;return((l=c.data)==null?void 0:l.code)===0||!!((f=c.data)!=null&&f.success)},failMessage:!0,showError:c=>{t&&t(c||"未知错误")},showLoading:()=>{u&&u.close(),r&&(u=r())},hideLoading:()=>{u&&(u.close(),u=null)}},n)}),jsonp:ss,notify:t,loading:r,useTitle:o,startupComponent:i,access:s?new wn(z({alert:a},s)):void 0}}function M_(e={}){return new wn(e)}function Xu(e,t){const{jsonp:r,request:n}=t;if(e.method==="jsonp")return(i={})=>r(e.url,st(z({},e.jsonpOptions),{query:i}));{const i=e.headers?Pe(e.headers,{},!0):void 0,s={url:e.url,method:e.method,settings:st(z({},e.settings),{headers:i})};return(o,a)=>(delete s.data,n.send(Dt(s,a||{},{data:o})))}}function Qu(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 tl(e=[],t=[],r){const n={};for(const i of e)n[i.id]=Xu(i,r);for(const i of t)n[i.id]=Qu(i,r);return n}function el(){return L(this,arguments,function*(e=[],t=window){const r=Ce(t);r&&(fs(t),e.forEach(n=>nl(r,n)))})}function rl(e,t=window){const r=Ie(e.mockTemplate)&&e.mockTemplate.value?Gr(e.mockTemplate,{},!0):void 0,n=Ce(t);return(...i)=>L(this,null,function*(){let s={};if(r)try{s=yield r.apply(r,i)}catch(o){se.warn("模拟数据模版异常",o)}return n==null?void 0:n.mock(s)})}function nl(e,t){if(!t.mock)return;const{url:r,mockTemplate:n}=t;if(r&&n){const i=ln(`${r}(.*)`),s=Mc(r,{decode:decodeURIComponent}),o=Pe(n,{},!0);e.mock(i,a=>{var f;const u=ie.parse(a.url)||{},c=a.body instanceof FormData?ju(a.body):a.body,l=(f=s(a.url))==null?void 0:f.params;return Object.assign(a,{data:c,params:u,query:l}),e.mock(o(a))})}}function fs(e=window){const t=Ce(e);t&&(t._mocked={})}class il{constructor(t){A(this,"__id",null);A(this,"__mode");A(this,"__instance",null);A(this,"__contextRefs",{});A(this,"__refs",{});A(this,"context",{});A(this,"state",{});A(this,"props",{});A(this,"$props",{});A(this,"$refs",{});A(this,"$el",null);A(this,"$emit",null);A(this,"$nextTick",null);A(this,"$parent",null);A(this,"$root",null);A(this,"$attrs",null);A(this,"$slots",null);A(this,"$watch",null);A(this,"$options",null);A(this,"$forceUpdate",null);A(this,"$components",{});A(this,"$libs",{});A(this,"$apis",{});A(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=Qr){const n=r.getCurrentInstance();if(!n)return;this.__refs={},this.$refs={},this.context={},this.__contextRefs={},this.__instance=n.proxy;const i=n.appContext.config.globalProperties;Object.assign(this,i),Object.assign(this,t||{}),this.__proxy(),r.onMounted(()=>{this.__proxy()}),r.onUnmounted(()=>{this.__cleanup()}),r.onBeforeUpdate(()=>{this.__reset()})}__proxy(){this.__instance&&Ti.forEach(t=>{var r;this[t]=(r=this.__instance)==null?void 0:r[t]})}__cleanup(){Ti.forEach(t=>{this[t]=null}),this.__reset()}__reset(){this.__refs={},this.$refs={},this.__contextRefs={},this.context={}}__parseFunction(t){var r;if(t)if(this.__mode===ht.Runtime){const{id:n,type:i}=t,s=n&&(r=this.__transform[n])!=null?r:t.value;return Gr({type:i,value:s},this)}else return Gr(t,this)}__parseExpression(t){var r;if(t)if(this.__mode===ht.Runtime){const{id:n,type:i}=t,s=n&&(r=this.__transform[n])!=null?r:t.value;return Pe({type:i,value:s},this)}else return Pe(t,this)}__ref(t=null,r){if(this.__mode!==ht.VNode)return t&&t!==this.__id&&(this.__contextRefs[t]=this),n=>L(this,null,function*(){var s,o;yield Se(0);let i=(n==null?void 0:n.$vtjEl)||(n==null?void 0:n.$el)||((o=(s=n==null?void 0:n._)==null?void 0:s.vnode)==null?void 0:o.el)||n;if(!i){typeof r=="string"&&(delete this.$refs[r],t&&delete this.__refs[t]);return}return i.nodeType===3&&i.nextSibling&&(i=i.nextSibling),i.__vtj__=t,ht.Design===this.__mode&&(i.__context__=this,i.draggable=!0),t&&(this.__refs[t]=this.__getRefEl(this.__refs,t,n)),typeof r=="function"?r(n):r&&(this.$refs[r]=this.__getRefEl(this.$refs,r,n)),n})}__getRefEl(t,r,n){const i=t[r];if(i&&n!==i){const s=new Set([].concat(i,n));return Array.from(s)}else return n}__clone(t={}){const r=z(z({},this.context),t),n=st(z({},r),{context:r});return n.context.__proto__=this.context,n.__proto__=this,n}}function Zr(e){var f,d;const{Vue:t=Qr,mode:r=ht.Runtime,components:n={},libs:i={},apis:s={},loader:o}=e,a=t.computed(()=>e.dsl),u={$components:n,$libs:i,$apis:s},c=new il({mode:r,dsl:a.value,attrs:u}),l=t.defineComponent(z({name:a.value.name,props:z({},F_((f=a.value.props)!=null?f:[],c)),setup(h){var y,_,S,v;c.$props=h,c.props=h,a.value.id&&us(e.window||window,a.value.id,a.value.css||""),c.state=L_(t,(y=a.value.state)!=null?y:{},c);const m=V_(t,(_=a.value.computed)!=null?_:{},c),p=U_((S=a.value.methods)!=null?S:{},c),b=H_(t,a.value.inject,c),E=sl(a.value.dataSources||{},c),g=z(z(z(z({},b),m),p),E);return c.setup(g,t),z_(t,(v=a.value.watch)!=null?v:[],c),{vtj:c}},emits:I_(a.value.emits),expose:["vtj"],render(){if(!a.value.nodes)return null;const h=a.value.nodes||[];return h.length===1?ar(h[0],c,t,o):h.map(m=>ar(m,c,t,o))}},q_((d=a.value.lifeCycles)!=null?d:{},c)));return{renderer:t.markRaw(l),context:c}}function I_(e=[]){return e.map(t=>bt(t)?t:t.name)}function F_(e=[],t){const r=n=>n?(Array.isArray(n)?n:[n]).map(i=>Mu[i]):void 0;return e.map(n=>bt(n)?{name:n}:{name:n.name,type:n.type,required:n.required,default:wt(n.default)?t.__parseExpression(n.default):n.default}).reduce((n,i)=>(n[i.name]={type:r(i.type),required:i.required,default:i.default},n),{})}function L_(e,t,r){return e.reactive(Object.keys(t||{}).reduce((n,i)=>{let s=t[i];return wt(s)?s=r.__parseExpression(s):Ie(s)&&(s=r.__parseFunction(s)),n[i]=s,n},{}))}function V_(e,t,r){return Object.entries(t!=null?t:{}).reduce((n,[i,s])=>(n[i]=e.computed(r.__parseFunction(s)),n),{})}function U_(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}function H_(e,t=[],r){return t.reduce((n,i)=>{var c;const{name:s,from:o}=i||{};i.default;const a=wt(o)?r.__parseExpression(o)||s:o!=null?o:s,u=wt(i.default)?r.__parseExpression(i.default):(c=i.default)!=null?c:null;return n[s]=e.inject(a,u),n},{})}function sl(e,t){return Object.keys(e).reduce((r,n)=>{const i=e[n];if(i.type==="mock")r[n]=rl(i);else if(i.ref){const s=t.$apis[i.ref],o=Ie(i.transform)?i.transform.value?t.__parseFunction(i.transform):void 0:i.transform;r[n]=(...a)=>L(this,null,function*(){const u=yield s.apply(t,a);return o?o(u):u})}return r},{})}function z_(e,t=[],r){t.forEach(n=>{e.watch(r.__parseExpression(n.source),r.__parseFunction(n.handler),{deep:n.deep,immediate:n.immediate})})}function q_(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}let Un=[],Qt={};const ol=e=>e;function hs(r){return L(this,arguments,function*(e,t=window){const{urls:n=[],library:i}=e,s=n.filter(a=>_n(a));if(s.length===0||!i)return null;const o=n.filter(a=>bn(a));return o.length&&qu(o,t),yield Ku(s,i,t).catch(a=>(console.warn("loadScriptUrl error",s,i,a),null))})}function Xr(e){const{getDsl:t,getDslByUrl:r,options:n}=e;return n.window&&(Un.forEach(i=>{delete n.window[i]}),Un=[]),(i,s,o=Qr)=>{if(!s||typeof s=="string")return i;if(s.type==="Schema"&&s.id)return o.defineAsyncComponent(()=>L(this,null,function*(){const a=Qt[s.id]||(yield t(s.id));return a&&(a.name=i,Qt[s.id]=a),a?Zr(st(z({},n),{Vue:o,dsl:ae(a),mode:ht.Runtime,loader:Xr(e)})).renderer:null}));if(s.type==="UrlSchema"&&s.url)return o.defineAsyncComponent(()=>L(this,null,function*(){const a=Qt[s.url]||(yield r(s.url));return a&&(a.name=i,Qt[s.url]=a),a?Zr(st(z({},n),{Vue:o,dsl:ae(a),mode:ht.Runtime,loader:Xr(e)})).renderer:null}));if(s.type==="Plugin"){let a=s.library?Qt[s.library]:null;return a||(s.library&&Un.push(s.library),a=Qt[s.library||Symbol()]=o.defineAsyncComponent(()=>L(this,null,function*(){return(yield hs(s,n.window))||(console.warn("getPlugin result is null",s),null)})),a)}return i}}function K_(){Qt={}}function ar(e,t,r=Qr,n=ol){var p;if(!e||!e.name||e.invisible)return null;const i=(p=r.getCurrentInstance())==null?void 0:p.appContext,{id:s=null,directives:o=[]}=e,{vIf:a,vFor:u,vShow:c,vModels:l,vBind:f,vHtml:d,others:h}=W_(o);if(a&&!Y_(a,t))return null;const m=b=>{var $,V,w,T;const E=b.$components,g=(()=>{var C,M,D,N;if(e.name==="component")return G_(b,(C=e.props)==null?void 0:C.is);if(e.name==="slot")return e.name;const F=n(e.name,e.from,r);return bt(F)?Wu(F)||Yu(F)?F:(N=(D=E[F])!=null?D:(M=i==null?void 0:i.app)==null?void 0:M.component(F))!=null?N:F:F})(),y=Z_(s,($=e.props)!=null?$:{},b),_=X_(r,(V=e.events)!=null?V:{},b);if(e.name==="slot")return Q_(r,e,y,b,n);f&&Object.assign(y,b.__parseExpression(f.value)),c&&(y.style=Object.assign((w=y.style)!=null?w:{},ew(c,b))),d&&Object.assign(y,rw(d,b)),l.forEach(F=>{Object.assign(y,nw(r,F,b))});const S=iw(r,(T=e.children)!=null?T:[],b,n,e);let v=r.createVNode(g,z(z({},y),_),S);const x=i?J_(i,h,b):[];return x.length&&(v=r.withDirectives(v,x)),v};return u?aw(u,m,t):m(t)}function J_(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 W_(e=[]){const t=e.find(u=>Bt(u.name)==="vIf"),r=e.find(u=>Bt(u.name)==="vFor"),n=e.find(u=>Bt(u.name)==="vShow"),i=e.find(u=>Bt(u.name)==="vBind"),s=e.find(u=>Bt(u.name)==="vHtml"),o=e.filter(u=>Bt(u.name)==="vModel"),a=e.filter(u=>!ku.includes(Bt(u.name)));return{vIf:t,vFor:r,vShow:n,vModels:o,vBind:i,others:a,vHtml:s}}function Y_(e,t){return!!t.__parseExpression(e.value)}function G_(e,t){return t?wt(t)?e.__parseExpression(t):t:"div"}function Z_(e,t,r){const n=Oi(t,r);return n.ref=r.__ref(e,n.ref),n}function Oi(e,t){return wt(e)?t.__parseExpression(e):Ie(e)?t.__parseFunction(e):Array.isArray(e)?e.map(r=>Oi(r,t)):typeof e=="object"?Object.keys(e||{}).reduce((r,n)=>{let i=e[n];return r[n]=Oi(i,t),r},{}):e}function X_(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=ds(a.modifiers),c=u.find(d=>n.includes(d)),l="on"+on(o)+(c&&i[c]||""),f=r.__parseFunction(a.handler);return f&&(s[l]=e.withModifiers(f,u)),s},{})}function ds(e={},t=!1){const r=Object.keys(e);return t?r.map(n=>"."+n):r}function Q_(e,t,r,n,i){var u;const{children:s}=t,o=tw(t,n),a=(u=n.$slots)==null?void 0:u[o.name];return a?a(r):s?bt(s)?e.createTextVNode(s):wt(s)?e.createTextVNode(cs(n.__parseExpression(s))):Array.isArray(s)?s.map(c=>ar(c,n,e,i)):null:null}function tw(e,t){const{props:r}=e,n=(r==null?void 0:r.name)||"default";return{name:wt(n)?t.__parseExpression(n):n,params:[]}}function ew(e,t){return t.__parseExpression(e.value)?{}:{display:"none"}}function rw(e,t){return{innerHTML:t.__parseExpression(e.value)||""}}function nw(e,t,r){var a;const n={type:"JSFunction",value:(a=t.value)!=null&&a.value?`(v) => {
|
|
79
|
-
${t.value.value} = v;
|
|
80
|
-
}`:"(v) => {}"},i=r.__parseFunction(n),s=ds(wt(t.modifiers)?r.__parseExpression(t.modifiers):t.modifiers),o=wt(t.arg)?r.__parseExpression(t.arg):t.arg||"modelValue";return{[o]:r.__parseExpression(t.value),[`onUpdate:${o}`]:s.length&&i?e.withModifiers(i,s):i}}function iw(e,t,r,n,i){if(!t)return null;if(bt(t))return{default:()=>t};if(wt(t))return{default:()=>cs(r.__parseExpression(t))};if(Array.isArray(t)&&t.length>0){const s=sw(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]=f=>{const d=l.length?jc(f!=null?f:{},l):o(f);return c.map(h=>ar(h,r.__clone(d),e,n))},a),{})}return null}function sw(e){const t={default:{params:[],nodes:[]}};for(const r of e){const n=ow(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 ow(e="default"){return bt(e)?{name:e,params:[]}:z({params:[]},e)}function aw(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`),[])}const Yo=$i({name:"VtjPageContainer",setup(){return L(this,null,function*(){const e=ms(),t=Zo(),r=t.params.id,n=r?e.getPage(r):e.getHomepage(),i=n?yield e.getRenderComponent(n.id):null,s=qn(Symbol());if(n){Object.assign(t.meta,n.meta||{},{cache:n.cache});const{useTitle:o}=e==null?void 0:e.adapter;o&&o(n.title||"VTJ")}return{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?zn(e,st(z({},t),{key:r})):zn("div","页面不存在")},activated(){this.meta.cache===!1&&(this.sid=Symbol())}}),cw=$i({name:"VtjStartupContainer",render(){return zn("div","page not found!")}}),ps=Symbol("Provider");var al=(e=>(e.Production="production",e.Development="development",e))(al||{});class cl extends Fc{constructor(r){super();A(this,"mode");A(this,"globals",{});A(this,"modules",{});A(this,"adapter",{request:or,jsonp:ss});A(this,"apis",{});A(this,"dependencies",{});A(this,"materials",{});A(this,"library",{});A(this,"service");A(this,"project",null);A(this,"components",{});A(this,"nodeEnv","development");A(this,"router",null);A(this,"materialPath","./");A(this,"urlDslCaches",{});this.options=r;const{service:n,mode:i=ht.Raw,dependencies:s,materials:o,project:a={},adapter:u={},globals:c={},modules:l={},router:f=null,materialPath:d="./",nodeEnv:h="development"}=r;this.mode=i,this.modules=l,this.service=n,this.router=f,this.materialPath=d,this.nodeEnv=h,s&&(this.dependencies=s),o&&(this.materials=o),Object.assign(this.globals,c),Object.assign(this.adapter,u);const{access:m,request:p}=this.adapter;m&&m.connect({mode:i,router:f,request:p}),a&&i!==ht.Design?this.load(a):this.project=a}createMock(r){return(...n)=>L(this,null,function*(){var s;let i={};if(r)try{i=yield r.apply(r,n)}catch(o){se.warn("模拟数据模版异常",o)}return(s=Ce())==null?void 0:s.mock(i)})}load(r){return L(this,null,function*(){const n=this.modules[`.vtj/projects/${r.id}.json`]||this.modules[`/src/.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&&(o.CKEDITOR_VERSION=void 0),this.mode===ht.Raw?yield this.loadDependencies(o):yield this.loadAssets(o),this.initMock(o),this.apis=tl(i,s,this.adapter),fs(o),el(i,o),r.platform!=="uniapp"&&this.initRouter(),this.triggerReady()})}initMock(r){const n=Ce(r);n&&n.setup({timeout:"50-500"})}loadDependencies(r){return L(this,null,function*(){const n=Object.entries(this.dependencies);for(const[i,s]of n)r[i]||(r[i]=this.library[i]=yield s())})}loadAssets(r){return L(this,null,function*(){const{dependencies:n=[]}=this.project,{dependencies:i,library:s,components:o,materialPath:a,nodeEnv:u}=this,{libraryExports:c,libraryMap:l,materials:f,materialExports:d,materialMapLibrary:h}=Uu(n,a,u==="development");for(const m of c){const p=i[m],b=r[m];if(b)s[m]=b;else if(p)r[m]=s[m]=yield p();else{const E=l[m]||[];for(const g of E)bn(g)&&(yield zu(m,ie.append(g,{v:Oe}))),_n(g)&&(yield Si(ie.append(g,{v:Oe})));s[m]=r[m]}}if(u==="development"){for(const p of f)yield Si(ie.append(p,{v:Oe}));const m=this.materials||{};for(const p of d){const b=r[h[p]],E=Ic[p];if(E)b&&E.forEach(g=>{o[g]=b[g]});else{const g=m[p]?(yield m[p]()).default:r[p];g&&b&&(g.components||[]).forEach(y=>{o[y.name]=Hu(y,b)})}}}})}initRouter(){const{router:r,project:n,options:i,adapter:s}=this;if(!r)return;const o=(n==null?void 0:n.platform)==="uniapp"?"pages":"page",{routeAppendTo:a,pageRouteName:u=o,routeMeta:c}=i,l=a?"":"/",f={path:`${l}${u}/:id`,name:$e,component:Yo},d={path:l,name:Xe,component:n!=null&&n.homepage?Yo:s.startupComponent||cw,meta:c};r.hasRoute($e)&&r.removeRoute($e),r.hasRoute(Xe)&&r.removeRoute(Xe),a?(r.addRoute(a,f),r.addRoute(a,d)):(r.addRoute(f),r.addRoute(d))}install(r){const n=r.config.globalProperties.installed||{};for(const[i,s]of Object.entries(this.library))!n[i]&&Ju(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(ps,this),r.config.globalProperties.$provider=this,r.config.globalProperties.installed=n,this.mode===ht.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),this.adapter.notify&&this.adapter.notify(c,"组件渲染错误","error")})}getFile(r){const{blocks:n=[]}=this.project||{};return this.getPage(r)||n.find(i=>i.id===r)||null}getPage(r){const{pages:n=[]}=this.project||{},i=(s,o=[])=>{for(const a of o){if(a.id===s)return a;if(a.children&&a.children.length){const u=i(s,a.children);if(u)return u}}};return i(r,n)||null}getHomepage(){const{homepage:r}=this.project||{};return r?this.getPage(r):null}getDsl(r){return L(this,null,function*(){const n=this.modules[`.vtj/files/${r}.json`]||this.modules[`/src/.vtj/files/${r}.json`];return n?yield n():this.service.getFile(r,this.project||void 0).catch(()=>null)})}getDslByUrl(r){return L(this,null,function*(){return this.urlDslCaches[r]||(this.adapter.request?this.urlDslCaches[r]=this.adapter.request.send({url:r,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(i=>i.data).catch(()=>null):null)})}createDslRenderer(r,n={}){const{library:i,components:s,mode:o,apis:a}=this,u=z({mode:o,Vue:i.Vue,components:s,libs:i,apis:a,window},n),c=Xr({getDsl:l=>L(this,null,function*(){return(yield this.getDsl(l))||null}),getDslByUrl:l=>L(this,null,function*(){return(yield this.getDslByUrl(l))||null}),options:u});return Zr(st(z({},u),{dsl:r,loader:c}))}getRenderComponent(r,n){return L(this,null,function*(){var u;const i=this.getFile(r);if(!i)return se.warn(`Can not find file: ${r}`),null;n&&n(i);const s=`.vtj/vue/${r}.vue`,o=this.modules[s]||this.modules[`/src/pages/${r}.vue`];if(o)return(u=yield o())==null?void 0:u.default;const a=yield this.getDsl(i.id);return a?this.createDslRenderer(a).renderer:(se.warn(`Can not find dsl: ${r}`),null)})}defineUrlSchemaComponent(r,n){return ws(()=>L(this,null,function*(){const i=yield this.getDslByUrl(r);return i?(i.name=n||i.name,this.createDslRenderer(i).renderer):null}))}definePluginComponent(r){return ws(()=>L(this,null,function*(){return yield hs(r,window)}))}}function uw(e){const t=new cl(e);return{provider:t,onReady:r=>t.ready(r)}}function ms(e={}){const t=Go(ps,null);if(!t)throw new Error("Can not find provider");if(t.nodeEnv==="development"){const{id:r,version:n}=e;r&&n&&L(this,null,function*(){const i=yield t.getDsl(r);(i==null?void 0:i.__VERSION__)!==n&&t.adapter.notify&&t.adapter.notify(`[ ${i==null?void 0:i.name} ] 组件源码版本与运行时版本不一致,请重新发布组件`,"版本不一致","warning")})}return t}const ul={type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:e=>{var t;return((t=e.data)==null?void 0:t.code)===0}},lw=(e,t="/__vtj__/api/:type.json")=>(r,n,i)=>e.send({url:t,method:"post",params:{type:r},query:i,data:{type:r,data:n},settings:ul}),fw=(e,t="/__vtj__/api/uploader.json")=>(r,n)=>L(void 0,null,function*(){return yield e.send({url:t,method:"post",data:{files:r,projectId:n},settings:st(z({},ul),{type:"data"})}).then(i=>i&&i[0]?i[0]:null).catch(()=>null)});function hw(e){return yn({settings:{type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:t=>{var r;return((r=t.data)==null?void 0:r.code)===0},showError:t=>{e&&e(t||"未知错误")}}})}class En{constructor(t=or){A(this,"api");A(this,"pluginCaches",{});A(this,"uploader");this.api=lw(t),this.uploader=fw(t)}getExtension(){return L(this,null,function*(){console.log("BaseService.getExtension")})}init(t){return L(this,null,function*(){return console.log("BaseService.init",t),{}})}saveProject(t,r){return L(this,null,function*(){return!!(yield this.api("saveProject",t,{type:r}).catch(()=>!1))})}saveMaterials(t,r){return L(this,null,function*(){return console.log("BaseService.saveMaterials",t,r),!1})}saveFile(t){return L(this,null,function*(){return console.log("BaseService.saveFile",t),!1})}getFile(t){return L(this,null,function*(){return console.log("BaseService.getFile",t),{}})}removeFile(t){return L(this,null,function*(){return console.log("BaseService.removeFile",t),!1})}saveHistory(t){return L(this,null,function*(){return console.log("BaseService.saveHistory",t),!1})}removeHistory(t){return L(this,null,function*(){return console.log("BaseService.removeHistory",t),!1})}getHistory(t){return L(this,null,function*(){return console.log("BaseService.getHistory",t),{}})}getHistoryItem(t,r){return L(this,null,function*(){return console.log("BaseService.getHistoryItem",t,r),{}})}saveHistoryItem(t,r){return L(this,null,function*(){return console.log("BaseService.saveHistoryItem",t,r),!1})}removeHistoryItem(t,r){return L(this,null,function*(){return console.log("BaseService.removeHistoryItem",t,r),!1})}publish(t){return L(this,null,function*(){return!!(yield this.api("publish",t).catch(()=>!1))})}publishFile(t,r){return L(this,null,function*(){return!!(yield this.api("publishFile",{project:t,file:r}).catch(()=>!1))})}genVueContent(t,r){return L(this,null,function*(){return yield this.api("genVueContent",{project:t,dsl:r}).catch(()=>"")})}createRawPage(t){return L(this,null,function*(){return yield this.api("createRawPage",t).catch(()=>"")})}removeRawPage(t){return L(this,null,function*(){return yield this.api("removeRawPage",t).catch(()=>"")})}uploadStaticFile(t,r){return L(this,null,function*(){return yield this.uploader(t,r).catch(()=>null)})}getStaticFiles(t){return L(this,null,function*(){return yield this.api("getStaticFiles",t).catch(()=>[])})}removeStaticFile(t,r){return L(this,null,function*(){return yield this.api("removeStaticFile",{name:t,projectId:r}).catch(()=>"")})}clearStaticFiles(t){return L(this,null,function*(){return yield this.api("clearStaticFiles",t).catch(()=>"")})}getPluginMaterial(t){return L(this,null,function*(){const{urls:r=[]}=t,n=r.filter(s=>Lu(s))[0];return n?this.pluginCaches[n]||(this.pluginCaches[n]=or.send({url:n,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(s=>s.data).catch(()=>null)):null})}genSource(t){return L(this,null,function*(){return console.log("BaseService.genSource",t),""})}}const mt=new is({type:"local",expired:0,prefix:"__VTJ_"});class dw extends En{init(t){const r=new ce(t),n=mt.get(`project_${r.id}`),i=Object.assign(r.toDsl(),n||{});return mt.save(`project_${r.id}`,i),Promise.resolve(i)}saveProject(t){const r=new ce(t);return mt.save(`project_${r.id}`,r.toDsl()),Promise.resolve(!0)}saveMaterials(t,r){return mt.save(`materials_${t.id}`,un(r)),Promise.resolve(!0)}saveFile(t){return mt.save(`file_${t.id}`,t),Promise.resolve(!0)}getFile(t){const r=mt.get(`file_${t}`);return r?Promise.resolve(r):Promise.reject(null)}removeFile(t){return mt.remove(`file_${t}`),Promise.resolve(!0)}saveHistory(t){return mt.save(`history_${t.id}`,t),Promise.resolve(!0)}removeHistory(t){const r=mt.get(`history_${t}`);if(r){const n=(r.items||[]).map(i=>i.id);this.removeHistoryItem(t,n),mt.remove(`history_${t}`)}return Promise.resolve(!0)}getHistory(t){const r=mt.get(`history_${t}`),n=new Yi(r||{id:t});return Promise.resolve(n.toDsl())}getHistoryItem(t,r){const n=mt.get(`history_${t}_${r}`);return Promise.resolve(n)}saveHistoryItem(t,r){return mt.save(`history_${t}_${r.id}`,r),Promise.resolve(!0)}removeHistoryItem(t,r){return r.forEach(n=>{mt.remove(`history_${t}_${n}`)}),Promise.resolve(!0)}}class ll extends En{constructor(){super(...arguments);A(this,"projects",{});A(this,"materials",{});A(this,"files",{});A(this,"histories",{});A(this,"historyItems",{})}init(r){const n=new ce(r),i=this.projects[n.id]||{},s=Object.assign(n.toDsl(),i);return this.projects[s.id]=s,Promise.resolve(s)}saveProject(r){const n=new ce(r);return this.projects[n.id]=n.toDsl(),Promise.resolve(!0)}saveMaterials(r,n){return r.id&&(this.materials[r.id]=un(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 Yi(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 Hn=null;function pw(){return Hn||(Hn=new ll,Hn)}class mw extends En{constructor(){super(...arguments);A(this,"getFileCaches",{})}getExtension(){return L(this,null,function*(){return yield this.api("getExtension",{}).catch(()=>{})})}init(r){return L(this,null,function*(){return(yield this.api("init",r).catch(()=>null))||{}})}saveProject(r,n){return L(this,null,function*(){return!!(yield this.api("saveProject",r,{type:n}).catch(()=>!1))})}saveMaterials(r,n){return L(this,null,function*(){return!!(yield this.api("saveMaterials",{project:r,materials:un(n)}).catch(()=>!1))})}saveFile(r){return L(this,null,function*(){return!!(yield this.api("saveFile",r).catch(()=>!1))})}getFile(r){return L(this,null,function*(){return this.getFileCaches[r]||(this.getFileCaches[r]=this.api("getFile",r).catch(()=>null)).finally(()=>{delete this.getFileCaches[r]})})}removeFile(r){return L(this,null,function*(){return!!(yield this.api("removeFile",r).catch(()=>!1))})}saveHistory(r){return L(this,null,function*(){return!!(yield this.api("saveHistory",r).catch(()=>!1))})}removeHistory(r){return L(this,null,function*(){return!!(yield this.api("removeHistory",r).catch(()=>!1))})}getHistory(r){return L(this,null,function*(){return(yield this.api("getHistory",r).catch(()=>null))||{}})}getHistoryItem(r,n){return L(this,null,function*(){return(yield this.api("getHistoryItem",{fId:r,id:n}).catch(()=>null))||{}})}saveHistoryItem(r,n){return L(this,null,function*(){return!!(yield this.api("saveHistoryItem",{fId:r,item:n}).catch(()=>!1))})}removeHistoryItem(r,n){return L(this,null,function*(){return!!(yield this.api("removeHistoryItem",{fId:r,ids:n}).catch(()=>!1))})}}function fl(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?fl(e,t,a):void 0}})}function hl(e,t){if(!t)return e;let r=[];for(const n of e)if(n.children&&n.children.length){const i=hl(n.children,t);i.length&&(n.children=i,r.push(n))}else t.can(n.id.toString())&&r.push(n);return r}function gw(e){const{menuPathPrefix:t="",pageRouteName:r="page",disableMenusFilter:n=!1}=e||{},i=ms(),s=Zo(),o=Zu(),a=qn(!1),u=qn(!1),c=i.project;vl(()=>{const{name:d,params:h,meta:m}=s;if(d===$e){const p=i.getPage(h.id);a.value=!(p!=null&&p.mask),u.value=!!(p!=null&&p.pure)}else if(d===Xe){const p=i.getHomepage();a.value=!(p!=null&&p.mask),u.value=!!(p!=null&&p.pure)}else a.value=!m.mask,u.value=!!m.pure});const l=fl(t,r,c==null?void 0:c.pages),f=c==null?void 0:c.config;return{disabled:a,logo:f==null?void 0:f.logo,themeSwitchable:f==null?void 0:f.themeSwitchable,title:(f==null?void 0:f.title)||(c==null?void 0:c.description)||(c==null?void 0:c.name)||"VTJ App",menus:n?l:hl(l,o),pure:u}}const nE=Object.freeze(Object.defineProperty({__proto__:null,ACCESS_KEY:ls,Access:wn,BUILD_IN_TAGS:Fu,BUILT_IN_DIRECTIVES:ku,BaseService:En,CONTEXT_HOST:Ti,Context:il,ContextMode:ht,DATA_TYPES:Mu,HOMEPAGE_ROUTE_NAME:Xe,HTML_TAGS:Iu,JSCodeToString:N_,LIFE_CYCLES_LIST:j_,LocalService:mw,MemoryService:ll,NodeEnv:al,PAGE_ROUTE_NAME:$e,Provider:cl,StorageService:dw,VTJ_RENDERER_VERSION:Oe,adoptedStyleSheets:us,clearLoaderCache:K_,createAccess:M_,createAdapter:k_,createAssetScripts:D_,createAssetsCss:C_,createDataSources:sl,createLoader:Xr,createMemoryService:pw,createMetaApi:Qu,createMock:rl,createProvider:uw,createRenderer:Zr,createSchemaApi:Xu,createSchemaApis:tl,createServiceRequest:hw,defaultLoader:ol,fillBasePath:Ye,getMock:Ce,getModifiers:ds,getPlugin:hs,getRawComponent:Hu,isBuiltInTag:Wu,isCSSUrl:bn,isJSCode:Gu,isJSExpression:wt,isJSFunction:Ie,isJSON:Lu,isJSUrl:_n,isNativeTag:Yu,isVuePlugin:Ju,loadCss:zu,loadCssUrl:qu,loadScriptUrl:Ku,mockApi:nl,mockApis:el,mockCleanup:fs,nodeRender:ar,parseDeps:Uu,parseExpression:Pe,parseFunction:Gr,providerKey:ps,removeProdFlag:Vu,setupPageSetting:P_,toString:cs,useAccess:Zu,useMask:gw,useProvider:ms},Symbol.toStringTag,{value:"Module"})),vw=$i({__name:"app",setup(e){return(t,r)=>{const n=yl("router-view");return xs(),Es(Ss(Tl),{locale:Ss(xl)},{default:Ts(()=>[(xs(),Es(bl,null,{default:Ts(()=>[_l(n)]),_:1}))]),_:1},8,["locale"])}}}),yw=[{path:"/",name:"home",component:()=>Ve(()=>import("./index-BVqpvgWv.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]),import.meta.url)},{path:"/preview/:id",name:"preview",component:()=>Ve(()=>import("./preview-i-h1x2G5.js"),__vite__mapDeps([21,13,14,1,2,4,5,3,6,7,8,9,10,11,12,15,16,17,18]),import.meta.url)},{path:"/page/:id",name:"page",component:()=>Ve(()=>import("./page-CqUg-Ezr.js"),__vite__mapDeps([22,13,14,1,2,4,5,3,6,7,8,9,10,11,12,15,16,17,18]),import.meta.url),meta:{pure:!0}},{path:"/pages/:id",name:"page",component:()=>Ve(()=>import("./uni-page-Cjqcu6iY.js"),__vite__mapDeps([23,1,2,19,24]),import.meta.url),meta:{pure:!0}},{path:"/auth",name:"auth",component:()=>Ve(()=>import("./auth-C-5femxN.js"),__vite__mapDeps([25,4,2,5,3,6,7,8,9,10,11,12,13,14,1,15,16,17,19,26]),import.meta.url)}],bw=El({history:Sl(),routes:yw}),_w="RRO_IDE_ACCESS_STORAGE__",gs=wl(vw),ww=new wn({storageKey:_w});gs.use(ww);gs.use(bw);gs.mount("#app");export{G as $,ae as A,us as B,se as C,Fc as D,wn as E,ce as F,I as G,it as H,we as I,oe as J,l1 as K,da as L,Je as M,cl as N,Fr as O,ci as P,qu as Q,ty as R,a_ as S,ai as T,Hc as U,rE as V,zc as W,k_ as X,P_ as Y,M_ as Z,c_ as _,bn as a,nt as a0,We as a1,Nr as a2,qc as a3,Ft as a4,Yi as a5,Xa as a6,V1 as a7,wt as a8,k1 as a9,Mi as aA,Uu as aa,C_ as ab,D_ as ac,Hu as ad,tl as ae,fs as af,el as ag,Ji as ah,Wi as ai,Ke as aj,I1 as ak,Li as al,K_ as am,Kr as an,Ie as ao,i_ as ap,Pe as aq,Gr as ar,ku as as,z1 as at,N_ as au,j_ as av,Mu as aw,rl as ax,s_ as ay,m1 as az,_n as b,Bw as c,Ku as d,ct as e,Rc as f,Dt as g,gt as h,mw as i,$_ as j,Hi as k,ei as l,Hv as m,Se as n,bt as o,Bt as p,Yv as q,nE as r,hw as s,uw as t,si as u,O_ as v,f1 as w,ss as x,ht as y,Ac as z};
|