PageSourceSearch

https://dogtv.ai/_next/static/chunks/06deo-vxdvlft.js?dpl=7deb4a07-f440-4018-a496-d23600b16071

js dogtv.ai collected 2026-10-05 15:14:27 UTC 38,393 bytes, 1 lines download raw bytes

vendor: 4,818 bytes, line 1
1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,337575,44314,140965,492204,573230,747663,241826,e=>{"use strict";var t=e.i(470525);class r extends t.Hash{constructor(e,r,i,n){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=r,this.padOffset=i,this.isLE=n,this.buffer=new Uint8Array(e),this.view=(0,t.createView)(this.buffer)}update(e){(0,t.aexists)(this),e=(0,t.toBytes)(e),(0,t.abytes)(e);let{view:r,buffer:i,blockLen:n}=this,o=e.length;for(let s=0;s<o;){let a=Math.min(n-this.pos,o-s);if(a===n){let r=(0,t.createView)(e);for(;n<=o-s;s+=n)this.process(r,s);continue}i.set(e.subarray(s,s+a),this.pos),this.pos+=a,s+=a,this.pos===n&&(this.process(r,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,t.aexists)(this),(0,t.aoutput)(e,this),this.finished=!0;let{buffer:r,view:i,blockLen:n,isLE:o}=this,{pos:s}=this;r[s++]=128,(0,t.clean)(this.buffer.subarray(s)),this.padOffset>n-s&&(this.process(i,0),s=0);for(let e=s;e<n;e++)r[e]=0;!function(e,t,r,i){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,r,i);let n=BigInt(32),o=BigInt(0xffffffff),s=Number(r>>n&o),a=Number(r&o),f=4*!!i,l=4*!i;e.setUint32(t+f,s,i),e.setUint32(t+l,a,i)}(i,n-8,BigInt(8*this.length),o),this.process(i,0);let a=(0,t.createView)(e),f=this.outputLen;if(f%4)throw Error("_sha2: outputLen should be aligned to 32bit");let l=f/4,d=this.get();if(l>d.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<l;e++)a.setUint32(4*e,d[e],o)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:r,length:i,finished:n,destroyed:o,pos:s}=this;return e.destroyed=o,e.finished=n,e.length=i,e.pos=s,i%t&&e.buffer.set(r),e}clone(){return this._cloneInto()}}let i=Uint32Array.from([0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19]),n=Uint32Array.from([0xc1059ed8,0x367cd507,0x3070dd17,0xf70e5939,0xffc00b31,0x68581511,0x64f98fa7,0xbefa4fa4]),o=Uint32Array.from([0xcbbb9d5d,0xc1059ed8,0x629a292a,0x367cd507,0x9159015a,0x3070dd17,0x152fecd8,0xf70e5939,0x67332667,0xffc00b31,0x8eb44a87,0x68581511,0xdb0c2e0d,0x64f98fa7,0x47b5481d,0xbefa4fa4]),s=Uint32Array.from([0x6a09e667,0xf3bcc908,0xbb67ae85,0x84caa73b,0x3c6ef372,0xfe94f82b,0xa54ff53a,0x5f1d36f1,0x510e527f,0xade682d1,0x9b05688c,0x2b3e6c1f,0x1f83d9ab,0xfb41bd6b,0x5be0cd19,0x137e2179]);var a=e.i(709361);let f=Uint32Array.from([0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2]),l=new Uint32Array(64);class d extends r{constructor(e=32){super(64,e,8,!1),this.A=0|i[0],this.B=0|i[1],this.C=0|i[2],this.D=0|i[3],this.E=0|i[4],this.F=0|i[5],this.G=0|i[6],this.H=0|i[7]}get(){let{A:e,B:t,C:r,D:i,E:n,F:o,G:s,H:a}=this;return[e,t,r,i,n,o,s,a]}set(e,t,r,i,n,o,s,a){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|i,this.E=0|n,this.F=0|o,this.G=0|s,this.H=0|a}process(e,r){for(let t=0;t<16;t++,r+=4)l[t]=e.getUint32(r,!1);for(let e=16;e<64;e++){let r=l[e-15],i=l[e-2],n=(0,t.rotr)(r,7)^(0,t.rotr)(r,18)^r>>>3,o=(0,t.rotr)(i,17)^(0,t.rotr)(i,19)^i>>>10;l[e]=o+l[e-7]+n+l[e-16]|0}let{A:i,B:n,C:o,D:s,E:a,F:d,G:c,H:u}=this;for(let e=0;e<64;e++){var h,b,x,m;let r=u+((0,t.rotr)(a,6)^(0,t.rotr)(a,11)^(0,t.rotr)(a,25))+((h=a)&d^~h&c)+f[e]+l[e]|0,p=((0,t.rotr)(i,2)^(0,t.rotr)(i,13)^(0,t.rotr)(i,22))+((b=i)&(x=n)^b&(m=o)^x&m)|0;u=c,c=d,d=a,a=s+r|0,s=o,o=n,n=i,i=r+p|0}i=i+this.A|0,n=n+this.B|0,o=o+this.C|0,s=s+this.D|0,a=a+this.E|0,d=d+this.F|0,c=c+this.G|0,u=u+this.H|0,this.set(i,n,o,s,a,d,c,u)}roundClean(){(0,t.clean)(l)}destroy(){this.set(0,0,0,0,0,0,0,0),(0,t.clean)(this.buffer)}}class c extends d{constructor(){super(28),this.A=0|n[0],this.B=0|n[1],this.C=0|n[2],this.D=0|n[3],this.E=0|n[4],this.F=0|n[5],this.G=0|n[6],this.H=0|n[7]}}let u=a.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b89
16f","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(e=>BigInt(e))),h=u[0],b=u[1],x=new Uint32Array(80),m=new Uint32Array(80);class p extends r{constructor(e=64){super(128,e,16,!1),this.Ah=0|s[0],this.Al=0|s[1],this.Bh=0|s[2],this.Bl=0|s[3],this.Ch=0|s[4],this.Cl=0|s[5],this.Dh=0|s[6],this.Dl=0|s[7],this.Eh=0|s[8],this.El=0|s[9],this.Fh=0|s[10],this.Fl=0|s[11],this.Gh=0|s[12],this.Gl=0|s[13],this.Hh=0|s[14],this.Hl=0|s[15]}get(){let{Ah:e,Al:t,Bh:r,Bl:i,Ch:n,Cl:o,Dh:s,Dl:a,Eh:f,El:l,Fh:d,Fl:c,Gh:u,Gl:h,Hh:b,Hl:x}=this;return[e,t,r,i,n,o,s,a,f,l,d,c,u,h,b,x]}set(e,t,r,i,n,o,s,a,f,l,d,c,u,h,b,x){this.Ah=0|e,this.Al=0|t,this.Bh=0|r,this.Bl=0|i,this.Ch=0|n,this.Cl=0|o,this.Dh=0|s,this.Dl=0|a,this.Eh=0|f,this.El=0|l,this.Fh=0|d,this.Fl=0|c,this.Gh=0|u,this.Gl=0|h,this.Hh=0|b,this.Hl=0|x}process(e,t){for(let r=0;r<16;r++,t+=4)x[r]=e.getUint32(t),m[r]=e.getUint32(t+=4);for(let e=16;e<80;e++){let t=0|x[e-15],r=0|m[e-15],i=a.rotrSH(t,r,1)^a.rotrSH(t,r,8)^a.shrSH(t,r,7),n=a.rotrSL(t,r,1)^a.rotrSL(t,r,8)^a.shrSL(t,r,7),o=0|x[e-2],s=0|m[e-2],f=a.rotrSH(o,s,19)^a.rotrBH(o,s,61)^a.shrSH(o,s,6),l=a.rotrSL(o,s,19)^a.rotrBL(o,s,61)^a.shrSL(o,s,6),d=a.add4L(n,l,m[e-7],m[e-16]),c=a.add4H(d,i,f,x[e-7],x[e-16]);x[e]=0|c,m[e]=0|d}let{Ah:r,Al:i,Bh:n,Bl:o,Ch:s,Cl:f,Dh:l,Dl:d,Eh:c,El:u,Fh:p,Fl:g,Gh:y,Gl:w,Hh:E,Hl:B}=this;for(let e=0;e<80;e++){let t=a.rotrSH(c,u,14)^a.rotrSH(c,u,18)^a.rotrBH(c,u,41),v=a.rotrSL(c,u,14)^a.rotrSL(c,u,18)^a.rotrBL(c,u,41),S=c&p^~c&y,A=u&g^~u&w,O=a.add5L(B,v,A,b[e],m[e]),I=a.add5H(O,E,t,S,h[e],x[e]),H=0|O,R=a.rotrSH(r,i,28)^a.rotrBH(r,i,34)^a.rotrBH(r,i,39),T=a.rotrSL(r,i,28)^a.rotrBL(r,i,34)^a.rotrBL(r,i,39),N=r&n^r&s^n&s,q=i&o^i&f^o&f;E=0|y,B=0|w,y=0|p,w=0|g,p=0|c,g=0|u,({h:c,l:u}=a.add(0|l,0|d,0|I,0|H)),l=0|s,d=0|f,s=0|n,f=0|o,n=0|r,o=0|i;let L=a.add3L(H,T,q);r=a.add3H(L,I,R,N),i=0|L}({h:r,l:i}=a.add(0|this.Ah,0|this.Al,0|r,0|i)),({h:n,l:o}=a.add(0|this.Bh,0|this.Bl,0|n,0|o)),({h:s,l:f}=a.add(0|this.Ch,0|this.Cl,0|s,0|f)),({h:l,l:d}=a.add(0|this.Dh,0|this.Dl,0|l,0|d)),({h:c,l:u}=a.add(0|this.Eh,0|this.El,0|c,0|u)),({h:p,l:g}=a.add(0|this.Fh,0|this.Fl,0|p,0|g)),({h:y,l:w}=a.add(0|this.Gh,0|this.Gl,0|y,0|w)),({h:E,l:B}=a.add(0|this.Hh,0|this.Hl,0|E,0|B)),this.set(r,i,n,o,s,f,l,d,c,u,p,g,y,w,E,B)}roundClean(){(0,t.clean)(x,m)}destroy(){(0,t.clean)(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class g extends p{constructor(){super(48),this.Ah=0|o[0],this.Al=0|o[1],this.Bh=0|o[2],this.Bl=0|o[3],this.Ch=0|o[4],this.Cl=0|o[5],this.Dh=0|o[6],this.Dl=0|o[7],this.Eh=0|o[8],this.El=0|o[9],this.Fh=0|o[10],this.Fl=0|o[11],this.Gh=0|o[12],this.Gl=0|o[13],this.Hh=0|o[14],this.Hl=0|o[15]}}let y=(0,t.createHasher)(()=>new d),w=(0,t.createHasher)(()=>new c),E=(0,t.createHasher)(()=>new p),B=(0,t.createHasher)(()=>new g);e.s(["SHA224",0,c,"SHA256",0,d,"sha224",0,w,"sha256",0,y,"sha384",0,B,"sha512",0,E],44314);var v=t;class S extends v.Hash{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,v.ahash)(e);const r=(0,v.toBytes)(t);if(this.iHash=e.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;const i=this.blockLen,n=new Uint8Array(i);n.set(r.length>i?e.create().update(r).digest():r);for(let e=0;e<n.length;e++)n[e]^=54;this.iHash.update(n),this.oHash=e.create();for(let e=0;e<n.length;e++)n[e]^=106;this.oHash.update(n),(0,v.clean)(n)}update(e){return(0,v.aexists)(this),this.iHash.update(e),this}digestInto(e){(0,v.aexists)(this),(0,v.abytes)(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));let{oHash:t,iHash:r,finished:i,destroyed:n,blockLen:o,outputLen:s}=this;return e.finished=i,e.destroyed=n,e.blockLen=o,e.outputLen=s,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}let A=(e,t,r)=>new S(e,t).update(r).digest();A.create=(e,t)=>
1new S(e,t),e.s(["hmac",0,A],140965);var O=e.i(537792);let I=BigInt(0),H=BigInt(1),R=BigInt(2),T=BigInt(3),N=BigInt(4),q=BigInt(5),L=BigInt(8);function C(e,t){let r=e%t;return r>=I?r:t+r}function U(e,t,r){let i=e;for(;t-- >I;)i*=i,i%=r;return i}function D(e,t){if(e===I)throw Error("invert: expected non-zero number");if(t<=I)throw Error("invert: expected positive modulus, got "+t);let r=C(e,t),i=t,n=I,o=H,s=H,a=I;for(;r!==I;){let e=i/r,t=i%r,f=n-s*e,l=o-a*e;i=r,r=t,n=s,o=a,s=f,a=l}if(i!==H)throw Error("invert: does not exist");return C(n,t)}function F(e,t){let r=(e.ORDER+H)/N,i=e.pow(t,r);if(!e.eql(e.sqr(i),t))throw Error("Cannot find square root");return i}function Z(e,t){let r=(e.ORDER-q)/L,i=e.mul(t,R),n=e.pow(i,r),o=e.mul(t,n),s=e.mul(e.mul(o,R),n),a=e.mul(o,e.sub(s,e.ONE));if(!e.eql(e.sqr(a),t))throw Error("Cannot find square root");return a}let P=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function z(e){let t=P.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,O.validateObject)(e,t)}function _(e,t,r=!1){let i=Array(t.length).fill(r?e.ZERO:void 0),n=t.reduce((t,r,n)=>e.is0(r)?t:(i[n]=t,e.mul(t,r)),e.ONE),o=e.inv(n);return t.reduceRight((t,r,n)=>e.is0(r)?t:(i[n]=e.mul(t,i[n]),e.mul(t,r)),o),i}function k(e,t){let r=(e.ORDER-H)/R,i=e.pow(t,r),n=e.eql(i,e.ONE),o=e.eql(i,e.ZERO),s=e.eql(i,e.neg(e.ONE));if(!n&&!o&&!s)throw Error("invalid Legendre symbol result");return n?1:o?0:-1}function V(e,r){void 0!==r&&(0,t.anumber)(r);let i=void 0!==r?r:e.toString(2).length,n=Math.ceil(i/8);return{nBitLength:i,nByteLength:n}}function j(e,t,r=!1,i={}){let n;if(e<=I)throw Error("invalid field: expected ORDER > 0, got "+e);let{nBitLength:o,nByteLength:s}=V(e,t);if(s>2048)throw Error("invalid field: expected ORDER of <= 2048 bytes");let a=Object.freeze({ORDER:e,isLE:r,BITS:o,BYTES:s,MASK:(0,O.bitMask)(o),ZERO:I,ONE:H,create:t=>C(t,e),isValid:t=>{if("bigint"!=typeof t)throw Error("invalid field element: expected bigint, got "+typeof t);return I<=t&&t<e},is0:e=>e===I,isOdd:e=>(e&H)===H,neg:t=>C(-t,e),eql:(e,t)=>e===t,sqr:t=>C(t*t,e),add:(t,r)=>C(t+r,e),sub:(t,r)=>C(t-r,e),mul:(t,r)=>C(t*r,e),pow:(e,t)=>(function(e,t,r){if(r<I)throw Error("invalid exponent, negatives unsupported");if(r===I)return e.ONE;if(r===H)return t;let i=e.ONE,n=t;for(;r>I;)r&H&&(i=e.mul(i,n)),n=e.sqr(n),r>>=H;return i})(a,e,t),div:(t,r)=>C(t*D(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>D(t,e),sqrt:i.sqrt||(t=>(n||(n=e%N===T?F:e%L===q?Z:function(e){if(e<BigInt(3))throw Error("sqrt is not defined for small field");let t=e-H,r=0;for(;t%R===I;)t/=R,r++;let i=R,n=j(e);for(;1===k(n,i);)if(i++>1e3)throw Error("Cannot find square root: probably non-prime P");if(1===r)return F;let o=n.pow(i,t),s=(t+H)/R;return function(e,i){if(e.is0(i))return i;if(1!==k(e,i))throw Error("Cannot find square root");let n=r,a=e.mul(e.ONE,o),f=e.pow(i,t),l=e.pow(i,s);for(;!e.eql(f,e.ONE);){if(e.is0(f))return e.ZERO;let t=1,r=e.sqr(f);for(;!e.eql(r,e.ONE);)if(t++,r=e.sqr(r),t===n)throw Error("Cannot find square root");let i=H<<BigInt(n-t-1),o=e.pow(a,i);n=t,a=e.sqr(o),f=e.mul(f,a),l=e.mul(l,o)}return l}}(e)),n(a,t))),toBytes:e=>r?(0,O.numberToBytesLE)(e,s):(0,O.numberToBytesBE)(e,s),fromBytes:e=>{if(e.length!==s)throw Error("Field.fromBytes: expected "+s+" bytes, got "+e.length);return r?(0,O.bytesToNumberLE)(e):(0,O.bytesToNumberBE)(e)},invertBatch:e=>_(a,e),cmov:(e,t,r)=>r?t:e});return Object.freeze(a)}function M(e){if("bigint"!=typeof e)throw Error("field order must be bigint");return Math.ceil(e.toString(2).length/8)}function G(e){let t=M(e);return t+Math.ceil(t/2)}function K(e,t,r=!1){let i=e.length,n=M(t),o=G(t);if(i<16||i<o||i>1024)throw Error("expected "+o+"-1024 bytes of input, got "+i);let s=C(r?(0,O.bytesToNumberLE)(e):(0,O.bytesToNumberBE)(e),t-H)+H;return r?(0,O.numberToBytesLE)(s,n):(0,O.numberToBytesBE)(s,n)}e.s(["Field",0,j,"FpInvertBatch",0,_,"getMinHashLength",0,G,"invert",0,D,"mapHashToField",0,K,"mod",0,C,"nLength",0,V,"pow2",0,U,"validateField",0,z],492204);let W=BigInt(0),Y=BigInt(1);function X(e,t){let r=t.negate();return e?r:t}function J(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw Error("invalid window size, expected [1.."+t+"], got W="+e)}function Q(e,t){J(e,t);let r=Math.ceil(t/e)+1,i=2**(e-1),n=2**e;return{windows:r,windowSize:i,mask:(0,O.bitMask)(e),maxNumber:n,shiftBy:BigInt(e)}}function $(e,t,r){let{windowSize:i,mask:n,maxNumber:o,shiftBy:s}=r,a=Number(e&n),f=e>>s;a>i&&(a-=o,f+=Y);let l=t*i,d=l+Math.abs(a)-1,c=0===a;return{nextN:f,offset:d,isZero:c,isNeg:a<0,isNegF:t%2!=0,offsetF:l}}let ee=new WeakMap,et=new WeakMap;function er(e){return et.get(e)||1}function ei(e){return z(e.Fp),(0,O.validateObject)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...V(e.n,e.nBitLength),...e,...{p:e.Fp.ORDER}})}function en(e){void 0!==e.lowS&&(0,O.abool)("lowS",e.lowS),void 0!==e.prehash&&(0,O.abool)("prehash",e.prehash)}
1let eo={Err:class extends Error{constructor(e=""){super(e)}},_tlv:{encode:(e,t)=>{let{Err:r}=eo;if(e<0||e>256)throw new r("tlv.encode: wrong tag");if(1&t.length)throw new r("tlv.encode: unpadded data");let i=t.length/2,n=(0,O.numberToHexUnpadded)(i);if(n.length/2&128)throw new r("tlv.encode: long form length too big");let o=i>127?(0,O.numberToHexUnpadded)(n.length/2|128):"";return(0,O.numberToHexUnpadded)(e)+o+n+t},decode(e,t){let{Err:r}=eo,i=0;if(e<0||e>256)throw new r("tlv.encode: wrong tag");if(t.length<2||t[i++]!==e)throw new r("tlv.decode: wrong tlv");let n=t[i++],o=0;if(128&n){let e=127&n;if(!e)throw new r("tlv.decode(long): indefinite length not supported");if(e>4)throw new r("tlv.decode(long): byte length is too big");let s=t.subarray(i,i+e);if(s.length!==e)throw new r("tlv.decode: length bytes not complete");if(0===s[0])throw new r("tlv.decode(long): zero leftmost byte");for(let e of s)o=o<<8|e;if(i+=e,o<128)throw new r("tlv.decode(long): not minimal encoding")}else o=n;let s=t.subarray(i,i+o);if(s.length!==o)throw new r("tlv.decode: wrong value length");return{v:s,l:t.subarray(i+o)}}},_int:{encode(e){let{Err:t}=eo;if(e<ea)throw new t("integer: negative integers are not allowed");let r=(0,O.numberToHexUnpadded)(e);if(8&Number.parseInt(r[0],16)&&(r="00"+r),1&r.length)throw new t("unexpected DER parsing assertion: unpadded hex");return r},decode(e){let{Err:t}=eo;if(128&e[0])throw new t("invalid signature integer: negative");if(0===e[0]&&!(128&e[1]))throw new t("invalid signature integer: unnecessary leading zero");return(0,O.bytesToNumberBE)(e)}},toSig(e){let{Err:t,_int:r,_tlv:i}=eo,n=(0,O.ensureBytes)("signature",e),{v:o,l:s}=i.decode(48,n);if(s.length)throw new t("invalid signature: left bytes after parsing");let{v:a,l:f}=i.decode(2,o),{v:l,l:d}=i.decode(2,f);if(d.length)throw new t("invalid signature: left bytes after parsing");return{r:r.decode(a),s:r.decode(l)}},hexFromSig(e){let{_tlv:t,_int:r}=eo,i=t.encode(2,r.encode(e.r)),n=t.encode(2,r.encode(e.s));return t.encode(48,i+n)}};function es(e,t){return(0,O.bytesToHex)((0,O.numberToBytesBE)(e,t))}let ea=BigInt(0),ef=BigInt(1),el=BigInt(2),ed=BigInt(3),ec=BigInt(4);function eu(e){let t,r=(t=ei(e),(0,O.validateObject)(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})),{Fp:i,n:n,nByteLength:o,nBitLength:s}=r,a=i.BYTES+1,f=2*i.BYTES+1;function l(e){return C(e,n)}let{ProjectivePoint:d,normPrivateKeyToScalar:c,weierstrassEquation:u,isWithinCurveOrder:h}=function(e){var t;let r=function(e){let t=ei(e);(0,O.validateObject)(t,{a:"field",b:"field"},{allowInfinityPoint:"boolean",allowedPrivateKeyLengths:"array",clearCofactor:"function",fromBytes:"function",isTorsionFree:"function",toBytes:"function",wrapPrivateKey:"boolean"});let{endo:r,Fp:i,a:n}=t;if(r){if(!i.eql(n,i.ZERO))throw Error("invalid endo: CURVE.a must be 0");if("object"!=typeof r||"bigint"!=typeof r.beta||"function"!=typeof r.splitScalar)throw Error('invalid endo: expected "beta": bigint and "splitScalar": function')}return Object.freeze({...t})}(e),{Fp:i}=r,n=j(r.n,r.nBitLength),o=r.toBytes||((e,t,r)=>{let n=t.toAffine();return(0,O.concatBytes)(Uint8Array.from([4]),i.toBytes(n.x),i.toBytes(n.y))}),s=r.fromBytes||(e=>{let t=e.subarray(1);return{x:i.fromBytes(t.subarray(0,i.BYTES)),y:i.fromBytes(t.subarray(i.BYTES,2*i.BYTES))}});function a(e){let{a:t,b:n}=r,o=i.sqr(e),s=i.mul(o,e);return i.add(i.add(s,i.mul(e,t)),n)}function f(e,t){let r=i.sqr(t),n=a(e);return i.eql(r,n)}if(!f(r.Gx,r.Gy))throw Error("bad curve params: generator point");let l=i.mul(i.pow(r.a,ed),ec),d=i.mul(i.sqr(r.b),BigInt(27));if(i.is0(i.add(l,d)))throw Error("bad curve params: a or b");function c(e){let t,{allowedPrivateKeyLengths:i,nByteLength:n,wrapPrivateKey:o,n:s}=r;if(i&&"bigint"!=typeof e){if((0,O.isBytes)(e)&&(e=(0,O.bytesToHex)(e)),"string"!=typeof e||!i.includes(e.length))throw Error("invalid private key");e=e.padStart(2*n,"0")}try{t="bigint"==typeof e?e:(0,O.bytesToNumberBE)((0,O.ensureBytes)("private key",e,n))}catch(t){throw Error("invalid private key, expected hex or "+n+" b
1ytes, got "+typeof e)}return o&&(t=C(t,s)),(0,O.aInRange)("private key",t,ef,s),t}function u(e){if(!(e instanceof x))throw Error("ProjectivePoint expected")}let h=(0,O.memoized)((e,t)=>{let{px:r,py:n,pz:o}=e;if(i.eql(o,i.ONE))return{x:r,y:n};let s=e.is0();null==t&&(t=s?i.ONE:i.inv(o));let a=i.mul(r,t),f=i.mul(n,t),l=i.mul(o,t);if(s)return{x:i.ZERO,y:i.ZERO};if(!i.eql(l,i.ONE))throw Error("invZ was invalid");return{x:a,y:f}}),b=(0,O.memoized)(e=>{if(e.is0()){if(r.allowInfinityPoint&&!i.is0(e.py))return;throw Error("bad point: ZERO")}let{x:t,y:n}=e.toAffine();if(!i.isValid(t)||!i.isValid(n))throw Error("bad point: x or y not FE");if(!f(t,n))throw Error("bad point: equation left != right");if(!e.isTorsionFree())throw Error("bad point: not in prime-order subgroup");return!0});class x{constructor(e,t,r){if(null==e||!i.isValid(e))throw Error("x required");if(null==t||!i.isValid(t)||i.is0(t))throw Error("y required");if(null==r||!i.isValid(r))throw Error("z required");this.px=e,this.py=t,this.pz=r,Object.freeze(this)}static fromAffine(e){let{x:t,y:r}=e||{};if(!e||!i.isValid(t)||!i.isValid(r))throw Error("invalid affine point");if(e instanceof x)throw Error("projective point not allowed");let n=e=>i.eql(e,i.ZERO);return n(t)&&n(r)?x.ZERO:new x(t,r,i.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){let t=_(i,e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(x.fromAffine)}static fromHex(e){let t=x.fromAffine(s((0,O.ensureBytes)("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return x.BASE.multiply(c(e))}static msm(e,t){return function(e,t,r,i){if(!Array.isArray(r))throw Error("array expected");r.forEach((t,r)=>{if(!(t instanceof e))throw Error("invalid point at index "+r)});if(!Array.isArray(i))throw Error("array of scalars expected");i.forEach((e,r)=>{if(!t.isValid(e))throw Error("invalid scalar at index "+r)});let n=r.length,o=i.length;if(n!==o)throw Error("arrays of points and scalars must have equal length");let s=e.ZERO,a=(0,O.bitLen)(BigInt(n)),f=1;a>12?f=a-3:a>4?f=a-2:a>0&&(f=2);let l=(0,O.bitMask)(f),d=Array(Number(l)+1).fill(s),c=Math.floor((t.BITS-1)/f)*f,u=s;for(let e=c;e>=0;e-=f){d.fill(s);for(let t=0;t<o;t++){let n=Number(i[t]>>BigInt(e)&l);d[n]=d[n].add(r[t])}let t=s;for(let e=d.length-1,r=s;e>0;e--)r=r.add(d[e]),t=t.add(r);if(u=u.add(t),0!==e)for(let e=0;e<f;e++)u=u.double()}return u}(x,n,e,t)}_setWindowSize(e){g.setWindowSize(this,e)}assertValidity(){b(this)}hasEvenY(){let{y:e}=this.toAffine();if(i.isOdd)return!i.isOdd(e);throw Error("Field doesn't support isOdd")}equals(e){u(e);let{px:t,py:r,pz:n}=this,{px:o,py:s,pz:a}=e,f=i.eql(i.mul(t,a),i.mul(o,n)),l=i.eql(i.mul(r,a),i.mul(s,n));return f&&l}negate(){return new x(this.px,i.neg(this.py),this.pz)}double(){let{a:e,b:t}=r,n=i.mul(t,ed),{px:o,py:s,pz:a}=this,f=i.ZERO,l=i.ZERO,d=i.ZERO,c=i.mul(o,o),u=i.mul(s,s),h=i.mul(a,a),b=i.mul(o,s);return b=i.add(b,b),d=i.mul(o,a),d=i.add(d,d),f=i.mul(e,d),l=i.mul(n,h),l=i.add(f,l),f=i.sub(u,l),l=i.add(u,l),l=i.mul(f,l),f=i.mul(b,f),d=i.mul(n,d),h=i.mul(e,h),b=i.sub(c,h),b=i.mul(e,b),b=i.add(b,d),d=i.add(c,c),c=i.add(d,c),c=i.add(c,h),c=i.mul(c,b),l=i.add(l,c),h=i.mul(s,a),h=i.add(h,h),c=i.mul(h,b),f=i.sub(f,c),d=i.mul(h,u),d=i.add(d,d),new x(f,l,d=i.add(d,d))}add(e){u(e);let{px:t,py:n,pz:o}=this,{px:s,py:a,pz:f}=e,l=i.ZERO,d=i.ZERO,c=i.ZERO,h=r.a,b=i.mul(r.b,ed),m=i.mul(t,s),p=i.mul(n,a),g=i.mul(o,f),y=i.add(t,n),w=i.add(s,a);y=i.mul(y,w),w=i.add(m,p),y=i.sub(y,w),w=i.add(t,o);let E=i.add(s,f);return w=i.mul(w,E),E=i.add(m,g),w=i.sub(w,E),E=i.add(n,o),l=i.add(a,f),E=i.mul(E,l),l=i.add(p,g),E=i.sub(E,l),c=i.mul(h,w),l=i.mul(b,g),c=i.add(l,c),l=i.sub(p,c),c=i.add(p,c),d=i.mul(l,c),p=i.add(m,m),p=i.add(p,m),g=i.mul(h,g),w=i.mul(b,w),p=i.add(p,g),g=i.sub(m,g),g=i.mul(h,g),w=i.add(w,g),m=i.mul(p,w),d=i.add(d,m),m=i.mul(E,w),l=i.mul(y,l),l=i.sub(l,m),m=i.mul(y,p),c=i.mul(E,c),new x(l,d,c=i.add(c,m))}subtract(e){return this.add(e.negate())}is0(){return this.equals(x.ZERO)}wNAF(e){return g.wNAFCached(this,e,x.normalizeZ)}multiplyUnsafe(e){let{endo:t,n:n}=r;(0,O.aInRange)("scalar",e,ea,n);let o=x.ZERO;if(e===ea)return o;if(this.is0()||e===ef)return this;if(!t||g.hasPrecomputes(this))return g.wNAFCachedUnsafe(this,e,x.normalizeZ);
1let{k1neg:s,k1:a,k2neg:f,k2:l}=t.splitScalar(e),d=o,c=o,u=this;for(;a>ea||l>ea;)a&ef&&(d=d.add(u)),l&ef&&(c=c.add(u)),u=u.double(),a>>=ef,l>>=ef;return s&&(d=d.negate()),f&&(c=c.negate()),c=new x(i.mul(c.px,t.beta),c.py,c.pz),d.add(c)}multiply(e){let t,n,{endo:o,n:s}=r;if((0,O.aInRange)("scalar",e,ef,s),o){let{k1neg:r,k1:s,k2neg:a,k2:f}=o.splitScalar(e),{p:l,f:d}=this.wNAF(s),{p:c,f:u}=this.wNAF(f);l=g.constTimeNegate(r,l),c=g.constTimeNegate(a,c),c=new x(i.mul(c.px,o.beta),c.py,c.pz),t=l.add(c),n=d.add(u)}else{let{p:r,f:i}=this.wNAF(e);t=r,n=i}return x.normalizeZ([t,n])[0]}multiplyAndAddUnsafe(e,t,r){let i=x.BASE,n=(e,t)=>t!==ea&&t!==ef&&e.equals(i)?e.multiply(t):e.multiplyUnsafe(t),o=n(this,t).add(n(e,r));return o.is0()?void 0:o}toAffine(e){return h(this,e)}isTorsionFree(){let{h:e,isTorsionFree:t}=r;if(e===ef)return!0;if(t)return t(x,this);throw Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h:e,clearCofactor:t}=r;return e===ef?this:t?t(x,this):this.multiplyUnsafe(r.h)}toRawBytes(e=!0){return(0,O.abool)("isCompressed",e),this.assertValidity(),o(x,this,e)}toHex(e=!0){return(0,O.abool)("isCompressed",e),(0,O.bytesToHex)(this.toRawBytes(e))}}x.BASE=new x(r.Gx,r.Gy,i.ONE),x.ZERO=new x(i.ZERO,i.ONE,i.ZERO);let{endo:m,nBitLength:p}=r,g=(t=m?Math.ceil(p/2):p,{constTimeNegate:X,hasPrecomputes:e=>1!==er(e),unsafeLadder(e,t,r=x.ZERO){let i=e;for(;t>W;)t&Y&&(r=r.add(i)),i=i.double(),t>>=Y;return r},precomputeWindow(e,r){let{windows:i,windowSize:n}=Q(r,t),o=[],s=e,a=s;for(let e=0;e<i;e++){a=s,o.push(a);for(let e=1;e<n;e++)a=a.add(s),o.push(a);s=a.double()}return o},wNAF(e,r,i){let n=x.ZERO,o=x.BASE,s=Q(e,t);for(let e=0;e<s.windows;e++){let{nextN:t,offset:a,isZero:f,isNeg:l,isNegF:d,offsetF:c}=$(i,e,s);i=t,f?o=o.add(X(d,r[c])):n=n.add(X(l,r[a]))}return{p:n,f:o}},wNAFUnsafe(e,r,i,n=x.ZERO){let o=Q(e,t);for(let e=0;e<o.windows&&i!==W;e++){let{nextN:t,offset:s,isZero:a,isNeg:f}=$(i,e,o);if(i=t,!a){let e=r[s];n=n.add(f?e.negate():e)}}return n},getPrecomputes(e,t,r){let i=ee.get(t);return i||(i=this.precomputeWindow(t,e),1!==e&&ee.set(t,r(i))),i},wNAFCached(e,t,r){let i=er(e);return this.wNAF(i,this.getPrecomputes(i,e,r),t)},wNAFCachedUnsafe(e,t,r,i){let n=er(e);return 1===n?this.unsafeLadder(e,t,i):this.wNAFUnsafe(n,this.getPrecomputes(n,e,r),t,i)},setWindowSize(e,r){J(r,t),et.set(e,r),ee.delete(e)}});return{CURVE:r,ProjectivePoint:x,normPrivateKeyToScalar:c,weierstrassEquation:a,isWithinCurveOrder:function(e){return(0,O.inRange)(e,ef,r.n)}}}({...r,toBytes(e,t,r){let n=t.toAffine(),o=i.toBytes(n.x),s=O.concatBytes;return((0,O.abool)("isCompressed",r),r)?s(Uint8Array.from([t.hasEvenY()?2:3]),o):s(Uint8Array.from([4]),o,i.toBytes(n.y))},fromBytes(e){let t=e.length,r=e[0],n=e.subarray(1);if(t===a&&(2===r||3===r)){let e,t=(0,O.bytesToNumberBE)(n);if(!(0,O.inRange)(t,ef,i.ORDER))throw Error("Point is not on curve");let o=u(t);try{e=i.sqrt(o)}catch(e){throw Error("Point is not on curve"+(e instanceof Error?": "+e.message:""))}return(1&r)==1!=((e&ef)===ef)&&(e=i.neg(e)),{x:t,y:e}}if(t===f&&4===r)return{x:i.fromBytes(n.subarray(0,i.BYTES)),y:i.fromBytes(n.subarray(i.BYTES,2*i.BYTES))};throw Error("invalid Point, expected length of "+a+", or uncompressed "+f+", got "+t)}}),b=(e,t,r)=>(0,O.bytesToNumberBE)(e.slice(t,r));class x{constructor(e,t,r){(0,O.aInRange)("r",e,ef,n),(0,O.aInRange)("s",t,ef,n),this.r=e,this.s=t,null!=r&&(this.recovery=r),Object.freeze(this)}static fromCompact(e){return new x(b(e=(0,O.ensureBytes)("compactSignature",e,2*o),0,o),b(e,o,2*o))}static fromDER(e){let{r:t,s:r}=eo.toSig((0,O.ensureBytes)("DER",e));return new x(t,r)}assertValidity(){}addRecoveryBit(e){return new x(this.r,this.s,e)}recoverPublicKey(e){let{r:t,s:o,recovery:s}=this,a=g((0,O.ensureBytes)("msgHash",e));if(null==s||![0,1,2,3].includes(s))throw Error("recovery id invalid");let f=2===s||3===s?t+r.n:t;if(f>=i.ORDER)throw Error("recovery id 2 or 3 invalid");let c=(1&s)==0?"02":"03",u=d.fromHex(c+es(f,i.BYTES)),h=D(f,n),b=l(-a*h),x=l(o*h),m=d.BASE.multiplyAndAddUnsafe(u,b,x);if(!m)throw Error("point at infinify");return m.assertValidity(),m}hasHighS(){return this.s>n>>ef}normalizeS(){return this.hasHighS()?new x(this.r,l(-this.s),this.recovery):this}toDERRawBytes(){return(0,O.hexToBytes)(this.toDERHex())}toDERHex(){return eo.hexFromSig(this)}toCompactRawBytes(){return(0,O.hexToBytes)(this.toCompactHex())}
1toCompactHex(){return es(this.r,o)+es(this.s,o)}}function m(e){if("bigint"==typeof e)return!1;if(e instanceof d)return!0;let t=(0,O.ensureBytes)("key",e).length,n=i.BYTES,s=n+1;if(!r.allowedPrivateKeyLengths&&o!==s)return t===s||t===2*n+1}let p=r.bits2int||function(e){if(e.length>8192)throw Error("input is too large");let t=(0,O.bytesToNumberBE)(e),r=8*e.length-s;return r>0?t>>BigInt(r):t},g=r.bits2int_modN||function(e){return l(p(e))},y=(0,O.bitMask)(s);function w(e){return(0,O.aInRange)("num < 2^"+s,e,ea,y),(0,O.numberToBytesBE)(e,o)}let E={lowS:r.lowS,prehash:!1},B={lowS:r.lowS,prehash:!1};return d.BASE._setWindowSize(8),{CURVE:r,getPublicKey:function(e,t=!0){return d.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t,r=!0){if(!0===m(e))throw Error("first arg must be private key");if(!1===m(t))throw Error("second arg must be public key");return d.fromHex(t).multiply(c(e)).toRawBytes(r)},sign:function(e,t,o=E){let{seed:s,k2sig:a}=function(e,t,o=E){if(["recovered","canonical"].some(e=>e in o))throw Error("sign() legacy options not supported");let{hash:s,randomBytes:a}=r,{lowS:f,prehash:u,extraEntropy:b}=o;null==f&&(f=!0),e=(0,O.ensureBytes)("msgHash",e),en(o),u&&(e=(0,O.ensureBytes)("prehashed msgHash",s(e)));let m=g(e),y=c(t),B=[w(y),w(m)];if(null!=b&&!1!==b){let e=!0===b?a(i.BYTES):b;B.push((0,O.ensureBytes)("extraEntropy",e))}return{seed:(0,O.concatBytes)(...B),k2sig:function(e){var t;let r=p(e);if(!h(r))return;let i=D(r,n),o=d.BASE.multiply(r).toAffine(),s=l(o.x);if(s===ea)return;let a=l(i*l(m+s*y));if(a===ea)return;let c=2*(o.x!==s)|Number(o.y&ef),u=a;return f&&a>n>>ef&&(u=(t=a)>n>>ef?l(-t):t,c^=1),new x(s,u,c)}}}(e,t,o);return(0,O.createHmacDrbg)(r.hash.outputLen,r.nByteLength,r.hmac)(s,a)},verify:function(e,t,i,o=B){let s,a;t=(0,O.ensureBytes)("msgHash",t),i=(0,O.ensureBytes)("publicKey",i);let{lowS:f,prehash:c,format:u}=o;if(en(o),"strict"in o)throw Error("options.strict was renamed to lowS");if(void 0!==u&&"compact"!==u&&"der"!==u)throw Error("format must be compact or der");let h="string"==typeof e||(0,O.isBytes)(e),b=!h&&!u&&"object"==typeof e&&null!==e&&"bigint"==typeof e.r&&"bigint"==typeof e.s;if(!h&&!b)throw Error("invalid signature, expected Uint8Array, hex string or Signature instance");try{if(b&&(a=new x(e.r,e.s)),h){try{"compact"!==u&&(a=x.fromDER(e))}catch(e){if(!(e instanceof eo.Err))throw e}a||"der"===u||(a=x.fromCompact(e))}s=d.fromHex(i)}catch(e){return!1}if(!a||f&&a.hasHighS())return!1;c&&(t=r.hash(t));let{r:m,s:p}=a,y=g(t),w=D(p,n),E=l(y*w),v=l(m*w),S=d.BASE.multiplyAndAddUnsafe(s,E,v)?.toAffine();return!!S&&l(S.x)===m},ProjectivePoint:d,Signature:x,utils:{isValidPrivateKey(e){try{return c(e),!0}catch(e){return!1}},normPrivateKeyToScalar:c,randomPrivateKey:()=>{let e=G(r.n);return K(r.randomBytes(e),r.n)},precompute:(e=8,t=d.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)}}}function eh(e,t){if(z(e),!e.isValid(t.A)||!e.isValid(t.B)||!e.isValid(t.Z))throw Error("mapToCurveSimpleSWU: invalid opts");let r=function(e,t){let r=e.ORDER,i=ea;for(let e=r-ef;e%el===ea;e/=el)i+=ef;let n=i,o=el<<n-ef-ef,s=o*el,a=(r-ef)/s,f=(a-ef)/el,l=s-ef,d=e.pow(t,a),c=e.pow(t,(a+ef)/el),u=(t,r)=>{let i=d,s=e.pow(r,l),a=e.sqr(s);a=e.mul(a,r);let u=e.mul(t,a);u=e.pow(u,f),u=e.mul(u,s),s=e.mul(u,r),a=e.mul(u,t);let h=e.mul(a,s);u=e.pow(h,o);let b=e.eql(u,e.ONE);s=e.mul(a,c),u=e.mul(h,i),a=e.cmov(s,a,b),h=e.cmov(u,h,b);for(let t=n;t>ef;t--){let r=t-el;r=el<<r-ef;let n=e.pow(h,r),o=e.eql(n,e.ONE);s=e.mul(a,i),i=e.mul(i,i),n=e.mul(h,i),a=e.cmov(s,a,o),h=e.cmov(n,h,o)}return{isValid:b,value:a}};if(e.ORDER%ec===ed){let r=(e.ORDER-ed)/ec,i=e.sqrt(e.neg(t));u=(t,n)=>{let o=e.sqr(n),s=e.mul(t,n);o=e.mul(o,s);let a=e.pow(o,r);a=e.mul(a,s);let f=e.mul(a,i),l=e.mul(e.sqr(a),n),d=e.eql(l,t),c=e.cmov(f,a,d);return{isValid:d,value:c}}}return u}(e,t.Z);if(!e.isOdd)throw Error("Fp.isOdd is not implemented!");return i=>{let n,o,s,a,f,l,d,c;n=e.sqr(i),n=e.mul(n,t.Z),o=e.sqr(n),o=e.add(o,n),s=e.add(o,e.ONE),s=e.mul(s,t.B),a=e.cmov(t.Z,e.neg(o),!e.eql(o,e.ZERO)),a=e.mul(a,t.A),o=e.sqr(s),l=e.sqr(a),f=e.mul(l,t.A),o=e.add(o,f),o=e.mul(o,s),l=e.mul(l,a),f=e.mul(l,t.B),o=e.add(o,f),d=e.mul(n,s);let{isValid:u,value:h}=r(o,l);c=e.mul(n,i),c=e.mul(c,h),d=e.cmov(d,s,u),c=e.cmov(c,h,u);let b=e.isOdd(i)===e.isOdd(c);c=e.cmov(e.neg(c),c,b);let x=_(e,[a],!0)[0];return{x:d=e.mul(d,x),y:c}}}function eb(e,r){let i=r=>eu({...e,...{hash:r,hmac:(e,...i)=>A(r,e,(0,t.concatBytes)(...i)),randomBytes:t.randomBytes}});return{...i(r),create:i}}e.s(["mapToCurveSimpleSWU",0,eh,"weierstrass",0,eu],573230),e.s(["createCurve",0,eb],747663);let ex=O.bytesToNumberBE;function em(e,t){if(ep(e),ep(t),e<0||e>
1=1<<8*t)throw Error("invalid I2OSP input: "+e);let r=Array.from({length:t}).fill(0);for(let i=t-1;i>=0;i--)r[i]=255&e,e>>>=8;return new Uint8Array(r)}function ep(e){if(!Number.isSafeInteger(e))throw Error("number expected")}function eg(e,t,r){let i;(0,O.validateObject)(r,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});let{p:n,k:o,m:s,hash:a,expand:f,DST:l}=r;(0,O.abytes)(e),ep(t);let d="string"==typeof l?(0,O.utf8ToBytes)(l):l,c=Math.ceil((n.toString(2).length+o)/8),u=t*s*c;if("xmd"===f)i=function(e,t,r,i){(0,O.abytes)(e),(0,O.abytes)(t),ep(r),t.length>255&&(t=i((0,O.concatBytes)((0,O.utf8ToBytes)("H2C-OVERSIZE-DST-"),t)));let{outputLen:n,blockLen:o}=i,s=Math.ceil(r/n);if(r>65535||s>255)throw Error("expand_message_xmd: invalid lenInBytes");let a=(0,O.concatBytes)(t,em(t.length,1)),f=em(0,o),l=em(r,2),d=Array(s),c=i((0,O.concatBytes)(f,e,l,em(0,1),a));d[0]=i((0,O.concatBytes)(c,em(1,1),a));for(let e=1;e<=s;e++){let t=[function(e,t){let r=new Uint8Array(e.length);for(let i=0;i<e.length;i++)r[i]=e[i]^t[i];return r}(c,d[e-1]),em(e+1,1),a];d[e]=i((0,O.concatBytes)(...t))}return(0,O.concatBytes)(...d).slice(0,r)}(e,d,u,a);else if("xof"===f)i=function(e,t,r,i,n){if((0,O.abytes)(e),(0,O.abytes)(t),ep(r),t.length>255){let e=Math.ceil(2*i/8);t=n.create({dkLen:e}).update((0,O.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(t).digest()}if(r>65535||t.length>255)throw Error("expand_message_xof: invalid lenInBytes");return n.create({dkLen:r}).update(e).update(em(r,2)).update(t).update(em(t.length,1)).digest()}(e,d,u,o,a);else if("_internal_pass"===f)i=e;else throw Error('expand must be "xmd" or "xof"');let h=Array(t);for(let e=0;e<t;e++){let t=Array(s);for(let r=0;r<s;r++){let o=c*(r+e*s),a=i.subarray(o,o+c);t[r]=C(ex(a),n)}h[e]=t}return h}function ey(e,t){let r=t.map(e=>Array.from(e).reverse());return(t,i)=>{let[n,o,s,a]=r.map(r=>r.reduce((r,i)=>e.add(e.mul(r,t),i))),[f,l]=_(e,[o,a],!0);return t=e.mul(n,f),i=e.mul(i,e.mul(s,l)),{x:t,y:i}}}function ew(e,t,r){if("function"!=typeof t)throw Error("mapToCurve() must be defined");function i(r){return e.fromAffine(t(r))}function n(t){let r=t.clearCofactor();return r.equals(e.ZERO)?e.ZERO:(r.assertValidity(),r)}return{defaults:r,hashToCurve(e,t){let o=eg(e,2,{...r,DST:r.DST,...t}),s=i(o[0]),a=i(o[1]);return n(s.add(a))},encodeToCurve:(e,t)=>n(i(eg(e,1,{...r,DST:r.encodeDST,...t})[0])),mapToCurve(e){if(!Array.isArray(e))throw Error("expected array of bigints");for(let t of e)if("bigint"!=typeof t)throw Error("expected array of bigints");return n(i(e))}}}e.s(["createHasher",0,ew,"isogenyMap",0,ey],241826);let eE=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),eB=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),ev=BigInt(0),eS=BigInt(1),eA=BigInt(2),eO=(e,t)=>(e+t/eA)/t,eI=j(eE,void 0,void 0,{sqrt:function(e){let t=BigInt(3),r=BigInt(6),i=BigInt(11),n=BigInt(22),o=BigInt(23),s=BigInt(44),a=BigInt(88),f=e*e*e%eE,l=f*f*e%eE,d=U(l,t,eE)*l%eE,c=U(d,t,eE)*l%eE,u=U(c,eA,eE)*f%eE,h=U(u,i,eE)*u%eE,b=U(h,n,eE)*h%eE,x=U(b,s,eE)*b%eE,m=U(x,a,eE)*x%eE,p=U(m,s,eE)*b%eE,g=U(p,t,eE)*l%eE,y=U(g,o,eE)*h%eE,w=U(y,r,eE)*f%eE,E=U(w,eA,eE);if(!eI.eql(eI.sqr(E),e))throw Error("Cannot find square root");return E}}),eH=eb({a:ev,b:BigInt(7),Fp:eI,n:eB,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{let t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-eS*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),n=BigInt("0x100000000000000000000000000000000"),o=eO(t*e,eB),s=eO(-r*e,eB),a=C(e-o*t-s*i,eB),f=C(-o*r-s*t,eB),l=a>n,d=f>n;if(l&&(a=eB-a),d&&(f=eB-f),a>n||f>n)throw Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:l,k1:a,k2neg:d,k2:f}}}},y);eH.ProjectivePoint;O.bytesToNumberBE;let eR=ey(eI,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a4
113deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(e=>e.map(e=>BigInt(e)))),eT=eh(eI,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:eI.create(BigInt("-11"))});ew(eH.ProjectivePoint,e=>{let{x:t,y:r}=eT(eI.create(e[0]));return eR(t,r)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:eI.ORDER,m:1,k:128,expand:"xmd",hash:y}),e.s(["secp256k1",0,eH],337575)}]);

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.