UNPKG

@frames.js/debugger

Version:

Debug your Frames.js applications

1 lines 605 kB
exports.id=7352,exports.ids=[7352],exports.modules={63648:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(19337),s=r(79068);function o(e,t,r,o,a){if(void 0===a&&(a=0),32!==e.length)throw Error("ChaCha: key size must be 32 bytes");if(o.length<r.length)throw Error("ChaCha: destination is shorter than source");if(0===a){if(8!==t.length&&12!==t.length)throw Error("ChaCha nonce must be 8 or 12 bytes");u=(h=new Uint8Array(16)).length-t.length,h.set(t,u)}else{if(16!==t.length)throw Error("ChaCha nonce with counter must be 16 bytes");h=t,u=a}for(var h,u,l=new Uint8Array(64),c=0;c<r.length;c+=64){!function(e,t,r){for(var s=r[3]<<24|r[2]<<16|r[1]<<8|r[0],o=r[7]<<24|r[6]<<16|r[5]<<8|r[4],a=r[11]<<24|r[10]<<16|r[9]<<8|r[8],h=r[15]<<24|r[14]<<16|r[13]<<8|r[12],u=r[19]<<24|r[18]<<16|r[17]<<8|r[16],l=r[23]<<24|r[22]<<16|r[21]<<8|r[20],c=r[27]<<24|r[26]<<16|r[25]<<8|r[24],f=r[31]<<24|r[30]<<16|r[29]<<8|r[28],d=t[3]<<24|t[2]<<16|t[1]<<8|t[0],p=t[7]<<24|t[6]<<16|t[5]<<8|t[4],g=t[11]<<24|t[10]<<16|t[9]<<8|t[8],m=t[15]<<24|t[14]<<16|t[13]<<8|t[12],y=1634760805,v=857760878,b=2036477234,w=1797285236,_=s,E=o,A=a,S=h,I=u,D=l,O=c,x=f,C=d,P=p,M=g,N=m,R=0;R<20;R+=2)C^=y=y+_|0,_^=I=I+(C=C>>>16|C<<16)|0,_=_>>>20|_<<12,P^=v=v+E|0,E^=D=D+(P=P>>>16|P<<16)|0,E=E>>>20|E<<12,M^=b=b+A|0,A^=O=O+(M=M>>>16|M<<16)|0,A=A>>>20|A<<12,N^=w=w+S|0,S^=x=x+(N=N>>>16|N<<16)|0,S=S>>>20|S<<12,M^=b=b+A|0,A^=O=O+(M=M>>>24|M<<8)|0,A=A>>>25|A<<7,N^=w=w+S|0,S^=x=x+(N=N>>>24|N<<8)|0,S=S>>>25|S<<7,P^=v=v+E|0,E^=D=D+(P=P>>>24|P<<8)|0,E=E>>>25|E<<7,C^=y=y+_|0,_^=I=I+(C=C>>>24|C<<8)|0,_=_>>>25|_<<7,N^=y=y+E|0,E^=O=O+(N=N>>>16|N<<16)|0,E=E>>>20|E<<12,C^=v=v+A|0,A^=x=x+(C=C>>>16|C<<16)|0,A=A>>>20|A<<12,P^=b=b+S|0,S^=I=I+(P=P>>>16|P<<16)|0,S=S>>>20|S<<12,M^=w=w+_|0,_^=D=D+(M=M>>>16|M<<16)|0,_=_>>>20|_<<12,P^=b=b+S|0,S^=I=I+(P=P>>>24|P<<8)|0,S=S>>>25|S<<7,M^=w=w+_|0,_^=D=D+(M=M>>>24|M<<8)|0,_=_>>>25|_<<7,C^=v=v+A|0,A^=x=x+(C=C>>>24|C<<8)|0,A=A>>>25|A<<7,N^=y=y+E|0,E^=O=O+(N=N>>>24|N<<8)|0,E=E>>>25|E<<7;i.writeUint32LE(y+1634760805|0,e,0),i.writeUint32LE(v+857760878|0,e,4),i.writeUint32LE(b+2036477234|0,e,8),i.writeUint32LE(w+1797285236|0,e,12),i.writeUint32LE(_+s|0,e,16),i.writeUint32LE(E+o|0,e,20),i.writeUint32LE(A+a|0,e,24),i.writeUint32LE(S+h|0,e,28),i.writeUint32LE(I+u|0,e,32),i.writeUint32LE(D+l|0,e,36),i.writeUint32LE(O+c|0,e,40),i.writeUint32LE(x+f|0,e,44),i.writeUint32LE(C+d|0,e,48),i.writeUint32LE(P+p|0,e,52),i.writeUint32LE(M+g|0,e,56),i.writeUint32LE(N+m|0,e,60)}(l,h,e);for(var f=c;f<c+64&&f<r.length;f++)o[f]=r[f]^l[f-c];(function(e,t,r){for(var i=1;r--;)i=i+(255&e[t])|0,e[t]=255&i,i>>>=8,t++;if(i>0)throw Error("ChaCha: counter overflow")})(h,0,u)}return s.wipe(l),0===a&&s.wipe(h),o}t.streamXOR=o,t.stream=function(e,t,r,i){return void 0===i&&(i=0),s.wipe(r),o(e,t,r,r,i)}},82844:(e,t,r)=>{"use strict";var i=r(63648),s=r(54426),o=r(79068),a=r(19337),h=r(65878);t.Cv=32,t.WH=12,t.pg=16;var u=new Uint8Array(16),l=function(){function e(e){if(this.nonceLength=t.WH,this.tagLength=t.pg,e.length!==t.Cv)throw Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(e)}return e.prototype.seal=function(e,t,r,s){if(e.length>16)throw Error("ChaCha20Poly1305: incorrect nonce length");var a,h=new Uint8Array(16);h.set(e,h.length-e.length);var u=new Uint8Array(32);i.stream(this._key,h,u,4);var l=t.length+this.tagLength;if(s){if(s.length!==l)throw Error("ChaCha20Poly1305: incorrect destination length");a=s}else a=new Uint8Array(l);return i.streamXOR(this._key,h,t,a,4),this._authenticate(a.subarray(a.length-this.tagLength,a.length),u,a.subarray(0,a.length-this.tagLength),r),o.wipe(h),a},e.prototype.open=function(e,t,r,s){if(e.length>16)throw Error("ChaCha20Poly1305: incorrect nonce length");if(t.length<this.tagLength)return null;var a,u=new Uint8Array(16);u.set(e,u.length-e.length);var l=new Uint8Array(32);i.stream(this._key,u,l,4);var c=new Uint8Array(this.tagLength);if(this._authenticate(c,l,t.subarray(0,t.length-this.tagLength),r),!h.equal(c,t.subarray(t.length-this.tagLength,t.length)))return null;var f=t.length-this.tagLength;if(s){if(s.length!==f)throw Error("ChaCha20Poly1305: incorrect destination length");a=s}else a=new Uint8Array(f);return i.streamXOR(this._key,u,t.subarray(0,t.length-this.tagLength),a,4),o.wipe(u),a},e.prototype.clean=function(){return o.wipe(this._key),this},e.prototype._authenticate=function(e,t,r,i){var h=new s.Poly1305(t);i&&(h.update(i),i.length%16>0&&h.update(u.subarray(i.length%16))),h.update(r),r.length%16>0&&h.update(u.subarray(r.length%16));var l=new Uint8Array(8);i&&a.writeUint64LE(i.length,l),h.update(l),a.writeUint64LE(r.length,l),h.update(l);for(var c=h.digest(),f=0;f<c.length;f++)e[f]=c[f];h.clean(),o.wipe(c),o.wipe(l)},e}();t.OK=l},65878:(e,t)=>{"use strict";function r(e,t){if(e.length!==t.length)return 0;for(var r=0,i=0;i<e.length;i++)r|=e[i]^t[i];return 1&r-1>>>8}Object.defineProperty(t,"__esModule",{value:!0}),t.select=function(e,t,r){return~(e-1)&t|e-1&r},t.lessOrEqual=function(e,t){return(0|e)-(0|t)-1>>>31&1},t.compare=r,t.equal=function(e,t){return 0!==e.length&&0!==t.length&&0!==r(e,t)}},20777:(e,t,r)=>{"use strict";t.Xx=t._w=t.aP=t.KS=t.jQ=void 0,r(80127);let i=r(89270);function s(e){let t=new Float64Array(16);if(e)for(let r=0;r<e.length;r++)t[r]=e[r];return t}r(79068),t.jQ=64,t.KS=64,t.aP=32,new Uint8Array(32)[0]=9;let o=s(),a=s([1]),h=(s([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),s([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222])),u=s([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),l=s([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]);function c(e,t){for(let r=0;r<16;r++)e[r]=0|t[r]}function f(e){let t=1;for(let r=0;r<16;r++){let i=e[r]+t+65535;t=Math.floor(i/65536),e[r]=i-65536*t}e[0]+=t-1+37*(t-1)}function d(e,t,r){let i=~(r-1);for(let r=0;r<16;r++){let s=i&(e[r]^t[r]);e[r]^=s,t[r]^=s}}function p(e,t){let r=s(),i=s();for(let e=0;e<16;e++)i[e]=t[e];f(i),f(i),f(i);for(let e=0;e<2;e++){r[0]=i[0]-65517;for(let e=1;e<15;e++)r[e]=i[e]-65535-(r[e-1]>>16&1),r[e-1]&=65535;r[15]=i[15]-32767-(r[14]>>16&1);let e=r[15]>>16&1;r[14]&=65535,d(i,r,1-e)}for(let t=0;t<16;t++)e[2*t]=255&i[t],e[2*t+1]=i[t]>>8}s([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function g(e,t,r){for(let i=0;i<16;i++)e[i]=t[i]+r[i]}function m(e,t,r){for(let i=0;i<16;i++)e[i]=t[i]-r[i]}function y(e,t,r){let i,s,o=0,a=0,h=0,u=0,l=0,c=0,f=0,d=0,p=0,g=0,m=0,y=0,v=0,b=0,w=0,_=0,E=0,A=0,S=0,I=0,D=0,O=0,x=0,C=0,P=0,M=0,N=0,R=0,k=0,T=0,L=0,j=r[0],U=r[1],B=r[2],q=r[3],z=r[4],F=r[5],$=r[6],H=r[7],K=r[8],V=r[9],W=r[10],G=r[11],J=r[12],Q=r[13],Y=r[14],X=r[15];o+=(i=t[0])*j,a+=i*U,h+=i*B,u+=i*q,l+=i*z,c+=i*F,f+=i*$,d+=i*H,p+=i*K,g+=i*V,m+=i*W,y+=i*G,v+=i*J,b+=i*Q,w+=i*Y,_+=i*X,a+=(i=t[1])*j,h+=i*U,u+=i*B,l+=i*q,c+=i*z,f+=i*F,d+=i*$,p+=i*H,g+=i*K,m+=i*V,y+=i*W,v+=i*G,b+=i*J,w+=i*Q,_+=i*Y,E+=i*X,h+=(i=t[2])*j,u+=i*U,l+=i*B,c+=i*q,f+=i*z,d+=i*F,p+=i*$,g+=i*H,m+=i*K,y+=i*V,v+=i*W,b+=i*G,w+=i*J,_+=i*Q,E+=i*Y,A+=i*X,u+=(i=t[3])*j,l+=i*U,c+=i*B,f+=i*q,d+=i*z,p+=i*F,g+=i*$,m+=i*H,y+=i*K,v+=i*V,b+=i*W,w+=i*G,_+=i*J,E+=i*Q,A+=i*Y,S+=i*X,l+=(i=t[4])*j,c+=i*U,f+=i*B,d+=i*q,p+=i*z,g+=i*F,m+=i*$,y+=i*H,v+=i*K,b+=i*V,w+=i*W,_+=i*G,E+=i*J,A+=i*Q,S+=i*Y,I+=i*X,c+=(i=t[5])*j,f+=i*U,d+=i*B,p+=i*q,g+=i*z,m+=i*F,y+=i*$,v+=i*H,b+=i*K,w+=i*V,_+=i*W,E+=i*G,A+=i*J,S+=i*Q,I+=i*Y,D+=i*X,f+=(i=t[6])*j,d+=i*U,p+=i*B,g+=i*q,m+=i*z,y+=i*F,v+=i*$,b+=i*H,w+=i*K,_+=i*V,E+=i*W,A+=i*G,S+=i*J,I+=i*Q,D+=i*Y,O+=i*X,d+=(i=t[7])*j,p+=i*U,g+=i*B,m+=i*q,y+=i*z,v+=i*F,b+=i*$,w+=i*H,_+=i*K,E+=i*V,A+=i*W,S+=i*G,I+=i*J,D+=i*Q,O+=i*Y,x+=i*X,p+=(i=t[8])*j,g+=i*U,m+=i*B,y+=i*q,v+=i*z,b+=i*F,w+=i*$,_+=i*H,E+=i*K,A+=i*V,S+=i*W,I+=i*G,D+=i*J,O+=i*Q,x+=i*Y,C+=i*X,g+=(i=t[9])*j,m+=i*U,y+=i*B,v+=i*q,b+=i*z,w+=i*F,_+=i*$,E+=i*H,A+=i*K,S+=i*V,I+=i*W,D+=i*G,O+=i*J,x+=i*Q,C+=i*Y,P+=i*X,m+=(i=t[10])*j,y+=i*U,v+=i*B,b+=i*q,w+=i*z,_+=i*F,E+=i*$,A+=i*H,S+=i*K,I+=i*V,D+=i*W,O+=i*G,x+=i*J,C+=i*Q,P+=i*Y,M+=i*X,y+=(i=t[11])*j,v+=i*U,b+=i*B,w+=i*q,_+=i*z,E+=i*F,A+=i*$,S+=i*H,I+=i*K,D+=i*V,O+=i*W,x+=i*G,C+=i*J,P+=i*Q,M+=i*Y,N+=i*X,v+=(i=t[12])*j,b+=i*U,w+=i*B,_+=i*q,E+=i*z,A+=i*F,S+=i*$,I+=i*H,D+=i*K,O+=i*V,x+=i*W,C+=i*G,P+=i*J,M+=i*Q,N+=i*Y,R+=i*X,b+=(i=t[13])*j,w+=i*U,_+=i*B,E+=i*q,A+=i*z,S+=i*F,I+=i*$,D+=i*H,O+=i*K,x+=i*V,C+=i*W,P+=i*G,M+=i*J,N+=i*Q,R+=i*Y,k+=i*X,w+=(i=t[14])*j,_+=i*U,E+=i*B,A+=i*q,S+=i*z,I+=i*F,D+=i*$,O+=i*H,x+=i*K,C+=i*V,P+=i*W,M+=i*G,N+=i*J,R+=i*Q,k+=i*Y,T+=i*X,_+=(i=t[15])*j,E+=i*U,A+=i*B,S+=i*q,I+=i*z,D+=i*F,O+=i*$,x+=i*H,C+=i*K,P+=i*V,M+=i*W,N+=i*G,R+=i*J,k+=i*Q,T+=i*Y,L+=i*X,o+=38*E,a+=38*A,h+=38*S,u+=38*I,l+=38*D,c+=38*O,f+=38*x,d+=38*C,p+=38*P,g+=38*M,m+=38*N,y+=38*R,v+=38*k,b+=38*T,w+=38*L,s=Math.floor((i=o+(s=1)+65535)/65536),o=i-65536*s,s=Math.floor((i=a+s+65535)/65536),a=i-65536*s,s=Math.floor((i=h+s+65535)/65536),h=i-65536*s,s=Math.floor((i=u+s+65535)/65536),u=i-65536*s,s=Math.floor((i=l+s+65535)/65536),l=i-65536*s,s=Math.floor((i=c+s+65535)/65536),c=i-65536*s,s=Math.floor((i=f+s+65535)/65536),f=i-65536*s,s=Math.floor((i=d+s+65535)/65536),d=i-65536*s,s=Math.floor((i=p+s+65535)/65536),p=i-65536*s,s=Math.floor((i=g+s+65535)/65536),g=i-65536*s,s=Math.floor((i=m+s+65535)/65536),m=i-65536*s,s=Math.floor((i=y+s+65535)/65536),y=i-65536*s,s=Math.floor((i=v+s+65535)/65536),v=i-65536*s,s=Math.floor((i=b+s+65535)/65536),b=i-65536*s,s=Math.floor((i=w+s+65535)/65536),w=i-65536*s,s=Math.floor((i=_+s+65535)/65536),_=i-65536*s,o+=s-1+37*(s-1),s=Math.floor((i=o+(s=1)+65535)/65536),o=i-65536*s,s=Math.floor((i=a+s+65535)/65536),a=i-65536*s,s=Math.floor((i=h+s+65535)/65536),h=i-65536*s,s=Math.floor((i=u+s+65535)/65536),u=i-65536*s,s=Math.floor((i=l+s+65535)/65536),l=i-65536*s,s=Math.floor((i=c+s+65535)/65536),c=i-65536*s,s=Math.floor((i=f+s+65535)/65536),f=i-65536*s,s=Math.floor((i=d+s+65535)/65536),d=i-65536*s,s=Math.floor((i=p+s+65535)/65536),p=i-65536*s,s=Math.floor((i=g+s+65535)/65536),g=i-65536*s,s=Math.floor((i=m+s+65535)/65536),m=i-65536*s,s=Math.floor((i=y+s+65535)/65536),y=i-65536*s,s=Math.floor((i=v+s+65535)/65536),v=i-65536*s,s=Math.floor((i=b+s+65535)/65536),b=i-65536*s,s=Math.floor((i=w+s+65535)/65536),w=i-65536*s,s=Math.floor((i=_+s+65535)/65536),_=i-65536*s,o+=s-1+37*(s-1),e[0]=o,e[1]=a,e[2]=h,e[3]=u,e[4]=l,e[5]=c,e[6]=f,e[7]=d,e[8]=p,e[9]=g,e[10]=m,e[11]=y,e[12]=v,e[13]=b,e[14]=w,e[15]=_}function v(e,t){let r=s(),i=s(),o=s(),a=s(),u=s(),l=s(),c=s(),f=s(),d=s();m(r,e[1],e[0]),m(d,t[1],t[0]),y(r,r,d),g(i,e[0],e[1]),g(d,t[0],t[1]),y(i,i,d),y(o,e[3],t[3]),y(o,o,h),y(a,e[2],t[2]),g(a,a,a),m(u,i,r),m(l,a,o),g(c,a,o),g(f,i,r),y(e[0],u,l),y(e[1],f,c),y(e[2],c,l),y(e[3],u,f)}function b(e,t,r){for(let i=0;i<4;i++)d(e[i],t[i],r)}function w(e,t){let r=s(),i=s(),o=s();(function(e,t){let r;let i=s();for(r=0;r<16;r++)i[r]=t[r];for(r=253;r>=0;r--)y(i,i,i),2!==r&&4!==r&&y(i,i,t);for(r=0;r<16;r++)e[r]=i[r]})(o,t[2]),y(r,t[0],o),y(i,t[1],o),p(e,i),e[31]^=function(e){let t=new Uint8Array(32);return p(t,e),1&t[0]}(r)<<7}function _(e,t){let r=[s(),s(),s(),s()];c(r[0],u),c(r[1],l),c(r[2],a),y(r[3],u,l),function(e,t,r){c(e[0],o),c(e[1],a),c(e[2],a),c(e[3],o);for(let i=255;i>=0;--i){let s=r[i/8|0]>>(7&i)&1;b(e,t,s),v(t,e),v(e,e),b(e,t,s)}}(e,r,t)}t._w=function(e){if(e.length!==t.aP)throw Error(`ed25519: seed must be ${t.aP} bytes`);let r=(0,i.hash)(e);r[0]&=248,r[31]&=127,r[31]|=64;let o=new Uint8Array(32),a=[s(),s(),s(),s()];_(a,r),w(o,a);let h=new Uint8Array(64);return h.set(e),h.set(o,32),{publicKey:o,secretKey:h}};let E=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function A(e,t){let r,i,s,o;for(i=63;i>=32;--i){for(r=0,s=i-32,o=i-12;s<o;++s)t[s]+=r-16*t[i]*E[s-(i-32)],r=Math.floor((t[s]+128)/256),t[s]-=256*r;t[s]+=r,t[i]=0}for(s=0,r=0;s<32;s++)t[s]+=r-(t[31]>>4)*E[s],r=t[s]>>8,t[s]&=255;for(s=0;s<32;s++)t[s]-=r*E[s];for(i=0;i<32;i++)t[i+1]+=t[i]>>8,e[i]=255&t[i]}function S(e){let t=new Float64Array(64);for(let r=0;r<64;r++)t[r]=e[r];for(let t=0;t<64;t++)e[t]=0;A(e,t)}t.Xx=function(e,t){let r=new Float64Array(64),o=[s(),s(),s(),s()],a=(0,i.hash)(e.subarray(0,32));a[0]&=248,a[31]&=127,a[31]|=64;let h=new Uint8Array(64);h.set(a.subarray(32),32);let u=new i.SHA512;u.update(h.subarray(32)),u.update(t);let l=u.digest();u.clean(),S(l),_(o,l),w(h,o),u.reset(),u.update(h.subarray(0,32)),u.update(e.subarray(32)),u.update(t);let c=u.digest();S(c);for(let e=0;e<32;e++)r[e]=l[e];for(let e=0;e<32;e++)for(let t=0;t<32;t++)r[e+t]+=c[e]*a[t];return A(h.subarray(32),r),h}},69265:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSerializableHash=function(e){return void 0!==e.saveState&&void 0!==e.restoreState&&void 0!==e.cleanSavedState}},82015:(e,t,r)=>{"use strict";var i=r(20502),s=r(79068),o=function(){function e(e,t,r,s){void 0===r&&(r=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=e,this._info=s;var o=i.hmac(this._hash,r,t);this._hmac=new i.HMAC(e,o),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return e.prototype._fillBuffer=function(){this._counter[0]++;var e=this._counter[0];if(0===e)throw Error("hkdf: cannot expand more");this._hmac.reset(),e>1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},e.prototype.expand=function(e){for(var t=new Uint8Array(e),r=0;r<t.length;r++)this._bufpos===this._buffer.length&&this._fillBuffer(),t[r]=this._buffer[this._bufpos++];return t},e.prototype.clean=function(){this._hmac.clean(),s.wipe(this._buffer),s.wipe(this._counter),this._bufpos=0},e}();t.t=o},20502:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(69265),s=r(65878),o=r(79068),a=function(){function e(e,t){this._finished=!1,this._inner=new e,this._outer=new e,this.blockSize=this._outer.blockSize,this.digestLength=this._outer.digestLength;var r=new Uint8Array(this.blockSize);t.length>this.blockSize?this._inner.update(t).finish(r).clean():r.set(t);for(var s=0;s<r.length;s++)r[s]^=54;this._inner.update(r);for(var s=0;s<r.length;s++)r[s]^=106;this._outer.update(r),i.isSerializableHash(this._inner)&&i.isSerializableHash(this._outer)&&(this._innerKeyedState=this._inner.saveState(),this._outerKeyedState=this._outer.saveState()),o.wipe(r)}return e.prototype.reset=function(){if(!i.isSerializableHash(this._inner)||!i.isSerializableHash(this._outer))throw Error("hmac: can't reset() because hash doesn't implement restoreState()");return this._inner.restoreState(this._innerKeyedState),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},e.prototype.clean=function(){i.isSerializableHash(this._inner)&&this._inner.cleanSavedState(this._innerKeyedState),i.isSerializableHash(this._outer)&&this._outer.cleanSavedState(this._outerKeyedState),this._inner.clean(),this._outer.clean()},e.prototype.update=function(e){return this._inner.update(e),this},e.prototype.finish=function(e){return this._finished?this._outer.finish(e):(this._inner.finish(e),this._outer.update(e.subarray(0,this.digestLength)).finish(e),this._finished=!0),this},e.prototype.digest=function(){var e=new Uint8Array(this.digestLength);return this.finish(e),e},e.prototype.saveState=function(){if(!i.isSerializableHash(this._inner))throw Error("hmac: can't saveState() because hash doesn't implement it");return this._inner.saveState()},e.prototype.restoreState=function(e){if(!i.isSerializableHash(this._inner)||!i.isSerializableHash(this._outer))throw Error("hmac: can't restoreState() because hash doesn't implement it");return this._inner.restoreState(e),this._outer.restoreState(this._outerKeyedState),this._finished=!1,this},e.prototype.cleanSavedState=function(e){if(!i.isSerializableHash(this._inner))throw Error("hmac: can't cleanSavedState() because hash doesn't implement it");this._inner.cleanSavedState(e)},e}();t.HMAC=a,t.hmac=function(e,t,r){var i=new a(e,t);i.update(r);var s=i.digest();return i.clean(),s},t.equal=s.equal},54426:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(65878),s=r(79068);t.DIGEST_LENGTH=16;var o=function(){function e(e){this.digestLength=t.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var r=e[0]|e[1]<<8;this._r[0]=8191&r;var i=e[2]|e[3]<<8;this._r[1]=(r>>>13|i<<3)&8191;var s=e[4]|e[5]<<8;this._r[2]=(i>>>10|s<<6)&7939;var o=e[6]|e[7]<<8;this._r[3]=(s>>>7|o<<9)&8191;var a=e[8]|e[9]<<8;this._r[4]=(o>>>4|a<<12)&255,this._r[5]=a>>>1&8190;var h=e[10]|e[11]<<8;this._r[6]=(a>>>14|h<<2)&8191;var u=e[12]|e[13]<<8;this._r[7]=(h>>>11|u<<5)&8065;var l=e[14]|e[15]<<8;this._r[8]=(u>>>8|l<<8)&8191,this._r[9]=l>>>5&127,this._pad[0]=e[16]|e[17]<<8,this._pad[1]=e[18]|e[19]<<8,this._pad[2]=e[20]|e[21]<<8,this._pad[3]=e[22]|e[23]<<8,this._pad[4]=e[24]|e[25]<<8,this._pad[5]=e[26]|e[27]<<8,this._pad[6]=e[28]|e[29]<<8,this._pad[7]=e[30]|e[31]<<8}return e.prototype._blocks=function(e,t,r){for(var i=this._fin?0:2048,s=this._h[0],o=this._h[1],a=this._h[2],h=this._h[3],u=this._h[4],l=this._h[5],c=this._h[6],f=this._h[7],d=this._h[8],p=this._h[9],g=this._r[0],m=this._r[1],y=this._r[2],v=this._r[3],b=this._r[4],w=this._r[5],_=this._r[6],E=this._r[7],A=this._r[8],S=this._r[9];r>=16;){var I,D=e[t+0]|e[t+1]<<8;s+=8191&D;var O=e[t+2]|e[t+3]<<8;o+=(D>>>13|O<<3)&8191;var x=e[t+4]|e[t+5]<<8;a+=(O>>>10|x<<6)&8191;var C=e[t+6]|e[t+7]<<8;h+=(x>>>7|C<<9)&8191;var P=e[t+8]|e[t+9]<<8;u+=(C>>>4|P<<12)&8191,l+=P>>>1&8191;var M=e[t+10]|e[t+11]<<8;c+=(P>>>14|M<<2)&8191;var N=e[t+12]|e[t+13]<<8;f+=(M>>>11|N<<5)&8191;var R=e[t+14]|e[t+15]<<8;d+=(N>>>8|R<<8)&8191,p+=R>>>5|i;var k=0;k=(I=0+s*g+5*S*o+5*A*a+5*E*h+5*_*u)>>>13,I&=8191,I+=5*w*l+5*b*c+5*v*f+5*y*d+5*m*p,k+=I>>>13,I&=8191;var T=k;T+=s*m+o*g+5*S*a+5*A*h+5*E*u,k=T>>>13,T&=8191,T+=5*_*l+5*w*c+5*b*f+5*v*d+5*y*p,k+=T>>>13,T&=8191;var L=k;L+=s*y+o*m+a*g+5*S*h+5*A*u,k=L>>>13,L&=8191,L+=5*E*l+5*_*c+5*w*f+5*b*d+5*v*p,k+=L>>>13,L&=8191;var j=k;j+=s*v+o*y+a*m+h*g+5*S*u,k=j>>>13,j&=8191,j+=5*A*l+5*E*c+5*_*f+5*w*d+5*b*p,k+=j>>>13,j&=8191;var U=k;U+=s*b+o*v+a*y+h*m+u*g,k=U>>>13,U&=8191,U+=5*S*l+5*A*c+5*E*f+5*_*d+5*w*p,k+=U>>>13,U&=8191;var B=k;B+=s*w+o*b+a*v+h*y+u*m,k=B>>>13,B&=8191,B+=l*g+5*S*c+5*A*f+5*E*d+5*_*p,k+=B>>>13,B&=8191;var q=k;q+=s*_+o*w+a*b+h*v+u*y,k=q>>>13,q&=8191,q+=l*m+c*g+5*S*f+5*A*d+5*E*p,k+=q>>>13,q&=8191;var z=k;z+=s*E+o*_+a*w+h*b+u*v,k=z>>>13,z&=8191,z+=l*y+c*m+f*g+5*S*d+5*A*p,k+=z>>>13,z&=8191;var F=k;F+=s*A+o*E+a*_+h*w+u*b,k=F>>>13,F&=8191,F+=l*v+c*y+f*m+d*g+5*S*p,k+=F>>>13,F&=8191;var $=k;$+=s*S+o*A+a*E+h*_+u*w,k=$>>>13,$&=8191,$+=l*b+c*v+f*y+d*m+p*g,k+=$>>>13,$&=8191,I=8191&(k=(k=(k<<2)+k|0)+I|0),k>>>=13,T+=k,s=I,o=T,a=L,h=j,u=U,l=B,c=q,f=z,d=F,p=$,t+=16,r-=16}this._h[0]=s,this._h[1]=o,this._h[2]=a,this._h[3]=h,this._h[4]=u,this._h[5]=l,this._h[6]=c,this._h[7]=f,this._h[8]=d,this._h[9]=p},e.prototype.finish=function(e,t){void 0===t&&(t=0);var r,i,s,o,a=new Uint16Array(10);if(this._leftover){for(o=this._leftover,this._buffer[o++]=1;o<16;o++)this._buffer[o]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(r=this._h[1]>>>13,this._h[1]&=8191,o=2;o<10;o++)this._h[o]+=r,r=this._h[o]>>>13,this._h[o]&=8191;for(this._h[0]+=5*r,r=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=r,r=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=r,a[0]=this._h[0]+5,r=a[0]>>>13,a[0]&=8191,o=1;o<10;o++)a[o]=this._h[o]+r,r=a[o]>>>13,a[o]&=8191;for(a[9]-=8192,i=(1^r)-1,o=0;o<10;o++)a[o]&=i;for(o=0,i=~i;o<10;o++)this._h[o]=this._h[o]&i|a[o];for(o=1,this._h[0]=(this._h[0]|this._h[1]<<13)&65535,this._h[1]=(this._h[1]>>>3|this._h[2]<<10)&65535,this._h[2]=(this._h[2]>>>6|this._h[3]<<7)&65535,this._h[3]=(this._h[3]>>>9|this._h[4]<<4)&65535,this._h[4]=(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14)&65535,this._h[5]=(this._h[6]>>>2|this._h[7]<<11)&65535,this._h[6]=(this._h[7]>>>5|this._h[8]<<8)&65535,this._h[7]=(this._h[8]>>>8|this._h[9]<<5)&65535,s=this._h[0]+this._pad[0],this._h[0]=65535&s;o<8;o++)s=(this._h[o]+this._pad[o]|0)+(s>>>16)|0,this._h[o]=65535&s;return e[t+0]=this._h[0]>>>0,e[t+1]=this._h[0]>>>8,e[t+2]=this._h[1]>>>0,e[t+3]=this._h[1]>>>8,e[t+4]=this._h[2]>>>0,e[t+5]=this._h[2]>>>8,e[t+6]=this._h[3]>>>0,e[t+7]=this._h[3]>>>8,e[t+8]=this._h[4]>>>0,e[t+9]=this._h[4]>>>8,e[t+10]=this._h[5]>>>0,e[t+11]=this._h[5]>>>8,e[t+12]=this._h[6]>>>0,e[t+13]=this._h[6]>>>8,e[t+14]=this._h[7]>>>0,e[t+15]=this._h[7]>>>8,this._finished=!0,this},e.prototype.update=function(e){var t,r=0,i=e.length;if(this._leftover){(t=16-this._leftover)>i&&(t=i);for(var s=0;s<t;s++)this._buffer[this._leftover+s]=e[r+s];if(i-=t,r+=t,this._leftover+=t,this._leftover<16)return this;this._blocks(this._buffer,0,16),this._leftover=0}if(i>=16&&(t=i-i%16,this._blocks(e,r,t),r+=t,i-=t),i){for(var s=0;s<i;s++)this._buffer[this._leftover+s]=e[r+s];this._leftover+=i}return this},e.prototype.digest=function(){if(this._finished)throw Error("Poly1305 was finished");var e=new Uint8Array(16);return this.finish(e),e},e.prototype.clean=function(){return s.wipe(this._buffer),s.wipe(this._r),s.wipe(this._h),s.wipe(this._pad),this._leftover=0,this._fin=0,this._finished=!0,this},e}();t.Poly1305=o,t.oneTimeAuth=function(e,t){var r=new o(e);r.update(t);var i=r.digest();return r.clean(),i},t.equal=function(e,r){return e.length===t.DIGEST_LENGTH&&r.length===t.DIGEST_LENGTH&&i.equal(e,r)}},63966:(e,t,r)=>{"use strict";var i=r(19337),s=r(79068);t.k=32,t.cn=64;var o=function(){function e(){this.digestLength=t.k,this.blockSize=t.cn,this._state=new Int32Array(8),this._temp=new Int32Array(64),this._buffer=new Uint8Array(128),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._state[0]=1779033703,this._state[1]=3144134277,this._state[2]=1013904242,this._state[3]=2773480762,this._state[4]=1359893119,this._state[5]=2600822924,this._state[6]=528734635,this._state[7]=1541459225},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){s.wipe(this._buffer),s.wipe(this._temp),this.reset()},e.prototype.update=function(e,t){if(void 0===t&&(t=e.length),this._finished)throw Error("SHA256: can't update because hash was finished.");var r=0;if(this._bytesHashed+=t,this._bufferLength>0){for(;this._bufferLength<this.blockSize&&t>0;)this._buffer[this._bufferLength++]=e[r++],t--;this._bufferLength===this.blockSize&&(h(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(t>=this.blockSize&&(r=h(this._temp,this._state,e,r,t),t%=this.blockSize);t>0;)this._buffer[this._bufferLength++]=e[r++],t--;return this},e.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,r=this._bufferLength,s=t%64<56?64:128;this._buffer[r]=128;for(var o=r+1;o<s-8;o++)this._buffer[o]=0;i.writeUint32BE(t/536870912|0,this._buffer,s-8),i.writeUint32BE(t<<3,this._buffer,s-4),h(this._temp,this._state,this._buffer,0,s),this._finished=!0}for(var o=0;o<this.digestLength/4;o++)i.writeUint32BE(this._state[o],e,4*o);return this},e.prototype.digest=function(){var e=new Uint8Array(this.digestLength);return this.finish(e),e},e.prototype.saveState=function(){if(this._finished)throw Error("SHA256: cannot save finished state");return{state:new Int32Array(this._state),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(e){return this._state.set(e.state),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(e){s.wipe(e.state),e.buffer&&s.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},e}();t.mE=o;var a=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function h(e,t,r,s,o){for(;o>=64;){for(var h=t[0],u=t[1],l=t[2],c=t[3],f=t[4],d=t[5],p=t[6],g=t[7],m=0;m<16;m++){var y=s+4*m;e[m]=i.readUint32BE(r,y)}for(var m=16;m<64;m++){var v=e[m-2],b=(v>>>17|v<<15)^(v>>>19|v<<13)^v>>>10,w=((v=e[m-15])>>>7|v<<25)^(v>>>18|v<<14)^v>>>3;e[m]=(b+e[m-7]|0)+(w+e[m-16]|0)}for(var m=0;m<64;m++){var b=(((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&d^~f&p)|0)+(g+(a[m]+e[m]|0)|0)|0,w=((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+(h&u^h&l^u&l)|0;g=p,p=d,d=f,f=c+b|0,c=l,l=u,u=h,h=b+w|0}t[0]+=h,t[1]+=u,t[2]+=l,t[3]+=c,t[4]+=f,t[5]+=d,t[6]+=p,t[7]+=g,s+=64,o-=64}return s}t.vp=function(e){var t=new o;t.update(e);var r=t.digest();return t.clean(),r}},89270:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(19337),s=r(79068);t.DIGEST_LENGTH=64,t.BLOCK_SIZE=128;var o=function(){function e(){this.digestLength=t.DIGEST_LENGTH,this.blockSize=t.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},e.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},e.prototype.clean=function(){s.wipe(this._buffer),s.wipe(this._tempHi),s.wipe(this._tempLo),this.reset()},e.prototype.update=function(e,r){if(void 0===r&&(r=e.length),this._finished)throw Error("SHA512: can't update because hash was finished.");var i=0;if(this._bytesHashed+=r,this._bufferLength>0){for(;this._bufferLength<t.BLOCK_SIZE&&r>0;)this._buffer[this._bufferLength++]=e[i++],r--;this._bufferLength===this.blockSize&&(h(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(r>=this.blockSize&&(i=h(this._tempHi,this._tempLo,this._stateHi,this._stateLo,e,i,r),r%=this.blockSize);r>0;)this._buffer[this._bufferLength++]=e[i++],r--;return this},e.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,r=this._bufferLength,s=t%128<112?128:256;this._buffer[r]=128;for(var o=r+1;o<s-8;o++)this._buffer[o]=0;i.writeUint32BE(t/536870912|0,this._buffer,s-8),i.writeUint32BE(t<<3,this._buffer,s-4),h(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,s),this._finished=!0}for(var o=0;o<this.digestLength/8;o++)i.writeUint32BE(this._stateHi[o],e,8*o),i.writeUint32BE(this._stateLo[o],e,8*o+4);return this},e.prototype.digest=function(){var e=new Uint8Array(this.digestLength);return this.finish(e),e},e.prototype.saveState=function(){if(this._finished)throw Error("SHA256: cannot save finished state");return{stateHi:new Int32Array(this._stateHi),stateLo:new Int32Array(this._stateLo),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(e){return this._stateHi.set(e.stateHi),this._stateLo.set(e.stateLo),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},e.prototype.cleanSavedState=function(e){s.wipe(e.stateHi),s.wipe(e.stateLo),e.buffer&&s.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},e}();t.SHA512=o;var a=new Int32Array([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]);function h(e,t,r,s,o,h,u){for(var l,c,f,d,p,g,m,y,v=r[0],b=r[1],w=r[2],_=r[3],E=r[4],A=r[5],S=r[6],I=r[7],D=s[0],O=s[1],x=s[2],C=s[3],P=s[4],M=s[5],N=s[6],R=s[7];u>=128;){for(var k=0;k<16;k++){var T=8*k+h;e[k]=i.readUint32BE(o,T),t[k]=i.readUint32BE(o,T+4)}for(var k=0;k<80;k++){var L=v,j=b,U=w,B=_,q=E,z=A,F=S,$=I,H=D,K=O,V=x,W=C,G=P,J=M,Q=N,Y=R;if(l=I,p=65535&(c=R),g=c>>>16,m=65535&l,y=l>>>16,l=(E>>>14|P<<18)^(E>>>18|P<<14)^(P>>>9|E<<23),p+=65535&(c=(P>>>14|E<<18)^(P>>>18|E<<14)^(E>>>9|P<<23)),g+=c>>>16,m+=65535&l,y+=l>>>16,l=E&A^~E&S,p+=65535&(c=P&M^~P&N),g+=c>>>16,m+=65535&l,y+=l>>>16,l=a[2*k],p+=65535&(c=a[2*k+1]),g+=c>>>16,m+=65535&l,y+=l>>>16,l=e[k%16],p+=65535&(c=t[k%16]),g+=c>>>16,m+=65535&l,y+=l>>>16,g+=p>>>16,m+=g>>>16,y+=m>>>16,f=65535&m|y<<16,d=65535&p|g<<16,l=f,p=65535&(c=d),g=c>>>16,m=65535&l,y=l>>>16,l=(v>>>28|D<<4)^(D>>>2|v<<30)^(D>>>7|v<<25),p+=65535&(c=(D>>>28|v<<4)^(v>>>2|D<<30)^(v>>>7|D<<25)),g+=c>>>16,m+=65535&l,y+=l>>>16,l=v&b^v&w^b&w,p+=65535&(c=D&O^D&x^O&x),g+=c>>>16,m+=65535&l,y+=l>>>16,g+=p>>>16,m+=g>>>16,y+=m>>>16,$=65535&m|y<<16,Y=65535&p|g<<16,l=B,p=65535&(c=W),g=c>>>16,m=65535&l,y=l>>>16,l=f,p+=65535&(c=d),g+=c>>>16,m+=65535&l,y+=l>>>16,g+=p>>>16,m+=g>>>16,y+=m>>>16,B=65535&m|y<<16,W=65535&p|g<<16,b=L,w=j,_=U,E=B,A=q,S=z,I=F,v=$,O=H,x=K,C=V,P=W,M=G,N=J,R=Q,D=Y,k%16==15)for(var T=0;T<16;T++)l=e[T],p=65535&(c=t[T]),g=c>>>16,m=65535&l,y=l>>>16,l=e[(T+9)%16],p+=65535&(c=t[(T+9)%16]),g+=c>>>16,m+=65535&l,y+=l>>>16,l=((f=e[(T+1)%16])>>>1|(d=t[(T+1)%16])<<31)^(f>>>8|d<<24)^f>>>7,p+=65535&(c=(d>>>1|f<<31)^(d>>>8|f<<24)^(d>>>7|f<<25)),g+=c>>>16,m+=65535&l,y+=l>>>16,l=((f=e[(T+14)%16])>>>19|(d=t[(T+14)%16])<<13)^(d>>>29|f<<3)^f>>>6,p+=65535&(c=(d>>>19|f<<13)^(f>>>29|d<<3)^(d>>>6|f<<26)),g+=c>>>16,m+=65535&l,y+=l>>>16,g+=p>>>16,m+=g>>>16,y+=m>>>16,e[T]=65535&m|y<<16,t[T]=65535&p|g<<16}l=v,p=65535&(c=D),g=c>>>16,m=65535&l,y=l>>>16,l=r[0],p+=65535&(c=s[0]),g+=c>>>16,m+=65535&l,y+=l>>>16,g+=p>>>16,m+=g>>>16,y+=m>>>16,r[0]=v=65535&m|y<<16,s[0]=D=65535&p|g<<16,l=b,p=65535&(c=O),g=c>>>16,m=65535&l,y=l>>>16,l=r[1],p+=65535&(c=s[1]),g+=c>>>16,m+=65535&l,y+=l>>>16,g+=p>>>16,m+=g>>>16,y+=m>>>16,r[1]=b=65535&m|y<<16,s[1]=O=65535&p|g<<16,l=w,p=65535&(c=x),g=c>>>16,m=65535&l,y=l>>>16,l=r[2],p+=65535&(c=s[2]),g+=c>>>16,m+=65535&l,y+=l>>>16,g+=p>>>16,m+=g>>>16,y+=m>>>16,r[2]=w=65535&m|y<<16,s[2]=x=65535&p|g<<16,l=_,p=65535&(c=C),g=c>>>16,m=65535&l,y=l>>>16,l=r[3],p+=65535&(c=s[3]),g+=c>>>16,m+=65535&l,y+=l>>>16,g+=p>>>16,m+=g>>>16,y+=m>>>16,r[3]=_=65535&m|y<<16,s[3]=C=65535&p|g<<16,l=E,p=65535&(c=P),g=c>>>16,m=65535&l,y=l>>>16,l=r[4],p+=65535&(c=s[4]),g+=c>>>16,m+=65535&l,y+=l>>>16,g+=p>>>16,m+=g>>>16,y+=m>>>16,r[4]=E=65535&m|y<<16,s[4]=P=65535&p|g<<16,l=A,p=65535&(c=M),g=c>>>16,m=65535&l,y=l>>>16,l=r[5],p+=65535&(c=s[5]),g+=c>>>16,m+=65535&l,y+=l>>>16,g+=p>>>16,m+=g>>>16,y+=m>>>16,r[5]=A=65535&m|y<<16,s[5]=M=65535&p|g<<16,l=S,p=65535&(c=N),g=c>>>16,m=65535&l,y=l>>>16,l=r[6],p+=65535&(c=s[6]),g+=c>>>16,m+=65535&l,y+=l>>>16,g+=p>>>16,m+=g>>>16,y+=m>>>16,r[6]=S=65535&m|y<<16,s[6]=N=65535&p|g<<16,l=I,p=65535&(c=R),g=c>>>16,m=65535&l,y=l>>>16,l=r[7],p+=65535&(c=s[7]),g+=c>>>16,m+=65535&l,y+=l>>>16,g+=p>>>16,m+=g>>>16,y+=m>>>16,r[7]=I=65535&m|y<<16,s[7]=R=65535&p|g<<16,h+=128,u-=128}return h}t.hash=function(e){var t=new o;t.update(e);var r=t.digest();return t.clean(),r}},5831:(e,t,r)=>{"use strict";t.gi=t.Au=t.KS=t.kz=void 0;let i=r(80127),s=r(79068);function o(e){let t=new Float64Array(16);if(e)for(let r=0;r<e.length;r++)t[r]=e[r];return t}t.kz=32,t.KS=32;let a=new Uint8Array(32);a[0]=9;let h=o([56129,1]);function u(e){let t=1;for(let r=0;r<16;r++){let i=e[r]+t+65535;t=Math.floor(i/65536),e[r]=i-65536*t}e[0]+=t-1+37*(t-1)}function l(e,t,r){let i=~(r-1);for(let r=0;r<16;r++){let s=i&(e[r]^t[r]);e[r]^=s,t[r]^=s}}function c(e,t,r){for(let i=0;i<16;i++)e[i]=t[i]+r[i]}function f(e,t,r){for(let i=0;i<16;i++)e[i]=t[i]-r[i]}function d(e,t,r){let i,s,o=0,a=0,h=0,u=0,l=0,c=0,f=0,d=0,p=0,g=0,m=0,y=0,v=0,b=0,w=0,_=0,E=0,A=0,S=0,I=0,D=0,O=0,x=0,C=0,P=0,M=0,N=0,R=0,k=0,T=0,L=0,j=r[0],U=r[1],B=r[2],q=r[3],z=r[4],F=r[5],$=r[6],H=r[7],K=r[8],V=r[9],W=r[10],G=r[11],J=r[12],Q=r[13],Y=r[14],X=r[15];o+=(i=t[0])*j,a+=i*U,h+=i*B,u+=i*q,l+=i*z,c+=i*F,f+=i*$,d+=i*H,p+=i*K,g+=i*V,m+=i*W,y+=i*G,v+=i*J,b+=i*Q,w+=i*Y,_+=i*X,a+=(i=t[1])*j,h+=i*U,u+=i*B,l+=i*q,c+=i*z,f+=i*F,d+=i*$,p+=i*H,g+=i*K,m+=i*V,y+=i*W,v+=i*G,b+=i*J,w+=i*Q,_+=i*Y,E+=i*X,h+=(i=t[2])*j,u+=i*U,l+=i*B,c+=i*q,f+=i*z,d+=i*F,p+=i*$,g+=i*H,m+=i*K,y+=i*V,v+=i*W,b+=i*G,w+=i*J,_+=i*Q,E+=i*Y,A+=i*X,u+=(i=t[3])*j,l+=i*U,c+=i*B,f+=i*q,d+=i*z,p+=i*F,g+=i*$,m+=i*H,y+=i*K,v+=i*V,b+=i*W,w+=i*G,_+=i*J,E+=i*Q,A+=i*Y,S+=i*X,l+=(i=t[4])*j,c+=i*U,f+=i*B,d+=i*q,p+=i*z,g+=i*F,m+=i*$,y+=i*H,v+=i*K,b+=i*V,w+=i*W,_+=i*G,E+=i*J,A+=i*Q,S+=i*Y,I+=i*X,c+=(i=t[5])*j,f+=i*U,d+=i*B,p+=i*q,g+=i*z,m+=i*F,y+=i*$,v+=i*H,b+=i*K,w+=i*V,_+=i*W,E+=i*G,A+=i*J,S+=i*Q,I+=i*Y,D+=i*X,f+=(i=t[6])*j,d+=i*U,p+=i*B,g+=i*q,m+=i*z,y+=i*F,v+=i*$,b+=i*H,w+=i*K,_+=i*V,E+=i*W,A+=i*G,S+=i*J,I+=i*Q,D+=i*Y,O+=i*X,d+=(i=t[7])*j,p+=i*U,g+=i*B,m+=i*q,y+=i*z,v+=i*F,b+=i*$,w+=i*H,_+=i*K,E+=i*V,A+=i*W,S+=i*G,I+=i*J,D+=i*Q,O+=i*Y,x+=i*X,p+=(i=t[8])*j,g+=i*U,m+=i*B,y+=i*q,v+=i*z,b+=i*F,w+=i*$,_+=i*H,E+=i*K,A+=i*V,S+=i*W,I+=i*G,D+=i*J,O+=i*Q,x+=i*Y,C+=i*X,g+=(i=t[9])*j,m+=i*U,y+=i*B,v+=i*q,b+=i*z,w+=i*F,_+=i*$,E+=i*H,A+=i*K,S+=i*V,I+=i*W,D+=i*G,O+=i*J,x+=i*Q,C+=i*Y,P+=i*X,m+=(i=t[10])*j,y+=i*U,v+=i*B,b+=i*q,w+=i*z,_+=i*F,E+=i*$,A+=i*H,S+=i*K,I+=i*V,D+=i*W,O+=i*G,x+=i*J,C+=i*Q,P+=i*Y,M+=i*X,y+=(i=t[11])*j,v+=i*U,b+=i*B,w+=i*q,_+=i*z,E+=i*F,A+=i*$,S+=i*H,I+=i*K,D+=i*V,O+=i*W,x+=i*G,C+=i*J,P+=i*Q,M+=i*Y,N+=i*X,v+=(i=t[12])*j,b+=i*U,w+=i*B,_+=i*q,E+=i*z,A+=i*F,S+=i*$,I+=i*H,D+=i*K,O+=i*V,x+=i*W,C+=i*G,P+=i*J,M+=i*Q,N+=i*Y,R+=i*X,b+=(i=t[13])*j,w+=i*U,_+=i*B,E+=i*q,A+=i*z,S+=i*F,I+=i*$,D+=i*H,O+=i*K,x+=i*V,C+=i*W,P+=i*G,M+=i*J,N+=i*Q,R+=i*Y,k+=i*X,w+=(i=t[14])*j,_+=i*U,E+=i*B,A+=i*q,S+=i*z,I+=i*F,D+=i*$,O+=i*H,x+=i*K,C+=i*V,P+=i*W,M+=i*G,N+=i*J,R+=i*Q,k+=i*Y,T+=i*X,_+=(i=t[15])*j,E+=i*U,A+=i*B,S+=i*q,I+=i*z,D+=i*F,O+=i*$,x+=i*H,C+=i*K,P+=i*V,M+=i*W,N+=i*G,R+=i*J,k+=i*Q,T+=i*Y,L+=i*X,o+=38*E,a+=38*A,h+=38*S,u+=38*I,l+=38*D,c+=38*O,f+=38*x,d+=38*C,p+=38*P,g+=38*M,m+=38*N,y+=38*R,v+=38*k,b+=38*T,w+=38*L,s=Math.floor((i=o+(s=1)+65535)/65536),o=i-65536*s,s=Math.floor((i=a+s+65535)/65536),a=i-65536*s,s=Math.floor((i=h+s+65535)/65536),h=i-65536*s,s=Math.floor((i=u+s+65535)/65536),u=i-65536*s,s=Math.floor((i=l+s+65535)/65536),l=i-65536*s,s=Math.floor((i=c+s+65535)/65536),c=i-65536*s,s=Math.floor((i=f+s+65535)/65536),f=i-65536*s,s=Math.floor((i=d+s+65535)/65536),d=i-65536*s,s=Math.floor((i=p+s+65535)/65536),p=i-65536*s,s=Math.floor((i=g+s+65535)/65536),g=i-65536*s,s=Math.floor((i=m+s+65535)/65536),m=i-65536*s,s=Math.floor((i=y+s+65535)/65536),y=i-65536*s,s=Math.floor((i=v+s+65535)/65536),v=i-65536*s,s=Math.floor((i=b+s+65535)/65536),b=i-65536*s,s=Math.floor((i=w+s+65535)/65536),w=i-65536*s,s=Math.floor((i=_+s+65535)/65536),_=i-65536*s,o+=s-1+37*(s-1),s=Math.floor((i=o+(s=1)+65535)/65536),o=i-65536*s,s=Math.floor((i=a+s+65535)/65536),a=i-65536*s,s=Math.floor((i=h+s+65535)/65536),h=i-65536*s,s=Math.floor((i=u+s+65535)/65536),u=i-65536*s,s=Math.floor((i=l+s+65535)/65536),l=i-65536*s,s=Math.floor((i=c+s+65535)/65536),c=i-65536*s,s=Math.floor((i=f+s+65535)/65536),f=i-65536*s,s=Math.floor((i=d+s+65535)/65536),d=i-65536*s,s=Math.floor((i=p+s+65535)/65536),p=i-65536*s,s=Math.floor((i=g+s+65535)/65536),g=i-65536*s,s=Math.floor((i=m+s+65535)/65536),m=i-65536*s,s=Math.floor((i=y+s+65535)/65536),y=i-65536*s,s=Math.floor((i=v+s+65535)/65536),v=i-65536*s,s=Math.floor((i=b+s+65535)/65536),b=i-65536*s,s=Math.floor((i=w+s+65535)/65536),w=i-65536*s,s=Math.floor((i=_+s+65535)/65536),_=i-65536*s,o+=s-1+37*(s-1),e[0]=o,e[1]=a,e[2]=h,e[3]=u,e[4]=l,e[5]=c,e[6]=f,e[7]=d,e[8]=p,e[9]=g,e[10]=m,e[11]=y,e[12]=v,e[13]=b,e[14]=w,e[15]=_}function p(e,t){let r=new Uint8Array(32),i=new Float64Array(80),s=o(),a=o(),p=o(),g=o(),m=o(),y=o();for(let t=0;t<31;t++)r[t]=e[t];r[31]=127&e[31]|64,r[0]&=248,function(e,t){for(let r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}(i,t);for(let e=0;e<16;e++)a[e]=i[e];s[0]=g[0]=1;for(let e=254;e>=0;--e){let t=r[e>>>3]>>>(7&e)&1;l(s,a,t),l(p,g,t),c(m,s,p),f(s,s,p),c(p,a,g),f(a,a,g),d(g,m,m),d(y,s,s),d(s,p,s),d(p,a,m),c(m,s,p),f(s,s,p),d(a,s,s),f(p,g,y),d(s,p,h),c(s,s,g),d(p,p,s),d(s,g,y),d(g,a,i),d(a,m,m),l(s,a,t),l(p,g,t)}for(let e=0;e<16;e++)i[e+16]=s[e],i[e+32]=p[e],i[e+48]=a[e],i[e+64]=g[e];let v=i.subarray(32),b=i.subarray(16);(function(e,t){let r=o();for(let e=0;e<16;e++)r[e]=t[e];for(let e=253;e>=0;e--)d(r,r,r),2!==e&&4!==e&&d(r,r,t);for(let t=0;t<16;t++)e[t]=r[t]})(v,v),d(b,b,v);let w=new Uint8Array(32);return function(e,t){let r=o(),i=o();for(let e=0;e<16;e++)i[e]=t[e];u(i),u(i),u(i);for(let e=0;e<2;e++){r[0]=i[0]-65517;for(let e=1;e<15;e++)r[e]=i[e]-65535-(r[e-1]>>16&1),r[e-1]&=65535;r[15]=i[15]-32767-(r[14]>>16&1);let e=r[15]>>16&1;r[14]&=65535,l(i,r,1-e)}for(let t=0;t<16;t++)e[2*t]=255&i[t],e[2*t+1]=i[t]>>8}(w,b),w}t.Au=function(e){let r=(0,i.randomBytes)(32,e),o=function(e){if(e.length!==t.KS)throw Error(`x25519: seed must be ${t.KS} bytes`);let r=new Uint8Array(e);return{publicKey:p(r,a),secretKey:r}}(r);return(0,s.wipe)(r),o},t.gi=function(e,r,i=!1){if(e.length!==t.kz)throw Error("X25519: incorrect secret key length");if(r.length!==t.kz)throw Error("X25519: incorrect public key length");let s=p(e,r);if(i){let e=0;for(let t=0;t<s.length;t++)e|=s[t];if(0===e)throw Error("X25519: invalid shared key")}return s}},57352:(e,t,r)=>{"use strict";let i;r.d(t,{EthereumProvider:()=>l$});var s,o,a,h,u,l={};r.r(l),r.d(l,{identity:()=>eh});var c={};r.r(c),r.d(c,{base2:()=>eu});var f={};r.r(f),r.d(f,{base8:()=>el});var d={};r.r(d),r.d(d,{base10:()=>ec});var p={};r.r(p),r.d(p,{base16:()=>ef,base16upper:()=>ed});var g={};r.r(g),r.d(g,{base32:()=>ep,base32hex:()=>ev,base32hexpad:()=>ew,base32hexpadupper:()=>e_,base32hexupper:()=>eb,base32pad:()=>em,base32padupper:()=>ey,base32upper:()=>eg,base32z:()=>eE});var m={};r.r(m),r.d(m,{base36:()=>eA,base36upper:()=>eS});var y={};r.r(y),r.d(y,{base58btc:()=>eI,base58flickr:()=>eD});var v={};r.r(v),r.d(v,{base64:()=>eO,base64pad:()=>ex,base64url:()=>eC,base64urlpad:()=>eP});var b={};r.r(b),r.d(b,{base256emoji:()=>ek});var w={};r.r(w),r.d(w,{sha256:()=>eV,sha512:()=>eW});var _={};r.r(_),r.d(_,{identity:()=>eG});var E={};r.r(E),r.d(E,{code:()=>eQ,decode:()=>eX,encode:()=>eY,name:()=>eJ});var A={};r.r(A),r.d(A,{code:()=>e2,decode:()=>e6,encode:()=>e3,name:()=>e1});var S=r(82361),I=r.n(S),D=function(e,t,r){if(r||2==arguments.length)for(var i,s=0,o=t.length;s<o;s++)!i&&s in t||(i||(i=Array.prototype.slice.call(t,0,s)),i[s]=t[s]);return e.concat(i||Array.prototype.slice.call(t))},O=function(e,t,r){this.name=e,this.version=t,this.os=r,this.type="browser"},x=function(e){this.version=e,this.type="node",this.name="node",this.os=process.platform},C=function(e,t,r,i){this.name=e,this.version=t,this.os=r,this.bot=i,this.type="bot-device"},P=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},M=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},N=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,R=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],k=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function T(e){var t=""!==e&&R.reduce(function(t,r){var i=r[0],s=r[1];if(t)return t;var o=s.exec(e);return!!o&&[i,o]},!1);if(!t)return null;var r=t[0],i=t[1];if("searchbot"===r)return new P;var s=i[1]&&i[1].split(".").join("_").split("_").slice(0,3);s?s.length<3&&(s=D(D([],s,!0),function(e){for(var t=[],r=0;r<e;r++)t.push("0");return t}(3-s.length),!0)):s=[];var o=s.join("."),a=function(e){for(var t=0,r=k.length;t<r;t++){var i=k[t],s=i[0];if(i[1].exec(e))return s}return null}(e),h=N.exec(e);return h&&h[1]?new C(r,o,a,h[1]):new O(r,o,a)}var L=r(24336),j=r(60703),U=r(9115),B=r(73900),q=r(82844),z=r(82015),F=r(80127),$=r(63966),H=r(5831);function K(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?globalThis.Buffer.allocUnsafe(e):new Uint8Array(e)}function V(e,t){t||(t=e.reduce((e,t)=>e+t.length,0));let r=K(t),i=0;for(let t of e)r.set(t,i),i+=t.length;return r}let W=function(e,t){if(e.length>=255)throw TypeError("Alphabet too long");for(var r=new Uint8Array(256),i=0;i<r.length;i++)r[i]=255;for(var s=0;s<e.length;s++){var o=e.charAt(s),a=o.charCodeAt(0);if(255!==r[a])throw TypeError(o+" is ambiguous");r[a]=s}var h=e.length,u=e.charAt(0),l=Math.log(h)/Math.log(256),c=Math.log(256)/Math.log(h);function f(e){if("string"!=typeof e)throw TypeError("Expected String");if(0===e.length)return new Uint8Array;var t=0;if(" "!==e[0]){for(var i=0,s=0;e[t]===u;)i++,t++;for(var o=(e.length-t)*l+1>>>0,a=new Uint8Array(o);e[t];){var c=r[e.charCodeAt(t)];if(255===c)return;for(var f=0,d=o-1;(0!==c||f<s)&&-1!==d;d--,f++)c+=h*a[d]>>>0,a[d]=c%256>>>0,c=c/256>>>0;if(0!==c)throw Error("Non-zero carry");s=f,t++}if(" "!==e[t]){for(var p=o-s;p!==o&&0===a[p];)p++;for(var g=new Uint8Array(i+(o-p)),m=i;p!==o;)g[m++]=a[p++];return g}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(0===t.length)return"";for(var r=0,i=0,s=0,o=t.length;s!==o&&0===t[s];)s++,r++;for(var a=(o-s)*c+1>>>0,l=new Uint8Array(a);s!==o;){for(var f=t[s],d=0,p=a-1;(0!==f||d<i)&&-1!==p;p--,d++)f+=256*l[p]>>>0,l[p]=f%h>>>0,f=f/h>>>0;if(0!==f)throw Error("Non-zero carry");i=d,s++}for(var g=a-i;g!==a&&0===l[g];)g++;for(var m=u.repeat(r);g<a;++g)m+=e.charAt(l[g]);return m},decodeUnsafe:f,decode:function(e){var r=f(e);if(r)return r;throw Error(`Non-${t} character`)}}};new Uint8Array(0);let G=(e,t)=>{if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;for(let r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0},J=e=>{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw Error("Unknown type, must be binary type")},Q=e=>new TextEncoder().encode(e),Y=e=>new TextDecoder().decode(e);class X{constructor(e,t,r){this.name=e,this.prefix=t,this.baseEncode=r}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class Z{constructor(e,t,r){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=r}decode(e){if("string"==typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(e){return et(this,e)}}class ee{constructor(e){this.decoders=e}or(e){return et(this,e)}decode(e){let t=e[0],r=this.decoders[t];if(r)return r.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}let et=(e,t)=>new ee({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class er{constructor(e,t,r,i){this.name=e,this.prefix=t,this.baseEncode=r,this.baseDecode=i,this.encoder=new X(e,t,r),this.decoder=new Z(e,t,i)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}let ei=({name:e,prefix:t,encode:r,decode:i})=>new er(e,t,r,i),en=({prefix:e,name:t,alphabet:r})=>{let{encode:i,decode:s}=W(r,t);return ei({prefix:e,name:t,encode:i,decode:e=>J(s(e))})},es=(e,t,r,i)=>{let s={};for(let e=0;e<t.length;++e)s[t[e]]=e;let o=e.length;for(;"="===e[o-1];)--o;let a=new Uint8Array(o*r/8|0),h=0,u=0,l=0;for(let t=0;t<o;++t){let o=s[e[t]];if(void 0===o)throw SyntaxError(`Non-${i} character`);u=u<<r|o,(h+=r)>=8&&(h-=8,a[l++]=255&u>>h)}if(h>=r||255&u<<8-h)throw SyntaxError("Unexpected end of data");return a},eo=(e,t,r)=>{let i="="===t[t.length-1],s=(1<<r)-1,o="",a=0,h=0;for(let i=0;i<e.length;++i)for(h=h<<8|e[i],a+=8;a>r;)a-=r,o+=t[s&h>>a];if(a&&(o+=t[s&h<<r-a]),i)for(;o.length*r&7;)o+="=";return o},ea=({name:e,prefix:t,bitsPerChar:r,alphabet:i})=>ei({prefix:t,name:e,encode:e=>eo(e,i,r),decode:t=>es(t,i,r,e)}),eh=ei({prefix:"\x00",name:"identity",encode:e=>Y(e),decode:e=>Q(e)}),eu=ea({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),el=ea({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),ec=en({prefix:"9",name:"base10",alphabet:"0123456789"}),ef=ea({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),ed=ea({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),ep=ea({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),eg=ea({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),em=ea({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),ey=ea({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),ev=ea({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),eb=ea({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),ew=ea({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),e_=ea({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDE