1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[118],{3118:(f,e,t)=>{let a;t.r(e),t.d(e,{signWithApiKey:()=>z});var i=t(19717),r=t(79439),c=t(13643);let b={p:BigInt("0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff"),n:BigInt("0xffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551"),h:BigInt(1),a:BigInt("0xffffffff00000001000000000000000000000000fffffffffffffffffffffffc"),b:BigInt("0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b"),Gx:BigInt("0x6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296"),Gy:BigInt("0x4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5")},n={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000ffffffff"),n:BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffc7634d81f4372ddf581a0db248b0a77aecec196accc52973"),h:BigInt(1),a:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000fffffffc"),b:BigInt("0xb3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aef"),Gx:BigInt("0xaa87ca22be8b05378eb1c71ef320ad746e1d3b628ba79b9859f741e082542a385502f25dbf55296c3a545e3872760ab7"),Gy:BigInt("0x3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f")},d={p:BigInt("0x1ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),n:BigInt("0x01fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa51868783bf2f966b7fcc0148f709a5d03bb5c9b8899c47aebb6fb71e91386409"),h:BigInt(1),a:BigInt("0x1fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc"),b:BigInt("0x0051953eb9618e1c9a1f929a21a0b68540eea2da725b99b315f3b8b489918ef109e156193951ec7e937b1652c0bd3bb1bf073573df883d2c34f1ef451fd46b503f00"),Gx:BigInt("0x00c6858e06b70404e9cd9e3ecb662395b4429c648139053fb521f828af606b4d3dbaa14b5e77efe75928fe1dc127a2ffa8de3348b3c1856a429bf97e7e31c2e5bd66"),Gy:BigInt("0x011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650")},x=(0,c.D0)(b.p),h=(0,c.D0)(n.p),s=(0,c.D0)(d.p),o=(0,r.s)({...b,Fp:x,lowS:!1},i.sc);(0,r.s)({...n,Fp:h,lowS:!1},i.qt),(0,r.s)({...d,Fp:s,lowS:!1,allowedPrivateKeyLengths:[130,131,132]},i.Zf);let l=[0x428a2f98,0x71374491,-0x4a3f0431,-0x164a245b,0x3956c25b,0x59f111f1,-0x6dc07d5c,-0x54e3a12b,-0x27f85568,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,-0x7f214e02,-0x6423f959,-0x3e640e8c,-0x1b64963f,-0x1041b87a,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,-0x67c1aeae,-0x57ce3993,-0x4ffcd838,-0x40a68039,-0x391ff40d,-0x2a586eb9,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,-0x7e3d36d2,-0x6d8dd37b,-0x5d40175f,-0x57e599b5,-0x3db47490,-0x3893ae5d,-0x2e6d17e7,-0x2966f9dc,-0xbf1ca7b,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,-0x7b3787ec,-0x7338fdf8,-0x6f410006,-0x5baf9315,-0x41065c09,-0x398e870e];class g{constructor(){this.A=0x6a09e667,this.B=-0x4498517b,this.C=0x3c6ef372,this.D=-0x5ab00ac6,this.E=0x510e527f,this.F=-0x64fa9774,this.G=0x1f83d9ab,this.H=0x5be0cd19,this._size=0,this._sp=0,(!a||p>=8e3)&&(a=new ArrayBuffer(8e3),p=0),this._byte=new Uint8Array(a,p,80),this._word=new Int32Array(a,p,20),p+=80}update(f){if("string"==typeof f)return this._utf8(f);if(null==f)throw TypeError("Invalid type: "+typeof f);let e=f.byteOffset,t=f.byteLength,a=t/64|0,i=0;if(a&&!(3&e)&&!(this._size%64)){let t=new Int32Array(f.buffer,e,16*a);for(;a--;)this._int32(t,i>>2),i+=64;this._size+=i}if(1!==f.BYTES_PER_ELEMENT&&f.buffer){let a=new Uint8Array(f.buffer,e+i,t-i);return this._uint8(a)}return i===t?this:this._uint8(f,i)}_uint8(f,e){let{_byte:t,_word:a}=this,i=f.length;for(e|=0;e<i;){let r=this._size%64,c=r;for(;e<i&&c<64;)t[c++]=f[e++];c>=64&&this._int32(a),this._size+=c-r}return this}_utf8(f){let{_byte:e,_word:t}=this,a=f.length,i=this._sp;for(let r=0;r<a;){let c=this._size%64,b=c;for(;r<a&&b<64;){let t=0|f.charCodeAt(r++);t<128?e[b++]=t:t<2048?(e[b++]=192|t>>>6,e[b++]=128|63&t):t<55296||t>57343?(e[b++]=224|t>>>12,e[b++]=128|t>>>6&63,e[b++]=128|63&t):i?(t=((1023&i)<<10)+(1023&t)+65536,e[b++]=240|t>>>18,e[b++]=128|t>>>12&63,e[b++]=128|t>>>6&63,e[b++]=128|63&t,i=0):i=t}b>=64&&(this._int32(t),t[0]=t[16]),this._size+=b-c}return this._sp=i,this}_int32(f,e){let{A:t,B:a,C:i,D:r,E:c,F:b,G:n,H:d}=this,x=0;for(e|=0;x<16;)u[x++]=y(f[e++]);for(x=16;x<64;x++)u[x]=C(u[x-2])+u[x-7]+E(u[x-15])+u[x-16]|0;for(x=0;x<64;x++){let f=d+w(c)+I(c,b,n)+l[x]+u[x]|0,e=A(t)+B(t,a,i)|0;d=n,n=b,b=c,c=r+f|0,r=i,i=a,a=t,t=f+e|0}this.A=t+this.A|0,this.B=a+this.B|0,this.C=i+this.C|0,this.D=r+this.D|0,this.E=c+this.E|0,this.F=b+this.F|0,this.G=n+this.G|0,this.H=d+this.H|0}digest(f){let{_byte:e,_word:t}=this,a=this._size%64|0;for(e[a++]=128;3&a;)e[a++]=0;if((a>>=2)>14){for(;a<16;)t[a++]=0;a=0,this._int32(t)}for(;a<16;)t[a++]=0;let i=8*this._size,r=(0xffffffff&i)>>>0,c=(i-r)/0x100000000;return c&&(t[14]=y(c)),r&&(t[15]=y(r)),this._int32(t),"hex"===f?this._hex():this._bin()}_hex(){let{A:f,B:e,C:t,D:a,E:i,F:r,G:c,H:b}=this;return _(f)+_(e)+_(t)+_(a)+_(i)+_(r)+_(c)+_(b)}_bin(){let{A:f,B:e,C:t,D:a,E:i,F:r,G:c,H:b,_byte:n,_word:d}=this;return d[0]=y(f),d[1]=y(e),d[2]=y(t),d[3]=y(a),d[4]=y(i),d[5]=y(r),d[6]=y(c),d[7]=y(b),n.slice(0,32)}}let u=new Int32Array(64),p=0,_=f=>(f+0x100000000).toString(16).substr(-8),y=254===new Uint8Array(new Uint16Array([65279]).buffer)[0]?f=>f:f=>f<<24&0xff000000|f<<8&0xff0000|f>>8&65280|f>>24&255,I=(f,e,t)=>t^f&(e^t),B=(f,e,t)=>f&e|t&(f|e),A=f=>(f>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10),w=f=>(f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7),E=f=>(f>>>7|f<<25)^(f>>>18|f<<14)^f>>>3,C=f=>(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10;
1var v=t(12268);let z=async f=>{var e;let t=o.getPublicKey(f.privateKey,!0),a=(0,v.pD)(t);if(a!=f.publicKey)throw Error(`Bad API key. Expected to get public key ${f.publicKey}, got ${a}`);let i=new g().update(f.content).digest();return o.sign(i,f.privateKey).toDERHex()}},12268:(f,e,t)=>{t.d(e,{Ev:()=>a,Ks:()=>c,el:()=>i,pD:()=>r});let a=32;function i(f,e){return(function(f){let e;if(0==arguments.length)throw TypeError("1 argument required, but only 0 present.");for(e=0,f=`${f}`;e<f.length;e++)if(f.charCodeAt(e)>255)throw Error(`InvalidCharacterError: found code point greater than 255:${f.charCodeAt(e)} at position ${e}`);let t="";for(e=0;e<f.length;e+=3){let a=[void 0,void 0,void 0,void 0];a[0]=f.charCodeAt(e)>>2,a[1]=(3&f.charCodeAt(e))<<4,f.length>e+1&&(a[1]|=f.charCodeAt(e+1)>>4,a[2]=(15&f.charCodeAt(e+1))<<2),f.length>e+2&&(a[2]|=f.charCodeAt(e+2)>>6,a[3]=63&f.charCodeAt(e+2));for(let f=0;f<a.length;f++)void 0===a[f]?t+="=":t+=function(f){if(f>=0&&f<64)return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f]}(a[f])}return t})(c(f.padStart(2*Math.ceil(f.length/2),"0"),e).reduce((f,e)=>f+String.fromCharCode(e),"")).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function r(f){return f.reduce((f,e)=>f+e.toString(16).padStart(2,"0"),"")}let c=(f,e)=>{if(!f||f.length%2!=0||!/^[0-9A-Fa-f]+$/.test(f))throw Error(`cannot create uint8array from invalid hex string: "${f}"`);let t=new Uint8Array(f.match(/../g).map(f=>parseInt(f,16)));if(!e)return t;if(f.length/2>e)throw Error("hex value cannot fit in a buffer of "+e+" byte(s)");let a=new Uint8Array(e);return a.set(t,e-t.length),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.