lesca-node-bunnycdn 0.0.15 → 0.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.cjs CHANGED
@@ -14,4 +14,4 @@ Use Chrome, Firefox or Internet Explorer 11`)}var p=requireSafeBuffer$2().Buffer
14
14
  `)},pem}var hasRequiredEncoders;function requireEncoders(){return hasRequiredEncoders||(hasRequiredEncoders=1,(function(_){var S=_;S.der=requireDer(),S.pem=requirePem()})(encoders)),encoders}var hasRequiredAsn1$1;function requireAsn1$1(){return hasRequiredAsn1$1||(hasRequiredAsn1$1=1,(function(_){var S=_;S.bignum=requireBn$2(),S.define=requireApi().define,S.base=requireBase(),S.constants=requireConstants(),S.decoders=requireDecoders(),S.encoders=requireEncoders()})(asn1)),asn1}var certificate,hasRequiredCertificate;function requireCertificate(){if(hasRequiredCertificate)return certificate;hasRequiredCertificate=1;var _=requireAsn1$1(),S=_.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),I=_.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),p=_.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),R=_.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(p),this.key("subjectPublicKey").bitstr())}),f=_.define("RelativeDistinguishedName",function(){this.setof(I)}),w=_.define("RDNSequence",function(){this.seqof(f)}),m=_.define("Name",function(){this.choice({rdnSequence:this.use(w)})}),v=_.define("Validity",function(){this.seq().obj(this.key("notBefore").use(S),this.key("notAfter").use(S))}),y=_.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),d=_.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(p),this.key("issuer").use(m),this.key("validity").use(v),this.key("subject").use(m),this.key("subjectPublicKeyInfo").use(R),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(y).optional())}),g=_.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(d),this.key("signatureAlgorithm").use(p),this.key("signatureValue").bitstr())});return certificate=g,certificate}var hasRequiredAsn1;function requireAsn1(){if(hasRequiredAsn1)return asn1$1;hasRequiredAsn1=1;var _=requireAsn1$1();asn1$1.certificate=requireCertificate();var S=_.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});asn1$1.RSAPrivateKey=S;var I=_.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});asn1$1.RSAPublicKey=I;var p=_.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),R=_.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(p),this.key("subjectPublicKey").bitstr())});asn1$1.PublicKey=R;var f=_.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(p),this.key("subjectPrivateKey").octstr())});asn1$1.PrivateKey=f;var w=_.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});asn1$1.EncryptedPrivateKey=w;var m=_.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});asn1$1.DSAPrivateKey=m,asn1$1.DSAparam=_.define("DSAparam",function(){this.int()});var v=_.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),y=_.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(v),this.key("publicKey").optional().explicit(1).bitstr())});return asn1$1.ECPrivateKey=y,asn1$1.signature=_.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())}),asn1$1}const require$$1={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"};var fixProc,hasRequiredFixProc;function requireFixProc(){if(hasRequiredFixProc)return fixProc;hasRequiredFixProc=1;var _=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,S=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,I=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,p=requireEvp_bytestokey(),R=requireBrowser$6(),f=requireSafeBuffer$2().Buffer;return fixProc=function(w,m){var v=w.toString(),y=v.match(_),d;if(y){var M="aes"+y[1],x=f.from(y[2],"hex"),B=f.from(y[3].replace(/[\r\n]/g,""),"base64"),A=p(m,x.slice(0,8),parseInt(y[1],10)).key,D=[],C=R.createDecipheriv(M,A,x);D.push(C.update(B)),D.push(C.final()),d=f.concat(D)}else{var g=v.match(I);d=f.from(g[2].replace(/[\r\n]/g,""),"base64")}var P=v.match(S)[1];return{tag:P,data:d}},fixProc}var parseAsn1,hasRequiredParseAsn1;function requireParseAsn1(){if(hasRequiredParseAsn1)return parseAsn1;hasRequiredParseAsn1=1;var _=requireAsn1(),S=require$$1,I=requireFixProc(),p=requireBrowser$6(),R=requireBrowser$7().pbkdf2Sync,f=requireSafeBuffer$2().Buffer;function w(v,y){var d=v.algorithm.decrypt.kde.kdeparams.salt,g=parseInt(v.algorithm.decrypt.kde.kdeparams.iters.toString(),10),M=S[v.algorithm.decrypt.cipher.algo.join(".")],x=v.algorithm.decrypt.cipher.iv,B=v.subjectPrivateKey,A=parseInt(M.split("-")[1],10)/8,D=R(y,d,g,A,"sha1"),C=p.createDecipheriv(M,D,x),P=[];return P.push(C.update(B)),P.push(C.final()),f.concat(P)}function m(v){var y;typeof v=="object"&&!f.isBuffer(v)&&(y=v.passphrase,v=v.key),typeof v=="string"&&(v=f.from(v));var d=I(v,y),g=d.tag,M=d.data,x,B;switch(g){case"CERTIFICATE":B=_.certificate.decode(M,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(B||(B=_.PublicKey.decode(M,"der")),x=B.algorithm.algorithm.join("."),x){case"1.2.840.113549.1.1.1":return _.RSAPublicKey.decode(B.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return B.subjectPrivateKey=B.subjectPublicKey,{type:"ec",data:B};case"1.2.840.10040.4.1":return B.algorithm.params.pub_key=_.DSAparam.decode(B.subjectPublicKey.data,"der"),{type:"dsa",data:B.algorithm.params};default:throw new Error("unknown key id "+x)}case"ENCRYPTED PRIVATE KEY":M=_.EncryptedPrivateKey.decode(M,"der"),M=w(M,y);case"PRIVATE KEY":switch(B=_.PrivateKey.decode(M,"der"),x=B.algorithm.algorithm.join("."),x){case"1.2.840.113549.1.1.1":return _.RSAPrivateKey.decode(B.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:B.algorithm.curve,privateKey:_.ECPrivateKey.decode(B.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return B.algorithm.params.priv_key=_.DSAparam.decode(B.subjectPrivateKey,"der"),{type:"dsa",params:B.algorithm.params};default:throw new Error("unknown key id "+x)}case"RSA PUBLIC KEY":return _.RSAPublicKey.decode(M,"der");case"RSA PRIVATE KEY":return _.RSAPrivateKey.decode(M,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:_.DSAPrivateKey.decode(M,"der")};case"EC PRIVATE KEY":return M=_.ECPrivateKey.decode(M,"der"),{curve:M.parameters.value,privateKey:M.privateKey};default:throw new Error("unknown key type "+g)}}return m.signature=_.signature,parseAsn1=m,parseAsn1}const require$$4={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"};var hasRequiredSign;function requireSign(){if(hasRequiredSign)return sign.exports;hasRequiredSign=1;var _=requireSafeBuffer$2().Buffer,S=requireBrowser$8(),I=requireBrowserifyRsa(),p=requireElliptic().ec,R=requireBn$4(),f=requireParseAsn1(),w=require$$4,m=1;function v(C,P,H,N,V){var Q=f(P);if(Q.curve){if(N!=="ecdsa"&&N!=="ecdsa/rsa")throw new Error("wrong private key type");return y(C,Q)}else if(Q.type==="dsa"){if(N!=="dsa")throw new Error("wrong private key type");return d(C,Q,H)}if(N!=="rsa"&&N!=="ecdsa/rsa")throw new Error("wrong private key type");if(P.padding!==void 0&&P.padding!==m)throw new Error("illegal or unsupported padding mode");C=_.concat([V,C]);for(var ne=Q.modulus.byteLength(),ae=[0,1];C.length+ae.length+1<ne;)ae.push(255);ae.push(0);for(var ee=-1;++ee<C.length;)ae.push(C[ee]);var le=I(ae,Q);return le}function y(C,P){var H=w[P.curve.join(".")];if(!H)throw new Error("unknown curve "+P.curve.join("."));var N=new p(H),V=N.keyFromPrivate(P.privateKey),Q=V.sign(C);return _.from(Q.toDER())}function d(C,P,H){for(var N=P.params.priv_key,V=P.params.p,Q=P.params.q,ne=P.params.g,ae=new R(0),ee,le=x(C,Q).mod(Q),c=!1,e=M(N,Q,C,H);c===!1;)ee=A(Q,e,H),ae=D(ne,ee,V,Q),c=ee.invm(Q).imul(le.add(N.mul(ae))).mod(Q),c.cmpn(0)===0&&(c=!1,ae=new R(0));return g(ae,c)}function g(C,P){C=C.toArray(),P=P.toArray(),C[0]&128&&(C=[0].concat(C)),P[0]&128&&(P=[0].concat(P));var H=C.length+P.length+4,N=[48,H,2,C.length];return N=N.concat(C,[2,P.length],P),_.from(N)}function M(C,P,H,N){if(C=_.from(C.toArray()),C.length<P.byteLength()){var V=_.alloc(P.byteLength()-C.length);C=_.concat([V,C])}var Q=H.length,ne=B(H,P),ae=_.alloc(Q);ae.fill(1);var ee=_.alloc(Q);return ee=S(N,ee).update(ae).update(_.from([0])).update(C).update(ne).digest(),ae=S(N,ee).update(ae).digest(),ee=S(N,ee).update(ae).update(_.from([1])).update(C).update(ne).digest(),ae=S(N,ee).update(ae).digest(),{k:ee,v:ae}}function x(C,P){var H=new R(C),N=(C.length<<3)-P.bitLength();return N>0&&H.ishrn(N),H}function B(C,P){C=x(C,P),C=C.mod(P);var H=_.from(C.toArray());if(H.length<P.byteLength()){var N=_.alloc(P.byteLength()-H.length);H=_.concat([N,H])}return H}function A(C,P,H){var N,V;do{for(N=_.alloc(0);N.length*8<C.bitLength();)P.v=S(H,P.k).update(P.v).digest(),N=_.concat([N,P.v]);V=x(N,C),P.k=S(H,P.k).update(P.v).update(_.from([0])).digest(),P.v=S(H,P.k).update(P.v).digest()}while(V.cmp(C)!==-1);return V}function D(C,P,H,N){return C.toRed(R.mont(H)).redPow(P).fromRed().mod(N)}return sign.exports=v,sign.exports.getKey=M,sign.exports.makeKey=A,sign.exports}var verify_1,hasRequiredVerify;function requireVerify(){if(hasRequiredVerify)return verify_1;hasRequiredVerify=1;var _=requireSafeBuffer$2().Buffer,S=requireBn$4(),I=requireElliptic().ec,p=requireParseAsn1(),R=require$$4;function f(y,d,g,M,x){var B=p(g);if(B.type==="ec"){if(M!=="ecdsa"&&M!=="ecdsa/rsa")throw new Error("wrong public key type");return w(y,d,B)}else if(B.type==="dsa"){if(M!=="dsa")throw new Error("wrong public key type");return m(y,d,B)}if(M!=="rsa"&&M!=="ecdsa/rsa")throw new Error("wrong public key type");d=_.concat([x,d]);for(var A=B.modulus.byteLength(),D=[1],C=0;d.length+D.length+2<A;)D.push(255),C+=1;D.push(0);for(var P=-1;++P<d.length;)D.push(d[P]);D=_.from(D);var H=S.mont(B.modulus);y=new S(y).toRed(H),y=y.redPow(new S(B.publicExponent)),y=_.from(y.fromRed().toArray());var N=C<8?1:0;for(A=Math.min(y.length,D.length),y.length!==D.length&&(N=1),P=-1;++P<A;)N|=y[P]^D[P];return N===0}function w(y,d,g){var M=R[g.data.algorithm.curve.join(".")];if(!M)throw new Error("unknown curve "+g.data.algorithm.curve.join("."));var x=new I(M),B=g.data.subjectPrivateKey.data;return x.verify(d,y,B)}function m(y,d,g){var M=g.data.p,x=g.data.q,B=g.data.g,A=g.data.pub_key,D=p.signature.decode(y,"der"),C=D.s,P=D.r;v(C,x),v(P,x);var H=S.mont(M),N=C.invm(x),V=B.toRed(H).redPow(new S(d).mul(N).mod(x)).fromRed().mul(A.toRed(H).redPow(P.mul(N).mod(x)).fromRed()).mod(M).mod(x);return V.cmp(P)===0}function v(y,d){if(y.cmpn(0)<=0)throw new Error("invalid sig");if(y.cmp(d)>=0)throw new Error("invalid sig")}return verify_1=f,verify_1}var browser$3,hasRequiredBrowser$3;function requireBrowser$3(){if(hasRequiredBrowser$3)return browser$3;hasRequiredBrowser$3=1;var _=requireSafeBuffer$2().Buffer,S=requireBrowser$9(),I=requireReadableBrowser(),p=requireInherits_browser(),R=requireSign(),f=requireVerify(),w=require$$6;Object.keys(w).forEach(function(g){w[g].id=_.from(w[g].id,"hex"),w[g.toLowerCase()]=w[g]});function m(g){I.Writable.call(this);var M=w[g];if(!M)throw new Error("Unknown message digest");this._hashType=M.hash,this._hash=S(M.hash),this._tag=M.id,this._signType=M.sign}p(m,I.Writable),m.prototype._write=function(M,x,B){this._hash.update(M),B()},m.prototype.update=function(M,x){return this._hash.update(typeof M=="string"?_.from(M,x):M),this},m.prototype.sign=function(M,x){this.end();var B=this._hash.digest(),A=R(B,M,this._hashType,this._signType,this._tag);return x?A.toString(x):A};function v(g){I.Writable.call(this);var M=w[g];if(!M)throw new Error("Unknown message digest");this._hash=S(M.hash),this._tag=M.id,this._signType=M.sign}p(v,I.Writable),v.prototype._write=function(M,x,B){this._hash.update(M),B()},v.prototype.update=function(M,x){return this._hash.update(typeof M=="string"?_.from(M,x):M),this},v.prototype.verify=function(M,x,B){var A=typeof x=="string"?_.from(x,B):x;this.end();var D=this._hash.digest();return f(A,D,M,this._signType,this._tag)};function y(g){return new m(g)}function d(g){return new v(g)}return browser$3={Sign:y,Verify:d,createSign:y,createVerify:d},browser$3}var bn$3={exports:{}},bn$2=bn$3.exports,hasRequiredBn$1;function requireBn$1(){return hasRequiredBn$1||(hasRequiredBn$1=1,(function(_){(function(S,I){function p(c,e){if(!c)throw new Error(e||"Assertion failed")}function R(c,e){c.super_=e;var t=function(){};t.prototype=e.prototype,c.prototype=new t,c.prototype.constructor=c}function f(c,e,t){if(f.isBN(c))return c;this.negative=0,this.words=null,this.length=0,this.red=null,c!==null&&((e==="le"||e==="be")&&(t=e,e=10),this._init(c||0,e||10,t||"be"))}typeof S=="object"?S.exports=f:I.BN=f,f.BN=f,f.wordSize=26;var w;try{typeof window<"u"&&typeof window.Buffer<"u"?w=window.Buffer:w=requireDist().Buffer}catch{}f.isBN=function(e){return e instanceof f?!0:e!==null&&typeof e=="object"&&e.constructor.wordSize===f.wordSize&&Array.isArray(e.words)},f.max=function(e,t){return e.cmp(t)>0?e:t},f.min=function(e,t){return e.cmp(t)<0?e:t},f.prototype._init=function(e,t,n){if(typeof e=="number")return this._initNumber(e,t,n);if(typeof e=="object")return this._initArray(e,t,n);t==="hex"&&(t=16),p(t===(t|0)&&t>=2&&t<=36),e=e.toString().replace(/\s+/g,"");var a=0;e[0]==="-"&&(a++,this.negative=1),a<e.length&&(t===16?this._parseHex(e,a,n):(this._parseBase(e,t,a),n==="le"&&this._initArray(this.toArray(),t,n)))},f.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[e&67108863],this.length=1):e<4503599627370496?(this.words=[e&67108863,e/67108864&67108863],this.length=2):(p(e<9007199254740992),this.words=[e&67108863,e/67108864&67108863,1],this.length=3),n==="le"&&this._initArray(this.toArray(),t,n)},f.prototype._initArray=function(e,t,n){if(p(typeof e.length=="number"),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var a=0;a<this.length;a++)this.words[a]=0;var s,u,l=0;if(n==="be")for(a=e.length-1,s=0;a>=0;a-=3)u=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[s]|=u<<l&67108863,this.words[s+1]=u>>>26-l&67108863,l+=24,l>=26&&(l-=26,s++);else if(n==="le")for(a=0,s=0;a<e.length;a+=3)u=e[a]|e[a+1]<<8|e[a+2]<<16,this.words[s]|=u<<l&67108863,this.words[s+1]=u>>>26-l&67108863,l+=24,l>=26&&(l-=26,s++);return this.strip()};function m(c,e){var t=c.charCodeAt(e);return t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:t-48&15}function v(c,e,t){var n=m(c,t);return t-1>=e&&(n|=m(c,t-1)<<4),n}f.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var a=0;a<this.length;a++)this.words[a]=0;var s=0,u=0,l;if(n==="be")for(a=e.length-1;a>=t;a-=2)l=v(e,t,a)<<s,this.words[u]|=l&67108863,s>=18?(s-=18,u+=1,this.words[u]|=l>>>26):s+=8;else{var o=e.length-t;for(a=o%2===0?t+1:t;a<e.length;a+=2)l=v(e,t,a)<<s,this.words[u]|=l&67108863,s>=18?(s-=18,u+=1,this.words[u]|=l>>>26):s+=8}this.strip()};function y(c,e,t,n){for(var a=0,s=Math.min(c.length,t),u=e;u<s;u++){var l=c.charCodeAt(u)-48;a*=n,l>=49?a+=l-49+10:l>=17?a+=l-17+10:a+=l}return a}f.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var a=0,s=1;s<=67108863;s*=t)a++;a--,s=s/t|0;for(var u=e.length-n,l=u%a,o=Math.min(u,u-l)+n,r=0,h=n;h<o;h+=a)r=y(e,h,h+a,t),this.imuln(s),this.words[0]+r<67108864?this.words[0]+=r:this._iaddn(r);if(l!==0){var b=1;for(r=y(e,h,e.length,t),h=0;h<l;h++)b*=t;this.imuln(b),this.words[0]+r<67108864?this.words[0]+=r:this._iaddn(r)}this.strip()},f.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},f.prototype.clone=function(){var e=new f(null);return this.copy(e),e},f.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},f.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},f.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},f.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],g=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],M=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];f.prototype.toString=function(e,t){e=e||10,t=t|0||1;var n;if(e===16||e==="hex"){n="";for(var a=0,s=0,u=0;u<this.length;u++){var l=this.words[u],o=((l<<a|s)&16777215).toString(16);s=l>>>24-a&16777215,a+=2,a>=26&&(a-=26,u--),s!==0||u!==this.length-1?n=d[6-o.length]+o+n:n=o+n}for(s!==0&&(n=s.toString(16)+n);n.length%t!==0;)n="0"+n;return this.negative!==0&&(n="-"+n),n}if(e===(e|0)&&e>=2&&e<=36){var r=g[e],h=M[e];n="";var b=this.clone();for(b.negative=0;!b.isZero();){var E=b.modn(h).toString(e);b=b.idivn(h),b.isZero()?n=E+n:n=d[r-E.length]+E+n}for(this.isZero()&&(n="0"+n);n.length%t!==0;)n="0"+n;return this.negative!==0&&(n="-"+n),n}p(!1,"Base should be between 2 and 36")},f.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=this.words[1]*67108864:this.length===3&&this.words[2]===1?e+=4503599627370496+this.words[1]*67108864:this.length>2&&p(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},f.prototype.toJSON=function(){return this.toString(16)},f.prototype.toBuffer=function(e,t){return p(typeof w<"u"),this.toArrayLike(w,e,t)},f.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},f.prototype.toArrayLike=function(e,t,n){var a=this.byteLength(),s=n||Math.max(1,a);p(a<=s,"byte array longer than desired length"),p(s>0,"Requested array length <= 0"),this.strip();var u=t==="le",l=new e(s),o,r,h=this.clone();if(u){for(r=0;!h.isZero();r++)o=h.andln(255),h.iushrn(8),l[r]=o;for(;r<s;r++)l[r]=0}else{for(r=0;r<s-a;r++)l[r]=0;for(r=0;!h.isZero();r++)o=h.andln(255),h.iushrn(8),l[s-r-1]=o}return l},Math.clz32?f.prototype._countBits=function(e){return 32-Math.clz32(e)}:f.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},f.prototype._zeroBits=function(e){if(e===0)return 26;var t=e,n=0;return(t&8191)===0&&(n+=13,t>>>=13),(t&127)===0&&(n+=7,t>>>=7),(t&15)===0&&(n+=4,t>>>=4),(t&3)===0&&(n+=2,t>>>=2),(t&1)===0&&n++,n},f.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t};function x(c){for(var e=new Array(c.bitLength()),t=0;t<e.length;t++){var n=t/26|0,a=t%26;e[t]=(c.words[n]&1<<a)>>>a}return e}f.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,n!==26)break}return e},f.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},f.prototype.toTwos=function(e){return this.negative!==0?this.abs().inotn(e).iaddn(1):this.clone()},f.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},f.prototype.isNeg=function(){return this.negative!==0},f.prototype.neg=function(){return this.clone().ineg()},f.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},f.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},f.prototype.ior=function(e){return p((this.negative|e.negative)===0),this.iuor(e)},f.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},f.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},f.prototype.iuand=function(e){var t;this.length>e.length?t=e:t=this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this.strip()},f.prototype.iand=function(e){return p((this.negative|e.negative)===0),this.iuand(e)},f.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},f.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},f.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var a=0;a<n.length;a++)this.words[a]=t.words[a]^n.words[a];if(this!==t)for(;a<t.length;a++)this.words[a]=t.words[a];return this.length=t.length,this.strip()},f.prototype.ixor=function(e){return p((this.negative|e.negative)===0),this.iuxor(e)},f.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},f.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},f.prototype.inotn=function(e){p(typeof e=="number"&&e>=0);var t=Math.ceil(e/26)|0,n=e%26;this._expand(t),n>0&&t--;for(var a=0;a<t;a++)this.words[a]=~this.words[a]&67108863;return n>0&&(this.words[a]=~this.words[a]&67108863>>26-n),this.strip()},f.prototype.notn=function(e){return this.clone().inotn(e)},f.prototype.setn=function(e,t){p(typeof e=="number"&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),t?this.words[n]=this.words[n]|1<<a:this.words[n]=this.words[n]&~(1<<a),this.strip()},f.prototype.iadd=function(e){var t;if(this.negative!==0&&e.negative===0)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(this.negative===0&&e.negative!==0)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();var n,a;this.length>e.length?(n=this,a=e):(n=e,a=this);for(var s=0,u=0;u<a.length;u++)t=(n.words[u]|0)+(a.words[u]|0)+s,this.words[u]=t&67108863,s=t>>>26;for(;s!==0&&u<n.length;u++)t=(n.words[u]|0)+s,this.words[u]=t&67108863,s=t>>>26;if(this.length=n.length,s!==0)this.words[this.length]=s,this.length++;else if(n!==this)for(;u<n.length;u++)this.words[u]=n.words[u];return this},f.prototype.add=function(e){var t;return e.negative!==0&&this.negative===0?(e.negative=0,t=this.sub(e),e.negative^=1,t):e.negative===0&&this.negative!==0?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},f.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(n===0)return this.negative=0,this.length=1,this.words[0]=0,this;var a,s;n>0?(a=this,s=e):(a=e,s=this);for(var u=0,l=0;l<s.length;l++)t=(a.words[l]|0)-(s.words[l]|0)+u,u=t>>26,this.words[l]=t&67108863;for(;u!==0&&l<a.length;l++)t=(a.words[l]|0)+u,u=t>>26,this.words[l]=t&67108863;if(u===0&&l<a.length&&a!==this)for(;l<a.length;l++)this.words[l]=a.words[l];return this.length=Math.max(this.length,l),a!==this&&(this.negative=1),this.strip()},f.prototype.sub=function(e){return this.clone().isub(e)};function B(c,e,t){t.negative=e.negative^c.negative;var n=c.length+e.length|0;t.length=n,n=n-1|0;var a=c.words[0]|0,s=e.words[0]|0,u=a*s,l=u&67108863,o=u/67108864|0;t.words[0]=l;for(var r=1;r<n;r++){for(var h=o>>>26,b=o&67108863,E=Math.min(r,e.length-1),L=Math.max(0,r-c.length+1);L<=E;L++){var Y=r-L|0;a=c.words[Y]|0,s=e.words[L]|0,u=a*s+b,h+=u/67108864|0,b=u&67108863}t.words[r]=b|0,o=h|0}return o!==0?t.words[r]=o|0:t.length--,t.strip()}var A=function(e,t,n){var a=e.words,s=t.words,u=n.words,l=0,o,r,h,b=a[0]|0,E=b&8191,L=b>>>13,Y=a[1]|0,K=Y&8191,q=Y>>>13,$=a[2]|0,W=$&8191,J=$>>>13,X=a[3]|0,U=X&8191,re=X>>>13,Ie=a[4]|0,ue=Ie&8191,he=Ie>>>13,Pe=a[5]|0,me=Pe&8191,se=Pe>>>13,De=a[6]|0,de=De&8191,ye=De>>>13,Ce=a[7]|0,pe=Ce&8191,_e=Ce>>>13,Ue=a[8]|0,xe=Ue&8191,Ae=Ue>>>13,je=a[9]|0,j=je&8191,k=je>>>13,O=s[0]|0,G=O&8191,te=O>>>13,ce=s[1]|0,fe=ce&8191,we=ce>>>13,Ne=s[2]|0,be=Ne&8191,Se=Ne>>>13,Oe=s[3]|0,qe=Oe&8191,ke=Oe>>>13,We=s[4]|0,Re=We&8191,Te=We>>>13,Ke=s[5]|0,z=Ke&8191,T=Ke>>>13,F=s[6]|0,Z=F&8191,ie=F>>>13,ve=s[7]|0,oe=ve&8191,Me=ve>>>13,Le=s[8]|0,ge=Le&8191,Be=Le>>>13,Fe=s[9]|0,Ee=Fe&8191,$e=Fe>>>13;n.negative=e.negative^t.negative,n.length=19,o=Math.imul(E,G),r=Math.imul(E,te),r=r+Math.imul(L,G)|0,h=Math.imul(L,te);var He=(l+o|0)+((r&8191)<<13)|0;l=(h+(r>>>13)|0)+(He>>>26)|0,He&=67108863,o=Math.imul(K,G),r=Math.imul(K,te),r=r+Math.imul(q,G)|0,h=Math.imul(q,te),o=o+Math.imul(E,fe)|0,r=r+Math.imul(E,we)|0,r=r+Math.imul(L,fe)|0,h=h+Math.imul(L,we)|0;var ze=(l+o|0)+((r&8191)<<13)|0;l=(h+(r>>>13)|0)+(ze>>>26)|0,ze&=67108863,o=Math.imul(W,G),r=Math.imul(W,te),r=r+Math.imul(J,G)|0,h=Math.imul(J,te),o=o+Math.imul(K,fe)|0,r=r+Math.imul(K,we)|0,r=r+Math.imul(q,fe)|0,h=h+Math.imul(q,we)|0,o=o+Math.imul(E,be)|0,r=r+Math.imul(E,Se)|0,r=r+Math.imul(L,be)|0,h=h+Math.imul(L,Se)|0;var Ge=(l+o|0)+((r&8191)<<13)|0;l=(h+(r>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,o=Math.imul(U,G),r=Math.imul(U,te),r=r+Math.imul(re,G)|0,h=Math.imul(re,te),o=o+Math.imul(W,fe)|0,r=r+Math.imul(W,we)|0,r=r+Math.imul(J,fe)|0,h=h+Math.imul(J,we)|0,o=o+Math.imul(K,be)|0,r=r+Math.imul(K,Se)|0,r=r+Math.imul(q,be)|0,h=h+Math.imul(q,Se)|0,o=o+Math.imul(E,qe)|0,r=r+Math.imul(E,ke)|0,r=r+Math.imul(L,qe)|0,h=h+Math.imul(L,ke)|0;var Ze=(l+o|0)+((r&8191)<<13)|0;l=(h+(r>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,o=Math.imul(ue,G),r=Math.imul(ue,te),r=r+Math.imul(he,G)|0,h=Math.imul(he,te),o=o+Math.imul(U,fe)|0,r=r+Math.imul(U,we)|0,r=r+Math.imul(re,fe)|0,h=h+Math.imul(re,we)|0,o=o+Math.imul(W,be)|0,r=r+Math.imul(W,Se)|0,r=r+Math.imul(J,be)|0,h=h+Math.imul(J,Se)|0,o=o+Math.imul(K,qe)|0,r=r+Math.imul(K,ke)|0,r=r+Math.imul(q,qe)|0,h=h+Math.imul(q,ke)|0,o=o+Math.imul(E,Re)|0,r=r+Math.imul(E,Te)|0,r=r+Math.imul(L,Re)|0,h=h+Math.imul(L,Te)|0;var Ve=(l+o|0)+((r&8191)<<13)|0;l=(h+(r>>>13)|0)+(Ve>>>26)|0,Ve&=67108863,o=Math.imul(me,G),r=Math.imul(me,te),r=r+Math.imul(se,G)|0,h=Math.imul(se,te),o=o+Math.imul(ue,fe)|0,r=r+Math.imul(ue,we)|0,r=r+Math.imul(he,fe)|0,h=h+Math.imul(he,we)|0,o=o+Math.imul(U,be)|0,r=r+Math.imul(U,Se)|0,r=r+Math.imul(re,be)|0,h=h+Math.imul(re,Se)|0,o=o+Math.imul(W,qe)|0,r=r+Math.imul(W,ke)|0,r=r+Math.imul(J,qe)|0,h=h+Math.imul(J,ke)|0,o=o+Math.imul(K,Re)|0,r=r+Math.imul(K,Te)|0,r=r+Math.imul(q,Re)|0,h=h+Math.imul(q,Te)|0,o=o+Math.imul(E,z)|0,r=r+Math.imul(E,T)|0,r=r+Math.imul(L,z)|0,h=h+Math.imul(L,T)|0;var Xe=(l+o|0)+((r&8191)<<13)|0;l=(h+(r>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,o=Math.imul(de,G),r=Math.imul(de,te),r=r+Math.imul(ye,G)|0,h=Math.imul(ye,te),o=o+Math.imul(me,fe)|0,r=r+Math.imul(me,we)|0,r=r+Math.imul(se,fe)|0,h=h+Math.imul(se,we)|0,o=o+Math.imul(ue,be)|0,r=r+Math.imul(ue,Se)|0,r=r+Math.imul(he,be)|0,h=h+Math.imul(he,Se)|0,o=o+Math.imul(U,qe)|0,r=r+Math.imul(U,ke)|0,r=r+Math.imul(re,qe)|0,h=h+Math.imul(re,ke)|0,o=o+Math.imul(W,Re)|0,r=r+Math.imul(W,Te)|0,r=r+Math.imul(J,Re)|0,h=h+Math.imul(J,Te)|0,o=o+Math.imul(K,z)|0,r=r+Math.imul(K,T)|0,r=r+Math.imul(q,z)|0,h=h+Math.imul(q,T)|0,o=o+Math.imul(E,Z)|0,r=r+Math.imul(E,ie)|0,r=r+Math.imul(L,Z)|0,h=h+Math.imul(L,ie)|0;var Je=(l+o|0)+((r&8191)<<13)|0;l=(h+(r>>>13)|0)+(Je>>>26)|0,Je&=67108863,o=Math.imul(pe,G),r=Math.imul(pe,te),r=r+Math.imul(_e,G)|0,h=Math.imul(_e,te),o=o+Math.imul(de,fe)|0,r=r+Math.imul(de,we)|0,r=r+Math.imul(ye,fe)|0,h=h+Math.imul(ye,we)|0,o=o+Math.imul(me,be)|0,r=r+Math.imul(me,Se)|0,r=r+Math.imul(se,be)|0,h=h+Math.imul(se,Se)|0,o=o+Math.imul(ue,qe)|0,r=r+Math.imul(ue,ke)|0,r=r+Math.imul(he,qe)|0,h=h+Math.imul(he,ke)|0,o=o+Math.imul(U,Re)|0,r=r+Math.imul(U,Te)|0,r=r+Math.imul(re,Re)|0,h=h+Math.imul(re,Te)|0,o=o+Math.imul(W,z)|0,r=r+Math.imul(W,T)|0,r=r+Math.imul(J,z)|0,h=h+Math.imul(J,T)|0,o=o+Math.imul(K,Z)|0,r=r+Math.imul(K,ie)|0,r=r+Math.imul(q,Z)|0,h=h+Math.imul(q,ie)|0,o=o+Math.imul(E,oe)|0,r=r+Math.imul(E,Me)|0,r=r+Math.imul(L,oe)|0,h=h+Math.imul(L,Me)|0;var Ye=(l+o|0)+((r&8191)<<13)|0;l=(h+(r>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,o=Math.imul(xe,G),r=Math.imul(xe,te),r=r+Math.imul(Ae,G)|0,h=Math.imul(Ae,te),o=o+Math.imul(pe,fe)|0,r=r+Math.imul(pe,we)|0,r=r+Math.imul(_e,fe)|0,h=h+Math.imul(_e,we)|0,o=o+Math.imul(de,be)|0,r=r+Math.imul(de,Se)|0,r=r+Math.imul(ye,be)|0,h=h+Math.imul(ye,Se)|0,o=o+Math.imul(me,qe)|0,r=r+Math.imul(me,ke)|0,r=r+Math.imul(se,qe)|0,h=h+Math.imul(se,ke)|0,o=o+Math.imul(ue,Re)|0,r=r+Math.imul(ue,Te)|0,r=r+Math.imul(he,Re)|0,h=h+Math.imul(he,Te)|0,o=o+Math.imul(U,z)|0,r=r+Math.imul(U,T)|0,r=r+Math.imul(re,z)|0,h=h+Math.imul(re,T)|0,o=o+Math.imul(W,Z)|0,r=r+Math.imul(W,ie)|0,r=r+Math.imul(J,Z)|0,h=h+Math.imul(J,ie)|0,o=o+Math.imul(K,oe)|0,r=r+Math.imul(K,Me)|0,r=r+Math.imul(q,oe)|0,h=h+Math.imul(q,Me)|0,o=o+Math.imul(E,ge)|0,r=r+Math.imul(E,Be)|0,r=r+Math.imul(L,ge)|0,h=h+Math.imul(L,Be)|0;var Qe=(l+o|0)+((r&8191)<<13)|0;l=(h+(r>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,o=Math.imul(j,G),r=Math.imul(j,te),r=r+Math.imul(k,G)|0,h=Math.imul(k,te),o=o+Math.imul(xe,fe)|0,r=r+Math.imul(xe,we)|0,r=r+Math.imul(Ae,fe)|0,h=h+Math.imul(Ae,we)|0,o=o+Math.imul(pe,be)|0,r=r+Math.imul(pe,Se)|0,r=r+Math.imul(_e,be)|0,h=h+Math.imul(_e,Se)|0,o=o+Math.imul(de,qe)|0,r=r+Math.imul(de,ke)|0,r=r+Math.imul(ye,qe)|0,h=h+Math.imul(ye,ke)|0,o=o+Math.imul(me,Re)|0,r=r+Math.imul(me,Te)|0,r=r+Math.imul(se,Re)|0,h=h+Math.imul(se,Te)|0,o=o+Math.imul(ue,z)|0,r=r+Math.imul(ue,T)|0,r=r+Math.imul(he,z)|0,h=h+Math.imul(he,T)|0,o=o+Math.imul(U,Z)|0,r=r+Math.imul(U,ie)|0,r=r+Math.imul(re,Z)|0,h=h+Math.imul(re,ie)|0,o=o+Math.imul(W,oe)|0,r=r+Math.imul(W,Me)|0,r=r+Math.imul(J,oe)|0,h=h+Math.imul(J,Me)|0,o=o+Math.imul(K,ge)|0,r=r+Math.imul(K,Be)|0,r=r+Math.imul(q,ge)|0,h=h+Math.imul(q,Be)|0,o=o+Math.imul(E,Ee)|0,r=r+Math.imul(E,$e)|0,r=r+Math.imul(L,Ee)|0,h=h+Math.imul(L,$e)|0;var er=(l+o|0)+((r&8191)<<13)|0;l=(h+(r>>>13)|0)+(er>>>26)|0,er&=67108863,o=Math.imul(j,fe),r=Math.imul(j,we),r=r+Math.imul(k,fe)|0,h=Math.imul(k,we),o=o+Math.imul(xe,be)|0,r=r+Math.imul(xe,Se)|0,r=r+Math.imul(Ae,be)|0,h=h+Math.imul(Ae,Se)|0,o=o+Math.imul(pe,qe)|0,r=r+Math.imul(pe,ke)|0,r=r+Math.imul(_e,qe)|0,h=h+Math.imul(_e,ke)|0,o=o+Math.imul(de,Re)|0,r=r+Math.imul(de,Te)|0,r=r+Math.imul(ye,Re)|0,h=h+Math.imul(ye,Te)|0,o=o+Math.imul(me,z)|0,r=r+Math.imul(me,T)|0,r=r+Math.imul(se,z)|0,h=h+Math.imul(se,T)|0,o=o+Math.imul(ue,Z)|0,r=r+Math.imul(ue,ie)|0,r=r+Math.imul(he,Z)|0,h=h+Math.imul(he,ie)|0,o=o+Math.imul(U,oe)|0,r=r+Math.imul(U,Me)|0,r=r+Math.imul(re,oe)|0,h=h+Math.imul(re,Me)|0,o=o+Math.imul(W,ge)|0,r=r+Math.imul(W,Be)|0,r=r+Math.imul(J,ge)|0,h=h+Math.imul(J,Be)|0,o=o+Math.imul(K,Ee)|0,r=r+Math.imul(K,$e)|0,r=r+Math.imul(q,Ee)|0,h=h+Math.imul(q,$e)|0;var rr=(l+o|0)+((r&8191)<<13)|0;l=(h+(r>>>13)|0)+(rr>>>26)|0,rr&=67108863,o=Math.imul(j,be),r=Math.imul(j,Se),r=r+Math.imul(k,be)|0,h=Math.imul(k,Se),o=o+Math.imul(xe,qe)|0,r=r+Math.imul(xe,ke)|0,r=r+Math.imul(Ae,qe)|0,h=h+Math.imul(Ae,ke)|0,o=o+Math.imul(pe,Re)|0,r=r+Math.imul(pe,Te)|0,r=r+Math.imul(_e,Re)|0,h=h+Math.imul(_e,Te)|0,o=o+Math.imul(de,z)|0,r=r+Math.imul(de,T)|0,r=r+Math.imul(ye,z)|0,h=h+Math.imul(ye,T)|0,o=o+Math.imul(me,Z)|0,r=r+Math.imul(me,ie)|0,r=r+Math.imul(se,Z)|0,h=h+Math.imul(se,ie)|0,o=o+Math.imul(ue,oe)|0,r=r+Math.imul(ue,Me)|0,r=r+Math.imul(he,oe)|0,h=h+Math.imul(he,Me)|0,o=o+Math.imul(U,ge)|0,r=r+Math.imul(U,Be)|0,r=r+Math.imul(re,ge)|0,h=h+Math.imul(re,Be)|0,o=o+Math.imul(W,Ee)|0,r=r+Math.imul(W,$e)|0,r=r+Math.imul(J,Ee)|0,h=h+Math.imul(J,$e)|0;var tr=(l+o|0)+((r&8191)<<13)|0;l=(h+(r>>>13)|0)+(tr>>>26)|0,tr&=67108863,o=Math.imul(j,qe),r=Math.imul(j,ke),r=r+Math.imul(k,qe)|0,h=Math.imul(k,ke),o=o+Math.imul(xe,Re)|0,r=r+Math.imul(xe,Te)|0,r=r+Math.imul(Ae,Re)|0,h=h+Math.imul(Ae,Te)|0,o=o+Math.imul(pe,z)|0,r=r+Math.imul(pe,T)|0,r=r+Math.imul(_e,z)|0,h=h+Math.imul(_e,T)|0,o=o+Math.imul(de,Z)|0,r=r+Math.imul(de,ie)|0,r=r+Math.imul(ye,Z)|0,h=h+Math.imul(ye,ie)|0,o=o+Math.imul(me,oe)|0,r=r+Math.imul(me,Me)|0,r=r+Math.imul(se,oe)|0,h=h+Math.imul(se,Me)|0,o=o+Math.imul(ue,ge)|0,r=r+Math.imul(ue,Be)|0,r=r+Math.imul(he,ge)|0,h=h+Math.imul(he,Be)|0,o=o+Math.imul(U,Ee)|0,r=r+Math.imul(U,$e)|0,r=r+Math.imul(re,Ee)|0,h=h+Math.imul(re,$e)|0;var ir=(l+o|0)+((r&8191)<<13)|0;l=(h+(r>>>13)|0)+(ir>>>26)|0,ir&=67108863,o=Math.imul(j,Re),r=Math.imul(j,Te),r=r+Math.imul(k,Re)|0,h=Math.imul(k,Te),o=o+Math.imul(xe,z)|0,r=r+Math.imul(xe,T)|0,r=r+Math.imul(Ae,z)|0,h=h+Math.imul(Ae,T)|0,o=o+Math.imul(pe,Z)|0,r=r+Math.imul(pe,ie)|0,r=r+Math.imul(_e,Z)|0,h=h+Math.imul(_e,ie)|0,o=o+Math.imul(de,oe)|0,r=r+Math.imul(de,Me)|0,r=r+Math.imul(ye,oe)|0,h=h+Math.imul(ye,Me)|0,o=o+Math.imul(me,ge)|0,r=r+Math.imul(me,Be)|0,r=r+Math.imul(se,ge)|0,h=h+Math.imul(se,Be)|0,o=o+Math.imul(ue,Ee)|0,r=r+Math.imul(ue,$e)|0,r=r+Math.imul(he,Ee)|0,h=h+Math.imul(he,$e)|0;var nr=(l+o|0)+((r&8191)<<13)|0;l=(h+(r>>>13)|0)+(nr>>>26)|0,nr&=67108863,o=Math.imul(j,z),r=Math.imul(j,T),r=r+Math.imul(k,z)|0,h=Math.imul(k,T),o=o+Math.imul(xe,Z)|0,r=r+Math.imul(xe,ie)|0,r=r+Math.imul(Ae,Z)|0,h=h+Math.imul(Ae,ie)|0,o=o+Math.imul(pe,oe)|0,r=r+Math.imul(pe,Me)|0,r=r+Math.imul(_e,oe)|0,h=h+Math.imul(_e,Me)|0,o=o+Math.imul(de,ge)|0,r=r+Math.imul(de,Be)|0,r=r+Math.imul(ye,ge)|0,h=h+Math.imul(ye,Be)|0,o=o+Math.imul(me,Ee)|0,r=r+Math.imul(me,$e)|0,r=r+Math.imul(se,Ee)|0,h=h+Math.imul(se,$e)|0;var ar=(l+o|0)+((r&8191)<<13)|0;l=(h+(r>>>13)|0)+(ar>>>26)|0,ar&=67108863,o=Math.imul(j,Z),r=Math.imul(j,ie),r=r+Math.imul(k,Z)|0,h=Math.imul(k,ie),o=o+Math.imul(xe,oe)|0,r=r+Math.imul(xe,Me)|0,r=r+Math.imul(Ae,oe)|0,h=h+Math.imul(Ae,Me)|0,o=o+Math.imul(pe,ge)|0,r=r+Math.imul(pe,Be)|0,r=r+Math.imul(_e,ge)|0,h=h+Math.imul(_e,Be)|0,o=o+Math.imul(de,Ee)|0,r=r+Math.imul(de,$e)|0,r=r+Math.imul(ye,Ee)|0,h=h+Math.imul(ye,$e)|0;var fr=(l+o|0)+((r&8191)<<13)|0;l=(h+(r>>>13)|0)+(fr>>>26)|0,fr&=67108863,o=Math.imul(j,oe),r=Math.imul(j,Me),r=r+Math.imul(k,oe)|0,h=Math.imul(k,Me),o=o+Math.imul(xe,ge)|0,r=r+Math.imul(xe,Be)|0,r=r+Math.imul(Ae,ge)|0,h=h+Math.imul(Ae,Be)|0,o=o+Math.imul(pe,Ee)|0,r=r+Math.imul(pe,$e)|0,r=r+Math.imul(_e,Ee)|0,h=h+Math.imul(_e,$e)|0;var or=(l+o|0)+((r&8191)<<13)|0;l=(h+(r>>>13)|0)+(or>>>26)|0,or&=67108863,o=Math.imul(j,ge),r=Math.imul(j,Be),r=r+Math.imul(k,ge)|0,h=Math.imul(k,Be),o=o+Math.imul(xe,Ee)|0,r=r+Math.imul(xe,$e)|0,r=r+Math.imul(Ae,Ee)|0,h=h+Math.imul(Ae,$e)|0;var sr=(l+o|0)+((r&8191)<<13)|0;l=(h+(r>>>13)|0)+(sr>>>26)|0,sr&=67108863,o=Math.imul(j,Ee),r=Math.imul(j,$e),r=r+Math.imul(k,Ee)|0,h=Math.imul(k,$e);var hr=(l+o|0)+((r&8191)<<13)|0;return l=(h+(r>>>13)|0)+(hr>>>26)|0,hr&=67108863,u[0]=He,u[1]=ze,u[2]=Ge,u[3]=Ze,u[4]=Ve,u[5]=Xe,u[6]=Je,u[7]=Ye,u[8]=Qe,u[9]=er,u[10]=rr,u[11]=tr,u[12]=ir,u[13]=nr,u[14]=ar,u[15]=fr,u[16]=or,u[17]=sr,u[18]=hr,l!==0&&(u[19]=l,n.length++),n};Math.imul||(A=B);function D(c,e,t){t.negative=e.negative^c.negative,t.length=c.length+e.length;for(var n=0,a=0,s=0;s<t.length-1;s++){var u=a;a=0;for(var l=n&67108863,o=Math.min(s,e.length-1),r=Math.max(0,s-c.length+1);r<=o;r++){var h=s-r,b=c.words[h]|0,E=e.words[r]|0,L=b*E,Y=L&67108863;u=u+(L/67108864|0)|0,Y=Y+l|0,l=Y&67108863,u=u+(Y>>>26)|0,a+=u>>>26,u&=67108863}t.words[s]=l,n=u,u=a}return n!==0?t.words[s]=n:t.length--,t.strip()}function C(c,e,t){var n=new P;return n.mulp(c,e,t)}f.prototype.mulTo=function(e,t){var n,a=this.length+e.length;return this.length===10&&e.length===10?n=A(this,e,t):a<63?n=B(this,e,t):a<1024?n=D(this,e,t):n=C(this,e,t),n};function P(c,e){this.x=c,this.y=e}P.prototype.makeRBT=function(e){for(var t=new Array(e),n=f.prototype._countBits(e)-1,a=0;a<e;a++)t[a]=this.revBin(a,n,e);return t},P.prototype.revBin=function(e,t,n){if(e===0||e===n-1)return e;for(var a=0,s=0;s<t;s++)a|=(e&1)<<t-s-1,e>>=1;return a},P.prototype.permute=function(e,t,n,a,s,u){for(var l=0;l<u;l++)a[l]=t[e[l]],s[l]=n[e[l]]},P.prototype.transform=function(e,t,n,a,s,u){this.permute(u,e,t,n,a,s);for(var l=1;l<s;l<<=1)for(var o=l<<1,r=Math.cos(2*Math.PI/o),h=Math.sin(2*Math.PI/o),b=0;b<s;b+=o)for(var E=r,L=h,Y=0;Y<l;Y++){var K=n[b+Y],q=a[b+Y],$=n[b+Y+l],W=a[b+Y+l],J=E*$-L*W;W=E*W+L*$,$=J,n[b+Y]=K+$,a[b+Y]=q+W,n[b+Y+l]=K-$,a[b+Y+l]=q-W,Y!==o&&(J=r*E-h*L,L=r*L+h*E,E=J)}},P.prototype.guessLen13b=function(e,t){var n=Math.max(t,e)|1,a=n&1,s=0;for(n=n/2|0;n;n=n>>>1)s++;return 1<<s+1+a},P.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var a=0;a<n/2;a++){var s=e[a];e[a]=e[n-a-1],e[n-a-1]=s,s=t[a],t[a]=-t[n-a-1],t[n-a-1]=-s}},P.prototype.normalize13b=function(e,t){for(var n=0,a=0;a<t/2;a++){var s=Math.round(e[2*a+1]/t)*8192+Math.round(e[2*a]/t)+n;e[a]=s&67108863,s<67108864?n=0:n=s/67108864|0}return e},P.prototype.convert13b=function(e,t,n,a){for(var s=0,u=0;u<t;u++)s=s+(e[u]|0),n[2*u]=s&8191,s=s>>>13,n[2*u+1]=s&8191,s=s>>>13;for(u=2*t;u<a;++u)n[u]=0;p(s===0),p((s&-8192)===0)},P.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},P.prototype.mulp=function(e,t,n){var a=2*this.guessLen13b(e.length,t.length),s=this.makeRBT(a),u=this.stub(a),l=new Array(a),o=new Array(a),r=new Array(a),h=new Array(a),b=new Array(a),E=new Array(a),L=n.words;L.length=a,this.convert13b(e.words,e.length,l,a),this.convert13b(t.words,t.length,h,a),this.transform(l,u,o,r,a,s),this.transform(h,u,b,E,a,s);for(var Y=0;Y<a;Y++){var K=o[Y]*b[Y]-r[Y]*E[Y];r[Y]=o[Y]*E[Y]+r[Y]*b[Y],o[Y]=K}return this.conjugate(o,r,a),this.transform(o,r,L,u,a,s),this.conjugate(L,u,a),this.normalize13b(L,a),n.negative=e.negative^t.negative,n.length=e.length+t.length,n.strip()},f.prototype.mul=function(e){var t=new f(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},f.prototype.mulf=function(e){var t=new f(null);return t.words=new Array(this.length+e.length),C(this,e,t)},f.prototype.imul=function(e){return this.clone().mulTo(e,this)},f.prototype.imuln=function(e){p(typeof e=="number"),p(e<67108864);for(var t=0,n=0;n<this.length;n++){var a=(this.words[n]|0)*e,s=(a&67108863)+(t&67108863);t>>=26,t+=a/67108864|0,t+=s>>>26,this.words[n]=s&67108863}return t!==0&&(this.words[n]=t,this.length++),this.length=e===0?1:this.length,this},f.prototype.muln=function(e){return this.clone().imuln(e)},f.prototype.sqr=function(){return this.mul(this)},f.prototype.isqr=function(){return this.imul(this.clone())},f.prototype.pow=function(e){var t=x(e);if(t.length===0)return new f(1);for(var n=this,a=0;a<t.length&&t[a]===0;a++,n=n.sqr());if(++a<t.length)for(var s=n.sqr();a<t.length;a++,s=s.sqr())t[a]!==0&&(n=n.mul(s));return n},f.prototype.iushln=function(e){p(typeof e=="number"&&e>=0);var t=e%26,n=(e-t)/26,a=67108863>>>26-t<<26-t,s;if(t!==0){var u=0;for(s=0;s<this.length;s++){var l=this.words[s]&a,o=(this.words[s]|0)-l<<t;this.words[s]=o|u,u=l>>>26-t}u&&(this.words[s]=u,this.length++)}if(n!==0){for(s=this.length-1;s>=0;s--)this.words[s+n]=this.words[s];for(s=0;s<n;s++)this.words[s]=0;this.length+=n}return this.strip()},f.prototype.ishln=function(e){return p(this.negative===0),this.iushln(e)},f.prototype.iushrn=function(e,t,n){p(typeof e=="number"&&e>=0);var a;t?a=(t-t%26)/26:a=0;var s=e%26,u=Math.min((e-s)/26,this.length),l=67108863^67108863>>>s<<s,o=n;if(a-=u,a=Math.max(0,a),o){for(var r=0;r<u;r++)o.words[r]=this.words[r];o.length=u}if(u!==0)if(this.length>u)for(this.length-=u,r=0;r<this.length;r++)this.words[r]=this.words[r+u];else this.words[0]=0,this.length=1;var h=0;for(r=this.length-1;r>=0&&(h!==0||r>=a);r--){var b=this.words[r]|0;this.words[r]=h<<26-s|b>>>s,h=b&l}return o&&h!==0&&(o.words[o.length++]=h),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},f.prototype.ishrn=function(e,t,n){return p(this.negative===0),this.iushrn(e,t,n)},f.prototype.shln=function(e){return this.clone().ishln(e)},f.prototype.ushln=function(e){return this.clone().iushln(e)},f.prototype.shrn=function(e){return this.clone().ishrn(e)},f.prototype.ushrn=function(e){return this.clone().iushrn(e)},f.prototype.testn=function(e){p(typeof e=="number"&&e>=0);var t=e%26,n=(e-t)/26,a=1<<t;if(this.length<=n)return!1;var s=this.words[n];return!!(s&a)},f.prototype.imaskn=function(e){p(typeof e=="number"&&e>=0);var t=e%26,n=(e-t)/26;if(p(this.negative===0,"imaskn works only with positive numbers"),this.length<=n)return this;if(t!==0&&n++,this.length=Math.min(n,this.length),t!==0){var a=67108863^67108863>>>t<<t;this.words[this.length-1]&=a}return this.strip()},f.prototype.maskn=function(e){return this.clone().imaskn(e)},f.prototype.iaddn=function(e){return p(typeof e=="number"),p(e<67108864),e<0?this.isubn(-e):this.negative!==0?this.length===1&&(this.words[0]|0)<e?(this.words[0]=e-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},f.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},f.prototype.isubn=function(e){if(p(typeof e=="number"),p(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},f.prototype.addn=function(e){return this.clone().iaddn(e)},f.prototype.subn=function(e){return this.clone().isubn(e)},f.prototype.iabs=function(){return this.negative=0,this},f.prototype.abs=function(){return this.clone().iabs()},f.prototype._ishlnsubmul=function(e,t,n){var a=e.length+n,s;this._expand(a);var u,l=0;for(s=0;s<e.length;s++){u=(this.words[s+n]|0)+l;var o=(e.words[s]|0)*t;u-=o&67108863,l=(u>>26)-(o/67108864|0),this.words[s+n]=u&67108863}for(;s<this.length-n;s++)u=(this.words[s+n]|0)+l,l=u>>26,this.words[s+n]=u&67108863;if(l===0)return this.strip();for(p(l===-1),l=0,s=0;s<this.length;s++)u=-(this.words[s]|0)+l,l=u>>26,this.words[s]=u&67108863;return this.negative=1,this.strip()},f.prototype._wordDiv=function(e,t){var n=this.length-e.length,a=this.clone(),s=e,u=s.words[s.length-1]|0,l=this._countBits(u);n=26-l,n!==0&&(s=s.ushln(n),a.iushln(n),u=s.words[s.length-1]|0);var o=a.length-s.length,r;if(t!=="mod"){r=new f(null),r.length=o+1,r.words=new Array(r.length);for(var h=0;h<r.length;h++)r.words[h]=0}var b=a.clone()._ishlnsubmul(s,1,o);b.negative===0&&(a=b,r&&(r.words[o]=1));for(var E=o-1;E>=0;E--){var L=(a.words[s.length+E]|0)*67108864+(a.words[s.length+E-1]|0);for(L=Math.min(L/u|0,67108863),a._ishlnsubmul(s,L,E);a.negative!==0;)L--,a.negative=0,a._ishlnsubmul(s,1,E),a.isZero()||(a.negative^=1);r&&(r.words[E]=L)}return r&&r.strip(),a.strip(),t!=="div"&&n!==0&&a.iushrn(n),{div:r||null,mod:a}},f.prototype.divmod=function(e,t,n){if(p(!e.isZero()),this.isZero())return{div:new f(0),mod:new f(0)};var a,s,u;return this.negative!==0&&e.negative===0?(u=this.neg().divmod(e,t),t!=="mod"&&(a=u.div.neg()),t!=="div"&&(s=u.mod.neg(),n&&s.negative!==0&&s.iadd(e)),{div:a,mod:s}):this.negative===0&&e.negative!==0?(u=this.divmod(e.neg(),t),t!=="mod"&&(a=u.div.neg()),{div:a,mod:u.mod}):(this.negative&e.negative)!==0?(u=this.neg().divmod(e.neg(),t),t!=="div"&&(s=u.mod.neg(),n&&s.negative!==0&&s.isub(e)),{div:u.div,mod:s}):e.length>this.length||this.cmp(e)<0?{div:new f(0),mod:this}:e.length===1?t==="div"?{div:this.divn(e.words[0]),mod:null}:t==="mod"?{div:null,mod:new f(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new f(this.modn(e.words[0]))}:this._wordDiv(e,t)},f.prototype.div=function(e){return this.divmod(e,"div",!1).div},f.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},f.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},f.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=t.div.negative!==0?t.mod.isub(e):t.mod,a=e.ushrn(1),s=e.andln(1),u=n.cmp(a);return u<0||s===1&&u===0?t.div:t.div.negative!==0?t.div.isubn(1):t.div.iaddn(1)},f.prototype.modn=function(e){p(e<=67108863);for(var t=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(t*n+(this.words[a]|0))%e;return n},f.prototype.idivn=function(e){p(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var a=(this.words[n]|0)+t*67108864;this.words[n]=a/e|0,t=a%e}return this.strip()},f.prototype.divn=function(e){return this.clone().idivn(e)},f.prototype.egcd=function(e){p(e.negative===0),p(!e.isZero());var t=this,n=e.clone();t.negative!==0?t=t.umod(e):t=t.clone();for(var a=new f(1),s=new f(0),u=new f(0),l=new f(1),o=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++o;for(var r=n.clone(),h=t.clone();!t.isZero();){for(var b=0,E=1;(t.words[0]&E)===0&&b<26;++b,E<<=1);if(b>0)for(t.iushrn(b);b-- >0;)(a.isOdd()||s.isOdd())&&(a.iadd(r),s.isub(h)),a.iushrn(1),s.iushrn(1);for(var L=0,Y=1;(n.words[0]&Y)===0&&L<26;++L,Y<<=1);if(L>0)for(n.iushrn(L);L-- >0;)(u.isOdd()||l.isOdd())&&(u.iadd(r),l.isub(h)),u.iushrn(1),l.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(u),s.isub(l)):(n.isub(t),u.isub(a),l.isub(s))}return{a:u,b:l,gcd:n.iushln(o)}},f.prototype._invmp=function(e){p(e.negative===0),p(!e.isZero());var t=this,n=e.clone();t.negative!==0?t=t.umod(e):t=t.clone();for(var a=new f(1),s=new f(0),u=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,o=1;(t.words[0]&o)===0&&l<26;++l,o<<=1);if(l>0)for(t.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var r=0,h=1;(n.words[0]&h)===0&&r<26;++r,h<<=1);if(r>0)for(n.iushrn(r);r-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s)):(n.isub(t),s.isub(a))}var b;return t.cmpn(1)===0?b=a:b=s,b.cmpn(0)<0&&b.iadd(e),b},f.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var a=0;t.isEven()&&n.isEven();a++)t.iushrn(1),n.iushrn(1);do{for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var s=t.cmp(n);if(s<0){var u=t;t=n,n=u}else if(s===0||n.cmpn(1)===0)break;t.isub(n)}while(!0);return n.iushln(a)},f.prototype.invm=function(e){return this.egcd(e).a.umod(e)},f.prototype.isEven=function(){return(this.words[0]&1)===0},f.prototype.isOdd=function(){return(this.words[0]&1)===1},f.prototype.andln=function(e){return this.words[0]&e},f.prototype.bincn=function(e){p(typeof e=="number");var t=e%26,n=(e-t)/26,a=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=a,this;for(var s=a,u=n;s!==0&&u<this.length;u++){var l=this.words[u]|0;l+=s,s=l>>>26,l&=67108863,this.words[u]=l}return s!==0&&(this.words[u]=s,this.length++),this},f.prototype.isZero=function(){return this.length===1&&this.words[0]===0},f.prototype.cmpn=function(e){var t=e<0;if(this.negative!==0&&!t)return-1;if(this.negative===0&&t)return 1;this.strip();var n;if(this.length>1)n=1;else{t&&(e=-e),p(e<=67108863,"Number is too big");var a=this.words[0]|0;n=a===e?0:a<e?-1:1}return this.negative!==0?-n|0:n},f.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var t=this.ucmp(e);return this.negative!==0?-t|0:t},f.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var a=this.words[n]|0,s=e.words[n]|0;if(a!==s){a<s?t=-1:a>s&&(t=1);break}}return t},f.prototype.gtn=function(e){return this.cmpn(e)===1},f.prototype.gt=function(e){return this.cmp(e)===1},f.prototype.gten=function(e){return this.cmpn(e)>=0},f.prototype.gte=function(e){return this.cmp(e)>=0},f.prototype.ltn=function(e){return this.cmpn(e)===-1},f.prototype.lt=function(e){return this.cmp(e)===-1},f.prototype.lten=function(e){return this.cmpn(e)<=0},f.prototype.lte=function(e){return this.cmp(e)<=0},f.prototype.eqn=function(e){return this.cmpn(e)===0},f.prototype.eq=function(e){return this.cmp(e)===0},f.red=function(e){return new ee(e)},f.prototype.toRed=function(e){return p(!this.red,"Already a number in reduction context"),p(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},f.prototype.fromRed=function(){return p(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},f.prototype._forceRed=function(e){return this.red=e,this},f.prototype.forceRed=function(e){return p(!this.red,"Already a number in reduction context"),this._forceRed(e)},f.prototype.redAdd=function(e){return p(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},f.prototype.redIAdd=function(e){return p(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},f.prototype.redSub=function(e){return p(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},f.prototype.redISub=function(e){return p(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},f.prototype.redShl=function(e){return p(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},f.prototype.redMul=function(e){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},f.prototype.redIMul=function(e){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},f.prototype.redSqr=function(){return p(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},f.prototype.redISqr=function(){return p(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},f.prototype.redSqrt=function(){return p(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},f.prototype.redInvm=function(){return p(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},f.prototype.redNeg=function(){return p(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},f.prototype.redPow=function(e){return p(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var H={k256:null,p224:null,p192:null,p25519:null};function N(c,e){this.name=c,this.p=new f(e,16),this.n=this.p.bitLength(),this.k=new f(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}N.prototype._tmp=function(){var e=new f(null);return e.words=new Array(Math.ceil(this.n/13)),e},N.prototype.ireduce=function(e){var t=e,n;do this.split(t,this.tmp),t=this.imulK(t),t=t.iadd(this.tmp),n=t.bitLength();while(n>this.n);var a=n<this.n?-1:t.ucmp(this.p);return a===0?(t.words[0]=0,t.length=1):a>0?t.isub(this.p):t.strip!==void 0?t.strip():t._strip(),t},N.prototype.split=function(e,t){e.iushrn(this.n,0,t)},N.prototype.imulK=function(e){return e.imul(this.k)};function V(){N.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}R(V,N),V.prototype.split=function(e,t){for(var n=4194303,a=Math.min(e.length,9),s=0;s<a;s++)t.words[s]=e.words[s];if(t.length=a,e.length<=9){e.words[0]=0,e.length=1;return}var u=e.words[9];for(t.words[t.length++]=u&n,s=10;s<e.length;s++){var l=e.words[s]|0;e.words[s-10]=(l&n)<<4|u>>>22,u=l}u>>>=22,e.words[s-10]=u,u===0&&e.length>10?e.length-=10:e.length-=9},V.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var a=e.words[n]|0;t+=a*977,e.words[n]=t&67108863,t=a*64+(t/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e};function Q(){N.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}R(Q,N);function ne(){N.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}R(ne,N);function ae(){N.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}R(ae,N),ae.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var a=(e.words[n]|0)*19+t,s=a&67108863;a>>>=26,e.words[n]=s,t=a}return t!==0&&(e.words[e.length++]=t),e},f._prime=function(e){if(H[e])return H[e];var t;if(e==="k256")t=new V;else if(e==="p224")t=new Q;else if(e==="p192")t=new ne;else if(e==="p25519")t=new ae;else throw new Error("Unknown prime "+e);return H[e]=t,t};function ee(c){if(typeof c=="string"){var e=f._prime(c);this.m=e.p,this.prime=e}else p(c.gtn(1),"modulus must be greater than 1"),this.m=c,this.prime=null}ee.prototype._verify1=function(e){p(e.negative===0,"red works only with positives"),p(e.red,"red works only with red numbers")},ee.prototype._verify2=function(e,t){p((e.negative|t.negative)===0,"red works only with positives"),p(e.red&&e.red===t.red,"red works only with red numbers")},ee.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},ee.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},ee.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},ee.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},ee.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},ee.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},ee.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},ee.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},ee.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},ee.prototype.isqr=function(e){return this.imul(e,e.clone())},ee.prototype.sqr=function(e){return this.mul(e,e)},ee.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(p(t%2===1),t===3){var n=this.m.add(new f(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),s=0;!a.isZero()&&a.andln(1)===0;)s++,a.iushrn(1);p(!a.isZero());var u=new f(1).toRed(this),l=u.redNeg(),o=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new f(2*r*r).toRed(this);this.pow(r,o).cmp(l)!==0;)r.redIAdd(l);for(var h=this.pow(r,a),b=this.pow(e,a.addn(1).iushrn(1)),E=this.pow(e,a),L=s;E.cmp(u)!==0;){for(var Y=E,K=0;Y.cmp(u)!==0;K++)Y=Y.redSqr();p(K<L);var q=this.pow(h,new f(1).iushln(L-K-1));b=b.redMul(q),h=q.redSqr(),E=E.redMul(h),L=K}return b},ee.prototype.invm=function(e){var t=e._invmp(this.m);return t.negative!==0?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},ee.prototype.pow=function(e,t){if(t.isZero())return new f(1).toRed(this);if(t.cmpn(1)===0)return e.clone();var n=4,a=new Array(1<<n);a[0]=new f(1).toRed(this),a[1]=e;for(var s=2;s<a.length;s++)a[s]=this.mul(a[s-1],e);var u=a[0],l=0,o=0,r=t.bitLength()%26;for(r===0&&(r=26),s=t.length-1;s>=0;s--){for(var h=t.words[s],b=r-1;b>=0;b--){var E=h>>b&1;if(u!==a[0]&&(u=this.sqr(u)),E===0&&l===0){o=0;continue}l<<=1,l|=E,o++,!(o!==n&&(s!==0||b!==0))&&(u=this.mul(u,a[l]),o=0,l=0)}r=26}return u},ee.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},ee.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},f.mont=function(e){return new le(e)};function le(c){ee.call(this,c),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new f(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}R(le,ee),le.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},le.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},le.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),a=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),s=n.isub(a).iushrn(this.shift),u=s;return s.cmp(this.m)>=0?u=s.isub(this.m):s.cmpn(0)<0&&(u=s.iadd(this.m)),u._forceRed(this)},le.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new f(0)._forceRed(this);var n=e.mul(t),a=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),s=n.isub(a).iushrn(this.shift),u=s;return s.cmp(this.m)>=0?u=s.isub(this.m):s.cmpn(0)<0&&(u=s.iadd(this.m)),u._forceRed(this)},le.prototype.invm=function(e){var t=this.imod(e._invmp(this.m).mul(this.r2));return t._forceRed(this)}})(_,bn$2)})(bn$3)),bn$3.exports}var browser$2,hasRequiredBrowser$2;function requireBrowser$2(){if(hasRequiredBrowser$2)return browser$2;hasRequiredBrowser$2=1;var _=requireElliptic(),S=requireBn$1();browser$2=function(w){return new p(w)};var I={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};I.p224=I.secp224r1,I.p256=I.secp256r1=I.prime256v1,I.p192=I.secp192r1=I.prime192v1,I.p384=I.secp384r1,I.p521=I.secp521r1;function p(f){this.curveType=I[f],this.curveType||(this.curveType={name:f}),this.curve=new _.ec(this.curveType.name),this.keys=void 0}p.prototype.generateKeys=function(f,w){return this.keys=this.curve.genKeyPair(),this.getPublicKey(f,w)},p.prototype.computeSecret=function(f,w,m){w=w||"utf8",Buffer.isBuffer(f)||(f=new Buffer(f,w));var v=this.curve.keyFromPublic(f).getPublic(),y=v.mul(this.keys.getPrivate()).getX();return R(y,m,this.curveType.byteLength)},p.prototype.getPublicKey=function(f,w){var m=this.keys.getPublic(w==="compressed",!0);return w==="hybrid"&&(m[m.length-1]%2?m[0]=7:m[0]=6),R(m,f)},p.prototype.getPrivateKey=function(f){return R(this.keys.getPrivate(),f)},p.prototype.setPublicKey=function(f,w){return w=w||"utf8",Buffer.isBuffer(f)||(f=new Buffer(f,w)),this.keys._importPublic(f),this},p.prototype.setPrivateKey=function(f,w){w=w||"utf8",Buffer.isBuffer(f)||(f=new Buffer(f,w));var m=new S(f);return m=m.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(m),this};function R(f,w,m){Array.isArray(f)||(f=f.toArray());var v=new Buffer(f);if(m&&v.length<m){var y=new Buffer(m-v.length);y.fill(0),v=Buffer.concat([y,v])}return w?v.toString(w):v}return browser$2}var browser$1={},mgf,hasRequiredMgf;function requireMgf(){if(hasRequiredMgf)return mgf;hasRequiredMgf=1;var _=requireBrowser$9(),S=requireSafeBuffer$2().Buffer;mgf=function(p,R){for(var f=S.alloc(0),w=0,m;f.length<R;)m=I(w++),f=S.concat([f,_("sha1").update(p).update(m).digest()]);return f.slice(0,R)};function I(p){var R=S.allocUnsafe(4);return R.writeUInt32BE(p,0),R}return mgf}var xor,hasRequiredXor;function requireXor(){return hasRequiredXor||(hasRequiredXor=1,xor=function(S,I){for(var p=S.length,R=-1;++R<p;)S[R]^=I[R];return S}),xor}var bn$1={exports:{}},bn=bn$1.exports,hasRequiredBn;function requireBn(){return hasRequiredBn||(hasRequiredBn=1,(function(_){(function(S,I){function p(c,e){if(!c)throw new Error(e||"Assertion failed")}function R(c,e){c.super_=e;var t=function(){};t.prototype=e.prototype,c.prototype=new t,c.prototype.constructor=c}function f(c,e,t){if(f.isBN(c))return c;this.negative=0,this.words=null,this.length=0,this.red=null,c!==null&&((e==="le"||e==="be")&&(t=e,e=10),this._init(c||0,e||10,t||"be"))}typeof S=="object"?S.exports=f:I.BN=f,f.BN=f,f.wordSize=26;var w;try{typeof window<"u"&&typeof window.Buffer<"u"?w=window.Buffer:w=requireDist().Buffer}catch{}f.isBN=function(e){return e instanceof f?!0:e!==null&&typeof e=="object"&&e.constructor.wordSize===f.wordSize&&Array.isArray(e.words)},f.max=function(e,t){return e.cmp(t)>0?e:t},f.min=function(e,t){return e.cmp(t)<0?e:t},f.prototype._init=function(e,t,n){if(typeof e=="number")return this._initNumber(e,t,n);if(typeof e=="object")return this._initArray(e,t,n);t==="hex"&&(t=16),p(t===(t|0)&&t>=2&&t<=36),e=e.toString().replace(/\s+/g,"");var a=0;e[0]==="-"&&(a++,this.negative=1),a<e.length&&(t===16?this._parseHex(e,a,n):(this._parseBase(e,t,a),n==="le"&&this._initArray(this.toArray(),t,n)))},f.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[e&67108863],this.length=1):e<4503599627370496?(this.words=[e&67108863,e/67108864&67108863],this.length=2):(p(e<9007199254740992),this.words=[e&67108863,e/67108864&67108863,1],this.length=3),n==="le"&&this._initArray(this.toArray(),t,n)},f.prototype._initArray=function(e,t,n){if(p(typeof e.length=="number"),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var a=0;a<this.length;a++)this.words[a]=0;var s,u,l=0;if(n==="be")for(a=e.length-1,s=0;a>=0;a-=3)u=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[s]|=u<<l&67108863,this.words[s+1]=u>>>26-l&67108863,l+=24,l>=26&&(l-=26,s++);else if(n==="le")for(a=0,s=0;a<e.length;a+=3)u=e[a]|e[a+1]<<8|e[a+2]<<16,this.words[s]|=u<<l&67108863,this.words[s+1]=u>>>26-l&67108863,l+=24,l>=26&&(l-=26,s++);return this.strip()};function m(c,e){var t=c.charCodeAt(e);return t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:t-48&15}function v(c,e,t){var n=m(c,t);return t-1>=e&&(n|=m(c,t-1)<<4),n}f.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var a=0;a<this.length;a++)this.words[a]=0;var s=0,u=0,l;if(n==="be")for(a=e.length-1;a>=t;a-=2)l=v(e,t,a)<<s,this.words[u]|=l&67108863,s>=18?(s-=18,u+=1,this.words[u]|=l>>>26):s+=8;else{var o=e.length-t;for(a=o%2===0?t+1:t;a<e.length;a+=2)l=v(e,t,a)<<s,this.words[u]|=l&67108863,s>=18?(s-=18,u+=1,this.words[u]|=l>>>26):s+=8}this.strip()};function y(c,e,t,n){for(var a=0,s=Math.min(c.length,t),u=e;u<s;u++){var l=c.charCodeAt(u)-48;a*=n,l>=49?a+=l-49+10:l>=17?a+=l-17+10:a+=l}return a}f.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var a=0,s=1;s<=67108863;s*=t)a++;a--,s=s/t|0;for(var u=e.length-n,l=u%a,o=Math.min(u,u-l)+n,r=0,h=n;h<o;h+=a)r=y(e,h,h+a,t),this.imuln(s),this.words[0]+r<67108864?this.words[0]+=r:this._iaddn(r);if(l!==0){var b=1;for(r=y(e,h,e.length,t),h=0;h<l;h++)b*=t;this.imuln(b),this.words[0]+r<67108864?this.words[0]+=r:this._iaddn(r)}this.strip()},f.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},f.prototype.clone=function(){var e=new f(null);return this.copy(e),e},f.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},f.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},f.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},f.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],g=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],M=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];f.prototype.toString=function(e,t){e=e||10,t=t|0||1;var n;if(e===16||e==="hex"){n="";for(var a=0,s=0,u=0;u<this.length;u++){var l=this.words[u],o=((l<<a|s)&16777215).toString(16);s=l>>>24-a&16777215,a+=2,a>=26&&(a-=26,u--),s!==0||u!==this.length-1?n=d[6-o.length]+o+n:n=o+n}for(s!==0&&(n=s.toString(16)+n);n.length%t!==0;)n="0"+n;return this.negative!==0&&(n="-"+n),n}if(e===(e|0)&&e>=2&&e<=36){var r=g[e],h=M[e];n="";var b=this.clone();for(b.negative=0;!b.isZero();){var E=b.modn(h).toString(e);b=b.idivn(h),b.isZero()?n=E+n:n=d[r-E.length]+E+n}for(this.isZero()&&(n="0"+n);n.length%t!==0;)n="0"+n;return this.negative!==0&&(n="-"+n),n}p(!1,"Base should be between 2 and 36")},f.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=this.words[1]*67108864:this.length===3&&this.words[2]===1?e+=4503599627370496+this.words[1]*67108864:this.length>2&&p(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},f.prototype.toJSON=function(){return this.toString(16)},f.prototype.toBuffer=function(e,t){return p(typeof w<"u"),this.toArrayLike(w,e,t)},f.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},f.prototype.toArrayLike=function(e,t,n){var a=this.byteLength(),s=n||Math.max(1,a);p(a<=s,"byte array longer than desired length"),p(s>0,"Requested array length <= 0"),this.strip();var u=t==="le",l=new e(s),o,r,h=this.clone();if(u){for(r=0;!h.isZero();r++)o=h.andln(255),h.iushrn(8),l[r]=o;for(;r<s;r++)l[r]=0}else{for(r=0;r<s-a;r++)l[r]=0;for(r=0;!h.isZero();r++)o=h.andln(255),h.iushrn(8),l[s-r-1]=o}return l},Math.clz32?f.prototype._countBits=function(e){return 32-Math.clz32(e)}:f.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},f.prototype._zeroBits=function(e){if(e===0)return 26;var t=e,n=0;return(t&8191)===0&&(n+=13,t>>>=13),(t&127)===0&&(n+=7,t>>>=7),(t&15)===0&&(n+=4,t>>>=4),(t&3)===0&&(n+=2,t>>>=2),(t&1)===0&&n++,n},f.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t};function x(c){for(var e=new Array(c.bitLength()),t=0;t<e.length;t++){var n=t/26|0,a=t%26;e[t]=(c.words[n]&1<<a)>>>a}return e}f.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,n!==26)break}return e},f.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},f.prototype.toTwos=function(e){return this.negative!==0?this.abs().inotn(e).iaddn(1):this.clone()},f.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},f.prototype.isNeg=function(){return this.negative!==0},f.prototype.neg=function(){return this.clone().ineg()},f.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},f.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},f.prototype.ior=function(e){return p((this.negative|e.negative)===0),this.iuor(e)},f.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},f.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},f.prototype.iuand=function(e){var t;this.length>e.length?t=e:t=this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this.strip()},f.prototype.iand=function(e){return p((this.negative|e.negative)===0),this.iuand(e)},f.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},f.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},f.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var a=0;a<n.length;a++)this.words[a]=t.words[a]^n.words[a];if(this!==t)for(;a<t.length;a++)this.words[a]=t.words[a];return this.length=t.length,this.strip()},f.prototype.ixor=function(e){return p((this.negative|e.negative)===0),this.iuxor(e)},f.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},f.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},f.prototype.inotn=function(e){p(typeof e=="number"&&e>=0);var t=Math.ceil(e/26)|0,n=e%26;this._expand(t),n>0&&t--;for(var a=0;a<t;a++)this.words[a]=~this.words[a]&67108863;return n>0&&(this.words[a]=~this.words[a]&67108863>>26-n),this.strip()},f.prototype.notn=function(e){return this.clone().inotn(e)},f.prototype.setn=function(e,t){p(typeof e=="number"&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),t?this.words[n]=this.words[n]|1<<a:this.words[n]=this.words[n]&~(1<<a),this.strip()},f.prototype.iadd=function(e){var t;if(this.negative!==0&&e.negative===0)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(this.negative===0&&e.negative!==0)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();var n,a;this.length>e.length?(n=this,a=e):(n=e,a=this);for(var s=0,u=0;u<a.length;u++)t=(n.words[u]|0)+(a.words[u]|0)+s,this.words[u]=t&67108863,s=t>>>26;for(;s!==0&&u<n.length;u++)t=(n.words[u]|0)+s,this.words[u]=t&67108863,s=t>>>26;if(this.length=n.length,s!==0)this.words[this.length]=s,this.length++;else if(n!==this)for(;u<n.length;u++)this.words[u]=n.words[u];return this},f.prototype.add=function(e){var t;return e.negative!==0&&this.negative===0?(e.negative=0,t=this.sub(e),e.negative^=1,t):e.negative===0&&this.negative!==0?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},f.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(n===0)return this.negative=0,this.length=1,this.words[0]=0,this;var a,s;n>0?(a=this,s=e):(a=e,s=this);for(var u=0,l=0;l<s.length;l++)t=(a.words[l]|0)-(s.words[l]|0)+u,u=t>>26,this.words[l]=t&67108863;for(;u!==0&&l<a.length;l++)t=(a.words[l]|0)+u,u=t>>26,this.words[l]=t&67108863;if(u===0&&l<a.length&&a!==this)for(;l<a.length;l++)this.words[l]=a.words[l];return this.length=Math.max(this.length,l),a!==this&&(this.negative=1),this.strip()},f.prototype.sub=function(e){return this.clone().isub(e)};function B(c,e,t){t.negative=e.negative^c.negative;var n=c.length+e.length|0;t.length=n,n=n-1|0;var a=c.words[0]|0,s=e.words[0]|0,u=a*s,l=u&67108863,o=u/67108864|0;t.words[0]=l;for(var r=1;r<n;r++){for(var h=o>>>26,b=o&67108863,E=Math.min(r,e.length-1),L=Math.max(0,r-c.length+1);L<=E;L++){var Y=r-L|0;a=c.words[Y]|0,s=e.words[L]|0,u=a*s+b,h+=u/67108864|0,b=u&67108863}t.words[r]=b|0,o=h|0}return o!==0?t.words[r]=o|0:t.length--,t.strip()}var A=function(e,t,n){var a=e.words,s=t.words,u=n.words,l=0,o,r,h,b=a[0]|0,E=b&8191,L=b>>>13,Y=a[1]|0,K=Y&8191,q=Y>>>13,$=a[2]|0,W=$&8191,J=$>>>13,X=a[3]|0,U=X&8191,re=X>>>13,Ie=a[4]|0,ue=Ie&8191,he=Ie>>>13,Pe=a[5]|0,me=Pe&8191,se=Pe>>>13,De=a[6]|0,de=De&8191,ye=De>>>13,Ce=a[7]|0,pe=Ce&8191,_e=Ce>>>13,Ue=a[8]|0,xe=Ue&8191,Ae=Ue>>>13,je=a[9]|0,j=je&8191,k=je>>>13,O=s[0]|0,G=O&8191,te=O>>>13,ce=s[1]|0,fe=ce&8191,we=ce>>>13,Ne=s[2]|0,be=Ne&8191,Se=Ne>>>13,Oe=s[3]|0,qe=Oe&8191,ke=Oe>>>13,We=s[4]|0,Re=We&8191,Te=We>>>13,Ke=s[5]|0,z=Ke&8191,T=Ke>>>13,F=s[6]|0,Z=F&8191,ie=F>>>13,ve=s[7]|0,oe=ve&8191,Me=ve>>>13,Le=s[8]|0,ge=Le&8191,Be=Le>>>13,Fe=s[9]|0,Ee=Fe&8191,$e=Fe>>>13;n.negative=e.negative^t.negative,n.length=19,o=Math.imul(E,G),r=Math.imul(E,te),r=r+Math.imul(L,G)|0,h=Math.imul(L,te);var He=(l+o|0)+((r&8191)<<13)|0;l=(h+(r>>>13)|0)+(He>>>26)|0,He&=67108863,o=Math.imul(K,G),r=Math.imul(K,te),r=r+Math.imul(q,G)|0,h=Math.imul(q,te),o=o+Math.imul(E,fe)|0,r=r+Math.imul(E,we)|0,r=r+Math.imul(L,fe)|0,h=h+Math.imul(L,we)|0;var ze=(l+o|0)+((r&8191)<<13)|0;l=(h+(r>>>13)|0)+(ze>>>26)|0,ze&=67108863,o=Math.imul(W,G),r=Math.imul(W,te),r=r+Math.imul(J,G)|0,h=Math.imul(J,te),o=o+Math.imul(K,fe)|0,r=r+Math.imul(K,we)|0,r=r+Math.imul(q,fe)|0,h=h+Math.imul(q,we)|0,o=o+Math.imul(E,be)|0,r=r+Math.imul(E,Se)|0,r=r+Math.imul(L,be)|0,h=h+Math.imul(L,Se)|0;var Ge=(l+o|0)+((r&8191)<<13)|0;l=(h+(r>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,o=Math.imul(U,G),r=Math.imul(U,te),r=r+Math.imul(re,G)|0,h=Math.imul(re,te),o=o+Math.imul(W,fe)|0,r=r+Math.imul(W,we)|0,r=r+Math.imul(J,fe)|0,h=h+Math.imul(J,we)|0,o=o+Math.imul(K,be)|0,r=r+Math.imul(K,Se)|0,r=r+Math.imul(q,be)|0,h=h+Math.imul(q,Se)|0,o=o+Math.imul(E,qe)|0,r=r+Math.imul(E,ke)|0,r=r+Math.imul(L,qe)|0,h=h+Math.imul(L,ke)|0;var Ze=(l+o|0)+((r&8191)<<13)|0;l=(h+(r>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,o=Math.imul(ue,G),r=Math.imul(ue,te),r=r+Math.imul(he,G)|0,h=Math.imul(he,te),o=o+Math.imul(U,fe)|0,r=r+Math.imul(U,we)|0,r=r+Math.imul(re,fe)|0,h=h+Math.imul(re,we)|0,o=o+Math.imul(W,be)|0,r=r+Math.imul(W,Se)|0,r=r+Math.imul(J,be)|0,h=h+Math.imul(J,Se)|0,o=o+Math.imul(K,qe)|0,r=r+Math.imul(K,ke)|0,r=r+Math.imul(q,qe)|0,h=h+Math.imul(q,ke)|0,o=o+Math.imul(E,Re)|0,r=r+Math.imul(E,Te)|0,r=r+Math.imul(L,Re)|0,h=h+Math.imul(L,Te)|0;var Ve=(l+o|0)+((r&8191)<<13)|0;l=(h+(r>>>13)|0)+(Ve>>>26)|0,Ve&=67108863,o=Math.imul(me,G),r=Math.imul(me,te),r=r+Math.imul(se,G)|0,h=Math.imul(se,te),o=o+Math.imul(ue,fe)|0,r=r+Math.imul(ue,we)|0,r=r+Math.imul(he,fe)|0,h=h+Math.imul(he,we)|0,o=o+Math.imul(U,be)|0,r=r+Math.imul(U,Se)|0,r=r+Math.imul(re,be)|0,h=h+Math.imul(re,Se)|0,o=o+Math.imul(W,qe)|0,r=r+Math.imul(W,ke)|0,r=r+Math.imul(J,qe)|0,h=h+Math.imul(J,ke)|0,o=o+Math.imul(K,Re)|0,r=r+Math.imul(K,Te)|0,r=r+Math.imul(q,Re)|0,h=h+Math.imul(q,Te)|0,o=o+Math.imul(E,z)|0,r=r+Math.imul(E,T)|0,r=r+Math.imul(L,z)|0,h=h+Math.imul(L,T)|0;var Xe=(l+o|0)+((r&8191)<<13)|0;l=(h+(r>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,o=Math.imul(de,G),r=Math.imul(de,te),r=r+Math.imul(ye,G)|0,h=Math.imul(ye,te),o=o+Math.imul(me,fe)|0,r=r+Math.imul(me,we)|0,r=r+Math.imul(se,fe)|0,h=h+Math.imul(se,we)|0,o=o+Math.imul(ue,be)|0,r=r+Math.imul(ue,Se)|0,r=r+Math.imul(he,be)|0,h=h+Math.imul(he,Se)|0,o=o+Math.imul(U,qe)|0,r=r+Math.imul(U,ke)|0,r=r+Math.imul(re,qe)|0,h=h+Math.imul(re,ke)|0,o=o+Math.imul(W,Re)|0,r=r+Math.imul(W,Te)|0,r=r+Math.imul(J,Re)|0,h=h+Math.imul(J,Te)|0,o=o+Math.imul(K,z)|0,r=r+Math.imul(K,T)|0,r=r+Math.imul(q,z)|0,h=h+Math.imul(q,T)|0,o=o+Math.imul(E,Z)|0,r=r+Math.imul(E,ie)|0,r=r+Math.imul(L,Z)|0,h=h+Math.imul(L,ie)|0;var Je=(l+o|0)+((r&8191)<<13)|0;l=(h+(r>>>13)|0)+(Je>>>26)|0,Je&=67108863,o=Math.imul(pe,G),r=Math.imul(pe,te),r=r+Math.imul(_e,G)|0,h=Math.imul(_e,te),o=o+Math.imul(de,fe)|0,r=r+Math.imul(de,we)|0,r=r+Math.imul(ye,fe)|0,h=h+Math.imul(ye,we)|0,o=o+Math.imul(me,be)|0,r=r+Math.imul(me,Se)|0,r=r+Math.imul(se,be)|0,h=h+Math.imul(se,Se)|0,o=o+Math.imul(ue,qe)|0,r=r+Math.imul(ue,ke)|0,r=r+Math.imul(he,qe)|0,h=h+Math.imul(he,ke)|0,o=o+Math.imul(U,Re)|0,r=r+Math.imul(U,Te)|0,r=r+Math.imul(re,Re)|0,h=h+Math.imul(re,Te)|0,o=o+Math.imul(W,z)|0,r=r+Math.imul(W,T)|0,r=r+Math.imul(J,z)|0,h=h+Math.imul(J,T)|0,o=o+Math.imul(K,Z)|0,r=r+Math.imul(K,ie)|0,r=r+Math.imul(q,Z)|0,h=h+Math.imul(q,ie)|0,o=o+Math.imul(E,oe)|0,r=r+Math.imul(E,Me)|0,r=r+Math.imul(L,oe)|0,h=h+Math.imul(L,Me)|0;var Ye=(l+o|0)+((r&8191)<<13)|0;l=(h+(r>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,o=Math.imul(xe,G),r=Math.imul(xe,te),r=r+Math.imul(Ae,G)|0,h=Math.imul(Ae,te),o=o+Math.imul(pe,fe)|0,r=r+Math.imul(pe,we)|0,r=r+Math.imul(_e,fe)|0,h=h+Math.imul(_e,we)|0,o=o+Math.imul(de,be)|0,r=r+Math.imul(de,Se)|0,r=r+Math.imul(ye,be)|0,h=h+Math.imul(ye,Se)|0,o=o+Math.imul(me,qe)|0,r=r+Math.imul(me,ke)|0,r=r+Math.imul(se,qe)|0,h=h+Math.imul(se,ke)|0,o=o+Math.imul(ue,Re)|0,r=r+Math.imul(ue,Te)|0,r=r+Math.imul(he,Re)|0,h=h+Math.imul(he,Te)|0,o=o+Math.imul(U,z)|0,r=r+Math.imul(U,T)|0,r=r+Math.imul(re,z)|0,h=h+Math.imul(re,T)|0,o=o+Math.imul(W,Z)|0,r=r+Math.imul(W,ie)|0,r=r+Math.imul(J,Z)|0,h=h+Math.imul(J,ie)|0,o=o+Math.imul(K,oe)|0,r=r+Math.imul(K,Me)|0,r=r+Math.imul(q,oe)|0,h=h+Math.imul(q,Me)|0,o=o+Math.imul(E,ge)|0,r=r+Math.imul(E,Be)|0,r=r+Math.imul(L,ge)|0,h=h+Math.imul(L,Be)|0;var Qe=(l+o|0)+((r&8191)<<13)|0;l=(h+(r>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,o=Math.imul(j,G),r=Math.imul(j,te),r=r+Math.imul(k,G)|0,h=Math.imul(k,te),o=o+Math.imul(xe,fe)|0,r=r+Math.imul(xe,we)|0,r=r+Math.imul(Ae,fe)|0,h=h+Math.imul(Ae,we)|0,o=o+Math.imul(pe,be)|0,r=r+Math.imul(pe,Se)|0,r=r+Math.imul(_e,be)|0,h=h+Math.imul(_e,Se)|0,o=o+Math.imul(de,qe)|0,r=r+Math.imul(de,ke)|0,r=r+Math.imul(ye,qe)|0,h=h+Math.imul(ye,ke)|0,o=o+Math.imul(me,Re)|0,r=r+Math.imul(me,Te)|0,r=r+Math.imul(se,Re)|0,h=h+Math.imul(se,Te)|0,o=o+Math.imul(ue,z)|0,r=r+Math.imul(ue,T)|0,r=r+Math.imul(he,z)|0,h=h+Math.imul(he,T)|0,o=o+Math.imul(U,Z)|0,r=r+Math.imul(U,ie)|0,r=r+Math.imul(re,Z)|0,h=h+Math.imul(re,ie)|0,o=o+Math.imul(W,oe)|0,r=r+Math.imul(W,Me)|0,r=r+Math.imul(J,oe)|0,h=h+Math.imul(J,Me)|0,o=o+Math.imul(K,ge)|0,r=r+Math.imul(K,Be)|0,r=r+Math.imul(q,ge)|0,h=h+Math.imul(q,Be)|0,o=o+Math.imul(E,Ee)|0,r=r+Math.imul(E,$e)|0,r=r+Math.imul(L,Ee)|0,h=h+Math.imul(L,$e)|0;var er=(l+o|0)+((r&8191)<<13)|0;l=(h+(r>>>13)|0)+(er>>>26)|0,er&=67108863,o=Math.imul(j,fe),r=Math.imul(j,we),r=r+Math.imul(k,fe)|0,h=Math.imul(k,we),o=o+Math.imul(xe,be)|0,r=r+Math.imul(xe,Se)|0,r=r+Math.imul(Ae,be)|0,h=h+Math.imul(Ae,Se)|0,o=o+Math.imul(pe,qe)|0,r=r+Math.imul(pe,ke)|0,r=r+Math.imul(_e,qe)|0,h=h+Math.imul(_e,ke)|0,o=o+Math.imul(de,Re)|0,r=r+Math.imul(de,Te)|0,r=r+Math.imul(ye,Re)|0,h=h+Math.imul(ye,Te)|0,o=o+Math.imul(me,z)|0,r=r+Math.imul(me,T)|0,r=r+Math.imul(se,z)|0,h=h+Math.imul(se,T)|0,o=o+Math.imul(ue,Z)|0,r=r+Math.imul(ue,ie)|0,r=r+Math.imul(he,Z)|0,h=h+Math.imul(he,ie)|0,o=o+Math.imul(U,oe)|0,r=r+Math.imul(U,Me)|0,r=r+Math.imul(re,oe)|0,h=h+Math.imul(re,Me)|0,o=o+Math.imul(W,ge)|0,r=r+Math.imul(W,Be)|0,r=r+Math.imul(J,ge)|0,h=h+Math.imul(J,Be)|0,o=o+Math.imul(K,Ee)|0,r=r+Math.imul(K,$e)|0,r=r+Math.imul(q,Ee)|0,h=h+Math.imul(q,$e)|0;var rr=(l+o|0)+((r&8191)<<13)|0;l=(h+(r>>>13)|0)+(rr>>>26)|0,rr&=67108863,o=Math.imul(j,be),r=Math.imul(j,Se),r=r+Math.imul(k,be)|0,h=Math.imul(k,Se),o=o+Math.imul(xe,qe)|0,r=r+Math.imul(xe,ke)|0,r=r+Math.imul(Ae,qe)|0,h=h+Math.imul(Ae,ke)|0,o=o+Math.imul(pe,Re)|0,r=r+Math.imul(pe,Te)|0,r=r+Math.imul(_e,Re)|0,h=h+Math.imul(_e,Te)|0,o=o+Math.imul(de,z)|0,r=r+Math.imul(de,T)|0,r=r+Math.imul(ye,z)|0,h=h+Math.imul(ye,T)|0,o=o+Math.imul(me,Z)|0,r=r+Math.imul(me,ie)|0,r=r+Math.imul(se,Z)|0,h=h+Math.imul(se,ie)|0,o=o+Math.imul(ue,oe)|0,r=r+Math.imul(ue,Me)|0,r=r+Math.imul(he,oe)|0,h=h+Math.imul(he,Me)|0,o=o+Math.imul(U,ge)|0,r=r+Math.imul(U,Be)|0,r=r+Math.imul(re,ge)|0,h=h+Math.imul(re,Be)|0,o=o+Math.imul(W,Ee)|0,r=r+Math.imul(W,$e)|0,r=r+Math.imul(J,Ee)|0,h=h+Math.imul(J,$e)|0;var tr=(l+o|0)+((r&8191)<<13)|0;l=(h+(r>>>13)|0)+(tr>>>26)|0,tr&=67108863,o=Math.imul(j,qe),r=Math.imul(j,ke),r=r+Math.imul(k,qe)|0,h=Math.imul(k,ke),o=o+Math.imul(xe,Re)|0,r=r+Math.imul(xe,Te)|0,r=r+Math.imul(Ae,Re)|0,h=h+Math.imul(Ae,Te)|0,o=o+Math.imul(pe,z)|0,r=r+Math.imul(pe,T)|0,r=r+Math.imul(_e,z)|0,h=h+Math.imul(_e,T)|0,o=o+Math.imul(de,Z)|0,r=r+Math.imul(de,ie)|0,r=r+Math.imul(ye,Z)|0,h=h+Math.imul(ye,ie)|0,o=o+Math.imul(me,oe)|0,r=r+Math.imul(me,Me)|0,r=r+Math.imul(se,oe)|0,h=h+Math.imul(se,Me)|0,o=o+Math.imul(ue,ge)|0,r=r+Math.imul(ue,Be)|0,r=r+Math.imul(he,ge)|0,h=h+Math.imul(he,Be)|0,o=o+Math.imul(U,Ee)|0,r=r+Math.imul(U,$e)|0,r=r+Math.imul(re,Ee)|0,h=h+Math.imul(re,$e)|0;var ir=(l+o|0)+((r&8191)<<13)|0;l=(h+(r>>>13)|0)+(ir>>>26)|0,ir&=67108863,o=Math.imul(j,Re),r=Math.imul(j,Te),r=r+Math.imul(k,Re)|0,h=Math.imul(k,Te),o=o+Math.imul(xe,z)|0,r=r+Math.imul(xe,T)|0,r=r+Math.imul(Ae,z)|0,h=h+Math.imul(Ae,T)|0,o=o+Math.imul(pe,Z)|0,r=r+Math.imul(pe,ie)|0,r=r+Math.imul(_e,Z)|0,h=h+Math.imul(_e,ie)|0,o=o+Math.imul(de,oe)|0,r=r+Math.imul(de,Me)|0,r=r+Math.imul(ye,oe)|0,h=h+Math.imul(ye,Me)|0,o=o+Math.imul(me,ge)|0,r=r+Math.imul(me,Be)|0,r=r+Math.imul(se,ge)|0,h=h+Math.imul(se,Be)|0,o=o+Math.imul(ue,Ee)|0,r=r+Math.imul(ue,$e)|0,r=r+Math.imul(he,Ee)|0,h=h+Math.imul(he,$e)|0;var nr=(l+o|0)+((r&8191)<<13)|0;l=(h+(r>>>13)|0)+(nr>>>26)|0,nr&=67108863,o=Math.imul(j,z),r=Math.imul(j,T),r=r+Math.imul(k,z)|0,h=Math.imul(k,T),o=o+Math.imul(xe,Z)|0,r=r+Math.imul(xe,ie)|0,r=r+Math.imul(Ae,Z)|0,h=h+Math.imul(Ae,ie)|0,o=o+Math.imul(pe,oe)|0,r=r+Math.imul(pe,Me)|0,r=r+Math.imul(_e,oe)|0,h=h+Math.imul(_e,Me)|0,o=o+Math.imul(de,ge)|0,r=r+Math.imul(de,Be)|0,r=r+Math.imul(ye,ge)|0,h=h+Math.imul(ye,Be)|0,o=o+Math.imul(me,Ee)|0,r=r+Math.imul(me,$e)|0,r=r+Math.imul(se,Ee)|0,h=h+Math.imul(se,$e)|0;var ar=(l+o|0)+((r&8191)<<13)|0;l=(h+(r>>>13)|0)+(ar>>>26)|0,ar&=67108863,o=Math.imul(j,Z),r=Math.imul(j,ie),r=r+Math.imul(k,Z)|0,h=Math.imul(k,ie),o=o+Math.imul(xe,oe)|0,r=r+Math.imul(xe,Me)|0,r=r+Math.imul(Ae,oe)|0,h=h+Math.imul(Ae,Me)|0,o=o+Math.imul(pe,ge)|0,r=r+Math.imul(pe,Be)|0,r=r+Math.imul(_e,ge)|0,h=h+Math.imul(_e,Be)|0,o=o+Math.imul(de,Ee)|0,r=r+Math.imul(de,$e)|0,r=r+Math.imul(ye,Ee)|0,h=h+Math.imul(ye,$e)|0;var fr=(l+o|0)+((r&8191)<<13)|0;l=(h+(r>>>13)|0)+(fr>>>26)|0,fr&=67108863,o=Math.imul(j,oe),r=Math.imul(j,Me),r=r+Math.imul(k,oe)|0,h=Math.imul(k,Me),o=o+Math.imul(xe,ge)|0,r=r+Math.imul(xe,Be)|0,r=r+Math.imul(Ae,ge)|0,h=h+Math.imul(Ae,Be)|0,o=o+Math.imul(pe,Ee)|0,r=r+Math.imul(pe,$e)|0,r=r+Math.imul(_e,Ee)|0,h=h+Math.imul(_e,$e)|0;var or=(l+o|0)+((r&8191)<<13)|0;l=(h+(r>>>13)|0)+(or>>>26)|0,or&=67108863,o=Math.imul(j,ge),r=Math.imul(j,Be),r=r+Math.imul(k,ge)|0,h=Math.imul(k,Be),o=o+Math.imul(xe,Ee)|0,r=r+Math.imul(xe,$e)|0,r=r+Math.imul(Ae,Ee)|0,h=h+Math.imul(Ae,$e)|0;var sr=(l+o|0)+((r&8191)<<13)|0;l=(h+(r>>>13)|0)+(sr>>>26)|0,sr&=67108863,o=Math.imul(j,Ee),r=Math.imul(j,$e),r=r+Math.imul(k,Ee)|0,h=Math.imul(k,$e);var hr=(l+o|0)+((r&8191)<<13)|0;return l=(h+(r>>>13)|0)+(hr>>>26)|0,hr&=67108863,u[0]=He,u[1]=ze,u[2]=Ge,u[3]=Ze,u[4]=Ve,u[5]=Xe,u[6]=Je,u[7]=Ye,u[8]=Qe,u[9]=er,u[10]=rr,u[11]=tr,u[12]=ir,u[13]=nr,u[14]=ar,u[15]=fr,u[16]=or,u[17]=sr,u[18]=hr,l!==0&&(u[19]=l,n.length++),n};Math.imul||(A=B);function D(c,e,t){t.negative=e.negative^c.negative,t.length=c.length+e.length;for(var n=0,a=0,s=0;s<t.length-1;s++){var u=a;a=0;for(var l=n&67108863,o=Math.min(s,e.length-1),r=Math.max(0,s-c.length+1);r<=o;r++){var h=s-r,b=c.words[h]|0,E=e.words[r]|0,L=b*E,Y=L&67108863;u=u+(L/67108864|0)|0,Y=Y+l|0,l=Y&67108863,u=u+(Y>>>26)|0,a+=u>>>26,u&=67108863}t.words[s]=l,n=u,u=a}return n!==0?t.words[s]=n:t.length--,t.strip()}function C(c,e,t){var n=new P;return n.mulp(c,e,t)}f.prototype.mulTo=function(e,t){var n,a=this.length+e.length;return this.length===10&&e.length===10?n=A(this,e,t):a<63?n=B(this,e,t):a<1024?n=D(this,e,t):n=C(this,e,t),n};function P(c,e){this.x=c,this.y=e}P.prototype.makeRBT=function(e){for(var t=new Array(e),n=f.prototype._countBits(e)-1,a=0;a<e;a++)t[a]=this.revBin(a,n,e);return t},P.prototype.revBin=function(e,t,n){if(e===0||e===n-1)return e;for(var a=0,s=0;s<t;s++)a|=(e&1)<<t-s-1,e>>=1;return a},P.prototype.permute=function(e,t,n,a,s,u){for(var l=0;l<u;l++)a[l]=t[e[l]],s[l]=n[e[l]]},P.prototype.transform=function(e,t,n,a,s,u){this.permute(u,e,t,n,a,s);for(var l=1;l<s;l<<=1)for(var o=l<<1,r=Math.cos(2*Math.PI/o),h=Math.sin(2*Math.PI/o),b=0;b<s;b+=o)for(var E=r,L=h,Y=0;Y<l;Y++){var K=n[b+Y],q=a[b+Y],$=n[b+Y+l],W=a[b+Y+l],J=E*$-L*W;W=E*W+L*$,$=J,n[b+Y]=K+$,a[b+Y]=q+W,n[b+Y+l]=K-$,a[b+Y+l]=q-W,Y!==o&&(J=r*E-h*L,L=r*L+h*E,E=J)}},P.prototype.guessLen13b=function(e,t){var n=Math.max(t,e)|1,a=n&1,s=0;for(n=n/2|0;n;n=n>>>1)s++;return 1<<s+1+a},P.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var a=0;a<n/2;a++){var s=e[a];e[a]=e[n-a-1],e[n-a-1]=s,s=t[a],t[a]=-t[n-a-1],t[n-a-1]=-s}},P.prototype.normalize13b=function(e,t){for(var n=0,a=0;a<t/2;a++){var s=Math.round(e[2*a+1]/t)*8192+Math.round(e[2*a]/t)+n;e[a]=s&67108863,s<67108864?n=0:n=s/67108864|0}return e},P.prototype.convert13b=function(e,t,n,a){for(var s=0,u=0;u<t;u++)s=s+(e[u]|0),n[2*u]=s&8191,s=s>>>13,n[2*u+1]=s&8191,s=s>>>13;for(u=2*t;u<a;++u)n[u]=0;p(s===0),p((s&-8192)===0)},P.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},P.prototype.mulp=function(e,t,n){var a=2*this.guessLen13b(e.length,t.length),s=this.makeRBT(a),u=this.stub(a),l=new Array(a),o=new Array(a),r=new Array(a),h=new Array(a),b=new Array(a),E=new Array(a),L=n.words;L.length=a,this.convert13b(e.words,e.length,l,a),this.convert13b(t.words,t.length,h,a),this.transform(l,u,o,r,a,s),this.transform(h,u,b,E,a,s);for(var Y=0;Y<a;Y++){var K=o[Y]*b[Y]-r[Y]*E[Y];r[Y]=o[Y]*E[Y]+r[Y]*b[Y],o[Y]=K}return this.conjugate(o,r,a),this.transform(o,r,L,u,a,s),this.conjugate(L,u,a),this.normalize13b(L,a),n.negative=e.negative^t.negative,n.length=e.length+t.length,n.strip()},f.prototype.mul=function(e){var t=new f(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},f.prototype.mulf=function(e){var t=new f(null);return t.words=new Array(this.length+e.length),C(this,e,t)},f.prototype.imul=function(e){return this.clone().mulTo(e,this)},f.prototype.imuln=function(e){p(typeof e=="number"),p(e<67108864);for(var t=0,n=0;n<this.length;n++){var a=(this.words[n]|0)*e,s=(a&67108863)+(t&67108863);t>>=26,t+=a/67108864|0,t+=s>>>26,this.words[n]=s&67108863}return t!==0&&(this.words[n]=t,this.length++),this.length=e===0?1:this.length,this},f.prototype.muln=function(e){return this.clone().imuln(e)},f.prototype.sqr=function(){return this.mul(this)},f.prototype.isqr=function(){return this.imul(this.clone())},f.prototype.pow=function(e){var t=x(e);if(t.length===0)return new f(1);for(var n=this,a=0;a<t.length&&t[a]===0;a++,n=n.sqr());if(++a<t.length)for(var s=n.sqr();a<t.length;a++,s=s.sqr())t[a]!==0&&(n=n.mul(s));return n},f.prototype.iushln=function(e){p(typeof e=="number"&&e>=0);var t=e%26,n=(e-t)/26,a=67108863>>>26-t<<26-t,s;if(t!==0){var u=0;for(s=0;s<this.length;s++){var l=this.words[s]&a,o=(this.words[s]|0)-l<<t;this.words[s]=o|u,u=l>>>26-t}u&&(this.words[s]=u,this.length++)}if(n!==0){for(s=this.length-1;s>=0;s--)this.words[s+n]=this.words[s];for(s=0;s<n;s++)this.words[s]=0;this.length+=n}return this.strip()},f.prototype.ishln=function(e){return p(this.negative===0),this.iushln(e)},f.prototype.iushrn=function(e,t,n){p(typeof e=="number"&&e>=0);var a;t?a=(t-t%26)/26:a=0;var s=e%26,u=Math.min((e-s)/26,this.length),l=67108863^67108863>>>s<<s,o=n;if(a-=u,a=Math.max(0,a),o){for(var r=0;r<u;r++)o.words[r]=this.words[r];o.length=u}if(u!==0)if(this.length>u)for(this.length-=u,r=0;r<this.length;r++)this.words[r]=this.words[r+u];else this.words[0]=0,this.length=1;var h=0;for(r=this.length-1;r>=0&&(h!==0||r>=a);r--){var b=this.words[r]|0;this.words[r]=h<<26-s|b>>>s,h=b&l}return o&&h!==0&&(o.words[o.length++]=h),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},f.prototype.ishrn=function(e,t,n){return p(this.negative===0),this.iushrn(e,t,n)},f.prototype.shln=function(e){return this.clone().ishln(e)},f.prototype.ushln=function(e){return this.clone().iushln(e)},f.prototype.shrn=function(e){return this.clone().ishrn(e)},f.prototype.ushrn=function(e){return this.clone().iushrn(e)},f.prototype.testn=function(e){p(typeof e=="number"&&e>=0);var t=e%26,n=(e-t)/26,a=1<<t;if(this.length<=n)return!1;var s=this.words[n];return!!(s&a)},f.prototype.imaskn=function(e){p(typeof e=="number"&&e>=0);var t=e%26,n=(e-t)/26;if(p(this.negative===0,"imaskn works only with positive numbers"),this.length<=n)return this;if(t!==0&&n++,this.length=Math.min(n,this.length),t!==0){var a=67108863^67108863>>>t<<t;this.words[this.length-1]&=a}return this.strip()},f.prototype.maskn=function(e){return this.clone().imaskn(e)},f.prototype.iaddn=function(e){return p(typeof e=="number"),p(e<67108864),e<0?this.isubn(-e):this.negative!==0?this.length===1&&(this.words[0]|0)<e?(this.words[0]=e-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},f.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},f.prototype.isubn=function(e){if(p(typeof e=="number"),p(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},f.prototype.addn=function(e){return this.clone().iaddn(e)},f.prototype.subn=function(e){return this.clone().isubn(e)},f.prototype.iabs=function(){return this.negative=0,this},f.prototype.abs=function(){return this.clone().iabs()},f.prototype._ishlnsubmul=function(e,t,n){var a=e.length+n,s;this._expand(a);var u,l=0;for(s=0;s<e.length;s++){u=(this.words[s+n]|0)+l;var o=(e.words[s]|0)*t;u-=o&67108863,l=(u>>26)-(o/67108864|0),this.words[s+n]=u&67108863}for(;s<this.length-n;s++)u=(this.words[s+n]|0)+l,l=u>>26,this.words[s+n]=u&67108863;if(l===0)return this.strip();for(p(l===-1),l=0,s=0;s<this.length;s++)u=-(this.words[s]|0)+l,l=u>>26,this.words[s]=u&67108863;return this.negative=1,this.strip()},f.prototype._wordDiv=function(e,t){var n=this.length-e.length,a=this.clone(),s=e,u=s.words[s.length-1]|0,l=this._countBits(u);n=26-l,n!==0&&(s=s.ushln(n),a.iushln(n),u=s.words[s.length-1]|0);var o=a.length-s.length,r;if(t!=="mod"){r=new f(null),r.length=o+1,r.words=new Array(r.length);for(var h=0;h<r.length;h++)r.words[h]=0}var b=a.clone()._ishlnsubmul(s,1,o);b.negative===0&&(a=b,r&&(r.words[o]=1));for(var E=o-1;E>=0;E--){var L=(a.words[s.length+E]|0)*67108864+(a.words[s.length+E-1]|0);for(L=Math.min(L/u|0,67108863),a._ishlnsubmul(s,L,E);a.negative!==0;)L--,a.negative=0,a._ishlnsubmul(s,1,E),a.isZero()||(a.negative^=1);r&&(r.words[E]=L)}return r&&r.strip(),a.strip(),t!=="div"&&n!==0&&a.iushrn(n),{div:r||null,mod:a}},f.prototype.divmod=function(e,t,n){if(p(!e.isZero()),this.isZero())return{div:new f(0),mod:new f(0)};var a,s,u;return this.negative!==0&&e.negative===0?(u=this.neg().divmod(e,t),t!=="mod"&&(a=u.div.neg()),t!=="div"&&(s=u.mod.neg(),n&&s.negative!==0&&s.iadd(e)),{div:a,mod:s}):this.negative===0&&e.negative!==0?(u=this.divmod(e.neg(),t),t!=="mod"&&(a=u.div.neg()),{div:a,mod:u.mod}):(this.negative&e.negative)!==0?(u=this.neg().divmod(e.neg(),t),t!=="div"&&(s=u.mod.neg(),n&&s.negative!==0&&s.isub(e)),{div:u.div,mod:s}):e.length>this.length||this.cmp(e)<0?{div:new f(0),mod:this}:e.length===1?t==="div"?{div:this.divn(e.words[0]),mod:null}:t==="mod"?{div:null,mod:new f(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new f(this.modn(e.words[0]))}:this._wordDiv(e,t)},f.prototype.div=function(e){return this.divmod(e,"div",!1).div},f.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},f.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},f.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=t.div.negative!==0?t.mod.isub(e):t.mod,a=e.ushrn(1),s=e.andln(1),u=n.cmp(a);return u<0||s===1&&u===0?t.div:t.div.negative!==0?t.div.isubn(1):t.div.iaddn(1)},f.prototype.modn=function(e){p(e<=67108863);for(var t=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(t*n+(this.words[a]|0))%e;return n},f.prototype.idivn=function(e){p(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var a=(this.words[n]|0)+t*67108864;this.words[n]=a/e|0,t=a%e}return this.strip()},f.prototype.divn=function(e){return this.clone().idivn(e)},f.prototype.egcd=function(e){p(e.negative===0),p(!e.isZero());var t=this,n=e.clone();t.negative!==0?t=t.umod(e):t=t.clone();for(var a=new f(1),s=new f(0),u=new f(0),l=new f(1),o=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++o;for(var r=n.clone(),h=t.clone();!t.isZero();){for(var b=0,E=1;(t.words[0]&E)===0&&b<26;++b,E<<=1);if(b>0)for(t.iushrn(b);b-- >0;)(a.isOdd()||s.isOdd())&&(a.iadd(r),s.isub(h)),a.iushrn(1),s.iushrn(1);for(var L=0,Y=1;(n.words[0]&Y)===0&&L<26;++L,Y<<=1);if(L>0)for(n.iushrn(L);L-- >0;)(u.isOdd()||l.isOdd())&&(u.iadd(r),l.isub(h)),u.iushrn(1),l.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(u),s.isub(l)):(n.isub(t),u.isub(a),l.isub(s))}return{a:u,b:l,gcd:n.iushln(o)}},f.prototype._invmp=function(e){p(e.negative===0),p(!e.isZero());var t=this,n=e.clone();t.negative!==0?t=t.umod(e):t=t.clone();for(var a=new f(1),s=new f(0),u=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,o=1;(t.words[0]&o)===0&&l<26;++l,o<<=1);if(l>0)for(t.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var r=0,h=1;(n.words[0]&h)===0&&r<26;++r,h<<=1);if(r>0)for(n.iushrn(r);r-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s)):(n.isub(t),s.isub(a))}var b;return t.cmpn(1)===0?b=a:b=s,b.cmpn(0)<0&&b.iadd(e),b},f.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var a=0;t.isEven()&&n.isEven();a++)t.iushrn(1),n.iushrn(1);do{for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var s=t.cmp(n);if(s<0){var u=t;t=n,n=u}else if(s===0||n.cmpn(1)===0)break;t.isub(n)}while(!0);return n.iushln(a)},f.prototype.invm=function(e){return this.egcd(e).a.umod(e)},f.prototype.isEven=function(){return(this.words[0]&1)===0},f.prototype.isOdd=function(){return(this.words[0]&1)===1},f.prototype.andln=function(e){return this.words[0]&e},f.prototype.bincn=function(e){p(typeof e=="number");var t=e%26,n=(e-t)/26,a=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=a,this;for(var s=a,u=n;s!==0&&u<this.length;u++){var l=this.words[u]|0;l+=s,s=l>>>26,l&=67108863,this.words[u]=l}return s!==0&&(this.words[u]=s,this.length++),this},f.prototype.isZero=function(){return this.length===1&&this.words[0]===0},f.prototype.cmpn=function(e){var t=e<0;if(this.negative!==0&&!t)return-1;if(this.negative===0&&t)return 1;this.strip();var n;if(this.length>1)n=1;else{t&&(e=-e),p(e<=67108863,"Number is too big");var a=this.words[0]|0;n=a===e?0:a<e?-1:1}return this.negative!==0?-n|0:n},f.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var t=this.ucmp(e);return this.negative!==0?-t|0:t},f.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var a=this.words[n]|0,s=e.words[n]|0;if(a!==s){a<s?t=-1:a>s&&(t=1);break}}return t},f.prototype.gtn=function(e){return this.cmpn(e)===1},f.prototype.gt=function(e){return this.cmp(e)===1},f.prototype.gten=function(e){return this.cmpn(e)>=0},f.prototype.gte=function(e){return this.cmp(e)>=0},f.prototype.ltn=function(e){return this.cmpn(e)===-1},f.prototype.lt=function(e){return this.cmp(e)===-1},f.prototype.lten=function(e){return this.cmpn(e)<=0},f.prototype.lte=function(e){return this.cmp(e)<=0},f.prototype.eqn=function(e){return this.cmpn(e)===0},f.prototype.eq=function(e){return this.cmp(e)===0},f.red=function(e){return new ee(e)},f.prototype.toRed=function(e){return p(!this.red,"Already a number in reduction context"),p(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},f.prototype.fromRed=function(){return p(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},f.prototype._forceRed=function(e){return this.red=e,this},f.prototype.forceRed=function(e){return p(!this.red,"Already a number in reduction context"),this._forceRed(e)},f.prototype.redAdd=function(e){return p(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},f.prototype.redIAdd=function(e){return p(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},f.prototype.redSub=function(e){return p(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},f.prototype.redISub=function(e){return p(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},f.prototype.redShl=function(e){return p(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},f.prototype.redMul=function(e){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},f.prototype.redIMul=function(e){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},f.prototype.redSqr=function(){return p(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},f.prototype.redISqr=function(){return p(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},f.prototype.redSqrt=function(){return p(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},f.prototype.redInvm=function(){return p(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},f.prototype.redNeg=function(){return p(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},f.prototype.redPow=function(e){return p(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var H={k256:null,p224:null,p192:null,p25519:null};function N(c,e){this.name=c,this.p=new f(e,16),this.n=this.p.bitLength(),this.k=new f(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}N.prototype._tmp=function(){var e=new f(null);return e.words=new Array(Math.ceil(this.n/13)),e},N.prototype.ireduce=function(e){var t=e,n;do this.split(t,this.tmp),t=this.imulK(t),t=t.iadd(this.tmp),n=t.bitLength();while(n>this.n);var a=n<this.n?-1:t.ucmp(this.p);return a===0?(t.words[0]=0,t.length=1):a>0?t.isub(this.p):t.strip!==void 0?t.strip():t._strip(),t},N.prototype.split=function(e,t){e.iushrn(this.n,0,t)},N.prototype.imulK=function(e){return e.imul(this.k)};function V(){N.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}R(V,N),V.prototype.split=function(e,t){for(var n=4194303,a=Math.min(e.length,9),s=0;s<a;s++)t.words[s]=e.words[s];if(t.length=a,e.length<=9){e.words[0]=0,e.length=1;return}var u=e.words[9];for(t.words[t.length++]=u&n,s=10;s<e.length;s++){var l=e.words[s]|0;e.words[s-10]=(l&n)<<4|u>>>22,u=l}u>>>=22,e.words[s-10]=u,u===0&&e.length>10?e.length-=10:e.length-=9},V.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var a=e.words[n]|0;t+=a*977,e.words[n]=t&67108863,t=a*64+(t/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e};function Q(){N.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}R(Q,N);function ne(){N.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}R(ne,N);function ae(){N.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}R(ae,N),ae.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var a=(e.words[n]|0)*19+t,s=a&67108863;a>>>=26,e.words[n]=s,t=a}return t!==0&&(e.words[e.length++]=t),e},f._prime=function(e){if(H[e])return H[e];var t;if(e==="k256")t=new V;else if(e==="p224")t=new Q;else if(e==="p192")t=new ne;else if(e==="p25519")t=new ae;else throw new Error("Unknown prime "+e);return H[e]=t,t};function ee(c){if(typeof c=="string"){var e=f._prime(c);this.m=e.p,this.prime=e}else p(c.gtn(1),"modulus must be greater than 1"),this.m=c,this.prime=null}ee.prototype._verify1=function(e){p(e.negative===0,"red works only with positives"),p(e.red,"red works only with red numbers")},ee.prototype._verify2=function(e,t){p((e.negative|t.negative)===0,"red works only with positives"),p(e.red&&e.red===t.red,"red works only with red numbers")},ee.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},ee.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},ee.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},ee.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},ee.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},ee.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},ee.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},ee.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},ee.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},ee.prototype.isqr=function(e){return this.imul(e,e.clone())},ee.prototype.sqr=function(e){return this.mul(e,e)},ee.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(p(t%2===1),t===3){var n=this.m.add(new f(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),s=0;!a.isZero()&&a.andln(1)===0;)s++,a.iushrn(1);p(!a.isZero());var u=new f(1).toRed(this),l=u.redNeg(),o=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new f(2*r*r).toRed(this);this.pow(r,o).cmp(l)!==0;)r.redIAdd(l);for(var h=this.pow(r,a),b=this.pow(e,a.addn(1).iushrn(1)),E=this.pow(e,a),L=s;E.cmp(u)!==0;){for(var Y=E,K=0;Y.cmp(u)!==0;K++)Y=Y.redSqr();p(K<L);var q=this.pow(h,new f(1).iushln(L-K-1));b=b.redMul(q),h=q.redSqr(),E=E.redMul(h),L=K}return b},ee.prototype.invm=function(e){var t=e._invmp(this.m);return t.negative!==0?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},ee.prototype.pow=function(e,t){if(t.isZero())return new f(1).toRed(this);if(t.cmpn(1)===0)return e.clone();var n=4,a=new Array(1<<n);a[0]=new f(1).toRed(this),a[1]=e;for(var s=2;s<a.length;s++)a[s]=this.mul(a[s-1],e);var u=a[0],l=0,o=0,r=t.bitLength()%26;for(r===0&&(r=26),s=t.length-1;s>=0;s--){for(var h=t.words[s],b=r-1;b>=0;b--){var E=h>>b&1;if(u!==a[0]&&(u=this.sqr(u)),E===0&&l===0){o=0;continue}l<<=1,l|=E,o++,!(o!==n&&(s!==0||b!==0))&&(u=this.mul(u,a[l]),o=0,l=0)}r=26}return u},ee.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},ee.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},f.mont=function(e){return new le(e)};function le(c){ee.call(this,c),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new f(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}R(le,ee),le.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},le.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},le.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),a=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),s=n.isub(a).iushrn(this.shift),u=s;return s.cmp(this.m)>=0?u=s.isub(this.m):s.cmpn(0)<0&&(u=s.iadd(this.m)),u._forceRed(this)},le.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new f(0)._forceRed(this);var n=e.mul(t),a=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),s=n.isub(a).iushrn(this.shift),u=s;return s.cmp(this.m)>=0?u=s.isub(this.m):s.cmpn(0)<0&&(u=s.iadd(this.m)),u._forceRed(this)},le.prototype.invm=function(e){var t=this.imod(e._invmp(this.m).mul(this.r2));return t._forceRed(this)}})(_,bn)})(bn$1)),bn$1.exports}var withPublic_1,hasRequiredWithPublic;function requireWithPublic(){if(hasRequiredWithPublic)return withPublic_1;hasRequiredWithPublic=1;var _=requireBn(),S=requireSafeBuffer$2().Buffer;function I(p,R){return S.from(p.toRed(_.mont(R.modulus)).redPow(new _(R.publicExponent)).fromRed().toArray())}return withPublic_1=I,withPublic_1}var publicEncrypt,hasRequiredPublicEncrypt;function requirePublicEncrypt(){if(hasRequiredPublicEncrypt)return publicEncrypt;hasRequiredPublicEncrypt=1;var _=requireParseAsn1(),S=requireBrowser$b(),I=requireBrowser$9(),p=requireMgf(),R=requireXor(),f=requireBn(),w=requireWithPublic(),m=requireBrowserifyRsa(),v=requireSafeBuffer$2().Buffer;publicEncrypt=function(x,B,A){var D;x.padding?D=x.padding:A?D=1:D=4;var C=_(x),P;if(D===4)P=y(C,B);else if(D===1)P=d(C,B,A);else if(D===3){if(P=new f(B),P.cmp(C.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return A?m(P,C):w(P,C)};function y(M,x){var B=M.modulus.byteLength(),A=x.length,D=I("sha1").update(v.alloc(0)).digest(),C=D.length,P=2*C;if(A>B-P-2)throw new Error("message too long");var H=v.alloc(B-A-P-2),N=B-C-1,V=S(C),Q=R(v.concat([D,H,v.alloc(1,1),x],N),p(V,N)),ne=R(V,p(Q,C));return new f(v.concat([v.alloc(1),ne,Q],B))}function d(M,x,B){var A=x.length,D=M.modulus.byteLength();if(A>D-11)throw new Error("message too long");var C;return B?C=v.alloc(D-A-3,255):C=g(D-A-3),new f(v.concat([v.from([0,B?1:2]),C,v.alloc(1),x],D))}function g(M){for(var x=v.allocUnsafe(M),B=0,A=S(M*2),D=0,C;B<M;)D===A.length&&(A=S(M*2),D=0),C=A[D++],C&&(x[B++]=C);return x}return publicEncrypt}var privateDecrypt,hasRequiredPrivateDecrypt;function requirePrivateDecrypt(){if(hasRequiredPrivateDecrypt)return privateDecrypt;hasRequiredPrivateDecrypt=1;var _=requireParseAsn1(),S=requireMgf(),I=requireXor(),p=requireBn(),R=requireBrowserifyRsa(),f=requireBrowser$9(),w=requireWithPublic(),m=requireSafeBuffer$2().Buffer;privateDecrypt=function(M,x,B){var A;M.padding?A=M.padding:B?A=1:A=4;var D=_(M),C=D.modulus.byteLength();if(x.length>C||new p(x).cmp(D.modulus)>=0)throw new Error("decryption error");var P;B?P=w(new p(x),D):P=R(x,D);var H=m.alloc(C-P.length);if(P=m.concat([H,P],C),A===4)return v(D,P);if(A===1)return y(D,P,B);if(A===3)return P;throw new Error("unknown padding")};function v(g,M){var x=g.modulus.byteLength(),B=f("sha1").update(m.alloc(0)).digest(),A=B.length;if(M[0]!==0)throw new Error("decryption error");var D=M.slice(1,A+1),C=M.slice(A+1),P=I(D,S(C,A)),H=I(C,S(P,x-A-1));if(d(B,H.slice(0,A)))throw new Error("decryption error");for(var N=A;H[N]===0;)N++;if(H[N++]!==1)throw new Error("decryption error");return H.slice(N)}function y(g,M,x){for(var B=M.slice(0,2),A=2,D=0;M[A++]!==0;)if(A>=M.length){D++;break}var C=M.slice(2,A-1);if((B.toString("hex")!=="0002"&&!x||B.toString("hex")!=="0001"&&x)&&D++,C.length<8&&D++,D)throw new Error("decryption error");return M.slice(A)}function d(g,M){g=m.from(g),M=m.from(M);var x=0,B=g.length;g.length!==M.length&&(x++,B=Math.min(g.length,M.length));for(var A=-1;++A<B;)x+=g[A]^M[A];return x}return privateDecrypt}var hasRequiredBrowser$1;function requireBrowser$1(){return hasRequiredBrowser$1||(hasRequiredBrowser$1=1,(function(_){_.publicEncrypt=requirePublicEncrypt(),_.privateDecrypt=requirePrivateDecrypt(),_.privateEncrypt=function(I,p){return _.publicEncrypt(I,p,!0)},_.publicDecrypt=function(I,p){return _.privateDecrypt(I,p,!0)}})(browser$1)),browser$1}var browser={},hasRequiredBrowser;function requireBrowser(){if(hasRequiredBrowser)return browser;hasRequiredBrowser=1;function _(){throw new Error(`secure random number generation not supported by this browser
15
15
  use chrome, FireFox or Internet Explorer 11`)}var S=requireSafeBuffer$2(),I=requireBrowser$b(),p=S.Buffer,R=S.kMaxLength,f=commonjsGlobal.crypto||commonjsGlobal.msCrypto,w=Math.pow(2,32)-1;function m(M,x){if(typeof M!="number"||M!==M)throw new TypeError("offset must be a number");if(M>w||M<0)throw new TypeError("offset must be a uint32");if(M>R||M>x)throw new RangeError("offset out of range")}function v(M,x,B){if(typeof M!="number"||M!==M)throw new TypeError("size must be a number");if(M>w||M<0)throw new TypeError("size must be a uint32");if(M+x>B||M>R)throw new RangeError("buffer too small")}f&&f.getRandomValues||!process$1.browser?(browser.randomFill=y,browser.randomFillSync=g):(browser.randomFill=_,browser.randomFillSync=_);function y(M,x,B,A){if(!p.isBuffer(M)&&!(M instanceof commonjsGlobal.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof x=="function")A=x,x=0,B=M.length;else if(typeof B=="function")A=B,B=M.length-x;else if(typeof A!="function")throw new TypeError('"cb" argument must be a function');return m(x,M.length),v(B,x,M.length),d(M,x,B,A)}function d(M,x,B,A){if(process$1.browser){var D=M.buffer,C=new Uint8Array(D,x,B);if(f.getRandomValues(C),A){process$1.nextTick(function(){A(null,M)});return}return M}if(A){I(B,function(H,N){if(H)return A(H);N.copy(M,x),A(null,M)});return}var P=I(B);return P.copy(M,x),M}function g(M,x,B){if(typeof x>"u"&&(x=0),!p.isBuffer(M)&&!(M instanceof commonjsGlobal.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return m(x,M.length),B===void 0&&(B=M.length-x),v(B,x,M.length),d(M,x,B)}return browser}var hasRequiredCryptoBrowserify;function requireCryptoBrowserify(){if(hasRequiredCryptoBrowserify)return cryptoBrowserify;hasRequiredCryptoBrowserify=1,cryptoBrowserify.randomBytes=cryptoBrowserify.rng=cryptoBrowserify.pseudoRandomBytes=cryptoBrowserify.prng=requireBrowser$b(),cryptoBrowserify.createHash=cryptoBrowserify.Hash=requireBrowser$9(),cryptoBrowserify.createHmac=cryptoBrowserify.Hmac=requireBrowser$8();var _=requireAlgos(),S=Object.keys(_),I=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(S);cryptoBrowserify.getHashes=function(){return I};var p=requireBrowser$7();cryptoBrowserify.pbkdf2=p.pbkdf2,cryptoBrowserify.pbkdf2Sync=p.pbkdf2Sync;var R=requireBrowser$5();cryptoBrowserify.Cipher=R.Cipher,cryptoBrowserify.createCipher=R.createCipher,cryptoBrowserify.Cipheriv=R.Cipheriv,cryptoBrowserify.createCipheriv=R.createCipheriv,cryptoBrowserify.Decipher=R.Decipher,cryptoBrowserify.createDecipher=R.createDecipher,cryptoBrowserify.Decipheriv=R.Decipheriv,cryptoBrowserify.createDecipheriv=R.createDecipheriv,cryptoBrowserify.getCiphers=R.getCiphers,cryptoBrowserify.listCiphers=R.listCiphers;var f=requireBrowser$4();cryptoBrowserify.DiffieHellmanGroup=f.DiffieHellmanGroup,cryptoBrowserify.createDiffieHellmanGroup=f.createDiffieHellmanGroup,cryptoBrowserify.getDiffieHellman=f.getDiffieHellman,cryptoBrowserify.createDiffieHellman=f.createDiffieHellman,cryptoBrowserify.DiffieHellman=f.DiffieHellman;var w=requireBrowser$3();cryptoBrowserify.createSign=w.createSign,cryptoBrowserify.Sign=w.Sign,cryptoBrowserify.createVerify=w.createVerify,cryptoBrowserify.Verify=w.Verify,cryptoBrowserify.createECDH=requireBrowser$2();var m=requireBrowser$1();cryptoBrowserify.publicEncrypt=m.publicEncrypt,cryptoBrowserify.privateEncrypt=m.privateEncrypt,cryptoBrowserify.publicDecrypt=m.publicDecrypt,cryptoBrowserify.privateDecrypt=m.privateDecrypt;var v=requireBrowser();return cryptoBrowserify.randomFill=v.randomFill,cryptoBrowserify.randomFillSync=v.randomFillSync,cryptoBrowserify.createCredentials=function(){throw new Error(`sorry, createCredentials is not implemented yet
16
16
  we accept pull requests
17
- https://github.com/browserify/crypto-browserify`)},cryptoBrowserify.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6},cryptoBrowserify}var cryptoBrowserifyExports=requireCryptoBrowserify();const getConfig=(_={})=>({region:_.region||process$1.env.BUNNY_REGION||"SG",baseHostName:"storage.bunnycdn.com",folderName:_.folderName||process$1.env.BUNNY_FOLDER_NAME||"",storageZone:_.storageZone||process$1.env.BUNNY_STORAGE_ZONE||"unset",password:_.password||process$1.env.BUNNY_PASSWORD||"unset"}),install=({storageZone:_,password:S,region:I,folderName:p})=>{_&&(process$1.env.BUNNY_STORAGE_ZONE=_),S&&(process$1.env.BUNNY_PASSWORD=S),I&&(process$1.env.BUNNY_REGION=I),p&&(process$1.env.BUNNY_FOLDER_NAME=p)},upload=async({file:_,buffer:S,folder:I,...p})=>new Promise(async(R,f)=>{try{!S&&!_&&f({res:!1,message:"No file uploaded"});const w=getConfig(p),m=S?S.length:_.buffer.length,v=w.folderName?`${w.folderName}/`:"",y=I?`${I}/`:"",d=`${cryptoBrowserifyExports.randomUUID()}.webp`,g={method:"PUT",hostname:w.region?`${w.region}.${w.baseHostName}`:w.baseHostName,port:443,path:`/${w.storageZone}/${v}${y}${d}`,headers:{AccessKey:w.password,"Content-Type":"application/octet-stream","Content-Length":m.toString()}},M=await fetch(`https://${g.hostname}${g.path}`,{method:"PUT",headers:g.headers,body:S?new Uint8Array(S):new Uint8Array(_.buffer)});if(M.status===201){const x=`https://${w.storageZone}.b-cdn.net/${v}${y}${d}`;R({res:!0,message:"upload success",url:x})}else f({res:!1,message:"Upload failed",error:await M.text()})}catch{f({res:!1,message:"Server error"})}}),list=async({folder:_="",configOverrides:S={}}={})=>new Promise((I,p)=>{try{const R=getConfig(S),f=R.region?`${R.region}.${R.baseHostName}`:R.baseHostName,w=R.folderName?`${R.folderName}/`:"",m=_?`${_}/`:"",v=`https://${f}/${R.storageZone}/${w}${m}`,y={AccessKey:R.password};fetch(v,{headers:y}).then(d=>d.json()).then(d=>{const g=d.map(M=>{const x=`https://${R.storageZone}.b-cdn.net/${w}${m}${M.ObjectName}`;return{...M,Url:x}});I({res:!0,message:"List retrieved successfully",files:g})}).catch(d=>{p({res:!1,message:"Network error",error:d})})}catch{p({res:!1,message:"Server error"})}}),deleteFile=({ObjectName:_,href:S,...I})=>new Promise((p,R)=>{if(!_&&!S){R({res:!1,message:"No file specified for deletion"});return}try{const f=getConfig(I),w=f.region?`${f.region}.${f.baseHostName}`:f.baseHostName,m=S?decodeURIComponent(S.split("/")[S.split("/").length-1]):_;fetch(`https://${w}/${f.storageZone}/${f.folderName}/${m}`,{method:"DELETE",headers:{AccessKey:f.password}}).then(v=>{v.status===200?p({res:!0,message:"File deleted successfully"}):p({res:!1,message:"Failed to delete file"})}).catch(v=>{R({res:!1,message:"Network error",error:v})})}catch{R({res:!1,message:"Server error"})}}),BunnyCDN={install,upload,list,deleteFile};exports.default=BunnyCDN;exports.deleteFile=deleteFile;exports.install=install;exports.list=list;exports.upload=upload;
17
+ https://github.com/browserify/crypto-browserify`)},cryptoBrowserify.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6},cryptoBrowserify}var cryptoBrowserifyExports=requireCryptoBrowserify();const getConfig=(_={})=>({region:_.region||process$1.env.BUNNY_REGION||"SG",baseHostName:"storage.bunnycdn.com",folderName:_.folderName||process$1.env.BUNNY_FOLDER_NAME||"",storageZone:_.storageZone||process$1.env.BUNNY_STORAGE_ZONE||"unset",password:_.password||process$1.env.BUNNY_PASSWORD||"unset"}),install=({storageZone:_,password:S,region:I,folderName:p})=>{_&&(process$1.env.BUNNY_STORAGE_ZONE=_),S&&(process$1.env.BUNNY_PASSWORD=S),I&&(process$1.env.BUNNY_REGION=I),p&&(process$1.env.BUNNY_FOLDER_NAME=p)},upload=async({file:_,buffer:S,folder:I,...p})=>new Promise(async(R,f)=>{try{!S&&!_&&f({res:!1,message:"No file uploaded"});const w=getConfig(p);console.log(w);const m=S?S.length:_.buffer.length;console.log(m);const v=w.folderName?`${w.folderName}/`:"";console.log(v);const y=I?`${I}/`:"";console.log(y);const d=`${cryptoBrowserifyExports.randomUUID()}.webp`;console.log(d);const g={method:"PUT",hostname:w.region?`${w.region}.${w.baseHostName}`:w.baseHostName,port:443,path:`/${w.storageZone}/${v}${y}${d}`,headers:{AccessKey:w.password,"Content-Type":"application/octet-stream","Content-Length":m.toString()}};console.log(g);const M=await fetch(`https://${g.hostname}${g.path}`,{method:"PUT",headers:g.headers,body:S||_.buffer});if(M.status===201){const x=`https://${w.storageZone}.b-cdn.net/${v}${y}${d}`;R({res:!0,message:"upload success",url:x})}else f({res:!1,message:"Upload failed",error:await M.text()})}catch{f({res:!1,message:"Server error"})}}),list=async({folder:_="",configOverrides:S={}}={})=>new Promise((I,p)=>{try{const R=getConfig(S),f=R.region?`${R.region}.${R.baseHostName}`:R.baseHostName,w=R.folderName?`${R.folderName}/`:"",m=_?`${_}/`:"",v=`https://${f}/${R.storageZone}/${w}${m}`,y={AccessKey:R.password};fetch(v,{headers:y}).then(d=>d.json()).then(d=>{const g=d.map(M=>{const x=`https://${R.storageZone}.b-cdn.net/${w}${m}${M.ObjectName}`;return{...M,Url:x}});I({res:!0,message:"List retrieved successfully",files:g})}).catch(d=>{p({res:!1,message:"Network error",error:d})})}catch{p({res:!1,message:"Server error"})}}),deleteFile=({ObjectName:_,href:S,...I})=>new Promise((p,R)=>{if(!_&&!S){R({res:!1,message:"No file specified for deletion"});return}try{const f=getConfig(I),w=f.region?`${f.region}.${f.baseHostName}`:f.baseHostName,m=S?decodeURIComponent(S.split("/")[S.split("/").length-1]):_;fetch(`https://${w}/${f.storageZone}/${f.folderName}/${m}`,{method:"DELETE",headers:{AccessKey:f.password}}).then(v=>{v.status===200?p({res:!0,message:"File deleted successfully"}):p({res:!1,message:"Failed to delete file"})}).catch(v=>{R({res:!1,message:"Network error",error:v})})}catch{R({res:!1,message:"Server error"})}}),BunnyCDN={install,upload,list,deleteFile};exports.default=BunnyCDN;exports.deleteFile=deleteFile;exports.install=install;exports.list=list;exports.upload=upload;
package/lib/index.js CHANGED
@@ -23444,7 +23444,17 @@ const getConfig = (_ = {}) => ({
23444
23444
  async (R, f) => {
23445
23445
  try {
23446
23446
  !S && !_ && f({ res: !1, message: "No file uploaded" });
23447
- const w = getConfig(p), m = S ? S.length : _.buffer.length, v = w.folderName ? `${w.folderName}/` : "", y = I ? `${I}/` : "", d = `${cryptoBrowserifyExports.randomUUID()}.webp`, g = {
23447
+ const w = getConfig(p);
23448
+ console.log(w);
23449
+ const m = S ? S.length : _.buffer.length;
23450
+ console.log(m);
23451
+ const v = w.folderName ? `${w.folderName}/` : "";
23452
+ console.log(v);
23453
+ const y = I ? `${I}/` : "";
23454
+ console.log(y);
23455
+ const d = `${cryptoBrowserifyExports.randomUUID()}.webp`;
23456
+ console.log(d);
23457
+ const g = {
23448
23458
  method: "PUT",
23449
23459
  hostname: w.region ? `${w.region}.${w.baseHostName}` : w.baseHostName,
23450
23460
  port: 443,
@@ -23454,10 +23464,12 @@ const getConfig = (_ = {}) => ({
23454
23464
  "Content-Type": "application/octet-stream",
23455
23465
  "Content-Length": m.toString()
23456
23466
  }
23457
- }, M = await fetch(`https://${g.hostname}${g.path}`, {
23467
+ };
23468
+ console.log(g);
23469
+ const M = await fetch(`https://${g.hostname}${g.path}`, {
23458
23470
  method: "PUT",
23459
23471
  headers: g.headers,
23460
- body: S ? new Uint8Array(S) : new Uint8Array(_.buffer)
23472
+ body: S || _.buffer
23461
23473
  });
23462
23474
  if (M.status === 201) {
23463
23475
  const x = `https://${w.storageZone}.b-cdn.net/${v}${y}${d}`;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "lesca-node-bunnycdn",
3
3
  "private": false,
4
4
  "description": "use bunny CDN api by node",
5
- "version": "0.0.15",
5
+ "version": "0.0.17",
6
6
  "type": "module",
7
7
  "keywords": [
8
8
  "bunnycdn",