aptos
Version:
1 lines • 213 kB
JavaScript
"use strict";var aptosSDK=(()=>{var Xp=Object.create;var vn=Object.defineProperty;var Vs=Object.getOwnPropertyDescriptor;var Yp=Object.getOwnPropertyNames;var Zp=Object.getPrototypeOf,eu=Object.prototype.hasOwnProperty;var Rs=(r=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(r,{get:(e,t)=>(typeof require!="undefined"?require:e)[t]}):r)(function(r){if(typeof require!="undefined")return require.apply(this,arguments);throw Error('Dynamic require of "'+r+'" is not supported')});var mo=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),Tr=(r,e)=>{for(var t in e)vn(r,t,{get:e[t],enumerable:!0})},Ds=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Yp(e))!eu.call(r,a)&&a!==t&&vn(r,a,{get:()=>e[a],enumerable:!(n=Vs(e,a))||n.enumerable});return r};var go=(r,e,t)=>(t=r!=null?Xp(Zp(r)):{},Ds(e||!r||!r.__esModule?vn(t,"default",{value:r,enumerable:!0}):t,r)),tu=r=>Ds(vn({},"__esModule",{value:!0}),r),de=(r,e,t,n)=>{for(var a=n>1?void 0:n?Vs(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&vn(e,t,a),a};var Ns=mo(()=>{"use strict"});var fo=mo((wy,ta)=>{"use strict";(function(r){"use strict";var e=function(_){var c,u=new Float64Array(16);if(_)for(c=0;c<_.length;c++)u[c]=_[c];return u},t=function(){throw new Error("no PRNG")},n=new Uint8Array(16),a=new Uint8Array(32);a[0]=9;var i=e(),s=e([1]),p=e([56129,1]),l=e([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),d=e([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),g=e([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),b=e([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),I=e([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function B(_,c,u,o){_[c]=u>>24&255,_[c+1]=u>>16&255,_[c+2]=u>>8&255,_[c+3]=u&255,_[c+4]=o>>24&255,_[c+5]=o>>16&255,_[c+6]=o>>8&255,_[c+7]=o&255}function x(_,c,u,o,y){var f,M=0;for(f=0;f<y;f++)M|=_[c+f]^u[o+f];return(1&M-1>>>8)-1}function S(_,c,u,o){return x(_,c,u,o,16)}function V(_,c,u,o){return x(_,c,u,o,32)}function Z(_,c,u,o){for(var y=o[0]&255|(o[1]&255)<<8|(o[2]&255)<<16|(o[3]&255)<<24,f=u[0]&255|(u[1]&255)<<8|(u[2]&255)<<16|(u[3]&255)<<24,M=u[4]&255|(u[5]&255)<<8|(u[6]&255)<<16|(u[7]&255)<<24,T=u[8]&255|(u[9]&255)<<8|(u[10]&255)<<16|(u[11]&255)<<24,P=u[12]&255|(u[13]&255)<<8|(u[14]&255)<<16|(u[15]&255)<<24,G=o[4]&255|(o[5]&255)<<8|(o[6]&255)<<16|(o[7]&255)<<24,D=c[0]&255|(c[1]&255)<<8|(c[2]&255)<<16|(c[3]&255)<<24,be=c[4]&255|(c[5]&255)<<8|(c[6]&255)<<16|(c[7]&255)<<24,U=c[8]&255|(c[9]&255)<<8|(c[10]&255)<<16|(c[11]&255)<<24,W=c[12]&255|(c[13]&255)<<8|(c[14]&255)<<16|(c[15]&255)<<24,J=o[8]&255|(o[9]&255)<<8|(o[10]&255)<<16|(o[11]&255)<<24,ne=u[16]&255|(u[17]&255)<<8|(u[18]&255)<<16|(u[19]&255)<<24,te=u[20]&255|(u[21]&255)<<8|(u[22]&255)<<16|(u[23]&255)<<24,X=u[24]&255|(u[25]&255)<<8|(u[26]&255)<<16|(u[27]&255)<<24,ee=u[28]&255|(u[29]&255)<<8|(u[30]&255)<<16|(u[31]&255)<<24,Y=o[12]&255|(o[13]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>>24&255,_[4]=Q>>>0&255,_[5]=Q>>>8&255,_[6]=Q>>>16&255,_[7]=Q>>>24&255,_[8]=N>>>0&255,_[9]=N>>>8&255,_[10]=N>>>16&255,_[11]=N>>>24&255,_[12]=L>>>0&255,_[13]=L>>>8&255,_[14]=L>>>16&255,_[15]=L>>>24&255,_[16]=q>>>0&255,_[17]=q>>>8&255,_[18]=q>>>16&255,_[19]=q>>>24&255,_[20]=R>>>0&255,_[21]=R>>>8&255,_[22]=R>>>16&255,_[23]=R>>>24&255,_[24]=h>>>0&255,_[25]=h>>>8&255,_[26]=h>>>16&255,_[27]=h>>>24&255,_[28]=v>>>0&255,_[29]=v>>>8&255,_[30]=v>>>16&255,_[31]=v>>>24&255,_[32]=O>>>0&255,_[33]=O>>>8&255,_[34]=O>>>16&255,_[35]=O>>>24&255,_[36]=k>>>0&255,_[37]=k>>>8&255,_[38]=k>>>16&255,_[39]=k>>>24&255,_[40]=C>>>0&255,_[41]=C>>>8&255,_[42]=C>>>16&255,_[43]=C>>>24&255,_[44]=E>>>0&255,_[45]=E>>>8&255,_[46]=E>>>16&255,_[47]=E>>>24&255,_[48]=j>>>0&255,_[49]=j>>>8&255,_[50]=j>>>16&255,_[51]=j>>>24&255,_[52]=ae>>>0&255,_[53]=ae>>>8&255,_[54]=ae>>>16&255,_[55]=ae>>>24&255,_[56]=se>>>0&255,_[57]=se>>>8&255,_[58]=se>>>16&255,_[59]=se>>>24&255,_[60]=oe>>>0&255,_[61]=oe>>>8&255,_[62]=oe>>>16&255,_[63]=oe>>>24&255}function K(_,c,u,o){for(var y=o[0]&255|(o[1]&255)<<8|(o[2]&255)<<16|(o[3]&255)<<24,f=u[0]&255|(u[1]&255)<<8|(u[2]&255)<<16|(u[3]&255)<<24,M=u[4]&255|(u[5]&255)<<8|(u[6]&255)<<16|(u[7]&255)<<24,T=u[8]&255|(u[9]&255)<<8|(u[10]&255)<<16|(u[11]&255)<<24,P=u[12]&255|(u[13]&255)<<8|(u[14]&255)<<16|(u[15]&255)<<24,G=o[4]&255|(o[5]&255)<<8|(o[6]&255)<<16|(o[7]&255)<<24,D=c[0]&255|(c[1]&255)<<8|(c[2]&255)<<16|(c[3]&255)<<24,be=c[4]&255|(c[5]&255)<<8|(c[6]&255)<<16|(c[7]&255)<<24,U=c[8]&255|(c[9]&255)<<8|(c[10]&255)<<16|(c[11]&255)<<24,W=c[12]&255|(c[13]&255)<<8|(c[14]&255)<<16|(c[15]&255)<<24,J=o[8]&255|(o[9]&255)<<8|(o[10]&255)<<16|(o[11]&255)<<24,ne=u[16]&255|(u[17]&255)<<8|(u[18]&255)<<16|(u[19]&255)<<24,te=u[20]&255|(u[21]&255)<<8|(u[22]&255)<<16|(u[23]&255)<<24,X=u[24]&255|(u[25]&255)<<8|(u[26]&255)<<16|(u[27]&255)<<24,ee=u[28]&255|(u[29]&255)<<8|(u[30]&255)<<16|(u[31]&255)<<24,Y=o[12]&255|(o[13]&255)<<8|(o[14]&255)<<16|(o[15]&255)<<24,z=y,Q=f,N=M,L=T,q=P,R=G,h=D,v=be,O=U,k=W,C=J,E=ne,j=te,ae=X,se=ee,oe=Y,m,pe=0;pe<20;pe+=2)m=z+j|0,q^=m<<7|m>>>25,m=q+z|0,O^=m<<9|m>>>23,m=O+q|0,j^=m<<13|m>>>19,m=j+O|0,z^=m<<18|m>>>14,m=R+Q|0,k^=m<<7|m>>>25,m=k+R|0,ae^=m<<9|m>>>23,m=ae+k|0,Q^=m<<13|m>>>19,m=Q+ae|0,R^=m<<18|m>>>14,m=C+h|0,se^=m<<7|m>>>25,m=se+C|0,N^=m<<9|m>>>23,m=N+se|0,h^=m<<13|m>>>19,m=h+N|0,C^=m<<18|m>>>14,m=oe+E|0,L^=m<<7|m>>>25,m=L+oe|0,v^=m<<9|m>>>23,m=v+L|0,E^=m<<13|m>>>19,m=E+v|0,oe^=m<<18|m>>>14,m=z+L|0,Q^=m<<7|m>>>25,m=Q+z|0,N^=m<<9|m>>>23,m=N+Q|0,L^=m<<13|m>>>19,m=L+N|0,z^=m<<18|m>>>14,m=R+q|0,h^=m<<7|m>>>25,m=h+R|0,v^=m<<9|m>>>23,m=v+h|0,q^=m<<13|m>>>19,m=q+v|0,R^=m<<18|m>>>14,m=C+k|0,E^=m<<7|m>>>25,m=E+C|0,O^=m<<9|m>>>23,m=O+E|0,k^=m<<13|m>>>19,m=k+O|0,C^=m<<18|m>>>14,m=oe+se|0,j^=m<<7|m>>>25,m=j+oe|0,ae^=m<<9|m>>>23,m=ae+j|0,se^=m<<13|m>>>19,m=se+ae|0,oe^=m<<18|m>>>14;_[0]=z>>>0&255,_[1]=z>>>8&255,_[2]=z>>>16&255,_[3]=z>>>24&255,_[4]=R>>>0&255,_[5]=R>>>8&255,_[6]=R>>>16&255,_[7]=R>>>24&255,_[8]=C>>>0&255,_[9]=C>>>8&255,_[10]=C>>>16&255,_[11]=C>>>24&255,_[12]=oe>>>0&255,_[13]=oe>>>8&255,_[14]=oe>>>16&255,_[15]=oe>>>24&255,_[16]=h>>>0&255,_[17]=h>>>8&255,_[18]=h>>>16&255,_[19]=h>>>24&255,_[20]=v>>>0&255,_[21]=v>>>8&255,_[22]=v>>>16&255,_[23]=v>>>24&255,_[24]=O>>>0&255,_[25]=O>>>8&255,_[26]=O>>>16&255,_[27]=O>>>24&255,_[28]=k>>>0&255,_[29]=k>>>8&255,_[30]=k>>>16&255,_[31]=k>>>24&255}function H(_,c,u,o){Z(_,c,u,o)}function he(_,c,u,o){K(_,c,u,o)}var w=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function xr(_,c,u,o,y,f,M){var T=new Uint8Array(16),P=new Uint8Array(64),G,D;for(D=0;D<16;D++)T[D]=0;for(D=0;D<8;D++)T[D]=f[D];for(;y>=64;){for(H(P,T,M,w),D=0;D<64;D++)_[c+D]=u[o+D]^P[D];for(G=1,D=8;D<16;D++)G=G+(T[D]&255)|0,T[D]=G&255,G>>>=8;y-=64,c+=64,o+=64}if(y>0)for(H(P,T,M,w),D=0;D<y;D++)_[c+D]=u[o+D]^P[D];return 0}function hr(_,c,u,o,y){var f=new Uint8Array(16),M=new Uint8Array(64),T,P;for(P=0;P<16;P++)f[P]=0;for(P=0;P<8;P++)f[P]=o[P];for(;u>=64;){for(H(M,f,y,w),P=0;P<64;P++)_[c+P]=M[P];for(T=1,P=8;P<16;P++)T=T+(f[P]&255)|0,f[P]=T&255,T>>>=8;u-=64,c+=64}if(u>0)for(H(M,f,y,w),P=0;P<u;P++)_[c+P]=M[P];return 0}function Ye(_,c,u,o,y){var f=new Uint8Array(32);he(f,o,y,w);for(var M=new Uint8Array(8),T=0;T<8;T++)M[T]=o[T+16];return hr(_,c,u,M,f)}function Ke(_,c,u,o,y,f,M){var T=new Uint8Array(32);he(T,f,M,w);for(var P=new Uint8Array(8),G=0;G<8;G++)P[G]=f[G+16];return xr(_,c,u,o,y,P,T)}var ft=function(_){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;var c,u,o,y,f,M,T,P;c=_[0]&255|(_[1]&255)<<8,this.r[0]=c&8191,u=_[2]&255|(_[3]&255)<<8,this.r[1]=(c>>>13|u<<3)&8191,o=_[4]&255|(_[5]&255)<<8,this.r[2]=(u>>>10|o<<6)&7939,y=_[6]&255|(_[7]&255)<<8,this.r[3]=(o>>>7|y<<9)&8191,f=_[8]&255|(_[9]&255)<<8,this.r[4]=(y>>>4|f<<12)&255,this.r[5]=f>>>1&8190,M=_[10]&255|(_[11]&255)<<8,this.r[6]=(f>>>14|M<<2)&8191,T=_[12]&255|(_[13]&255)<<8,this.r[7]=(M>>>11|T<<5)&8065,P=_[14]&255|(_[15]&255)<<8,this.r[8]=(T>>>8|P<<8)&8191,this.r[9]=P>>>5&127,this.pad[0]=_[16]&255|(_[17]&255)<<8,this.pad[1]=_[18]&255|(_[19]&255)<<8,this.pad[2]=_[20]&255|(_[21]&255)<<8,this.pad[3]=_[22]&255|(_[23]&255)<<8,this.pad[4]=_[24]&255|(_[25]&255)<<8,this.pad[5]=_[26]&255|(_[27]&255)<<8,this.pad[6]=_[28]&255|(_[29]&255)<<8,this.pad[7]=_[30]&255|(_[31]&255)<<8};ft.prototype.blocks=function(_,c,u){for(var o=this.fin?0:2048,y,f,M,T,P,G,D,be,U,W,J,ne,te,X,ee,Y,z,Q,N,L=this.h[0],q=this.h[1],R=this.h[2],h=this.h[3],v=this.h[4],O=this.h[5],k=this.h[6],C=this.h[7],E=this.h[8],j=this.h[9],ae=this.r[0],se=this.r[1],oe=this.r[2],m=this.r[3],pe=this.r[4],me=this.r[5],ge=this.r[6],_e=this.r[7],ye=this.r[8],le=this.r[9];u>=16;)y=_[c+0]&255|(_[c+1]&255)<<8,L+=y&8191,f=_[c+2]&255|(_[c+3]&255)<<8,q+=(y>>>13|f<<3)&8191,M=_[c+4]&255|(_[c+5]&255)<<8,R+=(f>>>10|M<<6)&8191,T=_[c+6]&255|(_[c+7]&255)<<8,h+=(M>>>7|T<<9)&8191,P=_[c+8]&255|(_[c+9]&255)<<8,v+=(T>>>4|P<<12)&8191,O+=P>>>1&8191,G=_[c+10]&255|(_[c+11]&255)<<8,k+=(P>>>14|G<<2)&8191,D=_[c+12]&255|(_[c+13]&255)<<8,C+=(G>>>11|D<<5)&8191,be=_[c+14]&255|(_[c+15]&255)<<8,E+=(D>>>8|be<<8)&8191,j+=be>>>5|o,U=0,W=U,W+=L*ae,W+=q*(5*le),W+=R*(5*ye),W+=h*(5*_e),W+=v*(5*ge),U=W>>>13,W&=8191,W+=O*(5*me),W+=k*(5*pe),W+=C*(5*m),W+=E*(5*oe),W+=j*(5*se),U+=W>>>13,W&=8191,J=U,J+=L*se,J+=q*ae,J+=R*(5*le),J+=h*(5*ye),J+=v*(5*_e),U=J>>>13,J&=8191,J+=O*(5*ge),J+=k*(5*me),J+=C*(5*pe),J+=E*(5*m),J+=j*(5*oe),U+=J>>>13,J&=8191,ne=U,ne+=L*oe,ne+=q*se,ne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>>13,J+=U,L=W,q=J,R=ne,h=te,v=X,O=ee,k=Y,C=z,E=Q,j=N,c+=16,u-=16;this.h[0]=L,this.h[1]=q,this.h[2]=R,this.h[3]=h,this.h[4]=v,this.h[5]=O,this.h[6]=k,this.h[7]=C,this.h[8]=E,this.h[9]=j},ft.prototype.finish=function(_,c){var u=new Uint16Array(10),o,y,f,M;if(this.leftover){for(M=this.leftover,this.buffer[M++]=1;M<16;M++)this.buffer[M]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(o=this.h[1]>>>13,this.h[1]&=8191,M=2;M<10;M++)this.h[M]+=o,o=this.h[M]>>>13,this.h[M]&=8191;for(this.h[0]+=o*5,o=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=o,o=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=o,u[0]=this.h[0]+5,o=u[0]>>>13,u[0]&=8191,M=1;M<10;M++)u[M]=this.h[M]+o,o=u[M]>>>13,u[M]&=8191;for(u[9]-=8192,y=(o^1)-1,M=0;M<10;M++)u[M]&=y;for(y=~y,M=0;M<10;M++)this.h[M]=this.h[M]&y|u[M];for(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,f=this.h[0]+this.pad[0],this.h[0]=f&65535,M=1;M<8;M++)f=(this.h[M]+this.pad[M]|0)+(f>>>16)|0,this.h[M]=f&65535;_[c+0]=this.h[0]>>>0&255,_[c+1]=this.h[0]>>>8&255,_[c+2]=this.h[1]>>>0&255,_[c+3]=this.h[1]>>>8&255,_[c+4]=this.h[2]>>>0&255,_[c+5]=this.h[2]>>>8&255,_[c+6]=this.h[3]>>>0&255,_[c+7]=this.h[3]>>>8&255,_[c+8]=this.h[4]>>>0&255,_[c+9]=this.h[4]>>>8&255,_[c+10]=this.h[5]>>>0&255,_[c+11]=this.h[5]>>>8&255,_[c+12]=this.h[6]>>>0&255,_[c+13]=this.h[6]>>>8&255,_[c+14]=this.h[7]>>>0&255,_[c+15]=this.h[7]>>>8&255},ft.prototype.update=function(_,c,u){var o,y;if(this.leftover){for(y=16-this.leftover,y>u&&(y=u),o=0;o<y;o++)this.buffer[this.leftover+o]=_[c+o];if(u-=y,c+=y,this.leftover+=y,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(u>=16&&(y=u-u%16,this.blocks(_,c,y),c+=y,u-=y),u){for(o=0;o<u;o++)this.buffer[this.leftover+o]=_[c+o];this.leftover+=u}};function er(_,c,u,o,y,f){var M=new ft(f);return M.update(u,o,y),M.finish(_,c),0}function tr(_,c,u,o,y,f){var M=new Uint8Array(16);return er(M,0,u,o,y,f),S(_,c,M,0)}function rr(_,c,u,o,y){var f;if(u<32)return-1;for(Ke(_,0,c,0,u,o,y),er(_,16,_,32,u-32,_),f=0;f<16;f++)_[f]=0;return 0}function Mn(_,c,u,o,y){var f,M=new Uint8Array(32);if(u<32||(Ye(M,0,32,o,y),tr(c,16,c,32,u-32,M)!==0))return-1;for(Ke(_,0,c,0,u,o,y),f=0;f<32;f++)_[f]=0;return 0}function Ze(_,c){var u;for(u=0;u<16;u++)_[u]=c[u]|0}function no(_){var c,u,o=1;for(c=0;c<16;c++)u=_[c]+o+65535,o=Math.floor(u/65536),_[c]=u-o*65536;_[0]+=o-1+37*(o-1)}function vr(_,c,u){for(var o,y=~(u-1),f=0;f<16;f++)o=y&(_[f]^c[f]),_[f]^=o,c[f]^=o}function Ar(_,c){var u,o,y,f=e(),M=e();for(u=0;u<16;u++)M[u]=c[u];for(no(M),no(M),no(M),o=0;o<2;o++){for(f[0]=M[0]-65517,u=1;u<15;u++)f[u]=M[u]-65535-(f[u-1]>>16&1),f[u-1]&=65535;f[15]=M[15]-32767-(f[14]>>16&1),y=f[15]>>16&1,f[14]&=65535,vr(M,f,1-y)}for(u=0;u<16;u++)_[2*u]=M[u]&255,_[2*u+1]=M[u]>>8}function xs(_,c){var u=new Uint8Array(32),o=new Uint8Array(32);return Ar(u,_),Ar(o,c),V(u,0,o,0)}function hs(_){var c=new Uint8Array(32);return Ar(c,_),c[0]&1}function ao(_,c){var u;for(u=0;u<16;u++)_[u]=c[2*u]+(c[2*u+1]<<8);_[15]&=32767}function nt(_,c,u){for(var o=0;o<16;o++)_[o]=c[o]+u[o]}function at(_,c,u){for(var o=0;o<16;o++)_[o]=c[o]-u[o]}function ce(_,c,u){var o,y,f=0,M=0,T=0,P=0,G=0,D=0,be=0,U=0,W=0,J=0,ne=0,te=0,X=0,ee=0,Y=0,z=0,Q=0,N=0,L=0,q=0,R=0,h=0,v=0,O=0,k=0,C=0,E=0,j=0,ae=0,se=0,oe=0,m=u[0],pe=u[1],me=u[2],ge=u[3],_e=u[4],ye=u[5],le=u[6],Te=u[7],Ie=u[8],ve=u[9],Ae=u[10],Be=u[11],Fe=u[12],Ne=u[13],Ue=u[14],ze=u[15];o=c[0],f+=o*m,M+=o*pe,T+=o*me,P+=o*ge,G+=o*_e,D+=o*ye,be+=o*le,U+=o*Te,W+=o*Ie,J+=o*ve,ne+=o*Ae,te+=o*Be,X+=o*Fe,ee+=o*Ne,Y+=o*Ue,z+=o*ze,o=c[1],M+=o*m,T+=o*pe,P+=o*me,G+=o*ge,D+=o*_e,be+=o*ye,U+=o*le,W+=o*Te,J+=o*Ie,ne+=o*ve,te+=o*Ae,X+=o*Be,ee+=o*Fe,Y+=o*Ne,z+=o*Ue,Q+=o*ze,o=c[2],T+=o*m,P+=o*pe,G+=o*me,D+=o*ge,be+=o*_e,U+=o*ye,W+=o*le,J+=o*Te,ne+=o*Ie,te+=o*ve,X+=o*Ae,ee+=o*Be,Y+=o*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o-y*65536,o=P+y+65535,y=Math.floor(o/65536),P=o-y*65536,o=G+y+65535,y=Math.floor(o/65536),G=o-y*65536,o=D+y+65535,y=Math.floor(o/65536),D=o-y*65536,o=be+y+65535,y=Math.floor(o/65536),be=o-y*65536,o=U+y+65535,y=Math.floor(o/65536),U=o-y*65536,o=W+y+65535,y=Math.floor(o/65536),W=o-y*65536,o=J+y+65535,y=Math.floor(o/65536),J=o-y*65536,o=ne+y+65535,y=Math.floor(o/65536),ne=o-y*65536,o=te+y+65535,y=Math.floor(o/65536),te=o-y*65536,o=X+y+65535,y=Math.floor(o/65536),X=o-y*65536,o=ee+y+65535,y=Math.floor(o/65536),ee=o-y*65536,o=Y+y+65535,y=Math.floor(o/65536),Y=o-y*65536,o=z+y+65535,y=Math.floor(o/65536),z=o-y*65536,f+=y-1+37*(y-1),y=1,o=f+y+65535,y=Math.floor(o/65536),f=o-y*65536,o=M+y+65535,y=Math.floor(o/65536),M=o-y*65536,o=T+y+65535,y=Math.floor(o/65536),T=o-y*65536,o=P+y+65535,y=Math.floor(o/65536),P=o-y*65536,o=G+y+65535,y=Math.floor(o/65536),G=o-y*65536,o=D+y+65535,y=Math.floor(o/65536),D=o-y*65536,o=be+y+65535,y=Math.floor(o/65536),be=o-y*65536,o=U+y+65535,y=Math.floor(o/65536),U=o-y*65536,o=W+y+65535,y=Math.floor(o/65536),W=o-y*65536,o=J+y+65535,y=Math.floor(o/65536),J=o-y*65536,o=ne+y+65535,y=Math.floor(o/65536),ne=o-y*65536,o=te+y+65535,y=Math.floor(o/65536),te=o-y*65536,o=X+y+65535,y=Math.floor(o/65536),X=o-y*65536,o=ee+y+65535,y=Math.floor(o/65536),ee=o-y*65536,o=Y+y+65535,y=Math.floor(o/65536),Y=o-y*65536,o=z+y+65535,y=Math.floor(o/65536),z=o-y*65536,f+=y-1+37*(y-1),_[0]=f,_[1]=M,_[2]=T,_[3]=P,_[4]=G,_[5]=D,_[6]=be,_[7]=U,_[8]=W,_[9]=J,_[10]=ne,_[11]=te,_[12]=X,_[13]=ee,_[14]=Y,_[15]=z}function et(_,c){ce(_,c,c)}function vs(_,c){var u=e(),o;for(o=0;o<16;o++)u[o]=c[o];for(o=253;o>=0;o--)et(u,u),o!==2&&o!==4&&ce(u,u,c);for(o=0;o<16;o++)_[o]=u[o]}function As(_,c){var u=e(),o;for(o=0;o<16;o++)u[o]=c[o];for(o=250;o>=0;o--)et(u,u),o!==1&&ce(u,u,c);for(o=0;o<16;o++)_[o]=u[o]}function jn(_,c,u){var o=new Uint8Array(32),y=new Float64Array(80),f,M,T=e(),P=e(),G=e(),D=e(),be=e(),U=e();for(M=0;M<31;M++)o[M]=c[M];for(o[31]=c[31]&127|64,o[0]&=248,ao(y,u),M=0;M<16;M++)P[M]=y[M],D[M]=T[M]=G[M]=0;for(T[0]=D[0]=1,M=254;M>=0;--M)f=o[M>>>3]>>>(M&7)&1,vr(T,P,f),vr(G,D,f),nt(be,T,G),at(T,T,G),nt(G,P,D),at(P,P,D),et(D,be),et(U,T),ce(T,G,T),ce(G,P,be),nt(be,T,G),at(T,T,G),et(P,T),at(G,D,U),ce(T,G,p),nt(T,T,D),ce(G,G,T),ce(T,D,U),ce(D,P,y),et(P,be),vr(T,P,f),vr(G,D,f);for(M=0;M<16;M++)y[M+16]=T[M],y[M+32]=G[M],y[M+48]=P[M],y[M+64]=D[M];var W=y.subarray(32),J=y.subarray(16);return vs(W,W),ce(J,J,W),Ar(_,J),0}function Kn(_,c){return jn(_,c,a)}function Bs(_,c){return t(c,32),Kn(_,c)}function Wn(_,c,u){var o=new Uint8Array(32);return jn(o,u,c),he(_,n,o,w)}var ks=rr,Gp=Mn;function $p(_,c,u,o,y,f){var M=new Uint8Array(32);return Wn(M,y,f),ks(_,c,u,o,M)}function Qp(_,c,u,o,y,f){var M=new Uint8Array(32);return Wn(M,y,f),Gp(_,c,u,o,M)}var Ts=[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 Cs(_,c,u,o){for(var y=new Int32Array(16),f=new Int32Array(16),M,T,P,G,D,be,U,W,J,ne,te,X,ee,Y,z,Q,N,L,q,R,h,v,O,k,C,E,j=_[0],ae=_[1],se=_[2],oe=_[3],m=_[4],pe=_[5],me=_[6],ge=_[7],_e=c[0],ye=c[1],le=c[2],Te=c[3],Ie=c[4],ve=c[5],Ae=c[6],Be=c[7],Fe=0;o>=128;){for(q=0;q<16;q++)R=8*q+Fe,y[q]=u[R+0]<<24|u[R+1]<<16|u[R+2]<<8|u[R+3],f[q]=u[R+4]<<24|u[R+5]<<16|u[R+6]<<8|u[R+7];for(q=0;q<80;q++)if(M=j,T=ae,P=se,G=oe,D=m,be=pe,U=me,W=ge,J=_e,ne=ye,te=le,X=Te,ee=Ie,Y=ve,z=Ae,Q=Be,h=ge,v=Be,O=v&65535,k=v>>>16,C=h&65535,E=h>>>16,h=(m>>>14|Ie<<18)^(m>>>18|Ie<<14)^(Ie>>>9|m<<23),v=(Ie>>>14|m<<18)^(Ie>>>18|m<<14)^(m>>>9|Ie<<23),O+=v&65535,k+=v>>>16,C+=h&65535,E+=h>>>16,h=m&pe^~m&me,v=Ie&ve^~Ie&Ae,O+=v&65535,k+=v>>>16,C+=h&65535,E+=h>>>16,h=Ts[q*2],v=Ts[q*2+1],O+=v&65535,k+=v>>>16,C+=h&65535,E+=h>>>16,h=y[q%16],v=f[q%16],O+=v&65535,k+=v>>>16,C+=h&65535,E+=h>>>16,k+=O>>>16,C+=k>>>16,E+=C>>>16,N=C&65535|E<<16,L=O&65535|k<<16,h=N,v=L,O=v&65535,k=v>>>16,C=h&65535,E=h>>>16,h=(j>>>28|_e<<4)^(_e>>>2|j<<30)^(_e>>>7|j<<25),v=(_e>>>28|j<<4)^(j>>>2|_e<<30)^(j>>>7|_e<<25),O+=v&65535,k+=v>>>16,C+=h&65535,E+=h>>>16,h=j&ae^j&se^ae&se,v=_e&ye^_e&le^ye&le,O+=v&65535,k+=v>>>16,C+=h&65535,E+=h>>>16,k+=O>>>16,C+=k>>>16,E+=C>>>16,W=C&65535|E<<16,Q=O&65535|k<<16,h=G,v=X,O=v&65535,k=v>>>16,C=h&65535,E=h>>>16,h=N,v=L,O+=v&65535,k+=v>>>16,C+=h&65535,E+=h>>>16,k+=O>>>16,C+=k>>>16,E+=C>>>16,G=C&65535|E<<16,X=O&65535|k<<16,ae=M,se=T,oe=P,m=G,pe=D,me=be,ge=U,j=W,ye=J,le=ne,Te=te,Ie=X,ve=ee,Ae=Y,Be=z,_e=Q,q%16===15)for(R=0;R<16;R++)h=y[R],v=f[R],O=v&65535,k=v>>>16,C=h&65535,E=h>>>16,h=y[(R+9)%16],v=f[(R+9)%16],O+=v&65535,k+=v>>>16,C+=h&65535,E+=h>>>16,N=y[(R+1)%16],L=f[(R+1)%16],h=(N>>>1|L<<31)^(N>>>8|L<<24)^N>>>7,v=(L>>>1|N<<31)^(L>>>8|N<<24)^(L>>>7|N<<25),O+=v&65535,k+=v>>>16,C+=h&65535,E+=h>>>16,N=y[(R+14)%16],L=f[(R+14)%16],h=(N>>>19|L<<13)^(L>>>29|N<<3)^N>>>6,v=(L>>>19|N<<13)^(N>>>29|L<<3)^(L>>>6|N<<26),O+=v&65535,k+=v>>>16,C+=h&65535,E+=h>>>16,k+=O>>>16,C+=k>>>16,E+=C>>>16,y[R]=C&65535|E<<16,f[R]=O&65535|k<<16;h=j,v=_e,O=v&65535,k=v>>>16,C=h&65535,E=h>>>16,h=_[0],v=c[0],O+=v&65535,k+=v>>>16,C+=h&65535,E+=h>>>16,k+=O>>>16,C+=k>>>16,E+=C>>>16,_[0]=j=C&65535|E<<16,c[0]=_e=O&65535|k<<16,h=ae,v=ye,O=v&65535,k=v>>>16,C=h&65535,E=h>>>16,h=_[1],v=c[1],O+=v&65535,k+=v>>>16,C+=h&65535,E+=h>>>16,k+=O>>>16,C+=k>>>16,E+=C>>>16,_[1]=ae=C&65535|E<<16,c[1]=ye=O&65535|k<<16,h=se,v=le,O=v&65535,k=v>>>16,C=h&65535,E=h>>>16,h=_[2],v=c[2],O+=v&65535,k+=v>>>16,C+=h&65535,E+=h>>>16,k+=O>>>16,C+=k>>>16,E+=C>>>16,_[2]=se=C&65535|E<<16,c[2]=le=O&65535|k<<16,h=oe,v=Te,O=v&65535,k=v>>>16,C=h&65535,E=h>>>16,h=_[3],v=c[3],O+=v&65535,k+=v>>>16,C+=h&65535,E+=h>>>16,k+=O>>>16,C+=k>>>16,E+=C>>>16,_[3]=oe=C&65535|E<<16,c[3]=Te=O&65535|k<<16,h=m,v=Ie,O=v&65535,k=v>>>16,C=h&65535,E=h>>>16,h=_[4],v=c[4],O+=v&65535,k+=v>>>16,C+=h&65535,E+=h>>>16,k+=O>>>16,C+=k>>>16,E+=C>>>16,_[4]=m=C&65535|E<<16,c[4]=Ie=O&65535|k<<16,h=pe,v=ve,O=v&65535,k=v>>>16,C=h&65535,E=h>>>16,h=_[5],v=c[5],O+=v&65535,k+=v>>>16,C+=h&65535,E+=h>>>16,k+=O>>>16,C+=k>>>16,E+=C>>>16,_[5]=pe=C&65535|E<<16,c[5]=ve=O&65535|k<<16,h=me,v=Ae,O=v&65535,k=v>>>16,C=h&65535,E=h>>>16,h=_[6],v=c[6],O+=v&65535,k+=v>>>16,C+=h&65535,E+=h>>>16,k+=O>>>16,C+=k>>>16,E+=C>>>16,_[6]=me=C&65535|E<<16,c[6]=Ae=O&65535|k<<16,h=ge,v=Be,O=v&65535,k=v>>>16,C=h&65535,E=h>>>16,h=_[7],v=c[7],O+=v&65535,k+=v>>>16,C+=h&65535,E+=h>>>16,k+=O>>>16,C+=k>>>16,E+=C>>>16,_[7]=ge=C&65535|E<<16,c[7]=Be=O&65535|k<<16,Fe+=128,o-=128}return o}function nr(_,c,u){var o=new Int32Array(8),y=new Int32Array(8),f=new Uint8Array(256),M,T=u;for(o[0]=1779033703,o[1]=3144134277,o[2]=1013904242,o[3]=2773480762,o[4]=1359893119,o[5]=2600822924,o[6]=528734635,o[7]=1541459225,y[0]=4089235720,y[1]=2227873595,y[2]=4271175723,y[3]=1595750129,y[4]=2917565137,y[5]=725511199,y[6]=4215389547,y[7]=327033209,Cs(o,y,c,u),u%=128,M=0;M<u;M++)f[M]=c[T-u+M];for(f[u]=128,u=256-128*(u<112?1:0),f[u-9]=0,B(f,u-8,T/536870912|0,T<<3),Cs(o,y,f,u),M=0;M<8;M++)B(_,8*M,o[M],y[M]);return 0}function Jn(_,c){var u=e(),o=e(),y=e(),f=e(),M=e(),T=e(),P=e(),G=e(),D=e();at(u,_[1],_[0]),at(D,c[1],c[0]),ce(u,u,D),nt(o,_[0],_[1]),nt(D,c[0],c[1]),ce(o,o,D),ce(y,_[3],c[3]),ce(y,y,d),ce(f,_[2],c[2]),nt(f,f,f),at(M,o,u),at(T,f,y),nt(P,f,y),nt(G,o,u),ce(_[0],M,T),ce(_[1],G,P),ce(_[2],P,T),ce(_[3],M,G)}function ws(_,c,u){var o;for(o=0;o<4;o++)vr(_[o],c[o],u)}function oo(_,c){var u=e(),o=e(),y=e();vs(y,c[2]),ce(u,c[0],y),ce(o,c[1],y),Ar(_,o),_[31]^=hs(u)<<7}function so(_,c,u){var o,y;for(Ze(_[0],i),Ze(_[1],s),Ze(_[2],s),Ze(_[3],i),y=255;y>=0;--y)o=u[y/8|0]>>(y&7)&1,ws(_,c,o),Jn(c,_),Jn(_,_),ws(_,c,o)}function Xn(_,c){var u=[e(),e(),e(),e()];Ze(u[0],g),Ze(u[1],b),Ze(u[2],s),ce(u[3],g,b),so(_,u,c)}function io(_,c,u){var o=new Uint8Array(64),y=[e(),e(),e(),e()],f;for(u||t(c,32),nr(o,c,32),o[0]&=248,o[31]&=127,o[31]|=64,Xn(y,o),oo(_,y),f=0;f<32;f++)c[f+32]=_[f];return 0}var Yn=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 _o(_,c){var u,o,y,f;for(o=63;o>=32;--o){for(u=0,y=o-32,f=o-12;y<f;++y)c[y]+=u-16*c[o]*Yn[y-(o-32)],u=Math.floor((c[y]+128)/256),c[y]-=u*256;c[y]+=u,c[o]=0}for(u=0,y=0;y<32;y++)c[y]+=u-(c[31]>>4)*Yn[y],u=c[y]>>8,c[y]&=255;for(y=0;y<32;y++)c[y]-=u*Yn[y];for(o=0;o<32;o++)c[o+1]+=c[o]>>8,_[o]=c[o]&255}function po(_){var c=new Float64Array(64),u;for(u=0;u<64;u++)c[u]=_[u];for(u=0;u<64;u++)_[u]=0;_o(_,c)}function Os(_,c,u,o){var y=new Uint8Array(64),f=new Uint8Array(64),M=new Uint8Array(64),T,P,G=new Float64Array(64),D=[e(),e(),e(),e()];nr(y,o,32),y[0]&=248,y[31]&=127,y[31]|=64;var be=u+64;for(T=0;T<u;T++)_[64+T]=c[T];for(T=0;T<32;T++)_[32+T]=y[32+T];for(nr(M,_.subarray(32),u+32),po(M),Xn(D,M),oo(_,D),T=32;T<64;T++)_[T]=o[T];for(nr(f,_,u+64),po(f),T=0;T<64;T++)G[T]=0;for(T=0;T<32;T++)G[T]=M[T];for(T=0;T<32;T++)for(P=0;P<32;P++)G[T+P]+=f[T]*y[P];return _o(_.subarray(32),G),be}function jp(_,c){var u=e(),o=e(),y=e(),f=e(),M=e(),T=e(),P=e();return Ze(_[2],s),ao(_[1],c),et(y,_[1]),ce(f,y,l),at(y,y,_[2]),nt(f,_[2],f),et(M,f),et(T,M),ce(P,T,M),ce(u,P,y),ce(u,u,f),As(u,u),ce(u,u,y),ce(u,u,f),ce(u,u,f),ce(_[0],u,f),et(o,_[0]),ce(o,o,f),xs(o,y)&&ce(_[0],_[0],I),et(o,_[0]),ce(o,o,f),xs(o,y)?-1:(hs(_[0])===c[31]>>7&&at(_[0],i,_[0]),ce(_[3],_[0],_[1]),0)}function uo(_,c,u,o){var y,f=new Uint8Array(32),M=new Uint8Array(64),T=[e(),e(),e(),e()],P=[e(),e(),e(),e()];if(u<64||jp(P,o))return-1;for(y=0;y<u;y++)_[y]=c[y];for(y=0;y<32;y++)_[y+32]=o[y];if(nr(M,_,u),po(M),so(T,P,M),Xn(P,c.subarray(32)),Jn(T,P),oo(f,T),u-=64,V(c,0,f,0)){for(y=0;y<u;y++)_[y]=0;return-1}for(y=0;y<u;y++)_[y]=c[y+64];return u}var co=32,Zn=24,Sn=32,Br=16,In=32,ea=32,xn=32,hn=32,yo=32,Es=Zn,Kp=Sn,Wp=Br,Mt=64,ar=32,kr=64,lo=32,bo=64;r.lowlevel={crypto_core_hsalsa20:he,crypto_stream_xor:Ke,crypto_stream:Ye,crypto_stream_salsa20_xor:xr,crypto_stream_salsa20:hr,crypto_onetimeauth:er,crypto_onetimeauth_verify:tr,crypto_verify_16:S,crypto_verify_32:V,crypto_secretbox:rr,crypto_secretbox_open:Mn,crypto_scalarmult:jn,crypto_scalarmult_base:Kn,crypto_box_beforenm:Wn,crypto_box_afternm:ks,crypto_box:$p,crypto_box_open:Qp,crypto_box_keypair:Bs,crypto_hash:nr,crypto_sign:Os,crypto_sign_keypair:io,crypto_sign_open:uo,crypto_secretbox_KEYBYTES:co,crypto_secretbox_NONCEBYTES:Zn,crypto_secretbox_ZEROBYTES:Sn,crypto_secretbox_BOXZEROBYTES:Br,crypto_scalarmult_BYTES:In,crypto_scalarmult_SCALARBYTES:ea,crypto_box_PUBLICKEYBYTES:xn,crypto_box_SECRETKEYBYTES:hn,crypto_box_BEFORENMBYTES:yo,crypto_box_NONCEBYTES:Es,crypto_box_ZEROBYTES:Kp,crypto_box_BOXZEROBYTES:Wp,crypto_sign_BYTES:Mt,crypto_sign_PUBLICKEYBYTES:ar,crypto_sign_SECRETKEYBYTES:kr,crypto_sign_SEEDBYTES:lo,crypto_hash_BYTES:bo,gf:e,D:l,L:Yn,pack25519:Ar,unpack25519:ao,M:ce,A:nt,S:et,Z:at,pow2523:As,add:Jn,set25519:Ze,modL:_o,scalarmult:so,scalarbase:Xn};function Fs(_,c){if(_.length!==co)throw new Error("bad key size");if(c.length!==Zn)throw new Error("bad nonce size")}function Jp(_,c){if(_.length!==xn)throw new Error("bad public key size");if(c.length!==hn)throw new Error("bad secret key size")}function We(){for(var _=0;_<arguments.length;_++)if(!(arguments[_]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function Ps(_){for(var c=0;c<_.length;c++)_[c]=0}r.randomBytes=function(_){var c=new Uint8Array(_);return t(c,_),c},r.secretbox=function(_,c,u){We(_,c,u),Fs(u,c);for(var o=new Uint8Array(Sn+_.length),y=new Uint8Array(o.length),f=0;f<_.length;f++)o[f+Sn]=_[f];return rr(y,o,o.length,c,u),y.subarray(Br)},r.secretbox.open=function(_,c,u){We(_,c,u),Fs(u,c);for(var o=new Uint8Array(Br+_.length),y=new Uint8Array(o.length),f=0;f<_.length;f++)o[f+Br]=_[f];return o.length<32||Mn(y,o,o.length,c,u)!==0?null:y.subarray(Sn)},r.secretbox.keyLength=co,r.secretbox.nonceLength=Zn,r.secretbox.overheadLength=Br,r.scalarMult=function(_,c){if(We(_,c),_.length!==ea)throw new Error("bad n size");if(c.length!==In)throw new Error("bad p size");var u=new Uint8Array(In);return jn(u,_,c),u},r.scalarMult.base=function(_){if(We(_),_.length!==ea)throw new Error("bad n size");var c=new Uint8Array(In);return Kn(c,_),c},r.scalarMult.scalarLength=ea,r.scalarMult.groupElementLength=In,r.box=function(_,c,u,o){var y=r.box.before(u,o);return r.secretbox(_,c,y)},r.box.before=function(_,c){We(_,c),Jp(_,c);var u=new Uint8Array(yo);return Wn(u,_,c),u},r.box.after=r.secretbox,r.box.open=function(_,c,u,o){var y=r.box.before(u,o);return r.secretbox.open(_,c,y)},r.box.open.after=r.secretbox.open,r.box.keyPair=function(){var _=new Uint8Array(xn),c=new Uint8Array(hn);return Bs(_,c),{publicKey:_,secretKey:c}},r.box.keyPair.fromSecretKey=function(_){if(We(_),_.length!==hn)throw new Error("bad secret key size");var c=new Uint8Array(xn);return Kn(c,_),{publicKey:c,secretKey:new Uint8Array(_)}},r.box.publicKeyLength=xn,r.box.secretKeyLength=hn,r.box.sharedKeyLength=yo,r.box.nonceLength=Es,r.box.overheadLength=r.secretbox.overheadLength,r.sign=function(_,c){if(We(_,c),c.length!==kr)throw new Error("bad secret key size");var u=new Uint8Array(Mt+_.length);return Os(u,_,_.length,c),u},r.sign.open=function(_,c){if(We(_,c),c.length!==ar)throw new Error("bad public key size");var u=new Uint8Array(_.length),o=uo(u,_,_.length,c);if(o<0)return null;for(var y=new Uint8Array(o),f=0;f<y.length;f++)y[f]=u[f];return y},r.sign.detached=function(_,c){for(var u=r.sign(_,c),o=new Uint8Array(Mt),y=0;y<o.length;y++)o[y]=u[y];return o},r.sign.detached.verify=function(_,c,u){if(We(_,c,u),c.length!==Mt)throw new Error("bad signature size");if(u.length!==ar)throw new Error("bad public key size");var o=new Uint8Array(Mt+_.length),y=new Uint8Array(Mt+_.length),f;for(f=0;f<Mt;f++)o[f]=c[f];for(f=0;f<_.length;f++)o[f+Mt]=_[f];return uo(y,o,o.length,u)>=0},r.sign.keyPair=function(){var _=new Uint8Array(ar),c=new Uint8Array(kr);return io(_,c),{publicKey:_,secretKey:c}},r.sign.keyPair.fromSecretKey=function(_){if(We(_),_.length!==kr)throw new Error("bad secret key size");for(var c=new Uint8Array(ar),u=0;u<c.length;u++)c[u]=_[32+u];return{publicKey:c,secretKey:new Uint8Array(_)}},r.sign.keyPair.fromSeed=function(_){if(We(_),_.length!==lo)throw new Error("bad seed size");for(var c=new Uint8Array(ar),u=new Uint8Array(kr),o=0;o<32;o++)u[o]=_[o];return io(c,u,!0),{publicKey:c,secretKey:u}},r.sign.publicKeyLength=ar,r.sign.secretKeyLength=kr,r.sign.seedLength=lo,r.sign.signatureLength=Mt,r.hash=function(_){We(_);var c=new Uint8Array(bo);return nr(c,_,_.length),c},r.hash.hashLength=bo,r.verify=function(_,c){return We(_,c),_.length===0||c.length===0||_.length!==c.length?!1:x(_,0,c,0,_.length)===0},r.setPRNG=function(_){t=_},function(){var _=typeof self!="undefined"?self.crypto||self.msCrypto:null;if(_&&_.getRandomValues){var c=65536;r.setPRNG(function(u,o){var y,f=new Uint8Array(o);for(y=0;y<o;y+=c)_.getRandomValues(f.subarray(y,y+Math.min(o-y,c)));for(y=0;y<o;y++)u[y]=f[y];Ps(f)})}else typeof Rs!="undefined"&&(_=Ns(),_&&_.randomBytes&&r.setPRNG(function(u,o){var y,f=_.randomBytes(o);for(y=0;y<o;y++)u[y]=f[y];Ps(f)}))}()})(typeof ta!="undefined"&&ta.exports?ta.exports:self.nacl=self.nacl||{})});var R_=mo((aI,gs)=>{"use strict";var vy=Object.prototype.hasOwnProperty,je="~";function Qn(){}Object.create&&(Qn.prototype=Object.create(null),new Qn().__proto__||(je=!1));function Ay(r,e,t){this.fn=r,this.context=e,this.once=t||!1}function V_(r,e,t,n,a){if(typeof t!="function")throw new TypeError("The listener must be a function");var i=new Ay(t,n||r,a),s=je?je+e:e;return r._events[s]?r._events[s].fn?r._events[s]=[r._events[s],i]:r._events[s].push(i):(r._events[s]=i,r._eventsCount++),r}function to(r,e){--r._eventsCount===0?r._events=new Qn:delete r._events[e]}function He(){this._events=new Qn,this._eventsCount=0}He.prototype.eventNames=function(){var e=[],t,n;if(this._eventsCount===0)return e;for(n in t=this._events)vy.call(t,n)&&e.push(je?n.slice(1):n);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e};He.prototype.listeners=function(e){var t=je?je+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var a=0,i=n.length,s=new Array(i);a<i;a++)s[a]=n[a].fn;return s};He.prototype.listenerCount=function(e){var t=je?je+e:e,n=this._events[t];return n?n.fn?1:n.length:0};He.prototype.emit=function(e,t,n,a,i,s){var p=je?je+e:e;if(!this._events[p])return!1;var l=this._events[p],d=arguments.length,g,b;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),d){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,n),!0;case 4:return l.fn.call(l.context,t,n,a),!0;case 5:return l.fn.call(l.context,t,n,a,i),!0;case 6:return l.fn.call(l.context,t,n,a,i,s),!0}for(b=1,g=new Array(d-1);b<d;b++)g[b-1]=arguments[b];l.fn.apply(l.context,g)}else{var I=l.length,B;for(b=0;b<I;b++)switch(l[b].once&&this.removeListener(e,l[b].fn,void 0,!0),d){case 1:l[b].fn.call(l[b].context);break;case 2:l[b].fn.call(l[b].context,t);break;case 3:l[b].fn.call(l[b].context,t,n);break;case 4:l[b].fn.call(l[b].context,t,n,a);break;default:if(!g)for(B=1,g=new Array(d-1);B<d;B++)g[B-1]=arguments[B];l[b].fn.apply(l[b].context,g)}}return!0};He.prototype.on=function(e,t,n){return V_(this,e,t,n,!1)};He.prototype.once=function(e,t,n){return V_(this,e,t,n,!0)};He.prototype.removeListener=function(e,t,n,a){var i=je?je+e:e;if(!this._events[i])return this;if(!t)return to(this,i),this;var s=this._events[i];if(s.fn)s.fn===t&&(!a||s.once)&&(!n||s.context===n)&&to(this,i);else{for(var p=0,l=[],d=s.length;p<d;p++)(s[p].fn!==t||a&&!s[p].once||n&&s[p].context!==n)&&l.push(s[p]);l.length?this._events[i]=l.length===1?l[0]:l:to(this,i)}return this};He.prototype.removeAllListeners=function(e){var t;return e?(t=je?je+e:e,this._events[t]&&to(this,t)):(this._events=new Qn,this._eventsCount=0),this};He.prototype.off=He.prototype.removeListener;He.prototype.addListener=He.prototype.on;He.prefixed=je;He.EventEmitter=He;typeof gs!="undefined"&&(gs.exports=He)});var By={};Tr(By,{APTOS_COIN:()=>sr,AccountSequenceNumber:()=>$n,Account_Transactions_Select_Column:()=>L_,Address_Events_Summary_Select_Column:()=>H_,Address_Version_From_Events_Select_Column:()=>q_,Address_Version_From_Move_Resources_Select_Column:()=>G_,AnsClient:()=>ms,ApiError:()=>Ve,AptosAccount:()=>fr,AptosApiError:()=>ir,AptosClient:()=>Me,AptosToken:()=>cs,BCS:()=>Fa,Block_Metadata_Transactions_Select_Column:()=>$_,CKDPriv:()=>yi,COIN_TRANSFER:()=>F_,CoinClient:()=>ls,Coin_Activities_Select_Column:()=>Q_,Coin_Balances_Select_Column:()=>j_,Coin_Infos_Select_Column:()=>K_,Coin_Supply_Select_Column:()=>W_,Collection_Datas_Select_Column:()=>J_,Current_Ans_Lookup_Select_Column:()=>X_,Current_Ans_Lookup_V2_Select_Column:()=>Y_,Current_Aptos_Names_Select_Column:()=>Z_,Current_Coin_Balances_Select_Column:()=>ep,Current_Collection_Datas_Select_Column:()=>tp,Current_Collection_Ownership_V2_View_Select_Column:()=>rp,Current_Collections_V2_Select_Column:()=>np,Current_Delegated_Staking_Pool_Balances_Select_Column:()=>ap,Current_Delegated_Voter_Select_Column:()=>op,Current_Delegator_Balances_Select_Column:()=>sp,Current_Fungible_Asset_Balances_Select_Column:()=>ip,Current_Objects_Select_Column:()=>_p,Current_Staking_Pool_Voter_Select_Column:()=>pp,Current_Table_Items_Select_Column:()=>up,Current_Token_Datas_Select_Column:()=>cp,Current_Token_Datas_V2_Select_Column:()=>yp,Current_Token_Ownerships_Select_Column:()=>lp,Current_Token_Ownerships_V2_Select_Column:()=>dp,Current_Token_Pending_Claims_Select_Column:()=>bp,Cursor_Ordering:()=>mp,Delegated_Staking_Activities_Select_Column:()=>gp,Delegated_Staking_Pools_Select_Column:()=>fp,Delegator_Distinct_Pool_Select_Column:()=>Mp,Events_Select_Column:()=>Sp,FailedTransactionError:()=>Wa,FaucetClient:()=>ds,FungibleAssetClient:()=>Zt,Fungible_Asset_Activities_Select_Column:()=>Ip,Fungible_Asset_Metadata_Select_Column:()=>xp,HexString:()=>F,IndexerClient:()=>ln,Indexer_Status_Select_Column:()=>hp,Ledger_Infos_Select_Column:()=>vp,Move_Resources_Select_Column:()=>Ap,Network:()=>e_,NetworkToIndexerAPI:()=>zr,NetworkToNodeAPI:()=>es,Nft_Marketplace_V2_Current_Nft_Marketplace_Auctions_Select_Column:()=>Bp,Nft_Marketplace_V2_Current_Nft_Marketplace_Collection_Offers_Select_Column:()=>kp,Nft_Marketplace_V2_Current_Nft_Marketplace_Listings_Select_Column:()=>Tp,Nft_Marketplace_V2_Current_Nft_Marketplace_Token_Offers_Select_Column:()=>Cp,Nft_Marketplace_V2_Nft_Marketplace_Activities_Select_Column:()=>wp,Nft_Metadata_Crawler_Parsed_Asset_Uris_Select_Column:()=>Op,NodeAPIToNetwork:()=>Oa,Num_Active_Delegator_Per_Pool_Select_Column:()=>Ep,Order_By:()=>Fp,Processor_Status_Select_Column:()=>Pp,PropertyMap:()=>Yt,PropertyValue:()=>dn,Proposal_Votes_Select_Column:()=>Vp,Provider:()=>Xt,TRANSFER_COINS:()=>ys,Table_Items_Select_Column:()=>Rp,Table_Metadatas_Select_Column:()=>Dp,TokenClient:()=>us,TokenTypes:()=>Za,Token_Activities_Select_Column:()=>Np,Token_Activities_V2_Select_Column:()=>Up,Token_Datas_Select_Column:()=>zp,Token_Ownerships_Select_Column:()=>Lp,Tokens_Select_Column:()=>Hp,TransactionBuilder:()=>Qe,TransactionBuilderABI:()=>ja,TransactionBuilderEd25519:()=>Ir,TransactionBuilderMultiEd25519:()=>Hn,TransactionBuilderRemoteABI:()=>fe,TransactionWorker:()=>fs,TransactionWorkerEvents:()=>z_,TxnBuilderTypes:()=>$,TypeTagParser:()=>pt,Types:()=>ro,User_Transactions_Select_Column:()=>qp,WaitForTransactionError:()=>Ka,ansContractsMap:()=>bs,aptosRequest:()=>Nn,argToTransactionArgument:()=>ps,derivePath:()=>Oo,deserializePropertyMap:()=>Ya,deserializeValueBasedOnTypeTag:()=>E_,ensureBigInt:()=>Sr,ensureBoolean:()=>is,ensureNumber:()=>Mr,get:()=>Re,getAddressFromAccountOrAddress:()=>cn,getMasterKeyFromSeed:()=>ci,getPropertyType:()=>Ja,getPropertyValueRaw:()=>bn,getPublicKey:()=>tc,getSinglePropertyValueRaw:()=>Xa,isValidPath:()=>li,nameComponentPattern:()=>Et,namePattern:()=>P_,post:()=>lt,serializeArg:()=>yn});var zn=go(fo());function St(r){if(!Number.isSafeInteger(r)||r<0)throw new Error(`Wrong positive integer: ${r}`)}function ru(r){return r instanceof Uint8Array||r!=null&&typeof r=="object"&&r.constructor.name==="Uint8Array"}function An(r,...e){if(!ru(r))throw new Error("Expected Uint8Array");if(e.length>0&&!e.includes(r.length))throw new Error(`Expected Uint8Array of length ${e}, not of length=${r.length}`)}function ra(r){if(typeof r!="function"||typeof r.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");St(r.outputLen),St(r.blockLen)}function It(r,e=!0){if(r.destroyed)throw new Error("Hash instance has been destroyed");if(e&&r.finished)throw new Error("Hash#digest() has already been called")}function na(r,e){An(r);let t=e.outputLen;if(r.length<t)throw new Error(`digestInto() expects output buffer of length at least ${t}`)}var zs=r=>new Uint32Array(r.buffer,r.byteOffset,Math.floor(r.byteLength/4));function Ls(r){return r instanceof Uint8Array||r!=null&&typeof r=="object"&&r.constructor.name==="Uint8Array"}var Cr=r=>new DataView(r.buffer,r.byteOffset,r.byteLength),ot=(r,e)=>r<<32-e|r>>>e,nu=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!nu)throw new Error("Non little-endian hardware is not supported");var au=Array.from({length:256},(r,e)=>e.toString(16).padStart(2,"0"));function aa(r){if(!Ls(r))throw new Error("Uint8Array expected");let e="";for(let t=0;t<r.length;t++)e+=au[r[t]];return e}var xt={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function Us(r){if(r>=xt._0&&r<=xt._9)return r-xt._0;if(r>=xt._A&&r<=xt._F)return r-(xt._A-10);if(r>=xt._a&&r<=xt._f)return r-(xt._a-10)}function oa(r){if(typeof r!="string")throw new Error("hex string expected, got "+typeof r);let e=r.length,t=e/2;if(e%2)throw new Error("padded hex string expected, got unpadded hex of length "+e);let n=new Uint8Array(t);for(let a=0,i=0;a<t;a++,i+=2){let s=Us(r.charCodeAt(i)),p=Us(r.charCodeAt(i+1));if(s===void 0||p===void 0){let l=r[i]+r[i+1];throw new Error('hex string expected, got non-hex character "'+l+'" at index '+i)}n[a]=s*16+p}return n}function ou(r){if(typeof r!="string")throw new Error(`utf8ToBytes expected string, got ${typeof r}`);return new Uint8Array(new TextEncoder().encode(r))}function st(r){if(typeof r=="string"&&(r=ou(r)),!Ls(r))throw new Error(`expected Uint8Array, got ${typeof r}`);return r}var Ft=class{clone(){return this._cloneInto()}},su={}.toString;function Hs(r,e){if(e!==void 0&&su.call(e)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(r,e)}function wr(r){let e=n=>r().update(st(n)).digest(),t=r();return e.outputLen=t.outputLen,e.blockLen=t.blockLen,e.create=()=>r(),e}function qs(r){let e=(n,a)=>r(a).update(st(n)).digest(),t=r({});return e.outputLen=t.outputLen,e.blockLen=t.blockLen,e.create=n=>r(n),e}var sa=class extends Ft{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,ra(e);let n=st(t);if(this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let a=this.blockLen,i=new Uint8Array(a);i.set(n.length>a?e.create().update(n).digest():n);for(let s=0;s<i.length;s++)i[s]^=54;this.iHash.update(i),this.oHash=e.create();for(let s=0;s<i.length;s++)i[s]^=106;this.oHash.update(i),i.fill(0)}update(e){return It(this),this.iHash.update(e),this}digestInto(e){It(this),An(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));let{oHash:t,iHash:n,finished:a,destroyed:i,blockLen:s,outputLen:p}=this;return e=e,e.finished=a,e.destroyed=i,e.blockLen=s,e.outputLen=p,e.oHash=t._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}},Or=(r,e,t)=>new sa(r,e).update(t).digest();Or.create=(r,e)=>new sa(r,e);function iu(r,e,t,n){ra(r);let a=Hs({dkLen:32,asyncTick:10},n),{c:i,dkLen:s,asyncTick:p}=a;if(St(i),St(s),St(p),i<1)throw new Error("PBKDF2: iterations (c) should be >= 1");let l=st(e),d=st(t),g=new Uint8Array(s),b=Or.create(r,l),I=b._cloneInto().update(d);return{c:i,dkLen:s,asyncTick:p,DK:g,PRF:b,PRFSalt:I}}function _u(r,e,t,n,a){return r.destroy(),e.destroy(),n&&n.destroy(),a.fill(0),t}function Gs(r,e,t,n){let{c:a,dkLen:i,DK:s,PRF:p,PRFSalt:l}=iu(r,e,t,n),d,g=new Uint8Array(4),b=Cr(g),I=new Uint8Array(p.outputLen);for(let B=1,x=0;x<i;B++,x+=p.outputLen){let S=s.subarray(x,x+p.outputLen);b.setInt32(0,B,!1),(d=l._cloneInto(d)).update(g).digestInto(I),S.set(I.subarray(0,S.length));for(let V=1;V<a;V++){p._cloneInto(d).update(I).digestInto(I);for(let Z=0;Z<S.length;Z++)S[Z]^=I[Z]}}return _u(p,l,s,d,I)}function pu(r,e,t,n){if(typeof r.setBigUint64=="function")return r.setBigUint64(e,t,n);let a=BigInt(32),i=BigInt(4294967295),s=Number(t>>a&i),p=Number(t&i),l=n?4:0,d=n?0:4;r.setUint32(e+l,s,n),r.setUint32(e+d,p,n)}var Er=class extends Ft{constructor(e,t,n,a){super(),this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=a,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=Cr(this.buffer)}update(e){It(this);let{view:t,buffer:n,blockLen:a}=this;e=st(e);let i=e.length;for(let s=0;s<i;){let p=Math.min(a-this.pos,i-s);if(p===a){let l=Cr(e);for(;a<=i-s;s+=a)this.process(l,s);continue}n.set(e.subarray(s,s+p),this.pos),this.pos+=p,s+=p,this.pos===a&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){It(this),na(e,this),this.finished=!0;let{buffer:t,view:n,blockLen:a,isLE:i}=this,{pos:s}=this;t[s++]=128,this.buffer.subarray(s).fill(0),this.padOffset>a-s&&(this.process(n,0),s=0);for(let b=s;b<a;b++)t[b]=0;pu(n,a-8,BigInt(this.length*8),i),this.process(n,0);let p=Cr(e),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen should be aligned to 32bit");let d=l/4,g=this.get();if(d>g.length)throw new Error("_sha2: outputLen bigger than state");for(let b=0;b<d;b++)p.setUint32(4*b,g[b],i)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let n=e.slice(0,t);return this.destroy(),n}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:n,length:a,finished:i,destroyed:s,pos:p}=this;return e.length=a,e.pos=p,e.finished=i,e.destroyed=s,a%t&&e.buffer.set(n),e}};var uu=(r,e,t)=>r&e^~r&t,cu=(r,e,t)=>r&e^r&t^e&t,yu=new Uint32Array([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]),Pt=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Vt=new Uint32Array(64),Mo=class extends Er{constructor(){super(64,32,8,!1),this.A=Pt[0]|0,this.B=Pt[1]|0,this.C=Pt[2]|0,this.D=Pt[3]|0,this.E=Pt[4]|0,this.F=Pt[5]|0,this.G=Pt[6]|0,this.H=Pt[7]|0}get(){let{A:e,B:t,C:n,D:a,E:i,F:s,G:p,H:l}=this;return[e,t,n,a,i,s,p,l]}set(e,t,n,a,i,s,p,l){this.A=e|0,this.B=t|0,this.C=n|0,this.D=a|0,this.E=i|0,this.F=s|0,this.G=p|0,this.H=l|0}process(e,t){for(let b=0;b<16;b++,t+=4)Vt[b]=e.getUint32(t,!1);for(let b=16;b<64;b++){let I=Vt[b-15],B=Vt[b-2],x=ot(I,7)^ot(I,18)^I>>>3,S=ot(B,17)^ot(B,19)^B>>>10;Vt[b]=S+Vt[b-7]+x+Vt[b-16]|0}let{A:n,B:a,C:i,D:s,E:p,F:l,G:d,H:g}=this;for(let b=0;b<64;b++){let I=ot(p,6)^ot(p,11)^ot(p,25),B=g+I+uu(p,l,d)+yu[b]+Vt[b]|0,S=(ot(n,2)^ot(n,13)^ot(n,22))+cu(n,a,i)|0;g=d,d=l,l=p,p=s+B|0,s=i,i=a,a=n,n=B+S|0}n=n+this.A|0,a=a+this.B|0,i=i+this.C|0,s=s+this.D|0,p=p+this.E|0,l=l+this.F|0,d=d+this.G|0,g=g+this.H|0,this.set(n,a,i,s,p,l,d,g)}roundClean(){Vt.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}};var $s=wr(()=>new Mo);var ia=BigInt(4294967295),So=BigInt(32);function Qs(r,e=!1){return e?{h:Number(r&ia),l:Number(r>>So&ia)}:{h:Number(r>>So&ia)|0,l:Number(r&ia)|0}}function Io(r,e=!1){let t=new Uint32Array(r.length),n=new Uint32Array(r.length);for(let a=0;a<r.length;a++){let{h:i,l:s}=Qs(r[a],e);[t[a],n[a]]=[i,s]}return[t,n]}var lu=(r,e)=>BigInt(r>>>0)<<So|BigInt(e>>>0),du=(r,e,t)=>r>>>t,bu=(r,e,t)=>r<<32-t|e>>>t,mu=(r,e,t)=>r>>>t|e<<32-t,gu=(r,e,t)=>r<<32-t|e>>>t,fu=(r,e,t)=>r<<64-t|e>>>t-32,Mu=(r,e,t)