@vtj/pro 0.10.12 → 0.10.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
  2. package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
  3. package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
  4. package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
  5. package/dist/@vtj/materials/assets/uni-h5/index.umd.js +2 -2
  6. package/dist/@vtj/materials/assets/uni-ui/index.umd.js +2 -2
  7. package/dist/@vtj/materials/assets/vant/index.umd.js +9 -9
  8. package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
  9. package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
  10. package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +2 -2
  11. package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +4 -4
  12. package/dist/assets/{@element-plus-icons-vue-CRZvKNrz.js → @element-plus-icons-vue-CKT2Xck5.js} +1 -1
  13. package/dist/assets/{@vueuse-dS-W09Vv.js → @vueuse-B2Ln5mIU.js} +1 -1
  14. package/dist/assets/{Editor-7SLplEph-lPDo8mjp.js → Editor-7SLplEph-XiU5RCA1.js} +1 -1
  15. package/dist/assets/auth-BNKonXq_.js +1 -0
  16. package/dist/assets/{element-plus-BK-hs3-c.js → element-plus-Bd2bW04a.js} +1 -1
  17. package/dist/assets/{extension-FEBgdJgd.js → extension-C0o-vGA_.js} +10 -10
  18. package/dist/assets/index-DVr_v5KA.js +1 -0
  19. package/dist/assets/{index-CSI9UPqe.js → index-Dq6nvnm8.js} +24 -24
  20. package/dist/assets/page-B0jtXeSQ.js +2 -0
  21. package/dist/assets/preview-Bnmb9ETc.js +2 -0
  22. package/dist/assets/{uni-page-ByIXJ059.js → uni-page-Bjgk97mC.js} +1 -1
  23. package/dist/assets/{utils-CqFMRwm6.js → utils-wPzCLnUa.js} +1 -1
  24. package/dist/assets/{vue-DpQa2Qs4.js → vue-DnfbZNhx.js} +1 -1
  25. package/dist/assets/{vue-router-Dv428VRb.js → vue-router-D8EXeL0F.js} +1 -1
  26. package/dist/assets/{vxe-DEIHqUXR.js → vxe-CFTIhv1S.js} +1 -1
  27. package/dist/index.html +8 -8
  28. package/dist/uni/assets/{@dcloudio-uni-h5-vue-BAS6KGFt.js → @dcloudio-uni-h5-vue-DzUn8GQh.js} +1 -1
  29. package/dist/uni/assets/index-BBofSJhT.js +76 -0
  30. package/dist/uni/assets/{vue-router-Dw1LzioT.js → vue-router-pF46KwvV.js} +1 -1
  31. package/dist/uni/index.html +3 -3
  32. package/package.json +11 -11
  33. package/src/Auth.vue +46 -0
  34. package/src/index.ts +4 -0
  35. package/dist/assets/auth-DyfherFL.js +0 -1
  36. package/dist/assets/index-DX9cw63j.js +0 -1
  37. package/dist/assets/page-Db4iyZjl.js +0 -2
  38. package/dist/assets/preview-D7O5WV4s.js +0 -2
  39. package/dist/uni/assets/index-B00slR6a.js +0 -70
