@libp2p/peer-id-factory
Version:
Create PeerId instances
2 lines • 150 kB
JavaScript
(function (root, factory) {(typeof module === 'object' && module.exports) ? module.exports = factory() : root.Libp2PPeerIdFactory = factory()}(typeof self !== 'undefined' ? self : this, function () {
"use strict";var Libp2PPeerIdFactory=(()=>{var tc=Object.create;var Or=Object.defineProperty;var rc=Object.getOwnPropertyDescriptor;var nc=Object.getOwnPropertyNames;var sc=Object.getPrototypeOf,oc=Object.prototype.hasOwnProperty;var ic=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),ie=(r,e)=>{for(var t in e)Or(r,t,{get:e[t],enumerable:!0})},Io=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of nc(e))!oc.call(r,s)&&s!==t&&Or(r,s,{get:()=>e[s],enumerable:!(n=rc(e,s))||n.enumerable});return r};var ac=(r,e,t)=>(t=r!=null?tc(sc(r)):{},Io(e||!r||!r.__esModule?Or(t,"default",{value:r,enumerable:!0}):t,r)),cc=r=>Io(Or({},"__esModule",{value:!0}),r);var Li=ic(Qt=>{"use strict";var Ou="[object ArrayBuffer]",Ye=class r{static isArrayBuffer(e){return Object.prototype.toString.call(e)===Ou}static toArrayBuffer(e){return this.isArrayBuffer(e)?e:e.byteLength===e.buffer.byteLength||e.byteOffset===0&&e.byteLength===e.buffer.byteLength?e.buffer:this.toUint8Array(e.buffer).slice(e.byteOffset,e.byteOffset+e.byteLength).buffer}static toUint8Array(e){return this.toView(e,Uint8Array)}static toView(e,t){if(e.constructor===t)return e;if(this.isArrayBuffer(e))return new t(e);if(this.isArrayBufferView(e))return new t(e.buffer,e.byteOffset,e.byteLength);throw new TypeError("The provided value is not of type '(ArrayBuffer or ArrayBufferView)'")}static isBufferSource(e){return this.isArrayBufferView(e)||this.isArrayBuffer(e)}static isArrayBufferView(e){return ArrayBuffer.isView(e)||e&&this.isArrayBuffer(e.buffer)}static isEqual(e,t){let n=r.toUint8Array(e),s=r.toUint8Array(t);if(n.length!==s.byteLength)return!1;for(let o=0;o<n.length;o++)if(n[o]!==s[o])return!1;return!0}static concat(...e){let t;Array.isArray(e[0])&&!(e[1]instanceof Function)||Array.isArray(e[0])&&e[1]instanceof Function?t=e[0]:e[e.length-1]instanceof Function?t=e.slice(0,e.length-1):t=e;let n=0;for(let i of t)n+=i.byteLength;let s=new Uint8Array(n),o=0;for(let i of t){let a=this.toUint8Array(i);s.set(a,o),o+=a.length}return e[e.length-1]instanceof Function?this.toView(s,e[e.length-1]):s.buffer}},Ws="string",Pu=/^[0-9a-f]+$/i,Ku=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,Mu=/^[a-zA-Z0-9-_]+$/,nn=class{static fromString(e){let t=unescape(encodeURIComponent(e)),n=new Uint8Array(t.length);for(let s=0;s<t.length;s++)n[s]=t.charCodeAt(s);return n.buffer}static toString(e){let t=Ye.toUint8Array(e),n="";for(let o=0;o<t.length;o++)n+=String.fromCharCode(t[o]);return decodeURIComponent(escape(n))}},Ae=class{static toString(e,t=!1){let n=Ye.toArrayBuffer(e),s=new DataView(n),o="";for(let i=0;i<n.byteLength;i+=2){let a=s.getUint16(i,t);o+=String.fromCharCode(a)}return o}static fromString(e,t=!1){let n=new ArrayBuffer(e.length*2),s=new DataView(n);for(let o=0;o<e.length;o++)s.setUint16(o*2,e.charCodeAt(o),t);return n}},sn=class r{static isHex(e){return typeof e===Ws&&Pu.test(e)}static isBase64(e){return typeof e===Ws&&Ku.test(e)}static isBase64Url(e){return typeof e===Ws&&Mu.test(e)}static ToString(e,t="utf8"){let n=Ye.toUint8Array(e);switch(t.toLowerCase()){case"utf8":return this.ToUtf8String(n);case"binary":return this.ToBinary(n);case"hex":return this.ToHex(n);case"base64":return this.ToBase64(n);case"base64url":return this.ToBase64Url(n);case"utf16le":return Ae.toString(n,!0);case"utf16":case"utf16be":return Ae.toString(n);default:throw new Error(`Unknown type of encoding '${t}'`)}}static FromString(e,t="utf8"){if(!e)return new ArrayBuffer(0);switch(t.toLowerCase()){case"utf8":return this.FromUtf8String(e);case"binary":return this.FromBinary(e);case"hex":return this.FromHex(e);case"base64":return this.FromBase64(e);case"base64url":return this.FromBase64Url(e);case"utf16le":return Ae.fromString(e,!0);case"utf16":case"utf16be":return Ae.fromString(e);default:throw new Error(`Unknown type of encoding '${t}'`)}}static ToBase64(e){let t=Ye.toUint8Array(e);if(typeof btoa<"u"){let n=this.ToString(t,"binary");return btoa(n)}else return Buffer.from(t).toString("base64")}static FromBase64(e){let t=this.formatString(e);if(!t)return new ArrayBuffer(0);if(!r.isBase64(t))throw new TypeError("Argument 'base64Text' is not Base64 encoded");return typeof atob<"u"?this.FromBinary(atob(t)):new Uint8Array(Buffer.from(t,"base64")).buffer}static FromBase64Url(e){let t=this.formatString(e);if(!t)return new ArrayBuffer(0);if(!r.isBase64Url(t))throw new TypeError("Argument 'base64url' is not Base64Url encoded");return this.FromBase64(this.Base64Padding(t.replace(/\-/g,"+").replace(/\_/g,"/")))}static ToBase64Url(e){return this.ToBase64(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}static FromUtf8String(e,t=r.DEFAULT_UTF8_ENCODING){switch(t){case"ascii":return this.FromBinary(e);case"utf8":return nn.fromString(e);case"utf16":case"utf16be":return Ae.fromString(e);case"utf16le":case"usc2":return Ae.fromString(e,!0);default:throw new Error(`Unknown type of encoding '${t}'`)}}static ToUtf8String(e,t=r.DEFAULT_UTF8_ENCODING){switch(t){case"ascii":return this.ToBinary(e);case"utf8":return nn.toString(e);case"utf16":case"utf16be":return Ae.toString(e);case"utf16le":case"usc2":return Ae.toString(e,!0);default:throw new Error(`Unknown type of encoding '${t}'`)}}static FromBinary(e){let t=e.length,n=new Uint8Array(t);for(let s=0;s<t;s++)n[s]=e.charCodeAt(s);return n.buffer}static ToBinary(e){let t=Ye.toUint8Array(e),n="";for(let s=0;s<t.length;s++)n+=String.fromCharCode(t[s]);return n}static ToHex(e){let t=Ye.toUint8Array(e),n="",s=t.length;for(let o=0;o<s;o++){let i=t[o];i<16&&(n+="0"),n+=i.toString(16)}return n}static FromHex(e){let t=this.formatString(e);if(!t)return new ArrayBuffer(0);if(!r.isHex(t))throw new TypeError("Argument 'hexString' is not HEX encoded");t.length%2&&(t=`0${t}`);let n=new Uint8Array(t.length/2);for(let s=0;s<t.length;s=s+2){let o=t.slice(s,s+2);n[s/2]=parseInt(o,16)}return n.buffer}static ToUtf16String(e,t=!1){return Ae.toString(e,t)}static FromUtf16String(e,t=!1){return Ae.fromString(e,t)}static Base64Padding(e){let t=4-e.length%4;if(t<4)for(let n=0;n<t;n++)e+="=";return e}static formatString(e){return e?.replace(/[\n\r\t ]/g,"")||""}};sn.DEFAULT_UTF8_ENCODING="utf8";function Fu(r,...e){let t=arguments[0];for(let n=1;n<arguments.length;n++){let s=arguments[n];for(let o in s)t[o]=s[o]}return t}function $u(...r){let e=r.map(s=>s.byteLength).reduce((s,o)=>s+o),t=new Uint8Array(e),n=0;return r.map(s=>new Uint8Array(s)).forEach(s=>{for(let o of s)t[n++]=o}),t.buffer}function qu(r,e){if(!(r&&e)||r.byteLength!==e.byteLength)return!1;let t=new Uint8Array(r),n=new Uint8Array(e);for(let s=0;s<r.byteLength;s++)if(t[s]!==n[s])return!1;return!0}Qt.BufferSourceConverter=Ye;Qt.Convert=sn;Qt.assign=Fu;Qt.combine=$u;Qt.isEqual=qu});var _f={};ie(_f,{createEd25519PeerId:()=>Sf,createFromJSON:()=>Cf,createFromPrivKey:()=>Hr,createFromProtobuf:()=>Tf,createFromPubKey:()=>Ga,createRSAPeerId:()=>Nf,createSecp256k1PeerId:()=>If,exportToProtobuf:()=>Rf});var Yn=Symbol.for("@libp2p/peer-id");var H=class extends Error{code;props;constructor(e,t,n){super(e),this.code=t,this.name=n?.name??"CodeError",this.props=n??{}}};var Zs={};ie(Zs,{Ed25519PrivateKey:()=>St,Ed25519PublicKey:()=>wr,generateKeyPair:()=>Vu,generateKeyPairFromSeed:()=>Ui,unmarshalEd25519PrivateKey:()=>Uu,unmarshalEd25519PublicKey:()=>Lu});var es={};ie(es,{base58btc:()=>de,base58flickr:()=>pc});var Hf=new Uint8Array(0);function No(r,e){if(r===e)return!0;if(r.byteLength!==e.byteLength)return!1;for(let t=0;t<r.byteLength;t++)if(r[t]!==e[t])return!1;return!0}function Fe(r){if(r instanceof Uint8Array&&r.constructor.name==="Uint8Array")return r;if(r instanceof ArrayBuffer)return new Uint8Array(r);if(ArrayBuffer.isView(r))return new Uint8Array(r.buffer,r.byteOffset,r.byteLength);throw new Error("Unknown type, must be binary type")}function Ro(r){return new TextEncoder().encode(r)}function To(r){return new TextDecoder().decode(r)}function lc(r,e){if(r.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n<t.length;n++)t[n]=255;for(var s=0;s<r.length;s++){var o=r.charAt(s),i=o.charCodeAt(0);if(t[i]!==255)throw new TypeError(o+" is ambiguous");t[i]=s}var a=r.length,c=r.charAt(0),f=Math.log(a)/Math.log(256),u=Math.log(256)/Math.log(a);function l(g){if(g instanceof Uint8Array||(ArrayBuffer.isView(g)?g=new Uint8Array(g.buffer,g.byteOffset,g.byteLength):Array.isArray(g)&&(g=Uint8Array.from(g))),!(g instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(g.length===0)return"";for(var h=0,y=0,x=0,b=g.length;x!==b&&g[x]===0;)x++,h++;for(var w=(b-x)*u+1>>>0,T=new Uint8Array(w);x!==b;){for(var S=g[x],k=0,R=w-1;(S!==0||k<y)&&R!==-1;R--,k++)S+=256*T[R]>>>0,T[R]=S%a>>>0,S=S/a>>>0;if(S!==0)throw new Error("Non-zero carry");y=k,x++}for(var I=w-y;I!==w&&T[I]===0;)I++;for(var F=c.repeat(h);I<w;++I)F+=r.charAt(T[I]);return F}function m(g){if(typeof g!="string")throw new TypeError("Expected String");if(g.length===0)return new Uint8Array;var h=0;if(g[h]!==" "){for(var y=0,x=0;g[h]===c;)y++,h++;for(var b=(g.length-h)*f+1>>>0,w=new Uint8Array(b);g[h];){var T=t[g.charCodeAt(h)];if(T===255)return;for(var S=0,k=b-1;(T!==0||S<x)&&k!==-1;k--,S++)T+=a*w[k]>>>0,w[k]=T%256>>>0,T=T/256>>>0;if(T!==0)throw new Error("Non-zero carry");x=S,h++}if(g[h]!==" "){for(var R=b-x;R!==b&&w[R]===0;)R++;for(var I=new Uint8Array(y+(b-R)),F=y;R!==b;)I[F++]=w[R++];return I}}}function v(g){var h=m(g);if(h)return h;throw new Error(`Non-${e} character`)}return{encode:l,decodeUnsafe:m,decode:v}}var uc=lc,fc=uc,_o=fc;var Wn=class{name;prefix;baseEncode;constructor(e,t,n){this.name=e,this.prefix=t,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}},Jn=class{name;prefix;baseDecode;prefixCodePoint;constructor(e,t,n){if(this.name=e,this.prefix=t,t.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=n}decode(e){if(typeof e=="string"){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))}else throw Error("Can only multibase decode strings")}or(e){return Uo(this,e)}},Xn=class{decoders;constructor(e){this.decoders=e}or(e){return Uo(this,e)}decode(e){let t=e[0],n=this.decoders[t];if(n!=null)return n.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}};function Uo(r,e){return new Xn({...r.decoders??{[r.prefix]:r},...e.decoders??{[e.prefix]:e}})}var Qn=class{name;prefix;baseEncode;baseDecode;encoder;decoder;constructor(e,t,n,s){this.name=e,this.prefix=t,this.baseEncode=n,this.baseDecode=s,this.encoder=new Wn(e,t,n),this.decoder=new Jn(e,t,s)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}};function Tt({name:r,prefix:e,encode:t,decode:n}){return new Qn(r,e,t,n)}function tt({name:r,prefix:e,alphabet:t}){let{encode:n,decode:s}=_o(t,r);return Tt({prefix:e,name:r,encode:n,decode:o=>Fe(s(o))})}function hc(r,e,t,n){let s={};for(let u=0;u<e.length;++u)s[e[u]]=u;let o=r.length;for(;r[o-1]==="=";)--o;let i=new Uint8Array(o*t/8|0),a=0,c=0,f=0;for(let u=0;u<o;++u){let l=s[r[u]];if(l===void 0)throw new SyntaxError(`Non-${n} character`);c=c<<t|l,a+=t,a>=8&&(a-=8,i[f++]=255&c>>a)}if(a>=t||255&c<<8-a)throw new SyntaxError("Unexpected end of data");return i}function dc(r,e,t){let n=e[e.length-1]==="=",s=(1<<t)-1,o="",i=0,a=0;for(let c=0;c<r.length;++c)for(a=a<<8|r[c],i+=8;i>t;)i-=t,o+=e[s&a>>i];if(i!==0&&(o+=e[s&a<<t-i]),n)for(;o.length*t&7;)o+="=";return o}function W({name:r,prefix:e,bitsPerChar:t,alphabet:n}){return Tt({prefix:e,name:r,encode(s){return dc(s,n,t)},decode(s){return hc(s,n,t,r)}})}var de=tt({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),pc=tt({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var rs={};ie(rs,{identity:()=>$e});var gc=Ho,Lo=128,yc=127,mc=~yc,bc=Math.pow(2,31);function Ho(r,e,t){e=e||[],t=t||0;for(var n=t;r>=bc;)e[t++]=r&255|Lo,r/=128;for(;r&mc;)e[t++]=r&255|Lo,r>>>=7;return e[t]=r|0,Ho.bytes=t-n+1,e}var wc=ts,xc=128,Vo=127;function ts(r,n){var t=0,n=n||0,s=0,o=n,i,a=r.length;do{if(o>=a)throw ts.bytes=0,new RangeError("Could not decode varint");i=r[o++],t+=s<28?(i&Vo)<<s:(i&Vo)*Math.pow(2,s),s+=7}while(i>=xc);return ts.bytes=o-n,t}var vc=Math.pow(2,7),Bc=Math.pow(2,14),Ec=Math.pow(2,21),Ac=Math.pow(2,28),kc=Math.pow(2,35),Sc=Math.pow(2,42),Ic=Math.pow(2,49),Nc=Math.pow(2,56),Rc=Math.pow(2,63),Tc=function(r){return r<vc?1:r<Bc?2:r<Ec?3:r<Ac?4:r<kc?5:r<Sc?6:r<Ic?7:r<Nc?8:r<Rc?9:10},Cc={encode:gc,decode:wc,encodingLength:Tc},_c=Cc,cr=_c;function lr(r,e=0){return[cr.decode(r,e),cr.decode.bytes]}function Ct(r,e,t=0){return cr.encode(r,e,t),e}function _t(r){return cr.encodingLength(r)}function Le(r,e){let t=e.byteLength,n=_t(r),s=n+_t(t),o=new Uint8Array(s+t);return Ct(r,o,0),Ct(t,o,n),o.set(e,s),new Ut(r,t,e,o)}function ur(r){let e=Fe(r),[t,n]=lr(e),[s,o]=lr(e.subarray(n)),i=e.subarray(n+o);if(i.byteLength!==s)throw new Error("Incorrect length");return new Ut(t,s,i,e)}function Do(r,e){if(r===e)return!0;{let t=e;return r.code===t.code&&r.size===t.size&&t.bytes instanceof Uint8Array&&No(r.bytes,t.bytes)}}var Ut=class{code;size;digest;bytes;constructor(e,t,n,s){this.code=e,this.size=t,this.digest=n,this.bytes=s}};var Oo=0,Uc="identity",Po=Fe;function Lc(r){return Le(Oo,Po(r))}var $e={code:Oo,name:Uc,encode:Po,digest:Lc};var os={};ie(os,{sha256:()=>le,sha512:()=>Vc});function ss({name:r,code:e,encode:t}){return new ns(r,e,t)}var ns=class{name;code;encode;constructor(e,t,n){this.name=e,this.code=t,this.encode=n}digest(e){if(e instanceof Uint8Array){let t=this.encode(e);return t instanceof Uint8Array?Le(this.code,t):t.then(n=>Le(this.code,n))}else throw Error("Unknown type, must be binary type")}};function Mo(r){return async e=>new Uint8Array(await crypto.subtle.digest(r,e))}var le=ss({name:"sha2-256",code:18,encode:Mo("SHA-256")}),Vc=ss({name:"sha2-512",code:19,encode:Mo("SHA-512")});function Be(r,e){if(r===e)return!0;if(r.byteLength!==e.byteLength)return!1;for(let t=0;t<r.byteLength;t++)if(r[t]!==e[t])return!1;return!0}function Ve(r=0){return new Uint8Array(r)}function is(r,e){e==null&&(e=r.reduce((s,o)=>s+o.length,0));let t=Ve(e),n=0;for(let s of r)t.set(s,n),n+=s.length;return t}var as={};ie(as,{base10:()=>Hc});var Hc=tt({prefix:"9",name:"base10",alphabet:"0123456789"});var cs={};ie(cs,{base16:()=>Dc,base16upper:()=>Oc});var Dc=W({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),Oc=W({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var ls={};ie(ls,{base2:()=>Pc});var Pc=W({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var us={};ie(us,{base256emoji:()=>qc});var Fo=Array.from("\u{1F680}\u{1FA90}\u2604\u{1F6F0}\u{1F30C}\u{1F311}\u{1F312}\u{1F313}\u{1F314}\u{1F315}\u{1F316}\u{1F317}\u{1F318}\u{1F30D}\u{1F30F}\u{1F30E}\u{1F409}\u2600\u{1F4BB}\u{1F5A5}\u{1F4BE}\u{1F4BF}\u{1F602}\u2764\u{1F60D}\u{1F923}\u{1F60A}\u{1F64F}\u{1F495}\u{1F62D}\u{1F618}\u{1F44D}\u{1F605}\u{1F44F}\u{1F601}\u{1F525}\u{1F970}\u{1F494}\u{1F496}\u{1F499}\u{1F622}\u{1F914}\u{1F606}\u{1F644}\u{1F4AA}\u{1F609}\u263A\u{1F44C}\u{1F917}\u{1F49C}\u{1F614}\u{1F60E}\u{1F607}\u{1F339}\u{1F926}\u{1F389}\u{1F49E}\u270C\u2728\u{1F937}\u{1F631}\u{1F60C}\u{1F338}\u{1F64C}\u{1F60B}\u{1F497}\u{1F49A}\u{1F60F}\u{1F49B}\u{1F642}\u{1F493}\u{1F929}\u{1F604}\u{1F600}\u{1F5A4}\u{1F603}\u{1F4AF}\u{1F648}\u{1F447}\u{1F3B6}\u{1F612}\u{1F92D}\u2763\u{1F61C}\u{1F48B}\u{1F440}\u{1F62A}\u{1F611}\u{1F4A5}\u{1F64B}\u{1F61E}\u{1F629}\u{1F621}\u{1F92A}\u{1F44A}\u{1F973}\u{1F625}\u{1F924}\u{1F449}\u{1F483}\u{1F633}\u270B\u{1F61A}\u{1F61D}\u{1F634}\u{1F31F}\u{1F62C}\u{1F643}\u{1F340}\u{1F337}\u{1F63B}\u{1F613}\u2B50\u2705\u{1F97A}\u{1F308}\u{1F608}\u{1F918}\u{1F4A6}\u2714\u{1F623}\u{1F3C3}\u{1F490}\u2639\u{1F38A}\u{1F498}\u{1F620}\u261D\u{1F615}\u{1F33A}\u{1F382}\u{1F33B}\u{1F610}\u{1F595}\u{1F49D}\u{1F64A}\u{1F639}\u{1F5E3}\u{1F4AB}\u{1F480}\u{1F451}\u{1F3B5}\u{1F91E}\u{1F61B}\u{1F534}\u{1F624}\u{1F33C}\u{1F62B}\u26BD\u{1F919}\u2615\u{1F3C6}\u{1F92B}\u{1F448}\u{1F62E}\u{1F646}\u{1F37B}\u{1F343}\u{1F436}\u{1F481}\u{1F632}\u{1F33F}\u{1F9E1}\u{1F381}\u26A1\u{1F31E}\u{1F388}\u274C\u270A\u{1F44B}\u{1F630}\u{1F928}\u{1F636}\u{1F91D}\u{1F6B6}\u{1F4B0}\u{1F353}\u{1F4A2}\u{1F91F}\u{1F641}\u{1F6A8}\u{1F4A8}\u{1F92C}\u2708\u{1F380}\u{1F37A}\u{1F913}\u{1F619}\u{1F49F}\u{1F331}\u{1F616}\u{1F476}\u{1F974}\u25B6\u27A1\u2753\u{1F48E}\u{1F4B8}\u2B07\u{1F628}\u{1F31A}\u{1F98B}\u{1F637}\u{1F57A}\u26A0\u{1F645}\u{1F61F}\u{1F635}\u{1F44E}\u{1F932}\u{1F920}\u{1F927}\u{1F4CC}\u{1F535}\u{1F485}\u{1F9D0}\u{1F43E}\u{1F352}\u{1F617}\u{1F911}\u{1F30A}\u{1F92F}\u{1F437}\u260E\u{1F4A7}\u{1F62F}\u{1F486}\u{1F446}\u{1F3A4}\u{1F647}\u{1F351}\u2744\u{1F334}\u{1F4A3}\u{1F438}\u{1F48C}\u{1F4CD}\u{1F940}\u{1F922}\u{1F445}\u{1F4A1}\u{1F4A9}\u{1F450}\u{1F4F8}\u{1F47B}\u{1F910}\u{1F92E}\u{1F3BC}\u{1F975}\u{1F6A9}\u{1F34E}\u{1F34A}\u{1F47C}\u{1F48D}\u{1F4E3}\u{1F942}"),Kc=Fo.reduce((r,e,t)=>(r[t]=e,r),[]),Mc=Fo.reduce((r,e,t)=>(r[e.codePointAt(0)]=t,r),[]);function Fc(r){return r.reduce((e,t)=>(e+=Kc[t],e),"")}function $c(r){let e=[];for(let t of r){let n=Mc[t.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${t}`);e.push(n)}return new Uint8Array(e)}var qc=Tt({prefix:"\u{1F680}",name:"base256emoji",encode:Fc,decode:$c});var fs={};ie(fs,{base32:()=>Vt,base32hex:()=>Zc,base32hexpad:()=>Wc,base32hexpadupper:()=>Jc,base32hexupper:()=>Yc,base32pad:()=>Gc,base32padupper:()=>zc,base32upper:()=>jc,base32z:()=>Xc});var Vt=W({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),jc=W({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),Gc=W({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),zc=W({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),Zc=W({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),Yc=W({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),Wc=W({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),Jc=W({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),Xc=W({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var hs={};ie(hs,{base36:()=>Qc,base36upper:()=>el});var Qc=tt({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),el=tt({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var ps={};ie(ps,{base64:()=>ds,base64pad:()=>tl,base64url:()=>rl,base64urlpad:()=>nl});var ds=W({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),tl=W({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),rl=W({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),nl=W({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var gs={};ie(gs,{base8:()=>sl});var sl=W({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var ys={};ie(ys,{identity:()=>ol});var ol=Tt({prefix:"\0",name:"identity",encode:r=>To(r),decode:r=>Ro(r)});var uh=new TextEncoder,fh=new TextDecoder;function $o(r,e){let{bytes:t,version:n}=r;switch(n){case 0:return ll(t,ms(r),e??de.encoder);default:return ul(t,ms(r),e??Vt.encoder)}}var qo=new WeakMap;function ms(r){let e=qo.get(r);if(e==null){let t=new Map;return qo.set(r,t),t}return e}var rt=class r{code;version;multihash;bytes;"/";constructor(e,t,n,s){this.code=t,this.version=e,this.multihash=n,this.bytes=s,this["/"]=s}get asCID(){return this}get byteOffset(){return this.bytes.byteOffset}get byteLength(){return this.bytes.byteLength}toV0(){switch(this.version){case 0:return this;case 1:{let{code:e,multihash:t}=this;if(e!==fr)throw new Error("Cannot convert a non dag-pb CID to CIDv0");if(t.code!==fl)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");return r.createV0(t)}default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}toV1(){switch(this.version){case 0:{let{code:e,digest:t}=this.multihash,n=Le(e,t);return r.createV1(this.code,n)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 1. This is a bug please report`)}}equals(e){return r.equals(this,e)}static equals(e,t){let n=t;return n!=null&&e.code===n.code&&e.version===n.version&&Do(e.multihash,n.multihash)}toString(e){return $o(this,e)}toJSON(){return{"/":$o(this)}}link(){return this}[Symbol.toStringTag]="CID";[Symbol.for("nodejs.util.inspect.custom")](){return`CID(${this.toString()})`}static asCID(e){if(e==null)return null;let t=e;if(t instanceof r)return t;if(t["/"]!=null&&t["/"]===t.bytes||t.asCID===t){let{version:n,code:s,multihash:o,bytes:i}=t;return new r(n,s,o,i??jo(n,s,o.bytes))}else if(t[hl]===!0){let{version:n,multihash:s,code:o}=t,i=ur(s);return r.create(n,o,i)}else return null}static create(e,t,n){if(typeof t!="number")throw new Error("String codecs are no longer supported");if(!(n.bytes instanceof Uint8Array))throw new Error("Invalid digest");switch(e){case 0:{if(t!==fr)throw new Error(`Version 0 CID must use dag-pb (code: ${fr}) block encoding`);return new r(e,t,n,n.bytes)}case 1:{let s=jo(e,t,n.bytes);return new r(e,t,n,s)}default:throw new Error("Invalid version")}}static createV0(e){return r.create(0,fr,e)}static createV1(e,t){return r.create(1,e,t)}static decode(e){let[t,n]=r.decodeFirst(e);if(n.length!==0)throw new Error("Incorrect length");return t}static decodeFirst(e){let t=r.inspectBytes(e),n=t.size-t.multihashSize,s=Fe(e.subarray(n,n+t.multihashSize));if(s.byteLength!==t.multihashSize)throw new Error("Incorrect length");let o=s.subarray(t.multihashSize-t.digestSize),i=new Ut(t.multihashCode,t.digestSize,o,s);return[t.version===0?r.createV0(i):r.createV1(t.codec,i),e.subarray(t.size)]}static inspectBytes(e){let t=0,n=()=>{let[l,m]=lr(e.subarray(t));return t+=m,l},s=n(),o=fr;if(s===18?(s=0,t=0):o=n(),s!==0&&s!==1)throw new RangeError(`Invalid CID version ${s}`);let i=t,a=n(),c=n(),f=t+c,u=f-i;return{version:s,codec:o,multihashCode:a,digestSize:c,multihashSize:u,size:f}}static parse(e,t){let[n,s]=cl(e,t),o=r.decode(s);if(o.version===0&&e[0]!=="Q")throw Error("Version 0 CID string must not include multibase prefix");return ms(o).set(n,e),o}};function cl(r,e){switch(r[0]){case"Q":{let t=e??de;return[de.prefix,t.decode(`${de.prefix}${r}`)]}case de.prefix:{let t=e??de;return[de.prefix,t.decode(r)]}case Vt.prefix:{let t=e??Vt;return[Vt.prefix,t.decode(r)]}default:{if(e==null)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[r[0],e.decode(r)]}}}function ll(r,e,t){let{prefix:n}=t;if(n!==de.prefix)throw Error(`Cannot string encode V0 in ${t.name} encoding`);let s=e.get(n);if(s==null){let o=t.encode(r).slice(1);return e.set(n,o),o}else return s}function ul(r,e,t){let{prefix:n}=t,s=e.get(n);if(s==null){let o=t.encode(r);return e.set(n,o),o}else return s}var fr=112,fl=18;function jo(r,e,t){let n=_t(r),s=n+_t(e),o=new Uint8Array(s+t.byteLength);return Ct(r,o,0),Ct(e,o,n),o.set(t,s),o}var hl=Symbol.for("@ipld/js-cid/CID");var Ht={...ys,...ls,...gs,...as,...cs,...fs,...hs,...es,...ps,...us},Ih={...os,...rs};function zo(r,e,t,n){return{name:r,prefix:e,encoder:{name:r,prefix:e,encode:t},decoder:{decode:n}}}var Go=zo("utf8","u",r=>"u"+new TextDecoder("utf8").decode(r),r=>new TextEncoder().encode(r.substring(1))),bs=zo("ascii","a",r=>{let e="a";for(let t=0;t<r.length;t++)e+=String.fromCharCode(r[t]);return e},r=>{r=r.substring(1);let e=Ve(r.length);for(let t=0;t<r.length;t++)e[t]=r.charCodeAt(t);return e}),dl={utf8:Go,"utf-8":Go,hex:Ht.base16,latin1:bs,ascii:bs,binary:bs,...Ht},Kr=dl;function q(r,e="utf8"){let t=Kr[e];if(t==null)throw new Error(`Unsupported encoding "${e}"`);return t.decoder.decode(`${t.prefix}${r}`)}function Ee(r){return r==null?!1:typeof r.then=="function"&&typeof r.catch=="function"&&typeof r.finally=="function"}function Dt(r){if(!Number.isSafeInteger(r)||r<0)throw new Error(`positive integer expected, not ${r}`)}function pl(r){return r instanceof Uint8Array||r!=null&&typeof r=="object"&&r.constructor.name==="Uint8Array"}function Ot(r,...e){if(!pl(r))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(r.length))throw new Error(`Uint8Array expected of length ${e}, not of length=${r.length}`)}function Mr(r){if(typeof r!="function"||typeof r.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");Dt(r.outputLen),Dt(r.blockLen)}function Pt(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 Zo(r,e){Ot(r);let t=e.outputLen;if(r.length<t)throw new Error(`digestInto() expects output buffer of length at least ${t}`)}var Fr=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;var Mt=r=>new DataView(r.buffer,r.byteOffset,r.byteLength),Ie=(r,e)=>r<<32-e|r>>>e;var Mh=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;var gl=async()=>{};async function Yo(r,e,t){let n=Date.now();for(let s=0;s<r;s++){t(s);let o=Date.now()-n;o>=0&&o<e||(await gl(),n+=o)}}function Wo(r){if(typeof r!="string")throw new Error(`utf8ToBytes expected string, got ${typeof r}`);return new Uint8Array(new TextEncoder().encode(r))}function nt(r){return typeof r=="string"&&(r=Wo(r)),Ot(r),r}function ws(...r){let e=0;for(let n=0;n<r.length;n++){let s=r[n];Ot(s),e+=s.length}let t=new Uint8Array(e);for(let n=0,s=0;n<r.length;n++){let o=r[n];t.set(o,s),s+=o.length}return t}var Kt=class{clone(){return this._cloneInto()}},yl={}.toString;function Jo(r,e){if(e!==void 0&&yl.call(e)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(r,e)}function $r(r){let e=n=>r().update(nt(n)).digest(),t=r();return e.outputLen=t.outputLen,e.blockLen=t.blockLen,e.create=()=>r(),e}function Ft(r=32){if(Fr&&typeof Fr.getRandomValues=="function")return Fr.getRandomValues(new Uint8Array(r));throw new Error("crypto.getRandomValues must be defined")}function ml(r,e,t,n){if(typeof r.setBigUint64=="function")return r.setBigUint64(e,t,n);let s=BigInt(32),o=BigInt(4294967295),i=Number(t>>s&o),a=Number(t&o),c=n?4:0,f=n?0:4;r.setUint32(e+c,i,n),r.setUint32(e+f,a,n)}var Xo=(r,e,t)=>r&e^~r&t,Qo=(r,e,t)=>r&e^r&t^e&t,$t=class extends Kt{constructor(e,t,n,s){super(),this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=s,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=Mt(this.buffer)}update(e){Pt(this);let{view:t,buffer:n,blockLen:s}=this;e=nt(e);let o=e.length;for(let i=0;i<o;){let a=Math.min(s-this.pos,o-i);if(a===s){let c=Mt(e);for(;s<=o-i;i+=s)this.process(c,i);continue}n.set(e.subarray(i,i+a),this.pos),this.pos+=a,i+=a,this.pos===s&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){Pt(this),Zo(e,this),this.finished=!0;let{buffer:t,view:n,blockLen:s,isLE:o}=this,{pos:i}=this;t[i++]=128,this.buffer.subarray(i).fill(0),this.padOffset>s-i&&(this.process(n,0),i=0);for(let l=i;l<s;l++)t[l]=0;ml(n,s-8,BigInt(this.length*8),o),this.process(n,0);let a=Mt(e),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");let f=c/4,u=this.get();if(f>u.length)throw new Error("_sha2: outputLen bigger than state");for(let l=0;l<f;l++)a.setUint32(4*l,u[l],o)}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:s,finished:o,destroyed:i,pos:a}=this;return e.length=s,e.pos=a,e.finished=o,e.destroyed=i,s%t&&e.buffer.set(n),e}};var qr=BigInt(4294967295),xs=BigInt(32);function ei(r,e=!1){return e?{h:Number(r&qr),l:Number(r>>xs&qr)}:{h:Number(r>>xs&qr)|0,l:Number(r&qr)|0}}function bl(r,e=!1){let t=new Uint32Array(r.length),n=new Uint32Array(r.length);for(let s=0;s<r.length;s++){let{h:o,l:i}=ei(r[s],e);[t[s],n[s]]=[o,i]}return[t,n]}var wl=(r,e)=>BigInt(r>>>0)<<xs|BigInt(e>>>0),xl=(r,e,t)=>r>>>t,vl=(r,e,t)=>r<<32-t|e>>>t,Bl=(r,e,t)=>r>>>t|e<<32-t,El=(r,e,t)=>r<<32-t|e>>>t,Al=(r,e,t)=>r<<64-t|e>>>t-32,kl=(r,e,t)=>r>>>t-32|e<<64-t,Sl=(r,e)=>e,Il=(r,e)=>r,Nl=(r,e,t)=>r<<t|e>>>32-t,Rl=(r,e,t)=>e<<t|r>>>32-t,Tl=(r,e,t)=>e<<t-32|r>>>64-t,Cl=(r,e,t)=>r<<t-32|e>>>64-t;function _l(r,e,t,n){let s=(e>>>0)+(n>>>0);return{h:r+t+(s/2**32|0)|0,l:s|0}}var Ul=(r,e,t)=>(r>>>0)+(e>>>0)+(t>>>0),Ll=(r,e,t,n)=>e+t+n+(r/2**32|0)|0,Vl=(r,e,t,n)=>(r>>>0)+(e>>>0)+(t>>>0)+(n>>>0),Hl=(r,e,t,n,s)=>e+t+n+s+(r/2**32|0)|0,Dl=(r,e,t,n,s)=>(r>>>0)+(e>>>0)+(t>>>0)+(n>>>0)+(s>>>0),Ol=(r,e,t,n,s,o)=>e+t+n+s+o+(r/2**32|0)|0;var Pl={fromBig:ei,split:bl,toBig:wl,shrSH:xl,shrSL:vl,rotrSH:Bl,rotrSL:El,rotrBH:Al,rotrBL:kl,rotr32H:Sl,rotr32L:Il,rotlSH:Nl,rotlSL:Rl,rotlBH:Tl,rotlBL:Cl,add:_l,add3L:Ul,add3H:Ll,add4L:Vl,add4H:Hl,add5H:Ol,add5L:Dl},L=Pl;var[Kl,Ml]=L.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(r=>BigInt(r))),st=new Uint32Array(80),ot=new Uint32Array(80),vs=class extends $t{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){let{Ah:e,Al:t,Bh:n,Bl:s,Ch:o,Cl:i,Dh:a,Dl:c,Eh:f,El:u,Fh:l,Fl:m,Gh:v,Gl:g,Hh:h,Hl:y}=this;return[e,t,n,s,o,i,a,c,f,u,l,m,v,g,h,y]}set(e,t,n,s,o,i,a,c,f,u,l,m,v,g,h,y){this.Ah=e|0,this.Al=t|0,this.Bh=n|0,this.Bl=s|0,this.Ch=o|0,this.Cl=i|0,this.Dh=a|0,this.Dl=c|0,this.Eh=f|0,this.El=u|0,this.Fh=l|0,this.Fl=m|0,this.Gh=v|0,this.Gl=g|0,this.Hh=h|0,this.Hl=y|0}process(e,t){for(let w=0;w<16;w++,t+=4)st[w]=e.getUint32(t),ot[w]=e.getUint32(t+=4);for(let w=16;w<80;w++){let T=st[w-15]|0,S=ot[w-15]|0,k=L.rotrSH(T,S,1)^L.rotrSH(T,S,8)^L.shrSH(T,S,7),R=L.rotrSL(T,S,1)^L.rotrSL(T,S,8)^L.shrSL(T,S,7),I=st[w-2]|0,F=ot[w-2]|0,O=L.rotrSH(I,F,19)^L.rotrBH(I,F,61)^L.shrSH(I,F,6),P=L.rotrSL(I,F,19)^L.rotrBL(I,F,61)^L.shrSL(I,F,6),X=L.add4L(R,P,ot[w-7],ot[w-16]),ee=L.add4H(X,k,O,st[w-7],st[w-16]);st[w]=ee|0,ot[w]=X|0}let{Ah:n,Al:s,Bh:o,Bl:i,Ch:a,Cl:c,Dh:f,Dl:u,Eh:l,El:m,Fh:v,Fl:g,Gh:h,Gl:y,Hh:x,Hl:b}=this;for(let w=0;w<80;w++){let T=L.rotrSH(l,m,14)^L.rotrSH(l,m,18)^L.rotrBH(l,m,41),S=L.rotrSL(l,m,14)^L.rotrSL(l,m,18)^L.rotrBL(l,m,41),k=l&v^~l&h,R=m&g^~m&y,I=L.add5L(b,S,R,Ml[w],ot[w]),F=L.add5H(I,x,T,k,Kl[w],st[w]),O=I|0,P=L.rotrSH(n,s,28)^L.rotrBH(n,s,34)^L.rotrBH(n,s,39),X=L.rotrSL(n,s,28)^L.rotrBL(n,s,34)^L.rotrBL(n,s,39),ee=n&o^n&a^o&a,N=s&i^s&c^i&c;x=h|0,b=y|0,h=v|0,y=g|0,v=l|0,g=m|0,{h:l,l:m}=L.add(f|0,u|0,F|0,O|0),f=a|0,u=c|0,a=o|0,c=i|0,o=n|0,i=s|0;let p=L.add3L(O,X,N);n=L.add3H(p,F,P,ee),s=p|0}({h:n,l:s}=L.add(this.Ah|0,this.Al|0,n|0,s|0)),{h:o,l:i}=L.add(this.Bh|0,this.Bl|0,o|0,i|0),{h:a,l:c}=L.add(this.Ch|0,this.Cl|0,a|0,c|0),{h:f,l:u}=L.add(this.Dh|0,this.Dl|0,f|0,u|0),{h:l,l:m}=L.add(this.Eh|0,this.El|0,l|0,m|0),{h:v,l:g}=L.add(this.Fh|0,this.Fl|0,v|0,g|0),{h,l:y}=L.add(this.Gh|0,this.Gl|0,h|0,y|0),{h:x,l:b}=L.add(this.Hh|0,this.Hl|0,x|0,b|0),this.set(n,s,o,i,a,c,f,u,l,m,v,g,h,y,x,b)}roundClean(){st.fill(0),ot.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}};var hr=$r(()=>new vs);var Gr={};ie(Gr,{aInRange:()=>be,abool:()=>Ne,abytes:()=>qt,bitGet:()=>Zl,bitLen:()=>zl,bitMask:()=>pr,bitSet:()=>Yl,bytesToHex:()=>je,bytesToNumberBE:()=>Ge,bytesToNumberLE:()=>at,concatBytes:()=>ze,createHmacDrbg:()=>Ss,ensureBytes:()=>J,equalBytes:()=>jl,hexToBytes:()=>xt,hexToNumber:()=>ks,inRange:()=>dr,isBytes:()=>it,memoized:()=>Bt,notImplemented:()=>Jl,numberToBytesBE:()=>ct,numberToBytesLE:()=>vt,numberToHexUnpadded:()=>ni,numberToVarBytesBE:()=>ql,utf8ToBytes:()=>Gl,validateObject:()=>He});var As=BigInt(0),jr=BigInt(1),Fl=BigInt(2);function it(r){return r instanceof Uint8Array||r!=null&&typeof r=="object"&&r.constructor.name==="Uint8Array"}function qt(r){if(!it(r))throw new Error("Uint8Array expected")}function Ne(r,e){if(typeof e!="boolean")throw new Error(`${r} must be valid boolean, got "${e}".`)}var $l=Array.from({length:256},(r,e)=>e.toString(16).padStart(2,"0"));function je(r){qt(r);let e="";for(let t=0;t<r.length;t++)e+=$l[r[t]];return e}function ni(r){let e=r.toString(16);return e.length&1?`0${e}`:e}function ks(r){if(typeof r!="string")throw new Error("hex string expected, got "+typeof r);return BigInt(r===""?"0":`0x${r}`)}var qe={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function ti(r){if(r>=qe._0&&r<=qe._9)return r-qe._0;if(r>=qe._A&&r<=qe._F)return r-(qe._A-10);if(r>=qe._a&&r<=qe._f)return r-(qe._a-10)}function xt(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 s=0,o=0;s<t;s++,o+=2){let i=ti(r.charCodeAt(o)),a=ti(r.charCodeAt(o+1));if(i===void 0||a===void 0){let c=r[o]+r[o+1];throw new Error('hex string expected, got non-hex character "'+c+'" at index '+o)}n[s]=i*16+a}return n}function Ge(r){return ks(je(r))}function at(r){return qt(r),ks(je(Uint8Array.from(r).reverse()))}function ct(r,e){return xt(r.toString(16).padStart(e*2,"0"))}function vt(r,e){return ct(r,e).reverse()}function ql(r){return xt(ni(r))}function J(r,e,t){let n;if(typeof e=="string")try{n=xt(e)}catch(o){throw new Error(`${r} must be valid hex string, got "${e}". Cause: ${o}`)}else if(it(e))n=Uint8Array.from(e);else throw new Error(`${r} must be hex string or Uint8Array`);let s=n.length;if(typeof t=="number"&&s!==t)throw new Error(`${r} expected ${t} bytes, got ${s}`);return n}function ze(...r){let e=0;for(let n=0;n<r.length;n++){let s=r[n];qt(s),e+=s.length}let t=new Uint8Array(e);for(let n=0,s=0;n<r.length;n++){let o=r[n];t.set(o,s),s+=o.length}return t}function jl(r,e){if(r.length!==e.length)return!1;let t=0;for(let n=0;n<r.length;n++)t|=r[n]^e[n];return t===0}function Gl(r){if(typeof r!="string")throw new Error(`utf8ToBytes expected string, got ${typeof r}`);return new Uint8Array(new TextEncoder().encode(r))}var Bs=r=>typeof r=="bigint"&&As<=r;function dr(r,e,t){return Bs(r)&&Bs(e)&&Bs(t)&&e<=r&&r<t}function be(r,e,t,n){if(!dr(e,t,n))throw new Error(`expected valid ${r}: ${t} <= n < ${n}, got ${typeof e} ${e}`)}function zl(r){let e;for(e=0;r>As;r>>=jr,e+=1);return e}function Zl(r,e){return r>>BigInt(e)&jr}function Yl(r,e,t){return r|(t?jr:As)<<BigInt(e)}var pr=r=>(Fl<<BigInt(r-1))-jr,Es=r=>new Uint8Array(r),ri=r=>Uint8Array.from(r);function Ss(r,e,t){if(typeof r!="number"||r<2)throw new Error("hashLen must be a number");if(typeof e!="number"||e<2)throw new Error("qByteLen must be a number");if(typeof t!="function")throw new Error("hmacFn must be a function");let n=Es(r),s=Es(r),o=0,i=()=>{n.fill(1),s.fill(0),o=0},a=(...l)=>t(s,n,...l),c=(l=Es())=>{s=a(ri([0]),l),n=a(),l.length!==0&&(s=a(ri([1]),l),n=a())},f=()=>{if(o++>=1e3)throw new Error("drbg: tried 1000 values");let l=0,m=[];for(;l<e;){n=a();let v=n.slice();m.push(v),l+=n.length}return ze(...m)};return(l,m)=>{i(),c(l);let v;for(;!(v=m(f()));)c();return i(),v}}var Wl={bigint:r=>typeof r=="bigint",function:r=>typeof r=="function",boolean:r=>typeof r=="boolean",string:r=>typeof r=="string",stringOrUint8Array:r=>typeof r=="string"||it(r),isSafeInteger:r=>Number.isSafeInteger(r),array:r=>Array.isArray(r),field:(r,e)=>e.Fp.isValid(r),hash:r=>typeof r=="function"&&Number.isSafeInteger(r.outputLen)};function He(r,e,t={}){let n=(s,o,i)=>{let a=Wl[o];if(typeof a!="function")throw new Error(`Invalid validator "${o}", expected function`);let c=r[s];if(!(i&&c===void 0)&&!a(c,r))throw new Error(`Invalid param ${String(s)}=${c} (${typeof c}), expected ${o}`)};for(let[s,o]of Object.entries(e))n(s,o,!1);for(let[s,o]of Object.entries(t))n(s,o,!0);return r}var Jl=()=>{throw new Error("not implemented")};function Bt(r){let e=new WeakMap;return(t,...n)=>{let s=e.get(t);if(s!==void 0)return s;let o=r(t,...n);return e.set(t,o),o}}var re=BigInt(0),j=BigInt(1),Et=BigInt(2),Xl=BigInt(3),Is=BigInt(4),si=BigInt(5),oi=BigInt(8),Ql=BigInt(9),eu=BigInt(16);function $(r,e){let t=r%e;return t>=re?t:e+t}function tu(r,e,t){if(t<=re||e<re)throw new Error("Expected power/modulo > 0");if(t===j)return re;let n=j;for(;e>re;)e&j&&(n=n*r%t),r=r*r%t,e>>=j;return n}function G(r,e,t){let n=r;for(;e-- >re;)n*=n,n%=t;return n}function zr(r,e){if(r===re||e<=re)throw new Error(`invert: expected positive integers, got n=${r} mod=${e}`);let t=$(r,e),n=e,s=re,o=j,i=j,a=re;for(;t!==re;){let f=n/t,u=n%t,l=s-i*f,m=o-a*f;n=t,t=u,s=i,o=a,i=l,a=m}if(n!==j)throw new Error("invert: does not exist");return $(s,e)}function ru(r){let e=(r-j)/Et,t,n,s;for(t=r-j,n=0;t%Et===re;t/=Et,n++);for(s=Et;s<r&&tu(s,e,r)!==r-j;s++);if(n===1){let i=(r+j)/Is;return function(c,f){let u=c.pow(f,i);if(!c.eql(c.sqr(u),f))throw new Error("Cannot find square root");return u}}let o=(t+j)/Et;return function(a,c){if(a.pow(c,e)===a.neg(a.ONE))throw new Error("Cannot find square root");let f=n,u=a.pow(a.mul(a.ONE,s),t),l=a.pow(c,o),m=a.pow(c,t);for(;!a.eql(m,a.ONE);){if(a.eql(m,a.ZERO))return a.ZERO;let v=1;for(let h=a.sqr(m);v<f&&!a.eql(h,a.ONE);v++)h=a.sqr(h);let g=a.pow(u,j<<BigInt(f-v-1));u=a.sqr(g),l=a.mul(l,g),m=a.mul(m,u),f=v}return l}}function nu(r){if(r%Is===Xl){let e=(r+j)/Is;return function(n,s){let o=n.pow(s,e);if(!n.eql(n.sqr(o),s))throw new Error("Cannot find square root");return o}}if(r%oi===si){let e=(r-si)/oi;return function(n,s){let o=n.mul(s,Et),i=n.pow(o,e),a=n.mul(s,i),c=n.mul(n.mul(a,Et),i),f=n.mul(a,n.sub(c,n.ONE));if(!n.eql(n.sqr(f),s))throw new Error("Cannot find square root");return f}}return r%eu,ru(r)}var ii=(r,e)=>($(r,e)&j)===j,su=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function Ns(r){let e={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},t=su.reduce((n,s)=>(n[s]="function",n),e);return He(r,t)}function ou(r,e,t){if(t<re)throw new Error("Expected power > 0");if(t===re)return r.ONE;if(t===j)return e;let n=r.ONE,s=e;for(;t>re;)t&j&&(n=r.mul(n,s)),s=r.sqr(s),t>>=j;return n}function iu(r,e){let t=new Array(e.length),n=e.reduce((o,i,a)=>r.is0(i)?o:(t[a]=o,r.mul(o,i)),r.ONE),s=r.inv(n);return e.reduceRight((o,i,a)=>r.is0(i)?o:(t[a]=r.mul(o,t[a]),r.mul(o,i)),s),t}function Rs(r,e){let t=e!==void 0?e:r.toString(2).length,n=Math.ceil(t/8);return{nBitLength:t,nByteLength:n}}function Zr(r,e,t=!1,n={}){if(r<=re)throw new Error(`Expected Field ORDER > 0, got ${r}`);let{nBitLength:s,nByteLength:o}=Rs(r,e);if(o>2048)throw new Error("Field lengths over 2048 bytes are not supported");let i=nu(r),a=Object.freeze({ORDER:r,BITS:s,BYTES:o,MASK:pr(s),ZERO:re,ONE:j,create:c=>$(c,r),isValid:c=>{if(typeof c!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof c}`);return re<=c&&c<r},is0:c=>c===re,isOdd:c=>(c&j)===j,neg:c=>$(-c,r),eql:(c,f)=>c===f,sqr:c=>$(c*c,r),add:(c,f)=>$(c+f,r),sub:(c,f)=>$(c-f,r),mul:(c,f)=>$(c*f,r),pow:(c,f)=>ou(a,c,f),div:(c,f)=>$(c*zr(f,r),r),sqrN:c=>c*c,addN:(c,f)=>c+f,subN:(c,f)=>c-f,mulN:(c,f)=>c*f,inv:c=>zr(c,r),sqrt:n.sqrt||(c=>i(a,c)),invertBatch:c=>iu(a,c),cmov:(c,f,u)=>u?f:c,toBytes:c=>t?vt(c,o):ct(c,o),fromBytes:c=>{if(c.length!==o)throw new Error(`Fp.fromBytes: expected ${o}, got ${c.length}`);return t?at(c):Ge(c)}});return Object.freeze(a)}function ai(r){if(typeof r!="bigint")throw new Error("field order must be bigint");let e=r.toString(2).length;return Math.ceil(e/8)}function Ts(r){let e=ai(r);return e+Math.ceil(e/2)}function ci(r,e,t=!1){let n=r.length,s=ai(e),o=Ts(e);if(n<16||n<o||n>1024)throw new Error(`expected ${o}-1024 bytes of input, got ${n}`);let i=t?Ge(r):at(r),a=$(i,e-j)+j;return t?vt(a,s):ct(a,s)}var cu=BigInt(0),Cs=BigInt(1),_s=new WeakMap,li=new WeakMap;function Yr(r,e){let t=(o,i)=>{let a=i.negate();return o?a:i},n=o=>{if(!Number.isSafeInteger(o)||o<=0||o>e)throw new Error(`Wrong window size=${o}, should be [1..${e}]`)},s=o=>{n(o);let i=Math.ceil(e/o)+1,a=2**(o-1);return{windows:i,windowSize:a}};return{constTimeNegate:t,unsafeLadder(o,i){let a=r.ZERO,c=o;for(;i>cu;)i&Cs&&(a=a.add(c)),c=c.double(),i>>=Cs;return a},precomputeWindow(o,i){let{windows:a,windowSize:c}=s(i),f=[],u=o,l=u;for(let m=0;m<a;m++){l=u,f.push(l);for(let v=1;v<c;v++)l=l.add(u),f.push(l);u=l.double()}return f},wNAF(o,i,a){let{windows:c,windowSize:f}=s(o),u=r.ZERO,l=r.BASE,m=BigInt(2**o-1),v=2**o,g=BigInt(o);for(let h=0;h<c;h++){let y=h*f,x=Number(a&m);a>>=g,x>f&&(x-=v,a+=Cs);let b=y,w=y+Math.abs(x)-1,T=h%2!==0,S=x<0;x===0?l=l.add(t(T,i[b])):u=u.add(t(S,i[w]))}return{p:u,f:l}},wNAFCached(o,i,a){let c=li.get(o)||1,f=_s.get(o);return f||(f=this.precomputeWindow(o,c),c!==1&&_s.set(o,a(f))),this.wNAF(c,f,i)},setWindowSize(o,i){n(i),li.set(o,i),_s.delete(o)}}}function gr(r){return Ns(r.Fp),He(r,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...Rs(r.n,r.nBitLength),...r,p:r.Fp.ORDER})}var Re=BigInt(0),we=BigInt(1),Wr=BigInt(2),lu=BigInt(8),uu={zip215:!0};function fu(r){let e=gr(r);return He(r,{hash:"function",a:"bigint",d:"bigint",randomBytes:"function"},{adjustScalarBytes:"function",domain:"function",uvRatio:"function",mapToCurve:"function"}),Object.freeze({...e})}function ui(r){let e=fu(r),{Fp:t,n,prehash:s,hash:o,randomBytes:i,nByteLength:a,h:c}=e,f=Wr<<BigInt(a*8)-we,u=t.create,l=e.uvRatio||((p,d)=>{try{return{isValid:!0,value:t.sqrt(p*t.inv(d))}}catch{return{isValid:!1,value:Re}}}),m=e.adjustScalarBytes||(p=>p),v=e.domain||((p,d,B)=>{if(Ne("phflag",B),d.length||B)throw new Error("Contexts/pre-hash are not supported");return p});function g(p,d){be("coordinate "+p,d,Re,f)}function h(p){if(!(p instanceof b))throw new Error("ExtendedPoint expected")}let y=Bt((p,d)=>{let{ex:B,ey:E,ez:C}=p,_=p.is0();d==null&&(d=_?lu:t.inv(C));let U=u(B*d),K=u(E*d),V=u(C*d);if(_)return{x:Re,y:we};if(V!==we)throw new Error("invZ was invalid");return{x:U,y:K}}),x=Bt(p=>{let{a:d,d:B}=e;if(p.is0())throw new Error("bad point: ZERO");let{ex:E,ey:C,ez:_,et:U}=p,K=u(E*E),V=u(C*C),M=u(_*_),Z=u(M*M),Y=u(K*d),me=u(M*u(Y+V)),se=u(Z+u(B*u(K*V)));if(me!==se)throw new Error("bad point: equation left != right (1)");let te=u(E*C),ke=u(_*U);if(te!==ke)throw new Error("bad point: equation left != right (2)");return!0});class b{constructor(d,B,E,C){this.ex=d,this.ey=B,this.ez=E,this.et=C,g("x",d),g("y",B),g("z",E),g("t",C),Object.freeze(this)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(d){if(d instanceof b)throw new Error("extended point not allowed");let{x:B,y:E}=d||{};return g("x",B),g("y",E),new b(B,E,we,u(B*E))}static normalizeZ(d){let B=t.invertBatch(d.map(E=>E.ez));return d.map((E,C)=>E.toAffine(B[C])).map(b.fromAffine)}_setWindowSize(d){S.setWindowSize(this,d)}assertValidity(){x(this)}equals(d){h(d);let{ex:B,ey:E,ez:C}=this,{ex:_,ey:U,ez:K}=d,V=u(B*K),M=u(_*C),Z=u(E*K),Y=u(U*C);return V===M&&Z===Y}is0(){return this.equals(b.ZERO)}negate(){return new b(u(-this.ex),this.ey,this.ez,u(-this.et))}double(){let{a:d}=e,{ex:B,ey:E,ez:C}=this,_=u(B*B),U=u(E*E),K=u(Wr*u(C*C)),V=u(d*_),M=B+E,Z=u(u(M*M)-_-U),Y=V+U,me=Y-K,se=V-U,te=u(Z*me),ke=u(Y*se),oe=u(Z*se),Se=u(me*Y);return new b(te,ke,Se,oe)}add(d){h(d);let{a:B,d:E}=e,{ex:C,ey:_,ez:U,et:K}=this,{ex:V,ey:M,ez:Z,et:Y}=d;if(B===BigInt(-1)){let xo=u((_-C)*(M+V)),vo=u((_+C)*(M-V)),Zn=u(vo-xo);if(Zn===Re)return this.double();let Bo=u(U*Wr*Y),Eo=u(K*Wr*Z),Ao=Eo+Bo,ko=vo+xo,So=Eo-Bo,Ja=u(Ao*Zn),Xa=u(ko*So),Qa=u(Ao*So),ec=u(Zn*ko);return new b(Ja,Xa,ec,Qa)}let me=u(C*V),se=u(_*M),te=u(K*E*Y),ke=u(U*Z),oe=u((C+_)*(V+M)-me-se),Se=ke-te,wt=ke+te,ar=u(se-B*me),Dr=u(oe*Se),Za=u(wt*ar),Ya=u(oe*ar),Wa=u(Se*wt);return new b(Dr,Za,Wa,Ya)}subtract(d){return this.add(d.negate())}wNAF(d){return S.wNAFCached(this,d,b.normalizeZ)}multiply(d){let B=d;be("scalar",B,we,n);let{p:E,f:C}=this.wNAF(B);return b.normalizeZ([E,C])[0]}multiplyUnsafe(d){let B=d;return be("scalar",B,Re,n),B===Re?T:this.equals(T)||B===we?this:this.equals(w)?this.wNAF(B).p:S.unsafeLadder(this,B)}isSmallOrder(){return this.multiplyUnsafe(c).is0()}isTorsionFree(){return S.unsafeLadder(this,n).is0()}toAffine(d){return y(this,d)}clearCofactor(){let{h:d}=e;return d===we?this:this.multiplyUnsafe(d)}static fromHex(d,B=!1){let{d:E,a:C}=e,_=t.BYTES;d=J("pointHex",d,_),Ne("zip215",B);let U=d.slice(),K=d[_-1];U[_-1]=K&-129;let V=at(U),M=B?f:t.ORDER;be("pointHex.y",V,Re,M);let Z=u(V*V),Y=u(Z-we),me=u(E*Z-C),{isValid:se,value:te}=l(Y,me);if(!se)throw new Error("Point.fromHex: invalid y coordinate");let ke=(te&we)===we,oe=(K&128)!==0;if(!B&&te===Re&&oe)throw new Error("Point.fromHex: x=0 and x_0=1");return oe!==ke&&(te=u(-te)),b.fromAffine({x:te,y:V})}static fromPrivateKey(d){return I(d).point}toRawBytes(){let{x:d,y:B}=this.toAffine(),E=vt(B,t.BYTES);return E[E.length-1]|=d&we?128:0,E}toHex(){return je(this.toRawBytes())}}b.BASE=new b(e.Gx,e.Gy,we,u(e.Gx*e.Gy)),b.ZERO=new b(Re,we,we,Re);let{BASE:w,ZERO:T}=b,S=Yr(b,a*8);function k(p){return $(p,n)}function R(p){return k(at(p))}function I(p){let d=a;p=J("private key",p,d);let B=J("hashed private key",o(p),2*d),E=m(B.slice(0,d)),C=B.slice(d,2*d),_=R(E),U=w.multiply(_),K=U.toRawBytes();return{head:E,prefix:C,scalar:_,point:U,pointBytes:K}}function F(p){return I(p).pointBytes}function O(p=new Uint8Array,...d){let B=ze(...d);return R(o(v(B,J("context",p),!!s)))}function P(p,d,B={}){p=J("message",p),s&&(p=s(p));let{prefix:E,scalar:C,pointBytes:_}=I(d),U=O(B.context,E,p),K=w.multiply(U).toRawBytes(),V=O(B.context,K,_,p),M=k(U+V*C);be("signature.s",M,Re,n);let Z=ze(K,vt(M,t.BYTES));return J("result",Z,a*2)}let X=uu;function ee(p,d,B,E=X){let{context:C,zip215:_}=E,U=t.BYTES;p=J("signature",p,2*U),d=J("message",d),_!==void 0&&Ne("zip215",_),s&&(d=s(d));let K=at(p.slice(U,2*U)),V,M,Z;try{V=b.fromHex(B,_),M=b.fromHex(p.slice(0,U),_),Z=w.multiplyUnsafe(K)}catch{return!1}if(!_&&V.isSmallOrder())return!1;let Y=O(C,M.toRawBytes(),V.toRawBytes(),d);return M.add(V.multiplyUnsafe(Y)).subtract(Z).clearCofactor().equals(b.ZERO)}return w._setWindowSize(8),{CURVE:e,getPublicKey:F,sign:P,verify:ee,ExtendedPoint:b,utils:{getExtendedPublicKey:I,randomPrivateKey:()=>i(t.BYTES),precompute(p=8,d=b.BASE){return d._setWindowSize(p),d.multiply(BigInt(3)),d}}}}var Us=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),fi=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752"),ud=BigInt(0),hu=BigInt(1),hi=BigInt(2),fd=BigInt(3),du=BigInt(5),pu=BigInt(8);function gu(r){let e=BigInt(10),t=BigInt(20),n=BigInt(40),s=BigInt(80),o=Us,a=r*r%o*r%o,c=G(a,hi,o)*a%o,f=G(c,hu,o)*r%o,u=G(f,du,o)*f%o,l=G(u,e,o)*u%o,m=G(l,t,o)*l%o,v=G(m,n,o)*m%o,g=G(v,s,o)*v%o,h=G(g,s,o)*v%o,y=G(h,e,o)*u%o;return{pow_p_5_8:G(y,hi,o)*r%o,b2:a}}function yu(r){return r[0]&=248,r[31]&=127,r[31]|=64,r}function mu(r,e){let t=Us,n=$(e*e*e,t),s=$(n*n*e,t),o=gu(r*s).pow_p_5_8,i=$(r*n*o,t),a=$(e*i*i,t),c=i,f=$(i*fi,t),u=a===r,l=a===$(-r,t),m=a===$(-r*fi,t);return u&&(i=c),(l||m)&&(i=f),ii(i,t)&&(i=$(-i,t)),{isValid:u||l,value:i}}var bu=Zr(Us,void 0,!0),wu={a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp:bu,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:pu,Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),