1!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="0cbaf306-fc89-4ae5-ac4a-99d93d8b9fe5",t._sentryDebugIdIdentifier="sentry-dbid-0cbaf306-fc89-4ae5-ac4a-99d93d8b9fe5")}catch(t){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3318],{23376:function(t,e,r){r.d(e,{_:function(){return A}});var n=r(59629),i=r(67136);class o extends i.kb{constructor(t,e){super(),this.finished=!1,this.destroyed=!1,(0,n.z3)(t);let r=(0,i.O0)(e);if(this.iHash=t.create(),"function"!=typeof this.iHash.update)throw Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let o=this.blockLen,s=new Uint8Array(o);s.set(r.length>o?t.create().update(r).digest():r);for(let t=0;t<s.length;t++)s[t]^=54;this.iHash.update(s),this.oHash=t.create();for(let t=0;t<s.length;t++)s[t]^=106;this.oHash.update(s),s.fill(0)}update(t){return(0,n.$h)(this),this.iHash.update(t),this}digestInto(t){(0,n.$h)(this),(0,n.gk)(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){let t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));let{oHash:e,iHash:r,finished:n,destroyed:i,blockLen:o,outputLen:s}=this;return t.finished=n,t.destroyed=i,t.blockLen=o,t.outputLen=s,t.oHash=e._cloneInto(t.oHash),t.iHash=r._cloneInto(t.iHash),t}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}let s=(t,e,r)=>new o(t,e).update(r).digest();s.create=(t,e)=>new o(t,e);var l=r(95814),u=r(17271);let a=BigInt(0),h=BigInt(1);function d(t,e){let r=e.negate();return t?r:e}function f(t,e){if(!Number.isSafeInteger(t)||t<=0||t>e)throw Error("invalid window size, expected [1.."+e+"], got W="+t)}function c(t,e){return f(t,e),{windows:Math.ceil(e/t)+1,windowSize:2**(t-1)}}let p=new WeakMap,g=new WeakMap;function y(t){return g.get(t)||1}function w(t){return(0,l.OP)(t.Fp),(0,u.FF)(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,l.kK)(t.n,t.nBitLength),...t,p:t.Fp.ORDER})}function m(t){void 0!==t.lowS&&(0,u.uw)("lowS",t.lowS),void 0!==t.prehash&&(0,u.uw)("prehash",t.prehash)}let{bytesToNumberBE:E,hexToBytes:b}=u;class v extends Error{constructor(t=""){super(t)}}let B={Err:v,_tlv:{encode:(t,e)=>{let{Err:r}=B;if(t<0||t>256)throw new r("tlv.encode: wrong tag");if(1&e.length)throw new r("tlv.encode: unpadded data");let n=e.length/2,i=u.uz(n);if(i.length/2&128)throw new r("tlv.encode: long form length too big");let o=n>127?u.uz(i.length/2|128):"";return u.uz(t)+o+i+e},decode(t,e){let{Err:r}=B,n=0;if(t<0||t>256)throw new r("tlv.encode: wrong tag");if(e.length<2||e[n++]!==t)throw new r("tlv.decode: wrong tlv");let i=e[n++],o=0;if(128&i){let t=127&i;if(!t)throw new r("tlv.decode(long): indefinite length not supported");if(t>4)throw new r("tlv.decode(long): byte length is too big");let s=e.subarray(n,n+t);if(s.length!==t)throw new r("tlv.decode: length bytes not complete");if(0===s[0])throw new r("tlv.decode(long): zero leftmost byte");for(let t of s)o=o<<8|t;if(n+=t,o<128)throw new r("tlv.decode(long): not minimal encoding")}else o=i;let s=e.subarray(n,n+o);if(s.length!==o)throw new r("tlv.decode: wrong value length");return{v:s,l:e.subarray(n+o)}}},_int:{encode(t){let{Err:e}=B;if(t<x)throw new e("integer: negative integers are not allowed");let r=u.uz(t);if(8&Number.parseInt(r[0],16)&&(r="00"+r),1&r.length)throw new e("unexpected DER parsing assertion: unpadded hex");return r},decode(t){let{Err:e}=B;if(128&t[0])throw new e("invalid signature integer: negative");if(0===t[0]&&!(128&t[1]))throw new e("invalid signature integer: unnecessary leading zero");return E(t)}},toSig(t){let{Err:e,_int:r,_tlv:n}=B,i="string"==typeof t?b(t):t;u.gk(i);let{v:o,l:s}=n.decode(48,i);if(s.length)throw new e("invalid signature: left bytes after parsing");let{v:l,l:a}=n.decode(2,o),{v:h,l:d}=n.decode(2,a);if(d.length)throw new e("invalid signature: left bytes after parsing");return{r:r.decode(l),s:r.decode(h)}},hexFromSig(t){let{_tlv:e,_int:r}=B,n=e.encode(2,r.encode(t.r)),i=e.encode(2,r.encode(t.s));return e.encode(48,n+i)}},x=BigInt(0),S=BigInt(1),O=(BigInt(2),BigInt(3));function A(t,e){let r=e=>(function(t){let e=function(t){let e=w(t);return u.FF(e,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...e})}(t),{Fp:r,n:n}=e,i=r.BYTES+1,o=2*r.BYTES+1;function s(t){return(0,l.wQ)(t,n)}function E(t){return(0,l.U_)(t,n)}let{ProjectivePoint:b,normPrivateKeyToScalar:v,weierstrassEquation:A,isWithinCurveOrder:q}=function(t){var e;let r=function(t){let e=w(t);u.FF(e,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});let{endo:r,Fp:n,a:i}=e;if(r){if(!n.eql(i,n.ZERO))throw Error("invalid 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 Error("invalid endomorphism, expected beta: bigint and splitScalar: function")}return Object.freeze({...e})}(t),{Fp:n}=r,i=(0,l.gN)(r.n,r.nBitLength),o=r.toBytes||((t,e,r)=>{let i=e.toAffine();return u.eV(Uint8Array.from([4]),n.toBytes(i.x),n.toBytes(i.y))}),s=r.fromBytes||(t=>{let e=t.subarray(1);return{x:n.fromBytes(e.subarray(0,n.BYTES)),y:n.fromBytes(e.subarray(n.BYTES,2*n.BYTES))}});function m(t){let{a:e,b:i}=r,o=n.sqr(t),s=n.mul(o,t);return n.add(n.add(s,n.mul(t,e)),i)}if(!n.eql(n.sqr(r.Gy),m(r.Gx)))throw Error("bad generator point: equation left != right");function E(t){let e;let{allowedPrivateKeyLengths:n,nByteLength:i,wrapPrivateKey:o,n:s}=r;if(n&&"bigint"!=typeof t){if(u._t(t)&&(t=u.ci(t)),"string"!=typeof t||!n.includes(t.length))throw Error("invalid private key");t=t.padStart(2*i,"0")}try{e="bigint"==typeof t?t:u.bytesToNumberBE((0,u.ql)("private key",t,i))}catch(e){throw Error("invalid private key, expected hex or "+i+" bytes, got "+typeof t)}return o&&(e=(0,l.wQ)(e,s)),u.Fy("private key",e,S,s),e}function b(t){if(!(t instanceof A))throw Error("ProjectivePoint expected")}let v=(0,u.H9)((t,e)=>{let{px:r,py:i,pz:o}=t;if(n.eql(o,n.ONE))return{x:r,y:i};let s=t.is0();null==e&&(e=s?n.ONE:n.inv(o));let l=n.mul(r,e),u=n.mul(i,e),a=n.mul(o,e);if(s)return{x:n.ZERO,y:n.ZERO};
1if(!n.eql(a,n.ONE))throw Error("invZ was invalid");return{x:l,y:u}}),B=(0,u.H9)(t=>{if(t.is0()){if(r.allowInfinityPoint&&!n.is0(t.py))return;throw Error("bad point: ZERO")}let{x:e,y:i}=t.toAffine();if(!n.isValid(e)||!n.isValid(i))throw Error("bad point: x or y not FE");let o=n.sqr(i),s=m(e);if(!n.eql(o,s))throw Error("bad point: equation left != right");if(!t.isTorsionFree())throw Error("bad point: not in prime-order subgroup");return!0});class A{constructor(t,e,r){if(this.px=t,this.py=e,this.pz=r,null==t||!n.isValid(t))throw Error("x required");if(null==e||!n.isValid(e))throw Error("y required");if(null==r||!n.isValid(r))throw Error("z required");Object.freeze(this)}static fromAffine(t){let{x:e,y:r}=t||{};if(!t||!n.isValid(e)||!n.isValid(r))throw Error("invalid affine point");if(t instanceof A)throw Error("projective point not allowed");let i=t=>n.eql(t,n.ZERO);return i(e)&&i(r)?A.ZERO:new A(e,r,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(t){let e=n.invertBatch(t.map(t=>t.pz));return t.map((t,r)=>t.toAffine(e[r])).map(A.fromAffine)}static fromHex(t){let e=A.fromAffine(s((0,u.ql)("pointHex",t)));return e.assertValidity(),e}static fromPrivateKey(t){return A.BASE.multiply(E(t))}static msm(t,e){return function(t,e,r,n){if(!function(t,e){if(!Array.isArray(t))throw Error("array expected");t.forEach((t,r)=>{if(!(t instanceof e))throw Error("invalid point at index "+r)})}(r,t),!function(t,e){if(!Array.isArray(t))throw Error("array of scalars expected");t.forEach((t,r)=>{if(!e.isValid(t))throw Error("invalid scalar at index "+r)})}(n,e),r.length!==n.length)throw Error("arrays of points and scalars must have equal length");let i=t.ZERO,o=(0,u.Dd)(BigInt(r.length)),s=o>12?o-3:o>4?o-2:o?2:1,l=(1<<s)-1,a=Array(l+1).fill(i),h=Math.floor((e.BITS-1)/s)*s,d=i;for(let t=h;t>=0;t-=s){a.fill(i);for(let e=0;e<n.length;e++){let i=Number(n[e]>>BigInt(t)&BigInt(l));a[i]=a[i].add(r[e])}let e=i;for(let t=a.length-1,r=i;t>0;t--)r=r.add(a[t]),e=e.add(r);if(d=d.add(e),0!==t)for(let t=0;t<s;t++)d=d.double()}return d}(A,i,t,e)}_setWindowSize(t){N.setWindowSize(this,t)}assertValidity(){B(this)}hasEvenY(){let{y:t}=this.toAffine();if(n.isOdd)return!n.isOdd(t);throw Error("Field doesn't support isOdd")}equals(t){b(t);let{px:e,py:r,pz:i}=this,{px:o,py:s,pz:l}=t,u=n.eql(n.mul(e,l),n.mul(o,i)),a=n.eql(n.mul(r,l),n.mul(s,i));return u&&a}negate(){return new A(this.px,n.neg(this.py),this.pz)}double(){let{a:t,b:e}=r,i=n.mul(e,O),{px:o,py:s,pz:l}=this,u=n.ZERO,a=n.ZERO,h=n.ZERO,d=n.mul(o,o),f=n.mul(s,s),c=n.mul(l,l),p=n.mul(o,s);return p=n.add(p,p),h=n.mul(o,l),h=n.add(h,h),u=n.mul(t,h),a=n.mul(i,c),a=n.add(u,a),u=n.sub(f,a),a=n.add(f,a),a=n.mul(u,a),u=n.mul(p,u),h=n.mul(i,h),c=n.mul(t,c),p=n.sub(d,c),p=n.mul(t,p),p=n.add(p,h),h=n.add(d,d),d=n.add(h,d),d=n.add(d,c),d=n.mul(d,p),a=n.add(a,d),c=n.mul(s,l),c=n.add(c,c),d=n.mul(c,p),u=n.sub(u,d),h=n.mul(c,f),h=n.add(h,h),new A(u,a,h=n.add(h,h))}add(t){b(t);let{px:e,py:i,pz:o}=this,{px:s,py:l,pz:u}=t,a=n.ZERO,h=n.ZERO,d=n.ZERO,f=r.a,c=n.mul(r.b,O),p=n.mul(e,s),g=n.mul(i,l),y=n.mul(o,u),w=n.add(e,i),m=n.add(s,l);w=n.mul(w,m),m=n.add(p,g),w=n.sub(w,m),m=n.add(e,o);let E=n.add(s,u);return m=n.mul(m,E),E=n.add(p,y),m=n.sub(m,E),E=n.add(i,o),a=n.add(l,u),E=n.mul(E,a),a=n.add(g,y),E=n.sub(E,a),d=n.mul(f,m),a=n.mul(c,y),d=n.add(a,d),a=n.sub(g,d),d=n.add(g,d),h=n.mul(a,d),g=n.add(p,p),g=n.add(g,p),y=n.mul(f,y),m=n.mul(c,m),g=n.add(g,y),y=n.sub(p,y),y=n.mul(f,y),m=n.add(m,y),p=n.mul(g,m),h=n.add(h,p),p=n.mul(E,m),a=n.mul(w,a),a=n.sub(a,p),p=n.mul(w,g),d=n.mul(E,d),new A(a,h,d=n.add(d,p))}subtract(t){return this.add(t.negate())}is0(){return this.equals(A.ZERO)}wNAF(t){return N.wNAFCached(this,t,A.normalizeZ)}multiplyUnsafe(t){let{endo:e,n:i}=r;u.Fy("scalar",t,x,i);let o=A.ZERO;if(t===x)return o;if(this.is0()||t===S)return this;if(!e||N.hasPrecomputes(this))return N.wNAFCachedUnsafe(this,t,A.normalizeZ);let{k1neg:s,k1:l,k2neg:a,k2:h}=e.splitScalar(t),d=o,f=o,c=this;for(;l>x||h>x;)l&S&&(d=d.add(c)),h&S&&(f=f.add(c)),c=c.double(),l>>=S,h>>=S;return s&&(d=d.negate()),a&&(f=f.negate()),f=new A(n.mul(f.px,e.beta),f.py,f.pz),d.add(f)}multiply(t){let e,i;let{endo:o,n:s}=r;
1if(u.Fy("scalar",t,S,s),o){let{k1neg:r,k1:s,k2neg:l,k2:u}=o.splitScalar(t),{p:a,f:h}=this.wNAF(s),{p:d,f:f}=this.wNAF(u);a=N.constTimeNegate(r,a),d=N.constTimeNegate(l,d),d=new A(n.mul(d.px,o.beta),d.py,d.pz),e=a.add(d),i=h.add(f)}else{let{p:r,f:n}=this.wNAF(t);e=r,i=n}return A.normalizeZ([e,i])[0]}multiplyAndAddUnsafe(t,e,r){let n=A.BASE,i=(t,e)=>e!==x&&e!==S&&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){return v(this,t)}isTorsionFree(){let{h:t,isTorsionFree:e}=r;if(t===S)return!0;if(e)return e(A,this);throw Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h:t,clearCofactor:e}=r;return t===S?this:e?e(A,this):this.multiplyUnsafe(r.h)}toRawBytes(t=!0){return(0,u.uw)("isCompressed",t),this.assertValidity(),o(A,this,t)}toHex(t=!0){return(0,u.uw)("isCompressed",t),u.ci(this.toRawBytes(t))}}A.BASE=new A(r.Gx,r.Gy,n.ONE),A.ZERO=new A(n.ZERO,n.ONE,n.ZERO);let q=r.nBitLength,N=(e=r.endo?Math.ceil(q/2):q,{constTimeNegate:d,hasPrecomputes:t=>1!==y(t),unsafeLadder(t,e,r=A.ZERO){let n=t;for(;e>a;)e&h&&(r=r.add(n)),n=n.double(),e>>=h;return r},precomputeWindow(t,r){let{windows:n,windowSize:i}=c(r,e),o=[],s=t,l=s;for(let t=0;t<n;t++){l=s,o.push(l);for(let t=1;t<i;t++)l=l.add(s),o.push(l);s=l.double()}return o},wNAF(t,r,n){let{windows:i,windowSize:o}=c(t,e),s=A.ZERO,l=A.BASE,u=BigInt(2**t-1),a=2**t,f=BigInt(t);for(let t=0;t<i;t++){let e=t*o,i=Number(n&u);n>>=f,i>o&&(i-=a,n+=h);let c=e+Math.abs(i)-1,p=t%2!=0,g=i<0;0===i?l=l.add(d(p,r[e])):s=s.add(d(g,r[c]))}return{p:s,f:l}},wNAFUnsafe(t,r,n,i=A.ZERO){let{windows:o,windowSize:s}=c(t,e),l=BigInt(2**t-1),u=2**t,d=BigInt(t);for(let t=0;t<o;t++){let e=t*s;if(n===a)break;let o=Number(n&l);if(n>>=d,o>s&&(o-=u,n+=h),0===o)continue;let f=r[e+Math.abs(o)-1];o<0&&(f=f.negate()),i=i.add(f)}return i},getPrecomputes(t,e,r){let n=p.get(e);return n||(n=this.precomputeWindow(e,t),1!==t&&p.set(e,r(n))),n},wNAFCached(t,e,r){let n=y(t);return this.wNAF(n,this.getPrecomputes(n,t,r),e)},wNAFCachedUnsafe(t,e,r,n){let i=y(t);return 1===i?this.unsafeLadder(t,e,n):this.wNAFUnsafe(i,this.getPrecomputes(i,t,r),e,n)},setWindowSize(t,r){f(r,e),g.set(t,r),p.delete(t)}});return{CURVE:r,ProjectivePoint:A,normPrivateKeyToScalar:E,weierstrassEquation:m,isWithinCurveOrder:function(t){return u.Z2(t,S,r.n)}}}({...e,toBytes(t,e,n){let i=e.toAffine(),o=r.toBytes(i.x),s=u.eV;return((0,u.uw)("isCompressed",n),n)?s(Uint8Array.from([e.hasEvenY()?2:3]),o):s(Uint8Array.from([4]),o,r.toBytes(i.y))},fromBytes(t){let e=t.length,n=t[0],s=t.subarray(1);if(e===i&&(2===n||3===n)){let t;let e=u.bytesToNumberBE(s);if(!u.Z2(e,S,r.ORDER))throw Error("Point is not on curve");let i=A(e);try{t=r.sqrt(i)}catch(t){throw Error("Point is not on curve"+(t instanceof Error?": "+t.message:""))}return(1&n)==1!=((t&S)===S)&&(t=r.neg(t)),{x:e,y:t}}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 Error("invalid Point, expected length of "+i+", or uncompressed "+o+", got "+e)}}),N=t=>u.ci(u.tL(t,e.nByteLength)),I=(t,e,r)=>u.bytesToNumberBE(t.slice(e,r));class R{constructor(t,e,r){this.r=t,this.s=e,this.recovery=r,this.assertValidity()}static fromCompact(t){let r=e.nByteLength;return new R(I(t=(0,u.ql)("compactSignature",t,2*r),0,r),I(t,r,2*r))}static fromDER(t){let{r:e,s:r}=B.toSig((0,u.ql)("DER",t));return new R(e,r)}assertValidity(){u.Fy("r",this.r,S,n),u.Fy("s",this.s,S,n)}addRecoveryBit(t){return new R(this.r,this.s,t)}recoverPublicKey(t){let{r:n,s:i,recovery:o}=this,l=F((0,u.ql)("msgHash",t));if(null==o||![0,1,2,3].includes(o))throw Error("recovery id invalid");let a=2===o||3===o?n+e.n:n;if(a>=r.ORDER)throw Error("recovery id 2 or 3 invalid");let h=(1&o)==0?"02":"03",d=b.fromHex(h+N(a)),f=E(a),c=s(-l*f),p=s(i*f),g=b.BASE.multiplyAndAddUnsafe(d,c,p);if(!g)throw Error("point at infinify");return g.assertValidity(),g}hasHighS(){return this.s>n>>S}normalizeS(){return this.hasHighS()?new R(this.r,s(-this.s),this.recovery):this}toDERRawBytes(){return u.hexToBytes(this.toDERHex())}toDERHex(){return B.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return u.hexToBytes(this.toCompactHex())}toCompactHex(){return N(this.r)+N(this.s)}}function L(t){let e=u._t(t),r="string"==typeof t,n=(e||r)&&t.length;return e?n===i||n===o:r?n===2*i||n===2*o:t instanceof b}let H=e.bits2int||function(t){if(t.length>8192)throw Error("input is too large");let r=u.bytesToNumberBE(t),n=8*t.length-e.nBitLength;return n>0?r>>BigInt(n):r},F=e.bits2int_modN||function(t){return s(H(t))},z=u.dQ(e.nBitLength);function P(t){return u.Fy("num < 2^"+e.nBitLength,t,x,z),u.tL(t,e.nByteLength)}let Z={lowS:e.lowS,prehash:!1},_={lowS:e.lowS,prehash:!1};return b.BASE._setWindowSize(8),{CURVE:e,getPublicKey:function(t,e=!0){return b.fromPrivateKey(t).toRawBytes(e)},getSharedSecret:function(t,e,r=!0){if(L(t))throw Error("first arg must be private key");if(!L(e))throw Error("second arg must be public key");return b.fromHex(e).multiply(v(t)).toRawBytes(r)},sign:function(t,i,o=Z){let{seed:l,k2sig:a}=function(t,i,o=Z){if(["recovered","canonical"].some(t=>t in o))throw Error("sign() legacy options not supported");let{hash:l,randomBytes:a}=e,{lowS:h,prehash:d,extraEntropy:f}=o;null==h&&(h=!0),t=(0,u.ql)("msgHash",t),m(o),d&&(t=(0,u.ql)("prehashed msgHash",l(t)));let c=F(t),p=v(i),g=[P(p),P(c)];if(null!=f&&!1!==f){let t=!0===f?a(r.BYTES):f;g.push((0,u.ql)("extraEntropy",t))}return{seed:u.eV(...g),k2sig:function(t){let e=H(t);if(!q(e))return;let r=E(e),i=b.BASE.multiply(e).toAffine(),o=s(i.x);if(o===x)return;let l=s(r*s(c+o*p));if(l===x)return;let u=(i.x===o?0:2)|Number(i.y&S),a=l;if(h&&l>n>>S)a=l>n>>S?s(-l):l,u^=1;return new R(o,a,u)}}}(t,i,o);return u.n$(e.hash.outputLen,e.nByteLength,e.hmac)(l,a)},verify:function(t,r,n,i=_){let o,l;r=(0,u.ql)("msgHash",r),n=(0,u.ql)("publicKey",n);let{lowS:a,prehash:h,format:d}=i;if(m(i),"strict"in i)throw Error("options.strict was renamed to lowS");if(void 0!==d&&"compact"!==d&&"der"!==d)throw Error("format must be compact or der");let f="string"==typeof t||u._t(t),c=!f&&!d&&"object"==typeof t&&null!==t&&"bigint"==typeof t.r&&"bigint"==typeof t.s;if(!f&&!c)throw Error("invalid signature, expected Uint8Array, hex string or Signature instance");try{if(c&&(l=new R(t.r,t.s)),f){try{"compact"!==d&&(l=R.fromDER(t))}catch(t){if(!(t instanceof B.Err))throw t}l||"der"===d||(l=R.fromCompact(t))}o=b.fromHex(n)}catch(t){return!1}if(!l||a&&l.hasHighS())return!1;h&&(r=e.hash(r));let{r:p,s:g}=l,y=F(r),w=E(g),v=s(y*w),x=s(p*w),S=b.BASE.multiplyAndAddUnsafe(o,v,x)?.toAffine();return!!S&&s(S.x)===p},ProjectivePoint:b,Signature:R,utils:{isValidPrivateKey(t){try{return v(t),!0}catch(t){return!1}},normPrivateKeyToScalar:v,randomPrivateKey:()=>{let t=(0,l.PS)(e.n);return(0,l.Us)(e.randomBytes(t),e.n)},precompute:(t=8,e=b.BASE)=>(e._setWindowSize(t),e.multiply(BigInt(3)),e)}}})({...t,hash:e,hmac:(t,...r)=>s(e,t,(0,i.eV)(...r)),randomBytes:i.O6});return{...r(e),create:r}}BigInt(4)},95814:function(t,e,r){r.d(e,{OP:function(){return g},PS:function(){return E},U_:function(){return c},Us:function(){return b},gN:function(){return w},kK:function(){return y},oA:function(){return f},wQ:function(){return d}});var n=r(17271);let i=BigInt(0),o=BigInt(1),s=BigInt(2),l=BigInt(3),u=BigInt(4),a=BigInt(5),h=BigInt(8);function d(t,e){let r=t%e;return r>=i?r:e+r}function f(t,e,r){let n=t;for(;e-- >i;)n*=n,n%=r;return n}function c(t,e){if(t===i)throw Error("invert: expected non-zero number");if(e<=i)throw Error("invert: expected positive modulus, got "+e);let r=d(t,e),n=e,s=i,l=o,u=o,a=i;for(;r!==i;){let t=n/r,e=n%r,i=s-u*t,o=l-a*t;n=r,r=e,s=u,l=a,u=i,a=o}if(n!==o)throw Error("invert: does not exist");return d(s,e)}let p=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function g(t){let e=p.reduce((t,e)=>(t[e]="function",t),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,n.FF)(t,e)}function y(t,e){let r=void 0!==e?e:t.toString(2).length;return{nBitLength:r,nByteLength:Math.ceil(r/8)}}function w(t,e,r=!1,f={}){let p;if(t<=i)throw Error("invalid field: expected ORDER > 0, got "+t);let{nBitLength:g,nByteLength:w}=y(t,e);if(w>2048)throw Error("invalid field: expected ORDER of <= 2048 bytes");let m=Object.freeze({ORDER:t,isLE:r,BITS:g,BYTES:w,MASK:(0,n.dQ)(g),ZERO:i,ONE:o,create:e=>d(e,t),isValid:e=>{if("bigint"!=typeof e)throw Error("invalid field element: expected bigint, got "+typeof e);return i<=e&&e<t},is0:t=>t===i,isOdd:t=>(t&o)===o,neg:e=>d(-e,t),eql:(t,e)=>t===e,sqr:e=>d(e*e,t),add:(e,r)=>d(e+r,t),sub:(e,r)=>d(e-r,t),mul:(e,r)=>d(e*r,t),pow:(t,e)=>(function(t,e,r){if(r<i)throw Error("invalid exponent, negatives unsupported");if(r===i)return t.ONE;if(r===o)return e;let n=t.ONE,s=e;for(;r>i;)r&o&&(n=t.mul(n,s)),s=t.sqr(s),r>>=o;return n})(m,t,e),div:(e,r)=>d(e*c(r,t),t),sqrN:t=>t*t,addN:(t,e)=>t+e,subN:(t,e)=>t-e,mulN:(t,e)=>t*e,inv:e=>c(e,t),sqrt:f.sqrt||(e=>(p||(p=function(t){if(t%u===l){let e=(t+o)/u;return function(t,r){let n=t.pow(r,e);if(!t.eql(t.sqr(n),r))throw Error("Cannot find square root");return n}}if(t%h===a){let e=(t-a)/h;return function(t,r){let n=t.mul(r,s),i=t.pow(n,e),o=t.mul(r,i),l=t.mul(t.mul(o,s),i),u=t.mul(
1o,t.sub(l,t.ONE));if(!t.eql(t.sqr(u),r))throw Error("Cannot find square root");return u}}return function(t){let e,r,n;let l=(t-o)/s;for(e=t-o,r=0;e%s===i;e/=s,r++);for(n=s;n<t&&function(t,e,r){if(e<i)throw Error("invalid exponent, negatives unsupported");if(r<=i)throw Error("invalid modulus");if(r===o)return i;let n=o;for(;e>i;)e&o&&(n=n*t%r),t=t*t%r,e>>=o;return n}(n,l,t)!==t-o;n++)if(n>1e3)throw Error("Cannot find square root: likely non-prime P");if(1===r){let e=(t+o)/u;return function(t,r){let n=t.pow(r,e);if(!t.eql(t.sqr(n),r))throw Error("Cannot find square root");return n}}let a=(e+o)/s;return function(t,i){if(t.pow(i,l)===t.neg(t.ONE))throw Error("Cannot find square root");let s=r,u=t.pow(t.mul(t.ONE,n),e),h=t.pow(i,a),d=t.pow(i,e);for(;!t.eql(d,t.ONE);){if(t.eql(d,t.ZERO))return t.ZERO;let e=1;for(let r=t.sqr(d);e<s&&!t.eql(r,t.ONE);e++)r=t.sqr(r);let r=t.pow(u,o<<BigInt(s-e-1));u=t.sqr(r),h=t.mul(h,r),d=t.mul(d,u),s=e}return h}}(t)}(t)),p(m,e))),invertBatch:t=>(function(t,e){let r=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})(m,t),cmov:(t,e,r)=>r?e:t,toBytes:t=>r?(0,n.S5)(t,w):(0,n.tL)(t,w),fromBytes:t=>{if(t.length!==w)throw Error("Field.fromBytes: expected "+w+" bytes, got "+t.length);return r?(0,n.ty)(t):(0,n.bytesToNumberBE)(t)}});return Object.freeze(m)}function m(t){if("bigint"!=typeof t)throw Error("field order must be bigint");return Math.ceil(t.toString(2).length/8)}function E(t){let e=m(t);return e+Math.ceil(e/2)}function b(t,e,r=!1){let i=t.length,s=m(e),l=E(e);if(i<16||i<l||i>1024)throw Error("expected "+l+"-1024 bytes of input, got "+i);let u=d(r?(0,n.ty)(t):(0,n.bytesToNumberBE)(t),e-o)+o;return r?(0,n.S5)(u,s):(0,n.tL)(u,s)}},33419:function(t,e,r){r.d(e,{JQ:function(){return h}});var n=r(59629),i=r(67136);class o extends i.kb{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.GL)(this.buffer)}update(t){(0,n.$h)(this);let{view:e,buffer:r,blockLen:o}=this,s=(t=(0,i.O0)(t)).length;for(let n=0;n<s;){let l=Math.min(o-this.pos,s-n);if(l===o){let e=(0,i.GL)(t);for(;o<=s-n;n+=o)this.process(e,n);continue}r.set(t.subarray(n,n+l),this.pos),this.pos+=l,n+=l,this.pos===o&&(this.process(e,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){(0,n.$h)(this),(0,n.eB)(t,this),this.finished=!0;let{buffer:e,view:r,blockLen:o,isLE:s}=this,{pos:l}=this;e[l++]=128,this.buffer.subarray(l).fill(0),this.padOffset>o-l&&(this.process(r,0),l=0);for(let t=l;t<o;t++)e[t]=0;!function(t,e,r,n){if("function"==typeof t.setBigUint64)return t.setBigUint64(e,r,n);let i=BigInt(32),o=BigInt(4294967295),s=Number(r>>i&o),l=Number(r&o),u=n?4:0,a=n?0:4;t.setUint32(e+u,s,n),t.setUint32(e+a,l,n)}(r,o-8,BigInt(8*this.length),s),this.process(r,0);let u=(0,i.GL)(t),a=this.outputLen;if(a%4)throw Error("_sha2: outputLen should be aligned to 32bit");let h=a/4,d=this.get();if(h>d.length)throw Error("_sha2: outputLen bigger than state");for(let t=0;t<h;t++)u.setUint32(4*t,d[t],s)}digest(){let{buffer:t,outputLen:e}=this;this.digestInto(t);let r=t.slice(0,e);return this.destroy(),r}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());let{blockLen:e,buffer:r,length:n,finished:i,destroyed:o,pos:s}=this;return t.length=n,t.pos=s,t.finished=i,t.destroyed=o,n%e&&t.buffer.set(r),t}}let 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,2756
1734187,3204031479,3329325298]),l=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),u=new Uint32Array(64);class a extends o{constructor(){super(64,32,8,!1),this.A=0|l[0],this.B=0|l[1],this.C=0|l[2],this.D=0|l[3],this.E=0|l[4],this.F=0|l[5],this.G=0|l[6],this.H=0|l[7]}get(){let{A:t,B:e,C:r,D:n,E:i,F:o,G:s,H:l}=this;return[t,e,r,n,i,o,s,l]}set(t,e,r,n,i,o,s,l){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|l}process(t,e){for(let r=0;r<16;r++,e+=4)u[r]=t.getUint32(e,!1);for(let t=16;t<64;t++){let e=u[t-15],r=u[t-2],n=(0,i.np)(e,7)^(0,i.np)(e,18)^e>>>3,o=(0,i.np)(r,17)^(0,i.np)(r,19)^r>>>10;u[t]=o+u[t-7]+n+u[t-16]|0}let{A:r,B:n,C:o,D:l,E:a,F:h,G:d,H:f}=this;for(let t=0;t<64;t++){var c,p,g,y;let e=f+((0,i.np)(a,6)^(0,i.np)(a,11)^(0,i.np)(a,25))+((c=a)&h^~c&d)+s[t]+u[t]|0,w=((0,i.np)(r,2)^(0,i.np)(r,13)^(0,i.np)(r,22))+((p=r)&(g=n)^p&(y=o)^g&y)|0;f=d,d=h,h=a,a=l+e|0,l=o,o=n,n=r,r=e+w|0}r=r+this.A|0,n=n+this.B|0,o=o+this.C|0,l=l+this.D|0,a=a+this.E|0,h=h+this.F|0,d=d+this.G|0,f=f+this.H|0,this.set(r,n,o,l,a,h,d,f)}roundClean(){u.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}let h=(0,i.hE)(()=>new a)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.