@@ -1,70 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./@dcloudio-uni-h5-vue-BAS6KGFt.js","./vue-BK7aLblh.js","./@dcloudio-uni-shared-VStmjWbh.js","./vue-router-Dw1LzioT.js"])))=>i.map(i=>d[i]);
2
- var Ts=Object.defineProperty,Rs=Object.defineProperties;var Os=Object.getOwnPropertyDescriptors;var rn=Object.getOwnPropertySymbols;var As=Object.prototype.hasOwnProperty,$s=Object.prototype.propertyIsEnumerable;var Ut=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Ds=e=>{throw TypeError(e)};var Xe=(e,t,r)=>t in e?Ts(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,V=(e,t)=>{for(var r in t||(t={}))As.call(t,r)&&Xe(e,r,t[r]);if(rn)for(var r of rn(t))$s.call(t,r)&&Xe(e,r,t[r]);return e},Q=(e,t)=>Rs(e,Os(t));var z=(e,t,r)=>Xe(e,typeof t!="symbol"?t+"":t,r);var U=(e,t,r)=>new Promise((n,i)=>{var o=c=>{try{a(r.next(c))}catch(u){i(u)}},s=c=>{try{a(r.throw(c))}catch(u){i(u)}},a=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,s);a((r=r.apply(e,t)).next())}),$t=function(e,t){this[0]=e,this[1]=t},Qe=(e,t,r)=>{var n=(s,a,c,u)=>{try{var l=r[s](a),f=(a=l.value)instanceof $t,p=l.done;Promise.resolve(f?a[0]:a).then(h=>f?n(s==="return"?s:"next",a[1]?{done:h.done,value:h.value}:h,c,u):c({value:h,done:p})).catch(h=>n("throw",h,c,u))}catch(h){u(h)}},i=s=>o[s]=a=>new Promise((c,u)=>n(s,a,c,u)),o={};return r=r.apply(e,t),o[Ut("asyncIterator")]=()=>o,i("next"),i("throw"),i("return"),o},tr=e=>{var t=e[Ut("asyncIterator")],r=!1,n,i={};return t==null?(t=e[Ut("iterator")](),n=o=>i[o]=s=>t[o](s)):(t=t.call(e),n=o=>i[o]=s=>{if(r){if(r=!1,o==="throw")throw s;return s}return r=!0,{done:!1,value:new $t(new Promise(a=>{var c=t[o](s);c instanceof Object||Ds("Object expected"),a(c)}),1)}}),i[Ut("iterator")]=()=>i,n("next"),"throw"in t?n("throw"):i.throw=o=>{throw o},"return"in t&&n("return"),i},nn=(e,t,r)=>(t=e[Ut("asyncIterator")])?t.call(e):(e=e[Ut("iterator")](),t={},r=(n,i)=>(i=e[n])&&(t[n]=o=>new Promise((s,a,c)=>(o=i.call(e,o),c=o.done,Promise.resolve(o.value).then(u=>s({value:u,done:c}),a)))),r("next"),r("return"),t);import{v as er,d as Ri,g as on,h as yr,r as js,x as Ue,i as Bs}from"./@dcloudio-uni-h5-vue-BAS6KGFt.js";import{useRoute as Cs}from"./vue-router-Dw1LzioT.js";import"./vue-BK7aLblh.js";import"./@dcloudio-uni-shared-VStmjWbh.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 o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();const Ns="modulepreload",Is=function(e,t){return new URL(e,t).href},sn={},an=function(t,r,n){let i=Promise.resolve();if(r&&r.length>0){const s=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),c=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));i=Promise.allSettled(r.map(u=>{if(u=Is(u,n),u in sn)return;sn[u]=!0;const l=u.endsWith(".css"),f=l?'[rel="stylesheet"]':"";if(!!n)for(let d=s.length-1;d>=0;d--){const m=s[d];if(m.href===u&&(!l||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${f}`))return;const h=document.createElement("link");if(h.rel=l?"stylesheet":Ns,l||(h.as="script"),h.crossOrigin="",h.href=u,c&&h.setAttribute("nonce",c),document.head.appendChild(h),l)return new Promise((d,m)=>{h.addEventListener("load",d),h.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return i.then(s=>{for(const a of s||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})};var Fs={ENV_TYPE:"live",NODE_ENV:"production"},Ps=typeof global=="object"&&global&&global.Object===Object&&global;const Oi=Ps;var Ms=typeof self=="object"&&self&&self.Object===Object&&self,ks=Oi||Ms||Function("return this")();const pt=ks;var Us=pt.Symbol;const gt=Us;var Ai=Object.prototype,Ls=Ai.hasOwnProperty,Vs=Ai.toString,ne=gt?gt.toStringTag:void 0;function Hs(e){var t=Ls.call(e,ne),r=e[ne];try{e[ne]=void 0;var n=!0}catch(o){}var i=Vs.call(e);return n&&(t?e[ne]=r:delete e[ne]),i}var qs=Object.prototype,zs=qs.toString;function Ws(e){return zs.call(e)}var Js="[object Null]",Ys="[object Undefined]",un=gt?gt.toStringTag:void 0;function bt(e){return e==null?e===void 0?Ys:Js:un&&un in Object(e)?Hs(e):Ws(e)}function Tt(e){return e!=null&&typeof e=="object"}var Ks="[object Symbol]";function $i(e){return typeof e=="symbol"||Tt(e)&&bt(e)==Ks}function Di(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 Zs=Array.isArray;const ce=Zs;var cn=gt?gt.prototype:void 0,ln=cn?cn.toString:void 0;function ji(e){if(typeof e=="string")return e;if(ce(e))return Di(e,ji)+"";if($i(e))return ln?ln.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Gs=/\s/;function Xs(e){for(var t=e.length;t--&&Gs.test(e.charAt(t)););return t}var Qs=/^\s+/;function ta(e){return e&&e.slice(0,Xs(e)+1).replace(Qs,"")}function ft(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var fn=NaN,ea=/^[-+]0x[0-9a-f]+$/i,ra=/^0b[01]+$/i,na=/^0o[0-7]+$/i,ia=parseInt;function hn(e){if(typeof e=="number")return e;if($i(e))return fn;if(ft(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ft(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=ta(e);var r=ra.test(e);return r||na.test(e)?ia(e.slice(2),r?2:8):ea.test(e)?fn:+e}function Bi(e){return e}var oa="[object AsyncFunction]",sa="[object Function]",aa="[object GeneratorFunction]",ua="[object Proxy]";function le(e){if(!ft(e))return!1;var t=bt(e);return t==sa||t==aa||t==oa||t==ua}var ca=pt["__core-js_shared__"];const rr=ca;var pn=function(){var e=/[^.]+$/.exec(rr&&rr.keys&&rr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function la(e){return!!pn&&pn in e}var fa=Function.prototype,ha=fa.toString;function Ft(e){if(e!=null){try{return ha.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var pa=/[\\^$.*+?()[\]{}|]/g,da=/^\[object .+?Constructor\]$/,ma=Function.prototype,ga=Object.prototype,ya=ma.toString,va=ga.hasOwnProperty,ba=RegExp("^"+ya.call(va).replace(pa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function wa(e){if(!ft(e)||la(e))return!1;var t=le(e)?ba:da;return t.test(Ft(e))}function _a(e,t){return e==null?void 0:e[t]}function Pt(e,t){var r=_a(e,t);return wa(r)?r:void 0}var Ea=Pt(pt,"WeakMap");const vr=Ea;var dn=Object.create,Sa=function(){function e(){}return function(t){if(!ft(t))return{};if(dn)return dn(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const xa=Sa;function Ci(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 Ta(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Ra=800,Oa=16,Aa=Date.now;function $a(e){var t=0,r=0;return function(){var n=Aa(),i=Oa-(n-r);if(r=n,i>0){if(++t>=Ra)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Da(e){return function(){return e}}var ja=function(){try{var e=Pt(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();const Ie=ja;var Ba=Ie?function(e,t){return Ie(e,"toString",{configurable:!0,enumerable:!1,value:Da(t),writable:!0})}:Bi;const Ca=Ba;var Na=$a(Ca);const Ia=Na;var Fa=9007199254740991,Pa=/^(?:0|[1-9]\d*)$/;function Ni(e,t){var r=typeof e;return t=t!=null?t:Fa,!!t&&(r=="number"||r!="symbol"&&Pa.test(e))&&e>-1&&e%1==0&&e<t}function Hr(e,t,r){t=="__proto__"&&Ie?Ie(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function ge(e,t){return e===t||e!==e&&t!==t}var Ma=Object.prototype,ka=Ma.hasOwnProperty;function Ua(e,t,r){var n=e[t];(!(ka.call(e,t)&&ge(n,r))||r===void 0&&!(t in e))&&Hr(e,t,r)}function Ii(e,t,r,n){var i=!r;r||(r={});for(var o=-1,s=t.length;++o<s;){var a=t[o],c=n?n(r[a],e[a],a,r,e):void 0;c===void 0&&(c=e[a]),i?Hr(r,a,c):Ua(r,a,c)}return r}var mn=Math.max;function La(e,t,r){return t=mn(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=mn(n.length-t,0),s=Array(o);++i<o;)s[i]=n[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=n[i];return a[t]=r(s),Ci(e,this,a)}}function Fi(e,t){return Ia(La(e,t,Bi),e+"")}var Va=9007199254740991;function Pi(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Va}function Le(e){return e!=null&&Pi(e.length)&&!le(e)}function Ha(e,t,r){if(!ft(r))return!1;var n=typeof t;return(n=="number"?Le(r)&&Ni(t,r.length):n=="string"&&t in r)?ge(r[t],e):!1}function Mi(e){return Fi(function(t,r){var n=-1,i=r.length,o=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,s&&Ha(r[0],r[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);++n<i;){var a=r[n];a&&e(t,a,n,o)}return t})}var qa=Object.prototype;function qr(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||qa;return e===r}function za(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Wa="[object Arguments]";function gn(e){return Tt(e)&&bt(e)==Wa}var ki=Object.prototype,Ja=ki.hasOwnProperty,Ya=ki.propertyIsEnumerable,Ka=gn(function(){return arguments}())?gn:function(e){return Tt(e)&&Ja.call(e,"callee")&&!Ya.call(e,"callee")};const br=Ka;function Za(){return!1}var Ui=typeof exports=="object"&&exports&&!exports.nodeType&&exports,yn=Ui&&typeof module=="object"&&module&&!module.nodeType&&module,Ga=yn&&yn.exports===Ui,vn=Ga?pt.Buffer:void 0,Xa=vn?vn.isBuffer:void 0,Qa=Xa||Za;const Li=Qa;var tu="[object Arguments]",eu="[object Array]",ru="[object Boolean]",nu="[object Date]",iu="[object Error]",ou="[object Function]",su="[object Map]",au="[object Number]",uu="[object Object]",cu="[object RegExp]",lu="[object Set]",fu="[object String]",hu="[object WeakMap]",pu="[object ArrayBuffer]",du="[object DataView]",mu="[object Float32Array]",gu="[object Float64Array]",yu="[object Int8Array]",vu="[object Int16Array]",bu="[object Int32Array]",wu="[object Uint8Array]",_u="[object Uint8ClampedArray]",Eu="[object Uint16Array]",Su="[object Uint32Array]",K={};K[mu]=K[gu]=K[yu]=K[vu]=K[bu]=K[wu]=K[_u]=K[Eu]=K[Su]=!0,K[tu]=K[eu]=K[pu]=K[ru]=K[du]=K[nu]=K[iu]=K[ou]=K[su]=K[au]=K[uu]=K[cu]=K[lu]=K[fu]=K[hu]=!1;function xu(e){return Tt(e)&&Pi(e.length)&&!!K[bt(e)]}function Tu(e){return function(t){return e(t)}}var Vi=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ue=Vi&&typeof module=="object"&&module&&!module.nodeType&&module,Ru=ue&&ue.exports===Vi,nr=Ru&&Oi.process,Ou=function(){try{var e=ue&&ue.require&&ue.require("util").types;return e||nr&&nr.binding&&nr.binding("util")}catch(t){}}();const yt=Ou;var bn=yt&&yt.isTypedArray,Au=bn?Tu(bn):xu;const Hi=Au;var $u=Object.prototype,Du=$u.hasOwnProperty;function qi(e,t){var r=ce(e),n=!r&&br(e),i=!r&&!n&&Li(e),o=!r&&!n&&!i&&Hi(e),s=r||n||i||o,a=s?za(e.length,String):[],c=a.length;for(var u in e)(t||Du.call(e,u))&&!(s&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Ni(u,c)))&&a.push(u);return a}function zi(e,t){return function(r){return e(t(r))}}var ju=zi(Object.keys,Object);const Bu=ju;var Cu=Object.prototype,Nu=Cu.hasOwnProperty;function Iu(e){if(!qr(e))return Bu(e);var t=[];for(var r in Object(e))Nu.call(e,r)&&r!="constructor"&&t.push(r);return t}function Fu(e){return Le(e)?qi(e):Iu(e)}function Pu(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Mu=Object.prototype,ku=Mu.hasOwnProperty;function Uu(e){if(!ft(e))return Pu(e);var t=qr(e),r=[];for(var n in e)n=="constructor"&&(t||!ku.call(e,n))||r.push(n);return r}function zr(e){return Le(e)?qi(e,!0):Uu(e)}var Lu=Mi(function(e,t,r,n){Ii(t,zr(t),e,n)});const wn=Lu;var Vu=Pt(Object,"create");const fe=Vu;function Hu(){this.__data__=fe?fe(null):{},this.size=0}function qu(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var zu="__lodash_hash_undefined__",Wu=Object.prototype,Ju=Wu.hasOwnProperty;function Yu(e){var t=this.__data__;if(fe){var r=t[e];return r===zu?void 0:r}return Ju.call(t,e)?t[e]:void 0}var Ku=Object.prototype,Zu=Ku.hasOwnProperty;function Gu(e){var t=this.__data__;return fe?t[e]!==void 0:Zu.call(t,e)}var Xu="__lodash_hash_undefined__";function Qu(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=fe&&t===void 0?Xu:t,this}function Bt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Bt.prototype.clear=Hu,Bt.prototype.delete=qu,Bt.prototype.get=Yu,Bt.prototype.has=Gu,Bt.prototype.set=Qu;function tc(){this.__data__=[],this.size=0}function Ve(e,t){for(var r=e.length;r--;)if(ge(e[r][0],t))return r;return-1}var ec=Array.prototype,rc=ec.splice;function nc(e){var t=this.__data__,r=Ve(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():rc.call(t,r,1),--this.size,!0}function ic(e){var t=this.__data__,r=Ve(t,e);return r<0?void 0:t[r][1]}function oc(e){return Ve(this.__data__,e)>-1}function sc(e,t){var r=this.__data__,n=Ve(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function vt(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])}}vt.prototype.clear=tc,vt.prototype.delete=nc,vt.prototype.get=ic,vt.prototype.has=oc,vt.prototype.set=sc;var ac=Pt(pt,"Map");const he=ac;function uc(){this.size=0,this.__data__={hash:new Bt,map:new(he||vt),string:new Bt}}function cc(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function He(e,t){var r=e.__data__;return cc(t)?r[typeof t=="string"?"string":"hash"]:r.map}function lc(e){var t=He(this,e).delete(e);return this.size-=t?1:0,t}function fc(e){return He(this,e).get(e)}function hc(e){return He(this,e).has(e)}function pc(e,t){var r=He(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function St(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])}}St.prototype.clear=uc,St.prototype.delete=lc,St.prototype.get=fc,St.prototype.has=hc,St.prototype.set=pc;var dc="Expected a function";function Wr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(dc);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(Wr.Cache||St),r}Wr.Cache=St;var mc=500;function gc(e){var t=Wr(e,function(n){return r.size===mc&&r.clear(),n}),r=t.cache;return t}var yc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vc=/\\(\\)?/g;gc(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(yc,function(r,n,i,o){t.push(i?o.replace(vc,"$1"):n||r)}),t});function Gt(e){return e==null?"":ji(e)}var bc=zi(Object.getPrototypeOf,Object);const Wi=bc;var wc="[object Object]",_c=Function.prototype,Ec=Object.prototype,Ji=_c.toString,Sc=Ec.hasOwnProperty,xc=Ji.call(Object);function Yi(e){if(!Tt(e)||bt(e)!=wc)return!1;var t=Wi(e);if(t===null)return!0;var r=Sc.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Ji.call(r)==xc}var Tc="[object DOMException]",Rc="[object Error]";function Ki(e){if(!Tt(e))return!1;var t=bt(e);return t==Rc||t==Tc||typeof e.message=="string"&&typeof e.name=="string"&&!Yi(e)}var Oc=Fi(function(e,t){try{return Ci(e,void 0,t)}catch(r){return Ki(r)?r:new Error(r)}});const Ac=Oc;function $c(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 o=Array(i);++n<i;)o[n]=e[n+t];return o}function Dc(e,t,r){var n=e.length;return r=r===void 0?n:r,$c(e,t,r)}var jc="\\ud800-\\udfff",Bc="\\u0300-\\u036f",Cc="\\ufe20-\\ufe2f",Nc="\\u20d0-\\u20ff",Ic=Bc+Cc+Nc,Fc="\\ufe0e\\ufe0f",Pc="\\u200d",Mc=RegExp("["+Pc+jc+Ic+Fc+"]");function Zi(e){return Mc.test(e)}function kc(e){return e.split("")}var Gi="\\ud800-\\udfff",Uc="\\u0300-\\u036f",Lc="\\ufe20-\\ufe2f",Vc="\\u20d0-\\u20ff",Hc=Uc+Lc+Vc,qc="\\ufe0e\\ufe0f",zc="["+Gi+"]",wr="["+Hc+"]",_r="\\ud83c[\\udffb-\\udfff]",Wc="(?:"+wr+"|"+_r+")",Xi="[^"+Gi+"]",Qi="(?:\\ud83c[\\udde6-\\uddff]){2}",to="[\\ud800-\\udbff][\\udc00-\\udfff]",Jc="\\u200d",eo=Wc+"?",ro="["+qc+"]?",Yc="(?:"+Jc+"(?:"+[Xi,Qi,to].join("|")+")"+ro+eo+")*",Kc=ro+eo+Yc,Zc="(?:"+[Xi+wr+"?",wr,Qi,to,zc].join("|")+")",Gc=RegExp(_r+"(?="+_r+")|"+Zc+Kc,"g");function Xc(e){return e.match(Gc)||[]}function Qc(e){return Zi(e)?Xc(e):kc(e)}function tl(e){return function(t){t=Gt(t);var r=Zi(t)?Qc(t):void 0,n=r?r[0]:t.charAt(0),i=r?Dc(r,1).join(""):t.slice(1);return n[e]()+i}}var el=tl("toUpperCase");const no=el;function rl(e){return no(Gt(e).toLowerCase())}function nl(e,t,r,n){var i=-1,o=e==null?0:e.length;for(n;++i<o;)r=t(r,e[i],i,e);return r}function io(e){return function(t){return e==null?void 0:e[t]}}var il={À:"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"},ol=io(il);const sl=ol;var al=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ul="\\u0300-\\u036f",cl="\\ufe20-\\ufe2f",ll="\\u20d0-\\u20ff",fl=ul+cl+ll,hl="["+fl+"]",pl=RegExp(hl,"g");function dl(e){return e=Gt(e),e&&e.replace(al,sl).replace(pl,"")}var ml=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function gl(e){return e.match(ml)||[]}var yl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function vl(e){return yl.test(e)}var oo="\\ud800-\\udfff",bl="\\u0300-\\u036f",wl="\\ufe20-\\ufe2f",_l="\\u20d0-\\u20ff",El=bl+wl+_l,so="\\u2700-\\u27bf",ao="a-z\\xdf-\\xf6\\xf8-\\xff",Sl="\\xac\\xb1\\xd7\\xf7",xl="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Tl="\\u2000-\\u206f",Rl=" \\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",uo="A-Z\\xc0-\\xd6\\xd8-\\xde",Ol="\\ufe0e\\ufe0f",co=Sl+xl+Tl+Rl,lo="['’]",_n="["+co+"]",Al="["+El+"]",fo="\\d+",$l="["+so+"]",ho="["+ao+"]",po="[^"+oo+co+fo+so+ao+uo+"]",Dl="\\ud83c[\\udffb-\\udfff]",jl="(?:"+Al+"|"+Dl+")",Bl="[^"+oo+"]",mo="(?:\\ud83c[\\udde6-\\uddff]){2}",go="[\\ud800-\\udbff][\\udc00-\\udfff]",zt="["+uo+"]",Cl="\\u200d",En="(?:"+ho+"|"+po+")",Nl="(?:"+zt+"|"+po+")",Sn="(?:"+lo+"(?:d|ll|m|re|s|t|ve))?",xn="(?:"+lo+"(?:D|LL|M|RE|S|T|VE))?",yo=jl+"?",vo="["+Ol+"]?",Il="(?:"+Cl+"(?:"+[Bl,mo,go].join("|")+")"+vo+yo+")*",Fl="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ml=vo+yo+Il,kl="(?:"+[$l,mo,go].join("|")+")"+Ml,Ul=RegExp([zt+"?"+ho+"+"+Sn+"(?="+[_n,zt,"$"].join("|")+")",Nl+"+"+xn+"(?="+[_n,zt+En,"$"].join("|")+")",zt+"?"+En+"+"+Sn,zt+"+"+xn,Pl,Fl,fo,kl].join("|"),"g");function Ll(e){return e.match(Ul)||[]}function Vl(e,t,r){return e=Gt(e),t=t,t===void 0?vl(e)?Ll(e):gl(e):e.match(t)||[]}var Hl="['’]",ql=RegExp(Hl,"g");function zl(e){return function(t){return nl(Vl(dl(t).replace(ql,"")),e,"")}}var Wl=zl(function(e,t,r){return t=t.toLowerCase(),e+(r?rl(t):t)});const Dt=Wl;function Jl(){this.__data__=new vt,this.size=0}function Yl(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Kl(e){return this.__data__.get(e)}function Zl(e){return this.__data__.has(e)}var Gl=200;function Xl(e,t){var r=this.__data__;if(r instanceof vt){var n=r.__data__;if(!he||n.length<Gl-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new St(n)}return r.set(e,t),this.size=r.size,this}function Wt(e){var t=this.__data__=new vt(e);this.size=t.size}Wt.prototype.clear=Jl,Wt.prototype.delete=Yl,Wt.prototype.get=Kl,Wt.prototype.has=Zl,Wt.prototype.set=Xl;var bo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Tn=bo&&typeof module=="object"&&module&&!module.nodeType&&module,Ql=Tn&&Tn.exports===bo,Rn=Ql?pt.Buffer:void 0;Rn&&Rn.allocUnsafe;function tf(e,t){return e.slice()}var ef=Pt(pt,"DataView");const Er=ef;var rf=Pt(pt,"Promise");const Sr=rf;var nf=Pt(pt,"Set");const xr=nf;var On="[object Map]",of="[object Object]",An="[object Promise]",$n="[object Set]",Dn="[object WeakMap]",jn="[object DataView]",sf=Ft(Er),af=Ft(he),uf=Ft(Sr),cf=Ft(xr),lf=Ft(vr),Lt=bt;(Er&&Lt(new Er(new ArrayBuffer(1)))!=jn||he&&Lt(new he)!=On||Sr&&Lt(Sr.resolve())!=An||xr&&Lt(new xr)!=$n||vr&&Lt(new vr)!=Dn)&&(Lt=function(e){var t=bt(e),r=t==of?e.constructor:void 0,n=r?Ft(r):"";if(n)switch(n){case sf:return jn;case af:return On;case uf:return An;case cf:return $n;case lf:return Dn}return t});var ff=pt.Uint8Array;const Bn=ff;function hf(e){var t=new e.constructor(e.byteLength);return new Bn(t).set(new Bn(e)),t}var Cn=gt?gt.prototype:void 0;Cn&&Cn.valueOf;function pf(e,t){var r=hf(e.buffer);return new e.constructor(r,e.byteOffset,e.length)}function df(e){return typeof e.constructor=="function"&&!qr(e)?xa(Wi(e)):{}}yt&&yt.isMap;yt&&yt.isSet;var Nn=gt?gt.prototype:void 0;Nn&&Nn.valueOf;function mf(e){return function(t,r,n){for(var i=-1,o=Object(t),s=n(t),a=s.length;a--;){var c=s[++i];if(r(o[c],c,o)===!1)break}return t}}var gf=mf();const yf=gf;var vf=function(){return pt.Date.now()};const ir=vf;var bf="Expected a function",wf=Math.max,_f=Math.min;function wo(e,t,r){var n,i,o,s,a,c,u=0,l=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError(bf);t=hn(t)||0,ft(r)&&(l=!!r.leading,f="maxWait"in r,o=f?wf(hn(r.maxWait)||0,t):o,p="trailing"in r?!!r.trailing:p);function h(g){var x=n,O=i;return n=i=void 0,u=g,s=e.apply(O,x),s}function d(g){return u=g,a=setTimeout(E,t),l?h(g):s}function m(g){var x=g-c,O=g-u,M=t-x;return f?_f(M,o-O):M}function b(g){var x=g-c,O=g-u;return c===void 0||x>=t||x<0||f&&O>=o}function E(){var g=ir();if(b(g))return y(g);a=setTimeout(E,m(g))}function y(g){return a=void 0,p&&n?h(g):(n=i=void 0,s)}function v(){a!==void 0&&clearTimeout(a),u=0,n=c=i=a=void 0}function w(){return a===void 0?s:y(ir())}function S(){var g=ir(),x=b(g);if(n=arguments,i=this,c=g,x){if(a===void 0)return d(c);if(f)return clearTimeout(a),a=setTimeout(E,t),h(c)}return a===void 0&&(a=setTimeout(E,t)),s}return S.cancel=v,S.flush=w,S}function Tr(e,t,r){(r!==void 0&&!ge(e[t],r)||r===void 0&&!(t in e))&&Hr(e,t,r)}function Ef(e){return Tt(e)&&Le(e)}function Rr(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function Sf(e){return Ii(e,zr(e))}function xf(e,t,r,n,i,o,s){var a=Rr(e,r),c=Rr(t,r),u=s.get(c);if(u){Tr(e,r,u);return}var l=o?o(a,c,r+"",e,t,s):void 0,f=l===void 0;if(f){var p=ce(c),h=!p&&Li(c),d=!p&&!h&&Hi(c);l=c,p||h||d?ce(a)?l=a:Ef(a)?l=Ta(a):h?(f=!1,l=tf(c)):d?(f=!1,l=pf(c)):l=[]:Yi(c)||br(c)?(l=a,br(a)?l=Sf(a):(!ft(a)||le(a))&&(l=df(c))):f=!1}f&&(s.set(c,l),i(l,c,n,o,s),s.delete(c)),Tr(e,r,l)}function _o(e,t,r,n,i){e!==t&&yf(t,function(o,s){if(i||(i=new Wt),ft(o))xf(e,t,s,r,_o,n,i);else{var a=n?n(Rr(e,s),o,s+"",e,t,i):void 0;a===void 0&&(a=o),Tr(e,s,a)}},zr)}var Tf={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Rf=io(Tf);const Of=Rf;var Eo=/[&<>"']/g,Af=RegExp(Eo.source);function $f(e){return e=Gt(e),e&&Af.test(e)?e.replace(Eo,Of):e}var Df="[object String]";function Mt(e){return typeof e=="string"||!ce(e)&&Tt(e)&&bt(e)==Df}function jf(e,t){return Di(t,function(r){return e[r]})}yt&&yt.isArrayBuffer;yt&&yt.isDate;var Bf=Mi(function(e,t,r){_o(e,t,r)});const se=Bf;var So=Object.prototype,Cf=So.hasOwnProperty;function In(e,t,r,n){return e===void 0||ge(e,So[r])&&!Cf.call(n,r)?t:e}var Nf={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function If(e){return"\\"+Nf[e]}var Ff=/<%=([\s\S]+?)%>/g;const xo=Ff;var Pf=/<%-([\s\S]+?)%>/g;const Mf=Pf;var kf=/<%([\s\S]+?)%>/g;const Uf=kf;var Lf={escape:Mf,evaluate:Uf,interpolate:xo,variable:"",imports:{_:{escape:$f}}};const Fn=Lf;var Vf="Invalid `variable` option passed into `_.template`",Hf=/\b__p \+= '';/g,qf=/\b(__p \+=) '' \+/g,zf=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Wf=/[()=,{}\[\]\/\s]/,Jf=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,we=/($^)/,Yf=/['\n\r\u2028\u2029\\]/g,Kf=Object.prototype,Pn=Kf.hasOwnProperty;function Zf(e,t,r){var n=Fn.imports._.templateSettings||Fn;e=Gt(e),t=wn({},t,n,In);var i=wn({},t.imports,n.imports,In),o=Fu(i),s=jf(i,o),a,c,u=0,l=t.interpolate||we,f="__p += '",p=RegExp((t.escape||we).source+"|"+l.source+"|"+(l===xo?Jf:we).source+"|"+(t.evaluate||we).source+"|$","g"),h=Pn.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+`
3
- `:"";e.replace(p,function(b,E,y,v,w,S){return y||(y=v),f+=e.slice(u,S).replace(Yf,If),E&&(a=!0,f+=`' +
4
- __e(`+E+`) +
5
- '`),w&&(c=!0,f+=`';
6
- `+w+`;
7
- __p += '`),y&&(f+=`' +
8
- ((__t = (`+y+`)) == null ? '' : __t) +
9
- '`),u=S+b.length,b}),f+=`';
10
- `;var d=Pn.call(t,"variable")&&t.variable;if(!d)f=`with (obj) {
11
- `+f+`
12
- }
13
- `;else if(Wf.test(d))throw new Error(Vf);f=(c?f.replace(Hf,""):f).replace(qf,"$1").replace(zf,"$1;"),f="function("+(d||"obj")+`) {
14
- `+(d?"":`obj || (obj = {});
15
- `)+"var __t, __p = ''"+(a?", __e = _.escape":"")+(c?`, __j = Array.prototype.join;
16
- function print() { __p += __j.call(arguments, '') }
17
- `:`;
18
- `)+f+`return __p
19
- }`;var m=Ac(function(){return Function(o,h+"return "+f).apply(void 0,s)});if(m.source=f,Ki(m))throw m;return m}var Gf="Expected a function";function Xf(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(Gf);return ft(r)&&(n="leading"in r?!0:n,i="trailing"in r?!1:i),wo(e,t,{leading:n,maxWait:t,trailing:i})}var rt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var To={exports:{}};function Qf(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 Mn={exports:{}},kn;function Rt(){return kn||(kn=1,function(e,t){(function(r,n){e.exports=n()})(rt,function(){var r=r||function(n,i){var o;if(typeof window<"u"&&window.crypto&&(o=window.crypto),typeof self<"u"&&self.crypto&&(o=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(o=globalThis.crypto),!o&&typeof window<"u"&&window.msCrypto&&(o=window.msCrypto),!o&&typeof rt<"u"&&rt.crypto&&(o=rt.crypto),!o&&typeof Qf=="function")try{o=require("crypto")}catch(y){}var s=function(){if(o){if(typeof o.getRandomValues=="function")try{return o.getRandomValues(new Uint32Array(1))[0]}catch(y){}if(typeof o.randomBytes=="function")try{return o.randomBytes(4).readInt32LE()}catch(y){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function y(){}return function(v){var w;return y.prototype=v,w=new y,y.prototype=null,w}}(),c={},u=c.lib={},l=u.Base=function(){return{extend:function(y){var v=a(this);return y&&v.mixIn(y),(!v.hasOwnProperty("init")||this.init===v.init)&&(v.init=function(){v.$super.init.apply(this,arguments)}),v.init.prototype=v,v.$super=this,v},create:function(){var y=this.extend();return y.init.apply(y,arguments),y},init:function(){},mixIn:function(y){for(var v in y)y.hasOwnProperty(v)&&(this[v]=y[v]);y.hasOwnProperty("toString")&&(this.toString=y.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),f=u.WordArray=l.extend({init:function(y,v){y=this.words=y||[],v!=i?this.sigBytes=v:this.sigBytes=y.length*4},toString:function(y){return(y||h).stringify(this)},concat:function(y){var v=this.words,w=y.words,S=this.sigBytes,g=y.sigBytes;if(this.clamp(),S%4)for(var x=0;x<g;x++){var O=w[x>>>2]>>>24-x%4*8&255;v[S+x>>>2]|=O<<24-(S+x)%4*8}else for(var M=0;M<g;M+=4)v[S+M>>>2]=w[M>>>2];return this.sigBytes+=g,this},clamp:function(){var y=this.words,v=this.sigBytes;y[v>>>2]&=4294967295<<32-v%4*8,y.length=n.ceil(v/4)},clone:function(){var y=l.clone.call(this);return y.words=this.words.slice(0),y},random:function(y){for(var v=[],w=0;w<y;w+=4)v.push(s());return new f.init(v,y)}}),p=c.enc={},h=p.Hex={stringify:function(y){for(var v=y.words,w=y.sigBytes,S=[],g=0;g<w;g++){var x=v[g>>>2]>>>24-g%4*8&255;S.push((x>>>4).toString(16)),S.push((x&15).toString(16))}return S.join("")},parse:function(y){for(var v=y.length,w=[],S=0;S<v;S+=2)w[S>>>3]|=parseInt(y.substr(S,2),16)<<24-S%8*4;return new f.init(w,v/2)}},d=p.Latin1={stringify:function(y){for(var v=y.words,w=y.sigBytes,S=[],g=0;g<w;g++){var x=v[g>>>2]>>>24-g%4*8&255;S.push(String.fromCharCode(x))}return S.join("")},parse:function(y){for(var v=y.length,w=[],S=0;S<v;S++)w[S>>>2]|=(y.charCodeAt(S)&255)<<24-S%4*8;return new f.init(w,v)}},m=p.Utf8={stringify:function(y){try{return decodeURIComponent(escape(d.stringify(y)))}catch(v){throw new Error("Malformed UTF-8 data")}},parse:function(y){return d.parse(unescape(encodeURIComponent(y)))}},b=u.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(y){typeof y=="string"&&(y=m.parse(y)),this._data.concat(y),this._nDataBytes+=y.sigBytes},_process:function(y){var v,w=this._data,S=w.words,g=w.sigBytes,x=this.blockSize,O=x*4,M=g/O;y?M=n.ceil(M):M=n.max((M|0)-this._minBufferSize,0);var _=M*x,T=n.min(_*4,g);if(_){for(var P=0;P<_;P+=x)this._doProcessBlock(S,P);v=S.splice(0,_),w.sigBytes-=T}return new f.init(v,T)},clone:function(){var y=l.clone.call(this);return y._data=this._data.clone(),y},_minBufferSize:0});u.Hasher=b.extend({cfg:l.extend(),init:function(y){this.cfg=this.cfg.extend(y),this.reset()},reset:function(){b.reset.call(this),this._doReset()},update:function(y){return this._append(y),this._process(),this},finalize:function(y){y&&this._append(y);var v=this._doFinalize();return v},blockSize:16,_createHelper:function(y){return function(v,w){return new y.init(w).finalize(v)}},_createHmacHelper:function(y){return function(v,w){return new E.HMAC.init(y,w).finalize(v)}}});var E=c.algo={};return c}(Math);return r})}(Mn)),Mn.exports}(function(e,t){(function(r,n){e.exports=n(Rt())})(rt,function(r){return function(n){var i=r,o=i.lib,s=o.WordArray,a=o.Hasher,c=i.algo,u=[];(function(){for(var m=0;m<64;m++)u[m]=n.abs(n.sin(m+1))*4294967296|0})();var l=c.MD5=a.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(m,b){for(var E=0;E<16;E++){var y=b+E,v=m[y];m[y]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360}var w=this._hash.words,S=m[b+0],g=m[b+1],x=m[b+2],O=m[b+3],M=m[b+4],_=m[b+5],T=m[b+6],P=m[b+7],j=m[b+8],F=m[b+9],D=m[b+10],C=m[b+11],L=m[b+12],k=m[b+13],H=m[b+14],q=m[b+15],A=w[0],B=w[1],N=w[2],I=w[3];A=f(A,B,N,I,S,7,u[0]),I=f(I,A,B,N,g,12,u[1]),N=f(N,I,A,B,x,17,u[2]),B=f(B,N,I,A,O,22,u[3]),A=f(A,B,N,I,M,7,u[4]),I=f(I,A,B,N,_,12,u[5]),N=f(N,I,A,B,T,17,u[6]),B=f(B,N,I,A,P,22,u[7]),A=f(A,B,N,I,j,7,u[8]),I=f(I,A,B,N,F,12,u[9]),N=f(N,I,A,B,D,17,u[10]),B=f(B,N,I,A,C,22,u[11]),A=f(A,B,N,I,L,7,u[12]),I=f(I,A,B,N,k,12,u[13]),N=f(N,I,A,B,H,17,u[14]),B=f(B,N,I,A,q,22,u[15]),A=p(A,B,N,I,g,5,u[16]),I=p(I,A,B,N,T,9,u[17]),N=p(N,I,A,B,C,14,u[18]),B=p(B,N,I,A,S,20,u[19]),A=p(A,B,N,I,_,5,u[20]),I=p(I,A,B,N,D,9,u[21]),N=p(N,I,A,B,q,14,u[22]),B=p(B,N,I,A,M,20,u[23]),A=p(A,B,N,I,F,5,u[24]),I=p(I,A,B,N,H,9,u[25]),N=p(N,I,A,B,O,14,u[26]),B=p(B,N,I,A,j,20,u[27]),A=p(A,B,N,I,k,5,u[28]),I=p(I,A,B,N,x,9,u[29]),N=p(N,I,A,B,P,14,u[30]),B=p(B,N,I,A,L,20,u[31]),A=h(A,B,N,I,_,4,u[32]),I=h(I,A,B,N,j,11,u[33]),N=h(N,I,A,B,C,16,u[34]),B=h(B,N,I,A,H,23,u[35]),A=h(A,B,N,I,g,4,u[36]),I=h(I,A,B,N,M,11,u[37]),N=h(N,I,A,B,P,16,u[38]),B=h(B,N,I,A,D,23,u[39]),A=h(A,B,N,I,k,4,u[40]),I=h(I,A,B,N,S,11,u[41]),N=h(N,I,A,B,O,16,u[42]),B=h(B,N,I,A,T,23,u[43]),A=h(A,B,N,I,F,4,u[44]),I=h(I,A,B,N,L,11,u[45]),N=h(N,I,A,B,q,16,u[46]),B=h(B,N,I,A,x,23,u[47]),A=d(A,B,N,I,S,6,u[48]),I=d(I,A,B,N,P,10,u[49]),N=d(N,I,A,B,H,15,u[50]),B=d(B,N,I,A,_,21,u[51]),A=d(A,B,N,I,L,6,u[52]),I=d(I,A,B,N,O,10,u[53]),N=d(N,I,A,B,D,15,u[54]),B=d(B,N,I,A,g,21,u[55]),A=d(A,B,N,I,j,6,u[56]),I=d(I,A,B,N,q,10,u[57]),N=d(N,I,A,B,T,15,u[58]),B=d(B,N,I,A,k,21,u[59]),A=d(A,B,N,I,M,6,u[60]),I=d(I,A,B,N,C,10,u[61]),N=d(N,I,A,B,x,15,u[62]),B=d(B,N,I,A,F,21,u[63]),w[0]=w[0]+A|0,w[1]=w[1]+B|0,w[2]=w[2]+N|0,w[3]=w[3]+I|0},_doFinalize:function(){var m=this._data,b=m.words,E=this._nDataBytes*8,y=m.sigBytes*8;b[y>>>5]|=128<<24-y%32;var v=n.floor(E/4294967296),w=E;b[(y+64>>>9<<4)+15]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,b[(y+64>>>9<<4)+14]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,m.sigBytes=(b.length+1)*4,this._process();for(var S=this._hash,g=S.words,x=0;x<4;x++){var O=g[x];g[x]=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360}return S},clone:function(){var m=a.clone.call(this);return m._hash=this._hash.clone(),m}});function f(m,b,E,y,v,w,S){var g=m+(b&E|~b&y)+v+S;return(g<<w|g>>>32-w)+b}function p(m,b,E,y,v,w,S){var g=m+(b&y|E&~y)+v+S;return(g<<w|g>>>32-w)+b}function h(m,b,E,y,v,w,S){var g=m+(b^E^y)+v+S;return(g<<w|g>>>32-w)+b}function d(m,b,E,y,v,w,S){var g=m+(E^(b|~y))+v+S;return(g<<w|g>>>32-w)+b}i.MD5=a._createHelper(l),i.HmacMD5=a._createHmacHelper(l)}(Math),r.MD5})})(To);var Ro=To.exports;Xt(Ro);var Oo={exports:{}};(function(e,t){(function(r,n){e.exports=n(Rt())})(rt,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,s=n.enc;s.Base64={stringify:function(c){var u=c.words,l=c.sigBytes,f=this._map;c.clamp();for(var p=[],h=0;h<l;h+=3)for(var d=u[h>>>2]>>>24-h%4*8&255,m=u[h+1>>>2]>>>24-(h+1)%4*8&255,b=u[h+2>>>2]>>>24-(h+2)%4*8&255,E=d<<16|m<<8|b,y=0;y<4&&h+y*.75<l;y++)p.push(f.charAt(E>>>6*(3-y)&63));var v=f.charAt(64);if(v)for(;p.length%4;)p.push(v);return p.join("")},parse:function(c){var u=c.length,l=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var p=0;p<l.length;p++)f[l.charCodeAt(p)]=p}var h=l.charAt(64);if(h){var d=c.indexOf(h);d!==-1&&(u=d)}return a(c,u,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function a(c,u,l){for(var f=[],p=0,h=0;h<u;h++)if(h%4){var d=l[c.charCodeAt(h-1)]<<h%4*2,m=l[c.charCodeAt(h)]>>>6-h%4*2,b=d|m;f[p>>>2]|=b<<24-p%4*8,p++}return o.create(f,p)}}(),r.enc.Base64})})(Oo);var Ao=Oo.exports;Xt(Ao);var $o={exports:{}};(function(e,t){(function(r,n){e.exports=n(Rt())})(rt,function(r){return r.enc.Utf8})})($o);var th=$o.exports;Xt(th);var Do={exports:{}},Un={exports:{}},Ln={exports:{}},Vn;function eh(){return Vn||(Vn=1,function(e,t){(function(r,n){e.exports=n(Rt())})(rt,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,s=i.Hasher,a=n.algo,c=[],u=a.SHA1=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(l,f){for(var p=this._hash.words,h=p[0],d=p[1],m=p[2],b=p[3],E=p[4],y=0;y<80;y++){if(y<16)c[y]=l[f+y]|0;else{var v=c[y-3]^c[y-8]^c[y-14]^c[y-16];c[y]=v<<1|v>>>31}var w=(h<<5|h>>>27)+E+c[y];y<20?w+=(d&m|~d&b)+1518500249:y<40?w+=(d^m^b)+1859775393:y<60?w+=(d&m|d&b|m&b)-1894007588:w+=(d^m^b)-899497514,E=b,b=m,m=d<<30|d>>>2,d=h,h=w}p[0]=p[0]+h|0,p[1]=p[1]+d|0,p[2]=p[2]+m|0,p[3]=p[3]+b|0,p[4]=p[4]+E|0},_doFinalize:function(){var l=this._data,f=l.words,p=this._nDataBytes*8,h=l.sigBytes*8;return f[h>>>5]|=128<<24-h%32,f[(h+64>>>9<<4)+14]=Math.floor(p/4294967296),f[(h+64>>>9<<4)+15]=p,l.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var l=s.clone.call(this);return l._hash=this._hash.clone(),l}});n.SHA1=s._createHelper(u),n.HmacSHA1=s._createHmacHelper(u)}(),r.SHA1})}(Ln)),Ln.exports}var Hn={exports:{}},qn;function rh(){return qn||(qn=1,function(e,t){(function(r,n){e.exports=n(Rt())})(rt,function(r){(function(){var n=r,i=n.lib,o=i.Base,s=n.enc,a=s.Utf8,c=n.algo;c.HMAC=o.extend({init:function(u,l){u=this._hasher=new u.init,typeof l=="string"&&(l=a.parse(l));var f=u.blockSize,p=f*4;l.sigBytes>p&&(l=u.finalize(l)),l.clamp();for(var h=this._oKey=l.clone(),d=this._iKey=l.clone(),m=h.words,b=d.words,E=0;E<f;E++)m[E]^=1549556828,b[E]^=909522486;h.sigBytes=d.sigBytes=p,this.reset()},reset:function(){var u=this._hasher;u.reset(),u.update(this._iKey)},update:function(u){return this._hasher.update(u),this},finalize:function(u){var l=this._hasher,f=l.finalize(u);l.reset();var p=l.finalize(this._oKey.clone().concat(f));return p}})})()})}(Hn)),Hn.exports}var zn;function jo(){return zn||(zn=1,function(e,t){(function(r,n,i){e.exports=n(Rt(),eh(),rh())})(rt,function(r){return function(){var n=r,i=n.lib,o=i.Base,s=i.WordArray,a=n.algo,c=a.MD5,u=a.EvpKDF=o.extend({cfg:o.extend({keySize:128/32,hasher:c,iterations:1}),init:function(l){this.cfg=this.cfg.extend(l)},compute:function(l,f){for(var p,h=this.cfg,d=h.hasher.create(),m=s.create(),b=m.words,E=h.keySize,y=h.iterations;b.length<E;){p&&d.update(p),p=d.update(l).finalize(f),d.reset();for(var v=1;v<y;v++)p=d.finalize(p),d.reset();m.concat(p)}return m.sigBytes=E*4,m}});n.EvpKDF=function(l,f,p){return u.create(p).compute(l,f)}}(),r.EvpKDF})}(Un)),Un.exports}var Wn={exports:{}},Jn;function nh(){return Jn||(Jn=1,function(e,t){(function(r,n,i){e.exports=n(Rt(),jo())})(rt,function(r){r.lib.Cipher||function(n){var i=r,o=i.lib,s=o.Base,a=o.WordArray,c=o.BufferedBlockAlgorithm,u=i.enc;u.Utf8;var l=u.Base64,f=i.algo,p=f.EvpKDF,h=o.Cipher=c.extend({cfg:s.extend(),createEncryptor:function(_,T){return this.create(this._ENC_XFORM_MODE,_,T)},createDecryptor:function(_,T){return this.create(this._DEC_XFORM_MODE,_,T)},init:function(_,T,P){this.cfg=this.cfg.extend(P),this._xformMode=_,this._key=T,this.reset()},reset:function(){c.reset.call(this),this._doReset()},process:function(_){return this._append(_),this._process()},finalize:function(_){_&&this._append(_);var T=this._doFinalize();return T},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function _(T){return typeof T=="string"?M:g}return function(T){return{encrypt:function(P,j,F){return _(j).encrypt(T,P,j,F)},decrypt:function(P,j,F){return _(j).decrypt(T,P,j,F)}}}}()});o.StreamCipher=h.extend({_doFinalize:function(){var _=this._process(!0);return _},blockSize:1});var d=i.mode={},m=o.BlockCipherMode=s.extend({createEncryptor:function(_,T){return this.Encryptor.create(_,T)},createDecryptor:function(_,T){return this.Decryptor.create(_,T)},init:function(_,T){this._cipher=_,this._iv=T}}),b=d.CBC=function(){var _=m.extend();_.Encryptor=_.extend({processBlock:function(P,j){var F=this._cipher,D=F.blockSize;T.call(this,P,j,D),F.encryptBlock(P,j),this._prevBlock=P.slice(j,j+D)}}),_.Decryptor=_.extend({processBlock:function(P,j){var F=this._cipher,D=F.blockSize,C=P.slice(j,j+D);F.decryptBlock(P,j),T.call(this,P,j,D),this._prevBlock=C}});function T(P,j,F){var D,C=this._iv;C?(D=C,this._iv=n):D=this._prevBlock;for(var L=0;L<F;L++)P[j+L]^=D[L]}return _}(),E=i.pad={},y=E.Pkcs7={pad:function(_,T){for(var P=T*4,j=P-_.sigBytes%P,F=j<<24|j<<16|j<<8|j,D=[],C=0;C<j;C+=4)D.push(F);var L=a.create(D,j);_.concat(L)},unpad:function(_){var T=_.words[_.sigBytes-1>>>2]&255;_.sigBytes-=T}};o.BlockCipher=h.extend({cfg:h.cfg.extend({mode:b,padding:y}),reset:function(){var _;h.reset.call(this);var T=this.cfg,P=T.iv,j=T.mode;this._xformMode==this._ENC_XFORM_MODE?_=j.createEncryptor:(_=j.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==_?this._mode.init(this,P&&P.words):(this._mode=_.call(j,this,P&&P.words),this._mode.__creator=_)},_doProcessBlock:function(_,T){this._mode.processBlock(_,T)},_doFinalize:function(){var _,T=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(T.pad(this._data,this.blockSize),_=this._process(!0)):(_=this._process(!0),T.unpad(_)),_},blockSize:128/32});var v=o.CipherParams=s.extend({init:function(_){this.mixIn(_)},toString:function(_){return(_||this.formatter).stringify(this)}}),w=i.format={},S=w.OpenSSL={stringify:function(_){var T,P=_.ciphertext,j=_.salt;return j?T=a.create([1398893684,1701076831]).concat(j).concat(P):T=P,T.toString(l)},parse:function(_){var T,P=l.parse(_),j=P.words;return j[0]==1398893684&&j[1]==1701076831&&(T=a.create(j.slice(2,4)),j.splice(0,4),P.sigBytes-=16),v.create({ciphertext:P,salt:T})}},g=o.SerializableCipher=s.extend({cfg:s.extend({format:S}),encrypt:function(_,T,P,j){j=this.cfg.extend(j);var F=_.createEncryptor(P,j),D=F.finalize(T),C=F.cfg;return v.create({ciphertext:D,key:P,iv:C.iv,algorithm:_,mode:C.mode,padding:C.padding,blockSize:_.blockSize,formatter:j.format})},decrypt:function(_,T,P,j){j=this.cfg.extend(j),T=this._parse(T,j.format);var F=_.createDecryptor(P,j).finalize(T.ciphertext);return F},_parse:function(_,T){return typeof _=="string"?T.parse(_,this):_}}),x=i.kdf={},O=x.OpenSSL={execute:function(_,T,P,j,F){if(j||(j=a.random(64/8)),F)var D=p.create({keySize:T+P,hasher:F}).compute(_,j);else var D=p.create({keySize:T+P}).compute(_,j);var C=a.create(D.words.slice(T),P*4);return D.sigBytes=T*4,v.create({key:D,iv:C,salt:j})}},M=o.PasswordBasedCipher=g.extend({cfg:g.cfg.extend({kdf:O}),encrypt:function(_,T,P,j){j=this.cfg.extend(j);var F=j.kdf.execute(P,_.keySize,_.ivSize,j.salt,j.hasher);j.iv=F.iv;var D=g.encrypt.call(this,_,T,F.key,j);return D.mixIn(F),D},decrypt:function(_,T,P,j){j=this.cfg.extend(j),T=this._parse(T,j.format);var F=j.kdf.execute(P,_.keySize,_.ivSize,T.salt,j.hasher);j.iv=F.iv;var D=g.decrypt.call(this,_,T,F.key,j);return D}})}()})}(Wn)),Wn.exports}(function(e,t){(function(r,n,i){e.exports=n(Rt(),Ao,Ro,jo(),nh())})(rt,function(r){return function(){var n=r,i=n.lib,o=i.BlockCipher,s=n.algo,a=[],c=[],u=[],l=[],f=[],p=[],h=[],d=[],m=[],b=[];(function(){for(var v=[],w=0;w<256;w++)w<128?v[w]=w<<1:v[w]=w<<1^283;for(var S=0,g=0,w=0;w<256;w++){var x=g^g<<1^g<<2^g<<3^g<<4;x=x>>>8^x&255^99,a[S]=x,c[x]=S;var O=v[S],M=v[O],_=v[M],T=v[x]*257^x*16843008;u[S]=T<<24|T>>>8,l[S]=T<<16|T>>>16,f[S]=T<<8|T>>>24,p[S]=T;var T=_*16843009^M*65537^O*257^S*16843008;h[x]=T<<24|T>>>8,d[x]=T<<16|T>>>16,m[x]=T<<8|T>>>24,b[x]=T,S?(S=O^v[v[v[_^O]]],g^=v[v[g]]):S=g=1}})();var E=[0,1,2,4,8,16,32,64,128,27,54],y=s.AES=o.extend({_doReset:function(){var v;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var w=this._keyPriorReset=this._key,S=w.words,g=w.sigBytes/4,x=this._nRounds=g+6,O=(x+1)*4,M=this._keySchedule=[],_=0;_<O;_++)_<g?M[_]=S[_]:(v=M[_-1],_%g?g>6&&_%g==4&&(v=a[v>>>24]<<24|a[v>>>16&255]<<16|a[v>>>8&255]<<8|a[v&255]):(v=v<<8|v>>>24,v=a[v>>>24]<<24|a[v>>>16&255]<<16|a[v>>>8&255]<<8|a[v&255],v^=E[_/g|0]<<24),M[_]=M[_-g]^v);for(var T=this._invKeySchedule=[],P=0;P<O;P++){var _=O-P;if(P%4)var v=M[_];else var v=M[_-4];P<4||_<=4?T[P]=v:T[P]=h[a[v>>>24]]^d[a[v>>>16&255]]^m[a[v>>>8&255]]^b[a[v&255]]}}},encryptBlock:function(v,w){this._doCryptBlock(v,w,this._keySchedule,u,l,f,p,a)},decryptBlock:function(v,w){var S=v[w+1];v[w+1]=v[w+3],v[w+3]=S,this._doCryptBlock(v,w,this._invKeySchedule,h,d,m,b,c);var S=v[w+1];v[w+1]=v[w+3],v[w+3]=S},_doCryptBlock:function(v,w,S,g,x,O,M,_){for(var T=this._nRounds,P=v[w]^S[0],j=v[w+1]^S[1],F=v[w+2]^S[2],D=v[w+3]^S[3],C=4,L=1;L<T;L++){var k=g[P>>>24]^x[j>>>16&255]^O[F>>>8&255]^M[D&255]^S[C++],H=g[j>>>24]^x[F>>>16&255]^O[D>>>8&255]^M[P&255]^S[C++],q=g[F>>>24]^x[D>>>16&255]^O[P>>>8&255]^M[j&255]^S[C++],A=g[D>>>24]^x[P>>>16&255]^O[j>>>8&255]^M[F&255]^S[C++];P=k,j=H,F=q,D=A}var k=(_[P>>>24]<<24|_[j>>>16&255]<<16|_[F>>>8&255]<<8|_[D&255])^S[C++],H=(_[j>>>24]<<24|_[F>>>16&255]<<16|_[D>>>8&255]<<8|_[P&255])^S[C++],q=(_[F>>>24]<<24|_[D>>>16&255]<<16|_[P>>>8&255]<<8|_[j&255])^S[C++],A=(_[D>>>24]<<24|_[P>>>16&255]<<16|_[j>>>8&255]<<8|_[F&255])^S[C++];v[w]=k,v[w+1]=H,v[w+2]=q,v[w+3]=A},keySize:256/32});n.AES=o._createHelper(y)}(),r.AES})})(Do);var ih=Do.exports;Xt(ih);var oh="0123456789abcdefghijklmnopqrstuvwxyz";function Yn(e){return oh.charAt(e)}function sh(e,t){return e&t}function _e(e,t){return e|t}function Kn(e,t){return e^t}function Zn(e,t){return e&~t}function ah(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 uh(e){for(var t=0;e!=0;)e&=e-1,++t;return t}var ie="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ch="=";function Gn(e){var t,r,n="";for(t=0;t+3<=e.length;t+=3)r=parseInt(e.substring(t,t+3),16),n+=ie.charAt(r>>6)+ie.charAt(r&63);for(t+1==e.length?(r=parseInt(e.substring(t,t+1),16),n+=ie.charAt(r<<2)):t+2==e.length&&(r=parseInt(e.substring(t,t+2),16),n+=ie.charAt(r>>2)+ie.charAt((r&3)<<4));(n.length&3)>0;)n+=ch;return n}var Vt,lh={decode:function(e){var t;if(Vt===void 0){var r="0123456789ABCDEF",n=` \f
20
- \r  \u2028\u2029`;for(Vt={},t=0;t<16;++t)Vt[r.charAt(t)]=t;for(r=r.toLowerCase(),t=10;t<16;++t)Vt[r.charAt(t)]=t;for(t=0;t<n.length;++t)Vt[n.charAt(t)]=-1}var i=[],o=0,s=0;for(t=0;t<e.length;++t){var a=e.charAt(t);if(a=="=")break;if(a=Vt[a],a!=-1){if(a===void 0)throw new Error("Illegal character at offset "+t);o|=a,++s>=2?(i[i.length]=o,o=0,s=0):o<<=4}}if(s)throw new Error("Hex encoding incomplete: 4 bits missing");return i}},jt,Or={decode:function(e){var t;if(jt===void 0){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=`= \f
21
- \r  \u2028\u2029`;for(jt=Object.create(null),t=0;t<64;++t)jt[r.charAt(t)]=t;for(jt["-"]=62,jt._=63,t=0;t<n.length;++t)jt[n.charAt(t)]=-1}var i=[],o=0,s=0;for(t=0;t<e.length;++t){var a=e.charAt(t);if(a=="=")break;if(a=jt[a],a!=-1){if(a===void 0)throw new Error("Illegal character at offset "+t);o|=a,++s>=4?(i[i.length]=o>>16,i[i.length]=o>>8&255,i[i.length]=o&255,o=0,s=0):o<<=6}}switch(s){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:i[i.length]=o>>10;break;case 3:i[i.length]=o>>16,i[i.length]=o>>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=Or.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 Or.decode(e)}},Ht=1e13,ae=function(){function e(t){this.buf=[+t||0]}return e.prototype.mulAdd=function(t,r){var n=this.buf,i=n.length,o,s;for(o=0;o<i;++o)s=n[o]*t+r,s<Ht?r=0:(r=0|s/Ht,s-=r*Ht),n[o]=s;r>0&&(n[o]=r)},e.prototype.sub=function(t){var r=this.buf,n=r.length,i,o;for(i=0;i<n;++i)o=r[i]-t,o<0?(o+=Ht,t=1):t=0,r[i]=o;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+=(Ht+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*Ht+t[n];return r},e.prototype.simplify=function(){var t=this.buf;return t.length==1?t[0]:this},e}(),Bo="…",fh=/^(\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)?)?$/,hh=/^(\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 Yt(e,t){return e.length>t&&(e=e.substring(0,t)+Bo),e}var or=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="",o=t;o<r;++o)if(i+=this.hexByte(this.get(o)),n!==!0)switch(o&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 o=this.get(i++);o<128?n+=String.fromCharCode(o):o>191&&o<224?n+=String.fromCharCode((o&31)<<6|this.get(i++)&63):n+=String.fromCharCode((o&15)<<12|(this.get(i++)&63)<<6|this.get(i++)&63)}return n},e.prototype.parseStringBMP=function(t,r){for(var n="",i,o,s=t;s<r;)i=this.get(s++),o=this.get(s++),n+=String.fromCharCode(i<<8|o);return n},e.prototype.parseTime=function(t,r,n){var i=this.parseStringISO(t,r),o=(n?fh:hh).exec(i);return o?(n&&(o[1]=+o[1],o[1]+=+o[1]<70?2e3:1900),i=o[1]+"-"+o[2]+"-"+o[3]+" "+o[4],o[5]&&(i+=":"+o[5],o[6]&&(i+=":"+o[6],o[7]&&(i+="."+o[7]))),o[8]&&(i+=" UTC",o[8]!="Z"&&(i+=o[8],o[9]&&(i+=":"+o[9]))),i):"Unrecognized time: "+i},e.prototype.parseInteger=function(t,r){for(var n=this.get(t),i=n>127,o=i?255:0,s,a="";n==o&&++t<r;)n=this.get(t);if(s=r-t,s===0)return i?-1:0;if(s>4){for(a=n,s<<=3;!((+a^o)&128);)a=+a<<1,--s;a="("+s+` bit)
23
- `}i&&(n=n-256);for(var c=new ae(n),u=t+1;u<r;++u)c.mulAdd(256,this.get(u));return a+c.toString()},e.prototype.parseBitString=function(t,r,n){for(var i=this.get(t),o=(r-t-1<<3)-i,s="("+o+` bit)
24
- `,a="",c=t+1;c<r;++c){for(var u=this.get(c),l=c==r-1?i:0,f=7;f>=l;--f)a+=u>>f&1?"1":"0";if(a.length>n)return s+Yt(a,n)}return s+a},e.prototype.parseOctetString=function(t,r,n){if(this.isASCII(t,r))return Yt(this.parseStringISO(t,r),n);var i=r-t,o="("+i+` byte)
25
- `;n/=2,i>n&&(r=t+n);for(var s=t;s<r;++s)o+=this.hexByte(this.get(s));return i>n&&(o+=Bo),o},e.prototype.parseOID=function(t,r,n){for(var i="",o=new ae,s=0,a=t;a<r;++a){var c=this.get(a);if(o.mulAdd(128,c&127),s+=7,!(c&128)){if(i==="")if(o=o.simplify(),o instanceof ae)o.sub(80),i="2."+o.toString();else{var u=o<80?o<40?0:1:2;i=u+"."+(o-u*40)}else i+="."+o.toString();if(i.length>n)return Yt(i,n);o=new ae,s=0}}return s>0&&(i+=".incomplete"),i},e}(),ph=function(){function e(t,r,n,i,o){if(!(i instanceof Xn))throw new Error("Invalid tag value.");this.stream=t,this.header=r,this.length=n,this.tag=i,this.sub=o}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 Yt(this.stream.parseStringUTF(r,r+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return Yt(this.stream.parseStringISO(r,r+n),t);case 30:return Yt(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 or?r=t:r=new or(t,0);var n=new or(r),i=new Xn(r),o=e.decodeLength(r),s=r.pos,a=s-n.pos,c=null,u=function(){var f=[];if(o!==null){for(var p=s+o;r.pos<p;)f[f.length]=e.decode(r);if(r.pos!=p)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var h=e.decode(r);if(h.tag.isEOC())break;f[f.length]=h}o=s-r.pos}catch(d){throw new Error("Exception while decoding undefined length content: "+d)}return f};if(i.tagConstructed)c=u();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.");c=u();for(var l=0;l<c.length;++l)if(c[l].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(f){c=null}if(c===null){if(o===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+s);r.pos=s+Math.abs(o)}return new e(n,a,o,i,c)},e}(),Xn=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 ae;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}(),_t,dh=0xdeadbeefcafe,Qn=(dh&16777215)==15715070,et=[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],mh=(1<<26)/et[et.length-1],J=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,o=!1,s="",a=this.t,c=this.DB-a*this.DB%r;if(a-- >0)for(c<this.DB&&(i=this[a]>>c)>0&&(o=!0,s=Yn(i));a>=0;)c<r?(i=(this[a]&(1<<c)-1)<<r-c,i|=this[--a]>>(c+=this.DB-r)):(i=this[a]>>(c-=r)&n,c<=0&&(c+=this.DB,--a)),i>0&&(o=!0),o&&(s+=Yn(i));return o?s:"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)+Ee(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 ti(r):n=new ei(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,o=0;if(t-- >0)for(n<this.DB&&(i=this[t]>>n)!=(this.s&this.DM)>>n&&(r[o++]=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),o==0&&(this.s&128)!=(i&128)&&++o,(o>0||i!=this.s)&&(r[o++]=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,sh,r),r},e.prototype.or=function(t){var r=Y();return this.bitwiseTo(t,_e,r),r},e.prototype.xor=function(t){var r=Y();return this.bitwiseTo(t,Kn,r),r},e.prototype.andNot=function(t){var r=Y();return this.bitwiseTo(t,Zn,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+ah(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+=uh(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,_e)},e.prototype.clearBit=function(t){return this.changeBit(t,Zn)},e.prototype.flipBit=function(t){return this.changeBit(t,Kn)},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,o=Et(1),s;if(n<=0)return o;n<18?i=1:n<48?i=3:n<144?i=4:n<768?i=5:i=6,n<8?s=new ti(r):r.isEven()?s=new yh(r):s=new ei(r);var a=[],c=3,u=i-1,l=(1<<i)-1;if(a[1]=s.convert(this),i>1){var f=Y();for(s.sqrTo(a[1],f);c<=l;)a[c]=Y(),s.mulTo(f,a[c-2],a[c]),c+=2}var p=t.t-1,h,d=!0,m=Y(),b;for(n=Ee(t[p])-1;p>=0;){for(n>=u?h=t[p]>>n-u&l:(h=(t[p]&(1<<n+1)-1)<<u-n,p>0&&(h|=t[p-1]>>this.DB+n-u)),c=i;!(h&1);)h>>=1,--c;if((n-=c)<0&&(n+=this.DB,--p),d)a[h].copyTo(o),d=!1;else{for(;c>1;)s.sqrTo(o,m),s.sqrTo(m,o),c-=2;c>0?s.sqrTo(o,m):(b=o,o=m,m=b),s.mulTo(m,a[h],o)}for(;p>=0&&!(t[p]&1<<n);)s.sqrTo(o,m),b=o,o=m,m=b,--n<0&&(n=this.DB-1,--p)}return s.revert(o)},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(),o=Et(1),s=Et(0),a=Et(0),c=Et(1);n.signum()!=0;){for(;n.isEven();)n.rShiftTo(1,n),r?((!o.isEven()||!s.isEven())&&(o.addTo(this,o),s.subTo(t,s)),o.rShiftTo(1,o)):s.isEven()||s.subTo(t,s),s.rShiftTo(1,s);for(;i.isEven();)i.rShiftTo(1,i),r?((!a.isEven()||!c.isEven())&&(a.addTo(this,a),c.subTo(t,c)),a.rShiftTo(1,a)):c.isEven()||c.subTo(t,c),c.rShiftTo(1,c);n.compareTo(i)>=0?(n.subTo(i,n),r&&o.subTo(a,o),s.subTo(c,s)):(i.subTo(n,i),r&&a.subTo(o,a),c.subTo(s,c))}if(i.compareTo(e.ONE)!=0)return e.ZERO;if(c.compareTo(t)>=0)return c.subtract(t);if(c.signum()<0)c.addTo(t,c);else return c;return c.signum()<0?c.add(t):c},e.prototype.pow=function(t){return this.exp(t,new gh)},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 o=r.getLowestSetBit(),s=n.getLowestSetBit();if(s<0)return r;for(o<s&&(s=o),s>0&&(r.rShiftTo(s,r),n.rShiftTo(s,n));r.signum()>0;)(o=r.getLowestSetBit())>0&&r.rShiftTo(o,r),(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),r.compareTo(n)>=0?(r.subTo(n,r),r.rShiftTo(1,r)):(n.subTo(r,n),n.rShiftTo(1,n));return s>0&&n.lShiftTo(s,n),n},e.prototype.isProbablePrime=function(t){var r,n=this.abs();if(n.t==1&&n[0]<=et[et.length-1]){for(r=0;r<et.length;++r)if(n[0]==et[r])return!0;return!1}if(n.isEven())return!1;for(r=1;r<et.length;){for(var i=et[r],o=r+1;o<et.length&&i<mh;)i*=et[o++];for(i=n.modInt(i);r<o;)if(i%et[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,o=!1,s=0;--i>=0;){var a=n==8?+t[i]&255:ni(t,i);if(a<0){t.charAt(i)=="-"&&(o=!0);continue}o=!1,s==0?this[this.t++]=a:s+n>this.DB?(this[this.t-1]|=(a&(1<<this.DB-s)-1)<<s,this[this.t++]=a>>this.DB-s):this[this.t-1]|=a<<s,s+=n,s>=this.DB&&(s-=this.DB)}n==8&&+t[0]&128&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),o&&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,o=(1<<i)-1,s=Math.floor(t/this.DB),a=this.s<<n&this.DM,c=this.t-1;c>=0;--c)r[c+s+1]=this[c]>>i|a,a=(this[c]&o)<<n;for(var c=s-1;c>=0;--c)r[c]=0;r[s]=a,r.t=this.t+s+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,o=this.DB-i,s=(1<<i)-1;r[0]=this[n]>>i;for(var a=n+1;a<this.t;++a)r[a-n-1]|=(this[a]&s)<<o,r[a-n]=this[a]>>i;i>0&&(r[this.t-n-1]|=(this.s&s)<<o),r.t=this.t-n,r.clamp()},e.prototype.subTo=function(t,r){for(var n=0,i=0,o=Math.min(t.t,this.t);n<o;)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(),o=n.t;for(r.t=o+i.t;--o>=0;)r[o]=0;for(o=0;o<i.t;++o)r[o+n.t]=n.am(0,i[o],r,o,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 o=this.abs();if(o.t<i.t){r==null||r.fromInt(0),n!=null&&this.copyTo(n);return}n==null&&(n=Y());var s=Y(),a=this.s,c=t.s,u=this.DB-Ee(i[i.t-1]);u>0?(i.lShiftTo(u,s),o.lShiftTo(u,n)):(i.copyTo(s),o.copyTo(n));var l=s.t,f=s[l-1];if(f!=0){var p=f*(1<<this.F1)+(l>1?s[l-2]>>this.F2:0),h=this.FV/p,d=(1<<this.F1)/p,m=1<<this.F2,b=n.t,E=b-l,y=r!=null?r:Y();for(s.dlShiftTo(E,y),n.compareTo(y)>=0&&(n[n.t++]=1,n.subTo(y,n)),e.ONE.dlShiftTo(l,y),y.subTo(s,s);s.t<l;)s[s.t++]=0;for(;--E>=0;){var v=n[--b]==f?this.DM:Math.floor(n[b]*h+(n[b-1]+m)*d);if((n[b]+=s.am(0,v,n,E,0,l))<v)for(s.dlShiftTo(E,y),n.subTo(y,n);n[b]<--v;)n.subTo(y,n)}r!=null&&(n.drShiftTo(l,r),a!=c&&e.ZERO.subTo(r,r)),n.t=l,n.clamp(),u>0&&n.rShiftTo(u,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(),o=r.convert(this),s=Ee(t)-1;for(o.copyTo(n);--s>=0;)if(r.sqrTo(n,i),(t&1<<s)>0)r.mulTo(i,o,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=Et(n),o=Y(),s=Y(),a="";for(this.divRemTo(i,o,s);o.signum()>0;)a=(n+s.intValue()).toString(t).substr(1)+a,o.divRemTo(i,o,s);return s.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),o=!1,s=0,a=0,c=0;c<t.length;++c){var u=ni(t,c);if(u<0){t.charAt(c)=="-"&&this.signum()==0&&(o=!0);continue}a=r*a+u,++s>=n&&(this.dMultiply(i),this.dAddOffset(a,0),s=0,a=0)}s>0&&(this.dMultiply(Math.pow(r,s)),this.dAddOffset(a,0)),o&&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),_e,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=[],o=t&7;i.length=(t>>3)+1,r.nextBytes(i),o>0?i[0]&=(1<<o)-1:i[0]=0,this.fromString(i,256)}},e.prototype.bitwiseTo=function(t,r,n){var i,o,s=Math.min(t.t,this.t);for(i=0;i<s;++i)n[i]=r(this[i],t[i]);if(t.t<this.t){for(o=t.s&this.DM,i=s;i<this.t;++i)n[i]=r(this[i],o);n.t=this.t}else{for(o=this.s&this.DM,i=s;i<t.t;++i)n[i]=r(o,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,o=Math.min(t.t,this.t);n<o;)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 o=n.t-this.t;i<o;++i)n[i+this.t]=this.am(0,t[i],n,i,0,this.t);for(var o=Math.min(t.t,r);i<o;++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>et.length&&(t=et.length);for(var o=Y(),s=0;s<t;++s){o.fromInt(et[Math.floor(Math.random()*et.length)]);var a=o.modPow(i,this);if(a.compareTo(e.ONE)!=0&&a.compareTo(r)!=0){for(var c=1;c++<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 o=n;n=i,i=o}var s=n.getLowestSetBit(),a=i.getLowestSetBit();if(a<0){r(n);return}s<a&&(a=s),a>0&&(n.rShiftTo(a,n),i.rShiftTo(a,i));var c=function(){(s=n.getLowestSetBit())>0&&n.rShiftTo(s,n),(s=i.getLowestSetBit())>0&&i.rShiftTo(s,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(c,0):(a>0&&i.lShiftTo(a,i),setTimeout(function(){r(i)},0))};setTimeout(c,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),_e,this),this.isEven()&&this.dAddOffset(1,0);var o=this,s=function(){o.dAddOffset(2,0),o.bitLength()>t&&o.subTo(e.ONE.shiftLeft(t-1),o),o.isProbablePrime(r)?setTimeout(function(){i()},0):setTimeout(s,0)};setTimeout(s,0)}else{var a=[],c=t&7;a.length=(t>>3)+1,r.nextBytes(a),c>0?a[0]&=(1<<c)-1:a[0]=0,this.fromString(a,256)}},e}(),gh=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}(),ti=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}(),ei=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(J.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}(),yh=function(){function e(t){this.m=t,this.r2=Y(),this.q3=Y(),J.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 J(null)}function Z(e,t){return new J(e,t)}var ri=typeof navigator<"u";ri&&Qn&&navigator.appName=="Microsoft Internet Explorer"?(J.prototype.am=function(e,t,r,n,i,o){for(var s=t&32767,a=t>>15;--o>=0;){var c=this[e]&32767,u=this[e++]>>15,l=a*c+u*s;c=s*c+((l&32767)<<15)+r[n]+(i&1073741823),i=(c>>>30)+(l>>>15)+a*u+(i>>>30),r[n++]=c&1073741823}return i},_t=30):ri&&Qn&&navigator.appName!="Netscape"?(J.prototype.am=function(e,t,r,n,i,o){for(;--o>=0;){var s=t*this[e++]+r[n]+i;i=Math.floor(s/67108864),r[n++]=s&67108863}return i},_t=26):(J.prototype.am=function(e,t,r,n,i,o){for(var s=t&16383,a=t>>14;--o>=0;){var c=this[e]&16383,u=this[e++]>>14,l=a*c+u*s;c=s*c+((l&16383)<<14)+r[n]+i,i=(c>>28)+(l>>14)+a*u,r[n++]=c&268435455}return i},_t=28),J.prototype.DB=_t,J.prototype.DM=(1<<_t)-1,J.prototype.DV=1<<_t;var sr=52;J.prototype.FV=Math.pow(2,sr),J.prototype.F1=sr-_t,J.prototype.F2=2*_t-sr;var qe=[],Zt,ct;for(Zt=48,ct=0;ct<=9;++ct)qe[Zt++]=ct;for(Zt=97,ct=10;ct<36;++ct)qe[Zt++]=ct;for(Zt=65,ct=10;ct<36;++ct)qe[Zt++]=ct;function ni(e,t){var r=qe[e.charCodeAt(t)];return r!=null?r:-1}function Et(e){var t=Y();return t.fromInt(e),t}function Ee(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}J.ZERO=Et(0),J.ONE=Et(1);var vh=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 bh(){return new vh}var Co=256,Se,xt=null,lt;if(xt==null){xt=[],lt=0;var xe=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var ar=new Uint32Array(256);for(window.crypto.getRandomValues(ar),xe=0;xe<ar.length;++xe)xt[lt++]=ar[xe]&255}var Te=0,Re=function(e){if(Te=Te||0,Te>=256||lt>=Co){window.removeEventListener?window.removeEventListener("mousemove",Re,!1):window.detachEvent&&window.detachEvent("onmousemove",Re);return}try{var t=e.x+e.y;xt[lt++]=t&255,Te+=1}catch(r){}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",Re,!1):window.attachEvent&&window.attachEvent("onmousemove",Re))}function wh(){if(Se==null){for(Se=bh();lt<Co;){var e=Math.floor(65536*Math.random());xt[lt++]=e&255}for(Se.init(xt),lt=0;lt<xt.length;++lt)xt[lt]=0;lt=0}return Se.next()}var Ar=function(){function e(){}return e.prototype.nextBytes=function(t){for(var r=0;r<t.length;++r)t[r]=wh()},e}();function _h(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 o="0001"+n+"00"+e;return Z(o,16)}function Eh(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 o=new Ar,s=[];t>2;){for(s[0]=0;s[0]==0;)o.nextBytes(s);r[--t]=s[0]}return r[--t]=2,r[--t]=0,new J(r)}var Sh=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=Z(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=Eh(t,r);if(n==null)return null;var i=this.doPublic(n);if(i==null)return null;for(var o=i.toString(16),s=o.length,a=0;a<r*2-s;a++)o="0"+o;return o},e.prototype.setPrivate=function(t,r,n){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=Z(t,16),this.e=parseInt(r,16),this.d=Z(n,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(t,r,n,i,o,s,a,c){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=Z(t,16),this.e=parseInt(r,16),this.d=Z(n,16),this.p=Z(i,16),this.q=Z(o,16),this.dmp1=Z(s,16),this.dmq1=Z(a,16),this.coeff=Z(c,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(t,r){var n=new Ar,i=t>>1;this.e=parseInt(r,16);for(var o=new J(r,16);;){for(;this.p=new J(t-i,1,n),!(this.p.subtract(J.ONE).gcd(o).compareTo(J.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new J(i,1,n),!(this.q.subtract(J.ONE).gcd(o).compareTo(J.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var s=this.p;this.p=this.q,this.q=s}var a=this.p.subtract(J.ONE),c=this.q.subtract(J.ONE),u=a.multiply(c);if(u.gcd(o).compareTo(J.ONE)==0){this.n=this.p.multiply(this.q),this.d=o.modInverse(u),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(c),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(t){var r=Z(t,16),n=this.doPrivate(r);return n==null?null:xh(n,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(t,r,n){var i=new Ar,o=t>>1;this.e=parseInt(r,16);var s=new J(r,16),a=this,c=function(){var u=function(){if(a.p.compareTo(a.q)<=0){var p=a.p;a.p=a.q,a.q=p}var h=a.p.subtract(J.ONE),d=a.q.subtract(J.ONE),m=h.multiply(d);m.gcd(s).compareTo(J.ONE)==0?(a.n=a.p.multiply(a.q),a.d=s.modInverse(m),a.dmp1=a.d.mod(h),a.dmq1=a.d.mod(d),a.coeff=a.q.modInverse(a.p),setTimeout(function(){n()},0)):setTimeout(c,0)},l=function(){a.q=Y(),a.q.fromNumberAsync(o,1,i,function(){a.q.subtract(J.ONE).gcda(s,function(p){p.compareTo(J.ONE)==0&&a.q.isProbablePrime(10)?setTimeout(u,0):setTimeout(l,0)})})},f=function(){a.p=Y(),a.p.fromNumberAsync(t-o,1,i,function(){a.p.subtract(J.ONE).gcda(s,function(p){p.compareTo(J.ONE)==0&&a.p.isProbablePrime(10)?setTimeout(l,0):setTimeout(f,0)})})};setTimeout(f,0)};setTimeout(c,0)},e.prototype.sign=function(t,r,n){var i=Th(n),o=i+r(t).toString(),s=_h(o,this.n.bitLength()/4);if(s==null)return null;var a=this.doPrivate(s);if(a==null)return null;var c=a.toString(16);return c.length&1?"0"+c:c},e.prototype.verify=function(t,r,n){var i=Z(r,16),o=this.doPublic(i);if(o==null)return null;var s=o.toString(16).replace(/^1f+00/,""),a=Rh(s);return a==n(t).toString()},e}();function xh(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 o=r[n]&255;o<128?i+=String.fromCharCode(o):o>191&&o<224?(i+=String.fromCharCode((o&31)<<6|r[n+1]&63),++n):(i+=String.fromCharCode((o&15)<<12|(r[n+1]&63)<<6|r[n+2]&63),n+=2)}return i}var $e={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function Th(e){return $e[e]||""}function Rh(e){for(var t in $e)if($e.hasOwnProperty(t)){var r=$e[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 X={};X.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 o=function(){},s=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(o=function(a,c){for(i=0;i<s.length;i=i+1){var u=s[i],l=c[u];typeof l=="function"&&l!=Object.prototype[u]&&(a[u]=l)}})}catch(a){}o(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 $={};(typeof $.asn1>"u"||!$.asn1)&&($.asn1={}),$.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="",o=0;o<n;o++)i+="f";var s=new J(i,16),a=s.xor(e).add(J.ONE);t=a.toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(e,t){return hextopem(e,t)},this.newObject=function(e){var t=$,r=t.asn1,n=r.DERBoolean,i=r.DERInteger,o=r.DERBitString,s=r.DEROctetString,a=r.DERNull,c=r.DERObjectIdentifier,u=r.DEREnumerated,l=r.DERUTF8String,f=r.DERNumericString,p=r.DERPrintableString,h=r.DERTeletexString,d=r.DERIA5String,m=r.DERUTCTime,b=r.DERGeneralizedTime,E=r.DERSequence,y=r.DERSet,v=r.DERTaggedObject,w=r.ASN1Util.newObject,S=Object.keys(e);if(S.length!=1)throw"key of param shall be only one.";var g=S[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+g+":")==-1)throw"undefined key: "+g;if(g=="bool")return new n(e[g]);if(g=="int")return new i(e[g]);if(g=="bitstr")return new o(e[g]);if(g=="octstr")return new s(e[g]);if(g=="null")return new a(e[g]);if(g=="oid")return new c(e[g]);if(g=="enum")return new u(e[g]);if(g=="utf8str")return new l(e[g]);if(g=="numstr")return new f(e[g]);if(g=="prnstr")return new p(e[g]);if(g=="telstr")return new h(e[g]);if(g=="ia5str")return new d(e[g]);if(g=="utctime")return new m(e[g]);if(g=="gentime")return new b(e[g]);if(g=="seq"){for(var x=e[g],O=[],M=0;M<x.length;M++){var _=w(x[M]);O.push(_)}return new E({array:O})}if(g=="set"){for(var x=e[g],O=[],M=0;M<x.length;M++){var _=w(x[M]);O.push(_)}return new y({array:O})}if(g=="tag"){var T=e[g];if(Object.prototype.toString.call(T)==="[object Array]"&&T.length==3){var P=w(T[2]);return new v({tag:T[0],explicit:T[1],obj:P})}else{var j={};if(T.explicit!==void 0&&(j.explicit=T.explicit),T.tag!==void 0&&(j.tag=T.tag),T.obj===void 0)throw"obj shall be specified for 'tag'.";return j.obj=w(T.obj),new v(j)}}},this.jsonToASN1HEX=function(e){var t=this.newObject(e);return t.getEncodedHex()}},$.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,o="",s=2;s<e.length;s+=2){var a=parseInt(e.substr(s,2),16),c=("00000000"+a.toString(2)).slice(-8);if(o=o+c.substr(1,7),c.substr(0,1)=="0"){var u=new J(o,2);i=i+"."+u.toString(10),o=""}}return i},$.asn1.ASN1Util.oidIntToHex=function(e){var t=function(a){var c=a.toString(16);return c.length==1&&(c="0"+c),c},r=function(a){var c="",u=new J(a,10),l=u.toString(2),f=7-l.length%7;f==7&&(f=0);for(var p="",h=0;h<f;h++)p+="0";l=p+l;for(var h=0;h<l.length-1;h+=7){var d=l.substr(h,7);h!=l.length-7&&(d="1"+d),c+=t(parseInt(d,2))}return c};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var n="",i=e.split("."),o=parseInt(i[0])*40+parseInt(i[1]);n+=t(o),i.splice(0,2);for(var s=0;s<i.length;s++)n+=r(i[s]);return n},$.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""}},$.asn1.DERAbstractString=function(e){$.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))},X.lang.extend($.asn1.DERAbstractString,$.asn1.ASN1Object),$.asn1.DERAbstractTime=function(e){$.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,o=this.localDateToUTC(t),s=String(o.getFullYear());r=="utc"&&(s=s.substr(2,2));var a=i(String(o.getMonth()+1),2),c=i(String(o.getDate()),2),u=i(String(o.getHours()),2),l=i(String(o.getMinutes()),2),f=i(String(o.getSeconds()),2),p=s+a+c+u+l+f;if(n===!0){var h=o.getMilliseconds();if(h!=0){var d=i(String(h),3);d=d.replace(/[0]+$/,""),p=p+"."+d}}return p+"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,o,s){var a=new Date(Date.UTC(t,r-1,n,i,o,s,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}},X.lang.extend($.asn1.DERAbstractTime,$.asn1.ASN1Object),$.asn1.DERAbstractStructured=function(e){$.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)},X.lang.extend($.asn1.DERAbstractStructured,$.asn1.ASN1Object),$.asn1.DERBoolean=function(){$.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},X.lang.extend($.asn1.DERBoolean,$.asn1.ASN1Object),$.asn1.DERInteger=function(e){$.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=$.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var r=new J(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))},X.lang.extend($.asn1.DERInteger,$.asn1.ASN1Object),$.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj<"u"){var t=$.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.getEncodedHex()}$.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 o="",i=0;i<r.length-1;i+=8){var s=r.substr(i,8),a=parseInt(s,2).toString(16);a.length==1&&(a="0"+a),o+=a}this.hTLV=null,this.isModified=!0,this.hV="0"+n+o},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))},X.lang.extend($.asn1.DERBitString,$.asn1.ASN1Object),$.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj<"u"){var t=$.asn1.ASN1Util.newObject(e.obj);e.hex=t.getEncodedHex()}$.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},X.lang.extend($.asn1.DEROctetString,$.asn1.DERAbstractString),$.asn1.DERNull=function(){$.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},X.lang.extend($.asn1.DERNull,$.asn1.ASN1Object),$.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="",o=new J(n,10),s=o.toString(2),a=7-s.length%7;a==7&&(a=0);for(var c="",u=0;u<a;u++)c+="0";s=c+s;for(var u=0;u<s.length-1;u+=7){var l=s.substr(u,7);u!=s.length-7&&(l="1"+l),i+=t(parseInt(l,2))}return i};$.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="",o=n.split("."),s=parseInt(o[0])*40+parseInt(o[1]);i+=t(s),o.splice(0,2);for(var a=0;a<o.length;a++)i+=r(o[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=i},this.setValueName=function(n){var i=$.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))},X.lang.extend($.asn1.DERObjectIdentifier,$.asn1.ASN1Object),$.asn1.DEREnumerated=function(e){$.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=$.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var r=new J(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))},X.lang.extend($.asn1.DEREnumerated,$.asn1.ASN1Object),$.asn1.DERUTF8String=function(e){$.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},X.lang.extend($.asn1.DERUTF8String,$.asn1.DERAbstractString),$.asn1.DERNumericString=function(e){$.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},X.lang.extend($.asn1.DERNumericString,$.asn1.DERAbstractString),$.asn1.DERPrintableString=function(e){$.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},X.lang.extend($.asn1.DERPrintableString,$.asn1.DERAbstractString),$.asn1.DERTeletexString=function(e){$.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},X.lang.extend($.asn1.DERTeletexString,$.asn1.DERAbstractString),$.asn1.DERIA5String=function(e){$.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},X.lang.extend($.asn1.DERIA5String,$.asn1.DERAbstractString),$.asn1.DERUTCTime=function(e){$.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))},X.lang.extend($.asn1.DERUTCTime,$.asn1.DERAbstractTime),$.asn1.DERGeneralizedTime=function(e){$.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))},X.lang.extend($.asn1.DERGeneralizedTime,$.asn1.DERAbstractTime),$.asn1.DERSequence=function(e){$.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}},X.lang.extend($.asn1.DERSequence,$.asn1.DERAbstractStructured),$.asn1.DERSet=function(e){$.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)},X.lang.extend($.asn1.DERSet,$.asn1.DERAbstractStructured),$.asn1.DERTaggedObject=function(e){$.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)))},X.lang.extend($.asn1.DERTaggedObject,$.asn1.ASN1Object);var Oh=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},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)}}();(function(e){Oh(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,o=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,s=o.test(r)?lh.decode(r):Or.unarmor(r),a=ph.decode(s);if(a.sub.length===3&&(a=a.sub[2].sub[0]),a.sub.length===9){n=a.sub[1].getHexStringValue(),this.n=Z(n,16),i=a.sub[2].getHexStringValue(),this.e=parseInt(i,16);var c=a.sub[3].getHexStringValue();this.d=Z(c,16);var u=a.sub[4].getHexStringValue();this.p=Z(u,16);var l=a.sub[5].getHexStringValue();this.q=Z(l,16);var f=a.sub[6].getHexStringValue();this.dmp1=Z(f,16);var p=a.sub[7].getHexStringValue();this.dmq1=Z(p,16);var h=a.sub[8].getHexStringValue();this.coeff=Z(h,16)}else if(a.sub.length===2)if(a.sub[0].sub){var d=a.sub[1],m=d.sub[0];n=m.sub[0].getHexStringValue(),this.n=Z(n,16),i=m.sub[1].getHexStringValue(),this.e=parseInt(i,16)}else n=a.sub[0].getHexStringValue(),this.n=Z(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 $.asn1.DERInteger({int:0}),new $.asn1.DERInteger({bigint:this.n}),new $.asn1.DERInteger({int:this.e}),new $.asn1.DERInteger({bigint:this.d}),new $.asn1.DERInteger({bigint:this.p}),new $.asn1.DERInteger({bigint:this.q}),new $.asn1.DERInteger({bigint:this.dmp1}),new $.asn1.DERInteger({bigint:this.dmq1}),new $.asn1.DERInteger({bigint:this.coeff})]},n=new $.asn1.DERSequence(r);return n.getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return Gn(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var r=new $.asn1.DERSequence({array:[new $.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new $.asn1.DERNull]}),n=new $.asn1.DERSequence({array:[new $.asn1.DERInteger({bigint:this.n}),new $.asn1.DERInteger({int:this.e})]}),i=new $.asn1.DERBitString({hex:"00"+n.getEncodedHex()}),o=new $.asn1.DERSequence({array:[r,i]});return o.getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return Gn(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})(Sh);var ur;typeof process<"u"&&((ur=Fs)===null||ur===void 0||ur.npm_package_version);const No=/^(http|https):\/\/[\w.:\-@]*/;function Io(e){return No.test(e)}var Fo={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()})(rt,function(){var t,r,n="2.0.6",i={},o={},s={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},a={currentLocale:s.currentLocale,zeroFormat:s.zeroFormat,nullFormat:s.nullFormat,defaultFormat:s.defaultFormat,scalePercentBy100:s.scalePercentBy100};function c(u,l){this._input=u,this._value=l}return t=function(u){var l,f,p,h;if(t.isNumeral(u))l=u.value();else if(u===0||typeof u>"u")l=0;else if(u===null||r.isNaN(u))l=null;else if(typeof u=="string")if(a.zeroFormat&&u===a.zeroFormat)l=0;else if(a.nullFormat&&u===a.nullFormat||!u.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&&u.match(h)){p=i[f].unformat;break}p=p||t._.stringToNumber,l=p(u)}else l=Number(u)||null;return new c(u,l)},t.version=n,t.isNumeral=function(u){return u instanceof c},t._=r={numberToFormat:function(u,l,f){var p=o[t.options.currentLocale],h=!1,d=!1,m=0,b="",E=1e12,y=1e9,v=1e6,w=1e3,S="",g=!1,x,O,M,_,T,P,j;if(u=u||0,O=Math.abs(u),t._.includes(l,"(")?(h=!0,l=l.replace(/[\(|\)]/g,"")):(t._.includes(l,"+")||t._.includes(l,"-"))&&(T=t._.includes(l,"+")?l.indexOf("+"):u<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]?"),""),O>=E&&!x||x==="t"?(b+=p.abbreviations.trillion,u=u/E):O<E&&O>=y&&!x||x==="b"?(b+=p.abbreviations.billion,u=u/y):O<y&&O>=v&&!x||x==="m"?(b+=p.abbreviations.million,u=u/v):(O<v&&O>=w&&!x||x==="k")&&(b+=p.abbreviations.thousand,u=u/w)),t._.includes(l,"[.]")&&(d=!0,l=l.replace("[.]",".")),M=u.toString().split(".")[0],_=l.split(".")[1],P=l.indexOf(","),m=(l.split(".")[0].split(",")[0].match(/0/g)||[]).length,_?(t._.includes(_,"[")?(_=_.replace("]",""),_=_.split("["),S=t._.toFixed(u,_[0].length+_[1].length,f,_[1].length)):S=t._.toFixed(u,_.length,f),M=S.split(".")[0],t._.includes(S,".")?S=p.delimiters.decimal+S.split(".")[1]:S="",d&&Number(S.slice(1))===0&&(S="")):M=t._.toFixed(u,0,f),b&&!x&&Number(M)>=1e3&&b!==p.abbreviations.trillion)switch(M=String(Number(M)/1e3),b){case p.abbreviations.thousand:b=p.abbreviations.million;break;case p.abbreviations.million:b=p.abbreviations.billion;break;case p.abbreviations.billion:b=p.abbreviations.trillion;break}if(t._.includes(M,"-")&&(M=M.slice(1),g=!0),M.length<m)for(var F=m-M.length;F>0;F--)M="0"+M;return P>-1&&(M=M.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+p.delimiters.thousands)),l.indexOf(".")===0&&(M=""),j=M+S+(b||""),h?j=(h&&g?"(":"")+j+(h&&g?")":""):T>=0?j=T===0?(g?"-":"+")+j:j+(g?"-":"+"):g&&(j="-"+j),j},stringToNumber:function(u){var l=o[a.currentLocale],f=u,p={thousand:3,million:6,billion:9,trillion:12},h,d,m;if(a.zeroFormat&&u===a.zeroFormat)d=0;else if(a.nullFormat&&u===a.nullFormat||!u.replace(/[^0-9]+/g,"").length)d=null;else{d=1,l.delimiters.decimal!=="."&&(u=u.replace(/\./g,"").replace(l.delimiters.decimal,"."));for(h in p)if(m=new RegExp("[^a-zA-Z]"+l.abbreviations[h]+"(?:\\)|(\\"+l.currency.symbol+")?(?:\\))?)?$"),f.match(m)){d*=Math.pow(10,p[h]);break}d*=(u.split("-").length+Math.min(u.split("(").length-1,u.split(")").length-1))%2?1:-1,u=u.replace(/[^0-9\.]+/g,""),d*=Number(u)}return d},isNaN:function(u){return typeof u=="number"&&isNaN(u)},includes:function(u,l){return u.indexOf(l)!==-1},insert:function(u,l,f){return u.slice(0,f)+l+u.slice(f)},reduce:function(u,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(u),p=f.length>>>0,h=0,d;if(arguments.length===3)d=arguments[2];else{for(;h<p&&!(h in f);)h++;if(h>=p)throw new TypeError("Reduce of empty array with no initial value");d=f[h++]}for(;h<p;h++)h in f&&(d=l(d,f[h],h,f));return d},multiplier:function(u){var l=u.toString().split(".");return l.length<2?1:Math.pow(10,l[1].length)},correctionFactor:function(){var u=Array.prototype.slice.call(arguments);return u.reduce(function(l,f){var p=r.multiplier(f);return l>p?l:p},1)},toFixed:function(u,l,f,p){var h=u.toString().split("."),d=l-(p||0),m,b,E,y;return h.length===2?m=Math.min(Math.max(h[1].length,d),l):m=d,E=Math.pow(10,m),y=(f(u+"e+"+m)/E).toFixed(m),p>l-m&&(b=new RegExp("\\.?0{1,"+(p-(l-m))+"}$"),y=y.replace(b,"")),y}},t.options=a,t.formats=i,t.locales=o,t.locale=function(u){return u&&(a.currentLocale=u.toLowerCase()),a.currentLocale},t.localeData=function(u){if(!u)return o[a.currentLocale];if(u=u.toLowerCase(),!o[u])throw new Error("Unknown locale : "+u);return o[u]},t.reset=function(){for(var u in s)a[u]=s[u]},t.zeroFormat=function(u){a.zeroFormat=typeof u=="string"?u:null},t.nullFormat=function(u){a.nullFormat=typeof u=="string"?u:null},t.defaultFormat=function(u){a.defaultFormat=typeof u=="string"?u:"0.0"},t.register=function(u,l,f){if(l=l.toLowerCase(),this[u+"s"][l])throw new TypeError(l+" "+u+" already registered.");return this[u+"s"][l]=f,f},t.validate=function(u,l){var f,p,h,d,m,b,E,y;if(typeof u!="string"&&(u+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",u)),u=u.trim(),u.match(/^\d+$/))return!0;if(u==="")return!1;try{E=t.localeData(l)}catch(v){E=t.localeData(t.locale())}return h=E.currency.symbol,m=E.abbreviations,f=E.delimiters.decimal,E.delimiters.thousands==="."?p="\\.":p=E.delimiters.thousands,y=u.match(/^[^\d]+/),y!==null&&(u=u.substr(1),y[0]!==h)||(y=u.match(/[^\d]+$/),y!==null&&(u=u.slice(0,-1),y[0]!==m.thousand&&y[0]!==m.million&&y[0]!==m.billion&&y[0]!==m.trillion))?!1:(b=new RegExp(p+"{2}"),u.match(/[^\d.,]/g)?!1:(d=u.split(f),d.length>2?!1:d.length<2?!!d[0].match(/^\d+.*\d$/)&&!d[0].match(b):d[0].length===1?!!d[0].match(/^\d+$/)&&!d[0].match(b)&&!!d[1].match(/^\d+$/):!!d[0].match(/^\d+.*\d$/)&&!d[0].match(b)&&!!d[1].match(/^\d+$/)))},t.fn=c.prototype={clone:function(){return t(this)},format:function(u,l){var f=this._value,p=u||a.defaultFormat,h,d,m;if(l=l||Math.round,f===0&&a.zeroFormat!==null)d=a.zeroFormat;else if(f===null&&a.nullFormat!==null)d=a.nullFormat;else{for(h in i)if(p.match(i[h].regexps.format)){m=i[h].format;break}m=m||t._.numberToFormat,d=m(f,p,l)}return d},value:function(){return this._value},input:function(){return this._input},set:function(u){return this._value=Number(u),this},add:function(u){var l=r.correctionFactor.call(null,this._value,u);function f(p,h,d,m){return p+Math.round(l*h)}return this._value=r.reduce([this._value,u],f,0)/l,this},subtract:function(u){var l=r.correctionFactor.call(null,this._value,u);function f(p,h,d,m){return p-Math.round(l*h)}return this._value=r.reduce([u],f,Math.round(this._value*l))/l,this},multiply:function(u){function l(f,p,h,d){var m=r.correctionFactor(f,p);return Math.round(f*m)*Math.round(p*m)/Math.round(m*m)}return this._value=r.reduce([this._value,u],l,1),this},divide:function(u){function l(f,p,h,d){var m=r.correctionFactor(f,p);return Math.round(f*m)/Math.round(p*m)}return this._value=r.reduce([this._value,u],l),this},difference:function(u){return Math.abs(t(this._value).subtract(u).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(u){var l=u%10;return~~(u%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(u,l,f){var p=t._.includes(l," BPS")?" ":"",h;return u=u*1e4,l=l.replace(/\s?BPS/,""),h=t._.numberToFormat(u,l,f),t._.includes(h,")")?(h=h.split(""),h.splice(-1,0,p+"BPS"),h=h.join("")):h=h+p+"BPS",h},unformat:function(u){return+(t._.stringToNumber(u)*1e-4).toFixed(15)}})}(),function(){var u={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=u.suffixes.concat(l.suffixes.filter(function(h){return u.suffixes.indexOf(h)<0})),p=f.join("|");p="("+p.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(p)},format:function(h,d,m){var b,E=t._.includes(d,"ib")?l:u,y=t._.includes(d," b")||t._.includes(d," ib")?" ":"",v,w,S;for(d=d.replace(/\s?i?b/,""),v=0;v<=E.suffixes.length;v++)if(w=Math.pow(E.base,v),S=Math.pow(E.base,v+1),h===null||h===0||h>=w&&h<S){y+=E.suffixes[v],w>0&&(h=h/w);break}return b=t._.numberToFormat(h,d,m),b+y},unformat:function(h){var d=t._.stringToNumber(h),m,b;if(d){for(m=u.suffixes.length-1;m>=0;m--){if(t._.includes(h,u.suffixes[m])){b=Math.pow(u.base,m);break}if(t._.includes(h,l.suffixes[m])){b=Math.pow(l.base,m);break}}d*=b||1}return d}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(u,l,f){var p=t.locales[t.options.currentLocale],h={before:l.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:l.match(/([\+|\-|\)|\s|\$]*)$/)[0]},d,m,b;for(l=l.replace(/\s?\$\s?/,""),d=t._.numberToFormat(u,l,f),u>=0?(h.before=h.before.replace(/[\-\(]/,""),h.after=h.after.replace(/[\-\)]/,"")):u<0&&!t._.includes(h.before,"-")&&!t._.includes(h.before,"(")&&(h.before="-"+h.before),b=0;b<h.before.length;b++)switch(m=h.before[b],m){case"$":d=t._.insert(d,p.currency.symbol,b);break;case" ":d=t._.insert(d," ",b+p.currency.symbol.length-1);break}for(b=h.after.length-1;b>=0;b--)switch(m=h.after[b],m){case"$":d=b===h.after.length-1?d+p.currency.symbol:t._.insert(d,p.currency.symbol,-(h.after.length-(1+b)));break;case" ":d=b===h.after.length-1?d+" ":t._.insert(d," ",-(h.after.length-(1+b)+p.currency.symbol.length-1));break}return d}})}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(u,l,f){var p,h=typeof u=="number"&&!t._.isNaN(u)?u.toExponential():"0e+0",d=h.split("e");return l=l.replace(/e[\+|\-]{1}0/,""),p=t._.numberToFormat(Number(d[0]),l,f),p+"e"+d[1]},unformat:function(u){var l=t._.includes(u,"e+")?u.split("e+"):u.split("e-"),f=Number(l[0]),p=Number(l[1]);p=t._.includes(u,"e-")?p*=-1:p;function h(d,m,b,E){var y=t._.correctionFactor(d,m),v=d*y*(m*y)/(y*y);return v}return t._.reduce([f,Math.pow(10,p)],h,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(u,l,f){var p=t.locales[t.options.currentLocale],h,d=t._.includes(l," o")?" ":"";return l=l.replace(/\s?o/,""),d+=p.ordinal(u),h=t._.numberToFormat(u,l,f),h+d}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(u,l,f){var p=t._.includes(l," %")?" ":"",h;return t.options.scalePercentBy100&&(u=u*100),l=l.replace(/\s?\%/,""),h=t._.numberToFormat(u,l,f),t._.includes(h,")")?(h=h.split(""),h.splice(-1,0,p+"%"),h=h.join("")):h=h+p+"%",h},unformat:function(u){var l=t._.stringToNumber(u);return t.options.scalePercentBy100?l*.01:l}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(u,l,f){var p=Math.floor(u/60/60),h=Math.floor((u-p*60*60)/60),d=Math.round(u-p*60*60-h*60);return p+":"+(h<10?"0"+h:h)+":"+(d<10?"0"+d:d)},unformat:function(u){var l=u.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})})(Fo);var Ah=Fo.exports;Xt(Ah);var Po={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(rt,function(){var r=1e3,n=6e4,i=36e5,o="millisecond",s="second",a="minute",c="hour",u="day",l="week",f="month",p="quarter",h="year",d="date",m="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,y={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(F){var D=["th","st","nd","rd"],C=F%100;return"["+F+(D[(C-20)%10]||D[C]||D[0])+"]"}},v=function(F,D,C){var L=String(F);return!L||L.length>=D?F:""+Array(D+1-L.length).join(C)+F},w={s:v,z:function(F){var D=-F.utcOffset(),C=Math.abs(D),L=Math.floor(C/60),k=C%60;return(D<=0?"+":"-")+v(L,2,"0")+":"+v(k,2,"0")},m:function F(D,C){if(D.date()<C.date())return-F(C,D);var L=12*(C.year()-D.year())+(C.month()-D.month()),k=D.clone().add(L,f),H=C-k<0,q=D.clone().add(L+(H?-1:1),f);return+(-(L+(C-k)/(H?k-q:q-k))||0)},a:function(F){return F<0?Math.ceil(F)||0:Math.floor(F)},p:function(F){return{M:f,y:h,w:l,d:u,D:d,h:c,m:a,s,ms:o,Q:p}[F]||String(F||"").toLowerCase().replace(/s$/,"")},u:function(F){return F===void 0}},S="en",g={};g[S]=y;var x="$isDayjsObject",O=function(F){return F instanceof P||!(!F||!F[x])},M=function F(D,C,L){var k;if(!D)return S;if(typeof D=="string"){var H=D.toLowerCase();g[H]&&(k=H),C&&(g[H]=C,k=H);var q=D.split("-");if(!k&&q.length>1)return F(q[0])}else{var A=D.name;g[A]=D,k=A}return!L&&k&&(S=k),k||!L&&S},_=function(F,D){if(O(F))return F.clone();var C=typeof D=="object"?D:{};return C.date=F,C.args=arguments,new P(C)},T=w;T.l=M,T.i=O,T.w=function(F,D){return _(F,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var P=function(){function F(C){this.$L=M(C.locale,null,!0),this.parse(C),this.$x=this.$x||C.x||{},this[x]=!0}var D=F.prototype;return D.parse=function(C){this.$d=function(L){var k=L.date,H=L.utc;if(k===null)return new Date(NaN);if(T.u(k))return new Date;if(k instanceof Date)return new Date(k);if(typeof k=="string"&&!/Z$/i.test(k)){var q=k.match(b);if(q){var A=q[2]-1||0,B=(q[7]||"0").substring(0,3);return H?new Date(Date.UTC(q[1],A,q[3]||1,q[4]||0,q[5]||0,q[6]||0,B)):new Date(q[1],A,q[3]||1,q[4]||0,q[5]||0,q[6]||0,B)}}return new Date(k)}(C),this.init()},D.init=function(){var C=this.$d;this.$y=C.getFullYear(),this.$M=C.getMonth(),this.$D=C.getDate(),this.$W=C.getDay(),this.$H=C.getHours(),this.$m=C.getMinutes(),this.$s=C.getSeconds(),this.$ms=C.getMilliseconds()},D.$utils=function(){return T},D.isValid=function(){return this.$d.toString()!==m},D.isSame=function(C,L){var k=_(C);return this.startOf(L)<=k&&k<=this.endOf(L)},D.isAfter=function(C,L){return _(C)<this.startOf(L)},D.isBefore=function(C,L){return this.endOf(L)<_(C)},D.$g=function(C,L,k){return T.u(C)?this[L]:this.set(k,C)},D.unix=function(){return Math.floor(this.valueOf()/1e3)},D.valueOf=function(){return this.$d.getTime()},D.startOf=function(C,L){var k=this,H=!!T.u(L)||L,q=T.p(C),A=function(At,it){var wt=T.w(k.$u?Date.UTC(k.$y,it,At):new Date(k.$y,it,At),k);return H?wt:wt.endOf(u)},B=function(At,it){return T.w(k.toDate()[At].apply(k.toDate("s"),(H?[0,0,0,0]:[23,59,59,999]).slice(it)),k)},N=this.$W,I=this.$M,at=this.$D,kt="set"+(this.$u?"UTC":"");switch(q){case h:return H?A(1,0):A(31,11);case f:return H?A(1,I):A(0,I+1);case l:var Ot=this.$locale().weekStart||0,ee=(N<Ot?N+7:N)-Ot;return A(H?at-ee:at+(6-ee),I);case u:case d:return B(kt+"Hours",0);case c:return B(kt+"Minutes",1);case a:return B(kt+"Seconds",2);case s:return B(kt+"Milliseconds",3);default:return this.clone()}},D.endOf=function(C){return this.startOf(C,!1)},D.$set=function(C,L){var k,H=T.p(C),q="set"+(this.$u?"UTC":""),A=(k={},k[u]=q+"Date",k[d]=q+"Date",k[f]=q+"Month",k[h]=q+"FullYear",k[c]=q+"Hours",k[a]=q+"Minutes",k[s]=q+"Seconds",k[o]=q+"Milliseconds",k)[H],B=H===u?this.$D+(L-this.$W):L;if(H===f||H===h){var N=this.clone().set(d,1);N.$d[A](B),N.init(),this.$d=N.set(d,Math.min(this.$D,N.daysInMonth())).$d}else A&&this.$d[A](B);return this.init(),this},D.set=function(C,L){return this.clone().$set(C,L)},D.get=function(C){return this[T.p(C)]()},D.add=function(C,L){var k,H=this;C=Number(C);var q=T.p(L),A=function(I){var at=_(H);return T.w(at.date(at.date()+Math.round(I*C)),H)};if(q===f)return this.set(f,this.$M+C);if(q===h)return this.set(h,this.$y+C);if(q===u)return A(1);if(q===l)return A(7);var B=(k={},k[a]=n,k[c]=i,k[s]=r,k)[q]||1,N=this.$d.getTime()+C*B;return T.w(N,this)},D.subtract=function(C,L){return this.add(-1*C,L)},D.format=function(C){var L=this,k=this.$locale();if(!this.isValid())return k.invalidDate||m;var H=C||"YYYY-MM-DDTHH:mm:ssZ",q=T.z(this),A=this.$H,B=this.$m,N=this.$M,I=k.weekdays,at=k.months,kt=k.meridiem,Ot=function(it,wt,re,be){return it&&(it[wt]||it(L,H))||re[wt].slice(0,be)},ee=function(it){return T.s(A%12||12,it,"0")},At=kt||function(it,wt,re){var be=it<12?"AM":"PM";return re?be.toLowerCase():be};return H.replace(E,function(it,wt){return wt||function(re){switch(re){case"YY":return String(L.$y).slice(-2);case"YYYY":return T.s(L.$y,4,"0");case"M":return N+1;case"MM":return T.s(N+1,2,"0");case"MMM":return Ot(k.monthsShort,N,at,3);case"MMMM":return Ot(at,N);case"D":return L.$D;case"DD":return T.s(L.$D,2,"0");case"d":return String(L.$W);case"dd":return Ot(k.weekdaysMin,L.$W,I,2);case"ddd":return Ot(k.weekdaysShort,L.$W,I,3);case"dddd":return I[L.$W];case"H":return String(A);case"HH":return T.s(A,2,"0");case"h":return ee(1);case"hh":return ee(2);case"a":return At(A,B,!0);case"A":return At(A,B,!1);case"m":return String(B);case"mm":return T.s(B,2,"0");case"s":return String(L.$s);case"ss":return T.s(L.$s,2,"0");case"SSS":return T.s(L.$ms,3,"0");case"Z":return q}return null}(it)||q.replace(":","")})},D.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},D.diff=function(C,L,k){var H,q=this,A=T.p(L),B=_(C),N=(B.utcOffset()-this.utcOffset())*n,I=this-B,at=function(){return T.m(q,B)};switch(A){case h:H=at()/12;break;case f:H=at();break;case p:H=at()/3;break;case l:H=(I-N)/6048e5;break;case u:H=(I-N)/864e5;break;case c:H=I/i;break;case a:H=I/n;break;case s:H=I/r;break;default:H=I}return k?H:T.a(H)},D.daysInMonth=function(){return this.endOf(f).$D},D.$locale=function(){return g[this.$L]},D.locale=function(C,L){if(!C)return this.$L;var k=this.clone(),H=M(C,L,!0);return H&&(k.$L=H),k},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()},F}(),j=P.prototype;return _.prototype=j,[["$ms",o],["$s",s],["$m",a],["$H",c],["$W",u],["$M",f],["$y",h],["$D",d]].forEach(function(F){j[F[1]]=function(D){return this.$g(D,F[0],F[1])}}),_.extend=function(F,D){return F.$i||(F(D,P,_),F.$i=!0),_},_.locale=M,_.isDayjs=O,_.unix=function(F){return _(1e3*F)},_.en=g[S],_.Ls=g,_.p={},_})})(Po);var Mo=Po.exports;const $h=Xt(Mo);var Dh={exports:{}};(function(e,t){(function(r,n){e.exports=n(Mo)})(rt,function(r){function n(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var i=n(r),o={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(s,a){return a==="W"?s+"周":s+"日"},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(s,a){var c=100*s+a;return c<600?"凌晨":c<900?"早上":c<1100?"上午":c<1300?"中午":c<1800?"下午":"晚上"}};return i.default.locale(o,null,!0),o})})(Dh),$h.locale("zh-cn");function jh(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 Bh(e=0){return U(this,null,function*(){return new Promise(t=>{setTimeout(t,e)})})}function Ch(e){return[...e.entries()].reduce((t,[r,n])=>(t[r]=n,t),{})}function Nh(e,t){return Array.from(new Set(e))}function cr(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,o])=>{n(i,o)||(r[i]=o)})}return r}function Ih(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,o])=>{n(i,o)&&(r[i]=o)})}return r}var ko={exports:{}};(function(e){var t=function(){var r=String.fromCharCode,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",o={};function s(c,u){if(!o[c]){o[c]={};for(var l=0;l<c.length;l++)o[c][c.charAt(l)]=l}return o[c][u]}var a={compressToBase64:function(c){if(c==null)return"";var u=a._compress(c,6,function(l){return n.charAt(l)});switch(u.length%4){default:case 0:return u;case 1:return u+"===";case 2:return u+"==";case 3:return u+"="}},decompressFromBase64:function(c){return c==null?"":c==""?null:a._decompress(c.length,32,function(u){return s(n,c.charAt(u))})},compressToUTF16:function(c){return c==null?"":a._compress(c,15,function(u){return r(u+32)})+" "},decompressFromUTF16:function(c){return c==null?"":c==""?null:a._decompress(c.length,16384,function(u){return c.charCodeAt(u)-32})},compressToUint8Array:function(c){for(var u=a.compress(c),l=new Uint8Array(u.length*2),f=0,p=u.length;f<p;f++){var h=u.charCodeAt(f);l[f*2]=h>>>8,l[f*2+1]=h%256}return l},decompressFromUint8Array:function(c){if(c==null)return a.decompress(c);for(var u=new Array(c.length/2),l=0,f=u.length;l<f;l++)u[l]=c[l*2]*256+c[l*2+1];var p=[];return u.forEach(function(h){p.push(r(h))}),a.decompress(p.join(""))},compressToEncodedURIComponent:function(c){return c==null?"":a._compress(c,6,function(u){return i.charAt(u)})},decompressFromEncodedURIComponent:function(c){return c==null?"":c==""?null:(c=c.replace(/ /g,"+"),a._decompress(c.length,32,function(u){return s(i,c.charAt(u))}))},compress:function(c){return a._compress(c,16,function(u){return r(u)})},_compress:function(c,u,l){if(c==null)return"";var f,p,h={},d={},m="",b="",E="",y=2,v=3,w=2,S=[],g=0,x=0,O;for(O=0;O<c.length;O+=1)if(m=c.charAt(O),Object.prototype.hasOwnProperty.call(h,m)||(h[m]=v++,d[m]=!0),b=E+m,Object.prototype.hasOwnProperty.call(h,b))E=b;else{if(Object.prototype.hasOwnProperty.call(d,E)){if(E.charCodeAt(0)<256){for(f=0;f<w;f++)g=g<<1,x==u-1?(x=0,S.push(l(g)),g=0):x++;for(p=E.charCodeAt(0),f=0;f<8;f++)g=g<<1|p&1,x==u-1?(x=0,S.push(l(g)),g=0):x++,p=p>>1}else{for(p=1,f=0;f<w;f++)g=g<<1|p,x==u-1?(x=0,S.push(l(g)),g=0):x++,p=0;for(p=E.charCodeAt(0),f=0;f<16;f++)g=g<<1|p&1,x==u-1?(x=0,S.push(l(g)),g=0):x++,p=p>>1}y--,y==0&&(y=Math.pow(2,w),w++),delete d[E]}else for(p=h[E],f=0;f<w;f++)g=g<<1|p&1,x==u-1?(x=0,S.push(l(g)),g=0):x++,p=p>>1;y--,y==0&&(y=Math.pow(2,w),w++),h[b]=v++,E=String(m)}if(E!==""){if(Object.prototype.hasOwnProperty.call(d,E)){if(E.charCodeAt(0)<256){for(f=0;f<w;f++)g=g<<1,x==u-1?(x=0,S.push(l(g)),g=0):x++;for(p=E.charCodeAt(0),f=0;f<8;f++)g=g<<1|p&1,x==u-1?(x=0,S.push(l(g)),g=0):x++,p=p>>1}else{for(p=1,f=0;f<w;f++)g=g<<1|p,x==u-1?(x=0,S.push(l(g)),g=0):x++,p=0;for(p=E.charCodeAt(0),f=0;f<16;f++)g=g<<1|p&1,x==u-1?(x=0,S.push(l(g)),g=0):x++,p=p>>1}y--,y==0&&(y=Math.pow(2,w),w++),delete d[E]}else for(p=h[E],f=0;f<w;f++)g=g<<1|p&1,x==u-1?(x=0,S.push(l(g)),g=0):x++,p=p>>1;y--,y==0&&(y=Math.pow(2,w),w++)}for(p=2,f=0;f<w;f++)g=g<<1|p&1,x==u-1?(x=0,S.push(l(g)),g=0):x++,p=p>>1;for(;;)if(g=g<<1,x==u-1){S.push(l(g));break}else x++;return S.join("")},decompress:function(c){return c==null?"":c==""?null:a._decompress(c.length,32768,function(u){return c.charCodeAt(u)})},_decompress:function(c,u,l){var f=[],p=4,h=4,d=3,m="",b=[],E,y,v,w,S,g,x,O={val:l(0),position:u,index:1};for(E=0;E<3;E+=1)f[E]=E;for(v=0,S=Math.pow(2,2),g=1;g!=S;)w=O.val&O.position,O.position>>=1,O.position==0&&(O.position=u,O.val=l(O.index++)),v|=(w>0?1:0)*g,g<<=1;switch(v){case 0:for(v=0,S=Math.pow(2,8),g=1;g!=S;)w=O.val&O.position,O.position>>=1,O.position==0&&(O.position=u,O.val=l(O.index++)),v|=(w>0?1:0)*g,g<<=1;x=r(v);break;case 1:for(v=0,S=Math.pow(2,16),g=1;g!=S;)w=O.val&O.position,O.position>>=1,O.position==0&&(O.position=u,O.val=l(O.index++)),v|=(w>0?1:0)*g,g<<=1;x=r(v);break;case 2:return""}for(f[3]=x,y=x,b.push(x);;){if(O.index>c)return"";for(v=0,S=Math.pow(2,d),g=1;g!=S;)w=O.val&O.position,O.position>>=1,O.position==0&&(O.position=u,O.val=l(O.index++)),v|=(w>0?1:0)*g,g<<=1;switch(x=v){case 0:for(v=0,S=Math.pow(2,8),g=1;g!=S;)w=O.val&O.position,O.position>>=1,O.position==0&&(O.position=u,O.val=l(O.index++)),v|=(w>0?1:0)*g,g<<=1;f[h++]=r(v),x=h-1,p--;break;case 1:for(v=0,S=Math.pow(2,16),g=1;g!=S;)w=O.val&O.position,O.position>>=1,O.position==0&&(O.position=u,O.val=l(O.index++)),v|=(w>0?1:0)*g,g<<=1;f[h++]=r(v),x=h-1,p--;break;case 2:return b.join("")}if(p==0&&(p=Math.pow(2,d),d++),f[x])m=f[x];else if(x===h)m=y+y.charAt(0);else return null;b.push(m),f[h++]=y+m.charAt(0),p--,y=m,p==0&&(p=Math.pow(2,d),d++)}}};return a}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})})(ko);var Uo=ko.exports;function Fh(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="",o=r+1;o<e.length;){var s=e.charCodeAt(o);if(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===95){i+=e[o++];continue}break}if(!i)throw new TypeError("Missing parameter name at ".concat(r));t.push({type:"NAME",index:r,value:i}),r=o;continue}if(n==="("){var a=1,c="",o=r+1;if(e[o]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(o));for(;o<e.length;){if(e[o]==="\\"){c+=e[o++]+e[o++];continue}if(e[o]===")"){if(a--,a===0){o++;break}}else if(e[o]==="("&&(a++,e[o+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(o));c+=e[o++]}if(a)throw new TypeError("Unbalanced pattern at ".concat(r));if(!c)throw new TypeError("Missing pattern at ".concat(r));t.push({type:"PATTERN",index:r,value:c}),r=o;continue}t.push({type:"CHAR",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}function Lo(e,t){t===void 0&&(t={});for(var r=Fh(e),n=t.prefixes,i=n===void 0?"./":n,o="[^".concat(Jt(t.delimiter||"/#?"),"]+?"),s=[],a=0,c=0,u="",l=function(g){if(c<r.length&&r[c].type===g)return r[c++].value},f=function(g){var x=l(g);if(x!==void 0)return x;var O=r[c],M=O.type,_=O.index;throw new TypeError("Unexpected ".concat(M," at ").concat(_,", expected ").concat(g))},p=function(){for(var g="",x;x=l("CHAR")||l("ESCAPED_CHAR");)g+=x;return g};c<r.length;){var h=l("CHAR"),d=l("NAME"),m=l("PATTERN");if(d||m){var b=h||"";i.indexOf(b)===-1&&(u+=b,b=""),u&&(s.push(u),u=""),s.push({name:d||a++,prefix:b,suffix:"",pattern:m||o,modifier:l("MODIFIER")||""});continue}var E=h||l("ESCAPED_CHAR");if(E){u+=E;continue}u&&(s.push(u),u="");var y=l("OPEN");if(y){var b=p(),v=l("NAME")||"",w=l("PATTERN")||"",S=p();f("CLOSE"),s.push({name:v||(w?a++:""),pattern:v&&!w?o:w,prefix:b,suffix:S,modifier:l("MODIFIER")||""});continue}f("END")}return s}function Ph(e,t){return Mh(Lo(e,t),t)}function Mh(e,t){t===void 0&&(t={});var r=Jr(t),n=t.encode,i=n===void 0?function(c){return c}:n,o=t.validate,s=o===void 0?!0:o,a=e.map(function(c){if(typeof c=="object")return new RegExp("^(?:".concat(c.pattern,")$"),r)});return function(c){for(var u="",l=0;l<e.length;l++){var f=e[l];if(typeof f=="string"){u+=f;continue}var p=c?c[f.name]:void 0,h=f.modifier==="?"||f.modifier==="*",d=f.modifier==="*"||f.modifier==="+";if(Array.isArray(p)){if(!d)throw new TypeError('Expected "'.concat(f.name,'" to not repeat, but got an array'));if(p.length===0){if(h)continue;throw new TypeError('Expected "'.concat(f.name,'" to not be empty'))}for(var m=0;m<p.length;m++){var b=i(p[m],f);if(s&&!a[l].test(b))throw new TypeError('Expected all "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(b,'"'));u+=f.prefix+b+f.suffix}continue}if(typeof p=="string"||typeof p=="number"){var b=i(String(p),f);if(s&&!a[l].test(b))throw new TypeError('Expected "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(b,'"'));u+=f.prefix+b+f.suffix;continue}if(!h){var E=d?"an array":"a string";throw new TypeError('Expected "'.concat(f.name,'" to be ').concat(E))}}return u}}function kh(e,t){var r=[],n=Yr(e,r,t);return Uh(n,r,t)}function Uh(e,t,r){r===void 0&&(r={});var n=r.decode,i=n===void 0?function(o){return o}:n;return function(o){var s=e.exec(o);if(!s)return!1;for(var a=s[0],c=s.index,u=Object.create(null),l=function(p){if(s[p]===void 0)return"continue";var h=t[p-1];h.modifier==="*"||h.modifier==="+"?u[h.name]=s[p].split(h.prefix+h.suffix).map(function(d){return i(d,h)}):u[h.name]=i(s[p],h)},f=1;f<s.length;f++)l(f);return{path:a,index:c,params:u}}}function Jt(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function Jr(e){return e&&e.sensitive?"":"i"}function Lh(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 Vh(e,t,r){var n=e.map(function(i){return Yr(i,t,r).source});return new RegExp("(?:".concat(n.join("|"),")"),Jr(r))}function Hh(e,t,r){return qh(Lo(e,r),t,r)}function qh(e,t,r){r===void 0&&(r={});for(var n=r.strict,i=n===void 0?!1:n,o=r.start,s=o===void 0?!0:o,a=r.end,c=a===void 0?!0:a,u=r.encode,l=u===void 0?function(_){return _}:u,f=r.delimiter,p=f===void 0?"/#?":f,h=r.endsWith,d=h===void 0?"":h,m="[".concat(Jt(d),"]|$"),b="[".concat(Jt(p),"]"),E=s?"^":"",y=0,v=e;y<v.length;y++){var w=v[y];if(typeof w=="string")E+=Jt(l(w));else{var S=Jt(l(w.prefix)),g=Jt(l(w.suffix));if(w.pattern)if(t&&t.push(w),S||g)if(w.modifier==="+"||w.modifier==="*"){var x=w.modifier==="*"?"?":"";E+="(?:".concat(S,"((?:").concat(w.pattern,")(?:").concat(g).concat(S,"(?:").concat(w.pattern,"))*)").concat(g,")").concat(x)}else E+="(?:".concat(S,"(").concat(w.pattern,")").concat(g,")").concat(w.modifier);else w.modifier==="+"||w.modifier==="*"?E+="((?:".concat(w.pattern,")").concat(w.modifier,")"):E+="(".concat(w.pattern,")").concat(w.modifier);else E+="(?:".concat(S).concat(g,")").concat(w.modifier)}}if(c)i||(E+="".concat(b,"?")),E+=r.endsWith?"(?=".concat(m,")"):"$";else{var O=e[e.length-1],M=typeof O=="string"?b.indexOf(O[O.length-1])>-1:O===void 0;i||(E+="(?:".concat(b,"(?=").concat(m,"))?")),M||(E+="(?=".concat(b,"|").concat(m,")"))}return new RegExp(E,Jr(r))}function Yr(e,t,r){return e instanceof RegExp?Lh(e,t):Array.isArray(e)?Vh(e,t,r):Hh(e,t,r)}Uo.compress;Uo.decompress;/**!
51
- * Copyright (c) 2025, VTJ.PRO All rights reserved.
52
- * @name @vtj/core
53
- * @author CHC chenhuachun1549@dingtalk.com
54
- * @version 0.10.12
55
- * @license <a href="https://vtj.pro/license.html">MIT License</a>
56
- */const zh="VueMaterial",Wh="VueRouterMaterial",Jh={[zh]:["Transition","TransitionGroup","KeepAlive","Teleport","Suspense"],[Wh]:["RouterView","RouterLink"]};let Yh=class{constructor(){z(this,"listeners",[]);z(this,"isReady",!1)}triggerReady(){this.isReady=!0;for(const t of this.listeners)t();this.listeners=[]}ready(t){this.isReady?t():this.listeners.push(t)}resetReady(){this.isReady=!1}};var Kh=Object.defineProperty,Zh=(e,t,r)=>t in e?Kh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ut=(e,t,r)=>Zh(e,typeof t!="symbol"?t+"":t,r);(function(){if(typeof window>"u"||typeof EventTarget>"u")return;const e=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(t,r,n){typeof n!="boolean"&&(n=n||{},n.passive=!1),e.call(this,t,r,n)}})();const Gh=e=>typeof e=="symbol";new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Gh));function Vo(e,t){return function(){return e.apply(t,arguments)}}const{toString:Xh}=Object.prototype,{getPrototypeOf:Kr}=Object,ze=(e=>t=>{const r=Xh.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),dt=e=>(e=e.toLowerCase(),t=>ze(t)===e),We=e=>t=>typeof t===e,{isArray:Qt}=Array,pe=We("undefined");function Qh(e){return e!==null&&!pe(e)&&e.constructor!==null&&!pe(e.constructor)&&st(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ho=dt("ArrayBuffer");function tp(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ho(e.buffer),t}const ep=We("string"),st=We("function"),qo=We("number"),Je=e=>e!==null&&typeof e=="object",rp=e=>e===!0||e===!1,De=e=>{if(ze(e)!=="object")return!1;const t=Kr(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},np=dt("Date"),ip=dt("File"),op=dt("Blob"),sp=dt("FileList"),ap=e=>Je(e)&&st(e.pipe),up=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||st(e.append)&&((t=ze(e))==="formdata"||t==="object"&&st(e.toString)&&e.toString()==="[object FormData]"))},cp=dt("URLSearchParams"),[lp,fp,hp,pp]=["ReadableStream","Request","Response","Headers"].map(dt),dp=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ye(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Qt(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let a;for(n=0;n<s;n++)a=o[n],t.call(null,e[a],a,e)}}function zo(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 Ct=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Wo=e=>!pe(e)&&e!==Ct;function $r(){const{caseless:e}=Wo(this)&&this||{},t={},r=(n,i)=>{const o=e&&zo(t,i)||i;De(t[o])&&De(n)?t[o]=$r(t[o],n):De(n)?t[o]=$r({},n):Qt(n)?t[o]=n.slice():t[o]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&ye(arguments[n],r);return t}const mp=(e,t,r,{allOwnKeys:n}={})=>(ye(t,(i,o)=>{r&&st(i)?e[o]=Vo(i,r):e[o]=i},{allOwnKeys:n}),e),gp=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),yp=(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)},vp=(e,t,r,n)=>{let i,o,s;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!n||n(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=r!==!1&&Kr(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},bp=(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},wp=e=>{if(!e)return null;if(Qt(e))return e;let t=e.length;if(!qo(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},_p=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Kr(Uint8Array)),Ep=(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])}},Sp=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},xp=dt("HTMLFormElement"),Tp=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,r,n){return r.toUpperCase()+n}),ii=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Rp=dt("RegExp"),Jo=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};ye(r,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(n[o]=s||i)}),Object.defineProperties(e,n)},Op=e=>{Jo(e,(t,r)=>{if(st(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(st(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+"'")})}})},Ap=(e,t)=>{const r={},n=i=>{i.forEach(o=>{r[o]=!0})};return Qt(e)?n(e):n(String(e).split(t)),r},$p=()=>{},Dp=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function jp(e){return!!(e&&st(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Bp=e=>{const t=new Array(10),r=(n,i)=>{if(Je(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const o=Qt(n)?[]:{};return ye(n,(s,a)=>{const c=r(s,i+1);!pe(c)&&(o[a]=c)}),t[i]=void 0,o}}return n};return r(e,0)},Cp=dt("AsyncFunction"),Np=e=>e&&(Je(e)||st(e))&&st(e.then)&&st(e.catch),Yo=((e,t)=>e?setImmediate:t?((r,n)=>(Ct.addEventListener("message",({source:i,data:o})=>{i===Ct&&o===r&&n.length&&n.shift()()},!1),i=>{n.push(i),Ct.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",st(Ct.postMessage)),Ip=typeof queueMicrotask<"u"?queueMicrotask.bind(Ct):typeof process<"u"&&process.nextTick||Yo,R={isArray:Qt,isArrayBuffer:Ho,isBuffer:Qh,isFormData:up,isArrayBufferView:tp,isString:ep,isNumber:qo,isBoolean:rp,isObject:Je,isPlainObject:De,isReadableStream:lp,isRequest:fp,isResponse:hp,isHeaders:pp,isUndefined:pe,isDate:np,isFile:ip,isBlob:op,isRegExp:Rp,isFunction:st,isStream:ap,isURLSearchParams:cp,isTypedArray:_p,isFileList:sp,forEach:ye,merge:$r,extend:mp,trim:dp,stripBOM:gp,inherits:yp,toFlatObject:vp,kindOf:ze,kindOfTest:dt,endsWith:bp,toArray:wp,forEachEntry:Ep,matchAll:Sp,isHTMLForm:xp,hasOwnProperty:ii,hasOwnProp:ii,reduceDescriptors:Jo,freezeMethods:Op,toObjectSet:Ap,toCamelCase:Tp,noop:$p,toFiniteNumber:Dp,findKey:zo,global:Ct,isContextDefined:Wo,isSpecCompliantForm:jp,toJSONObject:Bp,isAsyncFn:Cp,isThenable:Np,setImmediate:Yo,asap:Ip};function W(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}R.inherits(W,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:R.toJSONObject(this.config),code:this.code,status:this.status}}});const Ko=W.prototype,Zo={};["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=>{Zo[e]={value:e}});Object.defineProperties(W,Zo);Object.defineProperty(Ko,"isAxiosError",{value:!0});W.from=(e,t,r,n,i,o)=>{const s=Object.create(Ko);return R.toFlatObject(e,s,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),W.call(s,e.message,t,r,n,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const Fp=null;function Dr(e){return R.isPlainObject(e)||R.isArray(e)}function Go(e){return R.endsWith(e,"[]")?e.slice(0,-2):e}function oi(e,t,r){return e?e.concat(t).map(function(n,i){return n=Go(n),!r&&i?"["+n+"]":n}).join(r?".":""):t}function Pp(e){return R.isArray(e)&&!e.some(Dr)}const Mp=R.toFlatObject(R,{},null,function(e){return/^is[A-Z]/.test(e)});function Ye(e,t,r){if(!R.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=R.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,d){return!R.isUndefined(d[h])});const n=r.metaTokens,i=r.visitor||u,o=r.dots,s=r.indexes,a=(r.Blob||typeof Blob<"u"&&Blob)&&R.isSpecCompliantForm(t);if(!R.isFunction(i))throw new TypeError("visitor must be a function");function c(h){if(h===null)return"";if(R.isDate(h))return h.toISOString();if(!a&&R.isBlob(h))throw new W("Blob is not supported. Use a Buffer instead.");return R.isArrayBuffer(h)||R.isTypedArray(h)?a&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function u(h,d,m){let b=h;if(h&&!m&&typeof h=="object"){if(R.endsWith(d,"{}"))d=n?d:d.slice(0,-2),h=JSON.stringify(h);else if(R.isArray(h)&&Pp(h)||(R.isFileList(h)||R.endsWith(d,"[]"))&&(b=R.toArray(h)))return d=Go(d),b.forEach(function(E,y){!(R.isUndefined(E)||E===null)&&t.append(s===!0?oi([d],y,o):s===null?d:d+"[]",c(E))}),!1}return Dr(h)?!0:(t.append(oi(m,d,o),c(h)),!1)}const l=[],f=Object.assign(Mp,{defaultVisitor:u,convertValue:c,isVisitable:Dr});function p(h,d){if(!R.isUndefined(h)){if(l.indexOf(h)!==-1)throw Error("Circular reference detected in "+d.join("."));l.push(h),R.forEach(h,function(m,b){(!(R.isUndefined(m)||m===null)&&i.call(t,m,R.isString(b)?b.trim():b,d,f))===!0&&p(m,d?d.concat(b):[b])}),l.pop()}}if(!R.isObject(e))throw new TypeError("data must be an object");return p(e),t}function si(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Zr(e,t){this._pairs=[],e&&Ye(e,this,t)}const Xo=Zr.prototype;Xo.append=function(e,t){this._pairs.push([e,t])};Xo.toString=function(e){const t=e?function(r){return e.call(this,r,si)}:si;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function kp(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Qo(e,t,r){if(!t)return e;const n=r&&r.encode||kp;R.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let o;if(i?o=i(t,r):o=R.isURLSearchParams(t)?t.toString():new Zr(t,r).toString(n),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}let ai=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){R.forEach(this.handlers,function(r){r!==null&&t(r)})}};const ts={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Up=typeof URLSearchParams<"u"?URLSearchParams:Zr,Lp=typeof FormData<"u"?FormData:null,Vp=typeof Blob<"u"?Blob:null,Hp={isBrowser:!0,classes:{URLSearchParams:Up,FormData:Lp,Blob:Vp},protocols:["http","https","file","blob","url","data"]},Gr=typeof window<"u"&&typeof document<"u",jr=typeof navigator=="object"&&navigator||void 0,qp=Gr&&(!jr||["ReactNative","NativeScript","NS"].indexOf(jr.product)<0),zp=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Wp=Gr&&window.location.href||"http://localhost",Jp=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Gr,hasStandardBrowserEnv:qp,hasStandardBrowserWebWorkerEnv:zp,navigator:jr,origin:Wp},Symbol.toStringTag,{value:"Module"})),tt=V(V({},Jp),Hp);function Yp(e,t){return Ye(e,new tt.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,o){return tt.isNode&&R.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Kp(e){return R.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Zp(e){const t={},r=Object.keys(e);let n;const i=r.length;let o;for(n=0;n<i;n++)o=r[n],t[o]=e[o];return t}function es(e){function t(r,n,i,o){let s=r[o++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),c=o>=r.length;return s=!s&&R.isArray(i)?i.length:s,c?(R.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!a):((!i[s]||!R.isObject(i[s]))&&(i[s]=[]),t(r,n,i[s],o)&&R.isArray(i[s])&&(i[s]=Zp(i[s])),!a)}if(R.isFormData(e)&&R.isFunction(e.entries)){const r={};return R.forEachEntry(e,(n,i)=>{t(Kp(n),i,r,0)}),r}return null}function Gp(e,t,r){if(R.isString(e))try{return(t||JSON.parse)(e),R.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const ve={transitional:ts,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=R.isObject(e);if(i&&R.isHTMLForm(e)&&(e=new FormData(e)),R.isFormData(e))return n?JSON.stringify(es(e)):e;if(R.isArrayBuffer(e)||R.isBuffer(e)||R.isStream(e)||R.isFile(e)||R.isBlob(e)||R.isReadableStream(e))return e;if(R.isArrayBufferView(e))return e.buffer;if(R.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Yp(e,this.formSerializer).toString();if((o=R.isFileList(e))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Ye(o?{"files[]":e}:e,s&&new s,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),Gp(e)):e}],transformResponse:[function(e){const t=this.transitional||ve.transitional,r=t&&t.forcedJSONParsing,n=this.responseType==="json";if(R.isResponse(e)||R.isReadableStream(e))return e;if(e&&R.isString(e)&&(r&&!this.responseType||n)){const i=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(o){if(i)throw o.name==="SyntaxError"?W.from(o,W.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:tt.classes.FormData,Blob:tt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};R.forEach(["delete","get","head","post","put","patch"],e=>{ve.headers[e]={}});const Xp=R.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"]),Qp=e=>{const t={};let r,n,i;return e&&e.split(`
57
- `).forEach(function(o){i=o.indexOf(":"),r=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!r||t[r]&&Xp[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},ui=Symbol("internals");function oe(e){return e&&String(e).trim().toLowerCase()}function je(e){return e===!1||e==null?e:R.isArray(e)?e.map(je):String(e)}function td(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 ed=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function lr(e,t,r,n,i){if(R.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!R.isString(t)){if(R.isString(n))return t.indexOf(n)!==-1;if(R.isRegExp(n))return n.test(t)}}function rd(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function nd(e,t){const r=R.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,o,s){return this[n].call(this,t,i,o,s)},configurable:!0})})}let ot=class{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function o(a,c,u){const l=oe(c);if(!l)throw new Error("header name must be a non-empty string");const f=R.findKey(i,l);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||c]=je(a))}const s=(a,c)=>R.forEach(a,(u,l)=>o(u,l,c));if(R.isPlainObject(t)||t instanceof this.constructor)s(t,r);else if(R.isString(t)&&(t=t.trim())&&!ed(t))s(Qp(t),r);else if(R.isHeaders(t))for(const[a,c]of t.entries())o(c,a,n);else t!=null&&o(r,t,n);return this}get(t,r){if(t=oe(t),t){const n=R.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return td(i);if(R.isFunction(r))return r.call(this,i,n);if(R.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=oe(t),t){const n=R.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||lr(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function o(s){if(s=oe(s),s){const a=R.findKey(n,s);a&&(!r||lr(n,n[a],a,r))&&(delete n[a],i=!0)}}return R.isArray(t)?t.forEach(o):o(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const o=r[n];(!t||lr(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const r=this,n={};return R.forEach(this,(i,o)=>{const s=R.findKey(n,o);if(s){r[s]=je(i),delete r[o];return}const a=t?rd(o):String(o).trim();a!==o&&delete r[o],r[a]=je(i),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return R.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&R.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(`
58
- `)}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[ui]=this[ui]={accessors:{}}).accessors,n=this.prototype;function i(o){const s=oe(o);r[s]||(nd(n,o),r[s]=!0)}return R.isArray(t)?t.forEach(i):i(t),this}};ot.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);R.reduceDescriptors(ot.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});R.freezeMethods(ot);function fr(e,t){const r=this||ve,n=t||r,i=ot.from(n.headers);let o=n.data;return R.forEach(e,function(s){o=s.call(r,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function rs(e){return!!(e&&e.__CANCEL__)}function te(e,t,r){W.call(this,e!=null?e:"canceled",W.ERR_CANCELED,t,r),this.name="CanceledError"}R.inherits(te,W,{__CANCEL__:!0});function ns(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new W("Request failed with status code "+r.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function id(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function od(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(a){const c=Date.now(),u=n[o];s||(s=c),r[i]=a,n[i]=c;let l=o,f=0;for(;l!==i;)f+=r[l++],l=l%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-s<t)return;const p=u&&c-u;return p?Math.round(f*1e3/p):void 0}}function sd(e,t){let r=0,n=1e3/t,i,o;const s=(a,c=Date.now())=>{r=c,i=null,o&&(clearTimeout(o),o=null),e.apply(null,a)};return[(...a)=>{const c=Date.now(),u=c-r;u>=n?s(a,c):(i=a,o||(o=setTimeout(()=>{o=null,s(i)},n-u)))},()=>i&&s(i)]}const Fe=(e,t,r=3)=>{let n=0;const i=od(50,250);return sd(o=>{const s=o.loaded,a=o.lengthComputable?o.total:void 0,c=s-n,u=i(c),l=s<=a;n=s;const f={loaded:s,total:a,progress:a?s/a:void 0,bytes:c,rate:u||void 0,estimated:u&&a&&l?(a-s)/u:void 0,event:o,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(f)},r)},ci=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},li=e=>(...t)=>R.asap(()=>e(...t)),ad=tt.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,tt.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(tt.origin),tt.navigator&&/(msie|trident)/i.test(tt.navigator.userAgent)):()=>!0,ud=tt.hasStandardBrowserEnv?{write(e,t,r,n,i,o){const s=[e+"="+encodeURIComponent(t)];R.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),R.isString(n)&&s.push("path="+n),R.isString(i)&&s.push("domain="+i),o===!0&&s.push("secure"),document.cookie=s.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 cd(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ld(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function is(e,t,r){let n=!cd(t);return e&&n||r==!1?ld(e,t):t}const fi=e=>e instanceof ot?V({},e):e;function It(e,t){t=t||{};const r={};function n(u,l,f,p){return R.isPlainObject(u)&&R.isPlainObject(l)?R.merge.call({caseless:p},u,l):R.isPlainObject(l)?R.merge({},l):R.isArray(l)?l.slice():l}function i(u,l,f,p){if(R.isUndefined(l)){if(!R.isUndefined(u))return n(void 0,u,f,p)}else return n(u,l,f,p)}function o(u,l){if(!R.isUndefined(l))return n(void 0,l)}function s(u,l){if(R.isUndefined(l)){if(!R.isUndefined(u))return n(void 0,u)}else return n(void 0,l)}function a(u,l,f){if(f in t)return n(u,l);if(f in e)return n(void 0,u)}const c={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,l,f)=>i(fi(u),fi(l),f,!0)};return R.forEach(Object.keys(Object.assign({},e,t)),function(u){const l=c[u]||i,f=l(e[u],t[u],u);R.isUndefined(f)&&l!==a||(r[u]=f)}),r}const os=e=>{const t=It({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:o,headers:s,auth:a}=t;t.headers=s=ot.from(s),t.url=Qo(is(t.baseURL,t.url),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let c;if(R.isFormData(r)){if(tt.hasStandardBrowserEnv||tt.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((c=s.getContentType())!==!1){const[u,...l]=c?c.split(";").map(f=>f.trim()).filter(Boolean):[];s.setContentType([u||"multipart/form-data",...l].join("; "))}}if(tt.hasStandardBrowserEnv&&(n&&R.isFunction(n)&&(n=n(t)),n||n!==!1&&ad(t.url))){const u=i&&o&&ud.read(o);u&&s.set(i,u)}return t},fd=typeof XMLHttpRequest<"u",hd=fd&&function(e){return new Promise(function(t,r){const n=os(e);let i=n.data;const o=ot.from(n.headers).normalize();let{responseType:s,onUploadProgress:a,onDownloadProgress:c}=n,u,l,f,p,h;function d(){p&&p(),h&&h(),n.cancelToken&&n.cancelToken.unsubscribe(u),n.signal&&n.signal.removeEventListener("abort",u)}let m=new XMLHttpRequest;m.open(n.method.toUpperCase(),n.url,!0),m.timeout=n.timeout;function b(){if(!m)return;const y=ot.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),v={data:!s||s==="text"||s==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:y,config:e,request:m};ns(function(w){t(w),d()},function(w){r(w),d()},v),m=null}"onloadend"in m?m.onloadend=b:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(b)},m.onabort=function(){m&&(r(new W("Request aborted",W.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new W("Network Error",W.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let y=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const v=n.transitional||ts;n.timeoutErrorMessage&&(y=n.timeoutErrorMessage),r(new W(y,v.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,e,m)),m=null},i===void 0&&o.setContentType(null),"setRequestHeader"in m&&R.forEach(o.toJSON(),function(y,v){m.setRequestHeader(v,y)}),R.isUndefined(n.withCredentials)||(m.withCredentials=!!n.withCredentials),s&&s!=="json"&&(m.responseType=n.responseType),c&&([f,h]=Fe(c,!0),m.addEventListener("progress",f)),a&&m.upload&&([l,p]=Fe(a),m.upload.addEventListener("progress",l),m.upload.addEventListener("loadend",p)),(n.cancelToken||n.signal)&&(u=y=>{m&&(r(!y||y.type?new te(null,e,m):y),m.abort(),m=null)},n.cancelToken&&n.cancelToken.subscribe(u),n.signal&&(n.signal.aborted?u():n.signal.addEventListener("abort",u)));const E=id(n.url);if(E&&tt.protocols.indexOf(E)===-1){r(new W("Unsupported protocol "+E+":",W.ERR_BAD_REQUEST,e));return}m.send(i||null)})},pd=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,i;const o=function(u){if(!i){i=!0,a();const l=u instanceof Error?u:this.reason;n.abort(l instanceof W?l:new te(l instanceof Error?l.message:l))}};let s=t&&setTimeout(()=>{s=null,o(new W(`timeout ${t} of ms exceeded`,W.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:c}=n;return c.unsubscribe=()=>R.asap(a),c}},dd=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},md=function(e,t){return Qe(this,null,function*(){try{for(var r=nn(gd(e)),n,i,o;n=!(i=yield new $t(r.next())).done;n=!1){const s=i.value;yield*tr(dd(s,t))}}catch(i){o=[i]}finally{try{n&&(i=r.return)&&(yield new $t(i.call(r)))}finally{if(o)throw o[0]}}})},gd=function(e){return Qe(this,null,function*(){if(e[Symbol.asyncIterator]){yield*tr(e);return}const t=e.getReader();try{for(;;){const{done:r,value:n}=yield new $t(t.read());if(r)break;yield n}}finally{yield new $t(t.cancel())}})},hi=(e,t,r,n)=>{const i=md(e,t);let o=0,s,a=u=>{s||(s=!0,n&&n(u))};return new ReadableStream({pull(u){return U(this,null,function*(){try{const{done:l,value:f}=yield i.next();if(l){a(),u.close();return}let p=f.byteLength;if(r){let h=o+=p;r(h)}u.enqueue(new Uint8Array(f))}catch(l){throw a(l),l}})},cancel(u){return a(u),i.return()}},{highWaterMark:2})},Ke=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ss=Ke&&typeof ReadableStream=="function",yd=Ke&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):e=>U(void 0,null,function*(){return new Uint8Array(yield new Response(e).arrayBuffer())})),as=(e,...t)=>{try{return!!e(...t)}catch(r){return!1}},vd=ss&&as(()=>{let e=!1;const t=new Request(tt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),pi=64*1024,Br=ss&&as(()=>R.isReadableStream(new Response("").body)),Pe={stream:Br&&(e=>e.body)};Ke&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Pe[t]&&(Pe[t]=R.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new W(`Response type '${t}' is not supported`,W.ERR_NOT_SUPPORT,n)})})})(new Response);const bd=e=>U(void 0,null,function*(){if(e==null)return 0;if(R.isBlob(e))return e.size;if(R.isSpecCompliantForm(e))return(yield new Request(tt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(R.isArrayBufferView(e)||R.isArrayBuffer(e))return e.byteLength;if(R.isURLSearchParams(e)&&(e=e+""),R.isString(e))return(yield yd(e)).byteLength}),wd=(e,t)=>U(void 0,null,function*(){const r=R.toFiniteNumber(e.getContentLength());return r!=null?r:bd(t)}),_d=Ke&&(e=>U(void 0,null,function*(){let{url:t,method:r,data:n,signal:i,cancelToken:o,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:l,withCredentials:f="same-origin",fetchOptions:p}=os(e);u=u?(u+"").toLowerCase():"text";let h=pd([i,o&&o.toAbortSignal()],s),d;const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let b;try{if(c&&vd&&r!=="get"&&r!=="head"&&(b=yield wd(l,n))!==0){let S=new Request(t,{method:"POST",body:n,duplex:"half"}),g;if(R.isFormData(n)&&(g=S.headers.get("content-type"))&&l.setContentType(g),S.body){const[x,O]=ci(b,Fe(li(c)));n=hi(S.body,pi,x,O)}}R.isString(f)||(f=f?"include":"omit");const E="credentials"in Request.prototype;d=new Request(t,Q(V({},p),{signal:h,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",credentials:E?f:void 0}));let y=yield fetch(d);const v=Br&&(u==="stream"||u==="response");if(Br&&(a||v&&m)){const S={};["status","statusText","headers"].forEach(M=>{S[M]=y[M]});const g=R.toFiniteNumber(y.headers.get("content-length")),[x,O]=a&&ci(g,Fe(li(a),!0))||[];y=new Response(hi(y.body,pi,x,()=>{O&&O(),m&&m()}),S)}u=u||"text";let w=yield Pe[R.findKey(Pe,u)||"text"](y,e);return!v&&m&&m(),yield new Promise((S,g)=>{ns(S,g,{data:w,headers:ot.from(y.headers),status:y.status,statusText:y.statusText,config:e,request:d})})}catch(E){throw m&&m(),E&&E.name==="TypeError"&&/fetch/i.test(E.message)?Object.assign(new W("Network Error",W.ERR_NETWORK,e,d),{cause:E.cause||E}):W.from(E,E&&E.code,e,d)}})),Cr={http:Fp,xhr:hd,fetch:_d};R.forEach(Cr,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}});const di=e=>`- ${e}`,Ed=e=>R.isFunction(e)||e===null||e===!1,us={getAdapter:e=>{e=R.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let o=0;o<t;o++){r=e[o];let s;if(n=r,!Ed(r)&&(n=Cr[(s=String(r)).toLowerCase()],n===void 0))throw new W(`Unknown adapter '${s}'`);if(n)break;i[s||"#"+o]=n}if(!n){const o=Object.entries(i).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since :
59
- `+o.map(di).join(`
60
- `):" "+di(o[0]):"as no adapter specified";throw new W("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:Cr};function hr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new te(null,e)}function mi(e){return hr(e),e.headers=ot.from(e.headers),e.data=fr.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),us.getAdapter(e.adapter||ve.adapter)(e).then(function(t){return hr(e),t.data=fr.call(e,e.transformResponse,t),t.headers=ot.from(t.headers),t},function(t){return rs(t)||(hr(e),t&&t.response&&(t.response.data=fr.call(e,e.transformResponse,t.response),t.response.headers=ot.from(t.response.headers))),Promise.reject(t)})}const cs="1.8.2",Ze={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ze[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const gi={};Ze.transitional=function(e,t,r){function n(i,o){return"[Axios v"+cs+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,s)=>{if(e===!1)throw new W(n(o," has been removed"+(t?" in "+t:"")),W.ERR_DEPRECATED);return t&&!gi[o]&&(gi[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,o,s):!0}};Ze.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function Sd(e,t,r){if(typeof e!="object")throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const o=n[i],s=t[o];if(s){const a=e[o],c=a===void 0||s(a,o,e);if(c!==!0)throw new W("option "+o+" must be "+c,W.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new W("Unknown option "+o,W.ERR_BAD_OPTION)}}const Be={assertOptions:Sd,validators:Ze},mt=Be.validators;let Nt=class{constructor(t){this.defaults=t,this.interceptors={request:new ai,response:new ai}}request(t,r){return U(this,null,function*(){try{return yield this._request(t,r)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?o&&!String(n.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(n.stack+=`
61
- `+o):n.stack=o}catch(s){}}throw n}})}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=It(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:o}=r;n!==void 0&&Be.assertOptions(n,{silentJSONParsing:mt.transitional(mt.boolean),forcedJSONParsing:mt.transitional(mt.boolean),clarifyTimeoutError:mt.transitional(mt.boolean)},!1),i!=null&&(R.isFunction(i)?r.paramsSerializer={serialize:i}:Be.assertOptions(i,{encode:mt.function,serialize:mt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Be.assertOptions(r,{baseUrl:mt.spelling("baseURL"),withXsrfToken:mt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=o&&R.merge(o.common,o[r.method]);o&&R.forEach(["delete","get","head","post","put","patch","common"],d=>{delete o[d]}),r.headers=ot.concat(s,o);const a=[];let c=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(r)===!1||(c=c&&d.synchronous,a.unshift(d.fulfilled,d.rejected))});const u=[];this.interceptors.response.forEach(function(d){u.push(d.fulfilled,d.rejected)});let l,f=0,p;if(!c){const d=[mi.bind(this),void 0];for(d.unshift.apply(d,a),d.push.apply(d,u),p=d.length,l=Promise.resolve(r);f<p;)l=l.then(d[f++],d[f++]);return l}p=a.length;let h=r;for(f=0;f<p;){const d=a[f++],m=a[f++];try{h=d(h)}catch(b){m.call(this,b);break}}try{l=mi.call(this,h)}catch(d){return Promise.reject(d)}for(f=0,p=u.length;f<p;)l=l.then(u[f++],u[f++]);return l}getUri(t){t=It(this.defaults,t);const r=is(t.baseURL,t.url,t.allowAbsoluteUrls);return Qo(r,t.params,t.paramsSerializer)}};R.forEach(["delete","get","head","options"],function(e){Nt.prototype[e]=function(t,r){return this.request(It(r||{},{method:e,url:t,data:(r||{}).data}))}});R.forEach(["post","put","patch"],function(e){function t(r){return function(n,i,o){return this.request(It(o||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Nt.prototype[e]=t(),Nt.prototype[e+"Form"]=t(!0)});let xd=class ls{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 o=n._listeners.length;for(;o-- >0;)n._listeners[o](i);n._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(a=>{n.subscribe(a),o=a}).then(i);return s.cancel=function(){n.unsubscribe(o)},s},t(function(i,o,s){n.reason||(n.reason=new te(i,o,s),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 ls(function(r){t=r}),cancel:t}}};function Td(e){return function(t){return e.apply(null,t)}}function Rd(e){return R.isObject(e)&&e.isAxiosError===!0}const Nr={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(Nr).forEach(([e,t])=>{Nr[t]=e});function fs(e){const t=new Nt(e),r=Vo(Nt.prototype.request,t);return R.extend(r,Nt.prototype,t,{allOwnKeys:!0}),R.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return fs(It(e,n))},r}const G=fs(ve);G.Axios=Nt;G.CanceledError=te;G.CancelToken=xd;G.isCancel=rs;G.VERSION=cs;G.toFormData=Ye;G.AxiosError=W;G.Cancel=G.CanceledError;G.all=function(e){return Promise.all(e)};G.spread=Td;G.isAxiosError=Rd;G.mergeConfig=It;G.AxiosHeaders=ot;G.formToJSON=e=>es(R.isHTMLForm(e)?new FormData(e):e);G.getAdapter=us.getAdapter;G.HttpStatusCode=Nr;G.default=G;const{Axios:Yg,AxiosError:Kg,CanceledError:Zg,isCancel:Gg,CancelToken:Xg,VERSION:Qg,all:t0,Cancel:e0,isAxiosError:r0,spread:n0,toFormData:i0,AxiosHeaders:o0,HttpStatusCode:s0,formToJSON:a0,getAdapter:u0,mergeConfig:c0}=G,Od={form:"application/x-www-form-urlencoded",json:"application/json",data:"multipart/form-data"},Ad=["put","post","patch"],yi="Local-Request-Id",$d=100,Dd=300;let jd=class{constructor(e={}){ut(this,"axios"),ut(this,"settings"),ut(this,"records",{}),ut(this,"isLoading",!1),ut(this,"stopSkipWarn"),ut(this,"showLoading"),ut(this,"showError"),this.settings=Object.assign({type:"form"},e.settings||{});const t=cr(e,["settings","query"]);this.axios=G.create(se({headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:2*60*1e3},t)),this.setupSkipWarn(this.settings),this.showLoading=wo(this.openLoading.bind(this),$d),this.showError=Xf(this._showError.bind(this),Dd,{leading:!0,trailing:!1})}setConfig(e={}){this.settings=se(this.settings,e.settings||{});const t=cr(e,["settings","query"]);this.axios.defaults=se(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=V(V({"Content-Type":Od[t.type||"form"]},r.headers),n);return t.skipWarn&&(i[yi]=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:o,skipWarn:s}=e,{name:a="skipWarn"}=s||{};let{data:c,params:u={},method:l="get"}=t;const f=n?{[a]:!0}:{};return Ad.includes(l.toLowerCase())?(c=Object.assign(c||{},f),c=o!=="json"||!this.isJsonType(r)?this.toFormData(c,o):c,u=V({},i)):o==="form"?u=V(V(V({},c||{}),i),f):(c&&(o!=="json"||!this.isJsonType(r))&&(c=this.toFormData(c,o)),u=V(V({},i),f)),{data:c,params:u}}createUrl(e){let{url:t,params:r}=e;if(t){let n=Io(t)?new URL(t).origin:"";const i=n?t.replace(n,""):t;try{const o=Ph(i,{encode:encodeURIComponent});return n+o(r||{})}catch(o){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 o=(i=t.response)==null?void 0:i.data,s=(o==null?void 0:o.message)||(o==null?void 0:o.msg)||(t==null?void 0:t.message)||(t==null?void 0:t.msg)||"未知错误";n(s,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=se({},this.settings,e.settings||{}),n=e.query||{},i=cr(e,["settings","query"]),o=jh(!1),s=G.CancelToken.source();this.records[o]={settings:r,config:i,source:s};const a=this.createUrl(i),c=this.createHeaders(o,r,i),{data:u,params:l}=this.createSendData(r,i,c,t,n);return this.showLoading(r),new Promise((f,p)=>{this.axios(Q(V({cancelToken:s.token},i),{url:a,headers:c,data:u,params:l})).then(h=>{var d;return this.isSkipWarnResponse(h)?f(h.promise):this.validResponse(r,h)?f(r.originResponse?h:(d=h.data)==null?void 0:d.data):(this.showError(r,h.data),p(h.data))}).catch(h=>(this.showError(r,h),p(h))).finally(()=>{delete this.records[o],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(o=>{const s=(o.config.headers||{})[yi],a=this.records[s];if(!a)return o;const{data:c}=o;if(!c||typeof c!="object")return o;if((c==null?void 0:c.code)===t){n&&n(o);const u=new Promise(r).then(()=>this.send(Q(V({},a.config),{settings:a.settings}),!0));u.catch(l=>l).finally(()=>{i&&i()}),o.promise=u}return o})}};function Xr(e={}){const t=new jd(e),r=t.send.bind(t),n=t.cancel.bind(t),i=t.setConfig.bind(t),o=t.useRequest.bind(t),s=t.useResponse.bind(t);return Object.assign(r,Q(V({},t),{instance:t,send:r,cancel:n,setConfig:i,useRequest:o,useResponse:s}))}const Ir=Xr({settings:{injectHeaders:!0,loading:!0,originResponse:!0}}),Fr=typeof window<"u";function Bd(e){const t={};return e?(e.forEach((r,n)=>{t[n]=typeof r=="string"?decodeURIComponent(r):r}),t):{}}class hs{constructor(t={}){ut(this,"options",{type:"cache",expired:0,prefix:"__VTJ_"}),ut(this,"caches",{}),ut(this,"types"),this.types={local:Fr?window.localStorage:this.caches,session:Fr?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:o,prefix:s}=V(V({},this.options),n),a=Date.now(),c=s+t,u=this.types[i]||this.caches,l={value:r,timestamp:a,expired:o};u===this.caches?u[c]=l:u.setItem(c,JSON.stringify(l))}get(t,r={}){const{type:n,prefix:i}=V(V({},this.options),r),o=i+t,s=this.types[n]||this.caches;let a;if(s===this.caches)a=s[o];else{const f=s.getItem(o);f&&(a=JSON.parse(f))}if(!a)return null;const{value:c,timestamp:u,expired:l}=a;return l>0&&u+l<Date.now()?(this.remove(t,r),null):c}remove(t,r={}){const{type:n,prefix:i}=V(V({},this.options),r),o=this.types[n]||this.caches,s=i+t;o===this.caches?delete o[s]:o.removeItem(s)}clear(t={}){const{type:r}=V(V({},this.options),t),n=this.types[r]||this.caches;n===this.caches?this.caches={}:n.clear()}}new hs;function ps(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ce={exports:{}},Cd=Ce.exports,vi;function Nd(){return vi||(vi=1,function(e,t){(function(r,n){n(t,e)})(Cd,function(r,n){var i={timeout:5e3,jsonpCallback:"callback"};function o(){return"jsonp_"+Date.now()+"_"+Math.ceil(Math.random()*1e5)}function s(u){try{delete window[u]}catch(l){window[u]=void 0}}function a(u){var l=document.getElementById(u);l&&document.getElementsByTagName("head")[0].removeChild(l)}function c(u){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],f=u,p=l.timeout||i.timeout,h=l.jsonpCallback||i.jsonpCallback,d=void 0;return new Promise(function(m,b){var E=l.jsonpCallbackFunction||o(),y=h+"_"+E;window[E]=function(w){m({ok:!0,json:function(){return Promise.resolve(w)}}),d&&clearTimeout(d),a(y),s(E)},f+=f.indexOf("?")===-1?"?":"&";var v=document.createElement("script");v.setAttribute("src",""+f+h+"="+E),l.charset&&v.setAttribute("charset",l.charset),l.nonce&&v.setAttribute("nonce",l.nonce),l.referrerPolicy&&v.setAttribute("referrerPolicy",l.referrerPolicy),l.crossorigin&&v.setAttribute("crossorigin","true"),v.id=y,document.getElementsByTagName("head")[0].appendChild(v),d=setTimeout(function(){b(new Error("JSONP request to "+u+" timed out")),s(E),a(y),window[E]=function(){s(E)}},p),v.onerror=function(){b(new Error("JSONP request to "+u+" failed")),s(E),a(y),d&&clearTimeout(d)}})}n.exports=c})}(Ce,Ce.exports)),Ce.exports}var Id=Nd();const Fd=ps(Id);function Pd(e){if(Fr){const{protocol:t,host:r,pathname:n}=location;return`${t}//${r}${e?n:""}`}else return null}function Md(e=""){const t=e.match(No);return t?t[0]:""}function ds(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 Pr(e,t,r){const n={};e=(e||location.search).replace(/^[^]*\?/,""),t=t||"&",r=r||"=";let i;const o=new RegExp("(?:^|\\"+t+")([^\\"+r+"\\"+t+"]+)(?:\\"+r+"([^\\"+t+"]*))?","g");for(;(i=o.exec(e))!==null;)i[1]!==e&&(n[decodeURIComponent(i[1])]=decodeURIComponent(i[2]||""));return n}function ms(e,t){t=typeof t=="string"?Pr(t):t;const r=e.split("?")[0],n=Pr(e),i=Object.assign({},n,t),o=ds(i);return o?[r,o].join("?"):e}const Ne=Object.freeze(Object.defineProperty({__proto__:null,append:ms,getCurrentHost:Pd,getHost:Md,parse:Pr,stringify:ds},Symbol.toStringTag,{value:"Module"}));function gs(r){return U(this,arguments,function*(e,t={}){const{query:n={}}=t;e.includes("${")&&(e=Zf(e)(n||{}));const i=ms(e,n);return yield(yield Fd(i,t)).json()})}var pr,bi;function kd(){if(bi)return pr;bi=1,pr=function(n,i,o){var s=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");typeof i=="function"&&(o=i,i={}),i=i||{},o=o||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 c="onload"in a?t:r;c(a,o),a.onload||t(a,o),s.appendChild(a)};function e(n,i){for(var o in i)n.setAttribute(o,i[o])}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 pr}var Ud=kd();const Ld=ps(Ud);function wi(e,t={}){return new Promise((r,n)=>{const{library:i}=t;Ld(e,t,(o,s)=>{o?n(o):r(i?window[i]:void 0)})})}const _i={debug:-1,log:0,info:0,warn:1,error:2},Vd=function(e,t,r,n){return function(...i){if(t&&_i[t]<=_i[e]&&console[e].apply&&(n==="*"||r.startsWith(n)))return console[e].apply(console,Hd(i,r))}};function Hd(e,t){return t!=="*"&&(typeof e[0]=="string"?e[0]=`[${t}] ${e[0]}`:e=["["+t+"]"].concat(e)),e}function qd(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 zd={level:"warn",bizName:"*"};class Wd{constructor(t){ut(this,"config"),ut(this,"options"),this.options=V(V({},zd),t);const r=typeof location<"u"?location:{},n=(/__(?:logConf|logLevel)__=([^#/&]*)/.exec(r.href)||[])[1];this.config=qd(n,t)}_log(t){const{targetLevel:r,targetBizName:n}=this.config,{bizName:i}=this.options;return Vd(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 Jd(e){return new Wd(e)}const Kt=Jd({level:"log",bizName:"VTJ"});/*! js-cookie v3.0.5 | MIT */function Oe(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 Yd={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 Mr(e,t){function r(i,o,s){if(!(typeof document>"u")){s=Oe({},t,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var c in s)s[c]&&(a+="; "+c,s[c]!==!0&&(a+="="+s[c].split(";")[0]));return document.cookie=i+"="+e.write(o,i)+a}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],s={},a=0;a<o.length;a++){var c=o[a].split("="),u=c.slice(1).join("=");try{var l=decodeURIComponent(c[0]);if(s[l]=e.read(u,l),i===l)break}catch(f){}}return i?s[i]:s}}return Object.create({set:r,get:n,remove:function(i,o){r(i,"",Oe({},o,{expires:-1}))},withAttributes:function(i){return Mr(this.converter,Oe({},this.attributes,i))},withConverter:function(i){return Mr(Oe({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}Mr(Yd,{path:"/"});var nt=(e=>(e.Runtime="Runtime",e.Design="Design",e.Raw="Raw",e.VNode="VNode",e))(nt||{});const Ei=["$el","$emit","$nextTick","$parent","$root","$attrs","$slots","$watch","$props","$options","$forceUpdate"],Kd=["vIf","vShow","vModel","vFor","vBind","vHtml"],Zd={String,Number,Boolean,Array,Object,Function,Date},dr="VtjPage",mr="VtjHomepage",Gd="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(","),Xd="component,slot".split(",");function Ae(e,t){return e.map(r=>Io(r)||r.startsWith("/")?r:`${t}${r}`)}function Qr(e){return/\.css$/.test(e)}function tn(e){return/\.js$/.test(e)}function Qd(e){return/\.json$/.test(e)}function tm(e,t=!1){return t&&e.endsWith(".prod.js")?e.replace(".prod.js",".js"):e}function em(e,t,r=!1){const n=e.filter(p=>!!p.enabled),i=[],o=[],s=[],a=[],c={},u={},l=[],f={};return n.forEach(({urls:p,assetsUrl:h,library:d,assetsLibrary:m,localeLibrary:b})=>{p==null||p.forEach(E=>{tn(E)&&i.push(tm(E,r)),Qr(E)&&o.push(E)}),d&&(a.push(d),c[d]=Ae(p||[],t),b&&(u[d]=b)),h&&s.push(h),m&&l.push(m),d&&m&&(f[m]=d)}),{scripts:Ae(i,t),css:Ae(o,t),materials:Ae(s,t),libraryExports:a,materialExports:Nh(l),materialMapLibrary:f,libraryMap:c,libraryLocaleMap:u}}function rm(e,t){var o;const{name:r,parent:n,alias:i}=e;return n?(o=t[n])==null?void 0:o[i||r]:t[i||r]}function ys(e){return Mt(e)?e:JSON.stringify(e)}function en(e,t,r){const n=e.CSSStyleSheet;if(n.prototype.replaceSync){const i=new n;i.id=t,i.replaceSync(r);const o=e.document,s=o.adoptedStyleSheets,a=Array.from(s).filter(c=>c.id!==t);o.adoptedStyleSheets=[...a,i]}else{const i=e.document;let o=i.getElementById(t);o?o.innerHTML=r:(o=i.createElement("style"),o.id=t,o.innerHTML=r,i.head.appendChild(o))}}function nm(e,t){return U(this,null,function*(){const r=yield window.fetch(t).then(n=>n.text()).catch(()=>"");r&&en(window,e,r)})}function im(e,t=window){const r=t.document,n=t.document.head;for(const i of e)if(!r.getElementById(i)){const o=r.createElement("link");o.rel="stylesheet",o.id=i,o.href=i,n.appendChild(o)}}function om(n,i){return U(this,arguments,function*(e,t,r=window){const o=r.document,s=r.document.head;let a=r[t];return a?a.default||a:new Promise((c,u)=>{for(const l of e){const f=o.createElement("script");f.src=l,f.onload=()=>{a=r[t],a?c(a.default||a):u(null)},f.onerror=p=>{u(p)},s.appendChild(f)}})})}function sm(e){return le(e)||le(e==null?void 0:e.install)}function am(e){return Xd.includes(e)}function um(e){return Gd.includes(e)}function de(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 me(e,t,r=!1,n=!1){var i;try{const o=['"use strict";',"var __self = arguments[0];"];o.push("return ");let s=(e.value||"").trim();s=s.replace(/this(\W|$)/g,(c,u)=>`__self${u}`),s=o.join(`
62
- `)+s;const a=`with(${r?"{}":"$scope || {}"}) { ${s} }`;return new Function("$scope",a)(t)}catch(o){if(Kt.error("parseExpression.error",o,e,(i=t==null?void 0:t.__self)!=null?i:t),n)throw o}}function Me(e,t,r=!1,n=!1){var o;const i=me(e,t,r,n);if(typeof i!="function"&&(Kt.error("parseFunction.error","not a function",e,(o=t==null?void 0:t.__self)!=null?o:t),n))throw new Error(`"${e.value}" not a function`);return i}function ht(e){return e&&e.type==="JSExpression"}function Ge(e){return typeof e=="object"&&e&&e.type==="JSFunction"}function cm(e={}){const{notify:t,loading:r,settings:n={},Startup:i}=e;let o=null;return{request:Xr({settings:V({type:"form",validSuccess:!0,originResponse:!1,loading:!0,validate:s=>{var a,c;return((a=s.data)==null?void 0:a.code)===0||!!((c=s.data)!=null&&c.success)},failMessage:!0,showError:s=>{t&&t(s||"未知错误")},showLoading:()=>{o&&o.close(),r&&(o=r())},hideLoading:()=>{o&&(o.close(),o=null)}},n)}),jsonp:gs,notify:t,loading:r,startupComponent:i}}function lm(e,t){const{jsonp:r,request:n}=t;if(e.method==="jsonp")return(i={})=>r(e.url,Q(V({},e.jsonpOptions),{query:i}));{const i=e.headers?me(e.headers,{},!0):void 0,o={url:e.url,method:e.method,settings:Q(V({},e.settings),{headers:i})};return(s,a)=>(delete o.data,n.send(se(o,a||{},{data:s})))}}function fm(e,t){const{metaQuery:r}=t;if(!r)return;const{code:n,queryCode:i}=e;return(o,s)=>{if(!r){console.warn("adapter.metaQuery is not defined!");return}return r(n,i,o,s)}}function hm(e=[],t=[],r){const n={};for(const i of e)n[i.id]=lm(i,r);for(const i of t)n[i.id]=fm(i,r);return n}function pm(){return U(this,arguments,function*(e=[],t=window){const r=de(t);r&&(vs(t),e.forEach(n=>mm(r,n)))})}function dm(e,t=window){const r=Ge(e.mockTemplate)&&e.mockTemplate.value?Me(e.mockTemplate,{},!0):void 0,n=de(t);return(...i)=>U(this,null,function*(){let o={};if(r)try{o=yield r.apply(r,i)}catch(s){Kt.warn("模拟数据模版异常",s)}return n==null?void 0:n.mock(o)})}function mm(e,t){if(!t.mock)return;const{url:r,mockTemplate:n}=t;if(r&&n){const i=Yr(`${r}(.*)`),o=kh(r,{decode:decodeURIComponent}),s=me(n,{},!0);e.mock(i,a=>{var f;const c=Ne.parse(a.url)||{},u=a.body instanceof FormData?Bd(a.body):a.body,l=(f=o(a.url))==null?void 0:f.params;return Object.assign(a,{data:u,params:c,query:l}),e.mock(s(a))})}}function vs(e=window){const t=de(e);t&&(t._mocked={})}class gm{constructor(t){z(this,"__id",null);z(this,"__mode");z(this,"__instance",null);z(this,"__contextRefs",{});z(this,"__refs",{});z(this,"context",{});z(this,"state",{});z(this,"props",{});z(this,"$props",{});z(this,"$refs",{});z(this,"$el",null);z(this,"$emit",null);z(this,"$nextTick",null);z(this,"$parent",null);z(this,"$root",null);z(this,"$attrs",null);z(this,"$slots",null);z(this,"$watch",null);z(this,"$options",null);z(this,"$forceUpdate",null);z(this,"$components",{});z(this,"$libs",{});z(this,"$apis",{});z(this,"__transform",{});const{mode:r,dsl:n,attrs:i}=t;this.__mode=r,n&&(this.__id=n.id||null,this.__transform=n.transform||{}),i&&Object.assign(this,i)}setup(t,r=Ue){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&&Ei.forEach(t=>{var r;this[t]=(r=this.__instance)==null?void 0:r[t]})}__cleanup(){Ei.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===nt.Runtime){const{id:n,type:i}=t,o=n&&(r=this.__transform[n])!=null?r:t.value;return Me({type:i,value:o},this)}else return Me(t,this)}__parseExpression(t){var r;if(t)if(this.__mode===nt.Runtime){const{id:n,type:i}=t,o=n&&(r=this.__transform[n])!=null?r:t.value;return me({type:i,value:o},this)}else return me(t,this)}__ref(t=null,r){if(this.__mode!==nt.VNode)return t&&t!==this.__id&&(this.__contextRefs[t]=this),n=>U(this,null,function*(){var o,s;yield Bh(0);let i=(n==null?void 0:n.$vtjEl)||(n==null?void 0:n.$el)||((s=(o=n==null?void 0:n._)==null?void 0:o.vnode)==null?void 0:s.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,nt.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 o=new Set([].concat(i,n));return Array.from(o)}else return n}__clone(t={}){const r=V(V({},this.context),t),n=Q(V({},r),{context:r});return n.context.__proto__=this.context,n.__proto__=this,n}}function kr(e){var f,p;const{Vue:t=Ue,mode:r=nt.Runtime,components:n={},libs:i={},apis:o={},loader:s}=e,a=t.computed(()=>e.dsl),c={$components:n,$libs:i,$apis:o},u=new gm({mode:r,dsl:a.value,attrs:c}),l=t.defineComponent(V({name:a.value.name,props:V({},vm((f=a.value.props)!=null?f:[],u)),setup(h){var v,w,S,g;u.$props=h,u.props=h,a.value.id&&en(e.window||window,a.value.id,a.value.css||""),u.state=bm(t,(v=a.value.state)!=null?v:{},u);const d=wm(t,(w=a.value.computed)!=null?w:{},u),m=_m((S=a.value.methods)!=null?S:{},u),b=Em(t,a.value.inject,u),E=Sm(a.value.dataSources||{},u),y=V(V(V(V({},b),d),m),E);return u.setup(y,t),xm(t,(g=a.value.watch)!=null?g:[],u),{vtj:u}},emits:ym(a.value.emits),expose:["vtj"],render(){if(!a.value.nodes)return null;const h=a.value.nodes||[];return h.length===1?ke(h[0],u,t,s):h.map(d=>ke(d,u,t,s))}},Tm((p=a.value.lifeCycles)!=null?p:{},u)));return{renderer:t.markRaw(l),context:u}}function ym(e=[]){return e.map(t=>Mt(t)?t:t.name)}function vm(e=[],t){const r=n=>n?(Array.isArray(n)?n:[n]).map(i=>Zd[i]):void 0;return e.map(n=>Mt(n)?{name:n}:{name:n.name,type:n.type,required:n.required,default:ht(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 bm(e,t,r){return e.reactive(Object.keys(t||{}).reduce((n,i)=>{let o=t[i];return ht(o)?o=r.__parseExpression(o):Ge(o)&&(o=r.__parseFunction(o)),n[i]=o,n},{}))}function wm(e,t,r){return Object.entries(t!=null?t:{}).reduce((n,[i,o])=>(n[i]=e.computed(r.__parseFunction(o)),n),{})}function _m(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}function Em(e,t=[],r){return t.reduce((n,i)=>{var u;const{name:o,from:s}=i||{};i.default;const a=ht(s)?r.__parseExpression(s)||o:s!=null?s:o,c=ht(i.default)?r.__parseExpression(i.default):(u=i.default)!=null?u:null;return n[o]=e.inject(a,c),n},{})}function Sm(e,t){return Object.keys(e).reduce((r,n)=>{const i=e[n];if(i.type==="mock")r[n]=dm(i);else if(i.ref){const o=t.$apis[i.ref],s=Ge(i.transform)?i.transform.value?t.__parseFunction(i.transform):void 0:i.transform;r[n]=(...a)=>U(this,null,function*(){const c=yield o.apply(t,a);return s?s(c):c})}return r},{})}function xm(e,t=[],r){t.forEach(n=>{e.watch(r.__parseExpression(n.source),r.__parseFunction(n.handler),{deep:n.deep,immediate:n.immediate})})}function Tm(e,t){return Object.entries(e!=null?e:{}).reduce((r,[n,i])=>(r[n]=t.__parseFunction(i),r),{})}let gr=[],qt={};const Rm=e=>e;function bs(r){return U(this,arguments,function*(e,t=window){const{urls:n=[],library:i}=e,o=n.filter(a=>tn(a));if(o.length===0||!i)return null;const s=n.filter(a=>Qr(a));return s.length&&im(s,t),yield om(o,i,t).catch(a=>(console.warn("loadScriptUrl error",o,i,a),null))})}function Ur(e){const{getDsl:t,getDslByUrl:r,options:n}=e;return n.window&&(gr.forEach(i=>{delete n.window[i]}),gr=[]),(i,o,s=Ue)=>{if(!o||typeof o=="string")return i;if(o.type==="Schema"&&o.id){let a=qt[o.id];return a||(a=qt[o.id]=s.defineAsyncComponent(()=>U(this,null,function*(){const c=yield t(o.id);return c&&(c.name=i),c?kr(Q(V({},n),{Vue:s,dsl:c,mode:nt.Runtime,loader:Ur(e)})).renderer:null})),a)}if(o.type==="UrlSchema"&&o.url){let a=qt[o.url];return a||(a=qt[o.url]=s.defineAsyncComponent(()=>U(this,null,function*(){const c=yield r(o.url);return c&&(c.name=i),c?kr(Q(V({},n),{Vue:s,dsl:c,mode:nt.Runtime,loader:Ur(e)})).renderer:null})),a)}if(o.type==="Plugin"){let a=o.library?qt[o.library]:null;return a||(o.library&&gr.push(o.library),a=qt[o.library||Symbol()]=s.defineAsyncComponent(()=>U(this,null,function*(){return(yield bs(o,n.window))||(console.warn("getPlugin result is null",o),null)})),a)}return i}}function ke(e,t,r=Ue,n=Rm){var m;if(!e||!e.name||e.invisible)return null;const i=(m=r.getCurrentInstance())==null?void 0:m.appContext,{id:o=null,directives:s=[]}=e,{vIf:a,vFor:c,vShow:u,vModels:l,vBind:f,vHtml:p,others:h}=Am(s);if(a&&!$m(a,t))return null;const d=b=>{var O,M,_,T;const E=b.$components,y=(()=>{var j,F,D,C;if(e.name==="component")return Dm(b,(j=e.props)==null?void 0:j.is);if(e.name==="slot")return e.name;const P=n(e.name,e.from,r);return Mt(P)?am(P)||um(P)?P:(C=(D=E[P])!=null?D:(F=i==null?void 0:i.app)==null?void 0:F.component(P))!=null?C:P:P})(),v=jm(o,(O=e.props)!=null?O:{},b),w=Bm(r,(M=e.events)!=null?M:{},b);if(e.name==="slot")return Cm(r,e,v,b,n);f&&Object.assign(v,b.__parseExpression(f.value)),u&&(v.style=Object.assign((_=v.style)!=null?_:{},Im(u,b))),p&&Object.assign(v,Fm(p,b)),l.forEach(P=>{Object.assign(v,Pm(r,P,b))});const S=Mm(r,(T=e.children)!=null?T:[],b,n,e);let g=r.createVNode(y,V(V({},v),w),S);const x=i?Om(i,h,b):[];return x.length&&(g=r.withDirectives(g,x)),g};return c?Lm(c,d,t):d(t)}function Om(e,t,r){const n=e.app;return t.map(i=>{const o=typeof i.name=="string"?n.directive(i.name):r.__parseExpression(i.name);if(!o)return null;const s=[o];return i.value&&s.push(r.__parseExpression(i.value)),i.arg&&s.push(i.arg),i.modifiers&&s.push(i.modifiers),s}).filter(i=>!!i)}function Am(e=[]){const t=e.find(c=>Dt(c.name)==="vIf"),r=e.find(c=>Dt(c.name)==="vFor"),n=e.find(c=>Dt(c.name)==="vShow"),i=e.find(c=>Dt(c.name)==="vBind"),o=e.find(c=>Dt(c.name)==="vHtml"),s=e.filter(c=>Dt(c.name)==="vModel"),a=e.filter(c=>!Kd.includes(Dt(c.name)));return{vIf:t,vFor:r,vShow:n,vModels:s,vBind:i,others:a,vHtml:o}}function $m(e,t){return!!t.__parseExpression(e.value)}function Dm(e,t){return t?ht(t)?e.__parseExpression(t):t:"div"}function jm(e,t,r){const n=Lr(t,r);return n.ref=r.__ref(e,n.ref),n}function Lr(e,t){return ht(e)?t.__parseExpression(e):Ge(e)?t.__parseFunction(e):Array.isArray(e)?e.map(r=>Lr(r,t)):typeof e=="object"?Object.keys(e||{}).reduce((r,n)=>{let i=e[n];return r[n]=Lr(i,t),r},{}):e}function Bm(e,t,r){const n=["passive","capture","once"],i={capture:"Capture",once:"Once",passive:"OnceCapture"};return Object.keys(t||{}).reduce((o,s)=>{const a=t[s],c=ws(a.modifiers),u=c.find(p=>n.includes(p)),l="on"+no(s)+(u&&i[u]||""),f=r.__parseFunction(a.handler);return f&&(o[l]=e.withModifiers(f,c)),o},{})}function ws(e={},t=!1){const r=Object.keys(e);return t?r.map(n=>"."+n):r}function Cm(e,t,r,n,i){var c;const{children:o}=t,s=Nm(t,n),a=(c=n.$slots)==null?void 0:c[s.name];return a?a(r):o?Mt(o)?e.createTextVNode(o):ht(o)?e.createTextVNode(ys(n.__parseExpression(o))):Array.isArray(o)?o.map(u=>ke(u,n,e,i)):null:null}function Nm(e,t){const{props:r}=e,n=(r==null?void 0:r.name)||"default";return{name:ht(n)?t.__parseExpression(n):n,params:[]}}function Im(e,t){return t.__parseExpression(e.value)?{}:{display:"none"}}function Fm(e,t){return{innerHTML:t.__parseExpression(e.value)||""}}function Pm(e,t,r){var a;const n={type:"JSFunction",value:(a=t.value)!=null&&a.value?`(v) => {
63
- ${t.value.value} = v;
64
- }`:"(v) => {}"},i=r.__parseFunction(n),o=ws(ht(t.modifiers)?r.__parseExpression(t.modifiers):t.modifiers),s=ht(t.arg)?r.__parseExpression(t.arg):t.arg||"modelValue";return{[s]:r.__parseExpression(t.value),[`onUpdate:${s}`]:o.length&&i?e.withModifiers(i,o):i}}function Mm(e,t,r,n,i){if(!t)return null;if(Mt(t))return{default:()=>t};if(ht(t))return{default:()=>ys(r.__parseExpression(t))};if(Array.isArray(t)&&t.length>0){const o=km(t),s=a=>!a||!i?{}:i!=null&&i.id&&Object.keys(a).length?{[`scope_${i.id}`]:a}:{};return Object.entries(o).reduce((a,[c,{nodes:u,params:l}])=>(a[c]=f=>{const p=l.length?Ih(f!=null?f:{},l):s(f);return u.map(h=>ke(h,r.__clone(p),e,n))},a),{})}return null}function km(e){const t={default:{params:[],nodes:[]}};for(const r of e){const n=Um(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 Um(e="default"){return Mt(e)?{name:e,params:[]}:V({params:[]},e)}function Lm(e,t,r){const{value:n,iterator:i}=e,{item:o="item",index:s="index"}=i||{};let a=r.__parseExpression(n)||[];return Number.isInteger(a)&&(a=new Array(a).fill(!0).map((c,u)=>u+1)),Array.isArray(a)?a.map((c,u)=>t(r.__clone({[o]:c,[s]:u}))):(console.warn("[vForRender]:",`${n==null?void 0:n.value} is not a Arrary`),[])}const Si=Ri({name:"VtjPageContainer",setup(){return U(this,null,function*(){const e=zm(),t=Cs(),r=t.params.id,n=r?e.getPage(r):e.getHomepage(),i=n?yield e.getRenderComponent(n.id):null,o=js(Symbol());if(n){Object.assign(t.meta,n.meta||{},{cache:n.cache});const{useTitle:s}=e==null?void 0:e.adapter;s&&s(n.title||"VTJ")}return{provider:e,component:i,file:n,query:t.query,meta:t.meta,sid:o,route:t}})},render(){const{component:e,query:t,sid:r}=this;return e?yr(e,Q(V({},t),{key:r})):yr("div","页面不存在")},activated(){this.meta.cache===!1&&(this.sid=Symbol())}}),Vm=Ri({name:"VtjStartupContainer",render(){return yr("div","page not found!")}}),_s=Symbol("Provider");class Hm extends Yh{constructor(r){super();z(this,"mode");z(this,"globals",{});z(this,"modules",{});z(this,"adapter",{request:Ir,jsonp:gs});z(this,"apis",{});z(this,"dependencies",{});z(this,"materials",{});z(this,"library",{});z(this,"service");z(this,"project",null);z(this,"components",{});z(this,"nodeEnv","development");z(this,"router",null);z(this,"materialPath","./");z(this,"urlDslCaches",{});this.options=r;const{service:n,mode:i=nt.Raw,dependencies:o,materials:s,project:a={},adapter:c={},globals:u={},modules:l={},router:f=null,materialPath:p="./",nodeEnv:h="development"}=r;this.mode=i,this.modules=l,this.service=n,this.router=f,this.materialPath=p,this.nodeEnv=h,o&&(this.dependencies=o),s&&(this.materials=s),Object.assign(this.globals,u),Object.assign(this.adapter,c);const{access:d,request:m}=this.adapter;d&&d.connect({mode:i,router:f,request:m}),a&&i!==nt.Design?this.load(a):this.project=a}createMock(r){return(...n)=>U(this,null,function*(){var o;let i={};if(r)try{i=yield r.apply(r,n)}catch(s){Kt.warn("模拟数据模版异常",s)}return(o=de())==null?void 0:o.mock(i)})}load(r){return U(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:o=[]}=this.project,s=window;s&&(s.CKEDITOR_VERSION=void 0),this.mode===nt.Raw?yield this.loadDependencies(s):yield this.loadAssets(s),this.initMock(s),this.apis=hm(i,o,this.adapter),vs(s),pm(i,s),r.platform!=="uniapp"&&this.initRouter(),this.triggerReady()})}initMock(r){const n=de(r);n&&n.setup({timeout:"50-500"})}loadDependencies(r){return U(this,null,function*(){const n=Object.entries(this.dependencies);for(const[i,o]of n)r[i]||(r[i]=this.library[i]=yield o())})}loadAssets(r){return U(this,null,function*(){const{dependencies:n=[]}=this.project,{dependencies:i,library:o,components:s,materialPath:a,nodeEnv:c}=this,{libraryExports:u,libraryMap:l,materials:f,materialExports:p,materialMapLibrary:h}=em(n,a,c==="development");for(const d of u){const m=i[d],b=r[d];if(b)o[d]=b;else if(m)r[d]=o[d]=yield m();else{const E=l[d]||[];for(const y of E)Qr(y)&&(yield nm(d,Ne.append(y,{v:er}))),tn(y)&&(yield wi(Ne.append(y,{v:er})));o[d]=r[d]}}if(c==="development"){for(const m of f)yield wi(Ne.append(m,{v:er}));const d=this.materials||{};for(const m of p){const b=r[h[m]],E=Jh[m];if(E)b&&E.forEach(y=>{s[y]=b[y]});else{const y=d[m]?(yield d[m]()).default:r[m];y&&b&&(y.components||[]).forEach(v=>{s[v.name]=rm(v,b)})}}}})}initRouter(){const{router:r,project:n,options:i,adapter:o}=this;if(!r)return;const s=(n==null?void 0:n.platform)==="uniapp"?"pages":"page",{routeAppendTo:a,pageRouteName:c=s,routeMeta:u}=i,l=a?"":"/",f={path:`${l}${c}/:id`,name:dr,component:Si},p={path:l,name:mr,component:n!=null&&n.homepage?Si:o.startupComponent||Vm,meta:u};r.hasRoute(dr)&&r.removeRoute(dr),r.hasRoute(mr)&&r.removeRoute(mr),a?(r.addRoute(a,f),r.addRoute(a,p)):(r.addRoute(f),r.addRoute(p))}install(r){const n=r.config.globalProperties.installed||{};for(const[i,o]of Object.entries(this.library))!n[i]&&sm(o)&&(r.use(o),n[i]=!0);this.options.install&&r.use(this.options.install),this.adapter.access&&r.use(this.adapter.access),r.provide(_s,this),r.config.globalProperties.$provider=this,r.config.globalProperties.installed=n,this.mode===nt.Design&&(r.config.errorHandler=(i,o,s)=>{const a=o==null?void 0:o.$options.name,c=typeof i=="string"?i:(i==null?void 0:i.message)||(i==null?void 0:i.msg)||"未知错误",u=`[ ${a} ] ${c} ${s}`;console.error("[VTJ Error]:",{err:i,instance:o,info:s},i==null?void 0:i.stack),this.adapter.notify&&this.adapter.notify(u,"组件渲染错误","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=(o,s=[])=>{for(const a of s){if(a.id===o)return a;if(a.children&&a.children.length){const c=i(o,a.children);if(c)return c}}};return i(r,n)||null}getHomepage(){const{homepage:r}=this.project||{};return r?this.getPage(r):null}getDsl(r){return U(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 U(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:o,mode:s,apis:a}=this,c=V({mode:s,Vue:i.Vue,components:o,libs:i,apis:a,window},n),u=Ur({getDsl:l=>U(this,null,function*(){return(yield this.getDsl(l))||null}),getDslByUrl:l=>U(this,null,function*(){return(yield this.getDslByUrl(l))||null}),options:c});return kr(Q(V({},c),{dsl:r,loader:u}))}getRenderComponent(r,n){return U(this,null,function*(){var c;const i=this.getFile(r);if(!i)return Kt.warn(`Can not find file: ${r}`),null;n&&n(i);const o=`.vtj/vue/${r}.vue`,s=this.modules[o]||this.modules[`/src/pages/${r}.vue`];if(s)return(c=yield s())==null?void 0:c.default;const a=yield this.getDsl(i.id);return a?this.createDslRenderer(a).renderer:(Kt.warn(`Can not find dsl: ${r}`),null)})}defineUrlSchemaComponent(r,n){return on(()=>U(this,null,function*(){const i=yield this.getDslByUrl(r);return i?(i.name=n||i.name,this.createDslRenderer(i).renderer):null}))}definePluginComponent(r){return on(()=>U(this,null,function*(){return yield bs(r,window)}))}}function qm(e){const t=new Hm(e);return{provider:t,onReady:r=>t.ready(r)}}function zm(e={}){const t=Bs(_s,null);if(!t)throw new Error("Can not find provider");if(t.nodeEnv==="development"){const{id:r,version:n}=e;r&&n&&U(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 Es={type:"json",validSuccess:!0,originResponse:!1,failMessage:!0,validate:e=>{var t;return((t=e.data)==null?void 0:t.code)===0}},Wm=(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:Es}),Jm=(e,t="/__vtj__/api/uploader.json")=>(r,n)=>U(void 0,null,function*(){return yield e.send({url:t,method:"post",data:{files:r,projectId:n},settings:Q(V({},Es),{type:"data"})}).then(i=>i&&i[0]?i[0]:null).catch(()=>null)});function Ym(e){return Xr({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 Km{constructor(t=Ir){z(this,"api");z(this,"pluginCaches",{});z(this,"uploader");this.api=Wm(t),this.uploader=Jm(t)}getExtension(){return U(this,null,function*(){console.log("BaseService.getExtension")})}init(t){return U(this,null,function*(){return console.log("BaseService.init",t),{}})}saveProject(t,r){return U(this,null,function*(){return!!(yield this.api("saveProject",t,{type:r}).catch(()=>!1))})}saveMaterials(t,r){return U(this,null,function*(){return console.log("BaseService.saveMaterials",t,r),!1})}saveFile(t){return U(this,null,function*(){return console.log("BaseService.saveFile",t),!1})}getFile(t){return U(this,null,function*(){return console.log("BaseService.getFile",t),{}})}removeFile(t){return U(this,null,function*(){return console.log("BaseService.removeFile",t),!1})}saveHistory(t){return U(this,null,function*(){return console.log("BaseService.saveHistory",t),!1})}removeHistory(t){return U(this,null,function*(){return console.log("BaseService.removeHistory",t),!1})}getHistory(t){return U(this,null,function*(){return console.log("BaseService.getHistory",t),{}})}getHistoryItem(t,r){return U(this,null,function*(){return console.log("BaseService.getHistoryItem",t,r),{}})}saveHistoryItem(t,r){return U(this,null,function*(){return console.log("BaseService.saveHistoryItem",t,r),!1})}removeHistoryItem(t,r){return U(this,null,function*(){return console.log("BaseService.removeHistoryItem",t,r),!1})}publish(t){return U(this,null,function*(){return!!(yield this.api("publish",t).catch(()=>!1))})}publishFile(t,r){return U(this,null,function*(){return!!(yield this.api("publishFile",{project:t,file:r}).catch(()=>!1))})}genVueContent(t,r){return U(this,null,function*(){return yield this.api("genVueContent",{project:t,dsl:r}).catch(()=>"")})}createRawPage(t){return U(this,null,function*(){return yield this.api("createRawPage",t).catch(()=>"")})}removeRawPage(t){return U(this,null,function*(){return yield this.api("removeRawPage",t).catch(()=>"")})}uploadStaticFile(t,r){return U(this,null,function*(){return yield this.uploader(t,r).catch(()=>null)})}getStaticFiles(t){return U(this,null,function*(){return yield this.api("getStaticFiles",t).catch(()=>[])})}removeStaticFile(t,r){return U(this,null,function*(){return yield this.api("removeStaticFile",{name:t,projectId:r}).catch(()=>"")})}clearStaticFiles(t){return U(this,null,function*(){return yield this.api("clearStaticFiles",t).catch(()=>"")})}getPluginMaterial(t){return U(this,null,function*(){const{urls:r=[]}=t,n=r.filter(o=>Qd(o))[0];return n?this.pluginCaches[n]||(this.pluginCaches[n]=Ir.send({url:n,method:"get",settings:{validSuccess:!1,originResponse:!0}}).then(o=>o.data).catch(()=>null)):null})}genSource(t){return U(this,null,function*(){return console.log("BaseService.genSource",t),""})}}new hs({type:"local",expired:0,prefix:"__VTJ_"});class Zm extends Km{constructor(){super(...arguments);z(this,"getFileCaches",{})}getExtension(){return U(this,null,function*(){return yield this.api("getExtension",{}).catch(()=>{})})}init(r){return U(this,null,function*(){return(yield this.api("init",r).catch(()=>null))||{}})}saveProject(r,n){return U(this,null,function*(){return!!(yield this.api("saveProject",r,{type:n}).catch(()=>!1))})}saveMaterials(r,n){return U(this,null,function*(){return!!(yield this.api("saveMaterials",{project:r,materials:Ch(n)}).catch(()=>!1))})}saveFile(r){return U(this,null,function*(){return!!(yield this.api("saveFile",r).catch(()=>!1))})}getFile(r){return U(this,null,function*(){return this.getFileCaches[r]||(this.getFileCaches[r]=this.api("getFile",r).catch(()=>null)).finally(()=>{delete this.getFileCaches[r]})})}removeFile(r){return U(this,null,function*(){return!!(yield this.api("removeFile",r).catch(()=>!1))})}saveHistory(r){return U(this,null,function*(){return!!(yield this.api("saveHistory",r).catch(()=>!1))})}removeHistory(r){return U(this,null,function*(){return!!(yield this.api("removeHistory",r).catch(()=>!1))})}getHistory(r){return U(this,null,function*(){return(yield this.api("getHistory",r).catch(()=>null))||{}})}getHistoryItem(r,n){return U(this,null,function*(){return(yield this.api("getHistoryItem",{fId:r,id:n}).catch(()=>null))||{}})}saveHistoryItem(r,n){return U(this,null,function*(){return!!(yield this.api("saveHistoryItem",{fId:r,item:n}).catch(()=>!1))})}removeHistoryItem(r,n){return U(this,null,function*(){return!!(yield this.api("removeHistoryItem",{fId:r,ids:n}).catch(()=>!1))})}}/**!
65
- * Copyright (c) 2025, VTJ.PRO All rights reserved.
66
- * @name @vtj/uni
67
- * @author CHC chenhuachun1549@dingtalk.com
68
- * @version 0.10.12
69
- * @license <a href="https://vtj.pro/license.html">MIT License</a>
70
- */const Gm=["onLaunch","onShow","onHide","onError","onPageNotFound","onUnhandledRejection","onThemeChange","onPageNotFound","onUniNViewMessage","onExit"],xi="/pages",Xm="VTJ",Qm="__UNI__1FC118B",tg="VTJ移动跨端项目",eg="1.0.0",rg="100",ng=!1,ig={},og={enable:!1},sg="3",ag={name:Xm,appid:Qm,description:tg,versionName:eg,versionCode:rg,transformPx:ng,"app-plus":{usingComponents:!0,nvueStyleCompiler:"uni-app",compilerVersion:3,splashscreen:{alwaysShowBeforeRender:!0,waiting:!0,autoclose:!0,delay:0},modules:{},distribute:{android:{permissions:['<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>','<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>','<uses-permission android:name="android.permission.VIBRATE"/>','<uses-permission android:name="android.permission.READ_LOGS"/>','<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>','<uses-feature android:name="android.hardware.camera.autofocus"/>','<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>','<uses-permission android:name="android.permission.CAMERA"/>','<uses-permission android:name="android.permission.GET_ACCOUNTS"/>','<uses-permission android:name="android.permission.READ_PHONE_STATE"/>','<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>','<uses-permission android:name="android.permission.WAKE_LOCK"/>','<uses-permission android:name="android.permission.FLASHLIGHT"/>','<uses-feature android:name="android.hardware.camera"/>','<uses-permission android:name="android.permission.WRITE_SETTINGS"/>']},ios:{},sdkConfigs:{},icons:{android:{hdpi:"src/static/logo.png",xhdpi:"src/static/logo.png",xxhdpi:"src/static/logo.png",xxxhdpi:"src/static/logo.png"}}}},quickapp:ig,"mp-weixin":{appid:"",setting:{urlCheck:!1},usingComponents:!0},"mp-alipay":{usingComponents:!0},"mp-baidu":{usingComponents:!0},"mp-toutiao":{usingComponents:!0},uniStatistics:og,vueVersion:sg},ug=[],cg={navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},lg={autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"}},fg={pages:ug,globalStyle:cg,easycom:lg};function hg(e){let{manifestJson:t={},pagesJson:r={},routes:n=[]}=e;const i=n.map(o=>{const{path:s,style:a,needLogin:c}=o;return{path:s,style:a,needLogin:c}});return Q(V({},e),{manifestJson:Object.assign({},ag,t),pagesJson:Object.assign({},fg,r,{pages:i})})}const Vr={navigationBarBackgroundColor:"backgroundColor",navigationBarTextStyle:"titleColor",navigationBarTitleText:"titleText",navigationStyle:"style",titleImage:"titleImage",titlePenetrate:"titlePenetrate",transparentTitle:"transparentTitle"};function Ss(e){const t={},r={black:"#000000",white:"#ffffff"};for(const n in e)Vr[n]&&(t[Vr[n]]=n==="navigationBarTextStyle"?r[e[n]]||r.black:e[n]);return t}function pg(e){const t={};for(const r in e)Vr[r]||(t[r]=e[r]);return t}function dg(e){var t,r;return((r=(t=e.h5)==null?void 0:t.router)==null?void 0:r.mode)||"hash"}function mg(e){var t,r,n;return{topWindow:!!((t=e.topWindow)!=null&&t.path),leftWindow:!!((r=e.leftWindow)!=null&&r.path),rightWindow:!!((n=e.rightWindow)!=null&&n.path)}}function gg(e){const{pagesJson:t={}}=e,{globalStyle:r,pages:n=[]}=t;return!!(r!=null&&r.enablePullDownRefresh||n.find(i=>{var o;return!!((o=i.style)!=null&&o.enablePullDownRefresh)}))}function yg(e){const{pagesJson:t={}}=e,{globalStyle:r,pages:n=[]}=t;let i=!1;return(r==null?void 0:r.navigationStyle)==="custom"?(i=!0,n.find(o=>{var s;return((s=o.style)==null?void 0:s.navigationStyle)==="default"})&&(i=!1)):n.every(o=>{var s;return((s=o.style)==null?void 0:s.navigationStyle)==="custom"})&&(i=!0),i}function vg(e){var a;const t=yg(e),r={navigationBar:!1,navigationBarButtons:!1,navigationBarSearchInput:!1,navigationBarTransparent:!1},{pagesJson:n={}}=e,{globalStyle:i,pages:o=[]}=n;if(t)return r;r.navigationBar=!0;const s=(a=i==null?void 0:i.h5)==null?void 0:a.titleNView;return o.find(c=>{var u,l,f;return!!((f=(l=(u=c.style)==null?void 0:u.h5)==null?void 0:l.titleNView)!=null&&f.buttons.length)})&&(r.navigationBarButtons=!0),(s!=null&&s.searchInput||o.find(c=>{var u,l,f;return!!((f=(l=(u=c.style)==null?void 0:u.h5)==null?void 0:l.titleNView)!=null&&f.searchInput)}))&&(r.navigationBarSearchInput=!0),((s==null?void 0:s.type)==="transparent"||o.find(c=>{var u,l,f;return((f=(l=(u=c.style)==null?void 0:u.h5)==null?void 0:l.titleNView)==null?void 0:f.type)==="transparent"}))&&(r.navigationBarTransparent=!0),r}function bg(e,t=window){var p,h,d,m;const{pagesJson:r={},manifestJson:n={}}=e,{topWindow:i,leftWindow:o,rightWindow:s}=mg(r),{navigationBar:a,navigationBarButtons:c,navigationBarSearchInput:u,navigationBarTransparent:l}=vg(e),f={__VUE_OPTIONS_API__:!0,__VUE_PROD_DEVTOOLS__:!1,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__:!1,__UNI_FEATURE_WX__:!1,__UNI_FEATURE_WXS__:!1,__UNI_FEATURE_RPX__:!1,__UNI_FEATURE_PROMISE__:!1,__UNI_FEATURE_LONGPRESS__:!1,__UNI_FEATURE_I18N_EN__:!1,__UNI_FEATURE_I18N_ES__:!1,__UNI_FEATURE_I18N_FR__:!1,__UNI_FEATURE_I18N_ZH_HANS__:!0,__UNI_FEATURE_I18N_ZH_HANT__:!1,__UNI_FEATURE_UNI_CLOUD__:!1,__UNI_FEATURE_I18N_LOCALE__:!1,__UNI_FEATURE_NVUE__:!1,__UNI_FEATURE_ROUTER_MODE__:dg(n),__UNI_FEATURE_PAGES__:!!((p=r.pages)!=null&&p.length),__UNI_FEATURE_TABBAR__:!!((d=(h=r.tabBar)==null?void 0:h.list)!=null&&d.length),__UNI_FEATURE_TABBAR_MIDBUTTON__:!!((m=r.tabBar)!=null&&m.midButton),__UNI_FEATURE_TOPWINDOW__:i,__UNI_FEATURE_LEFTWINDOW__:o,__UNI_FEATURE_RIGHTWINDOW__:s,__UNI_FEATURE_RESPONSIVE__:!1,__UNI_FEATURE_NAVIGATIONBAR__:a,__UNI_FEATURE_PULL_DOWN_REFRESH__:gg(e),__UNI_FEATURE_NAVIGATIONBAR_BUTTONS__:c,__UNI_FEATURE_NAVIGATIONBAR_SEARCHINPUT__:u,__UNI_FEATURE_NAVIGATIONBAR_TRANSPARENT__:l};Object.entries(f).forEach(([b,E])=>{t[b]=E})}const wg="4.53";function _g(e,t=window){var f,p;const{pagesJson:r={},manifestJson:n={}}=e,{easycom:i={}}=r,{appid:o="",name:s="",versionCode:a="",versionName:c=""}=n,u=r.globalStyle,l=((f=n.h5)==null?void 0:f.router)||{};t.__uniConfig={easycom:i,globalStyle:Q(V({},pg(u)),{navigationBar:Ss(u),isNVue:!1}),compilerVersion:wg,appId:o,appName:s,appVersion:c,appVersionCode:String(a),async:V({loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0},((p=n.h5)==null?void 0:p.async)||{}),debug:!1,networkTimeout:V({request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},n.networkTimeout||{}),sdkConfigs:{},nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:{},router:V({mode:"hash",base:"/",assets:"assets",routerBase:l.base||"/"},l),darkmode:!1,themeConfig:{},tabBar:r.tabBar?V({position:"bottom",color:"#7A7E83",selectedColor:"#3cc51f",borderStyle:"black",blurEffect:"none",fontSize:"10px",iconWidth:"24px",spacing:"3px",height:"50px",backgroundColor:"#ffffff",selectedIndex:0,shown:!0},r.tabBar):void 0}}function Eg(e,t=window){const{UniServiceJSBridge:r,UniViewJSBridge:n,getApp:i,uni:o,getCurrentPages:s,upx2px:a,setupPage:c}=e;t.UniServiceJSBridge=r,t.UniViewJSBridge=n,t.getApp=i,t.uni=o,t.wx=o,t.getCurrentPages=s,t.upx2px=a,t.__setupPage=u=>c(u)}function Sg(e,t,r){const{openBlock:n,createBlock:i,withCtx:o,createVNode:s}=e,{PageComponent:a,setupPage:c,getApp:u}=t;return{mpType:"page",setup(){return U(this,null,function*(){var m,b;const f=((b=(m=u())==null?void 0:m.$route)==null?void 0:b.query)||{},{loader:p,component:h}=r,d=p?yield p(r):h||{};return()=>(n(),i(a,null,{page:o(()=>[s(c(d),Object.assign({},f,{ref:"page"}),null,512)]),_:1}))})}}}function xg(e,t,r){var h;const{path:n,style:i={},meta:o={},home:s,id:a}=t,c=((h=e.tabBar)==null?void 0:h.list)||[],u=c.findIndex(d=>{var m;return d.pagePath===n||((m=d.pagePath)==null?void 0:m.endsWith(a))}),l=c[u],f=!!l,p=r===0;return V({isTabBar:f,tabBarIndex:u,isQuit:s!=null?s:p,isEntry:s!=null?s:p,navigationBar:V({type:"default"},Ss(i)),isNVue:!1,route:l?l.pagePath:n},o)}function Tg(e,t,r,n,i=window){const o=r.map((s,a)=>{const c=xg(n,s,a),u=Sg(e,t,s),{path:l}=s;return{path:l,alias:l,meta:c,component:{render(){return e.h(e.Suspense,[e.h(u)])}}}});i.__uniRoutes=o,i.__uniLayout={}}function Rg(e,t,r=window){en(r,String(e),t)}function Og(e,t){t&&["View","ScrollView","Swiper","MovableArea","MovableView","CoverView","CoverImage","Icon","Text","RichText","Progress","Button","CheckboxGroup","Checkbox","Editor","Form","Input","Label","Picker","PickerView","RadioGroup","Radio","Slider","Switch","Textarea","Navigator","Image","Video","Map","Canvas","WebView","PickerViewColumn","ResizeSensor","SwiperItem"].forEach(r=>{const n=t[r];e.component(r,n)})}function Ag(e){const t=hg(e),{Vue:r,App:n,UniH5:i,routes:o=[],pagesJson:s={},manifestJson:a={},window:c,css:u=""}=t;if(!i)return r.createApp(n);const{plugin:l,setupApp:f}=i;bg(t,c),_g(t,c),Eg(i,c),Tg(r,i,o,s,c),Rg(a.appid||Date.now(),u,c);const p=r.createApp(f(n));return p.use(Og,i),p.use(l),p}function $g(e,t){const r={};return Object.entries(e).forEach(([n,i])=>{Gm.includes(n)&&i&&(r[n]=t(i))}),r}function Ti(e,t){return()=>U(this,null,function*(){const r=yield e.getDsl(t);if(r){const{renderer:n}=e.createDslRenderer(r);return n}return null})}function Dg(n){return U(this,arguments,function*(e,t=!1,r=xi){var a,c,u;const i=((a=e.project)==null?void 0:a.pages)||[],o=[];for(const l of i){const f=((c=e.project)==null?void 0:c.homepage)===l.id;o.push({id:l.id,path:`${r}/${l.id}`,loader:Ti(e,l.id),style:V({navigationBarTitleText:l.title},l.style),needLogin:l.needLogin,home:f})}const s=o.find(l=>!!l.home)||o[0];if(s){const l=r===xi?"/":r;o.unshift(Q(V({},s),{path:l}))}if(t){const l=((u=e.project)==null?void 0:u.blocks)||[];for(const f of l)o.push({id:f.id,path:`${r}/${f.id}`,loader:Ti(e,f.id),style:{navigationStyle:"custom"}})}return o})}function jg(){var e;if((e=window.uni)!=null&&e.showLoading)return window.uni.showLoading({title:"加载中...",mask:!0}),{close:()=>{var t;(t=window.uni)!=null&&t.hideLoading&&window.uni.hideLoading()}}}function xs(e,t="",r="warning"){var n;(n=window.uni)!=null&&n.showModal&&window.uni.showModal({title:t,content:e,showCancel:!1})}function Bg(e=nt.Runtime){return e===nt.Runtime?Object.assign({}):Object.assign({})}const Cg=cm({loading:jg,notify:xs}),Ng=new Zm(Ym(xs)),Ig=Bg(),{provider:Fg,onReady:Pg}=qm({nodeEnv:"production",mode:nt.Runtime,modules:Ig,materialPath:"../",adapter:Cg,service:Ng,dependencies:{Vue:()=>an(()=>import("./@dcloudio-uni-h5-vue-BAS6KGFt.js").then(e=>e.x),__vite__mapDeps([0,1,2]),import.meta.url),VueRouter:()=>an(()=>import("./vue-router-Dw1LzioT.js"),__vite__mapDeps([3,0,1,2]),import.meta.url)}}),Mg=e=>U(void 0,null,function*(){const{Vue:t,UniH5:r}=window,n=e.project;if(!n)return;const i=n.uniConfig||{},o=$g(i,f=>Me(f,window,!1,!0)),{manifestJson:s,pagesJson:a,css:c}=i,u=yield Dg(e,!0),l=Ag({Vue:t,App:o,UniH5:r,routes:u,css:c,manifestJson:s,pagesJson:a});l.use(e),l.mount(document.body)});Pg(()=>Mg(Fg));