-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2393.f9807e5428b09bfc17b9.js
1 lines (1 loc) · 20.1 KB
/
2393.f9807e5428b09bfc17b9.js
1
(self.webpackChunktimeless_frontend=self.webpackChunktimeless_frontend||[]).push([[2393],{99244:(x,d)=>{"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.createHashFunction=function(t){return function(y){var h=t();return h.update(y),Buffer.from(h.digest())}}},55075:(x,d,b)=>{"use strict";Object.defineProperty(d,"__esModule",{value:!0});var t=b(99244),y=b(58577);d.keccak224=t.createHashFunction(function(){return y("keccak224")}),d.keccak256=t.createHashFunction(function(){return y("keccak256")}),d.keccak384=t.createHashFunction(function(){return y("keccak384")}),d.keccak512=t.createHashFunction(function(){return y("keccak512")})},71669:(x,d,b)=>{x.exports=b(47410)(b(64259))},64259:(x,d,b)=>{const y=new(0,b(5247).ec)("secp256k1"),h=y.curve,n=h.n.constructor;function o(e){const a=e[0];switch(a){case 2:case 3:return 33!==e.length?null:function(e,a){let r=new n(a);if(r.cmp(h.p)>=0)return null;r=r.toRed(h.red);let f=r.redSqr().redIMul(r).redIAdd(h.b).redSqrt();return 3===e!==f.isOdd()&&(f=f.redNeg()),y.keyPair({pub:{x:r,y:f}})}(a,e.subarray(1,33));case 4:case 6:case 7:return 65!==e.length?null:function(e,a,r){let f=new n(a),s=new n(r);if(f.cmp(h.p)>=0||s.cmp(h.p)>=0||(f=f.toRed(h.red),s=s.toRed(h.red),(6===e||7===e)&&s.isOdd()!==(7===e)))return null;const c=f.redSqr().redIMul(f);return s.redSqr().redISub(c.redIAdd(h.b)).isZero()?y.keyPair({pub:{x:f,y:s}}):null}(a,e.subarray(1,33),e.subarray(33,65));default:return null}}function u(e,a){const r=a.encode(null,33===e.length);for(let f=0;f<e.length;++f)e[f]=r[f]}x.exports={contextRandomize:()=>0,privateKeyVerify(e){const a=new n(e);return a.cmp(h.n)<0&&!a.isZero()?0:1},privateKeyNegate(e){const a=new n(e),r=h.n.sub(a).umod(h.n).toArrayLike(Uint8Array,"be",32);return e.set(r),0},privateKeyTweakAdd(e,a){const r=new n(a);if(r.cmp(h.n)>=0||(r.iadd(new n(e)),r.cmp(h.n)>=0&&r.isub(h.n),r.isZero()))return 1;const f=r.toArrayLike(Uint8Array,"be",32);return e.set(f),0},privateKeyTweakMul(e,a){let r=new n(a);if(r.cmp(h.n)>=0||r.isZero())return 1;r.imul(new n(e)),r.cmp(h.n)>=0&&(r=r.umod(h.n));const f=r.toArrayLike(Uint8Array,"be",32);return e.set(f),0},publicKeyVerify:e=>null===o(e)?1:0,publicKeyCreate(e,a){const r=new n(a);return r.cmp(h.n)>=0||r.isZero()?1:(u(e,y.keyFromPrivate(a).getPublic()),0)},publicKeyConvert(e,a){const r=o(a);return null===r?1:(u(e,r.getPublic()),0)},publicKeyNegate(e,a){const r=o(a);if(null===r)return 1;const f=r.getPublic();return f.y=f.y.redNeg(),u(e,f),0},publicKeyCombine(e,a){const r=new Array(a.length);for(let s=0;s<a.length;++s)if(r[s]=o(a[s]),null===r[s])return 1;let f=r[0].getPublic();for(let s=1;s<r.length;++s)f=f.add(r[s].pub);return f.isInfinity()?2:(u(e,f),0)},publicKeyTweakAdd(e,a,r){const f=o(a);if(null===f)return 1;if((r=new n(r)).cmp(h.n)>=0)return 2;const s=f.getPublic().add(h.g.mul(r));return s.isInfinity()?2:(u(e,s),0)},publicKeyTweakMul(e,a,r){const f=o(a);return null===f?1:(r=new n(r)).cmp(h.n)>=0||r.isZero()?2:(u(e,f.getPublic().mul(r)),0)},signatureNormalize(e){const a=new n(e.subarray(0,32)),r=new n(e.subarray(32,64));return a.cmp(h.n)>=0||r.cmp(h.n)>=0?1:(1===r.cmp(y.nh)&&e.set(h.n.sub(r).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport(e,a){const r=a.subarray(0,32),f=a.subarray(32,64);if(new n(r).cmp(h.n)>=0||new n(f).cmp(h.n)>=0)return 1;const{output:s}=e;let c=s.subarray(4,37);c[0]=0,c.set(r,1);let _=33,E=0;for(;_>1&&0===c[E]&&!(128&c[E+1]);--_,++E);if(c=c.subarray(E),128&c[0]||_>1&&0===c[0]&&!(128&c[1]))return 1;let S=s.subarray(39,72);S[0]=0,S.set(f,1);let w=33,p=0;for(;w>1&&0===S[p]&&!(128&S[p+1]);--w,++p);return S=S.subarray(p),128&S[0]||w>1&&0===S[0]&&!(128&S[1])?1:(e.outputlen=6+_+w,s[0]=48,s[1]=e.outputlen-2,s[2]=2,s[3]=c.length,s.set(c,4),s[4+_]=2,s[5+_]=S.length,s.set(S,6+_),0)},signatureImport(e,a){if(a.length<8||a.length>72||48!==a[0]||a[1]!==a.length-2||2!==a[2])return 1;const r=a[3];if(0===r||5+r>=a.length||2!==a[4+r])return 1;const f=a[5+r];if(0===f||6+r+f!==a.length||128&a[4]||r>1&&0===a[4]&&!(128&a[5])||128&a[r+6]||f>1&&0===a[r+6]&&!(128&a[r+7]))return 1;let s=a.subarray(4,4+r);if(33===s.length&&0===s[0]&&(s=s.subarray(1)),s.length>32)return 1;let c=a.subarray(6+r);if(33===c.length&&0===c[0]&&(c=c.slice(1)),c.length>32)throw new Error("S length is too long");let _=new n(s);_.cmp(h.n)>=0&&(_=new n(0));let E=new n(a.subarray(6+r));return E.cmp(h.n)>=0&&(E=new n(0)),e.set(_.toArrayLike(Uint8Array,"be",32),0),e.set(E.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign(e,a,r,f,s){if(s){const E=s;s=S=>{const w=E(a,r,null,f,S);if(!(w instanceof Uint8Array&&32===w.length))throw new Error("This is the way");return new n(w)}}const c=new n(r);if(c.cmp(h.n)>=0||c.isZero())return 1;let _;try{_=y.sign(a,r,{canonical:!0,k:s,pers:f})}catch{return 1}return e.signature.set(_.r.toArrayLike(Uint8Array,"be",32),0),e.signature.set(_.s.toArrayLike(Uint8Array,"be",32),32),e.recid=_.recoveryParam,0},ecdsaVerify(e,a,r){const f={r:e.subarray(0,32),s:e.subarray(32,64)},s=new n(f.r),c=new n(f.s);if(s.cmp(h.n)>=0||c.cmp(h.n)>=0)return 1;if(1===c.cmp(y.nh)||s.isZero()||c.isZero())return 3;const _=o(r);if(null===_)return 2;const E=_.getPublic();return y.verify(a,f,E)?0:3},ecdsaRecover(e,a,r,f){const s={r:a.slice(0,32),s:a.slice(32,64)},c=new n(s.r),_=new n(s.s);if(c.cmp(h.n)>=0||_.cmp(h.n)>=0)return 1;if(c.isZero()||_.isZero())return 2;let E;try{E=y.recoverPubKey(f,s,r)}catch{return 2}return u(e,E),0},ecdh(e,a,r,f,s,c,_){const E=o(a);if(null===E)return 1;const S=new n(r);if(S.cmp(h.n)>=0||S.isZero())return 2;const w=E.getPublic().mul(S);if(void 0===s){const p=w.encode(null,!0),g=y.hash().update(p).digest();for(let m=0;m<32;++m)e[m]=g[m]}else{c||(c=new Uint8Array(32));const p=w.getX().toArray("be",32);for(let A=0;A<32;++A)c[A]=p[A];_||(_=new Uint8Array(32));const g=w.getY().toArray("be",32);for(let A=0;A<32;++A)_[A]=g[A];const m=s(c,_,f);if(!(m instanceof Uint8Array&&m.length===e.length))return 2;e.set(m)}return 0}}},47410:x=>{const d_IMPOSSIBLE_CASE="Impossible case. Please create issue.",d_TWEAK_ADD="The tweak was out of range or the resulted private key is invalid",d_TWEAK_MUL="The tweak was out of range or equal to zero",d_PUBKEY_PARSE="Public Key could not be parsed",d_PUBKEY_SERIALIZE="Public Key serialization error",d_SIG_PARSE="Signature could not be parsed";function b(l,i){if(!l)throw new Error(i)}function t(l,i,o){if(b(i instanceof Uint8Array,`Expected ${l} to be an Uint8Array`),void 0!==o)if(Array.isArray(o)){const e=`Expected ${l} to be an Uint8Array with length [${o.join(", ")}]`;b(o.includes(i.length),e)}else b(i.length===o,`Expected ${l} to be an Uint8Array with length ${o}`)}function y(l){b("Boolean"===n(l),"Expected compressed to be a Boolean")}function h(l=(o=>new Uint8Array(o)),i){return"function"==typeof l&&(l=l(i)),t("output",l,i),l}function n(l){return Object.prototype.toString.call(l).slice(8,-1)}x.exports=l=>({contextRandomize(i){if(1===(b(null===i||i instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),null!==i&&t("seed",i,32),l.contextRandomize(i)))throw new Error("Unknow error on context randomization")},privateKeyVerify:i=>(t("private key",i,32),0===l.privateKeyVerify(i)),privateKeyNegate(i){switch(t("private key",i,32),l.privateKeyNegate(i)){case 0:return i;case 1:throw new Error(d_IMPOSSIBLE_CASE)}},privateKeyTweakAdd(i,o){switch(t("private key",i,32),t("tweak",o,32),l.privateKeyTweakAdd(i,o)){case 0:return i;case 1:throw new Error(d_TWEAK_ADD)}},privateKeyTweakMul(i,o){switch(t("private key",i,32),t("tweak",o,32),l.privateKeyTweakMul(i,o)){case 0:return i;case 1:throw new Error(d_TWEAK_MUL)}},publicKeyVerify:i=>(t("public key",i,[33,65]),0===l.publicKeyVerify(i)),publicKeyCreate(i,o=!0,u){switch(t("private key",i,32),y(o),u=h(u,o?33:65),l.publicKeyCreate(u,i)){case 0:return u;case 1:throw new Error("Private Key is invalid");case 2:throw new Error(d_PUBKEY_SERIALIZE)}},publicKeyConvert(i,o=!0,u){switch(t("public key",i,[33,65]),y(o),u=h(u,o?33:65),l.publicKeyConvert(u,i)){case 0:return u;case 1:throw new Error(d_PUBKEY_PARSE);case 2:throw new Error(d_PUBKEY_SERIALIZE)}},publicKeyNegate(i,o=!0,u){switch(t("public key",i,[33,65]),y(o),u=h(u,o?33:65),l.publicKeyNegate(u,i)){case 0:return u;case 1:throw new Error(d_PUBKEY_PARSE);case 2:throw new Error(d_IMPOSSIBLE_CASE);case 3:throw new Error(d_PUBKEY_SERIALIZE)}},publicKeyCombine(i,o=!0,u){b(Array.isArray(i),"Expected public keys to be an Array"),b(i.length>0,"Expected public keys array will have more than zero items");for(const e of i)t("public key",e,[33,65]);switch(y(o),u=h(u,o?33:65),l.publicKeyCombine(u,i)){case 0:return u;case 1:throw new Error(d_PUBKEY_PARSE);case 2:throw new Error("The sum of the public keys is not valid");case 3:throw new Error(d_PUBKEY_SERIALIZE)}},publicKeyTweakAdd(i,o,u=!0,e){switch(t("public key",i,[33,65]),t("tweak",o,32),y(u),e=h(e,u?33:65),l.publicKeyTweakAdd(e,i,o)){case 0:return e;case 1:throw new Error(d_PUBKEY_PARSE);case 2:throw new Error(d_TWEAK_ADD)}},publicKeyTweakMul(i,o,u=!0,e){switch(t("public key",i,[33,65]),t("tweak",o,32),y(u),e=h(e,u?33:65),l.publicKeyTweakMul(e,i,o)){case 0:return e;case 1:throw new Error(d_PUBKEY_PARSE);case 2:throw new Error(d_TWEAK_MUL)}},signatureNormalize(i){switch(t("signature",i,64),l.signatureNormalize(i)){case 0:return i;case 1:throw new Error(d_SIG_PARSE)}},signatureExport(i,o){t("signature",i,64);const u={output:o=h(o,72),outputlen:72};switch(l.signatureExport(u,i)){case 0:return o.slice(0,u.outputlen);case 1:throw new Error(d_SIG_PARSE);case 2:throw new Error(d_IMPOSSIBLE_CASE)}},signatureImport(i,o){switch(t("signature",i),o=h(o,64),l.signatureImport(o,i)){case 0:return o;case 1:throw new Error(d_SIG_PARSE);case 2:throw new Error(d_IMPOSSIBLE_CASE)}},ecdsaSign(i,o,u={},e){t("message",i,32),t("private key",o,32),b("Object"===n(u),"Expected options to be an Object"),void 0!==u.data&&t("options.data",u.data),void 0!==u.noncefn&&b("Function"===n(u.noncefn),"Expected options.noncefn to be a Function");const a={signature:e=h(e,64),recid:null};switch(l.ecdsaSign(a,i,o,u.data,u.noncefn)){case 0:return a;case 1:throw new Error("The nonce generation function failed, or the private key was invalid");case 2:throw new Error(d_IMPOSSIBLE_CASE)}},ecdsaVerify(i,o,u){switch(t("signature",i,64),t("message",o,32),t("public key",u,[33,65]),l.ecdsaVerify(i,o,u)){case 0:return!0;case 3:return!1;case 1:throw new Error(d_SIG_PARSE);case 2:throw new Error(d_PUBKEY_PARSE)}},ecdsaRecover(i,o,u,e=!0,a){switch(t("signature",i,64),b("Number"===n(o)&&o>=0&&o<=3,"Expected recovery id to be a Number within interval [0, 3]"),t("message",u,32),y(e),a=h(a,e?33:65),l.ecdsaRecover(a,i,o,u)){case 0:return a;case 1:throw new Error(d_SIG_PARSE);case 2:throw new Error("Public key could not be recover");case 3:throw new Error(d_IMPOSSIBLE_CASE)}},ecdh(i,o,u={},e){switch(t("public key",i,[33,65]),t("private key",o,32),b("Object"===n(u),"Expected options to be an Object"),void 0!==u.data&&t("options.data",u.data),void 0!==u.hashfn?(b("Function"===n(u.hashfn),"Expected options.hashfn to be a Function"),void 0!==u.xbuf&&t("options.xbuf",u.xbuf,32),void 0!==u.ybuf&&t("options.ybuf",u.ybuf,32),t("output",e)):e=h(e,32),l.ecdh(e,i,o,u.data,u.hashfn,u.xbuf,u.ybuf)){case 0:return e;case 1:throw new Error(d_PUBKEY_PARSE);case 2:throw new Error("Scalar was invalid (zero or overflow)")}}})},18876:(x,d,b)=>{"use strict";Object.defineProperty(d,"__esModule",{value:!0});var t=b(16589);d.getRandomBytes=function(n){return new Promise(function(l,i){t(n,function(o,u){o?i(o):l(u)})})},d.getRandomBytesSync=function(n){return t(n)}},10019:function(x,d,b){"use strict";var t=this&&this.__awaiter||function(e,a,r,f){return new(r||(r=Promise))(function(c,_){function E(p){try{w(f.next(p))}catch(g){_(g)}}function S(p){try{w(f.throw(p))}catch(g){_(g)}}function w(p){p.done?c(p.value):function(c){return c instanceof r?c:new r(function(_){_(c)})}(p.value).then(E,S)}w((f=f.apply(e,a||[])).next())})},y=this&&this.__generator||function(e,a){var f,s,c,_,r={label:0,sent:function(){if(1&c[0])throw c[1];return c[1]},trys:[],ops:[]};return _={next:E(0),throw:E(1),return:E(2)},"function"==typeof Symbol&&(_[Symbol.iterator]=function(){return this}),_;function E(w){return function(p){return function(w){if(f)throw new TypeError("Generator is already executing.");for(;r;)try{if(f=1,s&&(c=2&w[0]?s.return:w[0]?s.throw||((c=s.return)&&c.call(s),0):s.next)&&!(c=c.call(s,w[1])).done)return c;switch(s=0,c&&(w=[2&w[0],c.value]),w[0]){case 0:case 1:c=w;break;case 4:return r.label++,{value:w[1],done:!1};case 5:r.label++,s=w[1],w=[0];continue;case 7:w=r.ops.pop(),r.trys.pop();continue;default:if(!(c=(c=r.trys).length>0&&c[c.length-1])&&(6===w[0]||2===w[0])){r=0;continue}if(3===w[0]&&(!c||w[1]>c[0]&&w[1]<c[3])){r.label=w[1];break}if(6===w[0]&&r.label<c[1]){r.label=c[1],c=w;break}if(c&&r.label<c[2]){r.label=c[2],r.ops.push(w);break}c[2]&&r.ops.pop(),r.trys.pop();continue}w=a.call(e,r)}catch(p){w=[6,p],s=0}finally{f=c=0}if(5&w[0])throw w[1];return{value:w[0]?w[1]:void 0,done:!0}}([w,p])}}};Object.defineProperty(d,"__esModule",{value:!0});var n=b(71669),l=b(18876);d.createPrivateKey=function(){return t(this,void 0,void 0,function(){var e;return y(this,function(a){switch(a.label){case 0:return[4,l.getRandomBytes(32)];case 1:return e=a.sent(),n.privateKeyVerify(e)?[2,e]:[3,0];case 2:return[2]}})})},d.createPrivateKeySync=function(){for(;;){var e=l.getRandomBytesSync(32);if(n.privateKeyVerify(e))return e}},function(e){for(var a in e)d.hasOwnProperty(a)||(d[a]=e[a])}(b(71669))},58577:(x,d,b)=>{x.exports=b(40378)(b(50349))},40378:(x,d,b)=>{const t=b(73396),y=b(24079);x.exports=function(h){const n=t(h),l=y(h);return function(i,o){switch("string"==typeof i?i.toLowerCase():i){case"keccak224":return new n(1152,448,null,224,o);case"keccak256":return new n(1088,512,null,256,o);case"keccak384":return new n(832,768,null,384,o);case"keccak512":return new n(576,1024,null,512,o);case"sha3-224":return new n(1152,448,6,224,o);case"sha3-256":return new n(1088,512,6,256,o);case"sha3-384":return new n(832,768,6,384,o);case"sha3-512":return new n(576,1024,6,512,o);case"shake128":return new l(1344,256,31,o);case"shake256":return new l(1088,512,31,o);default:throw new Error("Invald algorithm: "+i)}}}},73396:(x,d,b)=>{const{Transform:t}=b(18300);x.exports=y=>class ue extends t{constructor(n,l,i,o,u){super(u),this._rate=n,this._capacity=l,this._delimitedSuffix=i,this._hashBitLength=o,this._options=u,this._state=new y,this._state.initialize(n,l),this._finalized=!1}_transform(n,l,i){let o=null;try{this.update(n,l)}catch(u){o=u}i(o)}_flush(n){let l=null;try{this.push(this.digest())}catch(i){l=i}n(l)}update(n,l){if(!Buffer.isBuffer(n)&&"string"!=typeof n)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return Buffer.isBuffer(n)||(n=Buffer.from(n,l)),this._state.absorb(n),this}digest(n){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let l=this._state.squeeze(this._hashBitLength/8);return void 0!==n&&(l=l.toString(n)),this._resetState(),l}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const n=new ue(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(n._state),n._finalized=this._finalized,n}}},24079:(x,d,b)=>{const{Transform:t}=b(18300);x.exports=y=>class le extends t{constructor(n,l,i,o){super(o),this._rate=n,this._capacity=l,this._delimitedSuffix=i,this._options=o,this._state=new y,this._state.initialize(n,l),this._finalized=!1}_transform(n,l,i){let o=null;try{this.update(n,l)}catch(u){o=u}i(o)}_flush(){}_read(n){this.push(this.squeeze(n))}update(n,l){if(!Buffer.isBuffer(n)&&"string"!=typeof n)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return Buffer.isBuffer(n)||(n=Buffer.from(n,l)),this._state.absorb(n),this}squeeze(n,l){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let i=this._state.squeeze(n);return void 0!==l&&(i=i.toString(l)),i}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const n=new le(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(n._state),n._finalized=this._finalized,n}}},11126:(x,d)=>{const b=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];d.p1600=function(t){for(let y=0;y<24;++y){const h=t[0]^t[10]^t[20]^t[30]^t[40],n=t[1]^t[11]^t[21]^t[31]^t[41],l=t[2]^t[12]^t[22]^t[32]^t[42],i=t[3]^t[13]^t[23]^t[33]^t[43],o=t[4]^t[14]^t[24]^t[34]^t[44],u=t[5]^t[15]^t[25]^t[35]^t[45],e=t[6]^t[16]^t[26]^t[36]^t[46],a=t[7]^t[17]^t[27]^t[37]^t[47],r=t[8]^t[18]^t[28]^t[38]^t[48],f=t[9]^t[19]^t[29]^t[39]^t[49];let s=r^(l<<1|i>>>31),c=f^(i<<1|l>>>31);const _=t[0]^s,E=t[1]^c,S=t[10]^s,w=t[11]^c,p=t[20]^s,g=t[21]^c,m=t[30]^s,K=t[31]^c,A=t[40]^s,At=t[41]^c;s=h^(o<<1|u>>>31),c=n^(u<<1|o>>>31);const mt=t[2]^s,gt=t[3]^c,Kt=t[12]^s,vt=t[13]^c,Pt=t[22]^s,kt=t[23]^c,It=t[32]^s,Bt=t[33]^c,zt=t[42]^s,Rt=t[43]^c;s=l^(e<<1|a>>>31),c=i^(a<<1|e>>>31);const Ut=t[4]^s,Tt=t[5]^c,Ct=t[14]^s,Ot=t[15]^c,Lt=t[24]^s,Nt=t[25]^c,Mt=t[34]^s,Vt=t[35]^c,Zt=t[44]^s,Yt=t[45]^c;s=o^(r<<1|f>>>31),c=u^(f<<1|r>>>31);const Dt=t[6]^s,Ft=t[7]^c,qt=t[16]^s,jt=t[17]^c,Gt=t[26]^s,Ht=t[27]^c,Wt=t[36]^s,$t=t[37]^c,Xt=t[46]^s,Jt=t[47]^c;s=e^(h<<1|n>>>31),c=a^(n<<1|h>>>31);const Qt=t[8]^s,te=t[9]^c,ee=t[18]^s,re=t[19]^c,ne=t[28]^s,ie=t[29]^c,ce=t[38]^s,se=t[39]^c,oe=t[48]^s,ae=t[49]^c,v=_,P=E,k=w<<4|S>>>28,I=S<<4|w>>>28,B=p<<3|g>>>29,z=g<<3|p>>>29,R=K<<9|m>>>23,U=m<<9|K>>>23,T=A<<18|At>>>14,C=At<<18|A>>>14,O=mt<<1|gt>>>31,L=gt<<1|mt>>>31,N=vt<<12|Kt>>>20,M=Kt<<12|vt>>>20,V=Pt<<10|kt>>>22,Z=kt<<10|Pt>>>22,Y=Bt<<13|It>>>19,D=It<<13|Bt>>>19,F=zt<<2|Rt>>>30,q=Rt<<2|zt>>>30,j=Tt<<30|Ut>>>2,G=Ut<<30|Tt>>>2,H=Ct<<6|Ot>>>26,W=Ot<<6|Ct>>>26,$=Nt<<11|Lt>>>21,X=Lt<<11|Nt>>>21,J=Mt<<15|Vt>>>17,Q=Vt<<15|Mt>>>17,tt=Yt<<29|Zt>>>3,et=Zt<<29|Yt>>>3,rt=Dt<<28|Ft>>>4,nt=Ft<<28|Dt>>>4,it=jt<<23|qt>>>9,ct=qt<<23|jt>>>9,st=Gt<<25|Ht>>>7,ot=Ht<<25|Gt>>>7,at=Wt<<21|$t>>>11,ut=$t<<21|Wt>>>11,lt=Jt<<24|Xt>>>8,ht=Xt<<24|Jt>>>8,ft=Qt<<27|te>>>5,dt=te<<27|Qt>>>5,wt=ee<<20|re>>>12,yt=re<<20|ee>>>12,bt=ie<<7|ne>>>25,_t=ne<<7|ie>>>25,Et=ce<<8|se>>>24,St=se<<8|ce>>>24,pt=oe<<14|ae>>>18,xt=ae<<14|oe>>>18;t[0]=v^~N&$,t[1]=P^~M&X,t[10]=rt^~wt&B,t[11]=nt^~yt&z,t[20]=O^~H&st,t[21]=L^~W&ot,t[30]=ft^~k&V,t[31]=dt^~I&Z,t[40]=j^~it&bt,t[41]=G^~ct&_t,t[2]=N^~$&at,t[3]=M^~X&ut,t[12]=wt^~B&Y,t[13]=yt^~z&D,t[22]=H^~st&Et,t[23]=W^~ot&St,t[32]=k^~V&J,t[33]=I^~Z&Q,t[42]=it^~bt&R,t[43]=ct^~_t&U,t[4]=$^~at&pt,t[5]=X^~ut&xt,t[14]=B^~Y&tt,t[15]=z^~D&et,t[24]=st^~Et&T,t[25]=ot^~St&C,t[34]=V^~J<,t[35]=Z^~Q&ht,t[44]=bt^~R&F,t[45]=_t^~U&q,t[6]=at^~pt&v,t[7]=ut^~xt&P,t[16]=Y^~tt&rt,t[17]=D^~et&nt,t[26]=Et^~T&O,t[27]=St^~C&L,t[36]=J^~lt&ft,t[37]=Q^~ht&dt,t[46]=R^~F&j,t[47]=U^~q&G,t[8]=pt^~v&N,t[9]=xt^~P&M,t[18]=tt^~rt&wt,t[19]=et^~nt&yt,t[28]=T^~O&H,t[29]=C^~L&W,t[38]=lt^~ft&k,t[39]=ht^~dt&I,t[48]=F^~j&it,t[49]=q^~G&ct,t[0]^=b[2*y],t[1]^=b[2*y+1]}}},50349:(x,d,b)=>{const t=b(11126);function y(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}y.prototype.initialize=function(h,n){for(let l=0;l<50;++l)this.state[l]=0;this.blockSize=h/8,this.count=0,this.squeezing=!1},y.prototype.absorb=function(h){for(let n=0;n<h.length;++n)this.state[~~(this.count/4)]^=h[n]<<this.count%4*8,this.count+=1,this.count===this.blockSize&&(t.p1600(this.state),this.count=0)},y.prototype.absorbLastFewBits=function(h){this.state[~~(this.count/4)]^=h<<this.count%4*8,0!=(128&h)&&this.count===this.blockSize-1&&t.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<(this.blockSize-1)%4*8,t.p1600(this.state),this.count=0,this.squeezing=!0},y.prototype.squeeze=function(h){this.squeezing||this.absorbLastFewBits(1);const n=Buffer.alloc(h);for(let l=0;l<h;++l)n[l]=this.state[~~(this.count/4)]>>>this.count%4*8&255,this.count+=1,this.count===this.blockSize&&(t.p1600(this.state),this.count=0);return n},y.prototype.copy=function(h){for(let n=0;n<50;++n)h.state[n]=this.state[n];h.blockSize=this.blockSize,h.count=this.count,h.squeezing=this.squeezing},x.exports=y}}]);