/*! For license information please see bundle.388843d69386835458a5.js.LICENSE.txt */ "use strict";(self.webpackChunkfrog=self.webpackChunkfrog||[]).push([[1060],{3439:(t,e,r)=>{r.d(e,{s:()=>u});var n=r(37171),i=r(10750);const o=(t,e,r)=>t&e^t&r^e&r,s=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]),a=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),f=new Uint32Array(64);class h extends n.D{constructor(){super(64,32,8,!1),this.A=0|a[0],this.B=0|a[1],this.C=0|a[2],this.D=0|a[3],this.E=0|a[4],this.F=0|a[5],this.G=0|a[6],this.H=0|a[7]}get(){const{A:t,B:e,C:r,D:n,E:i,F:o,G:s,H:a}=this;return[t,e,r,n,i,o,s,a]}set(t,e,r,n,i,o,s,a){this.A=0|t,this.B=0|e,this.C=0|r,this.D=0|n,this.E=0|i,this.F=0|o,this.G=0|s,this.H=0|a}process(t,e){for(let r=0;r<16;r++,e+=4)f[r]=t.getUint32(e,!1);for(let t=16;t<64;t++){const e=f[t-15],r=f[t-2],n=(0,i.Ow)(e,7)^(0,i.Ow)(e,18)^e>>>3,o=(0,i.Ow)(r,17)^(0,i.Ow)(r,19)^r>>>10;f[t]=o+f[t-7]+n+f[t-16]|0}let{A:r,B:n,C:a,D:h,E:u,F:c,G:l,H:d}=this;for(let t=0;t<64;t++){const e=d+((0,i.Ow)(u,6)^(0,i.Ow)(u,11)^(0,i.Ow)(u,25))+((g=u)&c^~g&l)+s[t]+f[t]|0,y=((0,i.Ow)(r,2)^(0,i.Ow)(r,13)^(0,i.Ow)(r,22))+o(r,n,a)|0;d=l,l=c,c=u,u=h+e|0,h=a,a=n,n=r,r=e+y|0}var g;r=r+this.A|0,n=n+this.B|0,a=a+this.C|0,h=h+this.D|0,u=u+this.E|0,c=c+this.F|0,l=l+this.G|0,d=d+this.H|0,this.set(r,n,a,h,u,c,l,d)}roundClean(){f.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const u=(0,i.ld)((()=>new h))},10750:(t,e,r)=>{r.d(e,{Vw:()=>u,Id:()=>h,O8:()=>s,po:()=>l,Ow:()=>a,ZJ:()=>f,DH:()=>o,ld:()=>c});const n="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,i=t=>t instanceof Uint8Array,o=t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4)),s=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),a=(t,e)=>t<<32-e|t>>>e;if(!(68===new Uint8Array(new Uint32Array([287454020]).buffer)[0]))throw new Error("Non little-endian hardware is not supported");function f(t){if("string"==typeof t&&(t=function(t){if("string"!=typeof t)throw new Error("utf8ToBytes expected string, got "+typeof t);return new Uint8Array((new TextEncoder).encode(t))}(t)),!i(t))throw new Error("expected Uint8Array, got "+typeof t);return t}function h(...t){const e=new Uint8Array(t.reduce(((t,e)=>t+e.length),0));let r=0;return t.forEach((t=>{if(!i(t))throw new Error("Uint8Array expected");e.set(t,r),r+=t.length})),e}class u{clone(){return this._cloneInto()}}function c(t){const e=e=>t().update(f(e)).digest(),r=t();return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=()=>t(),e}function l(t=32){if(n&&"function"==typeof n.getRandomValues)return n.getRandomValues(new Uint8Array(t));throw new Error("crypto.getRandomValues must be defined")}},27125:(t,e,r)=>{function n(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Wrong positive integer: ${t}`)}function i(t,...e){if(!(t instanceof Uint8Array))throw new Error("Expected Uint8Array");if(e.length>0&&!e.includes(t.length))throw new Error(`Expected Uint8Array of length ${e}, not of length=${t.length}`)}function o(t){if("function"!=typeof t||"function"!=typeof t.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");n(t.outputLen),n(t.blockLen)}function s(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function a(t,e){i(t);const r=e.outputLen;if(t.lengtha,ai:()=>n,ee:()=>i,t2:()=>s,tW:()=>o})},37171:(t,e,r)=>{r.d(e,{D:()=>o});var n=r(27125),i=r(10750);class o extends i.Vw{constructor(t,e,r,n){super(),this.blockLen=t,this.outputLen=e,this.padOffset=r,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=(0,i.O8)(this.buffer)}update(t){(0,n.t2)(this);const{view:e,buffer:r,blockLen:o}=this,s=(t=(0,i.ZJ)(t)).length;for(let n=0;no-a&&(this.process(r,0),a=0);for(let t=a;t>i&o),a=Number(r&o),f=n?4:0,h=n?0:4;t.setUint32(e+f,s,n),t.setUint32(e+h,a,n)}(r,o-8,BigInt(8*this.length),s),this.process(r,0);const f=(0,i.O8)(t),h=this.outputLen;if(h%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=h/4,c=this.get();if(u>c.length)throw new Error("_sha2: outputLen bigger than state");for(let t=0;t{r.d(e,{k9:()=>f,cm:()=>l,Ab:()=>d,bj:()=>g,c$:()=>c,Lo:()=>h,Pc:()=>y});const n=new(r(7720).Vy)("bytes/5.7.0");function i(t){return!!t.toHexString}function o(t){return t.slice||(t.slice=function(){const e=Array.prototype.slice.call(arguments);return o(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function s(t){return"number"==typeof t&&t==t&&t%1==0}function a(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t)return!1;if(!s(t.length)||t.length<0)return!1;for(let e=0;e=256)return!1}return!0}function f(t,e){if(e||(e={}),"number"==typeof t){n.checkSafeUint53(t,"invalid arrayify value");const e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),o(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),i(t)&&(t=t.toHexString()),h(t)){let r=t.substring(2);r.length%2&&("left"===e.hexPad?r="0"+r:"right"===e.hexPad?r+="0":n.throwArgumentError("hex data is odd-length","value",t));const i=[];for(let t=0;t>4]+u[15&n]}return e}return n.throwArgumentError("invalid hexlify value","value",t)}function l(t){if("string"!=typeof t)t=c(t);else if(!h(t)||t.length%2)return null;return(t.length-2)/2}function d(t,e,r){return"string"!=typeof t?t=c(t):(!h(t)||t.length%2)&&n.throwArgumentError("invalid hexData","value",t),e=2+2*e,null!=r?"0x"+t.substring(e,2+2*r):"0x"+t.substring(e)}function g(t,e){for("string"!=typeof t?t=c(t):h(t)||n.throwArgumentError("invalid hex string","value",t),t.length>2*e+2&&n.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}function y(t){const e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(h(r=t)&&!(r.length%2)||a(r)){let r=f(t);64===r.length?(e.v=27+(r[32]>>7),r[32]&=127,e.r=c(r.slice(0,32)),e.s=c(r.slice(32,64))):65===r.length?(e.r=c(r.slice(0,32)),e.s=c(r.slice(32,64)),e.v=r[64]):n.throwArgumentError("invalid signature string","signature",t),e.v<27&&(0===e.v||1===e.v?e.v+=27:n.throwArgumentError("signature invalid v byte","signature",t)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(r[32]|=128),e._vs=c(r.slice(32,64))}else{if(e.r=t.r,e.s=t.s,e.v=t.v,e.recoveryParam=t.recoveryParam,e._vs=t._vs,null!=e._vs){const r=function(t,e){(t=f(t)).length>e&&n.throwArgumentError("value out of range","value",arguments[0]);const r=new Uint8Array(e);return r.set(t,e-t.length),o(r)}(f(e._vs),32);e._vs=c(r);const i=r[0]>=128?1:0;null==e.recoveryParam?e.recoveryParam=i:e.recoveryParam!==i&&n.throwArgumentError("signature recoveryParam mismatch _vs","signature",t),r[0]&=127;const s=c(r);null==e.s?e.s=s:e.s!==s&&n.throwArgumentError("signature v mismatch _vs","signature",t)}if(null==e.recoveryParam)null==e.v?n.throwArgumentError("signature missing v and recoveryParam","signature",t):0===e.v||1===e.v?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(null==e.v)e.v=27+e.recoveryParam;else{const r=0===e.v||1===e.v?e.v:1-e.v%2;e.recoveryParam!==r&&n.throwArgumentError("signature recoveryParam mismatch v","signature",t)}null!=e.r&&h(e.r)?e.r=g(e.r,32):n.throwArgumentError("signature missing or invalid r","signature",t),null!=e.s&&h(e.s)?e.s=g(e.s,32):n.throwArgumentError("signature missing or invalid s","signature",t);const r=f(e.s);r[0]>=128&&n.throwArgumentError("signature s out of range","signature",t),e.recoveryParam&&(r[0]|=128);const i=c(r);e._vs&&(h(e._vs)||n.throwArgumentError("signature invalid _vs","signature",t),e._vs=g(e._vs,32)),null==e._vs?e._vs=i:e._vs!==i&&n.throwArgumentError("signature _vs mismatch v and s","signature",t)}var r;return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}},43403:(t,e,r)=>{r.d(e,{lY:()=>x});var n=r(27125),i=r(86558),o=r(10750);const[s,a,f]=[[],[],[]],h=BigInt(0),u=BigInt(1),c=BigInt(2),l=BigInt(7),d=BigInt(256),g=BigInt(113);for(let t=0,e=u,r=1,n=0;t<24;t++){[r,n]=[n,(2*r+3*n)%5],s.push(2*(5*n+r)),a.push((t+1)*(t+2)/2%64);let i=h;for(let t=0;t<7;t++)e=(e<>l)*g)%d,e&c&&(i^=u<<(u<r>32?(0,i.WM)(t,e,r):(0,i.P5)(t,e,r),b=(t,e,r)=>r>32?(0,i.im)(t,e,r):(0,i.B4)(t,e,r);class m extends o.Vw{constructor(t,e,r,i=!1,s=24){if(super(),this.blockLen=t,this.suffix=e,this.outputLen=r,this.enableXOF=i,this.rounds=s,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,n.ai)(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,o.DH)(this.state)}keccak(){!function(t,e=24){const r=new Uint32Array(10);for(let n=24-e;n<24;n++){for(let e=0;e<10;e++)r[e]=t[e]^t[e+10]^t[e+20]^t[e+30]^t[e+40];for(let e=0;e<10;e+=2){const n=(e+8)%10,i=(e+2)%10,o=r[i],s=r[i+1],a=p(o,s,1)^r[n],f=b(o,s,1)^r[n+1];for(let r=0;r<50;r+=10)t[e+r]^=a,t[e+r+1]^=f}let e=t[2],i=t[3];for(let r=0;r<24;r++){const n=a[r],o=p(e,i,n),f=b(e,i,n),h=s[r];e=t[h],i=t[h+1],t[h]=o,t[h+1]=f}for(let e=0;e<50;e+=10){for(let n=0;n<10;n++)r[n]=t[e+n];for(let n=0;n<10;n++)t[e+n]^=~r[(n+2)%10]&r[(n+4)%10]}t[0]^=y[n],t[1]^=w[n]}r.fill(0)}(this.state32,this.rounds),this.posOut=0,this.pos=0}update(t){(0,n.t2)(this);const{blockLen:e,state:r}=this,i=(t=(0,o.ZJ)(t)).length;for(let n=0;n=r&&this.keccak();const o=Math.min(r-this.posOut,i-n);t.set(e.subarray(this.posOut,this.posOut+o),n),this.posOut+=o,n+=o}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return(0,n.ai)(t),this.xofInto(new Uint8Array(t))}digestInto(t){if((0,n.CG)(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){const{blockLen:e,suffix:r,outputLen:n,rounds:i,enableXOF:o}=this;return t||(t=new m(e,r,n,o,i)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=i,t.suffix=r,t.outputLen=n,t.enableXOF=o,t.destroyed=this.destroyed,t}}const E=(t,e,r)=>(0,o.ld)((()=>new m(e,t,r))),x=E(1,136,32)},71684:(t,e,r)=>{r.d(e,{bv:()=>y});var n=r(38905),i=r(39404),o=r.n(i),s=r(7720);var a=o().BN;new s.Vy("bignumber/5.7.0");var f=r(50234);const h=new s.Vy("address/5.7.0");function u(t){(0,n.Lo)(t,20)||h.throwArgumentError("invalid address","address",t);const e=(t=t.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let t=0;t<40;t++)r[t]=e[t].charCodeAt(0);const i=(0,n.k9)((0,f.S)(r));for(let t=0;t<40;t+=2)i[t>>1]>>4>=8&&(e[t]=e[t].toUpperCase()),(15&i[t>>1])>=8&&(e[t+1]=e[t+1].toUpperCase());return"0x"+e.join("")}const c={};for(let t=0;t<10;t++)c[String(t)]=String(t);for(let t=0;t<26;t++)c[String.fromCharCode(65+t)]=String(10+t);const l=Math.floor((d=9007199254740991,Math.log10?Math.log10(d):Math.log(d)/Math.LN10));var d;function g(t){let e=(t=(t=t.toUpperCase()).substring(4)+t.substring(0,2)+"00").split("").map((t=>c[t])).join("");for(;e.length>=l;){let t=e.substring(0,l);e=parseInt(t,10)%97+e.substring(t.length)}let r=String(98-parseInt(e,10)%97);for(;r.length<2;)r="0"+r;return r}function y(t){let e=null;if("string"!=typeof t&&h.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==t.substring(0,2)&&(t="0x"+t),e=u(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&h.throwArgumentError("bad address checksum","address",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(t.substring(2,4)!==g(t)&&h.throwArgumentError("bad icap checksum","address",t),r=t.substring(4),e=new a(r,36).toString(16);e.length<40;)e="0"+e;e=u("0x"+e)}else h.throwArgumentError("invalid address","address",t);var r;return e}},81836:(t,e,r)=>{r.d(e,{bI:()=>ht});var n={};r.r(n),r.d(n,{OG:()=>b,My:()=>h,Ph:()=>l,lX:()=>d,Id:()=>p,fg:()=>x,qj:()=>w,aT:()=>c,lq:()=>g,z:()=>y,Q5:()=>A});var i=r(3439);BigInt(0);const o=BigInt(1),s=BigInt(2),a=t=>t instanceof Uint8Array,f=Array.from({length:256},((t,e)=>e.toString(16).padStart(2,"0")));function h(t){if(!a(t))throw new Error("Uint8Array expected");let e="";for(let r=0;rt+e.length),0));let r=0;return t.forEach((t=>{if(!a(t))throw new Error("Uint8Array expected");e.set(t,r),r+=t.length})),e}const b=t=>(s<new Uint8Array(t),E=t=>Uint8Array.from(t);function x(t,e,r){if("number"!=typeof t||t<2)throw new Error("hashLen must be a number");if("number"!=typeof e||e<2)throw new Error("qByteLen must be a number");if("function"!=typeof r)throw new Error("hmacFn must be a function");let n=m(t),i=m(t),o=0;const s=()=>{n.fill(1),i.fill(0),o=0},a=(...t)=>r(i,n,...t),f=(t=m())=>{i=a(E([0]),t),n=a(),0!==t.length&&(i=a(E([1]),t),n=a())},h=()=>{if(o++>=1e3)throw new Error("drbg: tried 1000 values");let t=0;const r=[];for(;t{let r;for(s(),f(t);!(r=e(h()));)f();return s(),r}}const v={bigint:t=>"bigint"==typeof t,function:t=>"function"==typeof t,boolean:t=>"boolean"==typeof t,string:t=>"string"==typeof t,stringOrUint8Array:t=>"string"==typeof t||t instanceof Uint8Array,isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,e)=>e.Fp.isValid(t),hash:t=>"function"==typeof t&&Number.isSafeInteger(t.outputLen)};function A(t,e,r={}){const n=(e,r,n)=>{const i=v[r];if("function"!=typeof i)throw new Error(`Invalid validator "${r}", expected function`);const o=t[e];if(!(n&&void 0===o||i(o,t)))throw new Error(`Invalid param ${String(e)}=${o} (${typeof o}), expected ${r}`)};for(const[t,r]of Object.entries(e))n(t,r,!1);for(const[t,e]of Object.entries(r))n(t,e,!0);return t}const B=BigInt(0),I=BigInt(1),S=BigInt(2),O=BigInt(3),L=BigInt(4),H=BigInt(5),U=BigInt(8);BigInt(9),BigInt(16);function k(t,e){const r=t%e;return r>=B?r:e+r}function P(t,e,r){if(r<=B||e 0");if(r===I)return B;let n=I;for(;e>B;)e&I&&(n=n*t%r),t=t*t%r,e>>=I;return n}function R(t,e,r){let n=t;for(;e-- >B;)n*=n,n%=r;return n}function N(t,e){if(t===B||e<=B)throw new Error(`invert: expected positive integers, got n=${t} mod=${e}`);let r=k(t,e),n=e,i=B,o=I,s=I,a=B;for(;r!==B;){const t=n/r,e=n%r,f=i-s*t,h=o-a*t;n=r,r=e,i=s,o=a,s=f,a=h}if(n!==I)throw new Error("invert: does not exist");return k(i,e)}function q(t){if(t%L===O){const e=(t+I)/L;return function(t,r){const n=t.pow(r,e);if(!t.eql(t.sqr(n),r))throw new Error("Cannot find square root");return n}}if(t%U===H){const e=(t-H)/U;return function(t,r){const n=t.mul(r,S),i=t.pow(n,e),o=t.mul(r,i),s=t.mul(t.mul(o,S),i),a=t.mul(o,t.sub(s,t.ONE));if(!t.eql(t.sqr(a),r))throw new Error("Cannot find square root");return a}}return function(t){const e=(t-I)/S;let r,n,i;for(r=t-I,n=0;r%S===B;r/=S,n++);for(i=S;in?t.create().update(r).digest():r);for(let t=0;tnew z(t,e).update(r).digest();V.create=(t,e)=>new z(t,e);const T=BigInt(0),G=BigInt(1);function M(t){return A(t.Fp,C.reduce(((t,e)=>(t[e]="function",t)),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"})),A(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...F(t.n,t.nBitLength),...t,p:t.Fp.ORDER})}const{Ph:j,aT:K}=n,W={Err:class extends Error{constructor(t=""){super(t)}},_parseInt(t){const{Err:e}=W;if(t.length<2||2!==t[0])throw new e("Invalid signature integer tag");const r=t[1],n=t.subarray(2,r+2);if(!r||n.length!==r)throw new e("Invalid signature integer: wrong length");if(128&n[0])throw new e("Invalid signature integer: negative");if(0===n[0]&&!(128&n[1]))throw new e("Invalid signature integer: unnecessary leading zero");return{d:j(n),l:t.subarray(r+2)}},toSig(t){const{Err:e}=W,r="string"==typeof t?K(t):t;if(!(r instanceof Uint8Array))throw new Error("ui8a expected");let n=r.length;if(n<2||48!=r[0])throw new e("Invalid signature tag");if(r[1]!==n-2)throw new e("Invalid signature: incorrect length");const{d:i,l:o}=W._parseInt(r.subarray(2)),{d:s,l:a}=W._parseInt(o);if(a.length)throw new e("Invalid signature: left bytes after parsing");return{r:i,s}},hexFromSig(t){const e=t=>8&Number.parseInt(t[0],16)?"00"+t:t,r=t=>{const e=t.toString(16);return 1&e.length?`0${e}`:e},n=e(r(t.s)),i=e(r(t.r)),o=n.length/2,s=i.length/2,a=r(o),f=r(s);return`30${r(s+o+4)}02${f}${i}02${a}${n}`}},Y=BigInt(0),X=BigInt(1),J=(BigInt(2),BigInt(3));BigInt(4);function Q(t){const e=function(t){const e=M(t);A(e,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:r,Fp:n,a:i}=e;if(r){if(!n.eql(i,n.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof r||"bigint"!=typeof r.beta||"function"!=typeof r.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...e})}(t),{Fp:r}=e,n=e.toBytes||((t,e,n)=>{const i=e.toAffine();return p(Uint8Array.from([4]),r.toBytes(i.x),r.toBytes(i.y))}),i=e.fromBytes||(t=>{const e=t.subarray(1);return{x:r.fromBytes(e.subarray(0,r.BYTES)),y:r.fromBytes(e.subarray(r.BYTES,2*r.BYTES))}});function o(t){const{a:n,b:i}=e,o=r.sqr(t),s=r.mul(o,t);return r.add(r.add(s,r.mul(t,n)),i)}if(!r.eql(r.sqr(e.Gy),o(e.Gx)))throw new Error("bad generator point: equation left != right");function s(t){return"bigint"==typeof t&&Yr.eql(t,r.ZERO);return i(e)&&i(n)?d.ZERO:new d(e,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(t){const e=r.invertBatch(t.map((t=>t.pz)));return t.map(((t,r)=>t.toAffine(e[r]))).map(d.fromAffine)}static fromHex(t){const e=d.fromAffine(i(w("pointHex",t)));return e.assertValidity(),e}static fromPrivateKey(t){return d.BASE.multiply(f(t))}_setWindowSize(t){this._WINDOW_SIZE=t,u.delete(this)}assertValidity(){if(this.is0()){if(e.allowInfinityPoint&&!r.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:t,y:n}=this.toAffine();if(!r.isValid(t)||!r.isValid(n))throw new Error("bad point: x or y not FE");const i=r.sqr(n),s=o(t);if(!r.eql(i,s))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:t}=this.toAffine();if(r.isOdd)return!r.isOdd(t);throw new Error("Field doesn't support isOdd")}equals(t){c(t);const{px:e,py:n,pz:i}=this,{px:o,py:s,pz:a}=t,f=r.eql(r.mul(e,a),r.mul(o,i)),h=r.eql(r.mul(n,a),r.mul(s,i));return f&&h}negate(){return new d(this.px,r.neg(this.py),this.pz)}double(){const{a:t,b:n}=e,i=r.mul(n,J),{px:o,py:s,pz:a}=this;let f=r.ZERO,h=r.ZERO,u=r.ZERO,c=r.mul(o,o),l=r.mul(s,s),g=r.mul(a,a),y=r.mul(o,s);return y=r.add(y,y),u=r.mul(o,a),u=r.add(u,u),f=r.mul(t,u),h=r.mul(i,g),h=r.add(f,h),f=r.sub(l,h),h=r.add(l,h),h=r.mul(f,h),f=r.mul(y,f),u=r.mul(i,u),g=r.mul(t,g),y=r.sub(c,g),y=r.mul(t,y),y=r.add(y,u),u=r.add(c,c),c=r.add(u,c),c=r.add(c,g),c=r.mul(c,y),h=r.add(h,c),g=r.mul(s,a),g=r.add(g,g),c=r.mul(g,y),f=r.sub(f,c),u=r.mul(g,l),u=r.add(u,u),u=r.add(u,u),new d(f,h,u)}add(t){c(t);const{px:n,py:i,pz:o}=this,{px:s,py:a,pz:f}=t;let h=r.ZERO,u=r.ZERO,l=r.ZERO;const g=e.a,y=r.mul(e.b,J);let w=r.mul(n,s),p=r.mul(i,a),b=r.mul(o,f),m=r.add(n,i),E=r.add(s,a);m=r.mul(m,E),E=r.add(w,p),m=r.sub(m,E),E=r.add(n,o);let x=r.add(s,f);return E=r.mul(E,x),x=r.add(w,b),E=r.sub(E,x),x=r.add(i,o),h=r.add(a,f),x=r.mul(x,h),h=r.add(p,b),x=r.sub(x,h),l=r.mul(g,E),h=r.mul(y,b),l=r.add(h,l),h=r.sub(p,l),l=r.add(p,l),u=r.mul(h,l),p=r.add(w,w),p=r.add(p,w),b=r.mul(g,b),E=r.mul(y,E),p=r.add(p,b),b=r.sub(w,b),b=r.mul(g,b),E=r.add(E,b),w=r.mul(p,E),u=r.add(u,w),w=r.mul(x,E),h=r.mul(m,h),h=r.sub(h,w),w=r.mul(m,p),l=r.mul(x,l),l=r.add(l,w),new d(h,u,l)}subtract(t){return this.add(t.negate())}is0(){return this.equals(d.ZERO)}wNAF(t){return y.wNAFCached(this,u,t,(t=>{const e=r.invertBatch(t.map((t=>t.pz)));return t.map(((t,r)=>t.toAffine(e[r]))).map(d.fromAffine)}))}multiplyUnsafe(t){const n=d.ZERO;if(t===Y)return n;if(a(t),t===X)return this;const{endo:i}=e;if(!i)return y.unsafeLadder(this,t);let{k1neg:o,k1:s,k2neg:f,k2:h}=i.splitScalar(t),u=n,c=n,l=this;for(;s>Y||h>Y;)s&X&&(u=u.add(l)),h&X&&(c=c.add(l)),l=l.double(),s>>=X,h>>=X;return o&&(u=u.negate()),f&&(c=c.negate()),c=new d(r.mul(c.px,i.beta),c.py,c.pz),u.add(c)}multiply(t){a(t);let n,i,o=t;const{endo:s}=e;if(s){const{k1neg:t,k1:e,k2neg:a,k2:f}=s.splitScalar(o);let{p:h,f:u}=this.wNAF(e),{p:c,f:l}=this.wNAF(f);h=y.constTimeNegate(t,h),c=y.constTimeNegate(a,c),c=new d(r.mul(c.px,s.beta),c.py,c.pz),n=h.add(c),i=u.add(l)}else{const{p:t,f:e}=this.wNAF(o);n=t,i=e}return d.normalizeZ([n,i])[0]}multiplyAndAddUnsafe(t,e,r){const n=d.BASE,i=(t,e)=>e!==Y&&e!==X&&t.equals(n)?t.multiply(e):t.multiplyUnsafe(e),o=i(this,e).add(i(t,r));return o.is0()?void 0:o}toAffine(t){const{px:e,py:n,pz:i}=this,o=this.is0();null==t&&(t=o?r.ONE:r.inv(i));const s=r.mul(e,t),a=r.mul(n,t),f=r.mul(i,t);if(o)return{x:r.ZERO,y:r.ZERO};if(!r.eql(f,r.ONE))throw new Error("invZ was invalid");return{x:s,y:a}}isTorsionFree(){const{h:t,isTorsionFree:r}=e;if(t===X)return!0;if(r)return r(d,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:t,clearCofactor:r}=e;return t===X?this:r?r(d,this):this.multiplyUnsafe(e.h)}toRawBytes(t=!0){return this.assertValidity(),n(d,this,t)}toHex(t=!0){return h(this.toRawBytes(t))}}d.BASE=new d(e.Gx,e.Gy,r.ONE),d.ZERO=new d(r.ZERO,r.ONE,r.ZERO);const g=e.nBitLength,y=function(t,e){const r=(t,e)=>{const r=e.negate();return t?r:e},n=t=>({windows:Math.ceil(e/t)+1,windowSize:2**(t-1)});return{constTimeNegate:r,unsafeLadder(e,r){let n=t.ZERO,i=e;for(;r>T;)r&G&&(n=n.add(i)),i=i.double(),r>>=G;return n},precomputeWindow(t,e){const{windows:r,windowSize:i}=n(e),o=[];let s=t,a=s;for(let t=0;t>=l,n>a&&(n-=c,o+=G);const s=e,d=e+Math.abs(n)-1,g=t%2!=0,y=n<0;0===n?h=h.add(r(g,i[s])):f=f.add(r(y,i[d]))}return{p:f,f:h}},wNAFCached(t,e,r,n){const i=t._WINDOW_SIZE||1;let o=e.get(t);return o||(o=this.precomputeWindow(t,i),1!==i&&e.set(t,n(o))),this.wNAF(i,o,r)}}}(d,e.endo?Math.ceil(g/2):g);return{CURVE:e,ProjectivePoint:d,normPrivateKeyToScalar:f,weierstrassEquation:o,isWithinCurveOrder:s}}function tt(t){const e=function(t){const e=M(t);return A(e,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...e})}(t),{Fp:r,n}=e,i=r.BYTES+1,o=2*r.BYTES+1;function s(t){return k(t,n)}function a(t){return N(t,n)}const{ProjectivePoint:f,normPrivateKeyToScalar:u,weierstrassEquation:m,isWithinCurveOrder:E}=Q({...e,toBytes(t,e,n){const i=e.toAffine(),o=r.toBytes(i.x),s=p;return n?s(Uint8Array.from([e.hasEvenY()?2:3]),o):s(Uint8Array.from([4]),o,r.toBytes(i.y))},fromBytes(t){const e=t.length,n=t[0],s=t.subarray(1);if(e!==i||2!==n&&3!==n){if(e===o&&4===n){return{x:r.fromBytes(s.subarray(0,r.BYTES)),y:r.fromBytes(s.subarray(r.BYTES,2*r.BYTES))}}throw new Error(`Point of length ${e} was invalid. Expected ${i} compressed bytes or ${o} uncompressed bytes`)}{const t=l(s);if(!(Y<(a=t)&&ah(g(t,e.nByteLength));function B(t){return t>n>>X}const S=(t,e,r)=>l(t.slice(e,r));class O{constructor(t,e,r){this.r=t,this.s=e,this.recovery=r,this.assertValidity()}static fromCompact(t){const r=e.nByteLength;return t=w("compactSignature",t,2*r),new O(S(t,0,r),S(t,r,2*r))}static fromDER(t){const{r:e,s:r}=W.toSig(w("DER",t));return new O(e,r)}assertValidity(){if(!E(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!E(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(t){return new O(this.r,this.s,t)}recoverPublicKey(t){const{r:n,s:i,recovery:o}=this,h=P(w("msgHash",t));if(null==o||![0,1,2,3].includes(o))throw new Error("recovery id invalid");const u=2===o||3===o?n+e.n:n;if(u>=r.ORDER)throw new Error("recovery id 2 or 3 invalid");const c=1&o?"03":"02",l=f.fromHex(c+v(u)),d=a(u),g=s(-h*d),y=s(i*d),p=f.BASE.multiplyAndAddUnsafe(l,g,y);if(!p)throw new Error("point at infinify");return p.assertValidity(),p}hasHighS(){return B(this.s)}normalizeS(){return this.hasHighS()?new O(this.r,s(-this.s),this.recovery):this}toDERRawBytes(){return c(this.toDERHex())}toDERHex(){return W.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return c(this.toCompactHex())}toCompactHex(){return v(this.r)+v(this.s)}}const L={isValidPrivateKey(t){try{return u(t),!0}catch(t){return!1}},normPrivateKeyToScalar:u,randomPrivateKey:()=>{const t=_(e.n);return function(t,e,r=!1){const n=t.length,i=$(e),o=_(e);if(n<16||n1024)throw new Error(`expected ${o}-1024 bytes of input, got ${n}`);const s=k(r?l(t):d(t),e-I)+I;return r?y(s,i):g(s,i)}(e.randomBytes(t),e.n)},precompute:(t=8,e=f.BASE)=>(e._setWindowSize(t),e.multiply(BigInt(3)),e)};function H(t){const e=t instanceof Uint8Array,r="string"==typeof t,n=(e||r)&&t.length;return e?n===i||n===o:r?n===2*i||n===2*o:t instanceof f}const U=e.bits2int||function(t){const r=l(t),n=8*t.length-e.nBitLength;return n>0?r>>BigInt(n):r},P=e.bits2int_modN||function(t){return s(U(t))},R=b(e.nBitLength);function q(t){if("bigint"!=typeof t)throw new Error("bigint expected");if(!(Y<=t&&tt in i)))throw new Error("sign() legacy options not supported");const{hash:o,randomBytes:h}=e;let{lowS:c,prehash:l,extraEntropy:d}=i;null==c&&(c=!0),t=w("msgHash",t),l&&(t=w("prehashed msgHash",o(t)));const g=P(t),y=u(n),b=[q(y),q(g)];if(null!=d){const t=!0===d?h(r.BYTES):d;b.push(w("extraEntropy",t))}const m=p(...b),x=g;return{seed:m,k2sig:function(t){const e=U(t);if(!E(e))return;const r=a(e),n=f.BASE.multiply(e).toAffine(),i=s(n.x);if(i===Y)return;const o=s(r*s(x+i*y));if(o===Y)return;let h=(n.x===i?0:2)|Number(n.y&X),u=o;return c&&B(o)&&(u=function(t){return B(t)?s(-t):t}(o),h^=1),new O(i,u,h)}}}const F={lowS:e.lowS,prehash:!1},D={lowS:e.lowS,prehash:!1};return f.BASE._setWindowSize(8),{CURVE:e,getPublicKey:function(t,e=!0){return f.fromPrivateKey(t).toRawBytes(e)},getSharedSecret:function(t,e,r=!0){if(H(t))throw new Error("first arg must be private key");if(!H(e))throw new Error("second arg must be public key");return f.fromHex(e).multiply(u(t)).toRawBytes(r)},sign:function(t,r,n=F){const{seed:i,k2sig:o}=C(t,r,n),s=e;return x(s.hash.outputLen,s.nByteLength,s.hmac)(i,o)},verify:function(t,r,n,i=D){const o=t;if(r=w("msgHash",r),n=w("publicKey",n),"strict"in i)throw new Error("options.strict was renamed to lowS");const{lowS:h,prehash:u}=i;let c,l;try{if("string"==typeof o||o instanceof Uint8Array)try{c=O.fromDER(o)}catch(t){if(!(t instanceof W.Err))throw t;c=O.fromCompact(o)}else{if("object"!=typeof o||"bigint"!=typeof o.r||"bigint"!=typeof o.s)throw new Error("PARSE");{const{r:t,s:e}=o;c=new O(t,e)}}l=f.fromHex(n)}catch(t){if("PARSE"===t.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(h&&c.hasHighS())return!1;u&&(r=e.hash(r));const{r:d,s:g}=c,y=P(r),p=a(g),b=s(y*p),m=s(d*p),E=f.BASE.multiplyAndAddUnsafe(l,b,m)?.toAffine();return!!E&&s(E.x)===d},ProjectivePoint:f,Signature:O,utils:L}}function et(t){return{hash:t,hmac:(e,...r)=>V(t,e,(0,Z.Id)(...r)),randomBytes:Z.po}}const rt=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),nt=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),it=BigInt(1),ot=BigInt(2),st=(t,e)=>(t+e/ot)/e;function at(t){const e=rt,r=BigInt(3),n=BigInt(6),i=BigInt(11),o=BigInt(22),s=BigInt(23),a=BigInt(44),f=BigInt(88),h=t*t*t%e,u=h*h*t%e,c=R(u,r,e)*u%e,l=R(c,r,e)*u%e,d=R(l,ot,e)*h%e,g=R(d,i,e)*d%e,y=R(g,o,e)*g%e,w=R(y,a,e)*y%e,p=R(w,f,e)*w%e,b=R(p,a,e)*y%e,m=R(b,r,e)*u%e,E=R(m,s,e)*g%e,x=R(E,n,e)*h%e,v=R(x,ot,e);if(!ft.eql(ft.sqr(v),t))throw new Error("Cannot find square root");return v}const ft=function(t,e,r=!1,n={}){if(t<=B)throw new Error(`Expected Field ORDER > 0, got ${t}`);const{nBitLength:i,nByteLength:o}=F(t,e);if(o>2048)throw new Error("Field lengths over 2048 bytes are not supported");const s=q(t),a=Object.freeze({ORDER:t,BITS:i,BYTES:o,MASK:b(i),ZERO:B,ONE:I,create:e=>k(e,t),isValid:e=>{if("bigint"!=typeof e)throw new Error("Invalid field element: expected bigint, got "+typeof e);return B<=e&&et===B,isOdd:t=>(t&I)===I,neg:e=>k(-e,t),eql:(t,e)=>t===e,sqr:e=>k(e*e,t),add:(e,r)=>k(e+r,t),sub:(e,r)=>k(e-r,t),mul:(e,r)=>k(e*r,t),pow:(t,e)=>function(t,e,r){if(r 0");if(r===B)return t.ONE;if(r===I)return e;let n=t.ONE,i=e;for(;r>B;)r&I&&(n=t.mul(n,i)),i=t.sqr(i),r>>=I;return n}(a,t,e),div:(e,r)=>k(e*N(r,t),t),sqrN:t=>t*t,addN:(t,e)=>t+e,subN:(t,e)=>t-e,mulN:(t,e)=>t*e,inv:e=>N(e,t),sqrt:n.sqrt||(t=>s(a,t)),invertBatch:t=>function(t,e){const r=new Array(e.length),n=e.reduce(((e,n,i)=>t.is0(n)?e:(r[i]=e,t.mul(e,n))),t.ONE),i=t.inv(n);return e.reduceRight(((e,n,i)=>t.is0(n)?e:(r[i]=t.mul(e,r[i]),t.mul(e,n))),i),r}(a,t),cmov:(t,e,r)=>r?e:t,toBytes:t=>r?y(t,o):g(t,o),fromBytes:t=>{if(t.length!==o)throw new Error(`Fp.fromBytes: expected ${o}, got ${t.length}`);return r?d(t):l(t)}});return Object.freeze(a)}(rt,void 0,void 0,{sqrt:at}),ht=function(t,e){const r=e=>tt({...t,...et(e)});return Object.freeze({...r(e),create:r})}({a:BigInt(0),b:BigInt(7),Fp:ft,n:nt,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:t=>{const e=nt,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-it*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),o=r,s=BigInt("0x100000000000000000000000000000000"),a=st(o*t,e),f=st(-n*t,e);let h=k(t-a*r-f*i,e),u=k(-a*n-f*o,e);const c=h>s,l=u>s;if(c&&(h=e-h),l&&(u=e-u),h>s||u>s)throw new Error("splitScalar: Endomorphism failed, k="+t);return{k1neg:c,k1:h,k2neg:l,k2:u}}}},i.s);BigInt(0);ht.ProjectivePoint},82214:(t,e,r)=>{r.d(e,{Zf:()=>c});var n=r(37171),i=r(86558),o=r(10750);const[s,a]=(()=>i.Ay.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((t=>BigInt(t)))))(),f=new Uint32Array(80),h=new Uint32Array(80);class u extends n.D{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(){const{Ah:t,Al:e,Bh:r,Bl:n,Ch:i,Cl:o,Dh:s,Dl:a,Eh:f,El:h,Fh:u,Fl:c,Gh:l,Gl:d,Hh:g,Hl:y}=this;return[t,e,r,n,i,o,s,a,f,h,u,c,l,d,g,y]}set(t,e,r,n,i,o,s,a,f,h,u,c,l,d,g,y){this.Ah=0|t,this.Al=0|e,this.Bh=0|r,this.Bl=0|n,this.Ch=0|i,this.Cl=0|o,this.Dh=0|s,this.Dl=0|a,this.Eh=0|f,this.El=0|h,this.Fh=0|u,this.Fl=0|c,this.Gh=0|l,this.Gl=0|d,this.Hh=0|g,this.Hl=0|y}process(t,e){for(let r=0;r<16;r++,e+=4)f[r]=t.getUint32(e),h[r]=t.getUint32(e+=4);for(let t=16;t<80;t++){const e=0|f[t-15],r=0|h[t-15],n=i.Ay.rotrSH(e,r,1)^i.Ay.rotrSH(e,r,8)^i.Ay.shrSH(e,r,7),o=i.Ay.rotrSL(e,r,1)^i.Ay.rotrSL(e,r,8)^i.Ay.shrSL(e,r,7),s=0|f[t-2],a=0|h[t-2],u=i.Ay.rotrSH(s,a,19)^i.Ay.rotrBH(s,a,61)^i.Ay.shrSH(s,a,6),c=i.Ay.rotrSL(s,a,19)^i.Ay.rotrBL(s,a,61)^i.Ay.shrSL(s,a,6),l=i.Ay.add4L(o,c,h[t-7],h[t-16]),d=i.Ay.add4H(l,n,u,f[t-7],f[t-16]);f[t]=0|d,h[t]=0|l}let{Ah:r,Al:n,Bh:o,Bl:u,Ch:c,Cl:l,Dh:d,Dl:g,Eh:y,El:w,Fh:p,Fl:b,Gh:m,Gl:E,Hh:x,Hl:v}=this;for(let t=0;t<80;t++){const e=i.Ay.rotrSH(y,w,14)^i.Ay.rotrSH(y,w,18)^i.Ay.rotrBH(y,w,41),A=i.Ay.rotrSL(y,w,14)^i.Ay.rotrSL(y,w,18)^i.Ay.rotrBL(y,w,41),B=y&p^~y&m,I=w&b^~w&E,S=i.Ay.add5L(v,A,I,a[t],h[t]),O=i.Ay.add5H(S,x,e,B,s[t],f[t]),L=0|S,H=i.Ay.rotrSH(r,n,28)^i.Ay.rotrBH(r,n,34)^i.Ay.rotrBH(r,n,39),U=i.Ay.rotrSL(r,n,28)^i.Ay.rotrBL(r,n,34)^i.Ay.rotrBL(r,n,39),k=r&o^r&c^o&c,P=n&u^n&l^u&l;x=0|m,v=0|E,m=0|p,E=0|b,p=0|y,b=0|w,({h:y,l:w}=i.Ay.add(0|d,0|g,0|O,0|L)),d=0|c,g=0|l,c=0|o,l=0|u,o=0|r,u=0|n;const R=i.Ay.add3L(L,U,P);r=i.Ay.add3H(R,O,H,k),n=0|R}({h:r,l:n}=i.Ay.add(0|this.Ah,0|this.Al,0|r,0|n)),({h:o,l:u}=i.Ay.add(0|this.Bh,0|this.Bl,0|o,0|u)),({h:c,l}=i.Ay.add(0|this.Ch,0|this.Cl,0|c,0|l)),({h:d,l:g}=i.Ay.add(0|this.Dh,0|this.Dl,0|d,0|g)),({h:y,l:w}=i.Ay.add(0|this.Eh,0|this.El,0|y,0|w)),({h:p,l:b}=i.Ay.add(0|this.Fh,0|this.Fl,0|p,0|b)),({h:m,l:E}=i.Ay.add(0|this.Gh,0|this.Gl,0|m,0|E)),({h:x,l:v}=i.Ay.add(0|this.Hh,0|this.Hl,0|x,0|v)),this.set(r,n,o,u,c,l,d,g,y,w,p,b,m,E,x,v)}roundClean(){f.fill(0),h.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)}}const c=(0,o.ld)((()=>new u))},86558:(t,e,r)=>{r.d(e,{Ay:()=>c,B4:()=>f,P5:()=>a,WM:()=>h,im:()=>u,lD:()=>s});const n=BigInt(2**32-1),i=BigInt(32);function o(t,e=!1){return e?{h:Number(t&n),l:Number(t>>i&n)}:{h:0|Number(t>>i&n),l:0|Number(t&n)}}function s(t,e=!1){let r=new Uint32Array(t.length),n=new Uint32Array(t.length);for(let i=0;it<>>32-r,f=(t,e,r)=>e<>>32-r,h=(t,e,r)=>e<>>64-r,u=(t,e,r)=>t<>>64-r;const c={fromBig:o,split:s,toBig:(t,e)=>BigInt(t>>>0)<>>0),shrSH:(t,e,r)=>t>>>r,shrSL:(t,e,r)=>t<<32-r|e>>>r,rotrSH:(t,e,r)=>t>>>r|e<<32-r,rotrSL:(t,e,r)=>t<<32-r|e>>>r,rotrBH:(t,e,r)=>t<<64-r|e>>>r-32,rotrBL:(t,e,r)=>t>>>r-32|e<<64-r,rotr32H:(t,e)=>e,rotr32L:(t,e)=>t,rotlSH:a,rotlSL:f,rotlBH:h,rotlBL:u,add:function(t,e,r,n){const i=(e>>>0)+(n>>>0);return{h:t+r+(i/2**32|0)|0,l:0|i}},add3L:(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0),add3H:(t,e,r,n)=>e+r+n+(t/2**32|0)|0,add4L:(t,e,r,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0),add4H:(t,e,r,n,i)=>e+r+n+i+(t/2**32|0)|0,add5H:(t,e,r,n,i,o)=>e+r+n+i+o+(t/2**32|0)|0,add5L:(t,e,r,n,i)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(i>>>0)}}}]);