mstate-cli 0.4.4 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
|
-
"use strict";var e=require("fs"),n=require("path"),a=require("os"),i=require("node:process"),t=require("node:buffer"),o=require("node:path"),r=require("node:url"),s=require("node:child_process"),c=require("node:fs/promises"),p=require("node:os"),l=require("node:fs"),u=require("node:util"),d=require("tty"),f=require("util"),m=require("net"),v=require("events"),h=require("stream"),x=require("zlib"),g=require("buffer"),b=require("string_decoder"),y=require("querystring"),w=require("url"),k=require("http"),j=require("crypto"),_=require("process"),S="undefined"!=typeof document?document.currentScript:null;function E(e){var n=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var i=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,i.get?i:{enumerable:!0,get:function(){return e[a]}})}})),n.default=e,Object.freeze(n)}var A=E(e),C="0.4.4";const O=n.join(a.homedir(),".mstate"),T=n.join(O,".mstate_credentials"),B="THIS_IS_MOBIOFFICE",P="https://api.mstate.mobioffice.io/api";var z="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function I(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var q={exports:{}};function R(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 D,N={exports:{}};N.exports;function F(){return D||(D=1,N.exports=function(){var e=e||function(e,n){var a;if("undefined"!=typeof window&&window.crypto&&(a=window.crypto),"undefined"!=typeof self&&self.crypto&&(a=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(a=globalThis.crypto),!a&&"undefined"!=typeof window&&window.msCrypto&&(a=window.msCrypto),!a&&void 0!==z&&z.crypto&&(a=z.crypto),!a)try{a=require("crypto")}catch(e){}var i=function(){if(a){if("function"==typeof a.getRandomValues)try{return a.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof a.randomBytes)try{return a.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},t=Object.create||function(){function e(){}return function(n){var a;return e.prototype=n,a=new e,e.prototype=null,a}}(),o={},r=o.lib={},s=r.Base={extend:function(e){var n=t(this);return e&&n.mixIn(e),n.hasOwnProperty("init")&&this.init!==n.init||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=r.WordArray=s.extend({init:function(e,a){e=this.words=e||[],this.sigBytes=a!=n?a:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var n=this.words,a=e.words,i=this.sigBytes,t=e.sigBytes;if(this.clamp(),i%4)for(var o=0;o<t;o++){var r=a[o>>>2]>>>24-o%4*8&255;n[i+o>>>2]|=r<<24-(i+o)%4*8}else for(var s=0;s<t;s+=4)n[i+s>>>2]=a[s>>>2];return this.sigBytes+=t,this},clamp:function(){var n=this.words,a=this.sigBytes;n[a>>>2]&=4294967295<<32-a%4*8,n.length=e.ceil(a/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var n=[],a=0;a<e;a+=4)n.push(i());return new c.init(n,e)}}),p=o.enc={},l=p.Hex={stringify:function(e){for(var n=e.words,a=e.sigBytes,i=[],t=0;t<a;t++){var o=n[t>>>2]>>>24-t%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join("")},parse:function(e){for(var n=e.length,a=[],i=0;i<n;i+=2)a[i>>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new c.init(a,n/2)}},u=p.Latin1={stringify:function(e){for(var n=e.words,a=e.sigBytes,i=[],t=0;t<a;t++){var o=n[t>>>2]>>>24-t%4*8&255;i.push(String.fromCharCode(o))}return i.join("")},parse:function(e){for(var n=e.length,a=[],i=0;i<n;i++)a[i>>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new c.init(a,n)}},d=p.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},f=r.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(n){var a,i=this._data,t=i.words,o=i.sigBytes,r=this.blockSize,s=o/(4*r),p=(s=n?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*r,l=e.min(4*p,o);if(p){for(var u=0;u<p;u+=r)this._doProcessBlock(t,u);a=t.splice(0,p),i.sigBytes-=l}return new c.init(a,l)},clone:function(){var e=s.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});r.Hasher=f.extend({cfg:s.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(n,a){return new e.init(a).finalize(n)}},_createHmacHelper:function(e){return function(n,a){return new m.HMAC.init(e,a).finalize(n)}}});var m=o.algo={};return o}(Math);return e}()),N.exports}var L,U={exports:{}};U.exports;function M(){return L||(L=1,U.exports=function(e){return i=(a=e).lib,t=i.Base,o=i.WordArray,(r=a.x64={}).Word=t.extend({init:function(e,n){this.high=e,this.low=n}}),r.WordArray=t.extend({init:function(e,a){e=this.words=e||[],this.sigBytes=a!=n?a:8*e.length},toX32:function(){for(var e=this.words,n=e.length,a=[],i=0;i<n;i++){var t=e[i];a.push(t.high),a.push(t.low)}return o.create(a,this.sigBytes)},clone:function(){for(var e=t.clone.call(this),n=e.words=this.words.slice(0),a=n.length,i=0;i<a;i++)n[i]=n[i].clone();return e}}),e;var n,a,i,t,o,r}(F())),U.exports}var H,$={exports:{}};$.exports;function W(){return H||(H=1,$.exports=function(e){return function(){if("function"==typeof ArrayBuffer){var n=e.lib.WordArray,a=n.init,i=n.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var n=e.byteLength,i=[],t=0;t<n;t++)i[t>>>2]|=e[t]<<24-t%4*8;a.call(this,i,n)}else a.apply(this,arguments)};i.prototype=n}}(),e.lib.WordArray}(F())),$.exports}var G,K={exports:{}};K.exports;function V(){return G||(G=1,K.exports=function(e){return function(){var n=e,a=n.lib.WordArray,i=n.enc;function t(e){return e<<8&4278255360|e>>>8&16711935}i.Utf16=i.Utf16BE={stringify:function(e){for(var n=e.words,a=e.sigBytes,i=[],t=0;t<a;t+=2){var o=n[t>>>2]>>>16-t%4*8&65535;i.push(String.fromCharCode(o))}return i.join("")},parse:function(e){for(var n=e.length,i=[],t=0;t<n;t++)i[t>>>1]|=e.charCodeAt(t)<<16-t%2*16;return a.create(i,2*n)}},i.Utf16LE={stringify:function(e){for(var n=e.words,a=e.sigBytes,i=[],o=0;o<a;o+=2){var r=t(n[o>>>2]>>>16-o%4*8&65535);i.push(String.fromCharCode(r))}return i.join("")},parse:function(e){for(var n=e.length,i=[],o=0;o<n;o++)i[o>>>1]|=t(e.charCodeAt(o)<<16-o%2*16);return a.create(i,2*n)}}}(),e.enc.Utf16}(F())),K.exports}var J,Z={exports:{}};Z.exports;function X(){return J||(J=1,Z.exports=function(e){return function(){var n=e,a=n.lib.WordArray;function i(e,n,i){for(var t=[],o=0,r=0;r<n;r++)if(r%4){var s=i[e.charCodeAt(r-1)]<<r%4*2|i[e.charCodeAt(r)]>>>6-r%4*2;t[o>>>2]|=s<<24-o%4*8,o++}return a.create(t,o)}n.enc.Base64={stringify:function(e){var n=e.words,a=e.sigBytes,i=this._map;e.clamp();for(var t=[],o=0;o<a;o+=3)for(var r=(n[o>>>2]>>>24-o%4*8&255)<<16|(n[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|n[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<a;s++)t.push(i.charAt(r>>>6*(3-s)&63));var c=i.charAt(64);if(c)for(;t.length%4;)t.push(c);return t.join("")},parse:function(e){var n=e.length,a=this._map,t=this._reverseMap;if(!t){t=this._reverseMap=[];for(var o=0;o<a.length;o++)t[a.charCodeAt(o)]=o}var r=a.charAt(64);if(r){var s=e.indexOf(r);-1!==s&&(n=s)}return i(e,n,t)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64}(F())),Z.exports}var Y,Q={exports:{}};Q.exports;function ee(){return Y||(Y=1,Q.exports=function(e){return function(){var n=e,a=n.lib.WordArray;function i(e,n,i){for(var t=[],o=0,r=0;r<n;r++)if(r%4){var s=i[e.charCodeAt(r-1)]<<r%4*2|i[e.charCodeAt(r)]>>>6-r%4*2;t[o>>>2]|=s<<24-o%4*8,o++}return a.create(t,o)}n.enc.Base64url={stringify:function(e,n){void 0===n&&(n=!0);var a=e.words,i=e.sigBytes,t=n?this._safe_map:this._map;e.clamp();for(var o=[],r=0;r<i;r+=3)for(var s=(a[r>>>2]>>>24-r%4*8&255)<<16|(a[r+1>>>2]>>>24-(r+1)%4*8&255)<<8|a[r+2>>>2]>>>24-(r+2)%4*8&255,c=0;c<4&&r+.75*c<i;c++)o.push(t.charAt(s>>>6*(3-c)&63));var p=t.charAt(64);if(p)for(;o.length%4;)o.push(p);return o.join("")},parse:function(e,n){void 0===n&&(n=!0);var a=e.length,t=n?this._safe_map:this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var r=0;r<t.length;r++)o[t.charCodeAt(r)]=r}var s=t.charAt(64);if(s){var c=e.indexOf(s);-1!==c&&(a=c)}return i(e,a,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),e.enc.Base64url}(F())),Q.exports}var ne,ae={exports:{}};ae.exports;function ie(){return ne||(ne=1,ae.exports=function(e){return function(n){var a=e,i=a.lib,t=i.WordArray,o=i.Hasher,r=a.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*n.abs(n.sin(e+1))|0}();var c=r.MD5=o.extend({_doReset:function(){this._hash=new t.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,n){for(var a=0;a<16;a++){var i=n+a,t=e[i];e[i]=16711935&(t<<8|t>>>24)|4278255360&(t<<24|t>>>8)}var o=this._hash.words,r=e[n+0],c=e[n+1],f=e[n+2],m=e[n+3],v=e[n+4],h=e[n+5],x=e[n+6],g=e[n+7],b=e[n+8],y=e[n+9],w=e[n+10],k=e[n+11],j=e[n+12],_=e[n+13],S=e[n+14],E=e[n+15],A=o[0],C=o[1],O=o[2],T=o[3];A=p(A,C,O,T,r,7,s[0]),T=p(T,A,C,O,c,12,s[1]),O=p(O,T,A,C,f,17,s[2]),C=p(C,O,T,A,m,22,s[3]),A=p(A,C,O,T,v,7,s[4]),T=p(T,A,C,O,h,12,s[5]),O=p(O,T,A,C,x,17,s[6]),C=p(C,O,T,A,g,22,s[7]),A=p(A,C,O,T,b,7,s[8]),T=p(T,A,C,O,y,12,s[9]),O=p(O,T,A,C,w,17,s[10]),C=p(C,O,T,A,k,22,s[11]),A=p(A,C,O,T,j,7,s[12]),T=p(T,A,C,O,_,12,s[13]),O=p(O,T,A,C,S,17,s[14]),A=l(A,C=p(C,O,T,A,E,22,s[15]),O,T,c,5,s[16]),T=l(T,A,C,O,x,9,s[17]),O=l(O,T,A,C,k,14,s[18]),C=l(C,O,T,A,r,20,s[19]),A=l(A,C,O,T,h,5,s[20]),T=l(T,A,C,O,w,9,s[21]),O=l(O,T,A,C,E,14,s[22]),C=l(C,O,T,A,v,20,s[23]),A=l(A,C,O,T,y,5,s[24]),T=l(T,A,C,O,S,9,s[25]),O=l(O,T,A,C,m,14,s[26]),C=l(C,O,T,A,b,20,s[27]),A=l(A,C,O,T,_,5,s[28]),T=l(T,A,C,O,f,9,s[29]),O=l(O,T,A,C,g,14,s[30]),A=u(A,C=l(C,O,T,A,j,20,s[31]),O,T,h,4,s[32]),T=u(T,A,C,O,b,11,s[33]),O=u(O,T,A,C,k,16,s[34]),C=u(C,O,T,A,S,23,s[35]),A=u(A,C,O,T,c,4,s[36]),T=u(T,A,C,O,v,11,s[37]),O=u(O,T,A,C,g,16,s[38]),C=u(C,O,T,A,w,23,s[39]),A=u(A,C,O,T,_,4,s[40]),T=u(T,A,C,O,r,11,s[41]),O=u(O,T,A,C,m,16,s[42]),C=u(C,O,T,A,x,23,s[43]),A=u(A,C,O,T,y,4,s[44]),T=u(T,A,C,O,j,11,s[45]),O=u(O,T,A,C,E,16,s[46]),A=d(A,C=u(C,O,T,A,f,23,s[47]),O,T,r,6,s[48]),T=d(T,A,C,O,g,10,s[49]),O=d(O,T,A,C,S,15,s[50]),C=d(C,O,T,A,h,21,s[51]),A=d(A,C,O,T,j,6,s[52]),T=d(T,A,C,O,m,10,s[53]),O=d(O,T,A,C,w,15,s[54]),C=d(C,O,T,A,c,21,s[55]),A=d(A,C,O,T,b,6,s[56]),T=d(T,A,C,O,E,10,s[57]),O=d(O,T,A,C,x,15,s[58]),C=d(C,O,T,A,_,21,s[59]),A=d(A,C,O,T,v,6,s[60]),T=d(T,A,C,O,k,10,s[61]),O=d(O,T,A,C,f,15,s[62]),C=d(C,O,T,A,y,21,s[63]),o[0]=o[0]+A|0,o[1]=o[1]+C|0,o[2]=o[2]+O|0,o[3]=o[3]+T|0},_doFinalize:function(){var e=this._data,a=e.words,i=8*this._nDataBytes,t=8*e.sigBytes;a[t>>>5]|=128<<24-t%32;var o=n.floor(i/4294967296),r=i;a[15+(t+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),a[14+(t+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(a.length+1),this._process();for(var s=this._hash,c=s.words,p=0;p<4;p++){var l=c[p];c[p]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,n,a,i,t,o,r){var s=e+(n&a|~n&i)+t+r;return(s<<o|s>>>32-o)+n}function l(e,n,a,i,t,o,r){var s=e+(n&i|a&~i)+t+r;return(s<<o|s>>>32-o)+n}function u(e,n,a,i,t,o,r){var s=e+(n^a^i)+t+r;return(s<<o|s>>>32-o)+n}function d(e,n,a,i,t,o,r){var s=e+(a^(n|~i))+t+r;return(s<<o|s>>>32-o)+n}a.MD5=o._createHelper(c),a.HmacMD5=o._createHmacHelper(c)}(Math),e.MD5}(F())),ae.exports}var te,oe={exports:{}};oe.exports;function re(){return te||(te=1,oe.exports=function(e){return a=(n=e).lib,i=a.WordArray,t=a.Hasher,o=n.algo,r=[],s=o.SHA1=t.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,n){for(var a=this._hash.words,i=a[0],t=a[1],o=a[2],s=a[3],c=a[4],p=0;p<80;p++){if(p<16)r[p]=0|e[n+p];else{var l=r[p-3]^r[p-8]^r[p-14]^r[p-16];r[p]=l<<1|l>>>31}var u=(i<<5|i>>>27)+c+r[p];u+=p<20?1518500249+(t&o|~t&s):p<40?1859775393+(t^o^s):p<60?(t&o|t&s|o&s)-1894007588:(t^o^s)-899497514,c=s,s=o,o=t<<30|t>>>2,t=i,i=u}a[0]=a[0]+i|0,a[1]=a[1]+t|0,a[2]=a[2]+o|0,a[3]=a[3]+s|0,a[4]=a[4]+c|0},_doFinalize:function(){var e=this._data,n=e.words,a=8*this._nDataBytes,i=8*e.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=Math.floor(a/4294967296),n[15+(i+64>>>9<<4)]=a,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e}}),n.SHA1=t._createHelper(s),n.HmacSHA1=t._createHmacHelper(s),e.SHA1;var n,a,i,t,o,r,s}(F())),oe.exports}var se,ce={exports:{}};ce.exports;function pe(){return se||(se=1,ce.exports=function(e){return function(n){var a=e,i=a.lib,t=i.WordArray,o=i.Hasher,r=a.algo,s=[],c=[];!function(){function e(e){for(var a=n.sqrt(e),i=2;i<=a;i++)if(!(e%i))return!1;return!0}function a(e){return 4294967296*(e-(0|e))|0}for(var i=2,t=0;t<64;)e(i)&&(t<8&&(s[t]=a(n.pow(i,.5))),c[t]=a(n.pow(i,1/3)),t++),i++}();var p=[],l=r.SHA256=o.extend({_doReset:function(){this._hash=new t.init(s.slice(0))},_doProcessBlock:function(e,n){for(var a=this._hash.words,i=a[0],t=a[1],o=a[2],r=a[3],s=a[4],l=a[5],u=a[6],d=a[7],f=0;f<64;f++){if(f<16)p[f]=0|e[n+f];else{var m=p[f-15],v=(m<<25|m>>>7)^(m<<14|m>>>18)^m>>>3,h=p[f-2],x=(h<<15|h>>>17)^(h<<13|h>>>19)^h>>>10;p[f]=v+p[f-7]+x+p[f-16]}var g=i&t^i&o^t&o,b=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),y=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&l^~s&u)+c[f]+p[f];d=u,u=l,l=s,s=r+y|0,r=o,o=t,t=i,i=y+(b+g)|0}a[0]=a[0]+i|0,a[1]=a[1]+t|0,a[2]=a[2]+o|0,a[3]=a[3]+r|0,a[4]=a[4]+s|0,a[5]=a[5]+l|0,a[6]=a[6]+u|0,a[7]=a[7]+d|0},_doFinalize:function(){var e=this._data,a=e.words,i=8*this._nDataBytes,t=8*e.sigBytes;return a[t>>>5]|=128<<24-t%32,a[14+(t+64>>>9<<4)]=n.floor(i/4294967296),a[15+(t+64>>>9<<4)]=i,e.sigBytes=4*a.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});a.SHA256=o._createHelper(l),a.HmacSHA256=o._createHmacHelper(l)}(Math),e.SHA256}(F())),ce.exports}var le,ue={exports:{}};ue.exports;var de,fe={exports:{}};fe.exports;function me(){return de||(de=1,fe.exports=function(e){return function(){var n=e,a=n.lib.Hasher,i=n.x64,t=i.Word,o=i.WordArray,r=n.algo;function s(){return t.create.apply(t,arguments)}var c=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],p=[];!function(){for(var e=0;e<80;e++)p[e]=s()}();var l=r.SHA512=a.extend({_doReset:function(){this._hash=new o.init([new t.init(1779033703,4089235720),new t.init(3144134277,2227873595),new t.init(1013904242,4271175723),new t.init(2773480762,1595750129),new t.init(1359893119,2917565137),new t.init(2600822924,725511199),new t.init(528734635,4215389547),new t.init(1541459225,327033209)])},_doProcessBlock:function(e,n){for(var a=this._hash.words,i=a[0],t=a[1],o=a[2],r=a[3],s=a[4],l=a[5],u=a[6],d=a[7],f=i.high,m=i.low,v=t.high,h=t.low,x=o.high,g=o.low,b=r.high,y=r.low,w=s.high,k=s.low,j=l.high,_=l.low,S=u.high,E=u.low,A=d.high,C=d.low,O=f,T=m,B=v,P=h,z=x,I=g,q=b,R=y,D=w,N=k,F=j,L=_,U=S,M=E,H=A,$=C,W=0;W<80;W++){var G,K,V=p[W];if(W<16)K=V.high=0|e[n+2*W],G=V.low=0|e[n+2*W+1];else{var J=p[W-15],Z=J.high,X=J.low,Y=(Z>>>1|X<<31)^(Z>>>8|X<<24)^Z>>>7,Q=(X>>>1|Z<<31)^(X>>>8|Z<<24)^(X>>>7|Z<<25),ee=p[W-2],ne=ee.high,ae=ee.low,ie=(ne>>>19|ae<<13)^(ne<<3|ae>>>29)^ne>>>6,te=(ae>>>19|ne<<13)^(ae<<3|ne>>>29)^(ae>>>6|ne<<26),oe=p[W-7],re=oe.high,se=oe.low,ce=p[W-16],pe=ce.high,le=ce.low;K=(K=(K=Y+re+((G=Q+se)>>>0<Q>>>0?1:0))+ie+((G+=te)>>>0<te>>>0?1:0))+pe+((G+=le)>>>0<le>>>0?1:0),V.high=K,V.low=G}var ue,de=D&F^~D&U,fe=N&L^~N&M,me=O&B^O&z^B&z,ve=T&P^T&I^P&I,he=(O>>>28|T<<4)^(O<<30|T>>>2)^(O<<25|T>>>7),xe=(T>>>28|O<<4)^(T<<30|O>>>2)^(T<<25|O>>>7),ge=(D>>>14|N<<18)^(D>>>18|N<<14)^(D<<23|N>>>9),be=(N>>>14|D<<18)^(N>>>18|D<<14)^(N<<23|D>>>9),ye=c[W],we=ye.high,ke=ye.low,je=H+ge+((ue=$+be)>>>0<$>>>0?1:0),_e=xe+ve;H=U,$=M,U=F,M=L,F=D,L=N,D=q+(je=(je=(je=je+de+((ue+=fe)>>>0<fe>>>0?1:0))+we+((ue+=ke)>>>0<ke>>>0?1:0))+K+((ue+=G)>>>0<G>>>0?1:0))+((N=R+ue|0)>>>0<R>>>0?1:0)|0,q=z,R=I,z=B,I=P,B=O,P=T,O=je+(he+me+(_e>>>0<xe>>>0?1:0))+((T=ue+_e|0)>>>0<ue>>>0?1:0)|0}m=i.low=m+T,i.high=f+O+(m>>>0<T>>>0?1:0),h=t.low=h+P,t.high=v+B+(h>>>0<P>>>0?1:0),g=o.low=g+I,o.high=x+z+(g>>>0<I>>>0?1:0),y=r.low=y+R,r.high=b+q+(y>>>0<R>>>0?1:0),k=s.low=k+N,s.high=w+D+(k>>>0<N>>>0?1:0),_=l.low=_+L,l.high=j+F+(_>>>0<L>>>0?1:0),E=u.low=E+M,u.high=S+U+(E>>>0<M>>>0?1:0),C=d.low=C+$,d.high=A+H+(C>>>0<$>>>0?1:0)},_doFinalize:function(){var e=this._data,n=e.words,a=8*this._nDataBytes,i=8*e.sigBytes;return n[i>>>5]|=128<<24-i%32,n[30+(i+128>>>10<<5)]=Math.floor(a/4294967296),n[31+(i+128>>>10<<5)]=a,e.sigBytes=4*n.length,this._process(),this._hash.toX32()},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});n.SHA512=a._createHelper(l),n.HmacSHA512=a._createHmacHelper(l)}(),e.SHA512}(F(),M())),fe.exports}var ve,he={exports:{}};he.exports;var xe,ge={exports:{}};ge.exports;function be(){return xe||(xe=1,ge.exports=function(e){return function(n){var a=e,i=a.lib,t=i.WordArray,o=i.Hasher,r=a.x64.Word,s=a.algo,c=[],p=[],l=[];!function(){for(var e=1,n=0,a=0;a<24;a++){c[e+5*n]=(a+1)*(a+2)/2%64;var i=(2*e+3*n)%5;e=n%5,n=i}for(e=0;e<5;e++)for(n=0;n<5;n++)p[e+5*n]=n+(2*e+3*n)%5*5;for(var t=1,o=0;o<24;o++){for(var s=0,u=0,d=0;d<7;d++){if(1&t){var f=(1<<d)-1;f<32?u^=1<<f:s^=1<<f-32}128&t?t=t<<1^113:t<<=1}l[o]=r.create(s,u)}}();var u=[];!function(){for(var e=0;e<25;e++)u[e]=r.create()}();var d=s.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],n=0;n<25;n++)e[n]=new r.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,n){for(var a=this._state,i=this.blockSize/2,t=0;t<i;t++){var o=e[n+2*t],r=e[n+2*t+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),(C=a[t]).high^=r,C.low^=o}for(var s=0;s<24;s++){for(var d=0;d<5;d++){for(var f=0,m=0,v=0;v<5;v++)f^=(C=a[d+5*v]).high,m^=C.low;var h=u[d];h.high=f,h.low=m}for(d=0;d<5;d++){var x=u[(d+4)%5],g=u[(d+1)%5],b=g.high,y=g.low;for(f=x.high^(b<<1|y>>>31),m=x.low^(y<<1|b>>>31),v=0;v<5;v++)(C=a[d+5*v]).high^=f,C.low^=m}for(var w=1;w<25;w++){var k=(C=a[w]).high,j=C.low,_=c[w];_<32?(f=k<<_|j>>>32-_,m=j<<_|k>>>32-_):(f=j<<_-32|k>>>64-_,m=k<<_-32|j>>>64-_);var S=u[p[w]];S.high=f,S.low=m}var E=u[0],A=a[0];for(E.high=A.high,E.low=A.low,d=0;d<5;d++)for(v=0;v<5;v++){var C=a[w=d+5*v],O=u[w],T=u[(d+1)%5+5*v],B=u[(d+2)%5+5*v];C.high=O.high^~T.high&B.high,C.low=O.low^~T.low&B.low}C=a[0];var P=l[s];C.high^=P.high,C.low^=P.low}},_doFinalize:function(){var e=this._data,a=e.words;this._nDataBytes;var i=8*e.sigBytes,o=32*this.blockSize;a[i>>>5]|=1<<24-i%32,a[(n.ceil((i+1)/o)*o>>>5)-1]|=128,e.sigBytes=4*a.length,this._process();for(var r=this._state,s=this.cfg.outputLength/8,c=s/8,p=[],l=0;l<c;l++){var u=r[l],d=u.high,f=u.low;d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),p.push(f),p.push(d)}return new t.init(p,s)},clone:function(){for(var e=o.clone.call(this),n=e._state=this._state.slice(0),a=0;a<25;a++)n[a]=n[a].clone();return e}});a.SHA3=o._createHelper(d),a.HmacSHA3=o._createHmacHelper(d)}(Math),e.SHA3}(F(),M())),ge.exports}var ye,we={exports:{}};we.exports;var ke,je={exports:{}};je.exports;function _e(){return ke||(ke=1,je.exports=function(e){var n,a,i;a=(n=e).lib.Base,i=n.enc.Utf8,n.algo.HMAC=a.extend({init:function(e,n){e=this._hasher=new e.init,"string"==typeof n&&(n=i.parse(n));var a=e.blockSize,t=4*a;n.sigBytes>t&&(n=e.finalize(n)),n.clamp();for(var o=this._oKey=n.clone(),r=this._iKey=n.clone(),s=o.words,c=r.words,p=0;p<a;p++)s[p]^=1549556828,c[p]^=909522486;o.sigBytes=r.sigBytes=t,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var n=this._hasher,a=n.finalize(e);return n.reset(),n.finalize(this._oKey.clone().concat(a))}})}(F())),je.exports}var Se,Ee={exports:{}};Ee.exports;var Ae,Ce={exports:{}};Ce.exports;function Oe(){return Ae||(Ae=1,Ce.exports=function(e){return a=(n=e).lib,i=a.Base,t=a.WordArray,o=n.algo,r=o.MD5,s=o.EvpKDF=i.extend({cfg:i.extend({keySize:4,hasher:r,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,n){for(var a,i=this.cfg,o=i.hasher.create(),r=t.create(),s=r.words,c=i.keySize,p=i.iterations;s.length<c;){a&&o.update(a),a=o.update(e).finalize(n),o.reset();for(var l=1;l<p;l++)a=o.finalize(a),o.reset();r.concat(a)}return r.sigBytes=4*c,r}}),n.EvpKDF=function(e,n,a){return s.create(a).compute(e,n)},e.EvpKDF;var n,a,i,t,o,r,s}(F(),re(),_e())),Ce.exports}var Te,Be={exports:{}};Be.exports;function Pe(){return Te||(Te=1,Be.exports=function(e){e.lib.Cipher||function(n){var a=e,i=a.lib,t=i.Base,o=i.WordArray,r=i.BufferedBlockAlgorithm,s=a.enc;s.Utf8;var c=s.Base64,p=a.algo.EvpKDF,l=i.Cipher=r.extend({cfg:t.extend(),createEncryptor:function(e,n){return this.create(this._ENC_XFORM_MODE,e,n)},createDecryptor:function(e,n){return this.create(this._DEC_XFORM_MODE,e,n)},init:function(e,n,a){this.cfg=this.cfg.extend(a),this._xformMode=e,this._key=n,this.reset()},reset:function(){r.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?b:x}return function(n){return{encrypt:function(a,i,t){return e(i).encrypt(n,a,i,t)},decrypt:function(a,i,t){return e(i).decrypt(n,a,i,t)}}}}()});i.StreamCipher=l.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var u=a.mode={},d=i.BlockCipherMode=t.extend({createEncryptor:function(e,n){return this.Encryptor.create(e,n)},createDecryptor:function(e,n){return this.Decryptor.create(e,n)},init:function(e,n){this._cipher=e,this._iv=n}}),f=u.CBC=function(){var e=d.extend();function a(e,a,i){var t,o=this._iv;o?(t=o,this._iv=n):t=this._prevBlock;for(var r=0;r<i;r++)e[a+r]^=t[r]}return e.Encryptor=e.extend({processBlock:function(e,n){var i=this._cipher,t=i.blockSize;a.call(this,e,n,t),i.encryptBlock(e,n),this._prevBlock=e.slice(n,n+t)}}),e.Decryptor=e.extend({processBlock:function(e,n){var i=this._cipher,t=i.blockSize,o=e.slice(n,n+t);i.decryptBlock(e,n),a.call(this,e,n,t),this._prevBlock=o}}),e}(),m=(a.pad={}).Pkcs7={pad:function(e,n){for(var a=4*n,i=a-e.sigBytes%a,t=i<<24|i<<16|i<<8|i,r=[],s=0;s<i;s+=4)r.push(t);var c=o.create(r,i);e.concat(c)},unpad:function(e){var n=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=n}};i.BlockCipher=l.extend({cfg:l.cfg.extend({mode:f,padding:m}),reset:function(){var e;l.reset.call(this);var n=this.cfg,a=n.iv,i=n.mode;this._xformMode==this._ENC_XFORM_MODE?e=i.createEncryptor:(e=i.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,a&&a.words):(this._mode=e.call(i,this,a&&a.words),this._mode.__creator=e)},_doProcessBlock:function(e,n){this._mode.processBlock(e,n)},_doFinalize:function(){var e,n=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(n.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),n.unpad(e)),e},blockSize:4});var v=i.CipherParams=t.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),h=(a.format={}).OpenSSL={stringify:function(e){var n=e.ciphertext,a=e.salt;return(a?o.create([1398893684,1701076831]).concat(a).concat(n):n).toString(c)},parse:function(e){var n,a=c.parse(e),i=a.words;return 1398893684==i[0]&&1701076831==i[1]&&(n=o.create(i.slice(2,4)),i.splice(0,4),a.sigBytes-=16),v.create({ciphertext:a,salt:n})}},x=i.SerializableCipher=t.extend({cfg:t.extend({format:h}),encrypt:function(e,n,a,i){i=this.cfg.extend(i);var t=e.createEncryptor(a,i),o=t.finalize(n),r=t.cfg;return v.create({ciphertext:o,key:a,iv:r.iv,algorithm:e,mode:r.mode,padding:r.padding,blockSize:e.blockSize,formatter:i.format})},decrypt:function(e,n,a,i){return i=this.cfg.extend(i),n=this._parse(n,i.format),e.createDecryptor(a,i).finalize(n.ciphertext)},_parse:function(e,n){return"string"==typeof e?n.parse(e,this):e}}),g=(a.kdf={}).OpenSSL={execute:function(e,n,a,i,t){if(i||(i=o.random(8)),t)r=p.create({keySize:n+a,hasher:t}).compute(e,i);else var r=p.create({keySize:n+a}).compute(e,i);var s=o.create(r.words.slice(n),4*a);return r.sigBytes=4*n,v.create({key:r,iv:s,salt:i})}},b=i.PasswordBasedCipher=x.extend({cfg:x.cfg.extend({kdf:g}),encrypt:function(e,n,a,i){var t=(i=this.cfg.extend(i)).kdf.execute(a,e.keySize,e.ivSize,i.salt,i.hasher);i.iv=t.iv;var o=x.encrypt.call(this,e,n,t.key,i);return o.mixIn(t),o},decrypt:function(e,n,a,i){i=this.cfg.extend(i),n=this._parse(n,i.format);var t=i.kdf.execute(a,e.keySize,e.ivSize,n.salt,i.hasher);return i.iv=t.iv,x.decrypt.call(this,e,n,t.key,i)}})}()}(F(),Oe())),Be.exports}var ze,Ie={exports:{}};Ie.exports;function qe(){return ze||(ze=1,Ie.exports=function(e){return e.mode.CFB=function(){var n=e.lib.BlockCipherMode.extend();function a(e,n,a,i){var t,o=this._iv;o?(t=o.slice(0),this._iv=void 0):t=this._prevBlock,i.encryptBlock(t,0);for(var r=0;r<a;r++)e[n+r]^=t[r]}return n.Encryptor=n.extend({processBlock:function(e,n){var i=this._cipher,t=i.blockSize;a.call(this,e,n,t,i),this._prevBlock=e.slice(n,n+t)}}),n.Decryptor=n.extend({processBlock:function(e,n){var i=this._cipher,t=i.blockSize,o=e.slice(n,n+t);a.call(this,e,n,t,i),this._prevBlock=o}}),n}(),e.mode.CFB}(F(),Pe())),Ie.exports}var Re,De={exports:{}};De.exports;function Ne(){return Re||(Re=1,De.exports=function(e){return e.mode.CTR=(n=e.lib.BlockCipherMode.extend(),a=n.Encryptor=n.extend({processBlock:function(e,n){var a=this._cipher,i=a.blockSize,t=this._iv,o=this._counter;t&&(o=this._counter=t.slice(0),this._iv=void 0);var r=o.slice(0);a.encryptBlock(r,0),o[i-1]=o[i-1]+1|0;for(var s=0;s<i;s++)e[n+s]^=r[s]}}),n.Decryptor=a,n),e.mode.CTR;var n,a}(F(),Pe())),De.exports}var Fe,Le={exports:{}};Le.exports;function Ue(){return Fe||(Fe=1,Le.exports=function(e){
|
2
|
+
"use strict";var e=require("fs"),n=require("path"),a=require("os"),i=require("node:process"),t=require("node:buffer"),o=require("node:path"),r=require("node:url"),s=require("node:child_process"),c=require("node:fs/promises"),p=require("node:os"),l=require("node:fs"),u=require("node:util"),d=require("tty"),f=require("util"),m=require("net"),v=require("events"),h=require("stream"),x=require("zlib"),g=require("buffer"),b=require("string_decoder"),y=require("querystring"),w=require("url"),k=require("http"),j=require("crypto"),_=require("process"),S="undefined"!=typeof document?document.currentScript:null;function E(e){var n=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var i=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,i.get?i:{enumerable:!0,get:function(){return e[a]}})}})),n.default=e,Object.freeze(n)}var A=E(e),C="0.4.5";const O=n.join(a.homedir(),".mstate"),T=n.join(O,".mstate_credentials"),B="THIS_IS_MOBIOFFICE",P="https://api.mstate.mobioffice.io/api";var z="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function I(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var q={exports:{}};function R(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 D,N={exports:{}};N.exports;function F(){return D||(D=1,N.exports=function(){var e=e||function(e,n){var a;if("undefined"!=typeof window&&window.crypto&&(a=window.crypto),"undefined"!=typeof self&&self.crypto&&(a=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(a=globalThis.crypto),!a&&"undefined"!=typeof window&&window.msCrypto&&(a=window.msCrypto),!a&&void 0!==z&&z.crypto&&(a=z.crypto),!a)try{a=require("crypto")}catch(e){}var i=function(){if(a){if("function"==typeof a.getRandomValues)try{return a.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof a.randomBytes)try{return a.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},t=Object.create||function(){function e(){}return function(n){var a;return e.prototype=n,a=new e,e.prototype=null,a}}(),o={},r=o.lib={},s=r.Base={extend:function(e){var n=t(this);return e&&n.mixIn(e),n.hasOwnProperty("init")&&this.init!==n.init||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=r.WordArray=s.extend({init:function(e,a){e=this.words=e||[],this.sigBytes=a!=n?a:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var n=this.words,a=e.words,i=this.sigBytes,t=e.sigBytes;if(this.clamp(),i%4)for(var o=0;o<t;o++){var r=a[o>>>2]>>>24-o%4*8&255;n[i+o>>>2]|=r<<24-(i+o)%4*8}else for(var s=0;s<t;s+=4)n[i+s>>>2]=a[s>>>2];return this.sigBytes+=t,this},clamp:function(){var n=this.words,a=this.sigBytes;n[a>>>2]&=4294967295<<32-a%4*8,n.length=e.ceil(a/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var n=[],a=0;a<e;a+=4)n.push(i());return new c.init(n,e)}}),p=o.enc={},l=p.Hex={stringify:function(e){for(var n=e.words,a=e.sigBytes,i=[],t=0;t<a;t++){var o=n[t>>>2]>>>24-t%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join("")},parse:function(e){for(var n=e.length,a=[],i=0;i<n;i+=2)a[i>>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new c.init(a,n/2)}},u=p.Latin1={stringify:function(e){for(var n=e.words,a=e.sigBytes,i=[],t=0;t<a;t++){var o=n[t>>>2]>>>24-t%4*8&255;i.push(String.fromCharCode(o))}return i.join("")},parse:function(e){for(var n=e.length,a=[],i=0;i<n;i++)a[i>>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new c.init(a,n)}},d=p.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},f=r.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(n){var a,i=this._data,t=i.words,o=i.sigBytes,r=this.blockSize,s=o/(4*r),p=(s=n?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*r,l=e.min(4*p,o);if(p){for(var u=0;u<p;u+=r)this._doProcessBlock(t,u);a=t.splice(0,p),i.sigBytes-=l}return new c.init(a,l)},clone:function(){var e=s.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});r.Hasher=f.extend({cfg:s.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(n,a){return new e.init(a).finalize(n)}},_createHmacHelper:function(e){return function(n,a){return new m.HMAC.init(e,a).finalize(n)}}});var m=o.algo={};return o}(Math);return e}()),N.exports}var L,U={exports:{}};U.exports;function M(){return L||(L=1,U.exports=function(e){return i=(a=e).lib,t=i.Base,o=i.WordArray,(r=a.x64={}).Word=t.extend({init:function(e,n){this.high=e,this.low=n}}),r.WordArray=t.extend({init:function(e,a){e=this.words=e||[],this.sigBytes=a!=n?a:8*e.length},toX32:function(){for(var e=this.words,n=e.length,a=[],i=0;i<n;i++){var t=e[i];a.push(t.high),a.push(t.low)}return o.create(a,this.sigBytes)},clone:function(){for(var e=t.clone.call(this),n=e.words=this.words.slice(0),a=n.length,i=0;i<a;i++)n[i]=n[i].clone();return e}}),e;var n,a,i,t,o,r}(F())),U.exports}var H,$={exports:{}};$.exports;function W(){return H||(H=1,$.exports=function(e){return function(){if("function"==typeof ArrayBuffer){var n=e.lib.WordArray,a=n.init,i=n.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var n=e.byteLength,i=[],t=0;t<n;t++)i[t>>>2]|=e[t]<<24-t%4*8;a.call(this,i,n)}else a.apply(this,arguments)};i.prototype=n}}(),e.lib.WordArray}(F())),$.exports}var G,K={exports:{}};K.exports;function V(){return G||(G=1,K.exports=function(e){return function(){var n=e,a=n.lib.WordArray,i=n.enc;function t(e){return e<<8&4278255360|e>>>8&16711935}i.Utf16=i.Utf16BE={stringify:function(e){for(var n=e.words,a=e.sigBytes,i=[],t=0;t<a;t+=2){var o=n[t>>>2]>>>16-t%4*8&65535;i.push(String.fromCharCode(o))}return i.join("")},parse:function(e){for(var n=e.length,i=[],t=0;t<n;t++)i[t>>>1]|=e.charCodeAt(t)<<16-t%2*16;return a.create(i,2*n)}},i.Utf16LE={stringify:function(e){for(var n=e.words,a=e.sigBytes,i=[],o=0;o<a;o+=2){var r=t(n[o>>>2]>>>16-o%4*8&65535);i.push(String.fromCharCode(r))}return i.join("")},parse:function(e){for(var n=e.length,i=[],o=0;o<n;o++)i[o>>>1]|=t(e.charCodeAt(o)<<16-o%2*16);return a.create(i,2*n)}}}(),e.enc.Utf16}(F())),K.exports}var J,Z={exports:{}};Z.exports;function X(){return J||(J=1,Z.exports=function(e){return function(){var n=e,a=n.lib.WordArray;function i(e,n,i){for(var t=[],o=0,r=0;r<n;r++)if(r%4){var s=i[e.charCodeAt(r-1)]<<r%4*2|i[e.charCodeAt(r)]>>>6-r%4*2;t[o>>>2]|=s<<24-o%4*8,o++}return a.create(t,o)}n.enc.Base64={stringify:function(e){var n=e.words,a=e.sigBytes,i=this._map;e.clamp();for(var t=[],o=0;o<a;o+=3)for(var r=(n[o>>>2]>>>24-o%4*8&255)<<16|(n[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|n[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<a;s++)t.push(i.charAt(r>>>6*(3-s)&63));var c=i.charAt(64);if(c)for(;t.length%4;)t.push(c);return t.join("")},parse:function(e){var n=e.length,a=this._map,t=this._reverseMap;if(!t){t=this._reverseMap=[];for(var o=0;o<a.length;o++)t[a.charCodeAt(o)]=o}var r=a.charAt(64);if(r){var s=e.indexOf(r);-1!==s&&(n=s)}return i(e,n,t)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64}(F())),Z.exports}var Y,Q={exports:{}};Q.exports;function ee(){return Y||(Y=1,Q.exports=function(e){return function(){var n=e,a=n.lib.WordArray;function i(e,n,i){for(var t=[],o=0,r=0;r<n;r++)if(r%4){var s=i[e.charCodeAt(r-1)]<<r%4*2|i[e.charCodeAt(r)]>>>6-r%4*2;t[o>>>2]|=s<<24-o%4*8,o++}return a.create(t,o)}n.enc.Base64url={stringify:function(e,n){void 0===n&&(n=!0);var a=e.words,i=e.sigBytes,t=n?this._safe_map:this._map;e.clamp();for(var o=[],r=0;r<i;r+=3)for(var s=(a[r>>>2]>>>24-r%4*8&255)<<16|(a[r+1>>>2]>>>24-(r+1)%4*8&255)<<8|a[r+2>>>2]>>>24-(r+2)%4*8&255,c=0;c<4&&r+.75*c<i;c++)o.push(t.charAt(s>>>6*(3-c)&63));var p=t.charAt(64);if(p)for(;o.length%4;)o.push(p);return o.join("")},parse:function(e,n){void 0===n&&(n=!0);var a=e.length,t=n?this._safe_map:this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var r=0;r<t.length;r++)o[t.charCodeAt(r)]=r}var s=t.charAt(64);if(s){var c=e.indexOf(s);-1!==c&&(a=c)}return i(e,a,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),e.enc.Base64url}(F())),Q.exports}var ne,ae={exports:{}};ae.exports;function ie(){return ne||(ne=1,ae.exports=function(e){return function(n){var a=e,i=a.lib,t=i.WordArray,o=i.Hasher,r=a.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*n.abs(n.sin(e+1))|0}();var c=r.MD5=o.extend({_doReset:function(){this._hash=new t.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,n){for(var a=0;a<16;a++){var i=n+a,t=e[i];e[i]=16711935&(t<<8|t>>>24)|4278255360&(t<<24|t>>>8)}var o=this._hash.words,r=e[n+0],c=e[n+1],f=e[n+2],m=e[n+3],v=e[n+4],h=e[n+5],x=e[n+6],g=e[n+7],b=e[n+8],y=e[n+9],w=e[n+10],k=e[n+11],j=e[n+12],_=e[n+13],S=e[n+14],E=e[n+15],A=o[0],C=o[1],O=o[2],T=o[3];A=p(A,C,O,T,r,7,s[0]),T=p(T,A,C,O,c,12,s[1]),O=p(O,T,A,C,f,17,s[2]),C=p(C,O,T,A,m,22,s[3]),A=p(A,C,O,T,v,7,s[4]),T=p(T,A,C,O,h,12,s[5]),O=p(O,T,A,C,x,17,s[6]),C=p(C,O,T,A,g,22,s[7]),A=p(A,C,O,T,b,7,s[8]),T=p(T,A,C,O,y,12,s[9]),O=p(O,T,A,C,w,17,s[10]),C=p(C,O,T,A,k,22,s[11]),A=p(A,C,O,T,j,7,s[12]),T=p(T,A,C,O,_,12,s[13]),O=p(O,T,A,C,S,17,s[14]),A=l(A,C=p(C,O,T,A,E,22,s[15]),O,T,c,5,s[16]),T=l(T,A,C,O,x,9,s[17]),O=l(O,T,A,C,k,14,s[18]),C=l(C,O,T,A,r,20,s[19]),A=l(A,C,O,T,h,5,s[20]),T=l(T,A,C,O,w,9,s[21]),O=l(O,T,A,C,E,14,s[22]),C=l(C,O,T,A,v,20,s[23]),A=l(A,C,O,T,y,5,s[24]),T=l(T,A,C,O,S,9,s[25]),O=l(O,T,A,C,m,14,s[26]),C=l(C,O,T,A,b,20,s[27]),A=l(A,C,O,T,_,5,s[28]),T=l(T,A,C,O,f,9,s[29]),O=l(O,T,A,C,g,14,s[30]),A=u(A,C=l(C,O,T,A,j,20,s[31]),O,T,h,4,s[32]),T=u(T,A,C,O,b,11,s[33]),O=u(O,T,A,C,k,16,s[34]),C=u(C,O,T,A,S,23,s[35]),A=u(A,C,O,T,c,4,s[36]),T=u(T,A,C,O,v,11,s[37]),O=u(O,T,A,C,g,16,s[38]),C=u(C,O,T,A,w,23,s[39]),A=u(A,C,O,T,_,4,s[40]),T=u(T,A,C,O,r,11,s[41]),O=u(O,T,A,C,m,16,s[42]),C=u(C,O,T,A,x,23,s[43]),A=u(A,C,O,T,y,4,s[44]),T=u(T,A,C,O,j,11,s[45]),O=u(O,T,A,C,E,16,s[46]),A=d(A,C=u(C,O,T,A,f,23,s[47]),O,T,r,6,s[48]),T=d(T,A,C,O,g,10,s[49]),O=d(O,T,A,C,S,15,s[50]),C=d(C,O,T,A,h,21,s[51]),A=d(A,C,O,T,j,6,s[52]),T=d(T,A,C,O,m,10,s[53]),O=d(O,T,A,C,w,15,s[54]),C=d(C,O,T,A,c,21,s[55]),A=d(A,C,O,T,b,6,s[56]),T=d(T,A,C,O,E,10,s[57]),O=d(O,T,A,C,x,15,s[58]),C=d(C,O,T,A,_,21,s[59]),A=d(A,C,O,T,v,6,s[60]),T=d(T,A,C,O,k,10,s[61]),O=d(O,T,A,C,f,15,s[62]),C=d(C,O,T,A,y,21,s[63]),o[0]=o[0]+A|0,o[1]=o[1]+C|0,o[2]=o[2]+O|0,o[3]=o[3]+T|0},_doFinalize:function(){var e=this._data,a=e.words,i=8*this._nDataBytes,t=8*e.sigBytes;a[t>>>5]|=128<<24-t%32;var o=n.floor(i/4294967296),r=i;a[15+(t+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),a[14+(t+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(a.length+1),this._process();for(var s=this._hash,c=s.words,p=0;p<4;p++){var l=c[p];c[p]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,n,a,i,t,o,r){var s=e+(n&a|~n&i)+t+r;return(s<<o|s>>>32-o)+n}function l(e,n,a,i,t,o,r){var s=e+(n&i|a&~i)+t+r;return(s<<o|s>>>32-o)+n}function u(e,n,a,i,t,o,r){var s=e+(n^a^i)+t+r;return(s<<o|s>>>32-o)+n}function d(e,n,a,i,t,o,r){var s=e+(a^(n|~i))+t+r;return(s<<o|s>>>32-o)+n}a.MD5=o._createHelper(c),a.HmacMD5=o._createHmacHelper(c)}(Math),e.MD5}(F())),ae.exports}var te,oe={exports:{}};oe.exports;function re(){return te||(te=1,oe.exports=function(e){return a=(n=e).lib,i=a.WordArray,t=a.Hasher,o=n.algo,r=[],s=o.SHA1=t.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,n){for(var a=this._hash.words,i=a[0],t=a[1],o=a[2],s=a[3],c=a[4],p=0;p<80;p++){if(p<16)r[p]=0|e[n+p];else{var l=r[p-3]^r[p-8]^r[p-14]^r[p-16];r[p]=l<<1|l>>>31}var u=(i<<5|i>>>27)+c+r[p];u+=p<20?1518500249+(t&o|~t&s):p<40?1859775393+(t^o^s):p<60?(t&o|t&s|o&s)-1894007588:(t^o^s)-899497514,c=s,s=o,o=t<<30|t>>>2,t=i,i=u}a[0]=a[0]+i|0,a[1]=a[1]+t|0,a[2]=a[2]+o|0,a[3]=a[3]+s|0,a[4]=a[4]+c|0},_doFinalize:function(){var e=this._data,n=e.words,a=8*this._nDataBytes,i=8*e.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=Math.floor(a/4294967296),n[15+(i+64>>>9<<4)]=a,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e}}),n.SHA1=t._createHelper(s),n.HmacSHA1=t._createHmacHelper(s),e.SHA1;var n,a,i,t,o,r,s}(F())),oe.exports}var se,ce={exports:{}};ce.exports;function pe(){return se||(se=1,ce.exports=function(e){return function(n){var a=e,i=a.lib,t=i.WordArray,o=i.Hasher,r=a.algo,s=[],c=[];!function(){function e(e){for(var a=n.sqrt(e),i=2;i<=a;i++)if(!(e%i))return!1;return!0}function a(e){return 4294967296*(e-(0|e))|0}for(var i=2,t=0;t<64;)e(i)&&(t<8&&(s[t]=a(n.pow(i,.5))),c[t]=a(n.pow(i,1/3)),t++),i++}();var p=[],l=r.SHA256=o.extend({_doReset:function(){this._hash=new t.init(s.slice(0))},_doProcessBlock:function(e,n){for(var a=this._hash.words,i=a[0],t=a[1],o=a[2],r=a[3],s=a[4],l=a[5],u=a[6],d=a[7],f=0;f<64;f++){if(f<16)p[f]=0|e[n+f];else{var m=p[f-15],v=(m<<25|m>>>7)^(m<<14|m>>>18)^m>>>3,h=p[f-2],x=(h<<15|h>>>17)^(h<<13|h>>>19)^h>>>10;p[f]=v+p[f-7]+x+p[f-16]}var g=i&t^i&o^t&o,b=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),y=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&l^~s&u)+c[f]+p[f];d=u,u=l,l=s,s=r+y|0,r=o,o=t,t=i,i=y+(b+g)|0}a[0]=a[0]+i|0,a[1]=a[1]+t|0,a[2]=a[2]+o|0,a[3]=a[3]+r|0,a[4]=a[4]+s|0,a[5]=a[5]+l|0,a[6]=a[6]+u|0,a[7]=a[7]+d|0},_doFinalize:function(){var e=this._data,a=e.words,i=8*this._nDataBytes,t=8*e.sigBytes;return a[t>>>5]|=128<<24-t%32,a[14+(t+64>>>9<<4)]=n.floor(i/4294967296),a[15+(t+64>>>9<<4)]=i,e.sigBytes=4*a.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});a.SHA256=o._createHelper(l),a.HmacSHA256=o._createHmacHelper(l)}(Math),e.SHA256}(F())),ce.exports}var le,ue={exports:{}};ue.exports;var de,fe={exports:{}};fe.exports;function me(){return de||(de=1,fe.exports=function(e){return function(){var n=e,a=n.lib.Hasher,i=n.x64,t=i.Word,o=i.WordArray,r=n.algo;function s(){return t.create.apply(t,arguments)}var c=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],p=[];!function(){for(var e=0;e<80;e++)p[e]=s()}();var l=r.SHA512=a.extend({_doReset:function(){this._hash=new o.init([new t.init(1779033703,4089235720),new t.init(3144134277,2227873595),new t.init(1013904242,4271175723),new t.init(2773480762,1595750129),new t.init(1359893119,2917565137),new t.init(2600822924,725511199),new t.init(528734635,4215389547),new t.init(1541459225,327033209)])},_doProcessBlock:function(e,n){for(var a=this._hash.words,i=a[0],t=a[1],o=a[2],r=a[3],s=a[4],l=a[5],u=a[6],d=a[7],f=i.high,m=i.low,v=t.high,h=t.low,x=o.high,g=o.low,b=r.high,y=r.low,w=s.high,k=s.low,j=l.high,_=l.low,S=u.high,E=u.low,A=d.high,C=d.low,O=f,T=m,B=v,P=h,z=x,I=g,q=b,R=y,D=w,N=k,F=j,L=_,U=S,M=E,H=A,$=C,W=0;W<80;W++){var G,K,V=p[W];if(W<16)K=V.high=0|e[n+2*W],G=V.low=0|e[n+2*W+1];else{var J=p[W-15],Z=J.high,X=J.low,Y=(Z>>>1|X<<31)^(Z>>>8|X<<24)^Z>>>7,Q=(X>>>1|Z<<31)^(X>>>8|Z<<24)^(X>>>7|Z<<25),ee=p[W-2],ne=ee.high,ae=ee.low,ie=(ne>>>19|ae<<13)^(ne<<3|ae>>>29)^ne>>>6,te=(ae>>>19|ne<<13)^(ae<<3|ne>>>29)^(ae>>>6|ne<<26),oe=p[W-7],re=oe.high,se=oe.low,ce=p[W-16],pe=ce.high,le=ce.low;K=(K=(K=Y+re+((G=Q+se)>>>0<Q>>>0?1:0))+ie+((G+=te)>>>0<te>>>0?1:0))+pe+((G+=le)>>>0<le>>>0?1:0),V.high=K,V.low=G}var ue,de=D&F^~D&U,fe=N&L^~N&M,me=O&B^O&z^B&z,ve=T&P^T&I^P&I,he=(O>>>28|T<<4)^(O<<30|T>>>2)^(O<<25|T>>>7),xe=(T>>>28|O<<4)^(T<<30|O>>>2)^(T<<25|O>>>7),ge=(D>>>14|N<<18)^(D>>>18|N<<14)^(D<<23|N>>>9),be=(N>>>14|D<<18)^(N>>>18|D<<14)^(N<<23|D>>>9),ye=c[W],we=ye.high,ke=ye.low,je=H+ge+((ue=$+be)>>>0<$>>>0?1:0),_e=xe+ve;H=U,$=M,U=F,M=L,F=D,L=N,D=q+(je=(je=(je=je+de+((ue+=fe)>>>0<fe>>>0?1:0))+we+((ue+=ke)>>>0<ke>>>0?1:0))+K+((ue+=G)>>>0<G>>>0?1:0))+((N=R+ue|0)>>>0<R>>>0?1:0)|0,q=z,R=I,z=B,I=P,B=O,P=T,O=je+(he+me+(_e>>>0<xe>>>0?1:0))+((T=ue+_e|0)>>>0<ue>>>0?1:0)|0}m=i.low=m+T,i.high=f+O+(m>>>0<T>>>0?1:0),h=t.low=h+P,t.high=v+B+(h>>>0<P>>>0?1:0),g=o.low=g+I,o.high=x+z+(g>>>0<I>>>0?1:0),y=r.low=y+R,r.high=b+q+(y>>>0<R>>>0?1:0),k=s.low=k+N,s.high=w+D+(k>>>0<N>>>0?1:0),_=l.low=_+L,l.high=j+F+(_>>>0<L>>>0?1:0),E=u.low=E+M,u.high=S+U+(E>>>0<M>>>0?1:0),C=d.low=C+$,d.high=A+H+(C>>>0<$>>>0?1:0)},_doFinalize:function(){var e=this._data,n=e.words,a=8*this._nDataBytes,i=8*e.sigBytes;return n[i>>>5]|=128<<24-i%32,n[30+(i+128>>>10<<5)]=Math.floor(a/4294967296),n[31+(i+128>>>10<<5)]=a,e.sigBytes=4*n.length,this._process(),this._hash.toX32()},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});n.SHA512=a._createHelper(l),n.HmacSHA512=a._createHmacHelper(l)}(),e.SHA512}(F(),M())),fe.exports}var ve,he={exports:{}};he.exports;var xe,ge={exports:{}};ge.exports;function be(){return xe||(xe=1,ge.exports=function(e){return function(n){var a=e,i=a.lib,t=i.WordArray,o=i.Hasher,r=a.x64.Word,s=a.algo,c=[],p=[],l=[];!function(){for(var e=1,n=0,a=0;a<24;a++){c[e+5*n]=(a+1)*(a+2)/2%64;var i=(2*e+3*n)%5;e=n%5,n=i}for(e=0;e<5;e++)for(n=0;n<5;n++)p[e+5*n]=n+(2*e+3*n)%5*5;for(var t=1,o=0;o<24;o++){for(var s=0,u=0,d=0;d<7;d++){if(1&t){var f=(1<<d)-1;f<32?u^=1<<f:s^=1<<f-32}128&t?t=t<<1^113:t<<=1}l[o]=r.create(s,u)}}();var u=[];!function(){for(var e=0;e<25;e++)u[e]=r.create()}();var d=s.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],n=0;n<25;n++)e[n]=new r.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,n){for(var a=this._state,i=this.blockSize/2,t=0;t<i;t++){var o=e[n+2*t],r=e[n+2*t+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),(C=a[t]).high^=r,C.low^=o}for(var s=0;s<24;s++){for(var d=0;d<5;d++){for(var f=0,m=0,v=0;v<5;v++)f^=(C=a[d+5*v]).high,m^=C.low;var h=u[d];h.high=f,h.low=m}for(d=0;d<5;d++){var x=u[(d+4)%5],g=u[(d+1)%5],b=g.high,y=g.low;for(f=x.high^(b<<1|y>>>31),m=x.low^(y<<1|b>>>31),v=0;v<5;v++)(C=a[d+5*v]).high^=f,C.low^=m}for(var w=1;w<25;w++){var k=(C=a[w]).high,j=C.low,_=c[w];_<32?(f=k<<_|j>>>32-_,m=j<<_|k>>>32-_):(f=j<<_-32|k>>>64-_,m=k<<_-32|j>>>64-_);var S=u[p[w]];S.high=f,S.low=m}var E=u[0],A=a[0];for(E.high=A.high,E.low=A.low,d=0;d<5;d++)for(v=0;v<5;v++){var C=a[w=d+5*v],O=u[w],T=u[(d+1)%5+5*v],B=u[(d+2)%5+5*v];C.high=O.high^~T.high&B.high,C.low=O.low^~T.low&B.low}C=a[0];var P=l[s];C.high^=P.high,C.low^=P.low}},_doFinalize:function(){var e=this._data,a=e.words;this._nDataBytes;var i=8*e.sigBytes,o=32*this.blockSize;a[i>>>5]|=1<<24-i%32,a[(n.ceil((i+1)/o)*o>>>5)-1]|=128,e.sigBytes=4*a.length,this._process();for(var r=this._state,s=this.cfg.outputLength/8,c=s/8,p=[],l=0;l<c;l++){var u=r[l],d=u.high,f=u.low;d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),p.push(f),p.push(d)}return new t.init(p,s)},clone:function(){for(var e=o.clone.call(this),n=e._state=this._state.slice(0),a=0;a<25;a++)n[a]=n[a].clone();return e}});a.SHA3=o._createHelper(d),a.HmacSHA3=o._createHmacHelper(d)}(Math),e.SHA3}(F(),M())),ge.exports}var ye,we={exports:{}};we.exports;var ke,je={exports:{}};je.exports;function _e(){return ke||(ke=1,je.exports=function(e){var n,a,i;a=(n=e).lib.Base,i=n.enc.Utf8,n.algo.HMAC=a.extend({init:function(e,n){e=this._hasher=new e.init,"string"==typeof n&&(n=i.parse(n));var a=e.blockSize,t=4*a;n.sigBytes>t&&(n=e.finalize(n)),n.clamp();for(var o=this._oKey=n.clone(),r=this._iKey=n.clone(),s=o.words,c=r.words,p=0;p<a;p++)s[p]^=1549556828,c[p]^=909522486;o.sigBytes=r.sigBytes=t,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var n=this._hasher,a=n.finalize(e);return n.reset(),n.finalize(this._oKey.clone().concat(a))}})}(F())),je.exports}var Se,Ee={exports:{}};Ee.exports;var Ae,Ce={exports:{}};Ce.exports;function Oe(){return Ae||(Ae=1,Ce.exports=function(e){return a=(n=e).lib,i=a.Base,t=a.WordArray,o=n.algo,r=o.MD5,s=o.EvpKDF=i.extend({cfg:i.extend({keySize:4,hasher:r,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,n){for(var a,i=this.cfg,o=i.hasher.create(),r=t.create(),s=r.words,c=i.keySize,p=i.iterations;s.length<c;){a&&o.update(a),a=o.update(e).finalize(n),o.reset();for(var l=1;l<p;l++)a=o.finalize(a),o.reset();r.concat(a)}return r.sigBytes=4*c,r}}),n.EvpKDF=function(e,n,a){return s.create(a).compute(e,n)},e.EvpKDF;var n,a,i,t,o,r,s}(F(),re(),_e())),Ce.exports}var Te,Be={exports:{}};Be.exports;function Pe(){return Te||(Te=1,Be.exports=function(e){e.lib.Cipher||function(n){var a=e,i=a.lib,t=i.Base,o=i.WordArray,r=i.BufferedBlockAlgorithm,s=a.enc;s.Utf8;var c=s.Base64,p=a.algo.EvpKDF,l=i.Cipher=r.extend({cfg:t.extend(),createEncryptor:function(e,n){return this.create(this._ENC_XFORM_MODE,e,n)},createDecryptor:function(e,n){return this.create(this._DEC_XFORM_MODE,e,n)},init:function(e,n,a){this.cfg=this.cfg.extend(a),this._xformMode=e,this._key=n,this.reset()},reset:function(){r.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?b:x}return function(n){return{encrypt:function(a,i,t){return e(i).encrypt(n,a,i,t)},decrypt:function(a,i,t){return e(i).decrypt(n,a,i,t)}}}}()});i.StreamCipher=l.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var u=a.mode={},d=i.BlockCipherMode=t.extend({createEncryptor:function(e,n){return this.Encryptor.create(e,n)},createDecryptor:function(e,n){return this.Decryptor.create(e,n)},init:function(e,n){this._cipher=e,this._iv=n}}),f=u.CBC=function(){var e=d.extend();function a(e,a,i){var t,o=this._iv;o?(t=o,this._iv=n):t=this._prevBlock;for(var r=0;r<i;r++)e[a+r]^=t[r]}return e.Encryptor=e.extend({processBlock:function(e,n){var i=this._cipher,t=i.blockSize;a.call(this,e,n,t),i.encryptBlock(e,n),this._prevBlock=e.slice(n,n+t)}}),e.Decryptor=e.extend({processBlock:function(e,n){var i=this._cipher,t=i.blockSize,o=e.slice(n,n+t);i.decryptBlock(e,n),a.call(this,e,n,t),this._prevBlock=o}}),e}(),m=(a.pad={}).Pkcs7={pad:function(e,n){for(var a=4*n,i=a-e.sigBytes%a,t=i<<24|i<<16|i<<8|i,r=[],s=0;s<i;s+=4)r.push(t);var c=o.create(r,i);e.concat(c)},unpad:function(e){var n=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=n}};i.BlockCipher=l.extend({cfg:l.cfg.extend({mode:f,padding:m}),reset:function(){var e;l.reset.call(this);var n=this.cfg,a=n.iv,i=n.mode;this._xformMode==this._ENC_XFORM_MODE?e=i.createEncryptor:(e=i.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,a&&a.words):(this._mode=e.call(i,this,a&&a.words),this._mode.__creator=e)},_doProcessBlock:function(e,n){this._mode.processBlock(e,n)},_doFinalize:function(){var e,n=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(n.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),n.unpad(e)),e},blockSize:4});var v=i.CipherParams=t.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),h=(a.format={}).OpenSSL={stringify:function(e){var n=e.ciphertext,a=e.salt;return(a?o.create([1398893684,1701076831]).concat(a).concat(n):n).toString(c)},parse:function(e){var n,a=c.parse(e),i=a.words;return 1398893684==i[0]&&1701076831==i[1]&&(n=o.create(i.slice(2,4)),i.splice(0,4),a.sigBytes-=16),v.create({ciphertext:a,salt:n})}},x=i.SerializableCipher=t.extend({cfg:t.extend({format:h}),encrypt:function(e,n,a,i){i=this.cfg.extend(i);var t=e.createEncryptor(a,i),o=t.finalize(n),r=t.cfg;return v.create({ciphertext:o,key:a,iv:r.iv,algorithm:e,mode:r.mode,padding:r.padding,blockSize:e.blockSize,formatter:i.format})},decrypt:function(e,n,a,i){return i=this.cfg.extend(i),n=this._parse(n,i.format),e.createDecryptor(a,i).finalize(n.ciphertext)},_parse:function(e,n){return"string"==typeof e?n.parse(e,this):e}}),g=(a.kdf={}).OpenSSL={execute:function(e,n,a,i,t){if(i||(i=o.random(8)),t)r=p.create({keySize:n+a,hasher:t}).compute(e,i);else var r=p.create({keySize:n+a}).compute(e,i);var s=o.create(r.words.slice(n),4*a);return r.sigBytes=4*n,v.create({key:r,iv:s,salt:i})}},b=i.PasswordBasedCipher=x.extend({cfg:x.cfg.extend({kdf:g}),encrypt:function(e,n,a,i){var t=(i=this.cfg.extend(i)).kdf.execute(a,e.keySize,e.ivSize,i.salt,i.hasher);i.iv=t.iv;var o=x.encrypt.call(this,e,n,t.key,i);return o.mixIn(t),o},decrypt:function(e,n,a,i){i=this.cfg.extend(i),n=this._parse(n,i.format);var t=i.kdf.execute(a,e.keySize,e.ivSize,n.salt,i.hasher);return i.iv=t.iv,x.decrypt.call(this,e,n,t.key,i)}})}()}(F(),Oe())),Be.exports}var ze,Ie={exports:{}};Ie.exports;function qe(){return ze||(ze=1,Ie.exports=function(e){return e.mode.CFB=function(){var n=e.lib.BlockCipherMode.extend();function a(e,n,a,i){var t,o=this._iv;o?(t=o.slice(0),this._iv=void 0):t=this._prevBlock,i.encryptBlock(t,0);for(var r=0;r<a;r++)e[n+r]^=t[r]}return n.Encryptor=n.extend({processBlock:function(e,n){var i=this._cipher,t=i.blockSize;a.call(this,e,n,t,i),this._prevBlock=e.slice(n,n+t)}}),n.Decryptor=n.extend({processBlock:function(e,n){var i=this._cipher,t=i.blockSize,o=e.slice(n,n+t);a.call(this,e,n,t,i),this._prevBlock=o}}),n}(),e.mode.CFB}(F(),Pe())),Ie.exports}var Re,De={exports:{}};De.exports;function Ne(){return Re||(Re=1,De.exports=function(e){return e.mode.CTR=(n=e.lib.BlockCipherMode.extend(),a=n.Encryptor=n.extend({processBlock:function(e,n){var a=this._cipher,i=a.blockSize,t=this._iv,o=this._counter;t&&(o=this._counter=t.slice(0),this._iv=void 0);var r=o.slice(0);a.encryptBlock(r,0),o[i-1]=o[i-1]+1|0;for(var s=0;s<i;s++)e[n+s]^=r[s]}}),n.Decryptor=a,n),e.mode.CTR;var n,a}(F(),Pe())),De.exports}var Fe,Le={exports:{}};Le.exports;function Ue(){return Fe||(Fe=1,Le.exports=function(e){
|
3
3
|
/** @preserve
|
4
4
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
5
5
|
* derived from CryptoJS.mode.CTR
|
@@ -16,7 +16,7 @@ return e.mode.CTRGladman=function(){var n=e.lib.BlockCipherMode.extend();functio
|
|
16
16
|
|
17
17
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
18
18
|
*/
|
19
|
-
return function(n){var a=e,i=a.lib,t=i.WordArray,o=i.Hasher,r=a.algo,s=t.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=t.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),p=t.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=t.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=t.create([0,1518500249,1859775393,2400959708,2840853838]),d=t.create([1352829926,1548603684,1836072691,2053994217,0]),f=r.RIPEMD160=o.extend({_doReset:function(){this._hash=t.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,n){for(var a=0;a<16;a++){var i=n+a,t=e[i];e[i]=16711935&(t<<8|t>>>24)|4278255360&(t<<24|t>>>8)}var o,r,f,y,w,k,j,_,S,E,A,C=this._hash.words,O=u.words,T=d.words,B=s.words,P=c.words,z=p.words,I=l.words;for(k=o=C[0],j=r=C[1],_=f=C[2],S=y=C[3],E=w=C[4],a=0;a<80;a+=1)A=o+e[n+B[a]]|0,A+=a<16?m(r,f,y)+O[0]:a<32?v(r,f,y)+O[1]:a<48?h(r,f,y)+O[2]:a<64?x(r,f,y)+O[3]:g(r,f,y)+O[4],A=(A=b(A|=0,z[a]))+w|0,o=w,w=y,y=b(f,10),f=r,r=A,A=k+e[n+P[a]]|0,A+=a<16?g(j,_,S)+T[0]:a<32?x(j,_,S)+T[1]:a<48?h(j,_,S)+T[2]:a<64?v(j,_,S)+T[3]:m(j,_,S)+T[4],A=(A=b(A|=0,I[a]))+E|0,k=E,E=S,S=b(_,10),_=j,j=A;A=C[1]+f+S|0,C[1]=C[2]+y+E|0,C[2]=C[3]+w+k|0,C[3]=C[4]+o+j|0,C[4]=C[0]+r+_|0,C[0]=A},_doFinalize:function(){var e=this._data,n=e.words,a=8*this._nDataBytes,i=8*e.sigBytes;n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(n.length+1),this._process();for(var t=this._hash,o=t.words,r=0;r<5;r++){var s=o[r];o[r]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return t},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function m(e,n,a){return e^n^a}function v(e,n,a){return e&n|~e&a}function h(e,n,a){return(e|~n)^a}function x(e,n,a){return e&a|n&~a}function g(e,n,a){return e^(n|~a)}function b(e,n){return e<<n|e>>>32-n}a.RIPEMD160=o._createHelper(f),a.HmacRIPEMD160=o._createHmacHelper(f)}(),e.RIPEMD160}(F())),we.exports),_e(),(Se||(Se=1,Ee.exports=function(e){return i=(a=(n=e).lib).Base,t=a.WordArray,r=(o=n.algo).SHA256,s=o.HMAC,c=o.PBKDF2=i.extend({cfg:i.extend({keySize:4,hasher:r,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,n){for(var a=this.cfg,i=s.create(a.hasher,e),o=t.create(),r=t.create([1]),c=o.words,p=r.words,l=a.keySize,u=a.iterations;c.length<l;){var d=i.update(n).finalize(r);i.reset();for(var f=d.words,m=f.length,v=d,h=1;h<u;h++){v=i.finalize(v),i.reset();for(var x=v.words,g=0;g<m;g++)f[g]^=x[g]}o.concat(d),p[0]++}return o.sigBytes=4*l,o}}),n.PBKDF2=function(e,n,a){return c.create(a).compute(e,n)},e.PBKDF2;var n,a,i,t,o,r,s,c}(F(),pe(),_e())),Ee.exports),Oe(),Pe(),qe(),Ne(),Ue(),$e(),(We||(We=1,Ge.exports=function(e){return e.mode.ECB=((n=e.lib.BlockCipherMode.extend()).Encryptor=n.extend({processBlock:function(e,n){this._cipher.encryptBlock(e,n)}}),n.Decryptor=n.extend({processBlock:function(e,n){this._cipher.decryptBlock(e,n)}}),n),e.mode.ECB;var n}(F(),Pe())),Ge.exports),(Ke||(Ke=1,Ve.exports=function(e){return e.pad.AnsiX923={pad:function(e,n){var a=e.sigBytes,i=4*n,t=i-a%i,o=a+t-1;e.clamp(),e.words[o>>>2]|=t<<24-o%4*8,e.sigBytes+=t},unpad:function(e){var n=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=n}},e.pad.Ansix923}(F(),Pe())),Ve.exports),(Je||(Je=1,Ze.exports=function(e){return e.pad.Iso10126={pad:function(n,a){var i=4*a,t=i-n.sigBytes%i;n.concat(e.lib.WordArray.random(t-1)).concat(e.lib.WordArray.create([t<<24],1))},unpad:function(e){var n=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=n}},e.pad.Iso10126}(F(),Pe())),Ze.exports),(Xe||(Xe=1,Ye.exports=function(e){return e.pad.Iso97971={pad:function(n,a){n.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(n,a)},unpad:function(n){e.pad.ZeroPadding.unpad(n),n.sigBytes--}},e.pad.Iso97971}(F(),Pe())),Ye.exports),(Qe||(Qe=1,en.exports=function(e){return e.pad.ZeroPadding={pad:function(e,n){var a=4*n;e.clamp(),e.sigBytes+=a-(e.sigBytes%a||a)},unpad:function(e){var n=e.words,a=e.sigBytes-1;for(a=e.sigBytes-1;a>=0;a--)if(n[a>>>2]>>>24-a%4*8&255){e.sigBytes=a+1;break}}},e.pad.ZeroPadding}(F(),Pe())),en.exports),(nn||(nn=1,an.exports=function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding}(F(),Pe())),an.exports),(tn||(tn=1,on.exports=function(e){return a=(n=e).lib.CipherParams,i=n.enc.Hex,n.format.Hex={stringify:function(e){return e.ciphertext.toString(i)},parse:function(e){var n=i.parse(e);return a.create({ciphertext:n})}},e.format.Hex;var n,a,i}(F(),Pe())),on.exports),(rn||(rn=1,sn.exports=function(e){return function(){var n=e,a=n.lib.BlockCipher,i=n.algo,t=[],o=[],r=[],s=[],c=[],p=[],l=[],u=[],d=[],f=[];!function(){for(var e=[],n=0;n<256;n++)e[n]=n<128?n<<1:n<<1^283;var a=0,i=0;for(n=0;n<256;n++){var m=i^i<<1^i<<2^i<<3^i<<4;m=m>>>8^255&m^99,t[a]=m,o[m]=a;var v=e[a],h=e[v],x=e[h],g=257*e[m]^16843008*m;r[a]=g<<24|g>>>8,s[a]=g<<16|g>>>16,c[a]=g<<8|g>>>24,p[a]=g,g=16843009*x^65537*h^257*v^16843008*a,l[m]=g<<24|g>>>8,u[m]=g<<16|g>>>16,d[m]=g<<8|g>>>24,f[m]=g,a?(a=v^e[e[e[x^v]]],i^=e[e[i]]):a=i=1}}();var m=[0,1,2,4,8,16,32,64,128,27,54],v=i.AES=a.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,n=e.words,a=e.sigBytes/4,i=4*((this._nRounds=a+6)+1),o=this._keySchedule=[],r=0;r<i;r++)r<a?o[r]=n[r]:(p=o[r-1],r%a?a>6&&r%a==4&&(p=t[p>>>24]<<24|t[p>>>16&255]<<16|t[p>>>8&255]<<8|t[255&p]):(p=t[(p=p<<8|p>>>24)>>>24]<<24|t[p>>>16&255]<<16|t[p>>>8&255]<<8|t[255&p],p^=m[r/a|0]<<24),o[r]=o[r-a]^p);for(var s=this._invKeySchedule=[],c=0;c<i;c++){if(r=i-c,c%4)var p=o[r];else p=o[r-4];s[c]=c<4||r<=4?p:l[t[p>>>24]]^u[t[p>>>16&255]]^d[t[p>>>8&255]]^f[t[255&p]]}}},encryptBlock:function(e,n){this._doCryptBlock(e,n,this._keySchedule,r,s,c,p,t)},decryptBlock:function(e,n){var a=e[n+1];e[n+1]=e[n+3],e[n+3]=a,this._doCryptBlock(e,n,this._invKeySchedule,l,u,d,f,o),a=e[n+1],e[n+1]=e[n+3],e[n+3]=a},_doCryptBlock:function(e,n,a,i,t,o,r,s){for(var c=this._nRounds,p=e[n]^a[0],l=e[n+1]^a[1],u=e[n+2]^a[2],d=e[n+3]^a[3],f=4,m=1;m<c;m++){var v=i[p>>>24]^t[l>>>16&255]^o[u>>>8&255]^r[255&d]^a[f++],h=i[l>>>24]^t[u>>>16&255]^o[d>>>8&255]^r[255&p]^a[f++],x=i[u>>>24]^t[d>>>16&255]^o[p>>>8&255]^r[255&l]^a[f++],g=i[d>>>24]^t[p>>>16&255]^o[l>>>8&255]^r[255&u]^a[f++];p=v,l=h,u=x,d=g}v=(s[p>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^a[f++],h=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&p])^a[f++],x=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[p>>>8&255]<<8|s[255&l])^a[f++],g=(s[d>>>24]<<24|s[p>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^a[f++],e[n]=v,e[n+1]=h,e[n+2]=x,e[n+3]=g},keySize:8});n.AES=a._createHelper(v)}(),e.AES}(F(),X(),ie(),Oe(),Pe())),sn.exports),ln(),(un||(un=1,dn.exports=function(e){return function(){var n=e,a=n.lib.StreamCipher,i=n.algo,t=i.RC4=a.extend({_doReset:function(){for(var e=this._key,n=e.words,a=e.sigBytes,i=this._S=[],t=0;t<256;t++)i[t]=t;t=0;for(var o=0;t<256;t++){var r=t%a,s=n[r>>>2]>>>24-r%4*8&255;o=(o+i[t]+s)%256;var c=i[t];i[t]=i[o],i[o]=c}this._i=this._j=0},_doProcessBlock:function(e,n){e[n]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,n=this._i,a=this._j,i=0,t=0;t<4;t++){a=(a+e[n=(n+1)%256])%256;var o=e[n];e[n]=e[a],e[a]=o,i|=e[(e[n]+e[a])%256]<<24-8*t}return this._i=n,this._j=a,i}n.RC4=a._createHelper(t);var r=i.RC4Drop=t.extend({cfg:t.cfg.extend({drop:192}),_doReset:function(){t._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});n.RC4Drop=a._createHelper(r)}(),e.RC4}(F(),X(),ie(),Oe(),Pe())),dn.exports),(fn||(fn=1,mn.exports=function(e){return function(){var n=e,a=n.lib.StreamCipher,i=n.algo,t=[],o=[],r=[],s=i.Rabbit=a.extend({_doReset:function(){for(var e=this._key.words,n=this.cfg.iv,a=0;a<4;a++)e[a]=16711935&(e[a]<<8|e[a]>>>24)|4278255360&(e[a]<<24|e[a]>>>8);var i=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],t=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,a=0;a<4;a++)c.call(this);for(a=0;a<8;a++)t[a]^=i[a+4&7];if(n){var o=n.words,r=o[0],s=o[1],p=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=p>>>16|4294901760&l,d=l<<16|65535&p;for(t[0]^=p,t[1]^=u,t[2]^=l,t[3]^=d,t[4]^=p,t[5]^=u,t[6]^=l,t[7]^=d,a=0;a<4;a++)c.call(this)}},_doProcessBlock:function(e,n){var a=this._X;c.call(this),t[0]=a[0]^a[5]>>>16^a[3]<<16,t[1]=a[2]^a[7]>>>16^a[5]<<16,t[2]=a[4]^a[1]>>>16^a[7]<<16,t[3]=a[6]^a[3]>>>16^a[1]<<16;for(var i=0;i<4;i++)t[i]=16711935&(t[i]<<8|t[i]>>>24)|4278255360&(t[i]<<24|t[i]>>>8),e[n+i]^=t[i]},blockSize:4,ivSize:2});function c(){for(var e=this._X,n=this._C,a=0;a<8;a++)o[a]=n[a];for(n[0]=n[0]+1295307597+this._b|0,n[1]=n[1]+3545052371+(n[0]>>>0<o[0]>>>0?1:0)|0,n[2]=n[2]+886263092+(n[1]>>>0<o[1]>>>0?1:0)|0,n[3]=n[3]+1295307597+(n[2]>>>0<o[2]>>>0?1:0)|0,n[4]=n[4]+3545052371+(n[3]>>>0<o[3]>>>0?1:0)|0,n[5]=n[5]+886263092+(n[4]>>>0<o[4]>>>0?1:0)|0,n[6]=n[6]+1295307597+(n[5]>>>0<o[5]>>>0?1:0)|0,n[7]=n[7]+3545052371+(n[6]>>>0<o[6]>>>0?1:0)|0,this._b=n[7]>>>0<o[7]>>>0?1:0,a=0;a<8;a++){var i=e[a]+n[a],t=65535&i,s=i>>>16,c=((t*t>>>17)+t*s>>>15)+s*s,p=((4294901760&i)*i|0)+((65535&i)*i|0);r[a]=c^p}e[0]=r[0]+(r[7]<<16|r[7]>>>16)+(r[6]<<16|r[6]>>>16)|0,e[1]=r[1]+(r[0]<<8|r[0]>>>24)+r[7]|0,e[2]=r[2]+(r[1]<<16|r[1]>>>16)+(r[0]<<16|r[0]>>>16)|0,e[3]=r[3]+(r[2]<<8|r[2]>>>24)+r[1]|0,e[4]=r[4]+(r[3]<<16|r[3]>>>16)+(r[2]<<16|r[2]>>>16)|0,e[5]=r[5]+(r[4]<<8|r[4]>>>24)+r[3]|0,e[6]=r[6]+(r[5]<<16|r[5]>>>16)+(r[4]<<16|r[4]>>>16)|0,e[7]=r[7]+(r[6]<<8|r[6]>>>24)+r[5]|0}n.Rabbit=a._createHelper(s)}(),e.Rabbit}(F(),X(),ie(),Oe(),Pe())),mn.exports),(vn||(vn=1,hn.exports=function(e){return function(){var n=e,a=n.lib.StreamCipher,i=n.algo,t=[],o=[],r=[],s=i.RabbitLegacy=a.extend({_doReset:function(){var e=this._key.words,n=this.cfg.iv,a=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var t=0;t<4;t++)c.call(this);for(t=0;t<8;t++)i[t]^=a[t+4&7];if(n){var o=n.words,r=o[0],s=o[1],p=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=p>>>16|4294901760&l,d=l<<16|65535&p;for(i[0]^=p,i[1]^=u,i[2]^=l,i[3]^=d,i[4]^=p,i[5]^=u,i[6]^=l,i[7]^=d,t=0;t<4;t++)c.call(this)}},_doProcessBlock:function(e,n){var a=this._X;c.call(this),t[0]=a[0]^a[5]>>>16^a[3]<<16,t[1]=a[2]^a[7]>>>16^a[5]<<16,t[2]=a[4]^a[1]>>>16^a[7]<<16,t[3]=a[6]^a[3]>>>16^a[1]<<16;for(var i=0;i<4;i++)t[i]=16711935&(t[i]<<8|t[i]>>>24)|4278255360&(t[i]<<24|t[i]>>>8),e[n+i]^=t[i]},blockSize:4,ivSize:2});function c(){for(var e=this._X,n=this._C,a=0;a<8;a++)o[a]=n[a];for(n[0]=n[0]+1295307597+this._b|0,n[1]=n[1]+3545052371+(n[0]>>>0<o[0]>>>0?1:0)|0,n[2]=n[2]+886263092+(n[1]>>>0<o[1]>>>0?1:0)|0,n[3]=n[3]+1295307597+(n[2]>>>0<o[2]>>>0?1:0)|0,n[4]=n[4]+3545052371+(n[3]>>>0<o[3]>>>0?1:0)|0,n[5]=n[5]+886263092+(n[4]>>>0<o[4]>>>0?1:0)|0,n[6]=n[6]+1295307597+(n[5]>>>0<o[5]>>>0?1:0)|0,n[7]=n[7]+3545052371+(n[6]>>>0<o[6]>>>0?1:0)|0,this._b=n[7]>>>0<o[7]>>>0?1:0,a=0;a<8;a++){var i=e[a]+n[a],t=65535&i,s=i>>>16,c=((t*t>>>17)+t*s>>>15)+s*s,p=((4294901760&i)*i|0)+((65535&i)*i|0);r[a]=c^p}e[0]=r[0]+(r[7]<<16|r[7]>>>16)+(r[6]<<16|r[6]>>>16)|0,e[1]=r[1]+(r[0]<<8|r[0]>>>24)+r[7]|0,e[2]=r[2]+(r[1]<<16|r[1]>>>16)+(r[0]<<16|r[0]>>>16)|0,e[3]=r[3]+(r[2]<<8|r[2]>>>24)+r[1]|0,e[4]=r[4]+(r[3]<<16|r[3]>>>16)+(r[2]<<16|r[2]>>>16)|0,e[5]=r[5]+(r[4]<<8|r[4]>>>24)+r[3]|0,e[6]=r[6]+(r[5]<<16|r[5]>>>16)+(r[4]<<16|r[4]>>>16)|0,e[7]=r[7]+(r[6]<<8|r[6]>>>24)+r[5]|0}n.RabbitLegacy=a._createHelper(s)}(),e.RabbitLegacy}(F(),X(),ie(),Oe(),Pe())),hn.exports),bn())),q.exports),_n=I(jn);!function(e){e.LOGIN="login",e.LINK="link",e.SET="set",e.CHANGE="change",e.INFO="info",e.DEV="dev",e.UNLINK="unlink",e.PERMISSION="permission",e.ADD_USER="add-user",e.ADD="add",e.CLONE="clone",e.PUSH="push",e.HELP="--help",e.HELP_FLAG="-h",e.VERSION="--version",e.VERSION_FLAG="-v"}(wn||(wn={})),function(e){e.WORKFLOW="-w",e.SECRET="-s",e.USER_ID="-u",e.PERMISSIONS="-p",e.COMPANY_ID="-c",e.EMAIL="-e",e.PHONE="-m",e.SAVED_VALUE="-ws",e.VISIBILITY="-v"}(kn||(kn={}));const Sn={changeAndThrow(...e){throw new Error(e.join("\n"))},error(...e){console.error("[31m[MSTATE][ERROR] [0m",...e)},success(...e){console.log("[32m[MSTATE] [0m",...e)},info(e,n){console.log(" ",e.padEnd(30)+n.padEnd(60))}};function En(n){try{e.mkdirSync(O,{recursive:!0});const a=function(e){const n=JSON.stringify(e);return _n.AES.encrypt(n,Bn()).toString()}({secret:n});e.writeFileSync(T,a,{flag:"w",mode:384})}catch(e){}}function An(){try{const n=e.readFileSync(T,"utf8"),a=On(kn.SECRET)||function(e){const n=_n.AES.decrypt(e,Bn()),a=n.toString(_n.enc.Utf8);return JSON.parse(a)}(n)?.secret;return a||Sn.changeAndThrow("Please login or Parameter secret is required"),a}catch(e){const n=On(kn.SECRET);if(n)return n;Sn.changeAndThrow("Please login or Parameter secret is required")}}const Cn=Object.entries(kn);function On(e,n=!1){const a=process.argv,i=a.indexOf(e),t=-1!==i?a[i+1]??"":"";if(n&&!t){const[n]=Cn.find((([,n])=>e===n))??[];Sn.changeAndThrow(`Value for ${n} is required. \n\t\t Use '${e}' flag for assigning value`)}return t}function Tn(e){const n=process.argv;return n.includes(e.toUpperCase())||n.includes(e.toLowerCase())}function Bn(){return B+function(){const e=a.networkInterfaces();return Object.values(e).flat().filter((e=>!e?.internal)).map((e=>e?.mac))[0]}()}function Pn(e){if(null===e)return e;if(Array.isArray(e)){const n=[];for(const a of e)n.push(Pn(a));return n}if("object"==typeof e){const n=Object.entries(e).sort((([,e])=>"string"==typeof e||"number"==typeof e?-1:1));let a={};for(const[e,i]of n)a[e]=Pn(i);return a}return e}const zn=new class{constructor(){}async cloneActions(){const e=On(kn.WORKFLOW,!0),a=An();const i=`${P}/action/config/all/${`?workflow=${e}&hasNickName=true`}`,t=await fetch(i,{headers:{"Content-Type":"application/json","secret-key":a}}),o=await t.json();if(o?.errors)Sn.changeAndThrow("Invalid Parameters for Action: ",...o?.errors);else{const a=Pn(o?.data),i=n.resolve(e,"actions");A.mkdirSync(i,{recursive:!0}),a.forEach((e=>{try{const a=n.join(i,`${e?.name}.json`);A.writeFileSync(a,JSON.stringify(e,null,2)),Sn.success("file created at",i,`${e?.name}.json`)}catch(e){Sn.error(e.message)}}))}}async saveToDB(){const e=On(kn.WORKFLOW,!0),a=An(),i=n.resolve(e,"actions");let t=`?workflow=${e}`;A.readdir(i,((e,o)=>{o&&o.forEach((async e=>{const o=n.join(i,e),r=A.readFileSync(o,"utf8"),s=`${P}/action/config/${t}`,c=await fetch(s,{method:"PUT",headers:{"secret-key":a,"Content-Type":"application/json"},body:r}),p=await c.json(),l=JSON.parse(r);p?.errors?Sn.error(`Invalid Parameters for Action ${l.name}: `,...p?.errors):Sn.success(`Action ${l.name} Updated successfully`)}))}))}};const In=new class{constructor(){}async addNewWorkflow(e,a){try{const i=An();if(!a)return void Sn.changeAndThrow("Parameter file is required");if(!i)return void Sn.changeAndThrow("Parameter secret is required");const t=n.resolve(a),o=A.readFileSync(t,"utf8");let r="";e&&(r+=`path=${e}`),r.length&&(r="?"+r);const s=`${P}/workflow/config/new${r}`,c=await fetch(s,{method:"POST",headers:{"secret-key":i,"Content-Type":"application/json"},body:o}),p=await c.json();p?.errors?Sn.changeAndThrow("Invalid Parameters for Workflow: ",...p?.errors):Sn.success("Workflow Added successfully",p?.data)}catch(e){Sn.changeAndThrow(e.message)}}async updateWorkflowToDB(){const e=On(kn.WORKFLOW,!0),a=An(),i=n.resolve(e),t=n.join(i,"workflow.json"),o=A.readFileSync(t,"utf8");const r=`${P}/workflow/config${`?workflow=${e}`}`,s=await fetch(r,{method:"PUT",headers:{"secret-key":a,"Content-Type":"application/json"},body:o}),c=await s.json();return c?.errors?Sn.changeAndThrow("Invalid Parameters for Server: ",...c?.errors):Sn.success("Workflow Uploaded successfully \n",c?.data),c}async updateWorkflowProperty(){const e=On(kn.WORKFLOW,!0),n=On(kn.VISIBILITY,!1)||"private",a=An();const i=`${P}/workflow/property${`?workflow=${e}`}`,t=await fetch(i,{method:"PUT",headers:{"secret-key":a,"Content-Type":"application/json"},body:JSON.stringify({type:n})}),o=await t.json();return o?.errors?Sn.changeAndThrow("Invalid Parameters for Server: ",...o?.errors):Sn.success("Workflow Updated successfully \n"),o}async cloneWorkflow(){const e=On(kn.WORKFLOW,!0),a=An(),i=`${P}/workflow/config/?workflow=${e}&hasNickName=true`,t=await fetch(i,{method:"GET",headers:{"Content-Type":"application/json","secret-key":a}}),o=await t.json();if(o?.errors)Sn.changeAndThrow("Invalid Parameters for Workflow: ",...o?.errors);else{const a=Pn(o?.data);a&&delete a?.id;const i=n.resolve(e);A.mkdirSync(i,{recursive:!0});const t=n.join(i,"workflow.json");A.writeFileSync(t,JSON.stringify(a,null,2)),Sn.success("Workflow cloned successfully")}}async copyWorkflow(){try{const e=On(kn.WORKFLOW,!0);let n="",a="";const i=("/"+e).replace(/\/([^\/]*)$/,"");i&&(n=i.slice(1,i.length)),a=e+"/workflow.json",await this.addNewWorkflow(n,a)}catch(e){Sn.changeAndThrow(e.message)}}async resetCache(){const e=On(kn.WORKFLOW,!0),n=An(),a=`${P}/cache/reset/?workflow=${e}`,i=await fetch(a,{method:"DELETE",headers:{"Content-Type":"application/json","secret-key":n}}),t=await i.json();t?.errors?Sn.changeAndThrow("Invalid Parameters for Workflow: ",...t?.errors):Sn.success("Workflow updated successfully")}};const qn=new class{constructor(){}async linkToMobioffice(e){const n=On(kn.WORKFLOW,!0),a=An(),i=On(kn.COMPANY_ID,!0),t=On(kn.USER_ID,!0),o=await fetch("https://server.mobioffice.io/api/Mstate/workFlow/user",{method:"POST",headers:{"secret-key":a,"Content-Type":"application/json"},body:JSON.stringify({action:e.toUpperCase(),workflow:n,secret:a,nickname:i,user:t})}),r=await o.json();o.status>=400?Sn.changeAndThrow("Invalid Parameters for Linking: ",o.statusText):Sn.success("Workflow Added successfully",r?.message)}};const Rn=new class{constructor(){}async cloneEnvironments(){const e=On(kn.WORKFLOW,!0),a=An();const i=`${P}/env/${`?workflow=${e}&hasNickName=true`}`,t=await fetch(i,{headers:{"Content-Type":"application/json","secret-key":a}}),o=await t.json();if(o?.errors)Sn.changeAndThrow("Invalid Parameters for Environment: ",...o?.errors);else{const a=o?.data,i=n.resolve(e,"environment.json");A.writeFileSync(i,JSON.stringify(a,null,2))}}async saveToDB(){const e=On(kn.WORKFLOW,!0),a=An(),i=n.resolve(e,"environment.json"),t=A.readFileSync(i,"utf8"),o=JSON.parse(t);try{const n=`${P}/env`,i=await fetch(n,{method:"POST",headers:{"secret-key":a,"Content-Type":"application/json"},body:JSON.stringify({workflow:e,env:o})}),t=await i.json();t?.errors?Sn.changeAndThrow("Invalid Parameters for Environment: ",...t?.errors):Sn.success("Environments Updated successfully")}catch(e){Sn.changeAndThrow(e.message)}}};let Dn,Nn;function Fn(){return void 0===Dn&&(Dn=function(){try{return l.statSync("/.dockerenv"),!0}catch{return!1}}()||function(){try{return l.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch{return!1}}()),Dn}function Ln(){return void 0===Nn&&(Nn=(()=>{try{return l.statSync("/run/.containerenv"),!0}catch{return!1}})()||Fn()),Nn}const Un=()=>{if("linux"!==i.platform)return!1;if(p.release().toLowerCase().includes("microsoft"))return!Ln();try{return!!l.readFileSync("/proc/version","utf8").toLowerCase().includes("microsoft")&&!Ln()}catch{return!1}};var Mn=i.env.__IS_WSL_TEST__?Un:Un();function Hn(e,n,a){const i=a=>Object.defineProperty(e,n,{value:a,enumerable:!0,writable:!0});return Object.defineProperty(e,n,{configurable:!0,enumerable:!0,get(){const e=a();return i(e),e},set(e){i(e)}}),e}const $n=u.promisify(s.execFile);const Wn=u.promisify(s.execFile);async function Gn(e){return async function(e,{humanReadableOutput:n=!0}={}){if("darwin"!==i.platform)throw new Error("macOS only");const a=n?[]:["-ss"],{stdout:t}=await Wn("osascript",["-e",e,a]);return t.trim()}(`tell application "Finder" to set app_path to application file id "${e}" as string\ntell application "System Events" to get value of property list item "CFBundleName" of property list file (app_path & ":Contents:Info.plist")`)}const Kn=u.promisify(s.execFile),Vn={AppXq0fevzme2pys62n3e0fbqa7peapykr8v:{name:"Edge",id:"com.microsoft.edge.old"},MSEdgeDHTML:{name:"Edge",id:"com.microsoft.edge"},MSEdgeHTM:{name:"Edge",id:"com.microsoft.edge"},"IE.HTTP":{name:"Internet Explorer",id:"com.microsoft.ie"},FirefoxURL:{name:"Firefox",id:"org.mozilla.firefox"},ChromeHTML:{name:"Chrome",id:"com.google.chrome"},BraveHTML:{name:"Brave",id:"com.brave.Browser"},BraveBHTML:{name:"Brave Beta",id:"com.brave.Browser.beta"},BraveSSHTM:{name:"Brave Nightly",id:"com.brave.Browser.nightly"}};class Jn extends Error{}const Zn=u.promisify(s.execFile);async function Xn(){if("darwin"===i.platform){const e=await async function(){if("darwin"!==i.platform)throw new Error("macOS only");const{stdout:e}=await $n("defaults",["read","com.apple.LaunchServices/com.apple.launchservices.secure","LSHandlers"]),n=/LSHandlerRoleAll = "(?!-)(?<id>[^"]+?)";\s+?LSHandlerURLScheme = (?:http|https);/.exec(e);return n?.groups.id??"com.apple.Safari"}();return{name:await Gn(e),id:e}}if("linux"===i.platform){const{stdout:e}=await Zn("xdg-mime",["query","default","x-scheme-handler/http"]),n=e.trim();return{name:n.replace(/.desktop$/,"").replace("-"," ").toLowerCase().replaceAll(/(?:^|\s|-)\S/g,(e=>e.toUpperCase())),id:n}}if("win32"===i.platform)return async function(e=Kn){const{stdout:n}=await e("reg",["QUERY"," HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\Shell\\Associations\\UrlAssociations\\http\\UserChoice","/v","ProgId"]),a=/ProgId\s*REG_SZ\s*(?<id>\S+)/.exec(n);if(!a)throw new Jn(`Cannot find Windows browser in stdout: ${JSON.stringify(n)}`);const{id:i}=a.groups,t=Vn[i];if(!t)throw new Jn(`Unknown browser ID: ${i}`);return t}();throw new Error("Only macOS, Linux, and Windows are supported")}const Yn=o.dirname(r.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:S&&"SCRIPT"===S.tagName.toUpperCase()&&S.src||new URL("index.js",document.baseURI).href)),Qn=o.join(Yn,"xdg-open"),{platform:ea,arch:na}=i,aa=(()=>{const e="/mnt/";let n;return async function(){if(n)return n;const a="/etc/wsl.conf";let i=!1;try{await c.access(a,c.constants.F_OK),i=!0}catch{}if(!i)return e;const t=await c.readFile(a,{encoding:"utf8"}),o=/(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(t);return o?(n=o.groups.mountPoint.trim(),n=n.endsWith("/")?n:`${n}/`,n):e}})(),ia=async(e,n)=>{let a;for(const i of e)try{return await n(i)}catch(e){a=e}throw a},ta=async e=>{if(e={wait:!1,background:!1,newInstance:!1,allowNonzeroExitCode:!1,...e},Array.isArray(e.app))return ia(e.app,(n=>ta({...e,app:n})));let n,{name:a,arguments:o=[]}=e.app??{};if(o=[...o],Array.isArray(a))return ia(a,(n=>ta({...e,app:{name:n,arguments:o}})));if("browser"===a||"browserPrivate"===a){const n={"com.google.chrome":"chrome","google-chrome.desktop":"chrome","org.mozilla.firefox":"firefox","firefox.desktop":"firefox","com.microsoft.msedge":"edge","com.microsoft.edge":"edge","microsoft-edge.desktop":"edge"},i={chrome:"--incognito",firefox:"--private-window",edge:"--inPrivate"},t=await Xn();if(t.id in n){const r=n[t.id];return"browserPrivate"===a&&o.push(i[r]),ta({...e,app:{name:sa[r],arguments:o}})}throw new Error(`${t.name} is not supported as a default browser`)}const r=[],p={};if("darwin"===ea)n="open",e.wait&&r.push("--wait-apps"),e.background&&r.push("--background"),e.newInstance&&r.push("--new"),a&&r.push("-a",a);else if("win32"===ea||Mn&&!Ln()&&!a){const s=await aa();n=Mn?`${s}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`:`${i.env.SYSTEMROOT||i.env.windir||"C:\\Windows"}\\System32\\WindowsPowerShell\\v1.0\\powershell`,r.push("-NoProfile","-NonInteractive","-ExecutionPolicy","Bypass","-EncodedCommand"),Mn||(p.windowsVerbatimArguments=!0);const c=["Start"];e.wait&&c.push("-Wait"),a?(c.push(`"\`"${a}\`""`),e.target&&o.push(e.target)):e.target&&c.push(`"${e.target}"`),o.length>0&&(o=o.map((e=>`"\`"${e}\`""`)),c.push("-ArgumentList",o.join(","))),e.target=t.Buffer.from(c.join(" "),"utf16le").toString("base64")}else{if(a)n=a;else{const e=!Yn||"/"===Yn;let a=!1;try{await c.access(Qn,c.constants.X_OK),a=!0}catch{}n=i.versions.electron??("android"===ea||e||!a)?"xdg-open":Qn}o.length>0&&r.push(...o),e.wait||(p.stdio="ignore",p.detached=!0)}"darwin"===ea&&o.length>0&&r.push("--args",...o),e.target&&r.push(e.target);const l=s.spawn(n,r,p);return e.wait?new Promise(((n,a)=>{l.once("error",a),l.once("close",(i=>{!e.allowNonzeroExitCode&&i>0?a(new Error(`Exited with code ${i}`)):n(l)}))})):(l.unref(),l)};function oa(e){if("string"==typeof e||Array.isArray(e))return e;const{[na]:n}=e;if(!n)throw new Error(`${na} is not supported`);return n}function ra({[ea]:e},{wsl:n}){if(n&&Mn)return oa(n);if(!e)throw new Error(`${ea} is not supported`);return oa(e)}const sa={};Hn(sa,"chrome",(()=>ra({darwin:"google chrome",win32:"chrome",linux:["google-chrome","google-chrome-stable","chromium"]},{wsl:{ia32:"/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",x64:["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe","/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]}}))),Hn(sa,"firefox",(()=>ra({darwin:"firefox",win32:"C:\\Program Files\\Mozilla Firefox\\firefox.exe",linux:"firefox"},{wsl:"/mnt/c/Program Files/Mozilla Firefox/firefox.exe"}))),Hn(sa,"edge",(()=>ra({darwin:"microsoft edge",win32:"msedge",linux:["microsoft-edge","microsoft-edge-dev"]},{wsl:"/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"}))),Hn(sa,"browser",(()=>"browser")),Hn(sa,"browserPrivate",(()=>"browserPrivate"));var ca,pa,la={exports:{}},ua={exports:{}};function da(){if(pa)return ca;pa=1;var e=n.relative;ca=function(e){if(!e)throw new TypeError("argument namespace is required");var n=r(u()[1])[0];function a(e){o.call(a,e)}return a._file=n,a._ignored=function(e){if(process.noDeprecation)return!0;return i(process.env.NO_DEPRECATION||"",e)}(e),a._namespace=e,a._traced=function(e){if(process.traceDeprecation)return!0;return i(process.env.TRACE_DEPRECATION||"",e)}(e),a._warned=Object.create(null),a.function=f,a.property=m,a};var a=process.cwd();function i(e,n){for(var a=e.split(/[ ,]+/),i=String(n).toLowerCase(),t=0;t<a.length;t++){var o=a[t];if(o&&("*"===o||o.toLowerCase()===i))return!0}return!1}function t(e){var n=this.name+": "+this.namespace;this.message&&(n+=" deprecated "+this.message);for(var a=0;a<e.length;a++)n+="\n at "+e[a].toString();return n}function o(e,n){var a=function(e,n){return("function"!=typeof e.listenerCount?e.listeners(n).length:e.listenerCount(n))>0}(process,"deprecation");if(a||!this._ignored){var i,t,o,l,d=0,f=!1,m=u(),h=this._file;for(n?(l=n,(o=r(m[1])).name=l.name,h=o[0]):o=l=r(m[d=2]);d<m.length;d++)if((t=(i=r(m[d]))[0])===h)f=!0;else if(t===this._file)h=this._file;else if(f)break;var x=i?l.join(":")+"__"+i.join(":"):void 0;if(void 0===x||!(x in this._warned)){this._warned[x]=!0;var g=e;if(g||(g=o!==l&&o.name?s(o):s(l)),a){var b=v(this._namespace,g,m.slice(d));process.emit("deprecation",b)}else{var y=(process.stderr.isTTY?p:c).call(this,g,i,m.slice(d));process.stderr.write(y+"\n","utf8")}}}}function r(e){var n=e.getFileName()||"<anonymous>",a=e.getLineNumber(),i=e.getColumnNumber();e.isEval()&&(n=e.getEvalOrigin()+", "+n);var t=[n,a,i];return t.callSite=e,t.name=e.getFunctionName(),t}function s(e){var n=e.callSite,a=e.name;a||(a="<anonymous@"+l(e)+">");var i=n.getThis(),t=i&&n.getTypeName();return"Object"===t&&(t=void 0),"Function"===t&&(t=i.name||t),t&&n.getMethodName()?t+"."+a:a}function c(e,n,a){var i=(new Date).toUTCString()+" "+this._namespace+" deprecated "+e;if(this._traced){for(var t=0;t<a.length;t++)i+="\n at "+a[t].toString();return i}return n&&(i+=" at "+l(n)),i}function p(e,n,a){var i="[36;1m"+this._namespace+"[22;39m [33;1mdeprecated[22;39m [0m"+e+"[39m";if(this._traced){for(var t=0;t<a.length;t++)i+="\n [36mat "+a[t].toString()+"[39m";return i}return n&&(i+=" [36m"+l(n)+"[39m"),i}function l(n){return e(a,n[0])+":"+n[1]+":"+n[2]}function u(){var e=Error.stackTraceLimit,n={},a=Error.prepareStackTrace;Error.prepareStackTrace=d,Error.stackTraceLimit=Math.max(10,e),Error.captureStackTrace(n);var i=n.stack.slice(1);return Error.prepareStackTrace=a,Error.stackTraceLimit=e,i}function d(e,n){return n}function f(e,n){if("function"!=typeof e)throw new TypeError("argument fn must be a function");var a=function(e){for(var n="",a=0;a<e;a++)n+=", arg"+a;return n.substr(2)}(e.length),i=r(u()[1]);return i.name=e.name,new Function("fn","log","deprecate","message","site",'"use strict"\nreturn function ('+a+") {log.call(deprecate, message, site)\nreturn fn.apply(this, arguments)\n}")(e,o,this,n,i)}function m(e,n,a){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("argument obj must be object");var i=Object.getOwnPropertyDescriptor(e,n);if(!i)throw new TypeError("must call property on owner object");if(!i.configurable)throw new TypeError("property must be configurable");var t=this,s=r(u()[1]);s.name=n,"value"in i&&(i=function(e,n,a){var i=Object.getOwnPropertyDescriptor(e,n),t=i.value;return i.get=function(){return t},i.writable&&(i.set=function(e){return t=e}),delete i.value,delete i.writable,Object.defineProperty(e,n,i),i}(e,n));var c=i.get,p=i.set;"function"==typeof c&&(i.get=function(){return o.call(t,a,s),c.apply(this,arguments)}),"function"==typeof p&&(i.set=function(){return o.call(t,a,s),p.apply(this,arguments)}),Object.defineProperty(e,n,i)}function v(e,n,a){var i,o=new Error;return Object.defineProperty(o,"constructor",{value:v}),Object.defineProperty(o,"message",{configurable:!0,enumerable:!1,value:n,writable:!0}),Object.defineProperty(o,"name",{enumerable:!1,configurable:!0,value:"DeprecationError",writable:!0}),Object.defineProperty(o,"namespace",{configurable:!0,enumerable:!1,value:e,writable:!0}),Object.defineProperty(o,"stack",{configurable:!0,enumerable:!1,get:function(){return void 0!==i?i:i=t.call(this,a)},set:function(e){i=e}}),o}return ca}var fa,ma={exports:{}};
|
19
|
+
return function(n){var a=e,i=a.lib,t=i.WordArray,o=i.Hasher,r=a.algo,s=t.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=t.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),p=t.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=t.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=t.create([0,1518500249,1859775393,2400959708,2840853838]),d=t.create([1352829926,1548603684,1836072691,2053994217,0]),f=r.RIPEMD160=o.extend({_doReset:function(){this._hash=t.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,n){for(var a=0;a<16;a++){var i=n+a,t=e[i];e[i]=16711935&(t<<8|t>>>24)|4278255360&(t<<24|t>>>8)}var o,r,f,y,w,k,j,_,S,E,A,C=this._hash.words,O=u.words,T=d.words,B=s.words,P=c.words,z=p.words,I=l.words;for(k=o=C[0],j=r=C[1],_=f=C[2],S=y=C[3],E=w=C[4],a=0;a<80;a+=1)A=o+e[n+B[a]]|0,A+=a<16?m(r,f,y)+O[0]:a<32?v(r,f,y)+O[1]:a<48?h(r,f,y)+O[2]:a<64?x(r,f,y)+O[3]:g(r,f,y)+O[4],A=(A=b(A|=0,z[a]))+w|0,o=w,w=y,y=b(f,10),f=r,r=A,A=k+e[n+P[a]]|0,A+=a<16?g(j,_,S)+T[0]:a<32?x(j,_,S)+T[1]:a<48?h(j,_,S)+T[2]:a<64?v(j,_,S)+T[3]:m(j,_,S)+T[4],A=(A=b(A|=0,I[a]))+E|0,k=E,E=S,S=b(_,10),_=j,j=A;A=C[1]+f+S|0,C[1]=C[2]+y+E|0,C[2]=C[3]+w+k|0,C[3]=C[4]+o+j|0,C[4]=C[0]+r+_|0,C[0]=A},_doFinalize:function(){var e=this._data,n=e.words,a=8*this._nDataBytes,i=8*e.sigBytes;n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(n.length+1),this._process();for(var t=this._hash,o=t.words,r=0;r<5;r++){var s=o[r];o[r]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return t},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function m(e,n,a){return e^n^a}function v(e,n,a){return e&n|~e&a}function h(e,n,a){return(e|~n)^a}function x(e,n,a){return e&a|n&~a}function g(e,n,a){return e^(n|~a)}function b(e,n){return e<<n|e>>>32-n}a.RIPEMD160=o._createHelper(f),a.HmacRIPEMD160=o._createHmacHelper(f)}(),e.RIPEMD160}(F())),we.exports),_e(),(Se||(Se=1,Ee.exports=function(e){return i=(a=(n=e).lib).Base,t=a.WordArray,r=(o=n.algo).SHA256,s=o.HMAC,c=o.PBKDF2=i.extend({cfg:i.extend({keySize:4,hasher:r,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,n){for(var a=this.cfg,i=s.create(a.hasher,e),o=t.create(),r=t.create([1]),c=o.words,p=r.words,l=a.keySize,u=a.iterations;c.length<l;){var d=i.update(n).finalize(r);i.reset();for(var f=d.words,m=f.length,v=d,h=1;h<u;h++){v=i.finalize(v),i.reset();for(var x=v.words,g=0;g<m;g++)f[g]^=x[g]}o.concat(d),p[0]++}return o.sigBytes=4*l,o}}),n.PBKDF2=function(e,n,a){return c.create(a).compute(e,n)},e.PBKDF2;var n,a,i,t,o,r,s,c}(F(),pe(),_e())),Ee.exports),Oe(),Pe(),qe(),Ne(),Ue(),$e(),(We||(We=1,Ge.exports=function(e){return e.mode.ECB=((n=e.lib.BlockCipherMode.extend()).Encryptor=n.extend({processBlock:function(e,n){this._cipher.encryptBlock(e,n)}}),n.Decryptor=n.extend({processBlock:function(e,n){this._cipher.decryptBlock(e,n)}}),n),e.mode.ECB;var n}(F(),Pe())),Ge.exports),(Ke||(Ke=1,Ve.exports=function(e){return e.pad.AnsiX923={pad:function(e,n){var a=e.sigBytes,i=4*n,t=i-a%i,o=a+t-1;e.clamp(),e.words[o>>>2]|=t<<24-o%4*8,e.sigBytes+=t},unpad:function(e){var n=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=n}},e.pad.Ansix923}(F(),Pe())),Ve.exports),(Je||(Je=1,Ze.exports=function(e){return e.pad.Iso10126={pad:function(n,a){var i=4*a,t=i-n.sigBytes%i;n.concat(e.lib.WordArray.random(t-1)).concat(e.lib.WordArray.create([t<<24],1))},unpad:function(e){var n=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=n}},e.pad.Iso10126}(F(),Pe())),Ze.exports),(Xe||(Xe=1,Ye.exports=function(e){return e.pad.Iso97971={pad:function(n,a){n.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(n,a)},unpad:function(n){e.pad.ZeroPadding.unpad(n),n.sigBytes--}},e.pad.Iso97971}(F(),Pe())),Ye.exports),(Qe||(Qe=1,en.exports=function(e){return e.pad.ZeroPadding={pad:function(e,n){var a=4*n;e.clamp(),e.sigBytes+=a-(e.sigBytes%a||a)},unpad:function(e){var n=e.words,a=e.sigBytes-1;for(a=e.sigBytes-1;a>=0;a--)if(n[a>>>2]>>>24-a%4*8&255){e.sigBytes=a+1;break}}},e.pad.ZeroPadding}(F(),Pe())),en.exports),(nn||(nn=1,an.exports=function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding}(F(),Pe())),an.exports),(tn||(tn=1,on.exports=function(e){return a=(n=e).lib.CipherParams,i=n.enc.Hex,n.format.Hex={stringify:function(e){return e.ciphertext.toString(i)},parse:function(e){var n=i.parse(e);return a.create({ciphertext:n})}},e.format.Hex;var n,a,i}(F(),Pe())),on.exports),(rn||(rn=1,sn.exports=function(e){return function(){var n=e,a=n.lib.BlockCipher,i=n.algo,t=[],o=[],r=[],s=[],c=[],p=[],l=[],u=[],d=[],f=[];!function(){for(var e=[],n=0;n<256;n++)e[n]=n<128?n<<1:n<<1^283;var a=0,i=0;for(n=0;n<256;n++){var m=i^i<<1^i<<2^i<<3^i<<4;m=m>>>8^255&m^99,t[a]=m,o[m]=a;var v=e[a],h=e[v],x=e[h],g=257*e[m]^16843008*m;r[a]=g<<24|g>>>8,s[a]=g<<16|g>>>16,c[a]=g<<8|g>>>24,p[a]=g,g=16843009*x^65537*h^257*v^16843008*a,l[m]=g<<24|g>>>8,u[m]=g<<16|g>>>16,d[m]=g<<8|g>>>24,f[m]=g,a?(a=v^e[e[e[x^v]]],i^=e[e[i]]):a=i=1}}();var m=[0,1,2,4,8,16,32,64,128,27,54],v=i.AES=a.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,n=e.words,a=e.sigBytes/4,i=4*((this._nRounds=a+6)+1),o=this._keySchedule=[],r=0;r<i;r++)r<a?o[r]=n[r]:(p=o[r-1],r%a?a>6&&r%a==4&&(p=t[p>>>24]<<24|t[p>>>16&255]<<16|t[p>>>8&255]<<8|t[255&p]):(p=t[(p=p<<8|p>>>24)>>>24]<<24|t[p>>>16&255]<<16|t[p>>>8&255]<<8|t[255&p],p^=m[r/a|0]<<24),o[r]=o[r-a]^p);for(var s=this._invKeySchedule=[],c=0;c<i;c++){if(r=i-c,c%4)var p=o[r];else p=o[r-4];s[c]=c<4||r<=4?p:l[t[p>>>24]]^u[t[p>>>16&255]]^d[t[p>>>8&255]]^f[t[255&p]]}}},encryptBlock:function(e,n){this._doCryptBlock(e,n,this._keySchedule,r,s,c,p,t)},decryptBlock:function(e,n){var a=e[n+1];e[n+1]=e[n+3],e[n+3]=a,this._doCryptBlock(e,n,this._invKeySchedule,l,u,d,f,o),a=e[n+1],e[n+1]=e[n+3],e[n+3]=a},_doCryptBlock:function(e,n,a,i,t,o,r,s){for(var c=this._nRounds,p=e[n]^a[0],l=e[n+1]^a[1],u=e[n+2]^a[2],d=e[n+3]^a[3],f=4,m=1;m<c;m++){var v=i[p>>>24]^t[l>>>16&255]^o[u>>>8&255]^r[255&d]^a[f++],h=i[l>>>24]^t[u>>>16&255]^o[d>>>8&255]^r[255&p]^a[f++],x=i[u>>>24]^t[d>>>16&255]^o[p>>>8&255]^r[255&l]^a[f++],g=i[d>>>24]^t[p>>>16&255]^o[l>>>8&255]^r[255&u]^a[f++];p=v,l=h,u=x,d=g}v=(s[p>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^a[f++],h=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&p])^a[f++],x=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[p>>>8&255]<<8|s[255&l])^a[f++],g=(s[d>>>24]<<24|s[p>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^a[f++],e[n]=v,e[n+1]=h,e[n+2]=x,e[n+3]=g},keySize:8});n.AES=a._createHelper(v)}(),e.AES}(F(),X(),ie(),Oe(),Pe())),sn.exports),ln(),(un||(un=1,dn.exports=function(e){return function(){var n=e,a=n.lib.StreamCipher,i=n.algo,t=i.RC4=a.extend({_doReset:function(){for(var e=this._key,n=e.words,a=e.sigBytes,i=this._S=[],t=0;t<256;t++)i[t]=t;t=0;for(var o=0;t<256;t++){var r=t%a,s=n[r>>>2]>>>24-r%4*8&255;o=(o+i[t]+s)%256;var c=i[t];i[t]=i[o],i[o]=c}this._i=this._j=0},_doProcessBlock:function(e,n){e[n]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,n=this._i,a=this._j,i=0,t=0;t<4;t++){a=(a+e[n=(n+1)%256])%256;var o=e[n];e[n]=e[a],e[a]=o,i|=e[(e[n]+e[a])%256]<<24-8*t}return this._i=n,this._j=a,i}n.RC4=a._createHelper(t);var r=i.RC4Drop=t.extend({cfg:t.cfg.extend({drop:192}),_doReset:function(){t._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});n.RC4Drop=a._createHelper(r)}(),e.RC4}(F(),X(),ie(),Oe(),Pe())),dn.exports),(fn||(fn=1,mn.exports=function(e){return function(){var n=e,a=n.lib.StreamCipher,i=n.algo,t=[],o=[],r=[],s=i.Rabbit=a.extend({_doReset:function(){for(var e=this._key.words,n=this.cfg.iv,a=0;a<4;a++)e[a]=16711935&(e[a]<<8|e[a]>>>24)|4278255360&(e[a]<<24|e[a]>>>8);var i=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],t=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,a=0;a<4;a++)c.call(this);for(a=0;a<8;a++)t[a]^=i[a+4&7];if(n){var o=n.words,r=o[0],s=o[1],p=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=p>>>16|4294901760&l,d=l<<16|65535&p;for(t[0]^=p,t[1]^=u,t[2]^=l,t[3]^=d,t[4]^=p,t[5]^=u,t[6]^=l,t[7]^=d,a=0;a<4;a++)c.call(this)}},_doProcessBlock:function(e,n){var a=this._X;c.call(this),t[0]=a[0]^a[5]>>>16^a[3]<<16,t[1]=a[2]^a[7]>>>16^a[5]<<16,t[2]=a[4]^a[1]>>>16^a[7]<<16,t[3]=a[6]^a[3]>>>16^a[1]<<16;for(var i=0;i<4;i++)t[i]=16711935&(t[i]<<8|t[i]>>>24)|4278255360&(t[i]<<24|t[i]>>>8),e[n+i]^=t[i]},blockSize:4,ivSize:2});function c(){for(var e=this._X,n=this._C,a=0;a<8;a++)o[a]=n[a];for(n[0]=n[0]+1295307597+this._b|0,n[1]=n[1]+3545052371+(n[0]>>>0<o[0]>>>0?1:0)|0,n[2]=n[2]+886263092+(n[1]>>>0<o[1]>>>0?1:0)|0,n[3]=n[3]+1295307597+(n[2]>>>0<o[2]>>>0?1:0)|0,n[4]=n[4]+3545052371+(n[3]>>>0<o[3]>>>0?1:0)|0,n[5]=n[5]+886263092+(n[4]>>>0<o[4]>>>0?1:0)|0,n[6]=n[6]+1295307597+(n[5]>>>0<o[5]>>>0?1:0)|0,n[7]=n[7]+3545052371+(n[6]>>>0<o[6]>>>0?1:0)|0,this._b=n[7]>>>0<o[7]>>>0?1:0,a=0;a<8;a++){var i=e[a]+n[a],t=65535&i,s=i>>>16,c=((t*t>>>17)+t*s>>>15)+s*s,p=((4294901760&i)*i|0)+((65535&i)*i|0);r[a]=c^p}e[0]=r[0]+(r[7]<<16|r[7]>>>16)+(r[6]<<16|r[6]>>>16)|0,e[1]=r[1]+(r[0]<<8|r[0]>>>24)+r[7]|0,e[2]=r[2]+(r[1]<<16|r[1]>>>16)+(r[0]<<16|r[0]>>>16)|0,e[3]=r[3]+(r[2]<<8|r[2]>>>24)+r[1]|0,e[4]=r[4]+(r[3]<<16|r[3]>>>16)+(r[2]<<16|r[2]>>>16)|0,e[5]=r[5]+(r[4]<<8|r[4]>>>24)+r[3]|0,e[6]=r[6]+(r[5]<<16|r[5]>>>16)+(r[4]<<16|r[4]>>>16)|0,e[7]=r[7]+(r[6]<<8|r[6]>>>24)+r[5]|0}n.Rabbit=a._createHelper(s)}(),e.Rabbit}(F(),X(),ie(),Oe(),Pe())),mn.exports),(vn||(vn=1,hn.exports=function(e){return function(){var n=e,a=n.lib.StreamCipher,i=n.algo,t=[],o=[],r=[],s=i.RabbitLegacy=a.extend({_doReset:function(){var e=this._key.words,n=this.cfg.iv,a=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var t=0;t<4;t++)c.call(this);for(t=0;t<8;t++)i[t]^=a[t+4&7];if(n){var o=n.words,r=o[0],s=o[1],p=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=p>>>16|4294901760&l,d=l<<16|65535&p;for(i[0]^=p,i[1]^=u,i[2]^=l,i[3]^=d,i[4]^=p,i[5]^=u,i[6]^=l,i[7]^=d,t=0;t<4;t++)c.call(this)}},_doProcessBlock:function(e,n){var a=this._X;c.call(this),t[0]=a[0]^a[5]>>>16^a[3]<<16,t[1]=a[2]^a[7]>>>16^a[5]<<16,t[2]=a[4]^a[1]>>>16^a[7]<<16,t[3]=a[6]^a[3]>>>16^a[1]<<16;for(var i=0;i<4;i++)t[i]=16711935&(t[i]<<8|t[i]>>>24)|4278255360&(t[i]<<24|t[i]>>>8),e[n+i]^=t[i]},blockSize:4,ivSize:2});function c(){for(var e=this._X,n=this._C,a=0;a<8;a++)o[a]=n[a];for(n[0]=n[0]+1295307597+this._b|0,n[1]=n[1]+3545052371+(n[0]>>>0<o[0]>>>0?1:0)|0,n[2]=n[2]+886263092+(n[1]>>>0<o[1]>>>0?1:0)|0,n[3]=n[3]+1295307597+(n[2]>>>0<o[2]>>>0?1:0)|0,n[4]=n[4]+3545052371+(n[3]>>>0<o[3]>>>0?1:0)|0,n[5]=n[5]+886263092+(n[4]>>>0<o[4]>>>0?1:0)|0,n[6]=n[6]+1295307597+(n[5]>>>0<o[5]>>>0?1:0)|0,n[7]=n[7]+3545052371+(n[6]>>>0<o[6]>>>0?1:0)|0,this._b=n[7]>>>0<o[7]>>>0?1:0,a=0;a<8;a++){var i=e[a]+n[a],t=65535&i,s=i>>>16,c=((t*t>>>17)+t*s>>>15)+s*s,p=((4294901760&i)*i|0)+((65535&i)*i|0);r[a]=c^p}e[0]=r[0]+(r[7]<<16|r[7]>>>16)+(r[6]<<16|r[6]>>>16)|0,e[1]=r[1]+(r[0]<<8|r[0]>>>24)+r[7]|0,e[2]=r[2]+(r[1]<<16|r[1]>>>16)+(r[0]<<16|r[0]>>>16)|0,e[3]=r[3]+(r[2]<<8|r[2]>>>24)+r[1]|0,e[4]=r[4]+(r[3]<<16|r[3]>>>16)+(r[2]<<16|r[2]>>>16)|0,e[5]=r[5]+(r[4]<<8|r[4]>>>24)+r[3]|0,e[6]=r[6]+(r[5]<<16|r[5]>>>16)+(r[4]<<16|r[4]>>>16)|0,e[7]=r[7]+(r[6]<<8|r[6]>>>24)+r[5]|0}n.RabbitLegacy=a._createHelper(s)}(),e.RabbitLegacy}(F(),X(),ie(),Oe(),Pe())),hn.exports),bn())),q.exports),_n=I(jn);!function(e){e.LOGIN="login",e.LINK="link",e.SET="set",e.CHANGE="change",e.INFO="info",e.DEV="dev",e.UNLINK="unlink",e.PERMISSION="permission",e.ADD_USER="add-user",e.ADD="add",e.CLONE="clone",e.PUSH="push",e.HELP="--help",e.HELP_FLAG="-h",e.VERSION="--version",e.VERSION_FLAG="-v"}(wn||(wn={})),function(e){e.WORKFLOW="-w",e.SECRET="-s",e.USER_ID="-u",e.PERMISSIONS="-p",e.COMPANY_ID="-c",e.EMAIL="-e",e.PHONE="-m",e.SAVED_VALUE="-ws",e.VISIBILITY="-v"}(kn||(kn={}));const Sn={changeAndThrow(...e){throw new Error(e.join("\n"))},error(...e){console.error("[31m[MSTATE][ERROR] [0m",...e)},success(...e){console.log("[32m[MSTATE] [0m",...e)},info(e,n){console.log(" ",e.padEnd(30)+n.padEnd(60))}};function En(n){try{e.mkdirSync(O,{recursive:!0});const a=function(e){const n=JSON.stringify(e);return _n.AES.encrypt(n,Bn()).toString()}({secret:n});e.writeFileSync(T,a,{flag:"w",mode:384})}catch(e){}}function An(){try{const n=e.readFileSync(T,"utf8"),a=On(kn.SECRET)||function(e){const n=_n.AES.decrypt(e,Bn()),a=n.toString(_n.enc.Utf8);return JSON.parse(a)}(n)?.secret;return a||Sn.changeAndThrow("Please login or Parameter secret is required"),a}catch(e){const n=On(kn.SECRET);if(n)return n;Sn.changeAndThrow("Please login or Parameter secret is required")}}const Cn=Object.entries(kn);function On(e,n=!1){const a=process.argv,i=a.indexOf(e),t=-1!==i?a[i+1]??"":"";if(n&&!t){const[n]=Cn.find((([,n])=>e===n))??[];Sn.changeAndThrow(`Value for ${n} is required. \n\t\t Use '${e}' flag for assigning value`)}return t}function Tn(e){const n=process.argv;return n.includes(e.toUpperCase())||n.includes(e.toLowerCase())}function Bn(){return B+function(){const e=a.networkInterfaces();return Object.values(e).flat().filter((e=>!e?.internal)).map((e=>e?.mac))[0]}()}function Pn(e){if(null===e)return e;if(Array.isArray(e)){const n=[];for(const a of e)n.push(Pn(a));return n}if("object"==typeof e){const n=Object.entries(e).sort((([,e])=>"string"==typeof e||"number"==typeof e?-1:1));let a={};for(const[e,i]of n)a[e]=Pn(i);return a}return e}const zn=new class{constructor(){}async cloneActions(){const e=On(kn.WORKFLOW,!0),a=An();const i=`${P}/action/config/all/${`?workflow=${e}&hasNickName=true`}`,t=await fetch(i,{headers:{"Content-Type":"application/json","secret-key":a}}),o=await t.json();if(o?.errors)Sn.changeAndThrow("Invalid Parameters for Action: ",...o?.errors);else{const a=Pn(o?.data),i=n.resolve(e,"actions");A.mkdirSync(i,{recursive:!0}),a.forEach((e=>{try{const a=n.join(i,`${e?.name}.json`);A.writeFileSync(a,JSON.stringify(e,null,2)),Sn.success("file created at",i,`${e?.name}.json`)}catch(e){Sn.error(e.message)}}))}}async wait(e){return new Promise((n=>setTimeout(n,e)))}async saveToDB(){const e=On(kn.WORKFLOW,!0),a=An(),i=n.resolve(e,"actions");let t=`?workflow=${e}`;A.readdir(i,(async(e,o)=>{if(o)for(const e of o){await this.wait(500);const o=n.join(i,e),r=A.readFileSync(o,"utf8"),s=`${P}/action/config/${t}`,c=await fetch(s,{method:"PUT",headers:{"secret-key":a,"Content-Type":"application/json"},body:r}),p=await c.json(),l=JSON.parse(r);p?.errors?Sn.error(`Invalid Parameters for Action ${l.name}: `,...p?.errors):Sn.success(`Action ${l.name} Updated successfully`)}}))}};const In=new class{constructor(){}async addNewWorkflow(e,a){try{const i=An();if(!a)return void Sn.changeAndThrow("Parameter file is required");if(!i)return void Sn.changeAndThrow("Parameter secret is required");const t=n.resolve(a),o=A.readFileSync(t,"utf8");let r="";e&&(r+=`path=${e}`),r.length&&(r="?"+r);const s=`${P}/workflow/config/new${r}`,c=await fetch(s,{method:"POST",headers:{"secret-key":i,"Content-Type":"application/json"},body:o}),p=await c.json();p?.errors?Sn.changeAndThrow("Invalid Parameters for Workflow: ",...p?.errors):Sn.success("Workflow Added successfully",p?.data)}catch(e){Sn.changeAndThrow(e.message)}}async updateWorkflowToDB(){const e=On(kn.WORKFLOW,!0),a=An(),i=n.resolve(e),t=n.join(i,"workflow.json"),o=A.readFileSync(t,"utf8");const r=`${P}/workflow/config${`?workflow=${e}`}`,s=await fetch(r,{method:"PUT",headers:{"secret-key":a,"Content-Type":"application/json"},body:o}),c=await s.json();return c?.errors?Sn.changeAndThrow("Invalid Parameters for Server: ",...c?.errors):Sn.success("Workflow Uploaded successfully \n",c?.data),c}async updateWorkflowProperty(){const e=On(kn.WORKFLOW,!0),n=On(kn.VISIBILITY,!1)||"private",a=An();const i=`${P}/workflow/property${`?workflow=${e}`}`,t=await fetch(i,{method:"PUT",headers:{"secret-key":a,"Content-Type":"application/json"},body:JSON.stringify({type:n})}),o=await t.json();return o?.errors?Sn.changeAndThrow("Invalid Parameters for Server: ",...o?.errors):Sn.success("Workflow Updated successfully \n"),o}async cloneWorkflow(){const e=On(kn.WORKFLOW,!0),a=An(),i=`${P}/workflow/config/?workflow=${e}&hasNickName=true`,t=await fetch(i,{method:"GET",headers:{"Content-Type":"application/json","secret-key":a}}),o=await t.json();if(o?.errors)Sn.changeAndThrow("Invalid Parameters for Workflow: ",...o?.errors);else{const a=Pn(o?.data);a&&delete a?.id;const i=n.resolve(e);A.mkdirSync(i,{recursive:!0});const t=n.join(i,"workflow.json");A.writeFileSync(t,JSON.stringify(a,null,2)),Sn.success("Workflow cloned successfully")}}async copyWorkflow(){try{const e=On(kn.WORKFLOW,!0);let n="",a="";const i=("/"+e).replace(/\/([^\/]*)$/,"");i&&(n=i.slice(1,i.length)),a=e+"/workflow.json",await this.addNewWorkflow(n,a)}catch(e){Sn.changeAndThrow(e.message)}}async resetCache(){const e=On(kn.WORKFLOW,!0),n=An(),a=`${P}/cache/reset/?workflow=${e}`,i=await fetch(a,{method:"DELETE",headers:{"Content-Type":"application/json","secret-key":n}}),t=await i.json();t?.errors?Sn.changeAndThrow("Invalid Parameters for Workflow: ",...t?.errors):Sn.success("Workflow updated successfully")}};const qn=new class{constructor(){}async linkToMobioffice(e){const n=On(kn.WORKFLOW,!0),a=An(),i=On(kn.COMPANY_ID,!0),t=On(kn.USER_ID,!0),o=await fetch("https://server.mobioffice.io/api/Mstate/workFlow/user",{method:"POST",headers:{"secret-key":a,"Content-Type":"application/json"},body:JSON.stringify({action:e.toUpperCase(),workflow:n,secret:a,nickname:i,user:t})}),r=await o.json();o.status>=400?Sn.changeAndThrow("Invalid Parameters for Linking: ",o.statusText):Sn.success("Workflow Added successfully",r?.message)}};const Rn=new class{constructor(){}async cloneEnvironments(){const e=On(kn.WORKFLOW,!0),a=An();const i=`${P}/env/${`?workflow=${e}&hasNickName=true`}`,t=await fetch(i,{headers:{"Content-Type":"application/json","secret-key":a}}),o=await t.json();if(o?.errors)Sn.changeAndThrow("Invalid Parameters for Environment: ",...o?.errors);else{const a=o?.data,i=n.resolve(e,"environment.json");A.writeFileSync(i,JSON.stringify(a,null,2))}}async saveToDB(){const e=On(kn.WORKFLOW,!0),a=An(),i=n.resolve(e,"environment.json"),t=A.readFileSync(i,"utf8"),o=JSON.parse(t);try{const n=`${P}/env`,i=await fetch(n,{method:"POST",headers:{"secret-key":a,"Content-Type":"application/json"},body:JSON.stringify({workflow:e,env:o,envType:"default"})}),t=await i.json();t?.errors?Sn.changeAndThrow("Invalid Parameters for Environment: ",...t?.errors):Sn.success("Environments Updated successfully")}catch(e){Sn.changeAndThrow(e.message)}}};let Dn,Nn;function Fn(){return void 0===Dn&&(Dn=function(){try{return l.statSync("/.dockerenv"),!0}catch{return!1}}()||function(){try{return l.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch{return!1}}()),Dn}function Ln(){return void 0===Nn&&(Nn=(()=>{try{return l.statSync("/run/.containerenv"),!0}catch{return!1}})()||Fn()),Nn}const Un=()=>{if("linux"!==i.platform)return!1;if(p.release().toLowerCase().includes("microsoft"))return!Ln();try{return!!l.readFileSync("/proc/version","utf8").toLowerCase().includes("microsoft")&&!Ln()}catch{return!1}};var Mn=i.env.__IS_WSL_TEST__?Un:Un();function Hn(e,n,a){const i=a=>Object.defineProperty(e,n,{value:a,enumerable:!0,writable:!0});return Object.defineProperty(e,n,{configurable:!0,enumerable:!0,get(){const e=a();return i(e),e},set(e){i(e)}}),e}const $n=u.promisify(s.execFile);const Wn=u.promisify(s.execFile);async function Gn(e){return async function(e,{humanReadableOutput:n=!0}={}){if("darwin"!==i.platform)throw new Error("macOS only");const a=n?[]:["-ss"],{stdout:t}=await Wn("osascript",["-e",e,a]);return t.trim()}(`tell application "Finder" to set app_path to application file id "${e}" as string\ntell application "System Events" to get value of property list item "CFBundleName" of property list file (app_path & ":Contents:Info.plist")`)}const Kn=u.promisify(s.execFile),Vn={AppXq0fevzme2pys62n3e0fbqa7peapykr8v:{name:"Edge",id:"com.microsoft.edge.old"},MSEdgeDHTML:{name:"Edge",id:"com.microsoft.edge"},MSEdgeHTM:{name:"Edge",id:"com.microsoft.edge"},"IE.HTTP":{name:"Internet Explorer",id:"com.microsoft.ie"},FirefoxURL:{name:"Firefox",id:"org.mozilla.firefox"},ChromeHTML:{name:"Chrome",id:"com.google.chrome"},BraveHTML:{name:"Brave",id:"com.brave.Browser"},BraveBHTML:{name:"Brave Beta",id:"com.brave.Browser.beta"},BraveSSHTM:{name:"Brave Nightly",id:"com.brave.Browser.nightly"}};class Jn extends Error{}const Zn=u.promisify(s.execFile);async function Xn(){if("darwin"===i.platform){const e=await async function(){if("darwin"!==i.platform)throw new Error("macOS only");const{stdout:e}=await $n("defaults",["read","com.apple.LaunchServices/com.apple.launchservices.secure","LSHandlers"]),n=/LSHandlerRoleAll = "(?!-)(?<id>[^"]+?)";\s+?LSHandlerURLScheme = (?:http|https);/.exec(e);return n?.groups.id??"com.apple.Safari"}();return{name:await Gn(e),id:e}}if("linux"===i.platform){const{stdout:e}=await Zn("xdg-mime",["query","default","x-scheme-handler/http"]),n=e.trim();return{name:n.replace(/.desktop$/,"").replace("-"," ").toLowerCase().replaceAll(/(?:^|\s|-)\S/g,(e=>e.toUpperCase())),id:n}}if("win32"===i.platform)return async function(e=Kn){const{stdout:n}=await e("reg",["QUERY"," HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\Shell\\Associations\\UrlAssociations\\http\\UserChoice","/v","ProgId"]),a=/ProgId\s*REG_SZ\s*(?<id>\S+)/.exec(n);if(!a)throw new Jn(`Cannot find Windows browser in stdout: ${JSON.stringify(n)}`);const{id:i}=a.groups,t=Vn[i];if(!t)throw new Jn(`Unknown browser ID: ${i}`);return t}();throw new Error("Only macOS, Linux, and Windows are supported")}const Yn=o.dirname(r.fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:S&&"SCRIPT"===S.tagName.toUpperCase()&&S.src||new URL("index.js",document.baseURI).href)),Qn=o.join(Yn,"xdg-open"),{platform:ea,arch:na}=i,aa=(()=>{const e="/mnt/";let n;return async function(){if(n)return n;const a="/etc/wsl.conf";let i=!1;try{await c.access(a,c.constants.F_OK),i=!0}catch{}if(!i)return e;const t=await c.readFile(a,{encoding:"utf8"}),o=/(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(t);return o?(n=o.groups.mountPoint.trim(),n=n.endsWith("/")?n:`${n}/`,n):e}})(),ia=async(e,n)=>{let a;for(const i of e)try{return await n(i)}catch(e){a=e}throw a},ta=async e=>{if(e={wait:!1,background:!1,newInstance:!1,allowNonzeroExitCode:!1,...e},Array.isArray(e.app))return ia(e.app,(n=>ta({...e,app:n})));let n,{name:a,arguments:o=[]}=e.app??{};if(o=[...o],Array.isArray(a))return ia(a,(n=>ta({...e,app:{name:n,arguments:o}})));if("browser"===a||"browserPrivate"===a){const n={"com.google.chrome":"chrome","google-chrome.desktop":"chrome","org.mozilla.firefox":"firefox","firefox.desktop":"firefox","com.microsoft.msedge":"edge","com.microsoft.edge":"edge","microsoft-edge.desktop":"edge"},i={chrome:"--incognito",firefox:"--private-window",edge:"--inPrivate"},t=await Xn();if(t.id in n){const r=n[t.id];return"browserPrivate"===a&&o.push(i[r]),ta({...e,app:{name:sa[r],arguments:o}})}throw new Error(`${t.name} is not supported as a default browser`)}const r=[],p={};if("darwin"===ea)n="open",e.wait&&r.push("--wait-apps"),e.background&&r.push("--background"),e.newInstance&&r.push("--new"),a&&r.push("-a",a);else if("win32"===ea||Mn&&!Ln()&&!a){const s=await aa();n=Mn?`${s}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`:`${i.env.SYSTEMROOT||i.env.windir||"C:\\Windows"}\\System32\\WindowsPowerShell\\v1.0\\powershell`,r.push("-NoProfile","-NonInteractive","-ExecutionPolicy","Bypass","-EncodedCommand"),Mn||(p.windowsVerbatimArguments=!0);const c=["Start"];e.wait&&c.push("-Wait"),a?(c.push(`"\`"${a}\`""`),e.target&&o.push(e.target)):e.target&&c.push(`"${e.target}"`),o.length>0&&(o=o.map((e=>`"\`"${e}\`""`)),c.push("-ArgumentList",o.join(","))),e.target=t.Buffer.from(c.join(" "),"utf16le").toString("base64")}else{if(a)n=a;else{const e=!Yn||"/"===Yn;let a=!1;try{await c.access(Qn,c.constants.X_OK),a=!0}catch{}n=i.versions.electron??("android"===ea||e||!a)?"xdg-open":Qn}o.length>0&&r.push(...o),e.wait||(p.stdio="ignore",p.detached=!0)}"darwin"===ea&&o.length>0&&r.push("--args",...o),e.target&&r.push(e.target);const l=s.spawn(n,r,p);return e.wait?new Promise(((n,a)=>{l.once("error",a),l.once("close",(i=>{!e.allowNonzeroExitCode&&i>0?a(new Error(`Exited with code ${i}`)):n(l)}))})):(l.unref(),l)};function oa(e){if("string"==typeof e||Array.isArray(e))return e;const{[na]:n}=e;if(!n)throw new Error(`${na} is not supported`);return n}function ra({[ea]:e},{wsl:n}){if(n&&Mn)return oa(n);if(!e)throw new Error(`${ea} is not supported`);return oa(e)}const sa={};Hn(sa,"chrome",(()=>ra({darwin:"google chrome",win32:"chrome",linux:["google-chrome","google-chrome-stable","chromium"]},{wsl:{ia32:"/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",x64:["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe","/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]}}))),Hn(sa,"firefox",(()=>ra({darwin:"firefox",win32:"C:\\Program Files\\Mozilla Firefox\\firefox.exe",linux:"firefox"},{wsl:"/mnt/c/Program Files/Mozilla Firefox/firefox.exe"}))),Hn(sa,"edge",(()=>ra({darwin:"microsoft edge",win32:"msedge",linux:["microsoft-edge","microsoft-edge-dev"]},{wsl:"/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"}))),Hn(sa,"browser",(()=>"browser")),Hn(sa,"browserPrivate",(()=>"browserPrivate"));var ca,pa,la={exports:{}},ua={exports:{}};function da(){if(pa)return ca;pa=1;var e=n.relative;ca=function(e){if(!e)throw new TypeError("argument namespace is required");var n=r(u()[1])[0];function a(e){o.call(a,e)}return a._file=n,a._ignored=function(e){if(process.noDeprecation)return!0;return i(process.env.NO_DEPRECATION||"",e)}(e),a._namespace=e,a._traced=function(e){if(process.traceDeprecation)return!0;return i(process.env.TRACE_DEPRECATION||"",e)}(e),a._warned=Object.create(null),a.function=f,a.property=m,a};var a=process.cwd();function i(e,n){for(var a=e.split(/[ ,]+/),i=String(n).toLowerCase(),t=0;t<a.length;t++){var o=a[t];if(o&&("*"===o||o.toLowerCase()===i))return!0}return!1}function t(e){var n=this.name+": "+this.namespace;this.message&&(n+=" deprecated "+this.message);for(var a=0;a<e.length;a++)n+="\n at "+e[a].toString();return n}function o(e,n){var a=function(e,n){return("function"!=typeof e.listenerCount?e.listeners(n).length:e.listenerCount(n))>0}(process,"deprecation");if(a||!this._ignored){var i,t,o,l,d=0,f=!1,m=u(),h=this._file;for(n?(l=n,(o=r(m[1])).name=l.name,h=o[0]):o=l=r(m[d=2]);d<m.length;d++)if((t=(i=r(m[d]))[0])===h)f=!0;else if(t===this._file)h=this._file;else if(f)break;var x=i?l.join(":")+"__"+i.join(":"):void 0;if(void 0===x||!(x in this._warned)){this._warned[x]=!0;var g=e;if(g||(g=o!==l&&o.name?s(o):s(l)),a){var b=v(this._namespace,g,m.slice(d));process.emit("deprecation",b)}else{var y=(process.stderr.isTTY?p:c).call(this,g,i,m.slice(d));process.stderr.write(y+"\n","utf8")}}}}function r(e){var n=e.getFileName()||"<anonymous>",a=e.getLineNumber(),i=e.getColumnNumber();e.isEval()&&(n=e.getEvalOrigin()+", "+n);var t=[n,a,i];return t.callSite=e,t.name=e.getFunctionName(),t}function s(e){var n=e.callSite,a=e.name;a||(a="<anonymous@"+l(e)+">");var i=n.getThis(),t=i&&n.getTypeName();return"Object"===t&&(t=void 0),"Function"===t&&(t=i.name||t),t&&n.getMethodName()?t+"."+a:a}function c(e,n,a){var i=(new Date).toUTCString()+" "+this._namespace+" deprecated "+e;if(this._traced){for(var t=0;t<a.length;t++)i+="\n at "+a[t].toString();return i}return n&&(i+=" at "+l(n)),i}function p(e,n,a){var i="[36;1m"+this._namespace+"[22;39m [33;1mdeprecated[22;39m [0m"+e+"[39m";if(this._traced){for(var t=0;t<a.length;t++)i+="\n [36mat "+a[t].toString()+"[39m";return i}return n&&(i+=" [36m"+l(n)+"[39m"),i}function l(n){return e(a,n[0])+":"+n[1]+":"+n[2]}function u(){var e=Error.stackTraceLimit,n={},a=Error.prepareStackTrace;Error.prepareStackTrace=d,Error.stackTraceLimit=Math.max(10,e),Error.captureStackTrace(n);var i=n.stack.slice(1);return Error.prepareStackTrace=a,Error.stackTraceLimit=e,i}function d(e,n){return n}function f(e,n){if("function"!=typeof e)throw new TypeError("argument fn must be a function");var a=function(e){for(var n="",a=0;a<e;a++)n+=", arg"+a;return n.substr(2)}(e.length),i=r(u()[1]);return i.name=e.name,new Function("fn","log","deprecate","message","site",'"use strict"\nreturn function ('+a+") {log.call(deprecate, message, site)\nreturn fn.apply(this, arguments)\n}")(e,o,this,n,i)}function m(e,n,a){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("argument obj must be object");var i=Object.getOwnPropertyDescriptor(e,n);if(!i)throw new TypeError("must call property on owner object");if(!i.configurable)throw new TypeError("property must be configurable");var t=this,s=r(u()[1]);s.name=n,"value"in i&&(i=function(e,n,a){var i=Object.getOwnPropertyDescriptor(e,n),t=i.value;return i.get=function(){return t},i.writable&&(i.set=function(e){return t=e}),delete i.value,delete i.writable,Object.defineProperty(e,n,i),i}(e,n));var c=i.get,p=i.set;"function"==typeof c&&(i.get=function(){return o.call(t,a,s),c.apply(this,arguments)}),"function"==typeof p&&(i.set=function(){return o.call(t,a,s),p.apply(this,arguments)}),Object.defineProperty(e,n,i)}function v(e,n,a){var i,o=new Error;return Object.defineProperty(o,"constructor",{value:v}),Object.defineProperty(o,"message",{configurable:!0,enumerable:!1,value:n,writable:!0}),Object.defineProperty(o,"name",{enumerable:!1,configurable:!0,value:"DeprecationError",writable:!0}),Object.defineProperty(o,"namespace",{configurable:!0,enumerable:!1,value:e,writable:!0}),Object.defineProperty(o,"stack",{configurable:!0,enumerable:!1,get:function(){return void 0!==i?i:i=t.call(this,a)},set:function(e){i=e}}),o}return ca}var fa,ma={exports:{}};
|
20
20
|
/*!
|
21
21
|
* bytes
|
22
22
|
* Copyright(c) 2012-2014 TJ Holowaychuk
|
@@ -93,7 +93,7 @@ return function(n){var a=e,i=a.lib,t=i.WordArray,o=i.Hasher,r=a.algo,s=t.create(
|
|
93
93
|
* body-parser
|
94
94
|
* Copyright(c) 2014-2015 Douglas Christopher Wilson
|
95
95
|
* MIT Licensed
|
96
|
-
*/function dr(){if(vt)return mt;vt=1;var e=va(),n=ga(),a=Za()("body-parser:text"),i=nt(),t=pr();return mt=function(o){var r=o||{},s=r.defaultCharset||"utf-8",c=!1!==r.inflate,p="number"!=typeof r.limit?e.parse(r.limit||"100kb"):r.limit,l=r.type||"text/plain",u=r.verify||!1;if(!1!==u&&"function"!=typeof u)throw new TypeError("option verify must be function");var d="function"!=typeof l?function(e){return function(n){return Boolean(t(n,e))}}(l):l;function f(e){return e}return function(e,o,r){if(e._body)return a("body already parsed"),void r();if(e.body=e.body||{},!t.hasBody(e))return a("skip empty body"),void r();if(a("content-type %j",e.headers["content-type"]),!d(e))return a("skip parsing"),void r();var l=function(e){try{return(n.parse(e).parameters.charset||"").toLowerCase()}catch(e){return}}(e)||s;i(e,o,r,f,a,{encoding:l,inflate:c,limit:p,verify:u})}},mt}function fr(){return xt?ht:(xt=1,ht=TypeError)}function mr(){return bt?gt:(bt=1,gt=f.inspect)}function vr(){if(wt)return yt;wt=1;var e="function"==typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=e&&n&&"function"==typeof n.get?n.get:null,i=e&&Map.prototype.forEach,t="function"==typeof Set&&Set.prototype,o=Object.getOwnPropertyDescriptor&&t?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,r=t&&o&&"function"==typeof o.get?o.get:null,s=t&&Set.prototype.forEach,c="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,l="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,u=Boolean.prototype.valueOf,d=Object.prototype.toString,f=Function.prototype.toString,m=String.prototype.match,v=String.prototype.slice,h=String.prototype.replace,x=String.prototype.toUpperCase,g=String.prototype.toLowerCase,b=RegExp.prototype.test,y=Array.prototype.concat,w=Array.prototype.join,k=Array.prototype.slice,j=Math.floor,_="function"==typeof BigInt?BigInt.prototype.valueOf:null,S=Object.getOwnPropertySymbols,E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,A="function"==typeof Symbol&&"object"==typeof Symbol.iterator,C="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===A||"symbol")?Symbol.toStringTag:null,O=Object.prototype.propertyIsEnumerable,T=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function B(e,n){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||b.call(/e/,n))return n;var a=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var i=e<0?-j(-e):j(e);if(i!==e){var t=String(i),o=v.call(n,t.length+1);return h.call(t,a,"$&_")+"."+h.call(h.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return h.call(n,a,"$&_")}var P=mr(),I=P.custom,q=M(I)?I:null,R={__proto__:null,double:'"',single:"'"},D={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function N(e,n,a){var i=a.quoteStyle||n,t=R[i];return t+e+t}function F(e){return h.call(String(e),/"/g,""")}function L(e){return!("[object Array]"!==W(e)||C&&"object"==typeof e&&C in e)}function U(e){return!("[object RegExp]"!==W(e)||C&&"object"==typeof e&&C in e)}function M(e){if(A)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!E)return!1;try{return E.call(e),!0}catch(e){}return!1}yt=function e(n,t,o,d){var x=t||{};if($(x,"quoteStyle")&&!$(R,x.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if($(x,"maxStringLength")&&("number"==typeof x.maxStringLength?x.maxStringLength<0&&x.maxStringLength!==1/0:null!==x.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var b=!$(x,"customInspect")||x.customInspect;if("boolean"!=typeof b&&"symbol"!==b)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if($(x,"indent")&&null!==x.indent&&"\t"!==x.indent&&!(parseInt(x.indent,10)===x.indent&&x.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if($(x,"numericSeparator")&&"boolean"!=typeof x.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var j=x.numericSeparator;if(void 0===n)return"undefined";if(null===n)return"null";if("boolean"==typeof n)return n?"true":"false";if("string"==typeof n)return K(n,x);if("number"==typeof n){if(0===n)return 1/0/n>0?"0":"-0";var S=String(n);return j?B(n,S):S}if("bigint"==typeof n){var I=String(n)+"n";return j?B(n,I):I}var D=void 0===x.depth?5:x.depth;if(void 0===o&&(o=0),o>=D&&D>0&&"object"==typeof n)return L(n)?"[Array]":"[Object]";var H=function(e,n){var a;if("\t"===e.indent)a="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;a=w.call(Array(e.indent+1)," ")}return{base:a,prev:w.call(Array(n+1),a)}}(x,o);if(void 0===d)d=[];else if(G(d,n)>=0)return"[Circular]";function V(n,a,i){if(a&&(d=k.call(d)).push(a),i){var t={depth:x.depth};return $(x,"quoteStyle")&&(t.quoteStyle=x.quoteStyle),e(n,t,o+1,d)}return e(n,x,o+1,d)}if("function"==typeof n&&!U(n)){var ee=function(e){if(e.name)return e.name;var n=m.call(f.call(e),/^function\s*([\w$]+)/);if(n)return n[1];return null}(n),ne=Q(n,V);return"[Function"+(ee?": "+ee:" (anonymous)")+"]"+(ne.length>0?" { "+w.call(ne,", ")+" }":"")}if(M(n)){var ae=A?h.call(String(n),/^(Symbol\(.*\))_[^)]*$/,"$1"):E.call(n);return"object"!=typeof n||A?ae:J(ae)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(n)){for(var ie="<"+g.call(String(n.nodeName)),te=n.attributes||[],oe=0;oe<te.length;oe++)ie+=" "+te[oe].name+"="+N(F(te[oe].value),"double",x);return ie+=">",n.childNodes&&n.childNodes.length&&(ie+="..."),ie+="</"+g.call(String(n.nodeName))+">"}if(L(n)){if(0===n.length)return"[]";var re=Q(n,V);return H&&!function(e){for(var n=0;n<e.length;n++)if(G(e[n],"\n")>=0)return!1;return!0}(re)?"["+Y(re,H)+"]":"[ "+w.call(re,", ")+" ]"}if(function(e){return!("[object Error]"!==W(e)||C&&"object"==typeof e&&C in e)}(n)){var se=Q(n,V);return"cause"in Error.prototype||!("cause"in n)||O.call(n,"cause")?0===se.length?"["+String(n)+"]":"{ ["+String(n)+"] "+w.call(se,", ")+" }":"{ ["+String(n)+"] "+w.call(y.call("[cause]: "+V(n.cause),se),", ")+" }"}if("object"==typeof n&&b){if(q&&"function"==typeof n[q]&&P)return P(n,{depth:D-o});if("symbol"!==b&&"function"==typeof n.inspect)return n.inspect()}if(function(e){if(!a||!e||"object"!=typeof e)return!1;try{a.call(e);try{r.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(n)){var ce=[];return i&&i.call(n,(function(e,a){ce.push(V(a,n,!0)+" => "+V(e,n))})),X("Map",a.call(n),ce,H)}if(function(e){if(!r||!e||"object"!=typeof e)return!1;try{r.call(e);try{a.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(n)){var pe=[];return s&&s.call(n,(function(e){pe.push(V(e,n))})),X("Set",r.call(n),pe,H)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e,c);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(n))return Z("WeakMap");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{c.call(e,c)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(n))return Z("WeakSet");if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{return l.call(e),!0}catch(e){}return!1}(n))return Z("WeakRef");if(function(e){return!("[object Number]"!==W(e)||C&&"object"==typeof e&&C in e)}(n))return J(V(Number(n)));if(function(e){if(!e||"object"!=typeof e||!_)return!1;try{return _.call(e),!0}catch(e){}return!1}(n))return J(V(_.call(n)));if(function(e){return!("[object Boolean]"!==W(e)||C&&"object"==typeof e&&C in e)}(n))return J(u.call(n));if(function(e){return!("[object String]"!==W(e)||C&&"object"==typeof e&&C in e)}(n))return J(V(String(n)));if("undefined"!=typeof window&&n===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&n===globalThis||void 0!==z&&n===z)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==W(e)||C&&"object"==typeof e&&C in e)}(n)&&!U(n)){var le=Q(n,V),ue=T?T(n)===Object.prototype:n instanceof Object||n.constructor===Object,de=n instanceof Object?"":"null prototype",fe=!ue&&C&&Object(n)===n&&C in n?v.call(W(n),8,-1):de?"Object":"",me=(ue||"function"!=typeof n.constructor?"":n.constructor.name?n.constructor.name+" ":"")+(fe||de?"["+w.call(y.call([],fe||[],de||[]),": ")+"] ":"");return 0===le.length?me+"{}":H?me+"{"+Y(le,H)+"}":me+"{ "+w.call(le,", ")+" }"}return String(n)};var H=Object.prototype.hasOwnProperty||function(e){return e in this};function $(e,n){return H.call(e,n)}function W(e){return d.call(e)}function G(e,n){if(e.indexOf)return e.indexOf(n);for(var a=0,i=e.length;a<i;a++)if(e[a]===n)return a;return-1}function K(e,n){if(e.length>n.maxStringLength){var a=e.length-n.maxStringLength,i="... "+a+" more character"+(a>1?"s":"");return K(v.call(e,0,n.maxStringLength),n)+i}var t=D[n.quoteStyle||"single"];return t.lastIndex=0,N(h.call(h.call(e,t,"\\$1"),/[\x00-\x1f]/g,V),"single",n)}function V(e){var n=e.charCodeAt(0),a={8:"b",9:"t",10:"n",12:"f",13:"r"}[n];return a?"\\"+a:"\\x"+(n<16?"0":"")+x.call(n.toString(16))}function J(e){return"Object("+e+")"}function Z(e){return e+" { ? }"}function X(e,n,a,i){return e+" ("+n+") {"+(i?Y(a,i):w.call(a,", "))+"}"}function Y(e,n){if(0===e.length)return"";var a="\n"+n.prev+n.base;return a+w.call(e,","+a)+"\n"+n.prev}function Q(e,n){var a=L(e),i=[];if(a){i.length=e.length;for(var t=0;t<e.length;t++)i[t]=$(e,t)?n(e[t],e):""}var o,r="function"==typeof S?S(e):[];if(A){o={};for(var s=0;s<r.length;s++)o["$"+r[s]]=r[s]}for(var c in e)$(e,c)&&(a&&String(Number(c))===c&&c<e.length||A&&o["$"+c]instanceof Symbol||(b.call(/[^\w$]/,c)?i.push(n(c,e)+": "+n(e[c],e)):i.push(c+": "+n(e[c],e))));if("function"==typeof S)for(var p=0;p<r.length;p++)O.call(e,r[p])&&i.push("["+n(r[p])+"]: "+n(e[r[p]],e));return i}return yt}function hr(){if(jt)return kt;jt=1;var e=vr(),n=fr(),a=function(e,n,a){for(var i,t=e;null!=(i=t.next);t=i)if(i.key===n)return t.next=i.next,a||(i.next=e.next,e.next=i),i};return kt=function(){var i,t={assert:function(a){if(!t.has(a))throw new n("Side channel does not contain "+e(a))},delete:function(e){var n=i&&i.next,t=function(e,n){if(e)return a(e,n,!0)}(i,e);return t&&n&&n===t&&(i=void 0),!!t},get:function(e){return function(e,n){if(e){var i=a(e,n);return i&&i.value}}(i,e)},has:function(e){return function(e,n){return!!e&&!!a(e,n)}(i,e)},set:function(e,n){i||(i={next:void 0}),function(e,n,i){var t=a(e,n);t?t.value=i:e.next={key:n,next:e.next,value:i}}(i,e,n)}};return t},kt}function xr(){return St?_t:(St=1,_t=Object)}function gr(){return At?Et:(At=1,Et=Error)}function br(){return Ot?Ct:(Ot=1,Ct=EvalError)}function yr(){return Bt?Tt:(Bt=1,Tt=RangeError)}function wr(){return zt?Pt:(zt=1,Pt=ReferenceError)}function kr(){return qt?It:(qt=1,It=SyntaxError)}function jr(){return Dt?Rt:(Dt=1,Rt=URIError)}function _r(){return Ft?Nt:(Ft=1,Nt=Math.abs)}function Sr(){return Ut?Lt:(Ut=1,Lt=Math.floor)}function Er(){return Ht?Mt:(Ht=1,Mt=Math.max)}function Ar(){return Wt?$t:(Wt=1,$t=Math.min)}function Cr(){return Kt?Gt:(Kt=1,Gt=Math.pow)}function Or(){return Jt?Vt:(Jt=1,Vt=Math.round)}function Tr(){return Xt?Zt:(Xt=1,Zt=Number.isNaN||function(e){return e!=e})}function Br(){if(Qt)return Yt;Qt=1;var e=Tr();return Yt=function(n){return e(n)||0===n?n:n<0?-1:1}}function Pr(){return no?eo:(no=1,eo=Object.getOwnPropertyDescriptor)}function zr(){if(io)return ao;io=1;var e=Pr();if(e)try{e([],"length")}catch(n){e=null}return ao=e}function Ir(){if(oo)return to;oo=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(n){e=!1}return to=e}function qr(){if(po)return co;po=1;var e="undefined"!=typeof Symbol&&Symbol,n=so?ro:(so=1,ro=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},n=Symbol("test"),a=Object(n);if("string"==typeof n)return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;if("[object Symbol]"!==Object.prototype.toString.call(a))return!1;for(var i in e[n]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var t=Object.getOwnPropertySymbols(e);if(1!==t.length||t[0]!==n)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,n);if(42!==o.value||!0!==o.enumerable)return!1}return!0});return co=function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&n())))}}function Rr(){return uo?lo:(uo=1,lo="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function Dr(){return mo?fo:(mo=1,fo=xr().getPrototypeOf||null)}function Nr(){if(ho)return vo;ho=1;var e=Object.prototype.toString,n=Math.max,a=function(e,n){for(var a=[],i=0;i<e.length;i+=1)a[i]=e[i];for(var t=0;t<n.length;t+=1)a[t+e.length]=n[t];return a};return vo=function(i){var t=this;if("function"!=typeof t||"[object Function]"!==e.apply(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var o,r=function(e,n){for(var a=[],i=n,t=0;i<e.length;i+=1,t+=1)a[t]=e[i];return a}(arguments,1),s=n(0,t.length-r.length),c=[],p=0;p<s;p++)c[p]="$"+p;if(o=Function("binder","return function ("+function(e,n){for(var a="",i=0;i<e.length;i+=1)a+=e[i],i+1<e.length&&(a+=n);return a}(c,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var e=t.apply(this,a(r,arguments));return Object(e)===e?e:this}return t.apply(i,a(r,arguments))})),t.prototype){var l=function(){};l.prototype=t.prototype,o.prototype=new l,l.prototype=null}return o},vo}function Fr(){if(go)return xo;go=1;var e=Nr();return xo=Function.prototype.bind||e}function Lr(){return yo?bo:(yo=1,bo=Function.prototype.call)}function Ur(){return ko?wo:(ko=1,wo=Function.prototype.apply)}function Mr(){if(Eo)return So;Eo=1;var e=Fr(),n=Ur(),a=Lr(),i=_o?jo:(_o=1,jo="undefined"!=typeof Reflect&&Reflect&&Reflect.apply);return So=i||e.call(a,n)}function Hr(){if(Co)return Ao;Co=1;var e=Fr(),n=fr(),a=Lr(),i=Mr();return Ao=function(t){if(t.length<1||"function"!=typeof t[0])throw new n("a function is required");return i(e,a,t)}}function $r(){if(To)return Oo;To=1;var e,n=Hr(),a=zr();try{e=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var i=!!e&&a&&a(Object.prototype,"__proto__"),t=Object,o=t.getPrototypeOf;return Oo=i&&"function"==typeof i.get?n([i.get]):"function"==typeof o&&function(e){return o(null==e?e:t(e))}}function Wr(){if(Po)return Bo;Po=1;var e=Rr(),n=Dr(),a=$r();return Bo=e?function(n){return e(n)}:n?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return n(e)}:a?function(e){return a(e)}:null}function Gr(){if(Io)return zo;Io=1;var e=Function.prototype.call,n=Object.prototype.hasOwnProperty,a=Fr();return zo=a.call(e,n)}function Kr(){if(Ro)return qo;var e;Ro=1;var n=xr(),a=gr(),i=br(),t=yr(),o=wr(),r=kr(),s=fr(),c=jr(),p=_r(),l=Sr(),u=Er(),d=Ar(),f=Cr(),m=Or(),v=Br(),h=Function,x=function(e){try{return h('"use strict"; return ('+e+").constructor;")()}catch(e){}},g=zr(),b=Ir(),y=function(){throw new s},w=g?function(){try{return y}catch(e){try{return g(arguments,"callee").get}catch(e){return y}}}():y,k=qr()(),j=Wr(),_=Dr(),S=Rr(),E=Ur(),A=Lr(),C={},O="undefined"!=typeof Uint8Array&&j?j(Uint8Array):e,T={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?e:ArrayBuffer,"%ArrayIteratorPrototype%":k&&j?j([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":C,"%AsyncGenerator%":C,"%AsyncGeneratorFunction%":C,"%AsyncIteratorPrototype%":C,"%Atomics%":"undefined"==typeof Atomics?e:Atomics,"%BigInt%":"undefined"==typeof BigInt?e:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?e:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a,"%eval%":eval,"%EvalError%":i,"%Float32Array%":"undefined"==typeof Float32Array?e:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?e:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?e:FinalizationRegistry,"%Function%":h,"%GeneratorFunction%":C,"%Int8Array%":"undefined"==typeof Int8Array?e:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?e:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":k&&j?j(j([][Symbol.iterator]())):e,"%JSON%":"object"==typeof JSON?JSON:e,"%Map%":"undefined"==typeof Map?e:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&k&&j?j((new Map)[Symbol.iterator]()):e,"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":g,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?e:Promise,"%Proxy%":"undefined"==typeof Proxy?e:Proxy,"%RangeError%":t,"%ReferenceError%":o,"%Reflect%":"undefined"==typeof Reflect?e:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?e:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&k&&j?j((new Set)[Symbol.iterator]()):e,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":k&&j?j(""[Symbol.iterator]()):e,"%Symbol%":k?Symbol:e,"%SyntaxError%":r,"%ThrowTypeError%":w,"%TypedArray%":O,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?e:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?e:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?e:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?e:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"==typeof WeakMap?e:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?e:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?e:WeakSet,"%Function.prototype.call%":A,"%Function.prototype.apply%":E,"%Object.defineProperty%":b,"%Object.getPrototypeOf%":_,"%Math.abs%":p,"%Math.floor%":l,"%Math.max%":u,"%Math.min%":d,"%Math.pow%":f,"%Math.round%":m,"%Math.sign%":v,"%Reflect.getPrototypeOf%":S};if(j)try{null.error}catch(e){var B=j(j(e));T["%Error.prototype%"]=B}var P=function e(n){var a;if("%AsyncFunction%"===n)a=x("async function () {}");else if("%GeneratorFunction%"===n)a=x("function* () {}");else if("%AsyncGeneratorFunction%"===n)a=x("async function* () {}");else if("%AsyncGenerator%"===n){var i=e("%AsyncGeneratorFunction%");i&&(a=i.prototype)}else if("%AsyncIteratorPrototype%"===n){var t=e("%AsyncGenerator%");t&&j&&(a=j(t.prototype))}return T[n]=a,a},z={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},I=Fr(),q=Gr(),R=I.call(A,Array.prototype.concat),D=I.call(E,Array.prototype.splice),N=I.call(A,String.prototype.replace),F=I.call(A,String.prototype.slice),L=I.call(A,RegExp.prototype.exec),U=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,M=/\\(\\)?/g,H=function(e,n){var a,i=e;if(q(z,i)&&(i="%"+(a=z[i])[0]+"%"),q(T,i)){var t=T[i];if(t===C&&(t=P(i)),void 0===t&&!n)throw new s("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:i,value:t}}throw new r("intrinsic "+e+" does not exist!")};return qo=function(e,n){if("string"!=typeof e||0===e.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof n)throw new s('"allowMissing" argument must be a boolean');if(null===L(/^%?[^%]*%?$/,e))throw new r("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=function(e){var n=F(e,0,1),a=F(e,-1);if("%"===n&&"%"!==a)throw new r("invalid intrinsic syntax, expected closing `%`");if("%"===a&&"%"!==n)throw new r("invalid intrinsic syntax, expected opening `%`");var i=[];return N(e,U,(function(e,n,a,t){i[i.length]=a?N(t,M,"$1"):n||e})),i}(e),i=a.length>0?a[0]:"",t=H("%"+i+"%",n),o=t.name,c=t.value,p=!1,l=t.alias;l&&(i=l[0],D(a,R([0,1],l)));for(var u=1,d=!0;u<a.length;u+=1){var f=a[u],m=F(f,0,1),v=F(f,-1);if(('"'===m||"'"===m||"`"===m||'"'===v||"'"===v||"`"===v)&&m!==v)throw new r("property names with quotes must have matching quotes");if("constructor"!==f&&d||(p=!0),q(T,o="%"+(i+="."+f)+"%"))c=T[o];else if(null!=c){if(!(f in c)){if(!n)throw new s("base intrinsic for "+e+" exists, but the property is not available.");return}if(g&&u+1>=a.length){var h=g(c,f);c=(d=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:c[f]}else d=q(c,f),c=c[f];d&&!p&&(T[o]=c)}}return c},qo}function Vr(){if(No)return Do;No=1;var e=Kr(),n=Hr(),a=n([e("%String.prototype.indexOf%")]);return Do=function(i,t){var o=e(i,!!t);return"function"==typeof o&&a(i,".prototype.")>-1?n([o]):o},Do}function Jr(){if(Lo)return Fo;Lo=1;var e=Kr(),n=Vr(),a=vr(),i=fr(),t=e("%Map%",!0),o=n("Map.prototype.get",!0),r=n("Map.prototype.set",!0),s=n("Map.prototype.has",!0),c=n("Map.prototype.delete",!0),p=n("Map.prototype.size",!0);return Fo=!!t&&function(){var e,n={assert:function(e){if(!n.has(e))throw new i("Side channel does not contain "+a(e))},delete:function(n){if(e){var a=c(e,n);return 0===p(e)&&(e=void 0),a}return!1},get:function(n){if(e)return o(e,n)},has:function(n){return!!e&&s(e,n)},set:function(n,a){e||(e=new t),r(e,n,a)}};return n}}function Zr(){if($o)return Ho;$o=1;var e=fr(),n=vr(),a=hr(),i=Jr(),t=function(){if(Mo)return Uo;Mo=1;var e=Kr(),n=Vr(),a=vr(),i=Jr(),t=fr(),o=e("%WeakMap%",!0),r=n("WeakMap.prototype.get",!0),s=n("WeakMap.prototype.set",!0),c=n("WeakMap.prototype.has",!0),p=n("WeakMap.prototype.delete",!0);return Uo=o?function(){var e,n,l={assert:function(e){if(!l.has(e))throw new t("Side channel does not contain "+a(e))},delete:function(a){if(o&&a&&("object"==typeof a||"function"==typeof a)){if(e)return p(e,a)}else if(i&&n)return n.delete(a);return!1},get:function(a){return o&&a&&("object"==typeof a||"function"==typeof a)&&e?r(e,a):n&&n.get(a)},has:function(a){return o&&a&&("object"==typeof a||"function"==typeof a)&&e?c(e,a):!!n&&n.has(a)},set:function(a,t){o&&a&&("object"==typeof a||"function"==typeof a)?(e||(e=new o),s(e,a,t)):i&&(n||(n=i()),n.set(a,t))}};return l}:i}(),o=t||i||a;return Ho=function(){var a,i={assert:function(a){if(!i.has(a))throw new e("Side channel does not contain "+n(a))},delete:function(e){return!!a&&a.delete(e)},get:function(e){return a&&a.get(e)},has:function(e){return!!a&&a.has(e)},set:function(e,n){a||(a=o()),a.set(e,n)}};return i}}function Xr(){if(Go)return Wo;Go=1;var e=String.prototype.replace,n=/%20/g,a="RFC3986";return Wo={default:a,formatters:{RFC1738:function(a){return e.call(a,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:a}}function Yr(){if(Vo)return Ko;Vo=1;var e=Xr(),n=Object.prototype.hasOwnProperty,a=Array.isArray,i=function(){for(var e=[],n=0;n<256;++n)e.push("%"+((n<16?"0":"")+n.toString(16)).toUpperCase());return e}(),t=function(e,n){for(var a=n&&n.plainObjects?Object.create(null):{},i=0;i<e.length;++i)void 0!==e[i]&&(a[i]=e[i]);return a},o=1024;return Ko={arrayToObject:t,assign:function(e,n){return Object.keys(n).reduce((function(e,a){return e[a]=n[a],e}),e)},combine:function(e,n){return[].concat(e,n)},compact:function(e){for(var n=[{obj:{o:e},prop:"o"}],i=[],t=0;t<n.length;++t)for(var o=n[t],r=o.obj[o.prop],s=Object.keys(r),c=0;c<s.length;++c){var p=s[c],l=r[p];"object"==typeof l&&null!==l&&-1===i.indexOf(l)&&(n.push({obj:r,prop:p}),i.push(l))}return function(e){for(;e.length>1;){var n=e.pop(),i=n.obj[n.prop];if(a(i)){for(var t=[],o=0;o<i.length;++o)void 0!==i[o]&&t.push(i[o]);n.obj[n.prop]=t}}}(n),e},decode:function(e,n,a){var i=e.replace(/\+/g," ");if("iso-8859-1"===a)return i.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(i)}catch(e){return i}},encode:function(n,a,t,r,s){if(0===n.length)return n;var c=n;if("symbol"==typeof n?c=Symbol.prototype.toString.call(n):"string"!=typeof n&&(c=String(n)),"iso-8859-1"===t)return escape(c).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var p="",l=0;l<c.length;l+=o){for(var u=c.length>=o?c.slice(l,l+o):c,d=[],f=0;f<u.length;++f){var m=u.charCodeAt(f);45===m||46===m||95===m||126===m||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||s===e.RFC1738&&(40===m||41===m)?d[d.length]=u.charAt(f):m<128?d[d.length]=i[m]:m<2048?d[d.length]=i[192|m>>6]+i[128|63&m]:m<55296||m>=57344?d[d.length]=i[224|m>>12]+i[128|m>>6&63]+i[128|63&m]:(f+=1,m=65536+((1023&m)<<10|1023&u.charCodeAt(f)),d[d.length]=i[240|m>>18]+i[128|m>>12&63]+i[128|m>>6&63]+i[128|63&m])}p+=d.join("")}return p},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,n){if(a(e)){for(var i=[],t=0;t<e.length;t+=1)i.push(n(e[t]));return i}return n(e)},merge:function e(i,o,r){if(!o)return i;if("object"!=typeof o){if(a(i))i.push(o);else{if(!i||"object"!=typeof i)return[i,o];(r&&(r.plainObjects||r.allowPrototypes)||!n.call(Object.prototype,o))&&(i[o]=!0)}return i}if(!i||"object"!=typeof i)return[i].concat(o);var s=i;return a(i)&&!a(o)&&(s=t(i,r)),a(i)&&a(o)?(o.forEach((function(a,t){if(n.call(i,t)){var o=i[t];o&&"object"==typeof o&&a&&"object"==typeof a?i[t]=e(o,a,r):i.push(a)}else i[t]=a})),i):Object.keys(o).reduce((function(a,i){var t=o[i];return n.call(a,i)?a[i]=e(a[i],t,r):a[i]=t,a}),s)}},Ko}function Qr(){if(Zo)return Jo;Zo=1;var e=Zr(),n=Yr(),a=Xr(),i=Object.prototype.hasOwnProperty,t={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,n){return e+"["+n+"]"},repeat:function(e){return e}},o=Array.isArray,r=Array.prototype.push,s=function(e,n){r.apply(e,o(n)?n:[n])},c=Date.prototype.toISOString,p=a.default,l={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:n.encode,encodeValuesOnly:!1,format:p,formatter:a.formatters[p],indices:!1,serializeDate:function(e){return c.call(e)},skipNulls:!1,strictNullHandling:!1},u={},d=function a(i,t,r,c,p,d,f,m,v,h,x,g,b,y,w,k,j,_){for(var S,E=i,A=_,C=0,O=!1;void 0!==(A=A.get(u))&&!O;){var T=A.get(i);if(C+=1,void 0!==T){if(T===C)throw new RangeError("Cyclic object value");O=!0}void 0===A.get(u)&&(C=0)}if("function"==typeof h?E=h(t,E):E instanceof Date?E=b(E):"comma"===r&&o(E)&&(E=n.maybeMap(E,(function(e){return e instanceof Date?b(e):e}))),null===E){if(d)return v&&!k?v(t,l.encoder,j,"key",y):t;E=""}if("string"==typeof(S=E)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||n.isBuffer(E))return v?[w(k?t:v(t,l.encoder,j,"key",y))+"="+w(v(E,l.encoder,j,"value",y))]:[w(t)+"="+w(String(E))];var B,P=[];if(void 0===E)return P;if("comma"===r&&o(E))k&&v&&(E=n.maybeMap(E,v)),B=[{value:E.length>0?E.join(",")||null:void 0}];else if(o(h))B=h;else{var z=Object.keys(E);B=x?z.sort(x):z}var I=m?t.replace(/\./g,"%2E"):t,q=c&&o(E)&&1===E.length?I+"[]":I;if(p&&o(E)&&0===E.length)return q+"[]";for(var R=0;R<B.length;++R){var D=B[R],N="object"==typeof D&&void 0!==D.value?D.value:E[D];if(!f||null!==N){var F=g&&m?D.replace(/\./g,"%2E"):D,L=o(E)?"function"==typeof r?r(q,F):q:q+(g?"."+F:"["+F+"]");_.set(i,C);var U=e();U.set(u,_),s(P,a(N,L,r,c,p,d,f,m,"comma"===r&&k&&o(E)?null:v,h,x,g,b,y,w,k,j,U))}}return P};return Jo=function(n,r){var c,p=n,u=function(e){if(!e)return l;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var n=e.charset||l.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=a.default;if(void 0!==e.format){if(!i.call(a.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var s,c=a.formatters[r],p=l.filter;if(("function"==typeof e.filter||o(e.filter))&&(p=e.filter),s=e.arrayFormat in t?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":l.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=void 0===e.allowDots?!0===e.encodeDotInKeys||l.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:l.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:l.allowEmptyArrays,arrayFormat:s,charset:n,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:l.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?l.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:l.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:l.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:l.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:l.encodeValuesOnly,filter:p,format:r,formatter:c,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:l.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:l.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:l.strictNullHandling}}(r);"function"==typeof u.filter?p=(0,u.filter)("",p):o(u.filter)&&(c=u.filter);var f=[];if("object"!=typeof p||null===p)return"";var m=t[u.arrayFormat],v="comma"===m&&u.commaRoundTrip;c||(c=Object.keys(p)),u.sort&&c.sort(u.sort);for(var h=e(),x=0;x<c.length;++x){var g=c[x];u.skipNulls&&null===p[g]||s(f,d(p[g],g,m,v,u.allowEmptyArrays,u.strictNullHandling,u.skipNulls,u.encodeDotInKeys,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.format,u.formatter,u.encodeValuesOnly,u.charset,h))}var b=f.join(u.delimiter),y=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),b.length>0?y+b:""},Jo}function es(){if(Yo)return Xo;Yo=1;var e=Yr(),n=Object.prototype.hasOwnProperty,a=Array.isArray,i={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},t=function(e){return e.replace(/&#(\d+);/g,(function(e,n){return String.fromCharCode(parseInt(n,10))}))},o=function(e,n){return e&&"string"==typeof e&&n.comma&&e.indexOf(",")>-1?e.split(","):e},r=function(e,a,i,t){if(e){var r=i.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,c=i.depth>0&&/(\[[^[\]]*])/.exec(r),p=c?r.slice(0,c.index):r,l=[];if(p){if(!i.plainObjects&&n.call(Object.prototype,p)&&!i.allowPrototypes)return;l.push(p)}for(var u=0;i.depth>0&&null!==(c=s.exec(r))&&u<i.depth;){if(u+=1,!i.plainObjects&&n.call(Object.prototype,c[1].slice(1,-1))&&!i.allowPrototypes)return;l.push(c[1])}if(c){if(!0===i.strictDepth)throw new RangeError("Input depth exceeded depth option of "+i.depth+" and strictDepth is true");l.push("["+r.slice(c.index)+"]")}return function(e,n,a,i){for(var t=i?n:o(n,a),r=e.length-1;r>=0;--r){var s,c=e[r];if("[]"===c&&a.parseArrays)s=a.allowEmptyArrays&&(""===t||a.strictNullHandling&&null===t)?[]:[].concat(t);else{s=a.plainObjects?Object.create(null):{};var p="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,l=a.decodeDotInKeys?p.replace(/%2E/g,"."):p,u=parseInt(l,10);a.parseArrays||""!==l?!isNaN(u)&&c!==l&&String(u)===l&&u>=0&&a.parseArrays&&u<=a.arrayLimit?(s=[])[u]=t:"__proto__"!==l&&(s[l]=t):s={0:t}}t=s}return t}(l,a,i,t)}};return Xo=function(s,c){var p=function(n){if(!n)return i;if(void 0!==n.allowEmptyArrays&&"boolean"!=typeof n.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==n.decodeDotInKeys&&"boolean"!=typeof n.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==n.decoder&&void 0!==n.decoder&&"function"!=typeof n.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==n.charset&&"utf-8"!==n.charset&&"iso-8859-1"!==n.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var a=void 0===n.charset?i.charset:n.charset,t=void 0===n.duplicates?i.duplicates:n.duplicates;if("combine"!==t&&"first"!==t&&"last"!==t)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===n.allowDots?!0===n.decodeDotInKeys||i.allowDots:!!n.allowDots,allowEmptyArrays:"boolean"==typeof n.allowEmptyArrays?!!n.allowEmptyArrays:i.allowEmptyArrays,allowPrototypes:"boolean"==typeof n.allowPrototypes?n.allowPrototypes:i.allowPrototypes,allowSparse:"boolean"==typeof n.allowSparse?n.allowSparse:i.allowSparse,arrayLimit:"number"==typeof n.arrayLimit?n.arrayLimit:i.arrayLimit,charset:a,charsetSentinel:"boolean"==typeof n.charsetSentinel?n.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof n.comma?n.comma:i.comma,decodeDotInKeys:"boolean"==typeof n.decodeDotInKeys?n.decodeDotInKeys:i.decodeDotInKeys,decoder:"function"==typeof n.decoder?n.decoder:i.decoder,delimiter:"string"==typeof n.delimiter||e.isRegExp(n.delimiter)?n.delimiter:i.delimiter,depth:"number"==typeof n.depth||!1===n.depth?+n.depth:i.depth,duplicates:t,ignoreQueryPrefix:!0===n.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof n.interpretNumericEntities?n.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof n.parameterLimit?n.parameterLimit:i.parameterLimit,parseArrays:!1!==n.parseArrays,plainObjects:"boolean"==typeof n.plainObjects?n.plainObjects:i.plainObjects,strictDepth:"boolean"==typeof n.strictDepth?!!n.strictDepth:i.strictDepth,strictNullHandling:"boolean"==typeof n.strictNullHandling?n.strictNullHandling:i.strictNullHandling}}(c);if(""===s||null==s)return p.plainObjects?Object.create(null):{};for(var l="string"==typeof s?function(r,s){var c={__proto__:null},p=s.ignoreQueryPrefix?r.replace(/^\?/,""):r;p=p.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var l,u=s.parameterLimit===1/0?void 0:s.parameterLimit,d=p.split(s.delimiter,u),f=-1,m=s.charset;if(s.charsetSentinel)for(l=0;l<d.length;++l)0===d[l].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[l]?m="utf-8":"utf8=%26%2310003%3B"===d[l]&&(m="iso-8859-1"),f=l,l=d.length);for(l=0;l<d.length;++l)if(l!==f){var v,h,x=d[l],g=x.indexOf("]="),b=-1===g?x.indexOf("="):g+1;-1===b?(v=s.decoder(x,i.decoder,m,"key"),h=s.strictNullHandling?null:""):(v=s.decoder(x.slice(0,b),i.decoder,m,"key"),h=e.maybeMap(o(x.slice(b+1),s),(function(e){return s.decoder(e,i.decoder,m,"value")}))),h&&s.interpretNumericEntities&&"iso-8859-1"===m&&(h=t(h)),x.indexOf("[]=")>-1&&(h=a(h)?[h]:h);var y=n.call(c,v);y&&"combine"===s.duplicates?c[v]=e.combine(c[v],h):y&&"last"!==s.duplicates||(c[v]=h)}return c}(s,p):s,u=p.plainObjects?Object.create(null):{},d=Object.keys(l),f=0;f<d.length;++f){var m=d[f],v=r(m,l[m],p,"string"==typeof s);u=e.merge(u,v,p)}return!0===p.allowSparse?u:e.compact(u)},Xo}function ns(){if(er)return Qo;er=1;var e=Qr(),n=es();return Qo={formats:Xr(),parse:n,stringify:e}}
|
96
|
+
*/function dr(){if(vt)return mt;vt=1;var e=va(),n=ga(),a=Za()("body-parser:text"),i=nt(),t=pr();return mt=function(o){var r=o||{},s=r.defaultCharset||"utf-8",c=!1!==r.inflate,p="number"!=typeof r.limit?e.parse(r.limit||"100kb"):r.limit,l=r.type||"text/plain",u=r.verify||!1;if(!1!==u&&"function"!=typeof u)throw new TypeError("option verify must be function");var d="function"!=typeof l?function(e){return function(n){return Boolean(t(n,e))}}(l):l;function f(e){return e}return function(e,o,r){if(e._body)return a("body already parsed"),void r();if(e.body=e.body||{},!t.hasBody(e))return a("skip empty body"),void r();if(a("content-type %j",e.headers["content-type"]),!d(e))return a("skip parsing"),void r();var l=function(e){try{return(n.parse(e).parameters.charset||"").toLowerCase()}catch(e){return}}(e)||s;i(e,o,r,f,a,{encoding:l,inflate:c,limit:p,verify:u})}},mt}function fr(){return xt?ht:(xt=1,ht=TypeError)}function mr(){return bt?gt:(bt=1,gt=f.inspect)}function vr(){if(wt)return yt;wt=1;var e="function"==typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=e&&n&&"function"==typeof n.get?n.get:null,i=e&&Map.prototype.forEach,t="function"==typeof Set&&Set.prototype,o=Object.getOwnPropertyDescriptor&&t?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,r=t&&o&&"function"==typeof o.get?o.get:null,s=t&&Set.prototype.forEach,c="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,l="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,u=Boolean.prototype.valueOf,d=Object.prototype.toString,f=Function.prototype.toString,m=String.prototype.match,v=String.prototype.slice,h=String.prototype.replace,x=String.prototype.toUpperCase,g=String.prototype.toLowerCase,b=RegExp.prototype.test,y=Array.prototype.concat,w=Array.prototype.join,k=Array.prototype.slice,j=Math.floor,_="function"==typeof BigInt?BigInt.prototype.valueOf:null,S=Object.getOwnPropertySymbols,E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,A="function"==typeof Symbol&&"object"==typeof Symbol.iterator,C="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===A||"symbol")?Symbol.toStringTag:null,O=Object.prototype.propertyIsEnumerable,T=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function B(e,n){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||b.call(/e/,n))return n;var a=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var i=e<0?-j(-e):j(e);if(i!==e){var t=String(i),o=v.call(n,t.length+1);return h.call(t,a,"$&_")+"."+h.call(h.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return h.call(n,a,"$&_")}var P=mr(),I=P.custom,q=H(I)?I:null,R={__proto__:null,double:'"',single:"'"},D={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function N(e,n,a){var i=a.quoteStyle||n,t=R[i];return t+e+t}function F(e){return h.call(String(e),/"/g,""")}function L(e){return!C||!("object"==typeof e&&(C in e||void 0!==e[C]))}function U(e){return"[object Array]"===G(e)&&L(e)}function M(e){return"[object RegExp]"===G(e)&&L(e)}function H(e){if(A)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!E)return!1;try{return E.call(e),!0}catch(e){}return!1}yt=function e(n,t,o,d){var x=t||{};if(W(x,"quoteStyle")&&!W(R,x.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(W(x,"maxStringLength")&&("number"==typeof x.maxStringLength?x.maxStringLength<0&&x.maxStringLength!==1/0:null!==x.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var b=!W(x,"customInspect")||x.customInspect;if("boolean"!=typeof b&&"symbol"!==b)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(x,"indent")&&null!==x.indent&&"\t"!==x.indent&&!(parseInt(x.indent,10)===x.indent&&x.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(W(x,"numericSeparator")&&"boolean"!=typeof x.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var j=x.numericSeparator;if(void 0===n)return"undefined";if(null===n)return"null";if("boolean"==typeof n)return n?"true":"false";if("string"==typeof n)return V(n,x);if("number"==typeof n){if(0===n)return 1/0/n>0?"0":"-0";var S=String(n);return j?B(n,S):S}if("bigint"==typeof n){var I=String(n)+"n";return j?B(n,I):I}var D=void 0===x.depth?5:x.depth;if(void 0===o&&(o=0),o>=D&&D>0&&"object"==typeof n)return U(n)?"[Array]":"[Object]";var $=function(e,n){var a;if("\t"===e.indent)a="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;a=w.call(Array(e.indent+1)," ")}return{base:a,prev:w.call(Array(n+1),a)}}(x,o);if(void 0===d)d=[];else if(K(d,n)>=0)return"[Circular]";function J(n,a,i){if(a&&(d=k.call(d)).push(a),i){var t={depth:x.depth};return W(x,"quoteStyle")&&(t.quoteStyle=x.quoteStyle),e(n,t,o+1,d)}return e(n,x,o+1,d)}if("function"==typeof n&&!M(n)){var ne=function(e){if(e.name)return e.name;var n=m.call(f.call(e),/^function\s*([\w$]+)/);if(n)return n[1];return null}(n),ae=ee(n,J);return"[Function"+(ne?": "+ne:" (anonymous)")+"]"+(ae.length>0?" { "+w.call(ae,", ")+" }":"")}if(H(n)){var ie=A?h.call(String(n),/^(Symbol\(.*\))_[^)]*$/,"$1"):E.call(n);return"object"!=typeof n||A?ie:Z(ie)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(n)){for(var te="<"+g.call(String(n.nodeName)),oe=n.attributes||[],re=0;re<oe.length;re++)te+=" "+oe[re].name+"="+N(F(oe[re].value),"double",x);return te+=">",n.childNodes&&n.childNodes.length&&(te+="..."),te+="</"+g.call(String(n.nodeName))+">"}if(U(n)){if(0===n.length)return"[]";var se=ee(n,J);return $&&!function(e){for(var n=0;n<e.length;n++)if(K(e[n],"\n")>=0)return!1;return!0}(se)?"["+Q(se,$)+"]":"[ "+w.call(se,", ")+" ]"}if(function(e){return"[object Error]"===G(e)&&L(e)}(n)){var ce=ee(n,J);return"cause"in Error.prototype||!("cause"in n)||O.call(n,"cause")?0===ce.length?"["+String(n)+"]":"{ ["+String(n)+"] "+w.call(ce,", ")+" }":"{ ["+String(n)+"] "+w.call(y.call("[cause]: "+J(n.cause),ce),", ")+" }"}if("object"==typeof n&&b){if(q&&"function"==typeof n[q]&&P)return P(n,{depth:D-o});if("symbol"!==b&&"function"==typeof n.inspect)return n.inspect()}if(function(e){if(!a||!e||"object"!=typeof e)return!1;try{a.call(e);try{r.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(n)){var pe=[];return i&&i.call(n,(function(e,a){pe.push(J(a,n,!0)+" => "+J(e,n))})),Y("Map",a.call(n),pe,$)}if(function(e){if(!r||!e||"object"!=typeof e)return!1;try{r.call(e);try{a.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(n)){var le=[];return s&&s.call(n,(function(e){le.push(J(e,n))})),Y("Set",r.call(n),le,$)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e,c);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(n))return X("WeakMap");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{c.call(e,c)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(n))return X("WeakSet");if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{return l.call(e),!0}catch(e){}return!1}(n))return X("WeakRef");if(function(e){return"[object Number]"===G(e)&&L(e)}(n))return Z(J(Number(n)));if(function(e){if(!e||"object"!=typeof e||!_)return!1;try{return _.call(e),!0}catch(e){}return!1}(n))return Z(J(_.call(n)));if(function(e){return"[object Boolean]"===G(e)&&L(e)}(n))return Z(u.call(n));if(function(e){return"[object String]"===G(e)&&L(e)}(n))return Z(J(String(n)));if("undefined"!=typeof window&&n===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&n===globalThis||void 0!==z&&n===z)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===G(e)&&L(e)}(n)&&!M(n)){var ue=ee(n,J),de=T?T(n)===Object.prototype:n instanceof Object||n.constructor===Object,fe=n instanceof Object?"":"null prototype",me=!de&&C&&Object(n)===n&&C in n?v.call(G(n),8,-1):fe?"Object":"",ve=(de||"function"!=typeof n.constructor?"":n.constructor.name?n.constructor.name+" ":"")+(me||fe?"["+w.call(y.call([],me||[],fe||[]),": ")+"] ":"");return 0===ue.length?ve+"{}":$?ve+"{"+Q(ue,$)+"}":ve+"{ "+w.call(ue,", ")+" }"}return String(n)};var $=Object.prototype.hasOwnProperty||function(e){return e in this};function W(e,n){return $.call(e,n)}function G(e){return d.call(e)}function K(e,n){if(e.indexOf)return e.indexOf(n);for(var a=0,i=e.length;a<i;a++)if(e[a]===n)return a;return-1}function V(e,n){if(e.length>n.maxStringLength){var a=e.length-n.maxStringLength,i="... "+a+" more character"+(a>1?"s":"");return V(v.call(e,0,n.maxStringLength),n)+i}var t=D[n.quoteStyle||"single"];return t.lastIndex=0,N(h.call(h.call(e,t,"\\$1"),/[\x00-\x1f]/g,J),"single",n)}function J(e){var n=e.charCodeAt(0),a={8:"b",9:"t",10:"n",12:"f",13:"r"}[n];return a?"\\"+a:"\\x"+(n<16?"0":"")+x.call(n.toString(16))}function Z(e){return"Object("+e+")"}function X(e){return e+" { ? }"}function Y(e,n,a,i){return e+" ("+n+") {"+(i?Q(a,i):w.call(a,", "))+"}"}function Q(e,n){if(0===e.length)return"";var a="\n"+n.prev+n.base;return a+w.call(e,","+a)+"\n"+n.prev}function ee(e,n){var a=U(e),i=[];if(a){i.length=e.length;for(var t=0;t<e.length;t++)i[t]=W(e,t)?n(e[t],e):""}var o,r="function"==typeof S?S(e):[];if(A){o={};for(var s=0;s<r.length;s++)o["$"+r[s]]=r[s]}for(var c in e)W(e,c)&&(a&&String(Number(c))===c&&c<e.length||A&&o["$"+c]instanceof Symbol||(b.call(/[^\w$]/,c)?i.push(n(c,e)+": "+n(e[c],e)):i.push(c+": "+n(e[c],e))));if("function"==typeof S)for(var p=0;p<r.length;p++)O.call(e,r[p])&&i.push("["+n(r[p])+"]: "+n(e[r[p]],e));return i}return yt}function hr(){if(jt)return kt;jt=1;var e=vr(),n=fr(),a=function(e,n,a){for(var i,t=e;null!=(i=t.next);t=i)if(i.key===n)return t.next=i.next,a||(i.next=e.next,e.next=i),i};return kt=function(){var i,t={assert:function(a){if(!t.has(a))throw new n("Side channel does not contain "+e(a))},delete:function(e){var n=i&&i.next,t=function(e,n){if(e)return a(e,n,!0)}(i,e);return t&&n&&n===t&&(i=void 0),!!t},get:function(e){return function(e,n){if(e){var i=a(e,n);return i&&i.value}}(i,e)},has:function(e){return function(e,n){return!!e&&!!a(e,n)}(i,e)},set:function(e,n){i||(i={next:void 0}),function(e,n,i){var t=a(e,n);t?t.value=i:e.next={key:n,next:e.next,value:i}}(i,e,n)}};return t},kt}function xr(){return St?_t:(St=1,_t=Object)}function gr(){return At?Et:(At=1,Et=Error)}function br(){return Ot?Ct:(Ot=1,Ct=EvalError)}function yr(){return Bt?Tt:(Bt=1,Tt=RangeError)}function wr(){return zt?Pt:(zt=1,Pt=ReferenceError)}function kr(){return qt?It:(qt=1,It=SyntaxError)}function jr(){return Dt?Rt:(Dt=1,Rt=URIError)}function _r(){return Ft?Nt:(Ft=1,Nt=Math.abs)}function Sr(){return Ut?Lt:(Ut=1,Lt=Math.floor)}function Er(){return Ht?Mt:(Ht=1,Mt=Math.max)}function Ar(){return Wt?$t:(Wt=1,$t=Math.min)}function Cr(){return Kt?Gt:(Kt=1,Gt=Math.pow)}function Or(){return Jt?Vt:(Jt=1,Vt=Math.round)}function Tr(){return Xt?Zt:(Xt=1,Zt=Number.isNaN||function(e){return e!=e})}function Br(){if(Qt)return Yt;Qt=1;var e=Tr();return Yt=function(n){return e(n)||0===n?n:n<0?-1:1}}function Pr(){return no?eo:(no=1,eo=Object.getOwnPropertyDescriptor)}function zr(){if(io)return ao;io=1;var e=Pr();if(e)try{e([],"length")}catch(n){e=null}return ao=e}function Ir(){if(oo)return to;oo=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(n){e=!1}return to=e}function qr(){if(po)return co;po=1;var e="undefined"!=typeof Symbol&&Symbol,n=so?ro:(so=1,ro=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},n=Symbol("test"),a=Object(n);if("string"==typeof n)return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;if("[object Symbol]"!==Object.prototype.toString.call(a))return!1;for(var i in e[n]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var t=Object.getOwnPropertySymbols(e);if(1!==t.length||t[0]!==n)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,n);if(42!==o.value||!0!==o.enumerable)return!1}return!0});return co=function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&n())))}}function Rr(){return uo?lo:(uo=1,lo="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function Dr(){return mo?fo:(mo=1,fo=xr().getPrototypeOf||null)}function Nr(){if(ho)return vo;ho=1;var e=Object.prototype.toString,n=Math.max,a=function(e,n){for(var a=[],i=0;i<e.length;i+=1)a[i]=e[i];for(var t=0;t<n.length;t+=1)a[t+e.length]=n[t];return a};return vo=function(i){var t=this;if("function"!=typeof t||"[object Function]"!==e.apply(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var o,r=function(e,n){for(var a=[],i=n,t=0;i<e.length;i+=1,t+=1)a[t]=e[i];return a}(arguments,1),s=n(0,t.length-r.length),c=[],p=0;p<s;p++)c[p]="$"+p;if(o=Function("binder","return function ("+function(e,n){for(var a="",i=0;i<e.length;i+=1)a+=e[i],i+1<e.length&&(a+=n);return a}(c,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var e=t.apply(this,a(r,arguments));return Object(e)===e?e:this}return t.apply(i,a(r,arguments))})),t.prototype){var l=function(){};l.prototype=t.prototype,o.prototype=new l,l.prototype=null}return o},vo}function Fr(){if(go)return xo;go=1;var e=Nr();return xo=Function.prototype.bind||e}function Lr(){return yo?bo:(yo=1,bo=Function.prototype.call)}function Ur(){return ko?wo:(ko=1,wo=Function.prototype.apply)}function Mr(){if(Eo)return So;Eo=1;var e=Fr(),n=Ur(),a=Lr(),i=_o?jo:(_o=1,jo="undefined"!=typeof Reflect&&Reflect&&Reflect.apply);return So=i||e.call(a,n)}function Hr(){if(Co)return Ao;Co=1;var e=Fr(),n=fr(),a=Lr(),i=Mr();return Ao=function(t){if(t.length<1||"function"!=typeof t[0])throw new n("a function is required");return i(e,a,t)}}function $r(){if(To)return Oo;To=1;var e,n=Hr(),a=zr();try{e=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var i=!!e&&a&&a(Object.prototype,"__proto__"),t=Object,o=t.getPrototypeOf;return Oo=i&&"function"==typeof i.get?n([i.get]):"function"==typeof o&&function(e){return o(null==e?e:t(e))}}function Wr(){if(Po)return Bo;Po=1;var e=Rr(),n=Dr(),a=$r();return Bo=e?function(n){return e(n)}:n?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return n(e)}:a?function(e){return a(e)}:null}function Gr(){if(Io)return zo;Io=1;var e=Function.prototype.call,n=Object.prototype.hasOwnProperty,a=Fr();return zo=a.call(e,n)}function Kr(){if(Ro)return qo;var e;Ro=1;var n=xr(),a=gr(),i=br(),t=yr(),o=wr(),r=kr(),s=fr(),c=jr(),p=_r(),l=Sr(),u=Er(),d=Ar(),f=Cr(),m=Or(),v=Br(),h=Function,x=function(e){try{return h('"use strict"; return ('+e+").constructor;")()}catch(e){}},g=zr(),b=Ir(),y=function(){throw new s},w=g?function(){try{return y}catch(e){try{return g(arguments,"callee").get}catch(e){return y}}}():y,k=qr()(),j=Wr(),_=Dr(),S=Rr(),E=Ur(),A=Lr(),C={},O="undefined"!=typeof Uint8Array&&j?j(Uint8Array):e,T={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?e:ArrayBuffer,"%ArrayIteratorPrototype%":k&&j?j([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":C,"%AsyncGenerator%":C,"%AsyncGeneratorFunction%":C,"%AsyncIteratorPrototype%":C,"%Atomics%":"undefined"==typeof Atomics?e:Atomics,"%BigInt%":"undefined"==typeof BigInt?e:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?e:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a,"%eval%":eval,"%EvalError%":i,"%Float16Array%":"undefined"==typeof Float16Array?e:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?e:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?e:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?e:FinalizationRegistry,"%Function%":h,"%GeneratorFunction%":C,"%Int8Array%":"undefined"==typeof Int8Array?e:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?e:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":k&&j?j(j([][Symbol.iterator]())):e,"%JSON%":"object"==typeof JSON?JSON:e,"%Map%":"undefined"==typeof Map?e:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&k&&j?j((new Map)[Symbol.iterator]()):e,"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":g,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?e:Promise,"%Proxy%":"undefined"==typeof Proxy?e:Proxy,"%RangeError%":t,"%ReferenceError%":o,"%Reflect%":"undefined"==typeof Reflect?e:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?e:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&k&&j?j((new Set)[Symbol.iterator]()):e,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":k&&j?j(""[Symbol.iterator]()):e,"%Symbol%":k?Symbol:e,"%SyntaxError%":r,"%ThrowTypeError%":w,"%TypedArray%":O,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?e:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?e:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?e:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?e:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"==typeof WeakMap?e:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?e:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?e:WeakSet,"%Function.prototype.call%":A,"%Function.prototype.apply%":E,"%Object.defineProperty%":b,"%Object.getPrototypeOf%":_,"%Math.abs%":p,"%Math.floor%":l,"%Math.max%":u,"%Math.min%":d,"%Math.pow%":f,"%Math.round%":m,"%Math.sign%":v,"%Reflect.getPrototypeOf%":S};if(j)try{null.error}catch(e){var B=j(j(e));T["%Error.prototype%"]=B}var P=function e(n){var a;if("%AsyncFunction%"===n)a=x("async function () {}");else if("%GeneratorFunction%"===n)a=x("function* () {}");else if("%AsyncGeneratorFunction%"===n)a=x("async function* () {}");else if("%AsyncGenerator%"===n){var i=e("%AsyncGeneratorFunction%");i&&(a=i.prototype)}else if("%AsyncIteratorPrototype%"===n){var t=e("%AsyncGenerator%");t&&j&&(a=j(t.prototype))}return T[n]=a,a},z={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},I=Fr(),q=Gr(),R=I.call(A,Array.prototype.concat),D=I.call(E,Array.prototype.splice),N=I.call(A,String.prototype.replace),F=I.call(A,String.prototype.slice),L=I.call(A,RegExp.prototype.exec),U=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,M=/\\(\\)?/g,H=function(e,n){var a,i=e;if(q(z,i)&&(i="%"+(a=z[i])[0]+"%"),q(T,i)){var t=T[i];if(t===C&&(t=P(i)),void 0===t&&!n)throw new s("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:i,value:t}}throw new r("intrinsic "+e+" does not exist!")};return qo=function(e,n){if("string"!=typeof e||0===e.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof n)throw new s('"allowMissing" argument must be a boolean');if(null===L(/^%?[^%]*%?$/,e))throw new r("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=function(e){var n=F(e,0,1),a=F(e,-1);if("%"===n&&"%"!==a)throw new r("invalid intrinsic syntax, expected closing `%`");if("%"===a&&"%"!==n)throw new r("invalid intrinsic syntax, expected opening `%`");var i=[];return N(e,U,(function(e,n,a,t){i[i.length]=a?N(t,M,"$1"):n||e})),i}(e),i=a.length>0?a[0]:"",t=H("%"+i+"%",n),o=t.name,c=t.value,p=!1,l=t.alias;l&&(i=l[0],D(a,R([0,1],l)));for(var u=1,d=!0;u<a.length;u+=1){var f=a[u],m=F(f,0,1),v=F(f,-1);if(('"'===m||"'"===m||"`"===m||'"'===v||"'"===v||"`"===v)&&m!==v)throw new r("property names with quotes must have matching quotes");if("constructor"!==f&&d||(p=!0),q(T,o="%"+(i+="."+f)+"%"))c=T[o];else if(null!=c){if(!(f in c)){if(!n)throw new s("base intrinsic for "+e+" exists, but the property is not available.");return}if(g&&u+1>=a.length){var h=g(c,f);c=(d=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:c[f]}else d=q(c,f),c=c[f];d&&!p&&(T[o]=c)}}return c},qo}function Vr(){if(No)return Do;No=1;var e=Kr(),n=Hr(),a=n([e("%String.prototype.indexOf%")]);return Do=function(i,t){var o=e(i,!!t);return"function"==typeof o&&a(i,".prototype.")>-1?n([o]):o}}function Jr(){if(Lo)return Fo;Lo=1;var e=Kr(),n=Vr(),a=vr(),i=fr(),t=e("%Map%",!0),o=n("Map.prototype.get",!0),r=n("Map.prototype.set",!0),s=n("Map.prototype.has",!0),c=n("Map.prototype.delete",!0),p=n("Map.prototype.size",!0);return Fo=!!t&&function(){var e,n={assert:function(e){if(!n.has(e))throw new i("Side channel does not contain "+a(e))},delete:function(n){if(e){var a=c(e,n);return 0===p(e)&&(e=void 0),a}return!1},get:function(n){if(e)return o(e,n)},has:function(n){return!!e&&s(e,n)},set:function(n,a){e||(e=new t),r(e,n,a)}};return n}}function Zr(){if($o)return Ho;$o=1;var e=fr(),n=vr(),a=hr(),i=Jr(),t=function(){if(Mo)return Uo;Mo=1;var e=Kr(),n=Vr(),a=vr(),i=Jr(),t=fr(),o=e("%WeakMap%",!0),r=n("WeakMap.prototype.get",!0),s=n("WeakMap.prototype.set",!0),c=n("WeakMap.prototype.has",!0),p=n("WeakMap.prototype.delete",!0);return Uo=o?function(){var e,n,l={assert:function(e){if(!l.has(e))throw new t("Side channel does not contain "+a(e))},delete:function(a){if(o&&a&&("object"==typeof a||"function"==typeof a)){if(e)return p(e,a)}else if(i&&n)return n.delete(a);return!1},get:function(a){return o&&a&&("object"==typeof a||"function"==typeof a)&&e?r(e,a):n&&n.get(a)},has:function(a){return o&&a&&("object"==typeof a||"function"==typeof a)&&e?c(e,a):!!n&&n.has(a)},set:function(a,t){o&&a&&("object"==typeof a||"function"==typeof a)?(e||(e=new o),s(e,a,t)):i&&(n||(n=i()),n.set(a,t))}};return l}:i}(),o=t||i||a;return Ho=function(){var a,i={assert:function(a){if(!i.has(a))throw new e("Side channel does not contain "+n(a))},delete:function(e){return!!a&&a.delete(e)},get:function(e){return a&&a.get(e)},has:function(e){return!!a&&a.has(e)},set:function(e,n){a||(a=o()),a.set(e,n)}};return i}}function Xr(){if(Go)return Wo;Go=1;var e=String.prototype.replace,n=/%20/g,a="RFC3986";return Wo={default:a,formatters:{RFC1738:function(a){return e.call(a,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:a}}function Yr(){if(Vo)return Ko;Vo=1;var e=Xr(),n=Object.prototype.hasOwnProperty,a=Array.isArray,i=function(){for(var e=[],n=0;n<256;++n)e.push("%"+((n<16?"0":"")+n.toString(16)).toUpperCase());return e}(),t=function(e,n){for(var a=n&&n.plainObjects?Object.create(null):{},i=0;i<e.length;++i)void 0!==e[i]&&(a[i]=e[i]);return a},o=1024;return Ko={arrayToObject:t,assign:function(e,n){return Object.keys(n).reduce((function(e,a){return e[a]=n[a],e}),e)},combine:function(e,n){return[].concat(e,n)},compact:function(e){for(var n=[{obj:{o:e},prop:"o"}],i=[],t=0;t<n.length;++t)for(var o=n[t],r=o.obj[o.prop],s=Object.keys(r),c=0;c<s.length;++c){var p=s[c],l=r[p];"object"==typeof l&&null!==l&&-1===i.indexOf(l)&&(n.push({obj:r,prop:p}),i.push(l))}return function(e){for(;e.length>1;){var n=e.pop(),i=n.obj[n.prop];if(a(i)){for(var t=[],o=0;o<i.length;++o)void 0!==i[o]&&t.push(i[o]);n.obj[n.prop]=t}}}(n),e},decode:function(e,n,a){var i=e.replace(/\+/g," ");if("iso-8859-1"===a)return i.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(i)}catch(e){return i}},encode:function(n,a,t,r,s){if(0===n.length)return n;var c=n;if("symbol"==typeof n?c=Symbol.prototype.toString.call(n):"string"!=typeof n&&(c=String(n)),"iso-8859-1"===t)return escape(c).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var p="",l=0;l<c.length;l+=o){for(var u=c.length>=o?c.slice(l,l+o):c,d=[],f=0;f<u.length;++f){var m=u.charCodeAt(f);45===m||46===m||95===m||126===m||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||s===e.RFC1738&&(40===m||41===m)?d[d.length]=u.charAt(f):m<128?d[d.length]=i[m]:m<2048?d[d.length]=i[192|m>>6]+i[128|63&m]:m<55296||m>=57344?d[d.length]=i[224|m>>12]+i[128|m>>6&63]+i[128|63&m]:(f+=1,m=65536+((1023&m)<<10|1023&u.charCodeAt(f)),d[d.length]=i[240|m>>18]+i[128|m>>12&63]+i[128|m>>6&63]+i[128|63&m])}p+=d.join("")}return p},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,n){if(a(e)){for(var i=[],t=0;t<e.length;t+=1)i.push(n(e[t]));return i}return n(e)},merge:function e(i,o,r){if(!o)return i;if("object"!=typeof o){if(a(i))i.push(o);else{if(!i||"object"!=typeof i)return[i,o];(r&&(r.plainObjects||r.allowPrototypes)||!n.call(Object.prototype,o))&&(i[o]=!0)}return i}if(!i||"object"!=typeof i)return[i].concat(o);var s=i;return a(i)&&!a(o)&&(s=t(i,r)),a(i)&&a(o)?(o.forEach((function(a,t){if(n.call(i,t)){var o=i[t];o&&"object"==typeof o&&a&&"object"==typeof a?i[t]=e(o,a,r):i.push(a)}else i[t]=a})),i):Object.keys(o).reduce((function(a,i){var t=o[i];return n.call(a,i)?a[i]=e(a[i],t,r):a[i]=t,a}),s)}},Ko}function Qr(){if(Zo)return Jo;Zo=1;var e=Zr(),n=Yr(),a=Xr(),i=Object.prototype.hasOwnProperty,t={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,n){return e+"["+n+"]"},repeat:function(e){return e}},o=Array.isArray,r=Array.prototype.push,s=function(e,n){r.apply(e,o(n)?n:[n])},c=Date.prototype.toISOString,p=a.default,l={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:n.encode,encodeValuesOnly:!1,format:p,formatter:a.formatters[p],indices:!1,serializeDate:function(e){return c.call(e)},skipNulls:!1,strictNullHandling:!1},u={},d=function a(i,t,r,c,p,d,f,m,v,h,x,g,b,y,w,k,j,_){for(var S,E=i,A=_,C=0,O=!1;void 0!==(A=A.get(u))&&!O;){var T=A.get(i);if(C+=1,void 0!==T){if(T===C)throw new RangeError("Cyclic object value");O=!0}void 0===A.get(u)&&(C=0)}if("function"==typeof h?E=h(t,E):E instanceof Date?E=b(E):"comma"===r&&o(E)&&(E=n.maybeMap(E,(function(e){return e instanceof Date?b(e):e}))),null===E){if(d)return v&&!k?v(t,l.encoder,j,"key",y):t;E=""}if("string"==typeof(S=E)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||n.isBuffer(E))return v?[w(k?t:v(t,l.encoder,j,"key",y))+"="+w(v(E,l.encoder,j,"value",y))]:[w(t)+"="+w(String(E))];var B,P=[];if(void 0===E)return P;if("comma"===r&&o(E))k&&v&&(E=n.maybeMap(E,v)),B=[{value:E.length>0?E.join(",")||null:void 0}];else if(o(h))B=h;else{var z=Object.keys(E);B=x?z.sort(x):z}var I=m?t.replace(/\./g,"%2E"):t,q=c&&o(E)&&1===E.length?I+"[]":I;if(p&&o(E)&&0===E.length)return q+"[]";for(var R=0;R<B.length;++R){var D=B[R],N="object"==typeof D&&void 0!==D.value?D.value:E[D];if(!f||null!==N){var F=g&&m?D.replace(/\./g,"%2E"):D,L=o(E)?"function"==typeof r?r(q,F):q:q+(g?"."+F:"["+F+"]");_.set(i,C);var U=e();U.set(u,_),s(P,a(N,L,r,c,p,d,f,m,"comma"===r&&k&&o(E)?null:v,h,x,g,b,y,w,k,j,U))}}return P};return Jo=function(n,r){var c,p=n,u=function(e){if(!e)return l;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var n=e.charset||l.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=a.default;if(void 0!==e.format){if(!i.call(a.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var s,c=a.formatters[r],p=l.filter;if(("function"==typeof e.filter||o(e.filter))&&(p=e.filter),s=e.arrayFormat in t?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":l.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=void 0===e.allowDots?!0===e.encodeDotInKeys||l.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:l.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:l.allowEmptyArrays,arrayFormat:s,charset:n,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:l.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?l.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:l.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:l.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:l.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:l.encodeValuesOnly,filter:p,format:r,formatter:c,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:l.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:l.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:l.strictNullHandling}}(r);"function"==typeof u.filter?p=(0,u.filter)("",p):o(u.filter)&&(c=u.filter);var f=[];if("object"!=typeof p||null===p)return"";var m=t[u.arrayFormat],v="comma"===m&&u.commaRoundTrip;c||(c=Object.keys(p)),u.sort&&c.sort(u.sort);for(var h=e(),x=0;x<c.length;++x){var g=c[x];u.skipNulls&&null===p[g]||s(f,d(p[g],g,m,v,u.allowEmptyArrays,u.strictNullHandling,u.skipNulls,u.encodeDotInKeys,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.format,u.formatter,u.encodeValuesOnly,u.charset,h))}var b=f.join(u.delimiter),y=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),b.length>0?y+b:""},Jo}function es(){if(Yo)return Xo;Yo=1;var e=Yr(),n=Object.prototype.hasOwnProperty,a=Array.isArray,i={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},t=function(e){return e.replace(/&#(\d+);/g,(function(e,n){return String.fromCharCode(parseInt(n,10))}))},o=function(e,n){return e&&"string"==typeof e&&n.comma&&e.indexOf(",")>-1?e.split(","):e},r=function(e,a,i,t){if(e){var r=i.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,c=i.depth>0&&/(\[[^[\]]*])/.exec(r),p=c?r.slice(0,c.index):r,l=[];if(p){if(!i.plainObjects&&n.call(Object.prototype,p)&&!i.allowPrototypes)return;l.push(p)}for(var u=0;i.depth>0&&null!==(c=s.exec(r))&&u<i.depth;){if(u+=1,!i.plainObjects&&n.call(Object.prototype,c[1].slice(1,-1))&&!i.allowPrototypes)return;l.push(c[1])}if(c){if(!0===i.strictDepth)throw new RangeError("Input depth exceeded depth option of "+i.depth+" and strictDepth is true");l.push("["+r.slice(c.index)+"]")}return function(e,n,a,i){for(var t=i?n:o(n,a),r=e.length-1;r>=0;--r){var s,c=e[r];if("[]"===c&&a.parseArrays)s=a.allowEmptyArrays&&(""===t||a.strictNullHandling&&null===t)?[]:[].concat(t);else{s=a.plainObjects?Object.create(null):{};var p="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,l=a.decodeDotInKeys?p.replace(/%2E/g,"."):p,u=parseInt(l,10);a.parseArrays||""!==l?!isNaN(u)&&c!==l&&String(u)===l&&u>=0&&a.parseArrays&&u<=a.arrayLimit?(s=[])[u]=t:"__proto__"!==l&&(s[l]=t):s={0:t}}t=s}return t}(l,a,i,t)}};return Xo=function(s,c){var p=function(n){if(!n)return i;if(void 0!==n.allowEmptyArrays&&"boolean"!=typeof n.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==n.decodeDotInKeys&&"boolean"!=typeof n.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==n.decoder&&void 0!==n.decoder&&"function"!=typeof n.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==n.charset&&"utf-8"!==n.charset&&"iso-8859-1"!==n.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var a=void 0===n.charset?i.charset:n.charset,t=void 0===n.duplicates?i.duplicates:n.duplicates;if("combine"!==t&&"first"!==t&&"last"!==t)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===n.allowDots?!0===n.decodeDotInKeys||i.allowDots:!!n.allowDots,allowEmptyArrays:"boolean"==typeof n.allowEmptyArrays?!!n.allowEmptyArrays:i.allowEmptyArrays,allowPrototypes:"boolean"==typeof n.allowPrototypes?n.allowPrototypes:i.allowPrototypes,allowSparse:"boolean"==typeof n.allowSparse?n.allowSparse:i.allowSparse,arrayLimit:"number"==typeof n.arrayLimit?n.arrayLimit:i.arrayLimit,charset:a,charsetSentinel:"boolean"==typeof n.charsetSentinel?n.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof n.comma?n.comma:i.comma,decodeDotInKeys:"boolean"==typeof n.decodeDotInKeys?n.decodeDotInKeys:i.decodeDotInKeys,decoder:"function"==typeof n.decoder?n.decoder:i.decoder,delimiter:"string"==typeof n.delimiter||e.isRegExp(n.delimiter)?n.delimiter:i.delimiter,depth:"number"==typeof n.depth||!1===n.depth?+n.depth:i.depth,duplicates:t,ignoreQueryPrefix:!0===n.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof n.interpretNumericEntities?n.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof n.parameterLimit?n.parameterLimit:i.parameterLimit,parseArrays:!1!==n.parseArrays,plainObjects:"boolean"==typeof n.plainObjects?n.plainObjects:i.plainObjects,strictDepth:"boolean"==typeof n.strictDepth?!!n.strictDepth:i.strictDepth,strictNullHandling:"boolean"==typeof n.strictNullHandling?n.strictNullHandling:i.strictNullHandling}}(c);if(""===s||null==s)return p.plainObjects?Object.create(null):{};for(var l="string"==typeof s?function(r,s){var c={__proto__:null},p=s.ignoreQueryPrefix?r.replace(/^\?/,""):r;p=p.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var l,u=s.parameterLimit===1/0?void 0:s.parameterLimit,d=p.split(s.delimiter,u),f=-1,m=s.charset;if(s.charsetSentinel)for(l=0;l<d.length;++l)0===d[l].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[l]?m="utf-8":"utf8=%26%2310003%3B"===d[l]&&(m="iso-8859-1"),f=l,l=d.length);for(l=0;l<d.length;++l)if(l!==f){var v,h,x=d[l],g=x.indexOf("]="),b=-1===g?x.indexOf("="):g+1;-1===b?(v=s.decoder(x,i.decoder,m,"key"),h=s.strictNullHandling?null:""):(v=s.decoder(x.slice(0,b),i.decoder,m,"key"),h=e.maybeMap(o(x.slice(b+1),s),(function(e){return s.decoder(e,i.decoder,m,"value")}))),h&&s.interpretNumericEntities&&"iso-8859-1"===m&&(h=t(h)),x.indexOf("[]=")>-1&&(h=a(h)?[h]:h);var y=n.call(c,v);y&&"combine"===s.duplicates?c[v]=e.combine(c[v],h):y&&"last"!==s.duplicates||(c[v]=h)}return c}(s,p):s,u=p.plainObjects?Object.create(null):{},d=Object.keys(l),f=0;f<d.length;++f){var m=d[f],v=r(m,l[m],p,"string"==typeof s);u=e.merge(u,v,p)}return!0===p.allowSparse?u:e.compact(u)},Xo}function ns(){if(er)return Qo;er=1;var e=Qr(),n=es();return Qo={formats:Xr(),parse:n,stringify:e}}
|
97
97
|
/*!
|
98
98
|
* body-parser
|
99
99
|
* Copyright(c) 2014 Jonathan Ong
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "mstate-cli",
|
3
|
-
"version": "0.4.
|
4
|
-
"main": "index.js",
|
3
|
+
"version": "0.4.5",
|
4
|
+
"main": "dist/index.js",
|
5
5
|
"bin": {
|
6
6
|
"mstate": "./dist/index.js"
|
7
7
|
},
|
@@ -9,6 +9,7 @@
|
|
9
9
|
"build": "rollup -c",
|
10
10
|
"dev": "rollup -c --watch",
|
11
11
|
"prod": "npm run build",
|
12
|
+
"deploy": "npm run build && npm publish",
|
12
13
|
"start": "npm run build && node dist/index.js"
|
13
14
|
},
|
14
15
|
"keywords": [
|
@@ -39,7 +40,9 @@
|
|
39
40
|
"dependencies": {
|
40
41
|
"cors": "^2.8.5",
|
41
42
|
"crypto-js": "^4.2.0",
|
43
|
+
"default-browser": "^5.2.1",
|
42
44
|
"express": "^4.21.1",
|
45
|
+
"is-inside-container": "^1.0.0",
|
43
46
|
"mstate-cli": "^0.0.9",
|
44
47
|
"open": "^10.1.0"
|
45
48
|
}
|
@@ -51,6 +51,10 @@ class ActionHandler {
|
|
51
51
|
}
|
52
52
|
}
|
53
53
|
|
54
|
+
async wait(ms: number) {
|
55
|
+
return new Promise((resolve) => setTimeout(resolve, ms));
|
56
|
+
}
|
57
|
+
|
54
58
|
async saveToDB() {
|
55
59
|
const workflowName = getValueFromArgs(Variables.WORKFLOW, true);
|
56
60
|
const secretKey = getSecretKey();
|
@@ -59,10 +63,11 @@ class ActionHandler {
|
|
59
63
|
|
60
64
|
let query = `?workflow=${workflowName}`;
|
61
65
|
// loop to every folder to publish workflow
|
62
|
-
fs.readdir(folderPath, (err, files) => {
|
66
|
+
fs.readdir(folderPath, async (err, files) => {
|
63
67
|
if (!files) return;
|
64
68
|
|
65
|
-
|
69
|
+
for (const fileName of files) {
|
70
|
+
await this.wait(500);
|
66
71
|
const filePath = path.join(folderPath, fileName);
|
67
72
|
const data = fs.readFileSync(filePath, 'utf8');
|
68
73
|
|
@@ -86,7 +91,7 @@ class ActionHandler {
|
|
86
91
|
} else {
|
87
92
|
customLog.success(`Action ${actionConfig.name} Updated successfully`);
|
88
93
|
}
|
89
|
-
}
|
94
|
+
}
|
90
95
|
});
|
91
96
|
}
|
92
97
|
}
|