PageSourceSearch

https://www.crosstoken.sale/_next/static/chunks/5674.bcec3ca9c92e5a9a.js

js crosstoken.sale collected 2026-10-08 16:42:58 UTC 26,036 bytes, 1 lines download raw bytes

vendor: 4,178 bytes, line 1
1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5674],{65674:(t,e,r)=>{r.d(e,{secp256k1:()=>tE});var n=r(24201),i=r(72041),o=r(4856);class l extends o.Vw{constructor(t,e){super(),this.finished=!1,this.destroyed=!1,(0,i.sd)(t);let r=(0,o.ZJ)(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 n=this.blockLen,l=new Uint8Array(n);l.set(r.length>n?t.create().update(r).digest():r);for(let t=0;t<l.length;t++)l[t]^=54;this.iHash.update(l),this.oHash=t.create();for(let t=0;t<l.length;t++)l[t]^=106;this.oHash.update(l),l.fill(0)}update(t){return(0,i.CC)(this),this.iHash.update(t),this}digestInto(t){(0,i.CC)(this),(0,i.DO)(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:l}=this;return t.finished=n,t.destroyed=i,t.blockLen=o,t.outputLen=l,t.oHash=e._cloneInto(t.oHash),t.iHash=r._cloneInto(t.iHash),t}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}let f=(t,e,r)=>new l(t,e).update(r).digest();f.create=(t,e)=>new l(t,e);let s=BigInt(0),a=BigInt(1);function u(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&"Uint8Array"===t.constructor.name}function d(t){if(!u(t))throw Error("Uint8Array expected")}function h(t,e){if("boolean"!=typeof e)throw Error(t+" boolean expected, got "+e)}function c(t){let e=t.toString(16);return 1&e.length?"0"+e:e}function g(t){if("string"!=typeof t)throw Error("hex string expected, got "+typeof t);return""===t?s:BigInt("0x"+t)}let p="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,y=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function m(t){if(d(t),p)return t.toHex();let e="";for(let r=0;r<t.length;r++)e+=y[t[r]];return e}let w={_0:48,_9:57,A:65,F:70,a:97,f:102};function E(t){return t>=w._0&&t<=w._9?t-w._0:t>=w.A&&t<=w.F?t-(w.A-10):t>=w.a&&t<=w.f?t-(w.a-10):void 0}function b(t){if("string"!=typeof t)throw Error("hex string expected, got "+typeof t);if(p)return Uint8Array.fromHex(t);let e=t.length,r=e/2;if(e%2)throw Error("hex string expected, got unpadded hex of length "+e);let n=new Uint8Array(r);for(let e=0,i=0;e<r;e++,i+=2){let r=E(t.charCodeAt(i)),o=E(t.charCodeAt(i+1));if(void 0===r||void 0===o)throw Error('hex string expected, got non-hex character "'+(t[i]+t[i+1])+'" at index '+i);n[e]=16*r+o}return n}function v(t){return g(m(t))}function B(t){return d(t),g(m(Uint8Array.from(t).reverse()))}function x(t,e){return b(t.toString(16).padStart(2*e,"0"))}function A(t,e){return x(t,e).reverse()}function S(t,e,r){let n;if("string"==typeof e)try{n=b(e)}catch(e){throw Error(t+" must be hex string or Uint8Array, cause: "+e)}else if(u(e))n=Uint8Array.from(e);else throw Error(t+" must be hex string or Uint8Array");let i=n.length;if("number"==typeof r&&i!==r)throw Error(t+" of length "+r+" expected, got "+i);return n}function I(...t){let e=0;for(let r=0;r<t.length;r++){let n=t[r];d(n),e+=n.length}let r=new Uint8Array(e);for(let e=0,n=0;e<t.length;e++){let i=t[e];r.set(i,n),n+=i.length}return r}let O=t=>"bigint"==typeof t&&s<=t;function q(t,e,r){return O(t)&&O(e)&&O(r)&&e<=t&&t<r}function R(t,e,r,n){if(!q(e,r,n))throw Error("expected valid "+t+": "+r+" <= n < "+n+", got "+e)}let N=t=>(a<<BigInt(t))-a,H=t=>new Uint8Array(t),z=t=>Uint8Array.from(t),L={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||u(t),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 P(t,e,r={}){let n=(e,r,n)=>{let i=L[r];if("function"!=typeof i)throw Error("invalid validator function");let o=t[e];if((!n||void 0!==o)&&!i(o,t))throw Error("param "+String(e)+" is invali
1d. Expected "+r+", got "+o)};for(let[t,r]of Object.entries(e))n(t,r,!1);for(let[t,e]of Object.entries(r))n(t,e,!0);return t}function U(t){let e=new WeakMap;return(r,...n)=>{let i=e.get(r);if(void 0!==i)return i;let o=t(r,...n);return e.set(r,o),o}}let F=BigInt(0),Z=BigInt(1),C=BigInt(2),_=BigInt(3),k=BigInt(4),j=BigInt(5),T=BigInt(8);function V(t,e){let r=t%e;return r>=F?r:e+r}function D(t,e,r){let n=t;for(;e-- >F;)n*=n,n%=r;return n}function K(t,e){if(t===F)throw Error("invert: expected non-zero number");if(e<=F)throw Error("invert: expected positive modulus, got "+e);let r=V(t,e),n=e,i=F,o=Z,l=Z,f=F;for(;r!==F;){let t=n/r,e=n%r,s=i-l*t,a=o-f*t;n=r,r=e,i=l,o=f,l=s,f=a}if(n!==Z)throw Error("invert: does not exist");return V(i,e)}let M=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function W(t,e){let r=void 0!==e?e:t.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function Y(t,e,r=!1,n={}){let i;if(t<=F)throw Error("invalid field: expected ORDER > 0, got "+t);let{nBitLength:o,nByteLength:l}=W(t,e);if(l>2048)throw Error("invalid field: expected ORDER of <= 2048 bytes");let f=Object.freeze({ORDER:t,isLE:r,BITS:o,BYTES:l,MASK:N(o),ZERO:F,ONE:Z,create:e=>V(e,t),isValid:e=>{if("bigint"!=typeof e)throw Error("invalid field element: expected bigint, got "+typeof e);return F<=e&&e<t},is0:t=>t===F,isOdd:t=>(t&Z)===Z,neg:e=>V(-e,t),eql:(t,e)=>t===e,sqr:e=>V(e*e,t),add:(e,r)=>V(e+r,t),sub:(e,r)=>V(e-r,t),mul:(e,r)=>V(e*r,t),pow:(t,e)=>(function(t,e,r){if(r<F)throw Error("invalid exponent, negatives unsupported");if(r===F)return t.ONE;if(r===Z)return e;let n=t.ONE,i=e;for(;r>F;)r&Z&&(n=t.mul(n,i)),i=t.sqr(i),r>>=Z;return n})(f,t,e),div:(e,r)=>V(e*K(r,t),t),sqrN:t=>t*t,addN:(t,e)=>t+e,subN:(t,e)=>t-e,mulN:(t,e)=>t*e,inv:e=>K(e,t),sqrt:n.sqrt||(e=>(i||(i=function(t){if(t%k===_){let e=(t+Z)/k;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%T===j){let e=(t-j)/T;return function(t,r){let n=t.mul(r,C),i=t.pow(n,e),o=t.mul(r,i),l=t.mul(t.mul(o,C),i),f=t.mul(o,t.sub(l,t.ONE));if(!t.eql(t.sqr(f),r))throw Error("Cannot find square root");return f}}return function(t){let e,r,n,i=(t-Z)/C;for(e=t-Z,r=0;e%C===F;e/=C,r++);for(n=C;n<t&&function(t,e,r){if(e<F)throw Error("invalid exponent, negatives unsupported");if(r<=F)throw Error("invalid modulus");if(r===Z)return F;let n=Z;for(;e>F;)e&Z&&(n=n*t%r),t=t*t%r,e>>=Z;return n}(n,i,t)!==t-Z;n++)if(n>1e3)throw Error("Cannot find square root: likely non-prime P");if(1===r){let e=(t+Z)/k;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 o=(e+Z)/C;return function(t,l){if(t.pow(l,i)===t.neg(t.ONE))throw Error("Cannot find square root");let f=r,s=t.pow(t.mul(t.ONE,n),e),a=t.pow(l,o),u=t.pow(l,e);for(;!t.eql(u,t.ONE);){if(t.eql(u,t.ZERO))return t.ZERO;let e=1;for(let r=t.sqr(u);e<f&&!t.eql(r,t.ONE);e++)r=t.sqr(r);let r=t.pow(s,Z<<BigInt(f-e-1));s=t.sqr(r),a=t.mul(a,r),u=t.mul(u,s),f=e}return a}}(t)}(t)),i(f,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})(f,t),cmov:(t,e,r)=>r?e:t,toBytes:t=>r?A(t,l):x(t,l),fromBytes:t=>{if(t.length!==l)throw Error("Field.fromBytes: expected "+l+" bytes, got "+t.length);return r?B(t):v(t)}});return Object.freeze(f)}function G(t){if("bigint"!=typeof t)throw Error("field order must be bigint");return Math.ceil(t.toString(2).length/8)}function J(t){let e=G(t);return e+Math.ceil(e/2)}let Q=BigInt(0),X=BigInt(1);function $(t,e){let r=e.negate();return t?r:e}function tt(t,e){if(!Number.isSafeInteger(t)||t<=0||t>e)throw Error("invalid window size, expected [1.."+e+"], got W="+t)}function te(t,e){tt(t,e);let r=Math.ceil(e/t)+1,n=2**(t-1),i=2**t;return{windows:r,windowSize:n,mask:N(t),maxNumber:i,shiftBy:BigInt(t)}}function tr(t,e,r){let{windowSize:n,mask:i,maxNumber:o,shiftBy:l}=r,f=Number(t&i),s=t>>l;f>n&&(f-=o,s+=X);let a=e*n,u=a+Math.abs(f)-1,d=0===f;return{nextN:s,offset:u,isZero:d,isNeg:f<0,isNegF:e%2!=0,offsetF:a}}let tn=new WeakMap,ti=new WeakMap;function to(t){return ti.get(t)||1}function tl(t){return P(t.Fp,M.reduce((t,e)=>(t[e]="function",t),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"})),P(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...W(t.n,t.nBitLength),...t,...{p:t.Fp.ORDER}})}function tf(t){void 0!==t.lowS&&h("lowS",t.lowS),void 0!==t.prehash&&h("prehash",t.prehash)}
vendor: 8,884 bytes, line 1
1class ts extends Error{constructor(t=""){super(t)}}let ta={Err:ts,_tlv:{encode:(t,e)=>{let{Err:r}=ta;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=c(n);if(i.length/2&128)throw new r("tlv.encode: long form length too big");let o=n>127?c(i.length/2|128):"";return c(t)+o+i+e},decode(t,e){let{Err:r}=ta,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 l=e.subarray(n,n+t);if(l.length!==t)throw new r("tlv.decode: length bytes not complete");if(0===l[0])throw new r("tlv.decode(long): zero leftmost byte");for(let t of l)o=o<<8|t;if(n+=t,o<128)throw new r("tlv.decode(long): not minimal encoding")}else o=i;let l=e.subarray(n,n+o);if(l.length!==o)throw new r("tlv.decode: wrong value length");return{v:l,l:e.subarray(n+o)}}},_int:{encode(t){let{Err:e}=ta;if(t<tu)throw new e("integer: negative integers are not allowed");let r=c(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}=ta;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 v(t)}},toSig(t){let{Err:e,_int:r,_tlv:n}=ta,i=S("signature",t),{v:o,l:l}=n.decode(48,i);if(l.length)throw new e("invalid signature: left bytes after parsing");let{v:f,l:s}=n.decode(2,o),{v:a,l:u}=n.decode(2,s);if(u.length)throw new e("invalid signature: left bytes after parsing");return{r:r.decode(f),s:r.decode(a)}},hexFromSig(t){let{_tlv:e,_int:r}=ta,n=e.encode(2,r.encode(t.r)),i=e.encode(2,r.encode(t.s));return e.encode(48,n+i)}},tu=BigInt(0),td=BigInt(1),th=(BigInt(2),BigInt(3)),tc=(BigInt(4),BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f")),tg=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),tp=BigInt(1),ty=BigInt(2),tm=(t,e)=>(t+e/ty)/e,tw=Y(tc,void 0,void 0,{sqrt:function(t){let e=BigInt(3),r=BigInt(6),n=BigInt(11),i=BigInt(22),o=BigInt(23),l=BigInt(44),f=BigInt(88),s=t*t*t%tc,a=s*s*t%tc,u=D(a,e,tc)*a%tc,d=D(u,e,tc)*a%tc,h=D(d,ty,tc)*s%tc,c=D(h,n,tc)*h%tc,g=D(c,i,tc)*c%tc,p=D(g,l,tc)*g%tc,y=D(p,f,tc)*p%tc,m=D(y,l,tc)*g%tc,w=D(m,e,tc)*a%tc,E=D(w,o,tc)*c%tc,b=D(E,r,tc)*s%tc,v=D(b,ty,tc);if(!tw.eql(tw.sqr(v),t))throw Error("Cannot find square root");return v}}),tE=function(t,e){let r=e=>(function(t){let e=function(t){let e=tl(t);return P(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 l(t){return V(t,n)}let{ProjectivePoint:f,normPrivateKeyToScalar:d,weierstrassEquation:c,isWithinCurveOrder:g}=function(t){var e;let r=function(t){let e=tl(t);P(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=Y(r.n,r.nBitLength),o=r.toBytes||((t,e,r)=>{let i=e.toAffine();return I(Uint8Array.from([4]),n.toBytes(i.x),n.toBytes(i.y))}),l=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 f(t){let{a:e,b:i}=r,o=n.sqr(t),l=n.mul(o,t);return n.add(n.add(l,n.mul(t,e)),i)}if(!n.eql(n.sqr(r.Gy),f(r.Gx)))throw Error("bad generator point: equation left != right");function d(t){let e,{allowedPrivateKeyLengths:n,nByteLength:i,wrapPrivateKey:o,n:l}=r;if(n&&"bigint"!=typeof t){if(u(t)&&(t=m(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:v(S("private key",t,i))}catch(e){throw Error("invalid private key, expected hex or "+i+" bytes, got "+typeof t)}return o&&(e=V(e,l)),R("private key",e,td,l),e}function c(t){if(!(t instanceof y))throw Error("ProjectivePoint expected")}let g=U((t,e)=>{let{px:r,py:i,pz:o}=t;if(n.eql(o,n.ONE))return{x:r,y:i};let l=t.is0();null==e&&(e=l?n.ONE:n.inv(o));let f=n.mul(r,e),s=n.mul(i,e),a=n.mul(o,e);if(l)return{x:n.ZERO,y:n.ZERO};if(!n.eql(a,n.ONE))throw Error("invZ was invalid");return{x:f,y:s}}),p=U(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),l=f(e);if(!n.eql(o,l))throw Error("bad point: equation left != right");if(!t.isTorsionFree())throw Error("bad point: not in prime-order subgroup");return!0});class y{constructor(t,e,r){if(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");this.px=t,this.py=e,this.pz=r,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 y)throw Error("projective point not allowed");let i=t=>n.eql(t,n.ZERO);return i(e)&&i(r)?y.ZERO:new y(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(y.fromAffine)}static fromHex(t){let e=y.fromAffine(l(S("pointHex",t)));return e.assertValidity(),e}static fromPrivateKey(t){return y.BASE.multiply(d(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=function(t){let e;for(e=0;t>s;t>>=a,e+=1);return e}(BigInt(r.length)),l=o>12?o-3:o>4?o-2:o?2:1,f=N(l),u=Array(Number(f)+1).fill(i),d=Math.floor((e.BITS-1)/l)*l,h=i;for(let t=d;t>=0;t-=l){u.fill(i);for(let e=0;e<n.length;e++){let i=Number(n[e]>>BigInt(t)&f);u[i]=u[i].add(r[e])}let e=i;for(let t=u.length-1,r=i;t>0;t--)r=r.add(u[t]),e=e.add(r);if(h=h.add(e),0!==t)for(let t=0;t<l;t++)h=h.double()}return h}(y,i,t,e)}_setWindowSize(t){E.setWindowSize(this,t)}assertValidity(){p(this)}hasEvenY(){let{y:t}=this.toAffine();if(n.isOdd)return!n.isOdd(t);throw Error("Field doesn't support isOdd")}equals(t){c(t);let{px:e,py:r,pz:i}=this,{px:o,py:l,pz:f}=t,s=n.eql(n.mul(e,f),n.mul(o,i)),a=n.eql(n.mul(r,f),n.mul(l,i));return s&&a}negate(){return new y(this.px,n.neg(this.py),this.pz)}double(){let{a:t,b:e}=r,i=n.mul(e,th),{px:o,py:l,pz:f}=this,s=n.ZERO,a=n.ZERO,u=n.ZERO,d=n.mul(o,o),h=n.mul(l,l),c=n.mul(f,f),g=n.mul(o,l);return g=n.add(g,g),u=n.mul(o,f),u=n.add(u,u),s=n.mul(t,u),a=n.mul(i,c),a=n.add(s,a),s=n.sub(h,a),a=n.add(h,a),a=n.mul(s,a),s=n.mul(g,s),u=n.mul(i,u),c=n.mul(t,c),g=n.sub(d,c),g=n.mul(t,g),g=n.add(g,u),u=n.add(d,d),d=n.add(u,d),d=n.add(d,c),d=n.mul(d,g),a=n.add(a,d),c=n.mul(l,f),c=n.add(c,c),d=n.mul(c,g),s=n.sub(s,d),u=n.mul(c,h),u=n.add(u,u),new y(s,a,u=n.add(u,u))}add(t){c(t);let{px:e,py:i,pz:o}=this,{px:l,py:f,pz:s}=t,a=n.ZERO,u=n.ZERO,d=n.ZERO,h=r.a,g=n.mul(r.b,th),p=n.mul(e,l),m=n.mul(i,f),w=n.mul(o,s),E=n.add(e,i),b=n.add(l,f);E=n.mul(E,b),b=n.add(p,m),E=n.sub(E,b),b=n.add(e,o);let v=n.add(l,s);return b=n.mul(b,v),v=n.add(p,w),b=n.sub(b,v),v=n.add(i,o),a=n.add(f,s),v=n.mul(v,a),a=n.add(m,w),v=n.sub(v,a),d=n.mul(h,b),a=n.mul(g,w),d=n.add(a,d),a=n.sub(m,d),d=n.add(m,d),u=n.mul(a,d),m=n.add(p,p),m=n.add(m,p),w=n.mul(h,w),b=n.mul(g,b),m=n.add(m,w),w=n.sub(p,w),w=n.mul(h,w),b=n.add(b,w),p=n.mul(m,b),u=n.add(u,p),p=n.mul(v,b),a=n.mul(E,a),a=n.sub(a,p),p=n.mul(E,m),d=n.mul(v,d),new y(a,u,d=n.add(d,p))}subtract(t){return this.add(t.negate())}is0(){return this.equals(y.ZERO)}wNAF(t){return E.wNAFCached(this,t,y.normalizeZ)}multiplyUnsafe(t){let{endo:e,n:i}=r;R("scalar",t,tu,i);let o=y.ZERO;if(t===tu)return o;if(this.is0()||t===td)return this;if(!e||E.hasPrecomputes(this))return E.wNAFCachedUnsafe(this,t,y.normalizeZ);let{k1neg:l,k1:f,k2neg:s,k2:a}=e.splitScalar(t),u=o,d=o,h=this;for(;f>tu||a>tu;)f&td&&(u=u.add(h)),a&td&&(d=d.add(h)),h=h.double(),f>>=td,a>>=td;return l&&(u=u.negate()),s&&(d=d.negate()),d=new y(n.mul(d.px,e.beta),d.py,d.pz),u.add(d)}
vendor: 4,281 bytes, line 1
1multiply(t){let e,i,{endo:o,n:l}=r;if(R("scalar",t,td,l),o){let{k1neg:r,k1:l,k2neg:f,k2:s}=o.splitScalar(t),{p:a,f:u}=this.wNAF(l),{p:d,f:h}=this.wNAF(s);a=E.constTimeNegate(r,a),d=E.constTimeNegate(f,d),d=new y(n.mul(d.px,o.beta),d.py,d.pz),e=a.add(d),i=u.add(h)}else{let{p:r,f:n}=this.wNAF(t);e=r,i=n}return y.normalizeZ([e,i])[0]}multiplyAndAddUnsafe(t,e,r){let n=y.BASE,i=(t,e)=>e!==tu&&e!==td&&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 g(this,t)}isTorsionFree(){let{h:t,isTorsionFree:e}=r;if(t===td)return!0;if(e)return e(y,this);throw Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h:t,clearCofactor:e}=r;return t===td?this:e?e(y,this):this.multiplyUnsafe(r.h)}toRawBytes(t=!0){return h("isCompressed",t),this.assertValidity(),o(y,this,t)}toHex(t=!0){return h("isCompressed",t),m(this.toRawBytes(t))}}y.BASE=new y(r.Gx,r.Gy,n.ONE),y.ZERO=new y(n.ZERO,n.ONE,n.ZERO);let w=r.nBitLength,E=(e=r.endo?Math.ceil(w/2):w,{constTimeNegate:$,hasPrecomputes:t=>1!==to(t),unsafeLadder(t,e,r=y.ZERO){let n=t;for(;e>Q;)e&X&&(r=r.add(n)),n=n.double(),e>>=X;return r},precomputeWindow(t,r){let{windows:n,windowSize:i}=te(r,e),o=[],l=t,f=l;for(let t=0;t<n;t++){f=l,o.push(f);for(let t=1;t<i;t++)f=f.add(l),o.push(f);l=f.double()}return o},wNAF(t,r,n){let i=y.ZERO,o=y.BASE,l=te(t,e);for(let t=0;t<l.windows;t++){let{nextN:e,offset:f,isZero:s,isNeg:a,isNegF:u,offsetF:d}=tr(n,t,l);n=e,s?o=o.add($(u,r[d])):i=i.add($(a,r[f]))}return{p:i,f:o}},wNAFUnsafe(t,r,n,i=y.ZERO){let o=te(t,e);for(let t=0;t<o.windows&&n!==Q;t++){let{nextN:e,offset:l,isZero:f,isNeg:s}=tr(n,t,o);if(n=e,!f){let t=r[l];i=i.add(s?t.negate():t)}}return i},getPrecomputes(t,e,r){let n=tn.get(e);return n||(n=this.precomputeWindow(e,t),1!==t&&tn.set(e,r(n))),n},wNAFCached(t,e,r){let n=to(t);return this.wNAF(n,this.getPrecomputes(n,t,r),e)},wNAFCachedUnsafe(t,e,r,n){let i=to(t);return 1===i?this.unsafeLadder(t,e,n):this.wNAFUnsafe(i,this.getPrecomputes(i,t,r),e,n)},setWindowSize(t,r){tt(r,e),ti.set(t,r),tn.delete(t)}});return{CURVE:r,ProjectivePoint:y,normPrivateKeyToScalar:d,weierstrassEquation:f,isWithinCurveOrder:function(t){return q(t,td,r.n)}}}({...e,toBytes(t,e,n){let i=e.toAffine(),o=r.toBytes(i.x);return(h("isCompressed",n),n)?I(Uint8Array.from([e.hasEvenY()?2:3]),o):I(Uint8Array.from([4]),o,r.toBytes(i.y))},fromBytes(t){let e=t.length,n=t[0],l=t.subarray(1);if(e===i&&(2===n||3===n)){let t,e=v(l);if(!q(e,td,r.ORDER))throw Error("Point is not on curve");let i=c(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&td)===td)&&(t=r.neg(t)),{x:e,y:t}}if(e===o&&4===n)return{x:r.fromBytes(l.subarray(0,r.BYTES)),y:r.fromBytes(l.subarray(r.BYTES,2*r.BYTES))};throw Error("invalid Point, expected length of "+i+", or uncompressed "+o+", got "+e)}}),p=t=>m(x(t,e.nByteLength)),y=(t,e,r)=>v(t.slice(e,r));class w{constructor(t,e,r){R("r",t,td,n),R("s",e,td,n),this.r=t,this.s=e,null!=r&&(this.recovery=r),Object.freeze(this)}static fromCompact(t){let r=e.nByteLength;return new w(y(t=S("compactSignature",t,2*r),0,r),y(t,r,2*r))}static fromDER(t){let{r:e,s:r}=ta.toSig(S("DER",t));return new w(e,r)}assertValidity(){}addRecoveryBit(t){return new w(this.r,this.s,t)}recoverPublicKey(t){let{r:i,s:o,recovery:s}=this,a=L(S("msgHash",t));if(null==s||![0,1,2,3].includes(s))throw Error("recovery id invalid");let u=2===s||3===s?i+e.n:i;if(u>=r.ORDER)throw Error("recovery id 2 or 3 invalid");let d=(1&s)==0?"02":"03",h=f.fromHex(d+p(u)),c=K(u,n),g=l(-a*c),y=l(o*c),m=f.BASE.multiplyAndAddUnsafe(h,g,y);if(!m)throw Error("point at infinify");return m.assertValidity(),m}hasHighS(){return this.s>n>>td}normalizeS(){return this.hasHighS()?new w(this.r,l(-this.s),this.recovery):this}toDERRawBytes(){return b(this.toDERHex())}toDERHex(){return ta.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return b(this.toCompactHex())}toCompactHex(){return p(this.r)+p(this.s)}}function E(t){let e=u(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 f}let O=e.bits2int||function(t){if(t.length>8192)throw Error("input is too large");let r=v(t),n=8*t.length-e.nBitLength;return n>0?r>>BigInt(n):r}
1,L=e.bits2int_modN||function(t){return l(O(t))},F=N(e.nBitLength);function C(t){return R("num < 2^"+e.nBitLength,t,tu,F),x(t,e.nByteLength)}let _={lowS:e.lowS,prehash:!1},k={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(E(t))throw Error("first arg must be private key");if(!E(e))throw Error("second arg must be public key");return f.fromHex(e).multiply(d(t)).toRawBytes(r)},sign:function(t,i,o=_){let{seed:s,k2sig:a}=function(t,i,o=_){if(["recovered","canonical"].some(t=>t in o))throw Error("sign() legacy options not supported");let{hash:s,randomBytes:a}=e,{lowS:u,prehash:h,extraEntropy:c}=o;null==u&&(u=!0),t=S("msgHash",t),tf(o),h&&(t=S("prehashed msgHash",s(t)));let p=L(t),y=d(i),m=[C(y),C(p)];if(null!=c&&!1!==c){let t=!0===c?a(r.BYTES):c;m.push(S("extraEntropy",t))}return{seed:I(...m),k2sig:function(t){var e;let r=O(t);if(!g(r))return;let i=K(r,n),o=f.BASE.multiply(r).toAffine(),s=l(o.x);if(s===tu)return;let a=l(i*l(p+s*y));if(a===tu)return;let d=2*(o.x!==s)|Number(o.y&td),h=a;return u&&a>n>>td&&(h=(e=a)>n>>td?l(-e):e,d^=1),new w(s,h,d)}}}(t,i,o);return(function(t,e,r){if("number"!=typeof t||t<2)throw Error("hashLen must be a number");if("number"!=typeof e||e<2)throw Error("qByteLen must be a number");if("function"!=typeof r)throw Error("hmacFn must be a function");let n=H(t),i=H(t),o=0,l=()=>{n.fill(1),i.fill(0),o=0},f=(...t)=>r(i,n,...t),s=(t=H(0))=>{i=f(z([0]),t),n=f(),0!==t.length&&(i=f(z([1]),t),n=f())},a=()=>{if(o++>=1e3)throw Error("drbg: tried 1000 values");let t=0,r=[];for(;t<e;){let e=(n=f()).slice();r.push(e),t+=n.length}return I(...r)};return(t,e)=>{let r;for(l(),s(t);!(r=e(a()));)s();return l(),r}})(e.hash.outputLen,e.nByteLength,e.hmac)(s,a)},verify:function(t,r,i,o=k){let s,a;r=S("msgHash",r),i=S("publicKey",i);let{lowS:d,prehash:h,format:c}=o;if(tf(o),"strict"in o)throw Error("options.strict was renamed to lowS");if(void 0!==c&&"compact"!==c&&"der"!==c)throw Error("format must be compact or der");let g="string"==typeof t||u(t),p=!g&&!c&&"object"==typeof t&&null!==t&&"bigint"==typeof t.r&&"bigint"==typeof t.s;if(!g&&!p)throw Error("invalid signature, expected Uint8Array, hex string or Signature instance");try{if(p&&(a=new w(t.r,t.s)),g){try{"compact"!==c&&(a=w.fromDER(t))}catch(t){if(!(t instanceof ta.Err))throw t}a||"der"===c||(a=w.fromCompact(t))}s=f.fromHex(i)}catch(t){return!1}if(!a||d&&a.hasHighS())return!1;h&&(r=e.hash(r));let{r:y,s:m}=a,E=L(r),b=K(m,n),v=l(E*b),B=l(y*b),x=f.BASE.multiplyAndAddUnsafe(s,v,B)?.toAffine();return!!x&&l(x.x)===y},ProjectivePoint:f,Signature:w,utils:{isValidPrivateKey(t){try{return d(t),!0}catch(t){return!1}},normPrivateKeyToScalar:d,randomPrivateKey:()=>{let t=J(e.n);return function(t,e,r=!1){let n=t.length,i=G(e),o=J(e);if(n<16||n<o||n>1024)throw Error("expected "+o+"-1024 bytes of input, got "+n);let l=V(r?B(t):v(t),e-Z)+Z;return r?A(l,i):x(l,i)}(e.randomBytes(t),e.n)},precompute:(t=8,e=f.BASE)=>(e._setWindowSize(t),e.multiply(BigInt(3)),e)}}})({...t,...{hash:e,hmac:(t,...r)=>f(e,t,(0,o.Id)(...r)),randomBytes:o.po}});return{...r(e),create:r}}({a:BigInt(0),b:BigInt(7),Fp:tw,n:tg,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:t=>{let e=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-tp*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),n=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=BigInt("0x100000000000000000000000000000000"),o=tm(e*t,tg),l=tm(-r*t,tg),f=V(t-o*e-l*n,tg),s=V(-o*r-l*e,tg),a=f>i,u=s>i;if(a&&(f=tg-f),u&&(s=tg-s),f>i||s>i)throw Error("splitScalar: Endomorphism failed, k="+t);return{k1neg:a,k1:f,k2neg:u,k2:s}}}},n.sc),tb=(BigInt(0),{}),tv=t=>t.toRawBytes(!0).slice(1),tB=t=>mod(t,tg),tx=tE.ProjectivePoint}}]);

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.