diff --git a/CHANGELOG.md b/CHANGELOG.md index c93d0f0..3857536 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.17.1] - 2022-10-25 +### Fixed +- ActivityPub definition +- Claim verification logic + ## [0.17.0] - 2022-10-24 ### Added - ActivityPub claim verification diff --git a/dist/doip.js b/dist/doip.js index 16c76b0..f9b597a 100644 --- a/dist/doip.js +++ b/dist/doip.js @@ -38808,8 +38808,8 @@ module.exports.default = exports.default; },{"./util/assertString":323}],329:[function(require,module,exports){ module.exports={ "name": "doipjs", - "version": "0.17.0", - "description": "Decentralized OpenPGP Identity Proofs library in Node.js", + "version": "0.17.1", + "description": "Decentralized Online Identity Proofs library in Node.js", "main": "./src/index.js", "dependencies": { "@openpgp/hkp-client": "^0.0.2", @@ -39142,7 +39142,9 @@ class Claim { // Post process the data if (claimData.functions && claimData.functions.postprocess) { - ({ claimData, proofData } = claimData.functions.postprocess(claimData, proofData)) + try { + ({ claimData, proofData } = claimData.functions.postprocess(claimData, proofData)) + } catch (_) {} } } else { // Consider the proof completed but with a negative result @@ -39152,11 +39154,11 @@ class Claim { proof: {}, errors: [proofFetchError] } + } - if (this.isAmbiguous()) { - // Assume a wrong match and continue - continue - } + if (this.isAmbiguous() && !verificationResult.result) { + // Assume a wrong match and continue + continue } if (verificationResult.completed) { @@ -39174,7 +39176,7 @@ class Claim { result: false, completed: true, proof: {}, - errors: ['Unknown error'] + errors: [] } this._status = E.ClaimStatus.VERIFIED @@ -39245,7 +39247,7 @@ const processURI = (uri) => { }, match: { regularExpression: reURI, - isAmbiguous: false + isAmbiguous: true }, profile: { display: uri, @@ -42979,7 +42981,7 @@ const runJSON = async (proofData, checkPath, checkClaim, checkClaimFormat, check } } - if (!(checkPath[0] in proofData)) { + if (typeof proofData === 'object' && !(checkPath[0] in proofData)) { throw new Error('err_json_structure_incorrect') } diff --git a/dist/doip.min.js b/dist/doip.min.js index 4d9b32a..eb37861 100644 --- a/dist/doip.min.js +++ b/dist/doip.min.js @@ -29,4 +29,4 @@ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ i.read=function(e,t,i,A,r){var n,o,a=8*r-A-1,s=(1<>1,I=-7,f=i?r-1:0,h=i?-1:1,g=e[t+f];for(f+=h,n=g&(1<<-I)-1,g>>=-I,I+=a;I>0;n=256*n+e[t+f],f+=h,I-=8);for(o=n&(1<<-I)-1,n>>=-I,I+=A;I>0;o=256*o+e[t+f],f+=h,I-=8);if(0===n)n=1-c;else{if(n===s)return o?NaN:1/0*(g?-1:1);o+=Math.pow(2,A),n-=c}return(g?-1:1)*o*Math.pow(2,n-A)},i.write=function(e,t,i,A,r,n){var o,a,s,c=8*n-r-1,I=(1<>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,g=A?0:n-1,u=A?1:-1,d=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,o=I):(o=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-o))<1&&(o--,s*=2),(t+=o+f>=1?h/s:h*Math.pow(2,1-f))*s>=2&&(o++,s/=2),o+f>=I?(a=0,o=I):o+f>=1?(a=(t*s-1)*Math.pow(2,r),o+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,r),o=0));r>=8;e[i+g]=255&a,g+=u,a/=256,r-=8);for(o=o<0;e[i+g]=255&o,g+=u,o/=256,c-=8);e[i+g-u]|=128*d}},{}],169:[function(e,t,i){"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}}},{}],170:[function(e,t,i){"use strict";t.exports=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}},{}],171:[function(e,t,i){"use strict";var A=e("inherits"),r=e("hash-base"),n=e("safe-buffer").Buffer,o=new Array(16);function a(){r.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function s(e,t){return e<>>32-t}function c(e,t,i,A,r,n,o){return s(e+(t&i|~t&A)+r+n|0,o)+t|0}function I(e,t,i,A,r,n,o){return s(e+(t&A|i&~A)+r+n|0,o)+t|0}function f(e,t,i,A,r,n,o){return s(e+(t^i^A)+r+n|0,o)+t|0}function h(e,t,i,A,r,n,o){return s(e+(i^(t|~A))+r+n|0,o)+t|0}A(a,r),a.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var i=this._a,A=this._b,r=this._c,n=this._d;i=c(i,A,r,n,e[0],3614090360,7),n=c(n,i,A,r,e[1],3905402710,12),r=c(r,n,i,A,e[2],606105819,17),A=c(A,r,n,i,e[3],3250441966,22),i=c(i,A,r,n,e[4],4118548399,7),n=c(n,i,A,r,e[5],1200080426,12),r=c(r,n,i,A,e[6],2821735955,17),A=c(A,r,n,i,e[7],4249261313,22),i=c(i,A,r,n,e[8],1770035416,7),n=c(n,i,A,r,e[9],2336552879,12),r=c(r,n,i,A,e[10],4294925233,17),A=c(A,r,n,i,e[11],2304563134,22),i=c(i,A,r,n,e[12],1804603682,7),n=c(n,i,A,r,e[13],4254626195,12),r=c(r,n,i,A,e[14],2792965006,17),i=I(i,A=c(A,r,n,i,e[15],1236535329,22),r,n,e[1],4129170786,5),n=I(n,i,A,r,e[6],3225465664,9),r=I(r,n,i,A,e[11],643717713,14),A=I(A,r,n,i,e[0],3921069994,20),i=I(i,A,r,n,e[5],3593408605,5),n=I(n,i,A,r,e[10],38016083,9),r=I(r,n,i,A,e[15],3634488961,14),A=I(A,r,n,i,e[4],3889429448,20),i=I(i,A,r,n,e[9],568446438,5),n=I(n,i,A,r,e[14],3275163606,9),r=I(r,n,i,A,e[3],4107603335,14),A=I(A,r,n,i,e[8],1163531501,20),i=I(i,A,r,n,e[13],2850285829,5),n=I(n,i,A,r,e[2],4243563512,9),r=I(r,n,i,A,e[7],1735328473,14),i=f(i,A=I(A,r,n,i,e[12],2368359562,20),r,n,e[5],4294588738,4),n=f(n,i,A,r,e[8],2272392833,11),r=f(r,n,i,A,e[11],1839030562,16),A=f(A,r,n,i,e[14],4259657740,23),i=f(i,A,r,n,e[1],2763975236,4),n=f(n,i,A,r,e[4],1272893353,11),r=f(r,n,i,A,e[7],4139469664,16),A=f(A,r,n,i,e[10],3200236656,23),i=f(i,A,r,n,e[13],681279174,4),n=f(n,i,A,r,e[0],3936430074,11),r=f(r,n,i,A,e[3],3572445317,16),A=f(A,r,n,i,e[6],76029189,23),i=f(i,A,r,n,e[9],3654602809,4),n=f(n,i,A,r,e[12],3873151461,11),r=f(r,n,i,A,e[15],530742520,16),i=h(i,A=f(A,r,n,i,e[2],3299628645,23),r,n,e[0],4096336452,6),n=h(n,i,A,r,e[7],1126891415,10),r=h(r,n,i,A,e[14],2878612391,15),A=h(A,r,n,i,e[5],4237533241,21),i=h(i,A,r,n,e[12],1700485571,6),n=h(n,i,A,r,e[3],2399980690,10),r=h(r,n,i,A,e[10],4293915773,15),A=h(A,r,n,i,e[1],2240044497,21),i=h(i,A,r,n,e[8],1873313359,6),n=h(n,i,A,r,e[15],4264355552,10),r=h(r,n,i,A,e[6],2734768916,15),A=h(A,r,n,i,e[13],1309151649,21),i=h(i,A,r,n,e[4],4149444226,6),n=h(n,i,A,r,e[11],3174756917,10),r=h(r,n,i,A,e[2],718787259,15),A=h(A,r,n,i,e[9],3951481745,21),this._a=this._a+i|0,this._b=this._b+A|0,this._c=this._c+r|0,this._d=this._d+n|0},a.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=n.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},t.exports=a},{"hash-base":137,inherits:169,"safe-buffer":198}],172:[function(e,t,i){"use strict";const A=e("is-plain-obj"),{hasOwnProperty:r}=Object.prototype,{propertyIsEnumerable:n}=Object,o=(e,t,i)=>Object.defineProperty(e,t,{value:i,writable:!0,enumerable:!0,configurable:!0}),a=this,s={concatArrays:!1,ignoreUndefined:!1},c=e=>{const t=[];for(const i in e)r.call(e,i)&&t.push(i);if(Object.getOwnPropertySymbols){const i=Object.getOwnPropertySymbols(e);for(const A of i)n.call(e,A)&&t.push(A)}return t};function I(e){return Array.isArray(e)?function(e){const t=e.slice(0,0);return c(e).forEach((i=>{o(t,i,I(e[i]))})),t}(e):A(e)?function(e){const t=null===Object.getPrototypeOf(e)?Object.create(null):{};return c(e).forEach((i=>{o(t,i,I(e[i]))})),t}(e):e}const f=(e,t,i,A)=>(i.forEach((i=>{void 0===t[i]&&A.ignoreUndefined||(i in e&&e[i]!==Object.getPrototypeOf(e)?o(e,i,h(e[i],t[i],A)):o(e,i,I(t[i])))})),e);function h(e,t,i){return i.concatArrays&&Array.isArray(e)&&Array.isArray(t)?((e,t,i)=>{let A=e.slice(0,0),n=0;return[e,t].forEach((t=>{const a=[];for(let i=0;i!a.includes(e))),i)})),A})(e,t,i):A(t)&&A(e)?f(e,t,c(t),i):I(t)}t.exports=function(...e){const t=h(I(s),this!==a&&this||{},s);let i={_:{}};for(const r of e)if(void 0!==r){if(!A(r))throw new TypeError("`"+r+"` is not an Option Object");i=h(i,{_:r},t)}return i._}},{"is-plain-obj":170}],173:[function(e,t,i){var A=e("bn.js"),r=e("brorand");function n(e){this.rand=e||new r.Rand}t.exports=n,n.create=function(e){return new n(e)},n.prototype._randbelow=function(e){var t=e.bitLength(),i=Math.ceil(t/8);do{var r=new A(this.rand.generate(i))}while(r.cmp(e)>=0);return r},n.prototype._randrange=function(e,t){var i=t.sub(e);return e.add(this._randbelow(i))},n.prototype.test=function(e,t,i){var r=e.bitLength(),n=A.mont(e),o=new A(1).toRed(n);t||(t=Math.max(1,r/48|0));for(var a=e.subn(1),s=0;!a.testn(s);s++);for(var c=e.shrn(s),I=a.toRed(n);t>0;t--){var f=this._randrange(new A(2),a);i&&i(f);var h=f.toRed(n).redPow(c);if(0!==h.cmp(o)&&0!==h.cmp(I)){for(var g=1;g0;t--){var I=this._randrange(new A(2),o),f=e.gcd(I);if(0!==f.cmpn(1))return f;var h=I.toRed(r).redPow(s);if(0!==h.cmp(n)&&0!==h.cmp(c)){for(var g=1;g>8,o=255&r;n?i.push(n,o):i.push(o)}return i},A.zero2=r,A.toHex=n,A.encode=function(e,t){return"hex"===t?n(e):e}},{}],176:[function(e,t,i){t.exports={"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"}},{}],177:[function(e,t,i){"use strict";var A=e("asn1.js");i.certificate=e("./certificate");var r=A.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())}));i.RSAPrivateKey=r;var n=A.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));i.RSAPublicKey=n;var o=A.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())}));i.PublicKey=o;var a=A.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())})),s=A.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(a),this.key("subjectPrivateKey").octstr())}));i.PrivateKey=s;var c=A.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())}));i.EncryptedPrivateKey=c;var I=A.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())}));i.DSAPrivateKey=I,i.DSAparam=A.define("DSAparam",(function(){this.int()}));var f=A.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(h),this.key("publicKey").optional().explicit(1).bitstr())}));i.ECPrivateKey=f;var h=A.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));i.signature=A.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},{"./certificate":178,"asn1.js":3}],178:[function(e,t,i){"use strict";var A=e("asn1.js"),r=A.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),n=A.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),o=A.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),a=A.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())})),s=A.define("RelativeDistinguishedName",(function(){this.setof(n)})),c=A.define("RDNSequence",(function(){this.seqof(s)})),I=A.define("Name",(function(){this.choice({rdnSequence:this.use(c)})})),f=A.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(r),this.key("notAfter").use(r))})),h=A.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),g=A.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(o),this.key("issuer").use(I),this.key("validity").use(f),this.key("subject").use(I),this.key("subjectPublicKeyInfo").use(a),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(h).optional())})),u=A.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(g),this.key("signatureAlgorithm").use(o),this.key("signatureValue").bitstr())}));t.exports=u},{"asn1.js":3}],179:[function(e,t,i){var A=/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,r=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,n=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,o=e("evp_bytestokey"),a=e("browserify-aes"),s=e("safe-buffer").Buffer;t.exports=function(e,t){var i,c=e.toString(),I=c.match(A);if(I){var f="aes"+I[1],h=s.from(I[2],"hex"),g=s.from(I[3].replace(/[\r\n]/g,""),"base64"),u=o(t,h.slice(0,8),parseInt(I[1],10)).key,d=[],l=a.createDecipheriv(f,u,h);d.push(l.update(g)),d.push(l.final()),i=s.concat(d)}else{var B=c.match(n);i=s.from(B[2].replace(/[\r\n]/g,""),"base64")}return{tag:c.match(r)[1],data:i}}},{"browserify-aes":53,evp_bytestokey:135,"safe-buffer":198}],180:[function(e,t,i){var A=e("./asn1"),r=e("./aesid.json"),n=e("./fixProc"),o=e("browserify-aes"),a=e("pbkdf2"),s=e("safe-buffer").Buffer;function c(e){var t;"object"!=typeof e||s.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=s.from(e));var i,c,I=n(e,t),f=I.tag,h=I.data;switch(f){case"CERTIFICATE":c=A.certificate.decode(h,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(c||(c=A.PublicKey.decode(h,"der")),i=c.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return A.RSAPublicKey.decode(c.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return c.subjectPrivateKey=c.subjectPublicKey,{type:"ec",data:c};case"1.2.840.10040.4.1":return c.algorithm.params.pub_key=A.DSAparam.decode(c.subjectPublicKey.data,"der"),{type:"dsa",data:c.algorithm.params};default:throw new Error("unknown key id "+i)}case"ENCRYPTED PRIVATE KEY":h=function(e,t){var i=e.algorithm.decrypt.kde.kdeparams.salt,A=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),n=r[e.algorithm.decrypt.cipher.algo.join(".")],c=e.algorithm.decrypt.cipher.iv,I=e.subjectPrivateKey,f=parseInt(n.split("-")[1],10)/8,h=a.pbkdf2Sync(t,i,A,f,"sha1"),g=o.createDecipheriv(n,h,c),u=[];return u.push(g.update(I)),u.push(g.final()),s.concat(u)}(h=A.EncryptedPrivateKey.decode(h,"der"),t);case"PRIVATE KEY":switch(i=(c=A.PrivateKey.decode(h,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return A.RSAPrivateKey.decode(c.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:c.algorithm.curve,privateKey:A.ECPrivateKey.decode(c.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return c.algorithm.params.priv_key=A.DSAparam.decode(c.subjectPrivateKey,"der"),{type:"dsa",params:c.algorithm.params};default:throw new Error("unknown key id "+i)}case"RSA PUBLIC KEY":return A.RSAPublicKey.decode(h,"der");case"RSA PRIVATE KEY":return A.RSAPrivateKey.decode(h,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:A.DSAPrivateKey.decode(h,"der")};case"EC PRIVATE KEY":return{curve:(h=A.ECPrivateKey.decode(h,"der")).parameters.value,privateKey:h.privateKey};default:throw new Error("unknown key type "+f)}}t.exports=c,c.signature=A.signature},{"./aesid.json":176,"./asn1":177,"./fixProc":179,"browserify-aes":53,pbkdf2:181,"safe-buffer":198}],181:[function(e,t,i){i.pbkdf2=e("./lib/async"),i.pbkdf2Sync=e("./lib/sync")},{"./lib/async":182,"./lib/sync":185}],182:[function(e,t,i){(function(i){(function(){var A,r,n=e("safe-buffer").Buffer,o=e("./precondition"),a=e("./default-encoding"),s=e("./sync"),c=e("./to-buffer"),I=i.crypto&&i.crypto.subtle,f={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},h=[];function g(){return r||(r=i.process&&i.process.nextTick?i.process.nextTick:i.queueMicrotask?i.queueMicrotask:i.setImmediate?i.setImmediate:i.setTimeout)}function u(e,t,i,A,r){return I.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then((function(e){return I.deriveBits({name:"PBKDF2",salt:t,iterations:i,hash:{name:r}},e,A<<3)})).then((function(e){return n.from(e)}))}t.exports=function(e,t,r,d,l,B){"function"==typeof l&&(B=l,l=void 0);var p=f[(l=l||"sha1").toLowerCase()];if(p&&"function"==typeof i.Promise){if(o(r,d),e=c(e,a,"Password"),t=c(t,a,"Salt"),"function"!=typeof B)throw new Error("No callback provided to pbkdf2");!function(e,t){e.then((function(e){g()((function(){t(null,e)}))}),(function(e){g()((function(){t(e)}))}))}(function(e){if(i.process&&!i.process.browser)return Promise.resolve(!1);if(!I||!I.importKey||!I.deriveBits)return Promise.resolve(!1);if(void 0!==h[e])return h[e];var t=u(A=A||n.alloc(8),A,10,128,e).then((function(){return!0})).catch((function(){return!1}));return h[e]=t,t}(p).then((function(i){return i?u(e,t,r,d,p):s(e,t,r,d,l)})),B)}else g()((function(){var i;try{i=s(e,t,r,d,l)}catch(e){return B(e)}B(null,i)}))}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./default-encoding":183,"./precondition":184,"./sync":185,"./to-buffer":186,"safe-buffer":198}],183:[function(e,t,i){(function(e,i){(function(){var A;if(i.process&&i.process.browser)A="utf-8";else if(i.process&&i.process.version){A=parseInt(e.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary"}else A="utf-8";t.exports=A}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:187}],184:[function(e,t,i){var A=Math.pow(2,30)-1;t.exports=function(e,t){if("number"!=typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!=typeof t)throw new TypeError("Key length not a number");if(t<0||t>A||t!=t)throw new TypeError("Bad key length")}},{}],185:[function(e,t,i){var A=e("create-hash/md5"),r=e("ripemd160"),n=e("sha.js"),o=e("safe-buffer").Buffer,a=e("./precondition"),s=e("./default-encoding"),c=e("./to-buffer"),I=o.alloc(128),f={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function h(e,t,i){var a=function(e){function t(t){return n(e).update(t).digest()}function i(e){return(new r).update(e).digest()}return"rmd160"===e||"ripemd160"===e?i:"md5"===e?A:t}(e),s="sha512"===e||"sha384"===e?128:64;t.length>s?t=a(t):t.length1)for(var i=1;iu||new o(t).cmp(g.modulus)>=0)throw new Error("decryption error");h=i?c(new o(t),g):a(t,g);var d=I.alloc(u-h.length);if(h=I.concat([d,h],u),4===f)return function(e,t){var i=e.modulus.byteLength(),A=s("sha1").update(I.alloc(0)).digest(),o=A.length;if(0!==t[0])throw new Error("decryption error");var a=t.slice(1,o+1),c=t.slice(o+1),f=n(a,r(c,o)),h=n(c,r(f,i-o-1));if(function(e,t){e=I.from(e),t=I.from(t);var i=0,A=e.length;e.length!==t.length&&(i++,A=Math.min(e.length,t.length));var r=-1;for(;++r=t.length){n++;break}var o=t.slice(2,r-1);("0002"!==A.toString("hex")&&!i||"0001"!==A.toString("hex")&&i)&&n++;o.length<8&&n++;if(n)throw new Error("decryption error");return t.slice(r)}(0,h,i);if(3===f)return h;throw new Error("unknown padding")}},{"./mgf":189,"./withPublic":192,"./xor":193,"bn.js":47,"browserify-rsa":71,"create-hash":102,"parse-asn1":180,"safe-buffer":198}],191:[function(e,t,i){var A=e("parse-asn1"),r=e("randombytes"),n=e("create-hash"),o=e("./mgf"),a=e("./xor"),s=e("bn.js"),c=e("./withPublic"),I=e("browserify-rsa"),f=e("safe-buffer").Buffer;t.exports=function(e,t,i){var h;h=e.padding?e.padding:i?1:4;var g,u=A(e);if(4===h)g=function(e,t){var i=e.modulus.byteLength(),A=t.length,c=n("sha1").update(f.alloc(0)).digest(),I=c.length,h=2*I;if(A>i-h-2)throw new Error("message too long");var g=f.alloc(i-A-h-2),u=i-I-1,d=r(I),l=a(f.concat([c,g,f.alloc(1,1),t],u),o(d,u)),B=a(d,o(l,I));return new s(f.concat([f.alloc(1),B,l],i))}(u,t);else if(1===h)g=function(e,t,i){var A,n=t.length,o=e.modulus.byteLength();if(n>o-11)throw new Error("message too long");A=i?f.alloc(o-n-3,255):function(e){var t,i=f.allocUnsafe(e),A=0,n=r(2*e),o=0;for(;A=0)throw new Error("data too long for modulus")}return i?I(g,u):c(g,u)}},{"./mgf":189,"./withPublic":192,"./xor":193,"bn.js":47,"browserify-rsa":71,"create-hash":102,"parse-asn1":180,randombytes:195,"safe-buffer":198}],192:[function(e,t,i){var A=e("bn.js"),r=e("safe-buffer").Buffer;t.exports=function(e,t){return r.from(e.toRed(A.mont(t.modulus)).redPow(new A(t.publicExponent)).fromRed().toArray())}},{"bn.js":47,"safe-buffer":198}],193:[function(e,t,i){t.exports=function(e,t){for(var i=e.length,A=-1;++ANumber(e)-Number(t))).map((t=>e[t])):e}function f(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function h(e){const t=(e=f(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function g(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function u(e,t){a((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const i=function(e){let t;switch(e.arrayFormat){case"index":return(e,i,A)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===A[e]&&(A[e]={}),A[e][t[1]]=i):A[e]=i};case"bracket":return(e,i,A)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==A[e]?A[e]=[].concat(A[e],i):A[e]=[i]:A[e]=i};case"comma":case"separator":return(t,i,A)=>{const r="string"==typeof i&&i.includes(e.arrayFormatSeparator),n="string"==typeof i&&!r&&c(i,e).includes(e.arrayFormatSeparator);i=n?c(i,e):i;const o=r||n?i.split(e.arrayFormatSeparator).map((t=>c(t,e))):null===i?i:c(i,e);A[t]=o};default:return(e,t,i)=>{void 0!==i[e]?i[e]=[].concat(i[e],t):i[e]=t}}}(t),A=Object.create(null);if("string"!=typeof e)return A;if(!(e=e.trim().replace(/^[?#&]/,"")))return A;for(const r of e.split("&")){if(""===r)continue;let[e,o]=n(t.decode?r.replace(/\+/g," "):r,"=");o=void 0===o?null:["comma","separator"].includes(t.arrayFormat)?o:c(o,t),i(c(e,t),o,A)}for(const e of Object.keys(A)){const i=A[e];if("object"==typeof i&&null!==i)for(const e of Object.keys(i))i[e]=g(i[e],t);else A[e]=g(i,t)}return!1===t.sort?A:(!0===t.sort?Object.keys(A).sort():Object.keys(A).sort(t.sort)).reduce(((e,t)=>{const i=A[t];return Boolean(i)&&"object"==typeof i&&!Array.isArray(i)?e[t]=I(i):e[t]=i,e}),Object.create(null))}i.extract=h,i.parse=u,i.stringify=(e,t)=>{if(!e)return"";a((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const i=i=>t.skipNull&&null==e[i]||t.skipEmptyString&&""===e[i],A=function(e){switch(e.arrayFormat){case"index":return t=>(i,A)=>{const r=i.length;return void 0===A||e.skipNull&&null===A||e.skipEmptyString&&""===A?i:null===A?[...i,[s(t,e),"[",r,"]"].join("")]:[...i,[s(t,e),"[",s(r,e),"]=",s(A,e)].join("")]};case"bracket":return t=>(i,A)=>void 0===A||e.skipNull&&null===A||e.skipEmptyString&&""===A?i:null===A?[...i,[s(t,e),"[]"].join("")]:[...i,[s(t,e),"[]=",s(A,e)].join("")];case"comma":case"separator":return t=>(i,A)=>null==A||0===A.length?i:0===i.length?[[s(t,e),"=",s(A,e)].join("")]:[[i,s(A,e)].join(e.arrayFormatSeparator)];default:return t=>(i,A)=>void 0===A||e.skipNull&&null===A||e.skipEmptyString&&""===A?i:null===A?[...i,s(t,e)]:[...i,[s(t,e),"=",s(A,e)].join("")]}}(t),r={};for(const t of Object.keys(e))i(t)||(r[t]=e[t]);const n=Object.keys(r);return!1!==t.sort&&n.sort(t.sort),n.map((i=>{const r=e[i];return void 0===r?"":null===r?s(i,t):Array.isArray(r)?r.reduce(A(i),[]).join("&"):s(i,t)+"="+s(r,t)})).filter((e=>e.length>0)).join("&")},i.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[i,A]=n(e,"#");return Object.assign({url:i.split("?")[0]||"",query:u(h(e),t)},t&&t.parseFragmentIdentifier&&A?{fragmentIdentifier:c(A,t)}:{})},i.stringifyUrl=(e,t)=>{t=Object.assign({encode:!0,strict:!0},t);const A=f(e.url).split("?")[0]||"",r=i.extract(e.url),n=i.parse(r,{sort:!1}),o=Object.assign(n,e.query);let a=i.stringify(o,t);a&&(a=`?${a}`);let c=function(e){let t="";const i=e.indexOf("#");return-1!==i&&(t=e.slice(i)),t}(e.url);return e.fragmentIdentifier&&(c=`#${s(e.fragmentIdentifier,t)}`),`${A}${a}${c}`},i.pick=(e,t,A)=>{A=Object.assign({parseFragmentIdentifier:!0},A);const{url:r,query:n,fragmentIdentifier:a}=i.parseUrl(e,A);return i.stringifyUrl({url:r,query:o(n,t),fragmentIdentifier:a},A)},i.exclude=(e,t,A)=>{const r=Array.isArray(t)?e=>!t.includes(e):(e,i)=>!t(e,i);return i.pick(e,r,A)}},{"decode-uri-component":107,"filter-obj":136,"split-on-first":208,"strict-uri-encode":225}],195:[function(e,t,i){(function(i,A){(function(){"use strict";var r=65536,n=4294967295;var o=e("safe-buffer").Buffer,a=A.crypto||A.msCrypto;a&&a.getRandomValues?t.exports=function(e,t){if(e>n)throw new RangeError("requested too many random bytes");var A=o.allocUnsafe(e);if(e>0)if(e>r)for(var s=0;sI||e<0)throw new TypeError("offset must be a uint32");if(e>s||e>t)throw new RangeError("offset out of range")}function h(e,t,i){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>I||e<0)throw new TypeError("size must be a uint32");if(e+t>i||e>s)throw new RangeError("buffer too small")}function g(e,i,A,r){if(t.browser){var n=e.buffer,a=new Uint8Array(n,i,A);return c.getRandomValues(a),r?void t.nextTick((function(){r(null,e)})):e}if(!r)return o(A).copy(e,i),e;o(A,(function(t,A){if(t)return r(t);A.copy(e,i),r(null,e)}))}c&&c.getRandomValues||!t.browser?(i.randomFill=function(e,t,i,r){if(!(a.isBuffer(e)||e instanceof A.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)r=t,t=0,i=e.length;else if("function"==typeof i)r=i,i=e.length-t;else if("function"!=typeof r)throw new TypeError('"cb" argument must be a function');return f(t,e.length),h(i,t,e.length),g(e,t,i,r)},i.randomFillSync=function(e,t,i){void 0===t&&(t=0);if(!(a.isBuffer(e)||e instanceof A.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');f(t,e.length),void 0===i&&(i=e.length-t);return h(i,t,e.length),g(e,t,i)}):(i.randomFill=r,i.randomFillSync=r)}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:187,randombytes:195,"safe-buffer":198}],197:[function(e,t,i){"use strict";var A=e("buffer").Buffer,r=e("inherits"),n=e("hash-base"),o=new Array(16),a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],s=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],c=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],I=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],f=[0,1518500249,1859775393,2400959708,2840853838],h=[1352829926,1548603684,1836072691,2053994217,0];function g(){n.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function u(e,t){return e<>>32-t}function d(e,t,i,A,r,n,o,a){return u(e+(t^i^A)+n+o|0,a)+r|0}function l(e,t,i,A,r,n,o,a){return u(e+(t&i|~t&A)+n+o|0,a)+r|0}function B(e,t,i,A,r,n,o,a){return u(e+((t|~i)^A)+n+o|0,a)+r|0}function p(e,t,i,A,r,n,o,a){return u(e+(t&A|i&~A)+n+o|0,a)+r|0}function C(e,t,i,A,r,n,o,a){return u(e+(t^(i|~A))+n+o|0,a)+r|0}r(g,n),g.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var i=0|this._a,A=0|this._b,r=0|this._c,n=0|this._d,g=0|this._e,Q=0|this._a,E=0|this._b,y=0|this._c,m=0|this._d,b=0|this._e,w=0;w<80;w+=1){var v,D;w<16?(v=d(i,A,r,n,g,e[a[w]],f[0],c[w]),D=C(Q,E,y,m,b,e[s[w]],h[0],I[w])):w<32?(v=l(i,A,r,n,g,e[a[w]],f[1],c[w]),D=p(Q,E,y,m,b,e[s[w]],h[1],I[w])):w<48?(v=B(i,A,r,n,g,e[a[w]],f[2],c[w]),D=B(Q,E,y,m,b,e[s[w]],h[2],I[w])):w<64?(v=p(i,A,r,n,g,e[a[w]],f[3],c[w]),D=l(Q,E,y,m,b,e[s[w]],h[3],I[w])):(v=C(i,A,r,n,g,e[a[w]],f[4],c[w]),D=d(Q,E,y,m,b,e[s[w]],h[4],I[w])),i=g,g=n,n=u(r,10),r=A,A=v,Q=b,b=m,m=u(y,10),y=E,E=D}var S=this._b+r+m|0;this._b=this._c+n+b|0,this._c=this._d+g+Q|0,this._d=this._e+i+E|0,this._e=this._a+A+y|0,this._a=S},g.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=A.alloc?A.alloc(20):new A(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},t.exports=g},{buffer:99,"hash-base":137,inherits:169}],198:[function(e,t,i){ /*! safe-buffer. MIT License. Feross Aboukhadijeh */ -var A=e("buffer"),r=A.Buffer;function n(e,t){for(var i in e)t[i]=e[i]}function o(e,t,i){return r(e,t,i)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=A:(n(A,i),i.Buffer=o),o.prototype=Object.create(r.prototype),n(r,o),o.from=function(e,t,i){if("number"==typeof e)throw new TypeError("Argument must not be a number");return r(e,t,i)},o.alloc=function(e,t,i){if("number"!=typeof e)throw new TypeError("Argument must be a number");var A=r(e);return void 0!==t?"string"==typeof i?A.fill(t,i):A.fill(t):A.fill(0),A},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return A.SlowBuffer(e)}},{buffer:99}],199:[function(e,t,i){(function(i){(function(){"use strict";var A,r=e("buffer"),n=r.Buffer,o={};for(A in r)r.hasOwnProperty(A)&&"SlowBuffer"!==A&&"Buffer"!==A&&(o[A]=r[A]);var a=o.Buffer={};for(A in n)n.hasOwnProperty(A)&&"allocUnsafe"!==A&&"allocUnsafeSlow"!==A&&(a[A]=n[A]);if(o.Buffer.prototype=n.prototype,a.from&&a.from!==Uint8Array.from||(a.from=function(e,t,i){if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&void 0===e.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return n(e,t,i)}),a.alloc||(a.alloc=function(e,t,i){if("number"!=typeof e)throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var A=n(e);return t&&0!==t.length?"string"==typeof i?A.fill(t,i):A.fill(t):A.fill(0),A}),!o.kStringMaxLength)try{o.kStringMaxLength=i.binding("buffer").kStringMaxLength}catch(e){}o.constants||(o.constants={MAX_LENGTH:o.kMaxLength},o.kStringMaxLength&&(o.constants.MAX_STRING_LENGTH=o.kStringMaxLength)),t.exports=o}).call(this)}).call(this,e("_process"))},{_process:187,buffer:99}],200:[function(e,t,i){var A=e("safe-buffer").Buffer;function r(e,t){this._block=A.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}r.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=A.from(e,t));for(var i=this._block,r=this._blockSize,n=e.length,o=this._len,a=0;a=this._finalSize&&(this._update(this._block),this._block.fill(0));var i=8*this._len;if(i<=4294967295)this._block.writeUInt32BE(i,this._blockSize-4);else{var A=(4294967295&i)>>>0,r=(i-A)/4294967296;this._block.writeUInt32BE(r,this._blockSize-8),this._block.writeUInt32BE(A,this._blockSize-4)}this._update(this._block);var n=this._hash();return e?n.toString(e):n},r.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=r},{"safe-buffer":198}],201:[function(e,t,i){(i=t.exports=function(e){e=e.toLowerCase();var t=i[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t}).sha=e("./sha"),i.sha1=e("./sha1"),i.sha224=e("./sha224"),i.sha256=e("./sha256"),i.sha384=e("./sha384"),i.sha512=e("./sha512")},{"./sha":202,"./sha1":203,"./sha224":204,"./sha256":205,"./sha384":206,"./sha512":207}],202:[function(e,t,i){var A=e("inherits"),r=e("./hash"),n=e("safe-buffer").Buffer,o=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function s(){this.init(),this._w=a,r.call(this,64,56)}function c(e){return e<<30|e>>>2}function I(e,t,i,A){return 0===e?t&i|~t&A:2===e?t&i|t&A|i&A:t^i^A}A(s,r),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(e){for(var t,i=this._w,A=0|this._a,r=0|this._b,n=0|this._c,a=0|this._d,s=0|this._e,f=0;f<16;++f)i[f]=e.readInt32BE(4*f);for(;f<80;++f)i[f]=i[f-3]^i[f-8]^i[f-14]^i[f-16];for(var h=0;h<80;++h){var g=~~(h/20),u=0|((t=A)<<5|t>>>27)+I(g,r,n,a)+s+i[h]+o[g];s=a,a=n,n=c(r),r=A,A=u}this._a=A+this._a|0,this._b=r+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0},s.prototype._hash=function(){var e=n.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=s},{"./hash":200,inherits:169,"safe-buffer":198}],203:[function(e,t,i){var A=e("inherits"),r=e("./hash"),n=e("safe-buffer").Buffer,o=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function s(){this.init(),this._w=a,r.call(this,64,56)}function c(e){return e<<5|e>>>27}function I(e){return e<<30|e>>>2}function f(e,t,i,A){return 0===e?t&i|~t&A:2===e?t&i|t&A|i&A:t^i^A}A(s,r),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(e){for(var t,i=this._w,A=0|this._a,r=0|this._b,n=0|this._c,a=0|this._d,s=0|this._e,h=0;h<16;++h)i[h]=e.readInt32BE(4*h);for(;h<80;++h)i[h]=(t=i[h-3]^i[h-8]^i[h-14]^i[h-16])<<1|t>>>31;for(var g=0;g<80;++g){var u=~~(g/20),d=c(A)+f(u,r,n,a)+s+i[g]+o[u]|0;s=a,a=n,n=I(r),r=A,A=d}this._a=A+this._a|0,this._b=r+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0},s.prototype._hash=function(){var e=n.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=s},{"./hash":200,inherits:169,"safe-buffer":198}],204:[function(e,t,i){var A=e("inherits"),r=e("./sha256"),n=e("./hash"),o=e("safe-buffer").Buffer,a=new Array(64);function s(){this.init(),this._w=a,n.call(this,64,56)}A(s,r),s.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},s.prototype._hash=function(){var e=o.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},t.exports=s},{"./hash":200,"./sha256":205,inherits:169,"safe-buffer":198}],205:[function(e,t,i){var A=e("inherits"),r=e("./hash"),n=e("safe-buffer").Buffer,o=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],a=new Array(64);function s(){this.init(),this._w=a,r.call(this,64,56)}function c(e,t,i){return i^e&(t^i)}function I(e,t,i){return e&t|i&(e|t)}function f(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function h(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function g(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}A(s,r),s.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},s.prototype._update=function(e){for(var t,i=this._w,A=0|this._a,r=0|this._b,n=0|this._c,a=0|this._d,s=0|this._e,u=0|this._f,d=0|this._g,l=0|this._h,B=0;B<16;++B)i[B]=e.readInt32BE(4*B);for(;B<64;++B)i[B]=0|(((t=i[B-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+i[B-7]+g(i[B-15])+i[B-16];for(var p=0;p<64;++p){var C=l+h(s)+c(s,u,d)+o[p]+i[p]|0,Q=f(A)+I(A,r,n)|0;l=d,d=u,u=s,s=a+C|0,a=n,n=r,r=A,A=C+Q|0}this._a=A+this._a|0,this._b=r+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0,this._f=u+this._f|0,this._g=d+this._g|0,this._h=l+this._h|0},s.prototype._hash=function(){var e=n.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},t.exports=s},{"./hash":200,inherits:169,"safe-buffer":198}],206:[function(e,t,i){var A=e("inherits"),r=e("./sha512"),n=e("./hash"),o=e("safe-buffer").Buffer,a=new Array(160);function s(){this.init(),this._w=a,n.call(this,128,112)}A(s,r),s.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},s.prototype._hash=function(){var e=o.allocUnsafe(48);function t(t,i,A){e.writeInt32BE(t,A),e.writeInt32BE(i,A+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},t.exports=s},{"./hash":200,"./sha512":207,inherits:169,"safe-buffer":198}],207:[function(e,t,i){var A=e("inherits"),r=e("./hash"),n=e("safe-buffer").Buffer,o=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],a=new Array(160);function s(){this.init(),this._w=a,r.call(this,128,112)}function c(e,t,i){return i^e&(t^i)}function I(e,t,i){return e&t|i&(e|t)}function f(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function h(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function g(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function u(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function d(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function l(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function B(e,t){return e>>>0>>0?1:0}A(s,r),s.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},s.prototype._update=function(e){for(var t=this._w,i=0|this._ah,A=0|this._bh,r=0|this._ch,n=0|this._dh,a=0|this._eh,s=0|this._fh,p=0|this._gh,C=0|this._hh,Q=0|this._al,E=0|this._bl,y=0|this._cl,m=0|this._dl,b=0|this._el,w=0|this._fl,v=0|this._gl,D=0|this._hl,S=0;S<32;S+=2)t[S]=e.readInt32BE(4*S),t[S+1]=e.readInt32BE(4*S+4);for(;S<160;S+=2){var F=t[S-30],k=t[S-30+1],M=g(F,k),N=u(k,F),U=d(F=t[S-4],k=t[S-4+1]),G=l(k,F),H=t[S-14],_=t[S-14+1],R=t[S-32],K=t[S-32+1],q=N+_|0,x=M+H+B(q,N)|0;x=(x=x+U+B(q=q+G|0,G)|0)+R+B(q=q+K|0,K)|0,t[S]=x,t[S+1]=q}for(var J=0;J<160;J+=2){x=t[J],q=t[J+1];var Y=I(i,A,r),O=I(Q,E,y),L=f(i,Q),P=f(Q,i),z=h(a,b),Z=h(b,a),T=o[J],X=o[J+1],V=c(a,s,p),j=c(b,w,v),W=D+Z|0,$=C+z+B(W,D)|0;$=($=($=$+V+B(W=W+j|0,j)|0)+T+B(W=W+X|0,X)|0)+x+B(W=W+q|0,q)|0;var ee=P+O|0,te=L+Y+B(ee,P)|0;C=p,D=v,p=s,v=w,s=a,w=b,a=n+$+B(b=m+W|0,m)|0,n=r,m=y,r=A,y=E,A=i,E=Q,i=$+te+B(Q=W+ee|0,W)|0}this._al=this._al+Q|0,this._bl=this._bl+E|0,this._cl=this._cl+y|0,this._dl=this._dl+m|0,this._el=this._el+b|0,this._fl=this._fl+w|0,this._gl=this._gl+v|0,this._hl=this._hl+D|0,this._ah=this._ah+i+B(this._al,Q)|0,this._bh=this._bh+A+B(this._bl,E)|0,this._ch=this._ch+r+B(this._cl,y)|0,this._dh=this._dh+n+B(this._dl,m)|0,this._eh=this._eh+a+B(this._el,b)|0,this._fh=this._fh+s+B(this._fl,w)|0,this._gh=this._gh+p+B(this._gl,v)|0,this._hh=this._hh+C+B(this._hl,D)|0},s.prototype._hash=function(){var e=n.allocUnsafe(64);function t(t,i,A){e.writeInt32BE(t,A),e.writeInt32BE(i,A+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},t.exports=s},{"./hash":200,inherits:169,"safe-buffer":198}],208:[function(e,t,i){"use strict";t.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const i=e.indexOf(t);return-1===i?[e]:[e.slice(0,i),e.slice(i+t.length)]}},{}],209:[function(e,t,i){t.exports=r;var A=e("events").EventEmitter;function r(){A.call(this)}e("inherits")(r,A),r.Readable=e("readable-stream/lib/_stream_readable.js"),r.Writable=e("readable-stream/lib/_stream_writable.js"),r.Duplex=e("readable-stream/lib/_stream_duplex.js"),r.Transform=e("readable-stream/lib/_stream_transform.js"),r.PassThrough=e("readable-stream/lib/_stream_passthrough.js"),r.finished=e("readable-stream/lib/internal/streams/end-of-stream.js"),r.pipeline=e("readable-stream/lib/internal/streams/pipeline.js"),r.Stream=r,r.prototype.pipe=function(e,t){var i=this;function r(t){e.writable&&!1===e.write(t)&&i.pause&&i.pause()}function n(){i.readable&&i.resume&&i.resume()}i.on("data",r),e.on("drain",n),e._isStdio||t&&!1===t.end||(i.on("end",a),i.on("close",s));var o=!1;function a(){o||(o=!0,e.end())}function s(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(I(),0===A.listenerCount(this,"error"))throw e}function I(){i.removeListener("data",r),e.removeListener("drain",n),i.removeListener("end",a),i.removeListener("close",s),i.removeListener("error",c),e.removeListener("error",c),i.removeListener("end",I),i.removeListener("close",I),e.removeListener("close",I)}return i.on("error",c),e.on("error",c),i.on("end",I),i.on("close",I),e.on("close",I),e.emit("pipe",i),e}},{events:134,inherits:169,"readable-stream/lib/_stream_duplex.js":211,"readable-stream/lib/_stream_passthrough.js":212,"readable-stream/lib/_stream_readable.js":213,"readable-stream/lib/_stream_transform.js":214,"readable-stream/lib/_stream_writable.js":215,"readable-stream/lib/internal/streams/end-of-stream.js":219,"readable-stream/lib/internal/streams/pipeline.js":221}],210:[function(e,t,i){arguments[4][80][0].apply(i,arguments)},{dup:80}],211:[function(e,t,i){arguments[4][81][0].apply(i,arguments)},{"./_stream_readable":213,"./_stream_writable":215,_process:187,dup:81,inherits:169}],212:[function(e,t,i){arguments[4][82][0].apply(i,arguments)},{"./_stream_transform":214,dup:82,inherits:169}],213:[function(e,t,i){arguments[4][83][0].apply(i,arguments)},{"../errors":210,"./_stream_duplex":211,"./internal/streams/async_iterator":216,"./internal/streams/buffer_list":217,"./internal/streams/destroy":218,"./internal/streams/from":220,"./internal/streams/state":222,"./internal/streams/stream":223,_process:187,buffer:99,dup:83,events:134,inherits:169,"string_decoder/":224,util:50}],214:[function(e,t,i){arguments[4][84][0].apply(i,arguments)},{"../errors":210,"./_stream_duplex":211,dup:84,inherits:169}],215:[function(e,t,i){arguments[4][85][0].apply(i,arguments)},{"../errors":210,"./_stream_duplex":211,"./internal/streams/destroy":218,"./internal/streams/state":222,"./internal/streams/stream":223,_process:187,buffer:99,dup:85,inherits:169,"util-deprecate":226}],216:[function(e,t,i){arguments[4][86][0].apply(i,arguments)},{"./end-of-stream":219,_process:187,dup:86}],217:[function(e,t,i){arguments[4][87][0].apply(i,arguments)},{buffer:99,dup:87,util:50}],218:[function(e,t,i){arguments[4][88][0].apply(i,arguments)},{_process:187,dup:88}],219:[function(e,t,i){arguments[4][89][0].apply(i,arguments)},{"../../../errors":210,dup:89}],220:[function(e,t,i){arguments[4][90][0].apply(i,arguments)},{dup:90}],221:[function(e,t,i){arguments[4][91][0].apply(i,arguments)},{"../../../errors":210,"./end-of-stream":219,dup:91}],222:[function(e,t,i){arguments[4][92][0].apply(i,arguments)},{"../../../errors":210,dup:92}],223:[function(e,t,i){arguments[4][93][0].apply(i,arguments)},{dup:93,events:134}],224:[function(e,t,i){arguments[4][95][0].apply(i,arguments)},{dup:95,"safe-buffer":198}],225:[function(e,t,i){"use strict";t.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},{}],226:[function(e,t,i){(function(e){(function(){function i(t){try{if(!e.localStorage)return!1}catch(e){return!1}var i=e.localStorage[t];return null!=i&&"true"===String(i).toLowerCase()}t.exports=function(e,t){if(i("noDeprecation"))return e;var A=!1;return function(){if(!A){if(i("throwDeprecation"))throw new Error(t);i("traceDeprecation")?console.trace(t):console.warn(t),A=!0}return e.apply(this,arguments)}}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],227:[function(e,t,i){!function(e){"use strict";e.exports.is_uri=i,e.exports.is_http_uri=A,e.exports.is_https_uri=r,e.exports.is_web_uri=n,e.exports.isUri=i,e.exports.isHttpUri=A,e.exports.isHttpsUri=r,e.exports.isWebUri=n;var t=function(e){return e.match(/(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/)};function i(e){if(e&&!/[^a-z0-9\:\/\?\#\[\]\@\!\$\&\'\(\)\*\+\,\;\=\.\-\_\~\%]/i.test(e)&&!/%[^0-9a-f]/i.test(e)&&!/%[0-9a-f](:?[^0-9a-f]|$)/i.test(e)){var i,A,r,n,o,a="",s="";if(a=(i=t(e))[1],A=i[2],r=i[3],n=i[4],o=i[5],a&&a.length&&r.length>=0){if(A&&A.length){if(0!==r.length&&!/^\//.test(r))return}else if(/^\/\//.test(r))return;if(/^[a-z][a-z0-9\+\-\.]*$/.test(a.toLowerCase()))return s+=a+":",A&&A.length&&(s+="//"+A),s+=r,n&&n.length&&(s+="?"+n),o&&o.length&&(s+="#"+o),s}}}function A(e,A){if(i(e)){var r,n,o,a,s="",c="",I="",f="";if(s=(r=t(e))[1],c=r[2],n=r[3],o=r[4],a=r[5],s){if(A){if("https"!=s.toLowerCase())return}else if("http"!=s.toLowerCase())return;if(c)return/:(\d+)$/.test(c)&&(I=c.match(/:(\d+)$/)[0],c=c.replace(/:\d+$/,"")),f+=s+":",f+="//"+c,I&&(f+=I),f+=n,o&&o.length&&(f+="?"+o),a&&a.length&&(f+="#"+a),f}}}function r(e){return A(e,!0)}function n(e){return A(e)||r(e)}}(t)},{}],228:[function(e,t,i){"use strict";function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var r=Pe(e("./lib/toDate")),n=Pe(e("./lib/toFloat")),o=Pe(e("./lib/toInt")),a=Pe(e("./lib/toBoolean")),s=Pe(e("./lib/equals")),c=Pe(e("./lib/contains")),I=Pe(e("./lib/matches")),f=Pe(e("./lib/isEmail")),h=Pe(e("./lib/isURL")),g=Pe(e("./lib/isMACAddress")),u=Pe(e("./lib/isIP")),d=Pe(e("./lib/isIPRange")),l=Pe(e("./lib/isFQDN")),B=Pe(e("./lib/isDate")),p=Pe(e("./lib/isBoolean")),C=Pe(e("./lib/isLocale")),Q=Le(e("./lib/isAlpha")),E=Le(e("./lib/isAlphanumeric")),y=Pe(e("./lib/isNumeric")),m=Pe(e("./lib/isPassportNumber")),b=Pe(e("./lib/isPort")),w=Pe(e("./lib/isLowercase")),v=Pe(e("./lib/isUppercase")),D=Pe(e("./lib/isIMEI")),S=Pe(e("./lib/isAscii")),F=Pe(e("./lib/isFullWidth")),k=Pe(e("./lib/isHalfWidth")),M=Pe(e("./lib/isVariableWidth")),N=Pe(e("./lib/isMultibyte")),U=Pe(e("./lib/isSemVer")),G=Pe(e("./lib/isSurrogatePair")),H=Pe(e("./lib/isInt")),_=Le(e("./lib/isFloat")),R=Pe(e("./lib/isDecimal")),K=Pe(e("./lib/isHexadecimal")),q=Pe(e("./lib/isOctal")),x=Pe(e("./lib/isDivisibleBy")),J=Pe(e("./lib/isHexColor")),Y=Pe(e("./lib/isRgbColor")),O=Pe(e("./lib/isHSL")),L=Pe(e("./lib/isISRC")),P=Le(e("./lib/isIBAN")),z=Pe(e("./lib/isBIC")),Z=Pe(e("./lib/isMD5")),T=Pe(e("./lib/isHash")),X=Pe(e("./lib/isJWT")),V=Pe(e("./lib/isJSON")),j=Pe(e("./lib/isEmpty")),W=Pe(e("./lib/isLength")),$=Pe(e("./lib/isByteLength")),ee=Pe(e("./lib/isUUID")),te=Pe(e("./lib/isMongoId")),ie=Pe(e("./lib/isAfter")),Ae=Pe(e("./lib/isBefore")),re=Pe(e("./lib/isIn")),ne=Pe(e("./lib/isCreditCard")),oe=Pe(e("./lib/isIdentityCard")),ae=Pe(e("./lib/isEAN")),se=Pe(e("./lib/isISIN")),ce=Pe(e("./lib/isISBN")),Ie=Pe(e("./lib/isISSN")),fe=Pe(e("./lib/isTaxID")),he=Le(e("./lib/isMobilePhone")),ge=Pe(e("./lib/isEthereumAddress")),ue=Pe(e("./lib/isCurrency")),de=Pe(e("./lib/isBtcAddress")),le=Pe(e("./lib/isISO8601")),Be=Pe(e("./lib/isRFC3339")),pe=Pe(e("./lib/isISO31661Alpha2")),Ce=Pe(e("./lib/isISO31661Alpha3")),Qe=Pe(e("./lib/isISO4217")),Ee=Pe(e("./lib/isBase32")),ye=Pe(e("./lib/isBase58")),me=Pe(e("./lib/isBase64")),be=Pe(e("./lib/isDataURI")),we=Pe(e("./lib/isMagnetURI")),ve=Pe(e("./lib/isMimeType")),De=Pe(e("./lib/isLatLong")),Se=Le(e("./lib/isPostalCode")),Fe=Pe(e("./lib/ltrim")),ke=Pe(e("./lib/rtrim")),Me=Pe(e("./lib/trim")),Ne=Pe(e("./lib/escape")),Ue=Pe(e("./lib/unescape")),Ge=Pe(e("./lib/stripLow")),He=Pe(e("./lib/whitelist")),_e=Pe(e("./lib/blacklist")),Re=Pe(e("./lib/isWhitelisted")),Ke=Pe(e("./lib/normalizeEmail")),qe=Pe(e("./lib/isSlug")),xe=Pe(e("./lib/isLicensePlate")),Je=Pe(e("./lib/isStrongPassword")),Ye=Pe(e("./lib/isVAT"));function Oe(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return Oe=function(){return e},e}function Le(e){if(e&&e.__esModule)return e;if(null===e||"object"!==A(e)&&"function"!=typeof e)return{default:e};var t=Oe();if(t&&t.has(e))return t.get(e);var i={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=r?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(i,n,o):i[n]=e[n]}return i.default=e,t&&t.set(e,i),i}function Pe(e){return e&&e.__esModule?e:{default:e}}var ze={version:"13.7.0",toDate:r.default,toFloat:n.default,toInt:o.default,toBoolean:a.default,equals:s.default,contains:c.default,matches:I.default,isEmail:f.default,isURL:h.default,isMACAddress:g.default,isIP:u.default,isIPRange:d.default,isFQDN:l.default,isBoolean:p.default,isIBAN:P.default,isBIC:z.default,isAlpha:Q.default,isAlphaLocales:Q.locales,isAlphanumeric:E.default,isAlphanumericLocales:E.locales,isNumeric:y.default,isPassportNumber:m.default,isPort:b.default,isLowercase:w.default,isUppercase:v.default,isAscii:S.default,isFullWidth:F.default,isHalfWidth:k.default,isVariableWidth:M.default,isMultibyte:N.default,isSemVer:U.default,isSurrogatePair:G.default,isInt:H.default,isIMEI:D.default,isFloat:_.default,isFloatLocales:_.locales,isDecimal:R.default,isHexadecimal:K.default,isOctal:q.default,isDivisibleBy:x.default,isHexColor:J.default,isRgbColor:Y.default,isHSL:O.default,isISRC:L.default,isMD5:Z.default,isHash:T.default,isJWT:X.default,isJSON:V.default,isEmpty:j.default,isLength:W.default,isLocale:C.default,isByteLength:$.default,isUUID:ee.default,isMongoId:te.default,isAfter:ie.default,isBefore:Ae.default,isIn:re.default,isCreditCard:ne.default,isIdentityCard:oe.default,isEAN:ae.default,isISIN:se.default,isISBN:ce.default,isISSN:Ie.default,isMobilePhone:he.default,isMobilePhoneLocales:he.locales,isPostalCode:Se.default,isPostalCodeLocales:Se.locales,isEthereumAddress:ge.default,isCurrency:ue.default,isBtcAddress:de.default,isISO8601:le.default,isRFC3339:Be.default,isISO31661Alpha2:pe.default,isISO31661Alpha3:Ce.default,isISO4217:Qe.default,isBase32:Ee.default,isBase58:ye.default,isBase64:me.default,isDataURI:be.default,isMagnetURI:we.default,isMimeType:ve.default,isLatLong:De.default,ltrim:Fe.default,rtrim:ke.default,trim:Me.default,escape:Ne.default,unescape:Ue.default,stripLow:Ge.default,whitelist:He.default,blacklist:_e.default,isWhitelisted:Re.default,normalizeEmail:Ke.default,toString:toString,isSlug:qe.default,isStrongPassword:Je.default,isTaxID:fe.default,isDate:B.default,isLicensePlate:xe.default,isVAT:Ye.default,ibanLocales:P.locales};i.default=ze,t.exports=i.default,t.exports.default=i.default},{"./lib/blacklist":230,"./lib/contains":231,"./lib/equals":232,"./lib/escape":233,"./lib/isAfter":234,"./lib/isAlpha":235,"./lib/isAlphanumeric":236,"./lib/isAscii":237,"./lib/isBIC":238,"./lib/isBase32":239,"./lib/isBase58":240,"./lib/isBase64":241,"./lib/isBefore":242,"./lib/isBoolean":243,"./lib/isBtcAddress":244,"./lib/isByteLength":245,"./lib/isCreditCard":246,"./lib/isCurrency":247,"./lib/isDataURI":248,"./lib/isDate":249,"./lib/isDecimal":250,"./lib/isDivisibleBy":251,"./lib/isEAN":252,"./lib/isEmail":253,"./lib/isEmpty":254,"./lib/isEthereumAddress":255,"./lib/isFQDN":256,"./lib/isFloat":257,"./lib/isFullWidth":258,"./lib/isHSL":259,"./lib/isHalfWidth":260,"./lib/isHash":261,"./lib/isHexColor":262,"./lib/isHexadecimal":263,"./lib/isIBAN":264,"./lib/isIMEI":265,"./lib/isIP":266,"./lib/isIPRange":267,"./lib/isISBN":268,"./lib/isISIN":269,"./lib/isISO31661Alpha2":270,"./lib/isISO31661Alpha3":271,"./lib/isISO4217":272,"./lib/isISO8601":273,"./lib/isISRC":274,"./lib/isISSN":275,"./lib/isIdentityCard":276,"./lib/isIn":277,"./lib/isInt":278,"./lib/isJSON":279,"./lib/isJWT":280,"./lib/isLatLong":281,"./lib/isLength":282,"./lib/isLicensePlate":283,"./lib/isLocale":284,"./lib/isLowercase":285,"./lib/isMACAddress":286,"./lib/isMD5":287,"./lib/isMagnetURI":288,"./lib/isMimeType":289,"./lib/isMobilePhone":290,"./lib/isMongoId":291,"./lib/isMultibyte":292,"./lib/isNumeric":293,"./lib/isOctal":294,"./lib/isPassportNumber":295,"./lib/isPort":296,"./lib/isPostalCode":297,"./lib/isRFC3339":298,"./lib/isRgbColor":299,"./lib/isSemVer":300,"./lib/isSlug":301,"./lib/isStrongPassword":302,"./lib/isSurrogatePair":303,"./lib/isTaxID":304,"./lib/isURL":305,"./lib/isUUID":306,"./lib/isUppercase":307,"./lib/isVAT":308,"./lib/isVariableWidth":309,"./lib/isWhitelisted":310,"./lib/ltrim":311,"./lib/matches":312,"./lib/normalizeEmail":313,"./lib/rtrim":314,"./lib/stripLow":315,"./lib/toBoolean":316,"./lib/toDate":317,"./lib/toFloat":318,"./lib/toInt":319,"./lib/trim":320,"./lib/unescape":321,"./lib/whitelist":328}],229:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.commaDecimal=i.dotDecimal=i.farsiLocales=i.arabicLocales=i.englishLocales=i.decimal=i.alphanumeric=i.alpha=void 0;var A={"en-US":/^[A-Z]+$/i,"az-AZ":/^[A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[А-Я]+$/i,"cs-CZ":/^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[A-ZÆØÅ]+$/i,"de-DE":/^[A-ZÄÖÜß]+$/i,"el-GR":/^[Α-ώ]+$/i,"es-ES":/^[A-ZÁÉÍÑÓÚÜ]+$/i,"fa-IR":/^[ابپتثجچحخدذرزژسشصضطظعغفقکگلمنوهی]+$/i,"fi-FI":/^[A-ZÅÄÖ]+$/i,"fr-FR":/^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[A-ZÀÉÈÌÎÓÒÙ]+$/i,"nb-NO":/^[A-ZÆØÅ]+$/i,"nl-NL":/^[A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[A-ZÆØÅ]+$/i,"hu-HU":/^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"pl-PL":/^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[А-ЯЁ]+$/i,"sl-SI":/^[A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๐\s]+$/i,"tr-TR":/^[A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[А-ЩЬЮЯЄIЇҐі]+$/i,"vi-VN":/^[A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,"ku-IQ":/^[ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,ar:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[א-ת]+$/,fa:/^['آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی']+$/i,"hi-IN":/^[\u0900-\u0961]+[\u0972-\u097F]*$/i};i.alpha=A;var r={"en-US":/^[0-9A-Z]+$/i,"az-AZ":/^[0-9A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[0-9А-Я]+$/i,"cs-CZ":/^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[0-9A-ZÆØÅ]+$/i,"de-DE":/^[0-9A-ZÄÖÜß]+$/i,"el-GR":/^[0-9Α-ω]+$/i,"es-ES":/^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,"fi-FI":/^[0-9A-ZÅÄÖ]+$/i,"fr-FR":/^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i,"hu-HU":/^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"nb-NO":/^[0-9A-ZÆØÅ]+$/i,"nl-NL":/^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[0-9A-ZÆØÅ]+$/i,"pl-PL":/^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[0-9A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[0-9А-ЯЁ]+$/i,"sl-SI":/^[0-9A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[0-9A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[0-9А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[0-9A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๙\s]+$/i,"tr-TR":/^[0-9A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,"ku-IQ":/^[٠١٢٣٤٥٦٧٨٩0-9ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,"vi-VN":/^[0-9A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,ar:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[0-9א-ת]+$/,fa:/^['0-9آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی۱۲۳۴۵۶۷۸۹۰']+$/i,"hi-IN":/^[\u0900-\u0963]+[\u0966-\u097F]*$/i};i.alphanumeric=r;var n={"en-US":".",ar:"٫"};i.decimal=n;var o=["AU","GB","HK","IN","NZ","ZA","ZM"];i.englishLocales=o;for(var a,s=0;si.minOccurrences;return e.split((0,r.default)(t)).length>i.minOccurrences};var A=o(e("./util/assertString")),r=o(e("./util/toString")),n=o(e("./util/merge"));function o(e){return e&&e.__esModule?e:{default:e}}var a={ignoreCase:!1,minOccurrences:1};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323,"./util/merge":325,"./util/toString":327}],232:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){return(0,r.default)(e),e===t};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],233:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">").replace(/\//g,"/").replace(/\\/g,"\").replace(/`/g,"`")};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],234:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:String(new Date);(0,A.default)(e);var i=(0,r.default)(t),n=(0,r.default)(e);return!!(n&&i&&n>i)};var A=n(e("./util/assertString")),r=n(e("./toDate"));function n(e){return e&&e.__esModule?e:{default:e}}t.exports=i.default,t.exports.default=i.default},{"./toDate":317,"./util/assertString":323}],235:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,r.default)(e);var A=e,o=i.ignore;if(o)if(o instanceof RegExp)A=A.replace(o,"");else{if("string"!=typeof o)throw new Error("ignore should be instance of a String or RegExp");A=A.replace(new RegExp("[".concat(o.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(t in n.alpha)return n.alpha[t].test(A);throw new Error("Invalid locale '".concat(t,"'"))},i.locales=void 0;var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A},n=e("./alpha");var o=Object.keys(n.alpha);i.locales=o},{"./alpha":229,"./util/assertString":323}],236:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,r.default)(e);var A=e,o=i.ignore;if(o)if(o instanceof RegExp)A=A.replace(o,"");else{if("string"!=typeof o)throw new Error("ignore should be instance of a String or RegExp");A=A.replace(new RegExp("[".concat(o.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(t in n.alphanumeric)return n.alphanumeric[t].test(A);throw new Error("Invalid locale '".concat(t,"'"))},i.locales=void 0;var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A},n=e("./alpha");var o=Object.keys(n.alphanumeric);i.locales=o},{"./alpha":229,"./util/assertString":323}],237:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^[\x00-\x7F]+$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],238:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){if((0,r.default)(e),!n.CountryCodes.has(e.slice(4,6).toUpperCase()))return!1;return o.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A},n=e("./isISO31661Alpha2");var o=/^[A-Za-z]{6}[A-Za-z0-9]{2}([A-Za-z0-9]{3})?$/;t.exports=i.default,t.exports.default=i.default},{"./isISO31661Alpha2":270,"./util/assertString":323}],239:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){if((0,r.default)(e),e.length%8==0&&n.test(e))return!0;return!1};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^[A-Z2-7]+=*$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],240:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){if((0,r.default)(e),n.test(e))return!0;return!1};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^[A-HJ-NP-Za-km-z1-9]*$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],241:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){(0,A.default)(e),t=(0,r.default)(t,s);var i=e.length;if(t.urlSafe)return a.test(e);if(i%4!=0||o.test(e))return!1;var n=e.indexOf("=");return-1===n||n===i-1||n===i-2&&"="===e[i-1]};var A=n(e("./util/assertString")),r=n(e("./util/merge"));function n(e){return e&&e.__esModule?e:{default:e}}var o=/[^A-Z0-9+\/=]/i,a=/^[A-Z0-9_\-]*$/i,s={urlSafe:!1};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323,"./util/merge":325}],242:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:String(new Date);(0,A.default)(e);var i=(0,r.default)(t),n=(0,r.default)(e);return!!(n&&i&&n1&&void 0!==arguments[1]?arguments[1]:n;if((0,r.default)(e),t.loose)return a.includes(e.toLowerCase());return o.includes(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n={loose:!1},o=["true","false","1","0"],a=[].concat(o,["yes","no"]);t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],244:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){if((0,r.default)(e),e.startsWith("bc1"))return n.test(e);return o.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^(bc1)[a-z0-9]{25,39}$/,o=/^(1|3)[A-HJ-NP-Za-km-z1-9]{25,39}$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],245:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){var i,A;(0,r.default)(e),"object"===n(t)?(i=t.min||0,A=t.max):(i=arguments[1],A=arguments[2]);var o=encodeURI(e).split(/%..|./).length-1;return o>=i&&(void 0===A||o<=A)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],246:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){(0,r.default)(e);var t=e.replace(/[- ]+/g,"");if(!n.test(t))return!1;for(var i,A,o,a=0,s=t.length-1;s>=0;s--)i=t.substring(s,s+1),A=parseInt(i,10),a+=o&&(A*=2)>=10?A%10+1:A,o=!o;return!(a%10!=0||!t)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^(?:4[0-9]{12}(?:[0-9]{3,6})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12,15}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11}|6[27][0-9]{14}|^(81[0-9]{14,17}))$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],247:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){return(0,r.default)(e),function(e){var t="\\d{".concat(e.digits_after_decimal[0],"}");e.digits_after_decimal.forEach((function(e,i){0!==i&&(t="".concat(t,"|\\d{").concat(e,"}"))}));var i="(".concat(e.symbol.replace(/\W/,(function(e){return"\\".concat(e)})),")").concat(e.require_symbol?"":"?"),A="-?",r="[1-9]\\d{0,2}(\\".concat(e.thousands_separator,"\\d{3})*"),n="(".concat(["0","[1-9]\\d*",r].join("|"),")?"),o="(\\".concat(e.decimal_separator,"(").concat(t,"))").concat(e.require_decimal?"":"?"),a=n+(e.allow_decimal||e.require_decimal?o:"");e.allow_negatives&&!e.parens_for_negatives&&(e.negative_sign_after_digits?a+=A:e.negative_sign_before_digits&&(a=A+a));e.allow_negative_sign_placeholder?a="( (?!\\-))?".concat(a):e.allow_space_after_symbol?a=" ?".concat(a):e.allow_space_after_digits&&(a+="( (?!$))?");e.symbol_after_digits?a+=i:a=i+a;e.allow_negatives&&(e.parens_for_negatives?a="(\\(".concat(a,"\\)|").concat(a,")"):e.negative_sign_before_digits||e.negative_sign_after_digits||(a=A+a));return new RegExp("^(?!-? )(?=.*\\d)".concat(a,"$"))}(t=(0,A.default)(t,o)).test(e)};var A=n(e("./util/merge")),r=n(e("./util/assertString"));function n(e){return e&&e.__esModule?e:{default:e}}var o={symbol:"$",require_symbol:!1,allow_space_after_symbol:!1,symbol_after_digits:!1,allow_negatives:!0,parens_for_negatives:!1,negative_sign_before_digits:!1,negative_sign_after_digits:!1,allow_negative_sign_placeholder:!1,thousands_separator:",",decimal_separator:".",allow_decimal:!0,require_decimal:!1,digits_after_decimal:[2],allow_space_after_digits:!1};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323,"./util/merge":325}],248:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){(0,r.default)(e);var t=e.split(",");if(t.length<2)return!1;var i=t.shift().trim().split(";"),A=i.shift();if("data:"!==A.substr(0,5))return!1;var s=A.substr(5);if(""!==s&&!n.test(s))return!1;for(var c=0;c=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){i=e[Symbol.iterator]()},n:function(){var e=i.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==i.return||i.return()}finally{if(s)throw o}}}}(s);try{for(I.s();!(i=I.n()).done;){var f=(u=i.value,d=2,function(e){if(Array.isArray(e))return e}(u)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var i=[],A=!0,r=!1,n=void 0;try{for(var o,a=e[Symbol.iterator]();!(A=(o=a.next()).done)&&(i.push(o.value),!t||i.length!==t);A=!0);}catch(e){r=!0,n=e}finally{try{A||null==a.return||a.return()}finally{if(r)throw n}}return i}(u,d)||n(u,d)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),h=f[0],g=f[1];if(h.length!==g.length)return!1;c[g.charAt(0)]=h}}catch(e){I.e(e)}finally{I.f()}return new Date("".concat(c.m,"/").concat(c.d,"/").concat(c.y)).getDate()===+c.d}var u,d;var l;if(!t.strictMode)return"[object Date]"===Object.prototype.toString.call(e)&&isFinite(e);return!1};var A,r=(A=e("./util/merge"))&&A.__esModule?A:{default:A};function n(e,t){if(e){if("string"==typeof e)return o(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,A=new Array(t);i$)/g,""),s.endsWith(" ")&&(s=s.substr(0,s.length-1)),!function(e){var t=e.replace(/^"(.+)"$/,"$1");if(!t.trim())return!1;if(/[\.";<>]/.test(t)){if(t===e)return!1;if(!(t.split('"').length===t.split('\\"').length))return!1}return!0}(s))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>254)return!1;var l=e.split("@"),B=l.pop(),p=B.toLowerCase();if(t.host_blacklist.includes(p))return!1;var C=l.join("@");if(t.domain_specific_validation&&("gmail.com"===p||"googlemail.com"===p)){var Q=(C=C.toLowerCase()).split("+")[0];if(!(0,n.default)(Q.replace(/\./g,""),{min:6,max:30}))return!1;for(var E=Q.split("."),y=0;y63)&&(!!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)&&(!/[\uff01-\uff5e]/.test(e)&&(!/^-|-$/.test(e)&&!(!t.allow_underscores&&/_/.test(e)))))}))};var A=n(e("./util/assertString")),r=n(e("./util/merge"));function n(e){return e&&e.__esModule?e:{default:e}}var o={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323,"./util/merge":325}],257:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){(0,r.default)(e),t=t||{};var i=new RegExp("^(?:[-+])?(?:[0-9]+)?(?:\\".concat(t.locale?n.decimal[t.locale]:".","[0-9]*)?(?:[eE][\\+\\-]?(?:[0-9]+))?$"));if(""===e||"."===e||"-"===e||"+"===e)return!1;var A=parseFloat(e.replace(",","."));return i.test(e)&&(!t.hasOwnProperty("min")||A>=t.min)&&(!t.hasOwnProperty("max")||A<=t.max)&&(!t.hasOwnProperty("lt")||At.gt)},i.locales=void 0;var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A},n=e("./alpha");var o=Object.keys(n.decimal);i.locales=o},{"./alpha":229,"./util/assertString":323}],258:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)},i.fullWidth=void 0;var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;i.fullWidth=n},{"./util/assertString":323}],259:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){(0,r.default)(e);var t=e.replace(/\s+/g," ").replace(/\s?(hsla?\(|\)|,)\s?/gi,"$1");if(-1!==t.indexOf(","))return n.test(t);return o.test(t)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(,(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}(,((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?))?\)$/i,o=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(\s(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}\s?(\/\s((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?)\s?)?\)$/i;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],260:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)},i.halfWidth=void 0;var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;i.halfWidth=n},{"./util/assertString":323}],261:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){return(0,r.default)(e),new RegExp("^[a-fA-F0-9]{".concat(n[t],"}$")).test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n={md5:32,md4:32,sha1:40,sha256:64,sha384:96,sha512:128,ripemd128:32,ripemd160:40,tiger128:32,tiger160:40,tiger192:48,crc32:8,crc32b:8};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],262:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],263:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^(0x|0h)?[0-9A-F]+$/i;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],264:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),function(e){var t=e.replace(/[\s\-]+/gi,"").toUpperCase(),i=t.slice(0,2).toUpperCase();return i in n&&n[i].test(t)}(e)&&function(e){var t=e.replace(/[^A-Z0-9]+/gi,"").toUpperCase();return 1===(t.slice(4)+t.slice(0,4)).replace(/[A-Z]/g,(function(e){return e.charCodeAt(0)-55})).match(/\d{1,7}/g).reduce((function(e,t){return Number(e+t)%97}),"")}(e)},i.locales=void 0;var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n={AD:/^(AD[0-9]{2})\d{8}[A-Z0-9]{12}$/,AE:/^(AE[0-9]{2})\d{3}\d{16}$/,AL:/^(AL[0-9]{2})\d{8}[A-Z0-9]{16}$/,AT:/^(AT[0-9]{2})\d{16}$/,AZ:/^(AZ[0-9]{2})[A-Z0-9]{4}\d{20}$/,BA:/^(BA[0-9]{2})\d{16}$/,BE:/^(BE[0-9]{2})\d{12}$/,BG:/^(BG[0-9]{2})[A-Z]{4}\d{6}[A-Z0-9]{8}$/,BH:/^(BH[0-9]{2})[A-Z]{4}[A-Z0-9]{14}$/,BR:/^(BR[0-9]{2})\d{23}[A-Z]{1}[A-Z0-9]{1}$/,BY:/^(BY[0-9]{2})[A-Z0-9]{4}\d{20}$/,CH:/^(CH[0-9]{2})\d{5}[A-Z0-9]{12}$/,CR:/^(CR[0-9]{2})\d{18}$/,CY:/^(CY[0-9]{2})\d{8}[A-Z0-9]{16}$/,CZ:/^(CZ[0-9]{2})\d{20}$/,DE:/^(DE[0-9]{2})\d{18}$/,DK:/^(DK[0-9]{2})\d{14}$/,DO:/^(DO[0-9]{2})[A-Z]{4}\d{20}$/,EE:/^(EE[0-9]{2})\d{16}$/,EG:/^(EG[0-9]{2})\d{25}$/,ES:/^(ES[0-9]{2})\d{20}$/,FI:/^(FI[0-9]{2})\d{14}$/,FO:/^(FO[0-9]{2})\d{14}$/,FR:/^(FR[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,GB:/^(GB[0-9]{2})[A-Z]{4}\d{14}$/,GE:/^(GE[0-9]{2})[A-Z0-9]{2}\d{16}$/,GI:/^(GI[0-9]{2})[A-Z]{4}[A-Z0-9]{15}$/,GL:/^(GL[0-9]{2})\d{14}$/,GR:/^(GR[0-9]{2})\d{7}[A-Z0-9]{16}$/,GT:/^(GT[0-9]{2})[A-Z0-9]{4}[A-Z0-9]{20}$/,HR:/^(HR[0-9]{2})\d{17}$/,HU:/^(HU[0-9]{2})\d{24}$/,IE:/^(IE[0-9]{2})[A-Z0-9]{4}\d{14}$/,IL:/^(IL[0-9]{2})\d{19}$/,IQ:/^(IQ[0-9]{2})[A-Z]{4}\d{15}$/,IR:/^(IR[0-9]{2})0\d{2}0\d{18}$/,IS:/^(IS[0-9]{2})\d{22}$/,IT:/^(IT[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,JO:/^(JO[0-9]{2})[A-Z]{4}\d{22}$/,KW:/^(KW[0-9]{2})[A-Z]{4}[A-Z0-9]{22}$/,KZ:/^(KZ[0-9]{2})\d{3}[A-Z0-9]{13}$/,LB:/^(LB[0-9]{2})\d{4}[A-Z0-9]{20}$/,LC:/^(LC[0-9]{2})[A-Z]{4}[A-Z0-9]{24}$/,LI:/^(LI[0-9]{2})\d{5}[A-Z0-9]{12}$/,LT:/^(LT[0-9]{2})\d{16}$/,LU:/^(LU[0-9]{2})\d{3}[A-Z0-9]{13}$/,LV:/^(LV[0-9]{2})[A-Z]{4}[A-Z0-9]{13}$/,MC:/^(MC[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,MD:/^(MD[0-9]{2})[A-Z0-9]{20}$/,ME:/^(ME[0-9]{2})\d{18}$/,MK:/^(MK[0-9]{2})\d{3}[A-Z0-9]{10}\d{2}$/,MR:/^(MR[0-9]{2})\d{23}$/,MT:/^(MT[0-9]{2})[A-Z]{4}\d{5}[A-Z0-9]{18}$/,MU:/^(MU[0-9]{2})[A-Z]{4}\d{19}[A-Z]{3}$/,MZ:/^(MZ[0-9]{2})\d{21}$/,NL:/^(NL[0-9]{2})[A-Z]{4}\d{10}$/,NO:/^(NO[0-9]{2})\d{11}$/,PK:/^(PK[0-9]{2})[A-Z0-9]{4}\d{16}$/,PL:/^(PL[0-9]{2})\d{24}$/,PS:/^(PS[0-9]{2})[A-Z0-9]{4}\d{21}$/,PT:/^(PT[0-9]{2})\d{21}$/,QA:/^(QA[0-9]{2})[A-Z]{4}[A-Z0-9]{21}$/,RO:/^(RO[0-9]{2})[A-Z]{4}[A-Z0-9]{16}$/,RS:/^(RS[0-9]{2})\d{18}$/,SA:/^(SA[0-9]{2})\d{2}[A-Z0-9]{18}$/,SC:/^(SC[0-9]{2})[A-Z]{4}\d{20}[A-Z]{3}$/,SE:/^(SE[0-9]{2})\d{20}$/,SI:/^(SI[0-9]{2})\d{15}$/,SK:/^(SK[0-9]{2})\d{20}$/,SM:/^(SM[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,SV:/^(SV[0-9]{2})[A-Z0-9]{4}\d{20}$/,TL:/^(TL[0-9]{2})\d{19}$/,TN:/^(TN[0-9]{2})\d{20}$/,TR:/^(TR[0-9]{2})\d{5}[A-Z0-9]{17}$/,UA:/^(UA[0-9]{2})\d{6}[A-Z0-9]{19}$/,VA:/^(VA[0-9]{2})\d{18}$/,VG:/^(VG[0-9]{2})[A-Z0-9]{4}\d{16}$/,XK:/^(XK[0-9]{2})\d{16}$/};var o=Object.keys(n);i.locales=o},{"./util/assertString":323}],265:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){(0,r.default)(e);var i=n;(t=t||{}).allow_hyphens&&(i=o);if(!i.test(e))return!1;e=e.replace(/-/g,"");for(var A=0,a=2,s=0;s<14;s++){var c=e.substring(14-s-1,14-s),I=parseInt(c,10)*a;A+=I>=10?I%10+1:I,1===a?a+=1:a-=1}if((10-A%10)%10!==parseInt(e.substring(14,15),10))return!1;return!0};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^[0-9]{15}$/,o=/^\d{2}-\d{6}-\d{6}-\d{1}$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],266:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,r.default)(t),!(i=String(i)))return e(t,4)||e(t,6);if("4"===i){if(!a.test(t))return!1;var A=t.split(".").sort((function(e,t){return e-t}));return A[3]<=255}if("6"===i)return!!c.test(t);return!1};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",o="(".concat(n,"[.]){3}").concat(n),a=new RegExp("^".concat(o,"$")),s="(?:[0-9a-fA-F]{1,4})",c=new RegExp("^("+"(?:".concat(s,":){7}(?:").concat(s,"|:)|")+"(?:".concat(s,":){6}(?:").concat(o,"|:").concat(s,"|:)|")+"(?:".concat(s,":){5}(?::").concat(o,"|(:").concat(s,"){1,2}|:)|")+"(?:".concat(s,":){4}(?:(:").concat(s,"){0,1}:").concat(o,"|(:").concat(s,"){1,3}|:)|")+"(?:".concat(s,":){3}(?:(:").concat(s,"){0,2}:").concat(o,"|(:").concat(s,"){1,4}|:)|")+"(?:".concat(s,":){2}(?:(:").concat(s,"){0,3}:").concat(o,"|(:").concat(s,"){1,5}|:)|")+"(?:".concat(s,":){1}(?:(:").concat(s,"){0,4}:").concat(o,"|(:").concat(s,"){1,6}|:)|")+"(?::((?::".concat(s,"){0,5}:").concat(o,"|(?::").concat(s,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],267:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(0,A.default)(e);var i=e.split("/");if(2!==i.length)return!1;if(!o.test(i[1]))return!1;if(i[1].length>1&&i[1].startsWith("0"))return!1;var n=(0,r.default)(i[0],t);if(!n)return!1;var s=null;switch(String(t)){case"4":s=32;break;case"6":s=a;break;default:s=(0,r.default)(i[0],"6")?a:32}return i[1]<=s&&i[1]>=0};var A=n(e("./util/assertString")),r=n(e("./isIP"));function n(e){return e&&e.__esModule?e:{default:e}}var o=/^\d{1,3}$/,a=128;t.exports=i.default,t.exports.default=i.default},{"./isIP":266,"./util/assertString":323}],268:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,r.default)(t),!(i=String(i)))return e(t,10)||e(t,13);var A,s=t.replace(/[\s-]+/g,""),c=0;if("10"===i){if(!n.test(s))return!1;for(A=0;A<9;A++)c+=(A+1)*s.charAt(A);if("X"===s.charAt(9)?c+=100:c+=10*s.charAt(9),c%11==0)return!!s}else if("13"===i){if(!o.test(s))return!1;for(A=0;A<12;A++)c+=a[A%2]*s.charAt(A);if(s.charAt(12)-(10-c%10)%10==0)return!!s}return!1};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^(?:[0-9]{9}X|[0-9]{10})$/,o=/^(?:[0-9]{13})$/,a=[1,3];t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],269:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){if((0,r.default)(e),!n.test(e))return!1;for(var t=!0,i=0,A=e.length-2;A>=0;A--)if(e[A]>="A"&&e[A]<="Z")for(var o=e[A].charCodeAt(0)-55,a=o%10,s=Math.trunc(o/10),c=0,I=[a,s];c=5?1+2*(f-5):2*f:f,t=!t}else{var h=e[A].charCodeAt(0)-"0".charCodeAt(0);i+=t?h>=5?1+2*(h-5):2*h:h,t=!t}var g=10*Math.trunc((i+9)/10)-i;return+e[e.length-1]===g};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],270:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.has(e.toUpperCase())},i.CountryCodes=void 0;var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=new Set(["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]);var o=n;i.CountryCodes=o},{"./util/assertString":323}],271:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.has(e.toUpperCase())};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=new Set(["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","VAT","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWZ","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","URY","UZB","VUT","VEN","VNM","VGB","VIR","WLF","ESH","YEM","ZMB","ZWE"]);t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],272:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.has(e.toUpperCase())},i.CurrencyCodes=void 0;var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=new Set(["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UYW","UZS","VES","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]);var o=n;i.CurrencyCodes=o},{"./util/assertString":323}],273:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,r.default)(e);var i=t.strictSeparator?o.test(e):n.test(e);return i&&t.strict?a(e):i};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,o=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,a=function(e){var t=e.match(/^(\d{4})-?(\d{3})([ T]{1}\.*|$)/);if(t){var i=Number(t[1]),A=Number(t[2]);return i%4==0&&i%100!=0||i%400==0?A<=366:A<=365}var r=e.match(/(\d{4})-?(\d{0,2})-?(\d*)/).map(Number),n=r[1],o=r[2],a=r[3],s=o?"0".concat(o).slice(-2):o,c=a?"0".concat(a).slice(-2):a,I=new Date("".concat(n,"-").concat(s||"01","-").concat(c||"01"));return!o||!a||I.getUTCFullYear()===n&&I.getUTCMonth()+1===o&&I.getUTCDate()===a};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],274:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^[A-Z]{2}[0-9A-Z]{3}\d{2}\d{5}$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],275:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,r.default)(e);var i=n;if(i=t.require_hyphen?i.replace("?",""):i,!(i=t.case_sensitive?new RegExp(i):new RegExp(i,"i")).test(e))return!1;for(var A=e.replace("-","").toUpperCase(),o=0,a=0;a=2&&t===11-i},IT:function(e){return 9===e.length&&("CA00000AA"!==e&&e.search(/C[A-Z][0-9]{5}[A-Z]{2}/i)>-1)},NO:function(e){var t=e.trim();if(isNaN(Number(t)))return!1;if(11!==t.length)return!1;if("00000000000"===t)return!1;var i=t.split("").map(Number),A=(11-(3*i[0]+7*i[1]+6*i[2]+1*i[3]+8*i[4]+9*i[5]+4*i[6]+5*i[7]+2*i[8])%11)%11,r=(11-(5*i[0]+4*i[1]+3*i[2]+2*i[3]+7*i[4]+6*i[5]+5*i[6]+4*i[7]+3*i[8]+2*A)%11)%11;return A===i[9]&&r===i[10]},TH:function(e){if(!e.match(/^[1-8]\d{12}$/))return!1;for(var t=0,i=0;i<12;i++)t+=parseInt(e[i],10)*(13-i);return e[12]===((11-t%11)%10).toString()},LK:function(e){return!(10!==e.length||!/^[1-9]\d{8}[vx]$/i.test(e))||!(12!==e.length||!/^[1-9]\d{11}$/i.test(e))},"he-IL":function(e){var t=e.trim();if(!/^\d{9}$/.test(t))return!1;for(var i,A=t,r=0,n=0;n9?i-9:i;return r%10==0},"ar-LY":function(e){var t=e.trim();return!!/^(1|2)\d{11}$/.test(t)},"ar-TN":function(e){var t=e.trim();return!!/^\d{8}$/.test(t)},"zh-CN":function(e){var t,i=["11","12","13","14","15","21","22","23","31","32","33","34","35","36","37","41","42","43","44","45","46","50","51","52","53","54","61","62","63","64","65","71","81","82","91"],A=["7","9","10","5","8","4","2","1","6","3","7","9","10","5","8","4","2"],r=["1","0","X","9","8","7","6","5","4","3","2"],n=function(e){return i.includes(e)},o=function(e){var t=parseInt(e.substring(0,4),10),i=parseInt(e.substring(4,6),10),A=parseInt(e.substring(6),10),r=new Date(t,i-1,A);return!(r>new Date)&&(r.getFullYear()===t&&r.getMonth()===i-1&&r.getDate()===A)},a=function(e){return function(e){for(var t=e.substring(0,17),i=0,n=0;n<17;n++)i+=parseInt(t.charAt(n),10)*parseInt(A[n],10);return r[i%11]}(e)===e.charAt(17).toUpperCase()};return!!/^\d{15}|(\d{17}(\d|x|X))$/.test(t=e)&&(15===t.length?function(e){var t=/^[1-9]\d{7}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}$/.test(e);if(!t)return!1;var i=e.substring(0,2);if(!(t=n(i)))return!1;var A="19".concat(e.substring(6,12));return!!(t=o(A))}(t):function(e){var t=/^[1-9]\d{5}[1-9]\d{3}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}(\d|x|X)$/.test(e);if(!t)return!1;var i=e.substring(0,2);if(!(t=n(i)))return!1;var A=e.substring(6,14);return!!(t=o(A))&&a(e)}(t))},"zh-TW":function(e){var t={A:10,B:11,C:12,D:13,E:14,F:15,G:16,H:17,I:34,J:18,K:19,L:20,M:21,N:22,O:35,P:23,Q:24,R:25,S:26,T:27,U:28,V:29,W:32,X:30,Y:31,Z:33},i=e.trim().toUpperCase();return!!/^[A-Z][0-9]{9}$/.test(i)&&Array.from(i).reduce((function(e,i,A){if(0===A){var r=t[i];return r%10*9+Math.floor(r/10)}return 9===A?(10-e%10-Number(i))%10==0:e+Number(i)*(9-A)}),0)}};t.exports=i.default,t.exports.default=i.default},{"./isInt":278,"./util/assertString":323}],277:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){var i;if((0,A.default)(e),"[object Array]"===Object.prototype.toString.call(t)){var n=[];for(i in t)({}).hasOwnProperty.call(t,i)&&(n[i]=(0,r.default)(t[i]));return n.indexOf(e)>=0}if("object"===o(t))return t.hasOwnProperty(e);if(t&&"function"==typeof t.indexOf)return t.indexOf(e)>=0;return!1};var A=n(e("./util/assertString")),r=n(e("./util/toString"));function n(e){return e&&e.__esModule?e:{default:e}}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323,"./util/toString":327}],278:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){(0,r.default)(e);var i=(t=t||{}).hasOwnProperty("allow_leading_zeroes")&&!t.allow_leading_zeroes?n:o,A=!t.hasOwnProperty("min")||e>=t.min,a=!t.hasOwnProperty("max")||e<=t.max,s=!t.hasOwnProperty("lt")||et.gt;return i.test(e)&&A&&a&&s&&c};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,o=/^[-+]?[0-9]+$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],279:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){(0,A.default)(e);try{t=(0,r.default)(t,a);var i=[];t.allow_primitives&&(i=[null,!1,!0]);var n=JSON.parse(e);return i.includes(n)||!!n&&"object"===o(n)}catch(e){}return!1};var A=n(e("./util/assertString")),r=n(e("./util/merge"));function n(e){return e&&e.__esModule?e:{default:e}}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var a={allow_primitives:!1};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323,"./util/merge":325}],280:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){(0,A.default)(e);var t=e.split("."),i=t.length;if(i>3||i<2)return!1;return t.reduce((function(e,t){return e&&(0,r.default)(t,{urlSafe:!0})}),!0)};var A=n(e("./util/assertString")),r=n(e("./isBase64"));function n(e){return e&&e.__esModule?e:{default:e}}t.exports=i.default,t.exports.default=i.default},{"./isBase64":241,"./util/assertString":323}],281:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){if((0,A.default)(e),t=(0,r.default)(t,I),!e.includes(","))return!1;var i=e.split(",");if(i[0].startsWith("(")&&!i[1].endsWith(")")||i[1].endsWith(")")&&!i[0].startsWith("("))return!1;if(t.checkDMS)return s.test(i[0])&&c.test(i[1]);return o.test(i[0])&&a.test(i[1])};var A=n(e("./util/assertString")),r=n(e("./util/merge"));function n(e){return e&&e.__esModule?e:{default:e}}var o=/^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/,a=/^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/,s=/^(([1-8]?\d)\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|90\D+0\D+0)\D+[NSns]?$/i,c=/^\s*([1-7]?\d{1,2}\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|180\D+0\D+0)\D+[EWew]?$/i,I={checkDMS:!1};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323,"./util/merge":325}],282:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){var i,A;(0,r.default)(e),"object"===n(t)?(i=t.min||0,A=t.max):(i=arguments[1]||0,A=arguments[2]);var o=e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],a=e.length-o.length;return a>=i&&(void 0===A||a<=A)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],283:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){if((0,r.default)(e),t in n)return n[t](e);if("any"===t){for(var i in n){if((0,n[i])(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n={"cs-CZ":function(e){return/^(([ABCDEFHKIJKLMNPRSTUVXYZ]|[0-9])-?){5,8}$/.test(e)},"de-DE":function(e){return/^((AW|UL|AK|GA|AÖ|LF|AZ|AM|AS|ZE|AN|AB|A|KG|KH|BA|EW|BZ|HY|KM|BT|HP|B|BC|BI|BO|FN|TT|ÜB|BN|AH|BS|FR|HB|ZZ|BB|BK|BÖ|OC|OK|CW|CE|C|CO|LH|CB|KW|LC|LN|DA|DI|DE|DH|SY|NÖ|DO|DD|DU|DN|D|EI|EA|EE|FI|EM|EL|EN|PF|ED|EF|ER|AU|ZP|E|ES|NT|EU|FL|FO|FT|FF|F|FS|FD|FÜ|GE|G|GI|GF|GS|ZR|GG|GP|GR|NY|ZI|GÖ|GZ|GT|HA|HH|HM|HU|WL|HZ|WR|RN|HK|HD|HN|HS|GK|HE|HF|RZ|HI|HG|HO|HX|IK|IL|IN|J|JL|KL|KA|KS|KF|KE|KI|KT|KO|KN|KR|KC|KU|K|LD|LL|LA|L|OP|LM|LI|LB|LU|LÖ|HL|LG|MD|GN|MZ|MA|ML|MR|MY|AT|DM|MC|NZ|RM|RG|MM|ME|MB|MI|FG|DL|HC|MW|RL|MK|MG|MÜ|WS|MH|M|MS|NU|NB|ND|NM|NK|NW|NR|NI|NF|DZ|EB|OZ|TG|TO|N|OA|GM|OB|CA|EH|FW|OF|OL|OE|OG|BH|LR|OS|AA|GD|OH|KY|NP|WK|PB|PA|PE|PI|PS|P|PM|PR|RA|RV|RE|R|H|SB|WN|RS|RD|RT|BM|NE|GV|RP|SU|GL|RO|GÜ|RH|EG|RW|PN|SK|MQ|RU|SZ|RI|SL|SM|SC|HR|FZ|VS|SW|SN|CR|SE|SI|SO|LP|SG|NH|SP|IZ|ST|BF|TE|HV|OD|SR|S|AC|DW|ZW|TF|TS|TR|TÜ|UM|PZ|TP|UE|UN|UH|MN|KK|VB|V|AE|PL|RC|VG|GW|PW|VR|VK|KB|WA|WT|BE|WM|WE|AP|MO|WW|FB|WZ|WI|WB|JE|WF|WO|W|WÜ|BL|Z|GC)[- ]?[A-Z]{1,2}[- ]?\d{1,4}|(AIC|FDB|ABG|SLN|SAW|KLZ|BUL|ESB|NAB|SUL|WST|ABI|AZE|BTF|KÖT|DKB|FEU|ROT|ALZ|SMÜ|WER|AUR|NOR|DÜW|BRK|HAB|TÖL|WOR|BAD|BAR|BER|BIW|EBS|KEM|MÜB|PEG|BGL|BGD|REI|WIL|BKS|BIR|WAT|BOR|BOH|BOT|BRB|BLK|HHM|NEB|NMB|WSF|LEO|HDL|WMS|WZL|BÜS|CHA|KÖZ|ROD|WÜM|CLP|NEC|COC|ZEL|COE|CUX|DAH|LDS|DEG|DEL|RSL|DLG|DGF|LAN|HEI|MED|DON|KIB|ROK|JÜL|MON|SLE|EBE|EIC|HIG|WBS|BIT|PRÜ|LIB|EMD|WIT|ERH|HÖS|ERZ|ANA|ASZ|MAB|MEK|STL|SZB|FDS|HCH|HOR|WOL|FRG|GRA|WOS|FRI|FFB|GAP|GER|BRL|CLZ|GTH|NOH|HGW|GRZ|LÖB|NOL|WSW|DUD|HMÜ|OHA|KRU|HAL|HAM|HBS|QLB|HVL|NAU|HAS|EBN|GEO|HOH|HDH|ERK|HER|WAN|HEF|ROF|HBN|ALF|HSK|USI|NAI|REH|SAN|KÜN|ÖHR|HOL|WAR|ARN|BRG|GNT|HOG|WOH|KEH|MAI|PAR|RID|ROL|KLE|GEL|KUS|KYF|ART|SDH|LDK|DIL|MAL|VIB|LER|BNA|GHA|GRM|MTL|WUR|LEV|LIF|STE|WEL|LIP|VAI|LUP|HGN|LBZ|LWL|PCH|STB|DAN|MKK|SLÜ|MSP|TBB|MGH|MTK|BIN|MSH|EIL|HET|SGH|BID|MYK|MSE|MST|MÜR|WRN|MEI|GRH|RIE|MZG|MIL|OBB|BED|FLÖ|MOL|FRW|SEE|SRB|AIB|MOS|BCH|ILL|SOB|NMS|NEA|SEF|UFF|NEW|VOH|NDH|TDO|NWM|GDB|GVM|WIS|NOM|EIN|GAN|LAU|HEB|OHV|OSL|SFB|ERB|LOS|BSK|KEL|BSB|MEL|WTL|OAL|FÜS|MOD|OHZ|OPR|BÜR|PAF|PLÖ|CAS|GLA|REG|VIT|ECK|SIM|GOA|EMS|DIZ|GOH|RÜD|SWA|NES|KÖN|MET|LRO|BÜZ|DBR|ROS|TET|HRO|ROW|BRV|HIP|PAN|GRI|SHK|EIS|SRO|SOK|LBS|SCZ|MER|QFT|SLF|SLS|HOM|SLK|ASL|BBG|SBK|SFT|SHG|MGN|MEG|ZIG|SAD|NEN|OVI|SHA|BLB|SIG|SON|SPN|FOR|GUB|SPB|IGB|WND|STD|STA|SDL|OBG|HST|BOG|SHL|PIR|FTL|SEB|SÖM|SÜW|TIR|SAB|TUT|ANG|SDT|LÜN|LSZ|MHL|VEC|VER|VIE|OVL|ANK|OVP|SBG|UEM|UER|WLG|GMN|NVP|RDG|RÜG|DAU|FKB|WAF|WAK|SLZ|WEN|SOG|APD|WUG|GUN|ESW|WIZ|WES|DIN|BRA|BÜD|WHV|HWI|GHC|WTM|WOB|WUN|MAK|SEL|OCH|HOT|WDA)[- ]?(([A-Z][- ]?\d{1,4})|([A-Z]{2}[- ]?\d{1,3})))[- ]?(E|H)?$/.test(e)},"de-LI":function(e){return/^FL[- ]?\d{1,5}[UZ]?$/.test(e)},"fi-FI":function(e){return/^(?=.{4,7})(([A-Z]{1,3}|[0-9]{1,3})[\s-]?([A-Z]{1,3}|[0-9]{1,5}))$/.test(e)},"pt-PT":function(e){return/^([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})$/.test(e)},"sq-AL":function(e){return/^[A-Z]{2}[- ]?((\d{3}[- ]?(([A-Z]{2})|T))|(R[- ]?\d{3}))$/.test(e)},"pt-BR":function(e){return/^[A-Z]{3}[ -]?[0-9][A-Z][0-9]{2}|[A-Z]{3}[ -]?[0-9]{4}$/.test(e)}};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],284:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){if((0,r.default)(e),"en_US_POSIX"===e||"ca_ES_VALENCIA"===e)return!0;return n.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^[A-Za-z]{2,4}([_-]([A-Za-z]{4}|[\d]{3}))?([_-]([A-Za-z]{2}|[\d]{3}))?$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],285:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),e===e.toLowerCase()};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],286:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){if((0,r.default)(e),t&&(t.no_colons||t.no_separators))return o.test(e);return n.test(e)||a.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){4}([0-9a-fA-F]{2})$/,o=/^([0-9a-fA-F]){12}$/,a=/^([0-9a-fA-F]{4}\.){2}([0-9a-fA-F]{4})$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],287:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^[a-f0-9]{32}$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],288:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e.trim())};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^magnet:\?xt(?:\.1)?=urn:(?:aich|bitprint|btih|ed2k|ed2khash|kzhash|md5|sha1|tree:tiger):[a-z0-9]{32}(?:[a-z0-9]{8})?($|&)/i;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],289:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)||o.test(e)||a.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^(application|audio|font|image|message|model|multipart|text|video)\/[a-zA-Z0-9\.\-\+]{1,100}$/i,o=/^text\/[a-zA-Z0-9\.\-\+]{1,100};\s?charset=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?$/i,a=/^multipart\/[a-zA-Z0-9\.\-\+]{1,100}(;\s?(boundary|charset)=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?){0,2}$/i;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],290:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t,i){if((0,r.default)(e),i&&i.strictMode&&!e.startsWith("+"))return!1;if(Array.isArray(t))return t.some((function(t){if(n.hasOwnProperty(t)&&n[t].test(e))return!0;return!1}));if(t in n)return n[t].test(e);if(!t||"any"===t){for(var A in n){if(n.hasOwnProperty(A))if(n[A].test(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))},i.locales=void 0;var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n={"am-AM":/^(\+?374|0)((10|[9|7][0-9])\d{6}$|[2-4]\d{7}$)/,"ar-AE":/^((\+?971)|0)?5[024568]\d{7}$/,"ar-BH":/^(\+?973)?(3|6)\d{7}$/,"ar-DZ":/^(\+?213|0)(5|6|7)\d{8}$/,"ar-LB":/^(\+?961)?((3|81)\d{6}|7\d{7})$/,"ar-EG":/^((\+?20)|0)?1[0125]\d{8}$/,"ar-IQ":/^(\+?964|0)?7[0-9]\d{8}$/,"ar-JO":/^(\+?962|0)?7[789]\d{7}$/,"ar-KW":/^(\+?965)[569]\d{7}$/,"ar-LY":/^((\+?218)|0)?(9[1-6]\d{7}|[1-8]\d{7,9})$/,"ar-MA":/^(?:(?:\+|00)212|0)[5-7]\d{8}$/,"ar-OM":/^((\+|00)968)?(9[1-9])\d{6}$/,"ar-PS":/^(\+?970|0)5[6|9](\d{7})$/,"ar-SA":/^(!?(\+?966)|0)?5\d{8}$/,"ar-SY":/^(!?(\+?963)|0)?9\d{8}$/,"ar-TN":/^(\+?216)?[2459]\d{7}$/,"az-AZ":/^(\+994|0)(5[015]|7[07]|99)\d{7}$/,"bs-BA":/^((((\+|00)3876)|06))((([0-3]|[5-6])\d{6})|(4\d{7}))$/,"be-BY":/^(\+?375)?(24|25|29|33|44)\d{7}$/,"bg-BG":/^(\+?359|0)?8[789]\d{7}$/,"bn-BD":/^(\+?880|0)1[13456789][0-9]{8}$/,"ca-AD":/^(\+376)?[346]\d{5}$/,"cs-CZ":/^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"da-DK":/^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,"de-DE":/^((\+49|0)[1|3])([0|5][0-45-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7,9}$/,"de-AT":/^(\+43|0)\d{1,4}\d{3,12}$/,"de-CH":/^(\+41|0)([1-9])\d{1,9}$/,"de-LU":/^(\+352)?((6\d1)\d{6})$/,"dv-MV":/^(\+?960)?(7[2-9]|91|9[3-9])\d{7}$/,"el-GR":/^(\+?30|0)?(69\d{8})$/,"en-AU":/^(\+?61|0)4\d{8}$/,"en-BM":/^(\+?1)?441(((3|7)\d{6}$)|(5[0-3][0-9]\d{4}$)|(59\d{5}))/,"en-GB":/^(\+?44|0)7\d{9}$/,"en-GG":/^(\+?44|0)1481\d{6}$/,"en-GH":/^(\+233|0)(20|50|24|54|27|57|26|56|23|28|55|59)\d{7}$/,"en-GY":/^(\+592|0)6\d{6}$/,"en-HK":/^(\+?852[-\s]?)?[456789]\d{3}[-\s]?\d{4}$/,"en-MO":/^(\+?853[-\s]?)?[6]\d{3}[-\s]?\d{4}$/,"en-IE":/^(\+?353|0)8[356789]\d{7}$/,"en-IN":/^(\+?91|0)?[6789]\d{9}$/,"en-KE":/^(\+?254|0)(7|1)\d{8}$/,"en-KI":/^((\+686|686)?)?( )?((6|7)(2|3|8)[0-9]{6})$/,"en-MT":/^(\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$/,"en-MU":/^(\+?230|0)?\d{8}$/,"en-NA":/^(\+?264|0)(6|8)\d{7}$/,"en-NG":/^(\+?234|0)?[789]\d{9}$/,"en-NZ":/^(\+?64|0)[28]\d{7,9}$/,"en-PK":/^((00|\+)?92|0)3[0-6]\d{8}$/,"en-PH":/^(09|\+639)\d{9}$/,"en-RW":/^(\+?250|0)?[7]\d{8}$/,"en-SG":/^(\+65)?[3689]\d{7}$/,"en-SL":/^(\+?232|0)\d{8}$/,"en-TZ":/^(\+?255|0)?[67]\d{8}$/,"en-UG":/^(\+?256|0)?[7]\d{8}$/,"en-US":/^((\+1|1)?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,"en-ZA":/^(\+?27|0)\d{9}$/,"en-ZM":/^(\+?26)?09[567]\d{7}$/,"en-ZW":/^(\+263)[0-9]{9}$/,"en-BW":/^(\+?267)?(7[1-8]{1})\d{6}$/,"es-AR":/^\+?549(11|[2368]\d)\d{8}$/,"es-BO":/^(\+?591)?(6|7)\d{7}$/,"es-CO":/^(\+?57)?3(0(0|1|2|4|5)|1\d|2[0-4]|5(0|1))\d{7}$/,"es-CL":/^(\+?56|0)[2-9]\d{1}\d{7}$/,"es-CR":/^(\+506)?[2-8]\d{7}$/,"es-CU":/^(\+53|0053)?5\d{7}/,"es-DO":/^(\+?1)?8[024]9\d{7}$/,"es-HN":/^(\+?504)?[9|8]\d{7}$/,"es-EC":/^(\+?593|0)([2-7]|9[2-9])\d{7}$/,"es-ES":/^(\+?34)?[6|7]\d{8}$/,"es-PE":/^(\+?51)?9\d{8}$/,"es-MX":/^(\+?52)?(1|01)?\d{10,11}$/,"es-PA":/^(\+?507)\d{7,8}$/,"es-PY":/^(\+?595|0)9[9876]\d{7}$/,"es-SV":/^(\+?503)?[67]\d{7}$/,"es-UY":/^(\+598|0)9[1-9][\d]{6}$/,"es-VE":/^(\+?58)?(2|4)\d{9}$/,"et-EE":/^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/,"fa-IR":/^(\+?98[\-\s]?|0)9[0-39]\d[\-\s]?\d{3}[\-\s]?\d{4}$/,"fi-FI":/^(\+?358|0)\s?(4(0|1|2|4|5|6)?|50)\s?(\d\s?){4,8}\d$/,"fj-FJ":/^(\+?679)?\s?\d{3}\s?\d{4}$/,"fo-FO":/^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"fr-BF":/^(\+226|0)[67]\d{7}$/,"fr-CM":/^(\+?237)6[0-9]{8}$/,"fr-FR":/^(\+?33|0)[67]\d{8}$/,"fr-GF":/^(\+?594|0|00594)[67]\d{8}$/,"fr-GP":/^(\+?590|0|00590)[67]\d{8}$/,"fr-MQ":/^(\+?596|0|00596)[67]\d{8}$/,"fr-PF":/^(\+?689)?8[789]\d{6}$/,"fr-RE":/^(\+?262|0|00262)[67]\d{8}$/,"he-IL":/^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}$/,"hu-HU":/^(\+?36|06)(20|30|31|50|70)\d{7}$/,"id-ID":/^(\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\s?|\d]{5,11})$/,"it-IT":/^(\+?39)?\s?3\d{2} ?\d{6,7}$/,"it-SM":/^((\+378)|(0549)|(\+390549)|(\+3780549))?6\d{5,9}$/,"ja-JP":/^(\+81[ \-]?(\(0\))?|0)[6789]0[ \-]?\d{4}[ \-]?\d{4}$/,"ka-GE":/^(\+?995)?(5|79)\d{7}$/,"kk-KZ":/^(\+?7|8)?7\d{9}$/,"kl-GL":/^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"ko-KR":/^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/,"lt-LT":/^(\+370|8)\d{8}$/,"lv-LV":/^(\+?371)2\d{7}$/,"ms-MY":/^(\+?6?01){1}(([0145]{1}(\-|\s)?\d{7,8})|([236789]{1}(\s|\-)?\d{7}))$/,"mz-MZ":/^(\+?258)?8[234567]\d{7}$/,"nb-NO":/^(\+?47)?[49]\d{7}$/,"ne-NP":/^(\+?977)?9[78]\d{8}$/,"nl-BE":/^(\+?32|0)4\d{8}$/,"nl-NL":/^(((\+|00)?31\(0\))|((\+|00)?31)|0)6{1}\d{8}$/,"nn-NO":/^(\+?47)?[49]\d{7}$/,"pl-PL":/^(\+?48)? ?[5-8]\d ?\d{3} ?\d{2} ?\d{2}$/,"pt-BR":/^((\+?55\ ?[1-9]{2}\ ?)|(\+?55\ ?\([1-9]{2}\)\ ?)|(0[1-9]{2}\ ?)|(\([1-9]{2}\)\ ?)|([1-9]{2}\ ?))((\d{4}\-?\d{4})|(9[2-9]{1}\d{3}\-?\d{4}))$/,"pt-PT":/^(\+?351)?9[1236]\d{7}$/,"pt-AO":/^(\+244)\d{9}$/,"ro-RO":/^(\+?4?0)\s?7\d{2}(\/|\s|\.|\-)?\d{3}(\s|\.|\-)?\d{3}$/,"ru-RU":/^(\+?7|8)?9\d{9}$/,"si-LK":/^(?:0|94|\+94)?(7(0|1|2|4|5|6|7|8)( |-)?)\d{7}$/,"sl-SI":/^(\+386\s?|0)(\d{1}\s?\d{3}\s?\d{2}\s?\d{2}|\d{2}\s?\d{3}\s?\d{3})$/,"sk-SK":/^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"sq-AL":/^(\+355|0)6[789]\d{6}$/,"sr-RS":/^(\+3816|06)[- \d]{5,9}$/,"sv-SE":/^(\+?46|0)[\s\-]?7[\s\-]?[02369]([\s\-]?\d){7}$/,"tg-TJ":/^(\+?992)?[5][5]\d{7}$/,"th-TH":/^(\+66|66|0)\d{9}$/,"tr-TR":/^(\+?90|0)?5\d{9}$/,"tk-TM":/^(\+993|993|8)\d{8}$/,"uk-UA":/^(\+?38|8)?0\d{9}$/,"uz-UZ":/^(\+?998)?(6[125-79]|7[1-69]|88|9\d)\d{7}$/,"vi-VN":/^((\+?84)|0)((3([2-9]))|(5([25689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$/,"zh-CN":/^((\+|00)86)?(1[3-9]|9[28])\d{9}$/,"zh-TW":/^(\+?886\-?|0)?9\d{8}$/,"dz-BT":/^(\+?975|0)?(17|16|77|02)\d{6}$/};n["en-CA"]=n["en-US"],n["fr-CA"]=n["en-CA"],n["fr-BE"]=n["nl-BE"],n["zh-HK"]=n["en-HK"],n["zh-MO"]=n["en-MO"],n["ga-IE"]=n["en-IE"],n["fr-CH"]=n["de-CH"],n["it-CH"]=n["fr-CH"];var o=Object.keys(n);i.locales=o},{"./util/assertString":323}],291:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,A.default)(e),(0,r.default)(e)&&24===e.length};var A=n(e("./util/assertString")),r=n(e("./isHexadecimal"));function n(e){return e&&e.__esModule?e:{default:e}}t.exports=i.default,t.exports.default=i.default},{"./isHexadecimal":263,"./util/assertString":323}],292:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/[^\x00-\x7F]/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],293:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){if((0,r.default)(e),t&&t.no_symbols)return o.test(e);return new RegExp("^[+-]?([0-9]*[".concat((t||{}).locale?n.decimal[t.locale]:".","])?[0-9]+$")).test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A},n=e("./alpha");var o=/^[0-9]+$/;t.exports=i.default,t.exports.default=i.default},{"./alpha":229,"./util/assertString":323}],294:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^(0o)?[0-7]+$/i;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],295:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){(0,r.default)(e);var i=e.replace(/\s/g,"").toUpperCase();return t.toUpperCase()in n&&n[t].test(i)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n={AM:/^[A-Z]{2}\d{7}$/,AR:/^[A-Z]{3}\d{6}$/,AT:/^[A-Z]\d{7}$/,AU:/^[A-Z]\d{7}$/,BE:/^[A-Z]{2}\d{6}$/,BG:/^\d{9}$/,BR:/^[A-Z]{2}\d{6}$/,BY:/^[A-Z]{2}\d{7}$/,CA:/^[A-Z]{2}\d{6}$/,CH:/^[A-Z]\d{7}$/,CN:/^G\d{8}$|^E(?![IO])[A-Z0-9]\d{7}$/,CY:/^[A-Z](\d{6}|\d{8})$/,CZ:/^\d{8}$/,DE:/^[CFGHJKLMNPRTVWXYZ0-9]{9}$/,DK:/^\d{9}$/,DZ:/^\d{9}$/,EE:/^([A-Z]\d{7}|[A-Z]{2}\d{7})$/,ES:/^[A-Z0-9]{2}([A-Z0-9]?)\d{6}$/,FI:/^[A-Z]{2}\d{7}$/,FR:/^\d{2}[A-Z]{2}\d{5}$/,GB:/^\d{9}$/,GR:/^[A-Z]{2}\d{7}$/,HR:/^\d{9}$/,HU:/^[A-Z]{2}(\d{6}|\d{7})$/,IE:/^[A-Z0-9]{2}\d{7}$/,IN:/^[A-Z]{1}-?\d{7}$/,ID:/^[A-C]\d{7}$/,IR:/^[A-Z]\d{8}$/,IS:/^(A)\d{7}$/,IT:/^[A-Z0-9]{2}\d{7}$/,JP:/^[A-Z]{2}\d{7}$/,KR:/^[MS]\d{8}$/,LT:/^[A-Z0-9]{8}$/,LU:/^[A-Z0-9]{8}$/,LV:/^[A-Z0-9]{2}\d{7}$/,LY:/^[A-Z0-9]{8}$/,MT:/^\d{7}$/,MZ:/^([A-Z]{2}\d{7})|(\d{2}[A-Z]{2}\d{5})$/,MY:/^[AHK]\d{8}$/,NL:/^[A-Z]{2}[A-Z0-9]{6}\d$/,PL:/^[A-Z]{2}\d{7}$/,PT:/^[A-Z]\d{6}$/,RO:/^\d{8,9}$/,RU:/^\d{9}$/,SE:/^\d{8}$/,SL:/^(P)[A-Z]\d{7}$/,SK:/^[0-9A-Z]\d{7}$/,TR:/^[A-Z]\d{8}$/,UA:/^[A-Z]{2}\d{6}$/,US:/^\d{9}$/};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],296:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e,{min:0,max:65535})};var A,r=(A=e("./isInt"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./isInt":278}],297:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){if((0,r.default)(e),t in s)return s[t].test(e);if("any"===t){for(var i in s){if(s.hasOwnProperty(i))if(s[i].test(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))},i.locales=void 0;var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^\d{4}$/,o=/^\d{5}$/,a=/^\d{6}$/,s={AD:/^AD\d{3}$/,AT:n,AU:n,AZ:/^AZ\d{4}$/,BE:n,BG:n,BR:/^\d{5}-\d{3}$/,BY:/2[1-4]{1}\d{4}$/,CA:/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][\s\-]?\d[ABCEGHJ-NPRSTV-Z]\d$/i,CH:n,CN:/^(0[1-7]|1[012356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[1-5]|8[1345]|9[09])\d{4}$/,CZ:/^\d{3}\s?\d{2}$/,DE:o,DK:n,DO:o,DZ:o,EE:o,ES:/^(5[0-2]{1}|[0-4]{1}\d{1})\d{3}$/,FI:o,FR:/^\d{2}\s?\d{3}$/,GB:/^(gir\s?0aa|[a-z]{1,2}\d[\da-z]?\s?(\d[a-z]{2})?)$/i,GR:/^\d{3}\s?\d{2}$/,HR:/^([1-5]\d{4}$)/,HT:/^HT\d{4}$/,HU:n,ID:o,IE:/^(?!.*(?:o))[A-Za-z]\d[\dw]\s\w{4}$/i,IL:/^(\d{5}|\d{7})$/,IN:/^((?!10|29|35|54|55|65|66|86|87|88|89)[1-9][0-9]{5})$/,IR:/\b(?!(\d)\1{3})[13-9]{4}[1346-9][013-9]{5}\b/,IS:/^\d{3}$/,IT:o,JP:/^\d{3}\-\d{4}$/,KE:o,KR:/^(\d{5}|\d{6})$/,LI:/^(948[5-9]|949[0-7])$/,LT:/^LT\-\d{5}$/,LU:n,LV:/^LV\-\d{4}$/,LK:o,MX:o,MT:/^[A-Za-z]{3}\s{0,1}\d{4}$/,MY:o,NL:/^\d{4}\s?[a-z]{2}$/i,NO:n,NP:/^(10|21|22|32|33|34|44|45|56|57)\d{3}$|^(977)$/i,NZ:n,PL:/^\d{2}\-\d{3}$/,PR:/^00[679]\d{2}([ -]\d{4})?$/,PT:/^\d{4}\-\d{3}?$/,RO:a,RU:a,SA:o,SE:/^[1-9]\d{2}\s?\d{2}$/,SG:a,SI:n,SK:/^\d{3}\s?\d{2}$/,TH:o,TN:n,TW:/^\d{3}(\d{2})?$/,UA:o,US:/^\d{5}(-\d{4})?$/,ZA:n,ZM:o},c=Object.keys(s);i.locales=c},{"./util/assertString":323}],298:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),h.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/([01][0-9]|2[0-3])/,o=/[0-5][0-9]/,a=new RegExp("[-+]".concat(n.source,":").concat(o.source)),s=new RegExp("([zZ]|".concat(a.source,")")),c=new RegExp("".concat(n.source,":").concat(o.source,":").concat(/([0-5][0-9]|60)/.source).concat(/(\.[0-9]+)?/.source)),I=new RegExp("".concat(/[0-9]{4}/.source,"-").concat(/(0[1-9]|1[0-2])/.source,"-").concat(/([12]\d|0[1-9]|3[01])/.source)),f=new RegExp("".concat(c.source).concat(s.source)),h=new RegExp("^".concat(I.source,"[ tT]").concat(f.source,"$"));t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],299:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if((0,r.default)(e),!t)return n.test(e)||o.test(e);return n.test(e)||o.test(e)||a.test(e)||s.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^rgb\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){2}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\)$/,o=/^rgba\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/,a=/^rgb\((([0-9]%|[1-9][0-9]%|100%),){2}([0-9]%|[1-9][0-9]%|100%)\)/,s=/^rgba\((([0-9]%|[1-9][0-9]%|100%),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],300:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,A.default)(e),n.test(e)};var A=r(e("./util/assertString"));function r(e){return e&&e.__esModule?e:{default:e}}var n=(0,r(e("./util/multilineRegex")).default)(["^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)","(?:-((?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*))*))","?(?:\\+([0-9a-z-]+(?:\\.[0-9a-z-]+)*))?$"],"i");t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323,"./util/multilineRegex":326}],301:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^[^\s-_](?!.*?[-_]{2,})[a-z0-9-\\][^\s]*[^-_\s]$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],302:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,r.default)(e);var i=f(e);if((t=(0,A.default)(t||{},I)).returnScore)return h(i,t);return i.length>=t.minLength&&i.lowercaseCount>=t.minLowercase&&i.uppercaseCount>=t.minUppercase&&i.numberCount>=t.minNumbers&&i.symbolCount>=t.minSymbols};var A=n(e("./util/merge")),r=n(e("./util/assertString"));function n(e){return e&&e.__esModule?e:{default:e}}var o=/^[A-Z]$/,a=/^[a-z]$/,s=/^[0-9]$/,c=/^[-#!$@%^&*()_+|~=`{}\[\]:";'<>?,.\/ ]$/,I={minLength:8,minLowercase:1,minUppercase:1,minNumbers:1,minSymbols:1,returnScore:!1,pointsPerUnique:1,pointsPerRepeat:.5,pointsForContainingLower:10,pointsForContainingUpper:10,pointsForContainingNumber:10,pointsForContainingSymbol:10};function f(e){var t,i,A=(t=e,i={},Array.from(t).forEach((function(e){i[e]?i[e]+=1:i[e]=1})),i),r={length:e.length,uniqueChars:Object.keys(A).length,uppercaseCount:0,lowercaseCount:0,numberCount:0,symbolCount:0};return Object.keys(A).forEach((function(e){o.test(e)?r.uppercaseCount+=A[e]:a.test(e)?r.lowercaseCount+=A[e]:s.test(e)?r.numberCount+=A[e]:c.test(e)&&(r.symbolCount+=A[e])})),r}function h(e,t){var i=0;return i+=e.uniqueChars*t.pointsPerUnique,i+=(e.length-e.uniqueChars)*t.pointsPerRepeat,e.lowercaseCount>0&&(i+=t.pointsForContainingLower),e.uppercaseCount>0&&(i+=t.pointsForContainingUpper),e.numberCount>0&&(i+=t.pointsForContainingNumber),e.symbolCount>0&&(i+=t.pointsForContainingSymbol),i}t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323,"./util/merge":325}],303:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/[\uD800-\uDBFF][\uDC00-\uDFFF]/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],304:[function(e,t,i){"use strict";function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US";(0,r.default)(e);var i=e.slice(0);if(t in g)return t in l&&(i=i.replace(l[t],"")),!!g[t].test(i)&&(!(t in u)||u[t](i));throw new Error("Invalid locale '".concat(t,"'"))};var r=s(e("./util/assertString")),n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==A(e)&&"function"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var i={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=r?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(i,n,o):i[n]=e[n]}i.default=e,t&&t.set(e,i);return i}(e("./util/algorithms")),o=s(e("./isDate"));function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return e&&e.__esModule?e:{default:e}}function c(e){return function(e){if(Array.isArray(e))return I(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return I(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return I(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,A=new Array(t);i0){if(t&&!i&&!/[AEIOU]/.test(e[A]))return!1;if(i&&!/X/.test(e[A]))return!1}return!0}var g={"bg-BG":/^\d{10}$/,"cs-CZ":/^\d{6}\/{0,1}\d{3,4}$/,"de-AT":/^\d{9}$/,"de-DE":/^[1-9]\d{10}$/,"dk-DK":/^\d{6}-{0,1}\d{4}$/,"el-CY":/^[09]\d{7}[A-Z]$/,"el-GR":/^([0-4]|[7-9])\d{8}$/,"en-GB":/^\d{10}$|^(?!GB|NK|TN|ZZ)(?![DFIQUV])[A-Z](?![DFIQUVO])[A-Z]\d{6}[ABCD ]$/i,"en-IE":/^\d{7}[A-W][A-IW]{0,1}$/i,"en-US":/^\d{2}[- ]{0,1}\d{7}$/,"es-ES":/^(\d{0,8}|[XYZKLM]\d{7})[A-HJ-NP-TV-Z]$/i,"et-EE":/^[1-6]\d{6}(00[1-9]|0[1-9][0-9]|[1-6][0-9]{2}|70[0-9]|710)\d$/,"fi-FI":/^\d{6}[-+A]\d{3}[0-9A-FHJ-NPR-Y]$/i,"fr-BE":/^\d{11}$/,"fr-FR":/^[0-3]\d{12}$|^[0-3]\d\s\d{2}(\s\d{3}){3}$/,"fr-LU":/^\d{13}$/,"hr-HR":/^\d{11}$/,"hu-HU":/^8\d{9}$/,"it-IT":/^[A-Z]{6}[L-NP-V0-9]{2}[A-EHLMPRST][L-NP-V0-9]{2}[A-ILMZ][L-NP-V0-9]{3}[A-Z]$/i,"lv-LV":/^\d{6}-{0,1}\d{5}$/,"mt-MT":/^\d{3,7}[APMGLHBZ]$|^([1-8])\1\d{7}$/i,"nl-NL":/^\d{9}$/,"pl-PL":/^\d{10,11}$/,"pt-BR":/(?:^\d{11}$)|(?:^\d{14}$)/,"pt-PT":/^\d{9}$/,"ro-RO":/^\d{13}$/,"sk-SK":/^\d{6}\/{0,1}\d{3,4}$/,"sl-SI":/^[1-9]\d{7}$/,"sv-SE":/^(\d{6}[-+]{0,1}\d{4}|(18|19|20)\d{6}[-+]{0,1}\d{4})$/};g["lb-LU"]=g["fr-LU"],g["lt-LT"]=g["et-EE"],g["nl-BE"]=g["fr-BE"];var u={"bg-BG":function(e){var t=e.slice(0,2),i=parseInt(e.slice(2,4),10);i>40?(i-=40,t="20".concat(t)):i>20?(i-=20,t="18".concat(t)):t="19".concat(t),i<10&&(i="0".concat(i));var A="".concat(t,"/").concat(i,"/").concat(e.slice(4,6));if(!(0,o.default)(A,"YYYY/MM/DD"))return!1;for(var r=e.split("").map((function(e){return parseInt(e,10)})),n=[2,4,8,5,10,9,7,3,6],a=0,s=0;s50&&(i-=50),i>20){if(parseInt(t,10)<2004)return!1;i-=20}i<10&&(i="0".concat(i));var A="".concat(t,"/").concat(i,"/").concat(e.slice(4,6));if(!(0,o.default)(A,"YYYY/MM/DD"))return!1;if(10===e.length&&parseInt(e,10)%11!=0){var r=parseInt(e.slice(0,9),10)%11;if(!(parseInt(t,10)<1986&&10===r))return!1;if(0!==parseInt(e.slice(9),10))return!1}return!0},"de-AT":function(e){return n.luhnCheck(e)},"de-DE":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),i=[],A=0;A1}))).length&&3!==i.length)return!1;if(3===i[0].length){for(var o=i[0].split("").map((function(e){return parseInt(e,10)})),a=0,s=0;s58))return!1;t="18".concat(t)}}3===t.length&&(t=[t.slice(0,2),"0",t.slice(2)].join(""));var i="".concat(t,"/").concat(e.slice(2,4),"/").concat(e.slice(0,2));if(!(0,o.default)(i,"YYYY/MM/DD"))return!1;for(var A=e.split("").map((function(e){return parseInt(e,10)})),r=0,n=4,a=0;a<9;a++)r+=A[a]*n,1===(n-=1)&&(n=7);return 1!==(r%=11)&&(0===r?0===A[9]:A[9]===11-r)},"el-CY":function(e){for(var t=e.slice(0,8).split("").map((function(e){return parseInt(e,10)})),i=0,A=1;A4&&(i+=2));return String.fromCharCode(i%26+65)===e.charAt(8)},"el-GR":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),i=0,A=0;A<8;A++)i+=t[A]*Math.pow(2,8-A);return i%11%10===t[8]},"en-IE":function(e){var t=n.reverseMultiplyAndSum(e.split("").slice(0,7).map((function(e){return parseInt(e,10)})),8);return 9===e.length&&"W"!==e[8]&&(t+=9*(e[8].charCodeAt(0)-64)),0===(t%=23)?"W"===e[7].toUpperCase():e[7].toUpperCase()===String.fromCharCode(64+t)},"en-US":function(e){return-1!==function(){var e=[];for(var t in f)f.hasOwnProperty(t)&&e.push.apply(e,c(f[t]));return e}().indexOf(e.substr(0,2))},"es-ES":function(e){var t=e.toUpperCase().split("");if(isNaN(parseInt(t[0],10))&&t.length>1){var i=0;switch(t[0]){case"Y":i=1;break;case"Z":i=2}t.splice(0,1,i)}else for(;t.length<9;)t.unshift(0);t=t.join("");var A=parseInt(t.slice(0,8),10)%23;return t[8]===["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"][A]},"et-EE":function(e){var t=e.slice(1,3);switch(e.slice(0,1)){case"1":case"2":t="18".concat(t);break;case"3":case"4":t="19".concat(t);break;default:t="20".concat(t)}var i="".concat(t,"/").concat(e.slice(3,5),"/").concat(e.slice(5,7));if(!(0,o.default)(i,"YYYY/MM/DD"))return!1;for(var A=e.split("").map((function(e){return parseInt(e,10)})),r=0,n=1,a=0;a<10;a++)r+=A[a]*n,10===(n+=1)&&(n=1);if(r%11==10){r=0,n=3;for(var s=0;s<10;s++)r+=A[s]*n,10===(n+=1)&&(n=1);if(r%11==10)return 0===A[10]}return r%11===A[10]},"fi-FI":function(e){var t=e.slice(4,6);switch(e.slice(6,7)){case"+":t="18".concat(t);break;case"-":t="19".concat(t);break;default:t="20".concat(t)}var i="".concat(t,"/").concat(e.slice(2,4),"/").concat(e.slice(0,2));if(!(0,o.default)(i,"YYYY/MM/DD"))return!1;var A=parseInt(e.slice(0,6)+e.slice(7,10),10)%31;return A<10?A===parseInt(e.slice(10),10):["A","B","C","D","E","F","H","J","K","L","M","N","P","R","S","T","U","V","W","X","Y"][A-=10]===e.slice(10)},"fr-BE":function(e){if("00"!==e.slice(2,4)||"00"!==e.slice(4,6)){var t="".concat(e.slice(0,2),"/").concat(e.slice(2,4),"/").concat(e.slice(4,6));if(!(0,o.default)(t,"YY/MM/DD"))return!1}var i=97-parseInt(e.slice(0,9),10)%97,A=parseInt(e.slice(9,11),10);return i===A||(i=97-parseInt("2".concat(e.slice(0,9)),10)%97)===A},"fr-FR":function(e){return e=e.replace(/\s/g,""),parseInt(e.slice(0,10),10)%511===parseInt(e.slice(10,13),10)},"fr-LU":function(e){var t="".concat(e.slice(0,4),"/").concat(e.slice(4,6),"/").concat(e.slice(6,8));return!!(0,o.default)(t,"YYYY/MM/DD")&&(!!n.luhnCheck(e.slice(0,12))&&n.verhoeffCheck("".concat(e.slice(0,11)).concat(e[12])))},"hr-HR":function(e){return n.iso7064Check(e)},"hu-HU":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),i=8,A=1;A<9;A++)i+=t[A]*(A+1);return i%11===t[9]},"it-IT":function(e){var t=e.toUpperCase().split("");if(!h(t.slice(0,3)))return!1;if(!h(t.slice(3,6)))return!1;for(var i={L:"0",M:"1",N:"2",P:"3",Q:"4",R:"5",S:"6",T:"7",U:"8",V:"9"},A=0,r=[6,7,9,10,12,13,14];A40&&(s-=40),s<10&&(s="0".concat(s));var c="".concat(t[6]).concat(t[7],"/").concat(a,"/").concat(s);if(!(0,o.default)(c,"YY/MM/DD"))return!1;for(var I=0,f=1;f4&&(l+=2)}I+=l}return String.fromCharCode(65+I%26)===t[15]},"lv-LV":function(e){var t=(e=e.replace(/\W/,"")).slice(0,2);if("32"!==t){if("00"!==e.slice(2,4)){var i=e.slice(4,6);switch(e[6]){case"0":i="18".concat(i);break;case"1":i="19".concat(i);break;default:i="20".concat(i)}var A="".concat(i,"/").concat(e.slice(2,4),"/").concat(t);if(!(0,o.default)(A,"YYYY/MM/DD"))return!1}for(var r=1101,n=[1,6,3,7,9,10,5,8,4,2],a=0;a32e3)return!1;if(i===parseInt(t.join("").slice(5,7),10))return!1}}return!0},"nl-NL":function(e){return n.reverseMultiplyAndSum(e.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11===parseInt(e[8],10)},"pl-PL":function(e){if(10===e.length){for(var t=[6,5,7,2,3,4,5,6,7],i=0,A=0;A80?(r="18".concat(r),n-=80):n>60?(r="22".concat(r),n-=60):n>40?(r="21".concat(r),n-=40):n>20?(r="20".concat(r),n-=20):r="19".concat(r),n<10&&(n="0".concat(n));var a="".concat(r,"/").concat(n,"/").concat(e.slice(4,6));if(!(0,o.default)(a,"YYYY/MM/DD"))return!1;for(var s=0,c=1,I=0;I10?c=1:5===c&&(c+=2);return(s=10-s%10)===parseInt(e[10],10)},"pt-BR":function(e){if(11===e.length){var t,i;if(t=0,"11111111111"===e||"22222222222"===e||"33333333333"===e||"44444444444"===e||"55555555555"===e||"66666666666"===e||"77777777777"===e||"88888888888"===e||"99999999999"===e||"00000000000"===e)return!1;for(var A=1;A<=9;A++)t+=parseInt(e.substring(A-1,A),10)*(11-A);if(10===(i=10*t%11)&&(i=0),i!==parseInt(e.substring(9,10),10))return!1;t=0;for(var r=1;r<=10;r++)t+=parseInt(e.substring(r-1,r),10)*(12-r);return 10===(i=10*t%11)&&(i=0),i===parseInt(e.substring(10,11),10)}if("00000000000000"===e||"11111111111111"===e||"22222222222222"===e||"33333333333333"===e||"44444444444444"===e||"55555555555555"===e||"66666666666666"===e||"77777777777777"===e||"88888888888888"===e||"99999999999999"===e)return!1;for(var n=e.length-2,o=e.substring(0,n),a=e.substring(n),s=0,c=n-7,I=n;I>=1;I--)s+=o.charAt(n-I)*c,(c-=1)<2&&(c=9);var f=s%11<2?0:11-s%11;if(f!==parseInt(a.charAt(0),10))return!1;n+=1,o=e.substring(0,n),s=0,c=n-7;for(var h=n;h>=1;h--)s+=o.charAt(n-h)*c,(c-=1)<2&&(c=9);return(f=s%11<2?0:11-s%11)===parseInt(a.charAt(1),10)},"pt-PT":function(e){var t=11-n.reverseMultiplyAndSum(e.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11;return t>9?0===parseInt(e[8],10):t===parseInt(e[8],10)},"ro-RO":function(e){if("9000"!==e.slice(0,4)){var t=e.slice(1,3);switch(e[0]){case"1":case"2":t="19".concat(t);break;case"3":case"4":t="18".concat(t);break;case"5":case"6":t="20".concat(t)}var i="".concat(t,"/").concat(e.slice(3,5),"/").concat(e.slice(5,7));if(8===i.length){if(!(0,o.default)(i,"YY/MM/DD"))return!1}else if(!(0,o.default)(i,"YYYY/MM/DD"))return!1;for(var A=e.split("").map((function(e){return parseInt(e,10)})),r=[2,7,9,1,4,6,3,5,8,2,7,9],n=0,a=0;a53)return!1;t=t<10?"190".concat(t):"19".concat(t);var i=parseInt(e.slice(2,4),10);i>50&&(i-=50),i<10&&(i="0".concat(i));var A="".concat(t,"/").concat(i,"/").concat(e.slice(4,6));if(!(0,o.default)(A,"YYYY/MM/DD"))return!1}return!0},"sl-SI":function(e){var t=11-n.reverseMultiplyAndSum(e.split("").slice(0,7).map((function(e){return parseInt(e,10)})),8)%11;return 10===t?0===parseInt(e[7],10):t===parseInt(e[7],10)},"sv-SE":function(e){var t=e.slice(0);e.length>11&&(t=t.slice(2));var i="",A=t.slice(2,4),r=parseInt(t.slice(4,6),10);if(e.length>11)i=e.slice(0,4);else if(i=e.slice(0,2),11===e.length&&r<60){var a=(new Date).getFullYear().toString(),s=parseInt(a.slice(0,2),10);if(a=parseInt(a,10),"-"===e[6])i=parseInt("".concat(s).concat(i),10)>a?"".concat(s-1).concat(i):"".concat(s).concat(i);else if(i="".concat(s-1).concat(i),a-parseInt(i,10)<100)return!1}r>60&&(r-=60),r<10&&(r="0".concat(r));var c="".concat(i,"/").concat(A,"/").concat(r);if(8===c.length){if(!(0,o.default)(c,"YY/MM/DD"))return!1}else if(!(0,o.default)(c,"YYYY/MM/DD"))return!1;return n.luhnCheck(e.replace(/\W/,""))}};u["lb-LU"]=u["fr-LU"],u["lt-LT"]=u["et-EE"],u["nl-BE"]=u["fr-BE"];var d=/[-\\\/!@#$%\^&\*\(\)\+\=\[\]]+/g,l={"de-AT":d,"de-DE":/[\/\\]/g,"fr-BE":d};l["nl-BE"]=l["fr-BE"],t.exports=i.default,t.exports.default=i.default},{"./isDate":249,"./util/algorithms":322,"./util/assertString":323}],305:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){if((0,A.default)(e),!e||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;if((t=(0,o.default)(t,c)).validate_length&&e.length>=2083)return!1;if(!t.allow_fragments&&e.includes("#"))return!1;if(!t.allow_query_components&&(e.includes("?")||e.includes("&")))return!1;var i,a,h,g,u,d,l,B;if(l=e.split("#"),e=l.shift(),l=e.split("?"),e=l.shift(),(l=e.split("://")).length>1){if(i=l.shift().toLowerCase(),t.require_valid_protocol&&-1===t.protocols.indexOf(i))return!1}else{if(t.require_protocol)return!1;if("//"===e.substr(0,2)){if(!t.allow_protocol_relative_urls)return!1;l[0]=e.substr(2)}}if(""===(e=l.join("://")))return!1;if(l=e.split("/"),""===(e=l.shift())&&!t.require_host)return!0;if((l=e.split("@")).length>1){if(t.disallow_auth)return!1;if(""===l[0])return!1;if((a=l.shift()).indexOf(":")>=0&&a.split(":").length>2)return!1;var p=a.split(":"),C=(m=2,function(e){if(Array.isArray(e))return e}(y=p)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var i=[],A=!0,r=!1,n=void 0;try{for(var o,a=e[Symbol.iterator]();!(A=(o=a.next()).done)&&(i.push(o.value),!t||i.length!==t);A=!0);}catch(e){r=!0,n=e}finally{try{A||null==a.return||a.return()}finally{if(r)throw n}}return i}}(y,m)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?s(e,t):void 0}}(y,m)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),Q=C[0],E=C[1];if(""===Q&&""===E)return!1}var y,m;g=l.join("@"),d=null,B=null;var b=g.match(I);b?(h="",B=b[1],d=b[2]||null):(l=g.split(":"),h=l.shift(),l.length&&(d=l.join(":")));if(null!==d&&d.length>0){if(u=parseInt(d,10),!/^[0-9]+$/.test(d)||u<=0||u>65535)return!1}else if(t.require_port)return!1;if(t.host_whitelist)return f(h,t.host_whitelist);if(!((0,n.default)(h)||(0,r.default)(h,t)||B&&(0,n.default)(B,6)))return!1;if(h=h||B,t.host_blacklist&&f(h,t.host_blacklist))return!1;return!0};var A=a(e("./util/assertString")),r=a(e("./isFQDN")),n=a(e("./isIP")),o=a(e("./util/merge"));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,A=new Array(t);i=0;i--)if(-1===t.indexOf(e[i]))return!1;return!0};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],311:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){(0,r.default)(e);var i=t?new RegExp("^[".concat(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"]+"),"g"):/^\s+/g;return e.replace(i,"")};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],312:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t,i){(0,r.default)(e),"[object RegExp]"!==Object.prototype.toString.call(t)&&(t=new RegExp(t,i));return t.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],313:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){t=(0,r.default)(t,n);var i=e.split("@"),A=i.pop(),f=[i.join("@"),A];if(f[1]=f[1].toLowerCase(),"gmail.com"===f[1]||"googlemail.com"===f[1]){if(t.gmail_remove_subaddress&&(f[0]=f[0].split("+")[0]),t.gmail_remove_dots&&(f[0]=f[0].replace(/\.+/g,I)),!f[0].length)return!1;(t.all_lowercase||t.gmail_lowercase)&&(f[0]=f[0].toLowerCase()),f[1]=t.gmail_convert_googlemaildotcom?"gmail.com":f[1]}else if(o.indexOf(f[1])>=0){if(t.icloud_remove_subaddress&&(f[0]=f[0].split("+")[0]),!f[0].length)return!1;(t.all_lowercase||t.icloud_lowercase)&&(f[0]=f[0].toLowerCase())}else if(a.indexOf(f[1])>=0){if(t.outlookdotcom_remove_subaddress&&(f[0]=f[0].split("+")[0]),!f[0].length)return!1;(t.all_lowercase||t.outlookdotcom_lowercase)&&(f[0]=f[0].toLowerCase())}else if(s.indexOf(f[1])>=0){if(t.yahoo_remove_subaddress){var h=f[0].split("-");f[0]=h.length>1?h.slice(0,-1).join("-"):h[0]}if(!f[0].length)return!1;(t.all_lowercase||t.yahoo_lowercase)&&(f[0]=f[0].toLowerCase())}else c.indexOf(f[1])>=0?((t.all_lowercase||t.yandex_lowercase)&&(f[0]=f[0].toLowerCase()),f[1]="yandex.ru"):t.all_lowercase&&(f[0]=f[0].toLowerCase());return f.join("@")};var A,r=(A=e("./util/merge"))&&A.__esModule?A:{default:A};var n={all_lowercase:!0,gmail_lowercase:!0,gmail_remove_dots:!0,gmail_remove_subaddress:!0,gmail_convert_googlemaildotcom:!0,outlookdotcom_lowercase:!0,outlookdotcom_remove_subaddress:!0,yahoo_lowercase:!0,yahoo_remove_subaddress:!0,yandex_lowercase:!0,icloud_lowercase:!0,icloud_remove_subaddress:!0},o=["icloud.com","me.com"],a=["hotmail.at","hotmail.be","hotmail.ca","hotmail.cl","hotmail.co.il","hotmail.co.nz","hotmail.co.th","hotmail.co.uk","hotmail.com","hotmail.com.ar","hotmail.com.au","hotmail.com.br","hotmail.com.gr","hotmail.com.mx","hotmail.com.pe","hotmail.com.tr","hotmail.com.vn","hotmail.cz","hotmail.de","hotmail.dk","hotmail.es","hotmail.fr","hotmail.hu","hotmail.id","hotmail.ie","hotmail.in","hotmail.it","hotmail.jp","hotmail.kr","hotmail.lv","hotmail.my","hotmail.ph","hotmail.pt","hotmail.sa","hotmail.sg","hotmail.sk","live.be","live.co.uk","live.com","live.com.ar","live.com.mx","live.de","live.es","live.eu","live.fr","live.it","live.nl","msn.com","outlook.at","outlook.be","outlook.cl","outlook.co.il","outlook.co.nz","outlook.co.th","outlook.com","outlook.com.ar","outlook.com.au","outlook.com.br","outlook.com.gr","outlook.com.pe","outlook.com.tr","outlook.com.vn","outlook.cz","outlook.de","outlook.dk","outlook.es","outlook.fr","outlook.hu","outlook.id","outlook.ie","outlook.in","outlook.it","outlook.jp","outlook.kr","outlook.lv","outlook.my","outlook.ph","outlook.pt","outlook.sa","outlook.sg","outlook.sk","passport.com"],s=["rocketmail.com","yahoo.ca","yahoo.co.uk","yahoo.com","yahoo.de","yahoo.fr","yahoo.in","yahoo.it","ymail.com"],c=["yandex.ru","yandex.ua","yandex.kz","yandex.com","yandex.by","ya.ru"];function I(e){return e.length>1?e:""}t.exports=i.default,t.exports.default=i.default},{"./util/merge":325}],314:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){if((0,r.default)(e),t){var i=new RegExp("[".concat(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"]+$"),"g");return e.replace(i,"")}var A=e.length-1;for(;/\s/.test(e.charAt(A));)A-=1;return e.slice(0,A+1)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],315:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){(0,A.default)(e);var i=t?"\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F":"\\x00-\\x1F\\x7F";return(0,r.default)(e,i)};var A=n(e("./util/assertString")),r=n(e("./blacklist"));function n(e){return e&&e.__esModule?e:{default:e}}t.exports=i.default,t.exports.default=i.default},{"./blacklist":230,"./util/assertString":323}],316:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){if((0,r.default)(e),t)return"1"===e||/^true$/i.test(e);return"0"!==e&&!/^false$/i.test(e)&&""!==e};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],317:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),e=Date.parse(e),isNaN(e)?null:new Date(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],318:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e)?parseFloat(e):NaN};var A,r=(A=e("./isFloat"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./isFloat":257}],319:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){return(0,r.default)(e),parseInt(e,t||10)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],320:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){return(0,A.default)((0,r.default)(e,t),t)};var A=n(e("./rtrim")),r=n(e("./ltrim"));function n(e){return e&&e.__esModule?e:{default:e}}t.exports=i.default,t.exports.default=i.default},{"./ltrim":311,"./rtrim":314}],321:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),e.replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(///g,"/").replace(/\/g,"\\").replace(/`/g,"`").replace(/&/g,"&")};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],322:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.iso7064Check=function(e){for(var t=10,i=0;i=0;A--){if(i){var r=2*parseInt(e[A],10);t+=r>9?r.toString().split("").map((function(e){return parseInt(e,10)})).reduce((function(e,t){return e+t}),0):r}else t+=parseInt(e[A],10);i=!i}return t%10==0},i.reverseMultiplyAndSum=function(e,t){for(var i=0,A=0;A0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var i in t)void 0===e[i]&&(e[i]=t[i]);return e},t.exports=i.default,t.exports.default=i.default},{}],326:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){var i=e.join("");return new RegExp(i,t)},t.exports=i.default,t.exports.default=i.default},{}],327:[function(e,t,i){"use strict";function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){"object"===A(e)&&null!==e?e="function"==typeof e.toString?e.toString():"[object Object]":(null==e||isNaN(e)&&!e.length)&&(e="");return String(e)},t.exports=i.default,t.exports.default=i.default},{}],328:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){return(0,r.default)(e),e.replace(new RegExp("[^".concat(t,"]+"),"g"),"")};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],329:[function(e,t,i){t.exports={name:"doipjs",version:"0.17.0",description:"Decentralized OpenPGP Identity Proofs library in Node.js",main:"./src/index.js",dependencies:{"@openpgp/hkp-client":"^0.0.2","@openpgp/wkd-client":"^0.0.3","@xmpp/client":"^0.13.1","@xmpp/debug":"^0.13.0",axios:"^0.25.0","browser-or-node":"^1.3.0",cors:"^2.8.5",dotenv:"^8.2.0",express:"^4.17.1","express-validator":"^6.10.0","hash-wasm":"^4.9.0","irc-upd":"^0.11.0",jsdom:"^20.0.0","merge-options":"^3.0.3",openpgp:"^5.5.0","query-string":"^6.14.1","valid-url":"^1.0.9",validator:"^13.5.2"},devDependencies:{browserify:"^17.0.0","browserify-shim":"^3.8.14",chai:"^4.2.0","chai-as-promised":"^7.1.1","chai-match-pattern":"^1.2.0","clean-jsdoc-theme":"^3.2.4",husky:"^7.0.0",jsdoc:"^3.6.6","license-check-and-add":"^4.0.3","lint-staged":"^11.0.0",minify:"^9.1",mocha:"^9.2.0",nodemon:"^2.0.19",standard:"^16.0.3"},scripts:{release:"yarn run test && yarn run release:bundle && yarn run release:minify","release:bundle":"./node_modules/.bin/browserify ./src/index.js --standalone doip -x openpgp -x jsdom -x @xmpp/client -x @xmpp/debug -x irc-upd -o ./dist/doip.js","release:minify":"./node_modules/.bin/minify ./dist/doip.js > ./dist/doip.min.js","license:check":"./node_modules/.bin/license-check-and-add check","license:add":"./node_modules/.bin/license-check-and-add add","license:remove":"./node_modules/.bin/license-check-and-add remove","docs:lib":"./node_modules/.bin/jsdoc -c jsdoc-lib.json -r -d ./docs -P package.json","standard:check":"./node_modules/.bin/standard ./src","standard:fix":"./node_modules/.bin/standard --fix ./src",mocha:"./node_modules/.bin/mocha",test:"yarn run standard:check && yarn run license:check && yarn run mocha",proxy:"NODE_ENV=production node ./src/proxy/","proxy:dev":"NODE_ENV=development ./node_modules/.bin/nodemon ./src/proxy/",prepare:"husky install"},repository:{type:"git",url:"https://codeberg.org/keyoxide/doipjs"},homepage:"https://js.doip.rocks",keywords:["pgp","gpg","openpgp","encryption","decentralized","identity"],author:"Yarmo Mackenbach (https://yarmo.eu)",license:"Apache-2.0",browserify:{transform:["browserify-shim"]},"browserify-shim":{openpgp:"global:openpgp"}}},{}],330:[function(e,t,i){const A=e("validator"),r=e("valid-url"),n=e("merge-options"),o=e("./proofs"),a=e("./verifications"),s=e("./claimDefinitions"),c=e("./defaults"),I=e("./enums");t.exports=class{constructor(e,t){if("object"==typeof e&&"claimVersion"in e){const t=e;if(1!==t.claimVersion)throw new Error("Invalid claim version");return this._uri=t.uri,this._fingerprint=t.fingerprint,this._status=t.status,this._matches=t.matches,void(this._verification=t.verification)}if(e&&!r.isUri(e))throw new Error("Invalid URI");if(t)try{A.isAlphanumeric(t)}catch(e){throw new Error("Invalid fingerprint")}this._uri=e||null,this._fingerprint=t||null,this._status=I.ClaimStatus.INIT,this._matches=null,this._verification=null}get uri(){return this._uri}get fingerprint(){return this._fingerprint}get status(){return this._status}get matches(){if(this._status===I.ClaimStatus.INIT)throw new Error("This claim has not yet been matched");return this._matches}get verification(){if(this._status!==I.ClaimStatus.VERIFIED)throw new Error("This claim has not yet been verified");return this._verification}set uri(e){if(this._status!==I.ClaimStatus.INIT)throw new Error("Cannot change the URI, this claim has already been matched");if(e&&!r.isUri(e))throw new Error("The URI was invalid");e=e.replace(/^\s+|\s+$/g,""),this._uri=e}set fingerprint(e){if(this._status===I.ClaimStatus.VERIFIED)throw new Error("Cannot change the fingerprint, this claim has already been verified");this._fingerprint=e}set status(e){throw new Error("Cannot change a claim's status")}set matches(e){throw new Error("Cannot change a claim's matches")}set verification(e){throw new Error("Cannot change a claim's verification result")}match(){if(this._status!==I.ClaimStatus.INIT)throw new Error("This claim was already matched");if(null===this._uri)throw new Error("This claim has no URI");this._matches=[],s.list.every(((e,t)=>{const i=s.data[e];if(!i.reURI.test(this._uri))return!0;const A=i.processURI(this._uri);return!A||(A.match.isAmbiguous?(this._matches.push(A),!0):(this._matches=[A],!1))})),this._status=I.ClaimStatus.MATCHED}async verify(e){if(this._status===I.ClaimStatus.INIT)throw new Error("This claim has not yet been matched");if(this._status===I.ClaimStatus.VERIFIED)throw new Error("This claim has already been verified");if(null===this._fingerprint)throw new Error("This claim has no fingerprint");e=n(c.opts,e||{}),0===this._matches.length&&(this._verification={result:!1,completed:!0,proof:{},errors:["No matches for claim"]});for(let t=0;t1||this._matches[0].match.isAmbiguous}toJSON(){return{claimVersion:1,uri:this._uri,fingerprint:this._fingerprint,status:this._status,matches:this._matches,verification:this._verification}}}},{"./claimDefinitions":339,"./defaults":353,"./enums":354,"./proofs":366,"./verifications":369,"merge-options":172,"valid-url":227,validator:228}],331:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/(.*)\/?/;i.reURI=r,i.processURI=e=>({serviceprovider:{type:"web",name:"activitypub"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:e,uri:e,qr:null},proof:{uri:e,request:{fetcher:A.Fetcher.ACTIVITYPUB,access:A.ProofAccess.GENERIC,format:A.ProofFormat.JSON,data:{url:e}}},claim:[{format:A.ClaimFormat.FINGERPRINT,relation:A.ClaimRelation.CONTAINS,path:["summary"]},{format:A.ClaimFormat.FINGERPRINT,relation:A.ClaimRelation.CONTAINS,path:["attachment","value"]}],functions:{postprocess:(e,t)=>(e.profile.display=`${t.result.preferredUsername}@${new URL(t.result.url).hostname}`,{claimData:e,proofData:t})}}),i.tests=[{uri:"https://domain.org",shouldMatch:!0},{uri:"https://domain.org/@/alice/",shouldMatch:!0},{uri:"https://domain.org/@alice",shouldMatch:!0},{uri:"https://domain.org/u/alice/",shouldMatch:!0},{uri:"https://domain.org/users/alice/",shouldMatch:!0},{uri:"http://domain.org/alice",shouldMatch:!1}]},{"../enums":354}],332:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/dev\.to\/(.*)\/(.*)\/?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"devto"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:t[1],uri:`https://dev.to/${t[1]}`,qr:null},proof:{uri:e,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.NOCORS,format:A.ProofFormat.JSON,data:{url:`https://dev.to/api/articles/${t[1]}/${t[2]}`,format:A.ProofFormat.JSON}}},claim:{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:["body_markdown"]}}},i.tests=[{uri:"https://dev.to/alice/post",shouldMatch:!0},{uri:"https://dev.to/alice/post/",shouldMatch:!0},{uri:"https://domain.org/alice/post",shouldMatch:!1}]},{"../enums":354}],333:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/(.*)\/u\/(.*)\/?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"discourse"},match:{regularExpression:r,isAmbiguous:!0},profile:{display:`${t[2]}@${t[1]}`,uri:e,qr:null},proof:{uri:e,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.NOCORS,format:A.ProofFormat.JSON,data:{url:`https://${t[1]}/u/${t[2]}.json`,format:A.ProofFormat.JSON}}},claim:{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:["user","bio_raw"]}}},i.tests=[{uri:"https://domain.org/u/alice",shouldMatch:!0},{uri:"https://domain.org/u/alice/",shouldMatch:!0},{uri:"https://domain.org/alice",shouldMatch:!1}]},{"../enums":354}],334:[function(e,t,i){const A=e("../enums"),r=/^dns:([a-zA-Z0-9.\-_]*)(?:\?(.*))?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"dns"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:t[1],uri:`https://${t[1]}`,qr:null},proof:{uri:null,request:{fetcher:A.Fetcher.DNS,access:A.ProofAccess.SERVER,format:A.ProofFormat.JSON,data:{domain:t[1]}}},claim:{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:["records","txt"]}}},i.tests=[{uri:"dns:domain.org",shouldMatch:!0},{uri:"dns:domain.org?type=TXT",shouldMatch:!0},{uri:"https://domain.org",shouldMatch:!1}]},{"../enums":354}],335:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/(.*)\/(.*)\/gitea_proof\/?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"gitea"},match:{regularExpression:r,isAmbiguous:!0},profile:{display:`${t[2]}@${t[1]}`,uri:`https://${t[1]}/${t[2]}`,qr:null},proof:{uri:e,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.NOCORS,format:A.ProofFormat.JSON,data:{url:`https://${t[1]}/api/v1/repos/${t[2]}/gitea_proof`,format:A.ProofFormat.JSON}}},claim:{format:A.ClaimFormat.URI,relation:A.ClaimRelation.EQUALS,path:["description"]}}},i.tests=[{uri:"https://domain.org/alice/gitea_proof",shouldMatch:!0},{uri:"https://domain.org/alice/gitea_proof/",shouldMatch:!0},{uri:"https://domain.org/alice/other_proof",shouldMatch:!1}]},{"../enums":354}],336:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/gist\.github\.com\/(.*)\/(.*)\/?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"github"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:t[1],uri:`https://github.com/${t[1]}`,qr:null},proof:{uri:e,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.GENERIC,format:A.ProofFormat.JSON,data:{url:`https://api.github.com/gists/${t[2]}`,format:A.ProofFormat.JSON}}},claim:{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:["files","openpgp.md","content"]}}},i.tests=[{uri:"https://gist.github.com/Alice/123456789",shouldMatch:!0},{uri:"https://gist.github.com/Alice/123456789/",shouldMatch:!0},{uri:"https://domain.org/Alice/123456789",shouldMatch:!1}]},{"../enums":354}],337:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/(.*)\/(.*)\/gitlab_proof\/?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"gitlab"},match:{regularExpression:r,isAmbiguous:!0},profile:{display:`${t[2]}@${t[1]}`,uri:`https://${t[1]}/${t[2]}`,qr:null},proof:{uri:e,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.GENERIC,format:A.ProofFormat.JSON,data:{url:`https://${t[1]}/api/v4/projects/${t[2]}%2Fgitlab_proof`,format:A.ProofFormat.JSON}}},claim:{format:A.ClaimFormat.URI,relation:A.ClaimRelation.EQUALS,path:["description"]}}},i.tests=[{uri:"https://gitlab.domain.org/alice/gitlab_proof",shouldMatch:!0},{uri:"https://gitlab.domain.org/alice/gitlab_proof/",shouldMatch:!0},{uri:"https://domain.org/alice/other_proof",shouldMatch:!1}]},{"../enums":354}],338:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/news\.ycombinator\.com\/user\?id=(.*)\/?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"hackernews"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:t[1],uri:e,qr:null},proof:{uri:`https://hacker-news.firebaseio.com/v0/user/${t[1]}.json`,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.NOCORS,format:A.ProofFormat.JSON,data:{url:`https://hacker-news.firebaseio.com/v0/user/${t[1]}.json`,format:A.ProofFormat.JSON}}},claim:{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:["about"]}}},i.tests=[{uri:"https://news.ycombinator.com/user?id=Alice",shouldMatch:!0},{uri:"https://news.ycombinator.com/user?id=Alice/",shouldMatch:!0},{uri:"https://domain.org/user?id=Alice",shouldMatch:!1}]},{"../enums":354}],339:[function(e,t,i){const A={dns:e("./dns"),irc:e("./irc"),xmpp:e("./xmpp"),matrix:e("./matrix"),telegram:e("./telegram"),twitter:e("./twitter"),reddit:e("./reddit"),liberapay:e("./liberapay"),lichess:e("./lichess"),hackernews:e("./hackernews"),lobsters:e("./lobsters"),devto:e("./devto"),gitea:e("./gitea"),gitlab:e("./gitlab"),github:e("./github"),activitypub:e("./activitypub"),mastodon:e("./mastodon"),pleroma:e("./pleroma"),discourse:e("./discourse"),owncast:e("./owncast"),stackexchange:e("./stackexchange")};i.list=Object.keys(A),i.data=A},{"./activitypub":331,"./devto":332,"./discourse":333,"./dns":334,"./gitea":335,"./github":336,"./gitlab":337,"./hackernews":338,"./irc":340,"./liberapay":341,"./lichess":342,"./lobsters":343,"./mastodon":344,"./matrix":345,"./owncast":346,"./pleroma":347,"./reddit":348,"./stackexchange":349,"./telegram":350,"./twitter":351,"./xmpp":352}],340:[function(e,t,i){const A=e("../enums"),r=/^irc:\/\/(.*)\/([a-zA-Z0-9\-[\]\\`_^{|}]*)/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"communication",name:"irc"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:`irc://${t[1]}/${t[2]}`,uri:e,qr:null},proof:{uri:null,request:{fetcher:A.Fetcher.IRC,access:A.ProofAccess.SERVER,format:A.ProofFormat.JSON,data:{domain:t[1],nick:t[2]}}},claim:{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:[]}}},i.tests=[{uri:"irc://chat.ircserver.org/Alice1",shouldMatch:!0},{uri:"irc://chat.ircserver.org/alice?param=123",shouldMatch:!0},{uri:"irc://chat.ircserver.org/alice_bob",shouldMatch:!0},{uri:"https://chat.ircserver.org/alice",shouldMatch:!1}]},{"../enums":354}],341:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/liberapay\.com\/(.*)\/?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"liberapay"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:t[1],uri:e,qr:null},proof:{uri:e,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.GENERIC,format:A.ProofFormat.JSON,data:{url:`https://liberapay.com/${t[1]}/public.json`,format:A.ProofFormat.JSON}}},claim:{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:["statements","content"]}}},i.tests=[{uri:"https://liberapay.com/alice",shouldMatch:!0},{uri:"https://liberapay.com/alice/",shouldMatch:!0},{uri:"https://domain.org/alice",shouldMatch:!1}]},{"../enums":354}],342:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/lichess\.org\/@\/(.*)\/?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"lichess"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:t[1],uri:e,qr:null},proof:{uri:`https://lichess.org/api/user/${t[1]}`,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.GENERIC,format:A.ProofFormat.JSON,data:{url:`https://lichess.org/api/user/${t[1]}`,format:A.ProofFormat.JSON}}},claim:{format:A.ClaimFormat.FINGERPRINT,relation:A.ClaimRelation.CONTAINS,path:["profile","links"]}}},i.tests=[{uri:"https://lichess.org/@/Alice",shouldMatch:!0},{uri:"https://lichess.org/@/Alice/",shouldMatch:!0},{uri:"https://domain.org/@/Alice",shouldMatch:!1}]},{"../enums":354}],343:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/lobste\.rs\/u\/(.*)\/?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"lobsters"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:t[1],uri:e,qr:null},proof:{uri:`https://lobste.rs/u/${t[1]}.json`,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.NOCORS,format:A.ProofFormat.JSON,data:{url:`https://lobste.rs/u/${t[1]}.json`,format:A.ProofFormat.JSON}}},claim:{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:["about"]}}},i.tests=[{uri:"https://lobste.rs/u/Alice",shouldMatch:!0},{uri:"https://lobste.rs/u/Alice/",shouldMatch:!0},{uri:"https://domain.org/u/Alice",shouldMatch:!1}]},{"../enums":354}],344:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/(.*)\/@(.*)\/?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"mastodon"},match:{regularExpression:r,isAmbiguous:!0},profile:{display:`@${t[2]}@${t[1]}`,uri:e,qr:null},proof:{uri:e,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.GENERIC,format:A.ProofFormat.JSON,data:{url:e,format:A.ProofFormat.JSON}}},claim:{format:A.ClaimFormat.FINGERPRINT,relation:A.ClaimRelation.CONTAINS,path:["attachment","value"]}}},i.tests=[{uri:"https://domain.org/@alice",shouldMatch:!0},{uri:"https://domain.org/@alice/",shouldMatch:!0},{uri:"https://domain.org/alice",shouldMatch:!1}]},{"../enums":354}],345:[function(e,t,i){const A=e("../enums"),r=e("query-string"),n=/^matrix:u\/(?:@)?([^@:]*:[^?]*)(\?.*)?/;i.reURI=n,i.processURI=e=>{const t=e.match(n);if(!t[2])return null;const i=r.parse(t[2]);if(!("org.keyoxide.e"in i)||!("org.keyoxide.r"in i))return null;const o=`https://matrix.to/#/@${t[1]}`,a=`https://matrix.to/#/${i["org.keyoxide.r"]}/${i["org.keyoxide.e"]}`;return{serviceprovider:{type:"communication",name:"matrix"},match:{regularExpression:n,isAmbiguous:!1},profile:{display:`@${t[1]}`,uri:o,qr:null},proof:{uri:a,request:{fetcher:A.Fetcher.MATRIX,access:A.ProofAccess.GRANTED,format:A.ProofFormat.JSON,data:{eventId:i["org.keyoxide.e"],roomId:i["org.keyoxide.r"]}}},claim:{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:["content","body"]}}},i.tests=[{uri:"matrix:u/alice:matrix.domain.org?org.keyoxide.r=!123:domain.org&org.keyoxide.e=$123",shouldMatch:!0},{uri:"matrix:u/alice:matrix.domain.org",shouldMatch:!0},{uri:"xmpp:alice@domain.org",shouldMatch:!1},{uri:"https://domain.org/@alice",shouldMatch:!1}]},{"../enums":354,"query-string":194}],346:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/(.*)/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"owncast"},match:{regularExpression:r,isAmbiguous:!0},profile:{display:t[1],uri:e,qr:null},proof:{uri:`${e}/api/config`,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.GENERIC,format:A.ProofFormat.JSON,data:{url:`${e}/api/config`,format:A.ProofFormat.JSON}}},claim:{format:A.ClaimFormat.FINGERPRINT,relation:A.ClaimRelation.CONTAINS,path:["socialHandles","url"]}}},i.tests=[{uri:"https://live.domain.org",shouldMatch:!0},{uri:"https://live.domain.org/",shouldMatch:!0},{uri:"https://domain.org/live",shouldMatch:!0},{uri:"https://domain.org/live/",shouldMatch:!0}]},{"../enums":354}],347:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/(.*)\/users\/(.*)\/?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"pleroma"},match:{regularExpression:r,isAmbiguous:!0},profile:{display:`@${t[2]}@${t[1]}`,uri:e,qr:null},proof:{uri:e,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.GENERIC,format:A.ProofFormat.JSON,data:{url:e,format:A.ProofFormat.JSON}}},claim:{format:A.ClaimFormat.FINGERPRINT,relation:A.ClaimRelation.CONTAINS,path:["summary"]}}},i.tests=[{uri:"https://domain.org/users/alice",shouldMatch:!0},{uri:"https://domain.org/users/alice/",shouldMatch:!0},{uri:"https://domain.org/alice",shouldMatch:!1}]},{"../enums":354}],348:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/(?:www\.)?reddit\.com\/user\/(.*)\/comments\/(.*)\/(.*)\/?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"reddit"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:t[1],uri:`https://www.reddit.com/user/${t[1]}`,qr:null},proof:{uri:e,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.NOCORS,format:A.ProofFormat.JSON,data:{url:`https://www.reddit.com/user/${t[1]}/comments/${t[2]}.json`,format:A.ProofFormat.JSON}}},claim:{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:["data","children","data","selftext"]}}},i.tests=[{uri:"https://www.reddit.com/user/Alice/comments/123456/post",shouldMatch:!0},{uri:"https://www.reddit.com/user/Alice/comments/123456/post/",shouldMatch:!0},{uri:"https://reddit.com/user/Alice/comments/123456/post",shouldMatch:!0},{uri:"https://reddit.com/user/Alice/comments/123456/post/",shouldMatch:!0},{uri:"https://domain.org/user/Alice/comments/123456/post",shouldMatch:!1}]},{"../enums":354}],349:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/(.*(?:askubuntu|mathoverflow|serverfault|stackapps|stackoverflow|superuser)|.+\.stackexchange)\.com\/users\/(\d+)/,n=/\.stackexchange$/;i.reURI=r,i.processURI=e=>{const[,t,i]=e.match(r),o=t.replace(n,"");return{serviceprovider:{type:"web",name:"stackexchange"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:`${i}@${o}`,uri:e,qr:null},proof:{uri:`https://${t}.com/users/${i}?tab=profile`,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.GENERIC,format:A.ProofFormat.JSON,data:{url:`https://api.stackexchange.com/2.3/users/${i}?site=${o}&filter=!AH)b5JqVyImf`,format:A.ProofFormat.JSON}}},claim:{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:["items","about_me"]}}},i.tests=[{uri:"https://stackoverflow.com/users/1234",shouldMatch:!0},{uri:"https://stackoverflow.com/users/1234/alice",shouldMatch:!0},{uri:"https://stackoverflow.com/users/1234?tab=topactivity",shouldMatch:!0},{uri:"https://stackoverflow.com/users/1234/alice?tab=profile",shouldMatch:!0},{uri:"https://meta.stackoverflow.com/users/1234",shouldMatch:!0},{uri:"https://pt.stackoverflow.com/users/1234",shouldMatch:!0},{uri:"https://pt.meta.stackoverflow.com/users/1234",shouldMatch:!0},{uri:"https://serverfault.com/users/1234",shouldMatch:!0},{uri:"https://meta.stackexchange.com/users/1234",shouldMatch:!0},{uri:"https://gaming.meta.stackexchange.com/users/1234",shouldMatch:!0},{uri:"https://stackexchange.com/users/1234",shouldMatch:!1},{uri:"https://domain.com/users/1234",shouldMatch:!1},{uri:"https://meta.domain.com/users/1234",shouldMatch:!1}]},{"../enums":354}],350:[function(e,t,i){const A=e("../enums"),r=/https:\/\/t.me\/([A-Za-z0-9_]{5,32})\?proof=([A-Za-z0-9_]{5,32})/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"communication",name:"telegram"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:`@${t[1]}`,uri:`https://t.me/${t[1]}`,qr:`https://t.me/${t[1]}`},proof:{uri:`https://t.me/${t[2]}`,request:{fetcher:A.Fetcher.TELEGRAM,access:A.ProofAccess.GRANTED,format:A.ProofFormat.JSON,data:{user:t[1],chat:t[2]}}},claim:{format:A.ClaimFormat.URI,relation:A.ClaimRelation.EQUALS,path:["text"]}}},i.tests=[{uri:"https://t.me/alice?proof=foobar",shouldMatch:!0},{uri:"https://t.me/complex_user_1234?proof=complex_chat_1234",shouldMatch:!0},{uri:"https://t.me/foobar",shouldMatch:!1},{uri:"https://t.me/foobar?proof=",shouldMatch:!1},{uri:"https://t.me/?proof=foobar",shouldMatch:!1}]},{"../enums":354}],351:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/twitter\.com\/(.*)\/status\/([0-9]*)(?:\?.*)?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"twitter"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:`@${t[1]}`,uri:`https://twitter.com/${t[1]}`,qr:null},proof:{uri:e,request:{fetcher:A.Fetcher.TWITTER,access:A.ProofAccess.GRANTED,format:A.ProofFormat.TEXT,data:{tweetId:t[2]}}},claim:{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:[]}}},i.tests=[{uri:"https://twitter.com/alice/status/1234567890123456789",shouldMatch:!0},{uri:"https://twitter.com/alice/status/1234567890123456789/",shouldMatch:!0},{uri:"https://domain.org/alice/status/1234567890123456789",shouldMatch:!1}]},{"../enums":354}],352:[function(e,t,i){const A=e("../enums"),r=/^xmpp:([a-zA-Z0-9.\-_]*)@([a-zA-Z0-9.\-_]*)(?:\?(.*))?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"communication",name:"xmpp"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:`${t[1]}@${t[2]}`,uri:e,qr:e},proof:{uri:null,request:{fetcher:A.Fetcher.XMPP,access:A.ProofAccess.SERVER,format:A.ProofFormat.TEXT,data:{id:`${t[1]}@${t[2]}`,field:"note"}}},claim:{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:[]}}},i.tests=[{uri:"xmpp:alice@domain.org",shouldMatch:!0},{uri:"xmpp:alice@domain.org?omemo-sid-123456789=A1B2C3D4E5F6G7H8I9",shouldMatch:!0},{uri:"https://domain.org",shouldMatch:!1}]},{"../enums":354}],353:[function(e,t,i){const A={proxy:{hostname:null,policy:e("./enums").ProxyPolicy.NEVER},claims:{irc:{nick:null},matrix:{instance:null,accessToken:null},xmpp:{service:null,username:null,password:null},twitter:{bearerToken:null},activitypub:{acct:null,privateKey:null}}};i.opts=A},{"./enums":354}],354:[function(e,t,i){const A={ADAPTIVE:"adaptive",ALWAYS:"always",NEVER:"never"};Object.freeze(A);const r={ACTIVITYPUB:"activitypub",DNS:"dns",HTTP:"http",IRC:"irc",MATRIX:"matrix",TELEGRAM:"telegram",TWITTER:"twitter",XMPP:"xmpp"};Object.freeze(r);const n={GENERIC:0,NOCORS:1,GRANTED:2,SERVER:3};Object.freeze(n);const o={JSON:"json",TEXT:"text"};Object.freeze(o);const a={URI:0,FINGERPRINT:1};Object.freeze(a);const s={CONTAINS:0,EQUALS:1,ONEOF:2};Object.freeze(s);const c={INIT:"init",MATCHED:"matched",VERIFIED:"verified"};Object.freeze(c),i.ProxyPolicy=A,i.Fetcher=r,i.ProofAccess=n,i.ProofFormat=o,i.ClaimFormat=a,i.ClaimRelation=s,i.ClaimStatus=c},{}],355:[function(e,t,i){const A=e("axios"),r=e("validator"),n=e("browser-or-node");t.exports.timeout=5e3,t.exports.fn=async(i,o)=>{let a,s;n.isNode&&(a=e("crypto"));const c=new Promise(((e,A)=>{s=setTimeout((()=>A(new Error("Request was timed out"))),i.fetcherTimeout?i.fetcherTimeout:t.exports.timeout)})),I=new Promise(((e,t)=>{(async()=>{let s=!1;try{r.isURL(o.claims.activitypub.url),s=!0}catch(e){}const c=new Date,{host:I,pathname:f,search:h}=new URL(i.url),g={host:I,date:c.toUTCString(),accept:"application/activity+json"};if(s&&n.isNode){const e=`(request-target): get ${f}${h}\nhost: ${I}\ndate: ${c.toUTCString()}`,t=a.createSign("SHA256");t.write(e),t.end();const i=t.sign(o.claims.activitypub.privateKey.replace(/\\n/g,"\n"),"base64");g.signature=`keyId="${o.claims.activitypub.url}#main-key",headers="(request-target) host date",signature="${i}",algorithm="rsa-sha256"`}A.get(i.url,{headers:g}).then((e=>e.data)).then((t=>{e(t)})).catch((e=>{t(e)}))})()}));return Promise.race([I,c]).then((e=>(clearTimeout(s),e)))}},{axios:17,"browser-or-node":49,crypto:106,validator:228}],356:[function(e,t,i){const A=e("browser-or-node");if(t.exports.timeout=5e3,A.isNode){const i=e("dns");t.exports.fn=async(e,A)=>{let r;const n=new Promise(((i,A)=>{r=setTimeout((()=>A(new Error("Request was timed out"))),e.fetcherTimeout?e.fetcherTimeout:t.exports.timeout)})),o=new Promise(((t,A)=>{i.resolveTxt(e.domain,((i,r)=>{i?A(i):t({domain:e.domain,records:{txt:r}})}))}));return Promise.race([o,n]).then((e=>(clearTimeout(r),e)))}}else t.exports.fn=null},{"browser-or-node":49,dns:96}],357:[function(e,t,i){const A=e("axios"),r=e("../enums");t.exports.timeout=5e3,t.exports.fn=async(i,n)=>{let o;const a=new Promise(((e,A)=>{o=setTimeout((()=>A(new Error("Request was timed out"))),i.fetcherTimeout?i.fetcherTimeout:t.exports.timeout)})),s=new Promise(((t,n)=>{if(i.url)switch(i.format){case r.ProofFormat.JSON:A.get(i.url,{headers:{Accept:"application/json","User-Agent":`doipjs/${e("../../package.json").version}`},validateStatus:function(e){return e>=200&&e<400}}).then((e=>{t(e.data)})).catch((e=>{n(e)}));break;case r.ProofFormat.TEXT:A.get(i.url,{validateStatus:function(e){return e>=200&&e<400},responseType:"text"}).then((e=>{t(e.data)})).catch((e=>{n(e)}));break;default:n(new Error("No specified data format"))}else n(new Error("No valid URI provided"))}));return Promise.race([s,a]).then((e=>(clearTimeout(o),e)))}},{"../../package.json":329,"../enums":354,axios:17}],358:[function(e,t,i){i.activitypub=e("./activitypub"),i.dns=e("./dns"),i.http=e("./http"),i.irc=e("./irc"),i.matrix=e("./matrix"),i.telegram=e("./telegram"),i.twitter=e("./twitter"),i.xmpp=e("./xmpp")},{"./activitypub":355,"./dns":356,"./http":357,"./irc":359,"./matrix":360,"./telegram":361,"./twitter":362,"./xmpp":363}],359:[function(e,t,i){const A=e("browser-or-node");if(t.exports.timeout=2e4,A.isNode){const i=e("irc-upd"),A=e("validator");t.exports.fn=async(e,r)=>{let n;const o=new Promise(((i,A)=>{n=setTimeout((()=>A(new Error("Request was timed out"))),e.fetcherTimeout?e.fetcherTimeout:t.exports.timeout)})),a=new Promise(((t,n)=>{try{A.isAscii(r.claims.irc.nick)}catch(e){throw new Error(`IRC fetcher was not set up properly (${e.message})`)}try{const A=new i.Client(e.domain,r.claims.irc.nick,{port:6697,secure:!0,channels:[],showErrors:!1,debug:!1}),n=/[a-zA-Z0-9\-_]+\s+:\s(openpgp4fpr:.*)/,o=/End\sof\s.*\staxonomy./,a=[];A.addListener("registered",(t=>{A.send(`PRIVMSG NickServ TAXONOMY ${e.nick}`)})),A.addListener("notice",((e,i,r,s)=>{if(n.test(r)){const e=r.match(n);a.push(e[1])}o.test(r)&&(A.disconnect(),t(a))}))}catch(e){n(e)}}));return Promise.race([a,o]).then((e=>(clearTimeout(n),e)))}}else t.exports.fn=null},{"browser-or-node":49,"irc-upd":"irc-upd",validator:228}],360:[function(e,t,i){const A=e("axios"),r=e("validator");t.exports.timeout=5e3,t.exports.fn=async(e,i)=>{let n;const o=new Promise(((i,A)=>{n=setTimeout((()=>A(new Error("Request was timed out"))),e.fetcherTimeout?e.fetcherTimeout:t.exports.timeout)})),a=new Promise(((t,n)=>{try{r.isFQDN(i.claims.matrix.instance),r.isAscii(i.claims.matrix.accessToken)}catch(e){throw new Error(`Matrix fetcher was not set up properly (${e.message})`)}const o=`https://${i.claims.matrix.instance}/_matrix/client/r0/rooms/${e.roomId}/event/${e.eventId}?access_token=${i.claims.matrix.accessToken}`;A.get(o,{headers:{Accept:"application/json"}}).then((e=>e.data)).then((e=>{t(e)})).catch((e=>{n(e)}))}));return Promise.race([a,o]).then((e=>(clearTimeout(n),e)))}},{axios:17,validator:228}],361:[function(e,t,i){const A=e("axios"),r=e("validator");t.exports.timeout=5e3,t.exports.fn=async(i,n)=>{let o;const a=new Promise(((e,A)=>{o=setTimeout((()=>A(new Error("Request was timed out"))),i.fetcherTimeout?i.fetcherTimeout:t.exports.timeout)})),s=t=>new Promise(((o,a)=>{try{r.isAscii(n.claims.telegram.token)}catch(e){throw new Error(`Telegram fetcher was not set up properly (${e.message})`)}if(!i.chat||!i.user)return void a(new Error("Both chat name and user name must be provided"));const s=`https://api.telegram.org/bot${n.claims.telegram.token}/${t}?chat_id=@${i.chat}`;A.get(s,{headers:{Accept:"application/json","User-Agent":`doipjs/${e("../../package.json").version}`},validateStatus:e=>200===e}).then((e=>o(e.data))).catch((e=>a(e)))})),c=s("getChatAdministrators").then((e=>{if(!e.ok)throw new Error("Request to get chat administrators failed");return s("getChat").then((t=>{if(!t.ok)throw new Error("Request to get chat info failed");let A;for(const t of e.result)"creator"===t.status&&(A=t.user.username);if(!t.result.description)throw new Error("There is no chat description");if(A!==i.user)throw new Error("User doesn't match");return{user:A,text:t.result.description}}))}));return Promise.race([c,a]).then((e=>(clearTimeout(o),e)))}},{"../../package.json":329,axios:17,validator:228}],362:[function(e,t,i){const A=e("axios"),r=e("validator");t.exports.timeout=5e3,t.exports.fn=async(e,i)=>{let n;const o=new Promise(((i,A)=>{n=setTimeout((()=>A(new Error("Request was timed out"))),e.fetcherTimeout?e.fetcherTimeout:t.exports.timeout)})),a=new Promise(((t,n)=>{try{r.isAscii(i.claims.twitter.bearerToken)}catch(e){throw new Error(`Twitter fetcher was not set up properly (${e.message})`)}A.get(`https://api.twitter.com/1.1/statuses/show.json?id=${e.tweetId}&tweet_mode=extended`,{headers:{Accept:"application/json",Authorization:`Bearer ${i.claims.twitter.bearerToken}`}}).then((e=>e.data)).then((e=>{t(e.full_text)})).catch((e=>{n(e)}))}));return Promise.race([a,o]).then((e=>(clearTimeout(n),e)))}},{axios:17,validator:228}],363:[function(e,t,i){(function(i){(function(){const A=e("browser-or-node");if(t.exports.timeout=5e3,A.isNode){const A=e("jsdom"),{client:r,xml:n}=e("@xmpp/client"),o=e("@xmpp/debug"),a=e("validator");let s=null,c=null;const I=async(e,t,A)=>new Promise(((n,a)=>{const s=r({service:e,username:t,password:A});"production"!==i.env.NODE_ENV&&o(s,!0);const{iqCaller:c}=s;s.start(),s.on("online",(e=>{n({xmpp:s,iqCaller:c})})),s.on("error",(e=>{a(e)}))}));t.exports.fn=async(e,i)=>{try{a.isFQDN(i.claims.xmpp.service),a.isAscii(i.claims.xmpp.username),a.isAscii(i.claims.xmpp.password)}catch(e){throw new Error(`XMPP fetcher was not set up properly (${e.message})`)}if(!s||"online"!==s.status){const e=await I(i.claims.xmpp.service,i.claims.xmpp.username,i.claims.xmpp.password);s=e.xmpp,c=e.iqCaller}const r=(await c.request(n("iq",{type:"get",to:e.id},n("vCard","vcard-temp")),3e4)).getChild("vCard","vcard-temp").toString(),o=new A.JSDOM(r);let f;const h=new Promise(((i,A)=>{f=setTimeout((()=>A(new Error("Request was timed out"))),e.fetcherTimeout?e.fetcherTimeout:t.exports.timeout)})),g=new Promise(((t,i)=>{try{let i;switch(e.field.toLowerCase()){case"desc":case"note":if(i=o.window.document.querySelector("note text"),i||(i=o.window.document.querySelector("note")),i||(i=o.window.document.querySelector("DESC")),!i)throw new Error("No DESC or NOTE field found in vCard");i=i.textContent;break;default:i=o.window.document.querySelector(e).textContent}s.stop(),t(i)}catch(e){i(e)}}));return Promise.race([g,h]).then((e=>(clearTimeout(f),e)))}}else t.exports.fn=null}).call(this)}).call(this,e("_process"))},{"@xmpp/client":"@xmpp/client","@xmpp/debug":"@xmpp/debug",_process:187,"browser-or-node":49,jsdom:"jsdom",validator:228}],364:[function(e,t,i){const A=e("./claim"),r=e("./claimDefinitions"),n=e("./proofs"),o=e("./keys"),a=e("./signatures"),s=e("./enums"),c=e("./defaults"),I=e("./utils"),f=e("./verifications");i.Claim=A,i.claimDefinitions=r,i.proofs=n,i.keys=o,i.signatures=a,i.enums=s,i.defaults=c,i.utils=I,i.verifications=f},{"./claim":330,"./claimDefinitions":339,"./defaults":353,"./enums":354,"./keys":365,"./proofs":366,"./signatures":367,"./utils":368,"./verifications":369}],365:[function(e,t,i){(function(t){(function(){const A=e("axios"),r=e("valid-url"),n="undefined"!=typeof window?window.openpgp:void 0!==t?t.openpgp:null,o=e("@openpgp/hkp-client"),a=e("@openpgp/wkd-client"),s=e("./claim"),c=async(e,t)=>{const i=new o(t?`https://${t}`:"https://keys.openpgp.org"),A={query:e},r=await i.lookup(A).catch((e=>{throw new Error(`Key does not exist or could not be fetched (${e})`)}));if(!r)throw new Error("Key does not exist or could not be fetched");return await n.readKey({armoredKey:r}).catch((e=>{throw new Error(`Key could not be read (${e})`)}))},I=async e=>{const t=new a,i={email:e},A=await t.lookup(i).catch((e=>{throw new Error(`Key does not exist or could not be fetched (${e})`)}));if(!A)throw new Error("Key does not exist or could not be fetched");return await n.readKey({binaryKey:A}).catch((e=>{throw new Error(`Key could not be read (${e})`)}))},f=async(e,t)=>{const i=`https://keybase.io/${e}/pgp_keys.asc?fingerprint=${t}`;let r;try{r=await A.get(i,{responseType:"text"}).then((e=>{if(200===e.status)return e})).then((e=>e.data))}catch(e){throw new Error(`Error fetching Keybase key: ${e.message}`)}return await n.readKey({armoredKey:r}).catch((e=>{throw new Error(`Key does not exist or could not be fetched (${e})`)}))},h=async e=>await n.readKey({armoredKey:e}).catch((e=>{throw new Error(`Key could not be read (${e})`)}));i.fetchHKP=c,i.fetchWKD=I,i.fetchKeybase=f,i.fetchPlaintext=h,i.fetchURI=async e=>{if(!r.isUri(e))throw new Error("Invalid URI");const t=e.match(/([a-zA-Z0-9]*):([a-zA-Z0-9@._=+-]*)(?::([a-zA-Z0-9@._=+-]*))?/);if(!t[1])throw new Error("Invalid URI");switch(t[1]){case"hkp":return await c(t[3]?t[3]:t[2],t[3]?t[2]:null);case"wkd":return await I(t[2]);case"kb":return await f(t[2],t.length>=4?t[3]:null);default:throw new Error("Invalid URI protocol")}},i.fetch=async e=>{const t=e.match(/([a-zA-Z0-9@._=+-]*)(?::([a-zA-Z0-9@._=+-]*))?/);let i=null;if(!i)try{i=await h(e)}catch(e){}if(!i&&e.includes("@"))try{i=await I(t[1])}catch(e){}if(i||(i=await c(t[2]?t[2]:t[1],t[2]?t[1]:null)),!i)throw new Error("Key does not exist or could not be fetched");return i},i.process=async e=>{if(!(e&&e instanceof n.PublicKey))throw new Error("Invalid public key");const t=e.getFingerprint(),i=await e.getPrimaryUser(),A=e.users,r=[];return A.forEach(((e,A)=>{if(r[A]={userData:{id:e.userID?e.userID.userID:null,name:e.userID?e.userID.name:null,email:e.userID?e.userID.email:null,comment:e.userID?e.userID.comment:null,isPrimary:i.index===A,isRevoked:!1},claims:[]},"selfCertifications"in e&&e.selfCertifications.length>0){const i=e.selfCertifications[0],n=i.rawNotations;r[A].claims=n.filter((({name:e,humanReadable:t})=>t&&("proof@ariadne.id"===e||"proof@metacode.biz"===e))).map((({value:e})=>new s((new TextDecoder).decode(e),t))),r[A].userData.isRevoked=i.revoked}})),{fingerprint:t,users:r,primaryUserIndex:i.index,key:{data:e,fetchMethod:null,uri:null}}}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./claim":330,"@openpgp/hkp-client":1,"@openpgp/wkd-client":2,axios:17,"valid-url":227}],366:[function(e,t,i){const A=e("browser-or-node"),r=e("./fetcher"),n=e("./utils"),o=e("./enums"),a=(e,t)=>{switch(t.proxy.policy){case o.ProxyPolicy.ALWAYS:return I(e,t);case o.ProxyPolicy.NEVER:switch(e.proof.request.access){case o.ProofAccess.GENERIC:case o.ProofAccess.GRANTED:return c(e,t);case o.ProofAccess.NOCORS:case o.ProofAccess.SERVER:throw new Error("Impossible to fetch proof (bad combination of service access and proxy policy)");default:throw new Error("Invalid proof access value")}case o.ProxyPolicy.ADAPTIVE:switch(e.proof.request.access){case o.ProofAccess.GENERIC:return f(e,t);case o.ProofAccess.NOCORS:return I(e,t);case o.ProofAccess.GRANTED:return f(e,t);case o.ProofAccess.SERVER:return I(e,t);default:throw new Error("Invalid proof access value")}default:throw new Error("Invalid proxy policy")}},s=(e,t)=>{switch(t.proxy.policy){case o.ProxyPolicy.ALWAYS:return I(e,t);case o.ProxyPolicy.NEVER:return c(e,t);case o.ProxyPolicy.ADAPTIVE:return f(e,t);default:throw new Error("Invalid proxy policy")}},c=(e,t)=>new Promise(((i,A)=>{r[e.proof.request.fetcher].fn(e.proof.request.data,t).then((t=>i({fetcher:e.proof.request.fetcher,data:e,viaProxy:!1,result:t}))).catch((e=>A(e)))})),I=(e,t)=>new Promise(((i,A)=>{let o;try{o=n.generateProxyURL(e.proof.request.fetcher,e.proof.request.data,t)}catch(e){A(e)}const a={url:o,format:e.proof.request.format,fetcherTimeout:r[e.proof.request.fetcher].timeout};r.http.fn(a,t).then((t=>i({fetcher:"http",data:e,viaProxy:!0,result:t}))).catch((e=>A(e)))})),f=(e,t)=>new Promise(((i,A)=>{c(e,t).then((e=>i(e))).catch((r=>{I(e,t).then((e=>i(e))).catch((e=>A(e)))}))}));i.fetch=(e,t)=>{if(e.proof.request.fetcher===o.Fetcher.HTTP)e.proof.request.data.format=e.proof.request.format;return A.isNode?s(e,t):a(e,t)}},{"./enums":354,"./fetcher":358,"./utils":368,"browser-or-node":49}],367:[function(e,t,i){(function(t){(function(){const A="undefined"!=typeof window?window.openpgp:void 0!==t?t.openpgp:null,r=e("./claim"),n=e("./keys");i.process=async e=>{let t;const i={fingerprint:null,users:[{userData:{},claims:[]}],primaryUserIndex:null,key:{data:null,fetchMethod:null,uri:null}};try{t=await A.readCleartextMessage({cleartextMessage:e})}catch(e){throw new Error(`Signature could not be read (${e.message})`)}const o=t.signature.packets[0].issuerKeyID.toHex(),a=t.signature.packets[0].signersUserID,s=t.signature.packets[0].preferredKeyServer||"https://keys.openpgp.org/",c=t.getText(),I=[];if(c.split("\n").forEach(((e,t)=>{const A=e.match(/^([a-zA-Z0-9]*)=(.*)$/i);if(A)switch(A[1].toLowerCase()){case"key":I.push(A[2]);break;case"proof":i.users[0].claims.push(new r(A[2]))}})),I.length>0)try{i.key.uri=I[0],i.key.data=await n.fetchURI(i.key.uri),i.key.fetchMethod=i.key.uri.split(":")[0]}catch(e){}if(!i.key.data&&a)try{i.key.uri=`wkd:${a}`,i.key.data=await n.fetchURI(i.key.uri),i.key.fetchMethod="wkd"}catch(e){}if(!i.key.data)try{const e=s.match(/^(.*:\/\/)?([^/]*)(?:\/)?$/i);i.key.uri=`hkp:${e[2]}:${o||a}`,i.key.data=await n.fetchURI(i.key.uri),i.key.fetchMethod="hkp"}catch(e){throw new Error("Public key not found")}const f=await A.verify({message:t,verificationKeys:i.key.data}),{verified:h}=f.signatures[0];try{await h}catch(e){throw new Error(`Signature could not be verified (${e.message})`)}i.fingerprint=i.key.data.keyPacket.getFingerprint(),i.users[0].claims.forEach((e=>{e.fingerprint=i.fingerprint}));const g=await i.key.data.getPrimaryUser();let u;return a&&i.key.data.users.forEach((e=>{e.userID.email===a&&(u=e)})),u||(u=g.user),i.users[0].userData={id:u.userID?u.userID.userID:null,name:u.userID?u.userID.name:null,email:u.userID?u.userID.email:null,comment:u.userID?u.userID.comment:null,isPrimary:g.user.userID.userID===u.userID.userID},i.primaryUserIndex=i.users[0].userData.isPrimary?0:null,i}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./claim":330,"./keys":365}],368:[function(e,t,i){const A=e("validator"),r=e("./enums");i.generateProxyURL=(e,t,i)=>{try{A.isFQDN(i.proxy.hostname)}catch(e){throw new Error("Invalid proxy hostname")}const r=[];return Object.keys(t).forEach((e=>{r.push(`${e}=${encodeURIComponent(t[e])}`)})),`https://${i.proxy.hostname}/api/2/get/${e}?${r.join("&")}`},i.generateClaim=(e,t)=>{switch(t){case r.ClaimFormat.URI:return`openpgp4fpr:${e}`;case r.ClaimFormat.FINGERPRINT:return e;default:throw new Error("No valid claim format")}},i.getUriFromString=e=>{const t=e.match(/((([A-Za-z0-9]+:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www\.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w\-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[.!/\\\w]*))?)/gi),i=[];return t?(t.forEach((e=>{let t=!0;for(;t;){const i=e.charAt(e.length-1);-1!=="?!.".indexOf(i)?e=e.substring(0,e.length-1):t=!1}i.push(e)})),i):[]}},{"./enums":354,validator:228}],369:[function(e,t,i){const A=e("./utils"),r=e("./enums"),{bcryptVerify:n,argon2Verify:o}=e("hash-wasm"),a=async(e,t,i)=>{const a=A.generateClaim(t,i),s=A.generateClaim(t,r.ClaimFormat.URI);let c=!1;if(c=-1!==e.replace(/\r?\n|\r/g,"").toLowerCase().indexOf(a.toLowerCase()),!c){const t=/\$(argon2(?:id|d|i)|2a|2b|2y)(?:\$[a-zA-Z0-9=+\-,./]+)+/g;let i;for(;!c&&null!=(i=t.exec(e));){let e;const t=new Promise(((t,i)=>{e=setTimeout((()=>{t(!1)}),1e3)}));switch(i[1]){case"2a":case"2b":case"2y":try{if(parseInt(i[0].split("$")[2])>12)continue;const A=n({password:s,hash:i[0]}).then((e=>e)).catch((e=>!1));c=await Promise.race([A,t]).then((t=>(clearTimeout(e),t)))}catch(e){c=!1}break;case"argon2":case"argon2i":case"argon2d":case"argon2id":try{const A=o({password:s,hash:i[0]}).then((e=>e)).catch((e=>!1));c=await Promise.race([A,t]).then((t=>(clearTimeout(e),t)))}catch(e){c=!1}break;default:continue}}}if(!c){const t=A.getUriFromString(e);for(let e=0;e!1));r&&(200===r.status&&r.headers.get("ariadne-identity-proof")&&(c=-1!==r.headers.get("ariadne-identity-proof").toLowerCase().indexOf(s.toLowerCase())))}}return c},s=async(e,t,i,A,n)=>{if(!e)return!1;if(Array.isArray(e)){let r=!1;for(let o=0;o{const A={result:!1,completed:!1,errors:[]},n=Array.isArray(t.claim)?t.claim:[t.claim];switch(t.proof.request.format){case r.ProofFormat.JSON:for(let t=0;t=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var A=n(e);return t&&0!==t.length?"string"==typeof i?A.fill(t,i):A.fill(t):A.fill(0),A}),!o.kStringMaxLength)try{o.kStringMaxLength=i.binding("buffer").kStringMaxLength}catch(e){}o.constants||(o.constants={MAX_LENGTH:o.kMaxLength},o.kStringMaxLength&&(o.constants.MAX_STRING_LENGTH=o.kStringMaxLength)),t.exports=o}).call(this)}).call(this,e("_process"))},{_process:187,buffer:99}],200:[function(e,t,i){var A=e("safe-buffer").Buffer;function r(e,t){this._block=A.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}r.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=A.from(e,t));for(var i=this._block,r=this._blockSize,n=e.length,o=this._len,a=0;a=this._finalSize&&(this._update(this._block),this._block.fill(0));var i=8*this._len;if(i<=4294967295)this._block.writeUInt32BE(i,this._blockSize-4);else{var A=(4294967295&i)>>>0,r=(i-A)/4294967296;this._block.writeUInt32BE(r,this._blockSize-8),this._block.writeUInt32BE(A,this._blockSize-4)}this._update(this._block);var n=this._hash();return e?n.toString(e):n},r.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=r},{"safe-buffer":198}],201:[function(e,t,i){(i=t.exports=function(e){e=e.toLowerCase();var t=i[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t}).sha=e("./sha"),i.sha1=e("./sha1"),i.sha224=e("./sha224"),i.sha256=e("./sha256"),i.sha384=e("./sha384"),i.sha512=e("./sha512")},{"./sha":202,"./sha1":203,"./sha224":204,"./sha256":205,"./sha384":206,"./sha512":207}],202:[function(e,t,i){var A=e("inherits"),r=e("./hash"),n=e("safe-buffer").Buffer,o=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function s(){this.init(),this._w=a,r.call(this,64,56)}function c(e){return e<<30|e>>>2}function I(e,t,i,A){return 0===e?t&i|~t&A:2===e?t&i|t&A|i&A:t^i^A}A(s,r),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(e){for(var t,i=this._w,A=0|this._a,r=0|this._b,n=0|this._c,a=0|this._d,s=0|this._e,f=0;f<16;++f)i[f]=e.readInt32BE(4*f);for(;f<80;++f)i[f]=i[f-3]^i[f-8]^i[f-14]^i[f-16];for(var h=0;h<80;++h){var g=~~(h/20),u=0|((t=A)<<5|t>>>27)+I(g,r,n,a)+s+i[h]+o[g];s=a,a=n,n=c(r),r=A,A=u}this._a=A+this._a|0,this._b=r+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0},s.prototype._hash=function(){var e=n.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=s},{"./hash":200,inherits:169,"safe-buffer":198}],203:[function(e,t,i){var A=e("inherits"),r=e("./hash"),n=e("safe-buffer").Buffer,o=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function s(){this.init(),this._w=a,r.call(this,64,56)}function c(e){return e<<5|e>>>27}function I(e){return e<<30|e>>>2}function f(e,t,i,A){return 0===e?t&i|~t&A:2===e?t&i|t&A|i&A:t^i^A}A(s,r),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(e){for(var t,i=this._w,A=0|this._a,r=0|this._b,n=0|this._c,a=0|this._d,s=0|this._e,h=0;h<16;++h)i[h]=e.readInt32BE(4*h);for(;h<80;++h)i[h]=(t=i[h-3]^i[h-8]^i[h-14]^i[h-16])<<1|t>>>31;for(var g=0;g<80;++g){var u=~~(g/20),d=c(A)+f(u,r,n,a)+s+i[g]+o[u]|0;s=a,a=n,n=I(r),r=A,A=d}this._a=A+this._a|0,this._b=r+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0},s.prototype._hash=function(){var e=n.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=s},{"./hash":200,inherits:169,"safe-buffer":198}],204:[function(e,t,i){var A=e("inherits"),r=e("./sha256"),n=e("./hash"),o=e("safe-buffer").Buffer,a=new Array(64);function s(){this.init(),this._w=a,n.call(this,64,56)}A(s,r),s.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},s.prototype._hash=function(){var e=o.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},t.exports=s},{"./hash":200,"./sha256":205,inherits:169,"safe-buffer":198}],205:[function(e,t,i){var A=e("inherits"),r=e("./hash"),n=e("safe-buffer").Buffer,o=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],a=new Array(64);function s(){this.init(),this._w=a,r.call(this,64,56)}function c(e,t,i){return i^e&(t^i)}function I(e,t,i){return e&t|i&(e|t)}function f(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function h(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function g(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}A(s,r),s.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},s.prototype._update=function(e){for(var t,i=this._w,A=0|this._a,r=0|this._b,n=0|this._c,a=0|this._d,s=0|this._e,u=0|this._f,d=0|this._g,l=0|this._h,B=0;B<16;++B)i[B]=e.readInt32BE(4*B);for(;B<64;++B)i[B]=0|(((t=i[B-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+i[B-7]+g(i[B-15])+i[B-16];for(var p=0;p<64;++p){var C=l+h(s)+c(s,u,d)+o[p]+i[p]|0,Q=f(A)+I(A,r,n)|0;l=d,d=u,u=s,s=a+C|0,a=n,n=r,r=A,A=C+Q|0}this._a=A+this._a|0,this._b=r+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0,this._f=u+this._f|0,this._g=d+this._g|0,this._h=l+this._h|0},s.prototype._hash=function(){var e=n.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},t.exports=s},{"./hash":200,inherits:169,"safe-buffer":198}],206:[function(e,t,i){var A=e("inherits"),r=e("./sha512"),n=e("./hash"),o=e("safe-buffer").Buffer,a=new Array(160);function s(){this.init(),this._w=a,n.call(this,128,112)}A(s,r),s.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},s.prototype._hash=function(){var e=o.allocUnsafe(48);function t(t,i,A){e.writeInt32BE(t,A),e.writeInt32BE(i,A+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},t.exports=s},{"./hash":200,"./sha512":207,inherits:169,"safe-buffer":198}],207:[function(e,t,i){var A=e("inherits"),r=e("./hash"),n=e("safe-buffer").Buffer,o=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],a=new Array(160);function s(){this.init(),this._w=a,r.call(this,128,112)}function c(e,t,i){return i^e&(t^i)}function I(e,t,i){return e&t|i&(e|t)}function f(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function h(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function g(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function u(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function d(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function l(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function B(e,t){return e>>>0>>0?1:0}A(s,r),s.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},s.prototype._update=function(e){for(var t=this._w,i=0|this._ah,A=0|this._bh,r=0|this._ch,n=0|this._dh,a=0|this._eh,s=0|this._fh,p=0|this._gh,C=0|this._hh,Q=0|this._al,E=0|this._bl,y=0|this._cl,m=0|this._dl,b=0|this._el,w=0|this._fl,v=0|this._gl,D=0|this._hl,S=0;S<32;S+=2)t[S]=e.readInt32BE(4*S),t[S+1]=e.readInt32BE(4*S+4);for(;S<160;S+=2){var F=t[S-30],k=t[S-30+1],M=g(F,k),N=u(k,F),U=d(F=t[S-4],k=t[S-4+1]),G=l(k,F),H=t[S-14],_=t[S-14+1],R=t[S-32],K=t[S-32+1],q=N+_|0,x=M+H+B(q,N)|0;x=(x=x+U+B(q=q+G|0,G)|0)+R+B(q=q+K|0,K)|0,t[S]=x,t[S+1]=q}for(var J=0;J<160;J+=2){x=t[J],q=t[J+1];var Y=I(i,A,r),O=I(Q,E,y),L=f(i,Q),P=f(Q,i),z=h(a,b),Z=h(b,a),T=o[J],X=o[J+1],V=c(a,s,p),j=c(b,w,v),W=D+Z|0,$=C+z+B(W,D)|0;$=($=($=$+V+B(W=W+j|0,j)|0)+T+B(W=W+X|0,X)|0)+x+B(W=W+q|0,q)|0;var ee=P+O|0,te=L+Y+B(ee,P)|0;C=p,D=v,p=s,v=w,s=a,w=b,a=n+$+B(b=m+W|0,m)|0,n=r,m=y,r=A,y=E,A=i,E=Q,i=$+te+B(Q=W+ee|0,W)|0}this._al=this._al+Q|0,this._bl=this._bl+E|0,this._cl=this._cl+y|0,this._dl=this._dl+m|0,this._el=this._el+b|0,this._fl=this._fl+w|0,this._gl=this._gl+v|0,this._hl=this._hl+D|0,this._ah=this._ah+i+B(this._al,Q)|0,this._bh=this._bh+A+B(this._bl,E)|0,this._ch=this._ch+r+B(this._cl,y)|0,this._dh=this._dh+n+B(this._dl,m)|0,this._eh=this._eh+a+B(this._el,b)|0,this._fh=this._fh+s+B(this._fl,w)|0,this._gh=this._gh+p+B(this._gl,v)|0,this._hh=this._hh+C+B(this._hl,D)|0},s.prototype._hash=function(){var e=n.allocUnsafe(64);function t(t,i,A){e.writeInt32BE(t,A),e.writeInt32BE(i,A+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},t.exports=s},{"./hash":200,inherits:169,"safe-buffer":198}],208:[function(e,t,i){"use strict";t.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const i=e.indexOf(t);return-1===i?[e]:[e.slice(0,i),e.slice(i+t.length)]}},{}],209:[function(e,t,i){t.exports=r;var A=e("events").EventEmitter;function r(){A.call(this)}e("inherits")(r,A),r.Readable=e("readable-stream/lib/_stream_readable.js"),r.Writable=e("readable-stream/lib/_stream_writable.js"),r.Duplex=e("readable-stream/lib/_stream_duplex.js"),r.Transform=e("readable-stream/lib/_stream_transform.js"),r.PassThrough=e("readable-stream/lib/_stream_passthrough.js"),r.finished=e("readable-stream/lib/internal/streams/end-of-stream.js"),r.pipeline=e("readable-stream/lib/internal/streams/pipeline.js"),r.Stream=r,r.prototype.pipe=function(e,t){var i=this;function r(t){e.writable&&!1===e.write(t)&&i.pause&&i.pause()}function n(){i.readable&&i.resume&&i.resume()}i.on("data",r),e.on("drain",n),e._isStdio||t&&!1===t.end||(i.on("end",a),i.on("close",s));var o=!1;function a(){o||(o=!0,e.end())}function s(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(I(),0===A.listenerCount(this,"error"))throw e}function I(){i.removeListener("data",r),e.removeListener("drain",n),i.removeListener("end",a),i.removeListener("close",s),i.removeListener("error",c),e.removeListener("error",c),i.removeListener("end",I),i.removeListener("close",I),e.removeListener("close",I)}return i.on("error",c),e.on("error",c),i.on("end",I),i.on("close",I),e.on("close",I),e.emit("pipe",i),e}},{events:134,inherits:169,"readable-stream/lib/_stream_duplex.js":211,"readable-stream/lib/_stream_passthrough.js":212,"readable-stream/lib/_stream_readable.js":213,"readable-stream/lib/_stream_transform.js":214,"readable-stream/lib/_stream_writable.js":215,"readable-stream/lib/internal/streams/end-of-stream.js":219,"readable-stream/lib/internal/streams/pipeline.js":221}],210:[function(e,t,i){arguments[4][80][0].apply(i,arguments)},{dup:80}],211:[function(e,t,i){arguments[4][81][0].apply(i,arguments)},{"./_stream_readable":213,"./_stream_writable":215,_process:187,dup:81,inherits:169}],212:[function(e,t,i){arguments[4][82][0].apply(i,arguments)},{"./_stream_transform":214,dup:82,inherits:169}],213:[function(e,t,i){arguments[4][83][0].apply(i,arguments)},{"../errors":210,"./_stream_duplex":211,"./internal/streams/async_iterator":216,"./internal/streams/buffer_list":217,"./internal/streams/destroy":218,"./internal/streams/from":220,"./internal/streams/state":222,"./internal/streams/stream":223,_process:187,buffer:99,dup:83,events:134,inherits:169,"string_decoder/":224,util:50}],214:[function(e,t,i){arguments[4][84][0].apply(i,arguments)},{"../errors":210,"./_stream_duplex":211,dup:84,inherits:169}],215:[function(e,t,i){arguments[4][85][0].apply(i,arguments)},{"../errors":210,"./_stream_duplex":211,"./internal/streams/destroy":218,"./internal/streams/state":222,"./internal/streams/stream":223,_process:187,buffer:99,dup:85,inherits:169,"util-deprecate":226}],216:[function(e,t,i){arguments[4][86][0].apply(i,arguments)},{"./end-of-stream":219,_process:187,dup:86}],217:[function(e,t,i){arguments[4][87][0].apply(i,arguments)},{buffer:99,dup:87,util:50}],218:[function(e,t,i){arguments[4][88][0].apply(i,arguments)},{_process:187,dup:88}],219:[function(e,t,i){arguments[4][89][0].apply(i,arguments)},{"../../../errors":210,dup:89}],220:[function(e,t,i){arguments[4][90][0].apply(i,arguments)},{dup:90}],221:[function(e,t,i){arguments[4][91][0].apply(i,arguments)},{"../../../errors":210,"./end-of-stream":219,dup:91}],222:[function(e,t,i){arguments[4][92][0].apply(i,arguments)},{"../../../errors":210,dup:92}],223:[function(e,t,i){arguments[4][93][0].apply(i,arguments)},{dup:93,events:134}],224:[function(e,t,i){arguments[4][95][0].apply(i,arguments)},{dup:95,"safe-buffer":198}],225:[function(e,t,i){"use strict";t.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},{}],226:[function(e,t,i){(function(e){(function(){function i(t){try{if(!e.localStorage)return!1}catch(e){return!1}var i=e.localStorage[t];return null!=i&&"true"===String(i).toLowerCase()}t.exports=function(e,t){if(i("noDeprecation"))return e;var A=!1;return function(){if(!A){if(i("throwDeprecation"))throw new Error(t);i("traceDeprecation")?console.trace(t):console.warn(t),A=!0}return e.apply(this,arguments)}}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],227:[function(e,t,i){!function(e){"use strict";e.exports.is_uri=i,e.exports.is_http_uri=A,e.exports.is_https_uri=r,e.exports.is_web_uri=n,e.exports.isUri=i,e.exports.isHttpUri=A,e.exports.isHttpsUri=r,e.exports.isWebUri=n;var t=function(e){return e.match(/(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/)};function i(e){if(e&&!/[^a-z0-9\:\/\?\#\[\]\@\!\$\&\'\(\)\*\+\,\;\=\.\-\_\~\%]/i.test(e)&&!/%[^0-9a-f]/i.test(e)&&!/%[0-9a-f](:?[^0-9a-f]|$)/i.test(e)){var i,A,r,n,o,a="",s="";if(a=(i=t(e))[1],A=i[2],r=i[3],n=i[4],o=i[5],a&&a.length&&r.length>=0){if(A&&A.length){if(0!==r.length&&!/^\//.test(r))return}else if(/^\/\//.test(r))return;if(/^[a-z][a-z0-9\+\-\.]*$/.test(a.toLowerCase()))return s+=a+":",A&&A.length&&(s+="//"+A),s+=r,n&&n.length&&(s+="?"+n),o&&o.length&&(s+="#"+o),s}}}function A(e,A){if(i(e)){var r,n,o,a,s="",c="",I="",f="";if(s=(r=t(e))[1],c=r[2],n=r[3],o=r[4],a=r[5],s){if(A){if("https"!=s.toLowerCase())return}else if("http"!=s.toLowerCase())return;if(c)return/:(\d+)$/.test(c)&&(I=c.match(/:(\d+)$/)[0],c=c.replace(/:\d+$/,"")),f+=s+":",f+="//"+c,I&&(f+=I),f+=n,o&&o.length&&(f+="?"+o),a&&a.length&&(f+="#"+a),f}}}function r(e){return A(e,!0)}function n(e){return A(e)||r(e)}}(t)},{}],228:[function(e,t,i){"use strict";function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var r=Pe(e("./lib/toDate")),n=Pe(e("./lib/toFloat")),o=Pe(e("./lib/toInt")),a=Pe(e("./lib/toBoolean")),s=Pe(e("./lib/equals")),c=Pe(e("./lib/contains")),I=Pe(e("./lib/matches")),f=Pe(e("./lib/isEmail")),h=Pe(e("./lib/isURL")),g=Pe(e("./lib/isMACAddress")),u=Pe(e("./lib/isIP")),d=Pe(e("./lib/isIPRange")),l=Pe(e("./lib/isFQDN")),B=Pe(e("./lib/isDate")),p=Pe(e("./lib/isBoolean")),C=Pe(e("./lib/isLocale")),Q=Le(e("./lib/isAlpha")),E=Le(e("./lib/isAlphanumeric")),y=Pe(e("./lib/isNumeric")),m=Pe(e("./lib/isPassportNumber")),b=Pe(e("./lib/isPort")),w=Pe(e("./lib/isLowercase")),v=Pe(e("./lib/isUppercase")),D=Pe(e("./lib/isIMEI")),S=Pe(e("./lib/isAscii")),F=Pe(e("./lib/isFullWidth")),k=Pe(e("./lib/isHalfWidth")),M=Pe(e("./lib/isVariableWidth")),N=Pe(e("./lib/isMultibyte")),U=Pe(e("./lib/isSemVer")),G=Pe(e("./lib/isSurrogatePair")),H=Pe(e("./lib/isInt")),_=Le(e("./lib/isFloat")),R=Pe(e("./lib/isDecimal")),K=Pe(e("./lib/isHexadecimal")),q=Pe(e("./lib/isOctal")),x=Pe(e("./lib/isDivisibleBy")),J=Pe(e("./lib/isHexColor")),Y=Pe(e("./lib/isRgbColor")),O=Pe(e("./lib/isHSL")),L=Pe(e("./lib/isISRC")),P=Le(e("./lib/isIBAN")),z=Pe(e("./lib/isBIC")),Z=Pe(e("./lib/isMD5")),T=Pe(e("./lib/isHash")),X=Pe(e("./lib/isJWT")),V=Pe(e("./lib/isJSON")),j=Pe(e("./lib/isEmpty")),W=Pe(e("./lib/isLength")),$=Pe(e("./lib/isByteLength")),ee=Pe(e("./lib/isUUID")),te=Pe(e("./lib/isMongoId")),ie=Pe(e("./lib/isAfter")),Ae=Pe(e("./lib/isBefore")),re=Pe(e("./lib/isIn")),ne=Pe(e("./lib/isCreditCard")),oe=Pe(e("./lib/isIdentityCard")),ae=Pe(e("./lib/isEAN")),se=Pe(e("./lib/isISIN")),ce=Pe(e("./lib/isISBN")),Ie=Pe(e("./lib/isISSN")),fe=Pe(e("./lib/isTaxID")),he=Le(e("./lib/isMobilePhone")),ge=Pe(e("./lib/isEthereumAddress")),ue=Pe(e("./lib/isCurrency")),de=Pe(e("./lib/isBtcAddress")),le=Pe(e("./lib/isISO8601")),Be=Pe(e("./lib/isRFC3339")),pe=Pe(e("./lib/isISO31661Alpha2")),Ce=Pe(e("./lib/isISO31661Alpha3")),Qe=Pe(e("./lib/isISO4217")),Ee=Pe(e("./lib/isBase32")),ye=Pe(e("./lib/isBase58")),me=Pe(e("./lib/isBase64")),be=Pe(e("./lib/isDataURI")),we=Pe(e("./lib/isMagnetURI")),ve=Pe(e("./lib/isMimeType")),De=Pe(e("./lib/isLatLong")),Se=Le(e("./lib/isPostalCode")),Fe=Pe(e("./lib/ltrim")),ke=Pe(e("./lib/rtrim")),Me=Pe(e("./lib/trim")),Ne=Pe(e("./lib/escape")),Ue=Pe(e("./lib/unescape")),Ge=Pe(e("./lib/stripLow")),He=Pe(e("./lib/whitelist")),_e=Pe(e("./lib/blacklist")),Re=Pe(e("./lib/isWhitelisted")),Ke=Pe(e("./lib/normalizeEmail")),qe=Pe(e("./lib/isSlug")),xe=Pe(e("./lib/isLicensePlate")),Je=Pe(e("./lib/isStrongPassword")),Ye=Pe(e("./lib/isVAT"));function Oe(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return Oe=function(){return e},e}function Le(e){if(e&&e.__esModule)return e;if(null===e||"object"!==A(e)&&"function"!=typeof e)return{default:e};var t=Oe();if(t&&t.has(e))return t.get(e);var i={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=r?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(i,n,o):i[n]=e[n]}return i.default=e,t&&t.set(e,i),i}function Pe(e){return e&&e.__esModule?e:{default:e}}var ze={version:"13.7.0",toDate:r.default,toFloat:n.default,toInt:o.default,toBoolean:a.default,equals:s.default,contains:c.default,matches:I.default,isEmail:f.default,isURL:h.default,isMACAddress:g.default,isIP:u.default,isIPRange:d.default,isFQDN:l.default,isBoolean:p.default,isIBAN:P.default,isBIC:z.default,isAlpha:Q.default,isAlphaLocales:Q.locales,isAlphanumeric:E.default,isAlphanumericLocales:E.locales,isNumeric:y.default,isPassportNumber:m.default,isPort:b.default,isLowercase:w.default,isUppercase:v.default,isAscii:S.default,isFullWidth:F.default,isHalfWidth:k.default,isVariableWidth:M.default,isMultibyte:N.default,isSemVer:U.default,isSurrogatePair:G.default,isInt:H.default,isIMEI:D.default,isFloat:_.default,isFloatLocales:_.locales,isDecimal:R.default,isHexadecimal:K.default,isOctal:q.default,isDivisibleBy:x.default,isHexColor:J.default,isRgbColor:Y.default,isHSL:O.default,isISRC:L.default,isMD5:Z.default,isHash:T.default,isJWT:X.default,isJSON:V.default,isEmpty:j.default,isLength:W.default,isLocale:C.default,isByteLength:$.default,isUUID:ee.default,isMongoId:te.default,isAfter:ie.default,isBefore:Ae.default,isIn:re.default,isCreditCard:ne.default,isIdentityCard:oe.default,isEAN:ae.default,isISIN:se.default,isISBN:ce.default,isISSN:Ie.default,isMobilePhone:he.default,isMobilePhoneLocales:he.locales,isPostalCode:Se.default,isPostalCodeLocales:Se.locales,isEthereumAddress:ge.default,isCurrency:ue.default,isBtcAddress:de.default,isISO8601:le.default,isRFC3339:Be.default,isISO31661Alpha2:pe.default,isISO31661Alpha3:Ce.default,isISO4217:Qe.default,isBase32:Ee.default,isBase58:ye.default,isBase64:me.default,isDataURI:be.default,isMagnetURI:we.default,isMimeType:ve.default,isLatLong:De.default,ltrim:Fe.default,rtrim:ke.default,trim:Me.default,escape:Ne.default,unescape:Ue.default,stripLow:Ge.default,whitelist:He.default,blacklist:_e.default,isWhitelisted:Re.default,normalizeEmail:Ke.default,toString:toString,isSlug:qe.default,isStrongPassword:Je.default,isTaxID:fe.default,isDate:B.default,isLicensePlate:xe.default,isVAT:Ye.default,ibanLocales:P.locales};i.default=ze,t.exports=i.default,t.exports.default=i.default},{"./lib/blacklist":230,"./lib/contains":231,"./lib/equals":232,"./lib/escape":233,"./lib/isAfter":234,"./lib/isAlpha":235,"./lib/isAlphanumeric":236,"./lib/isAscii":237,"./lib/isBIC":238,"./lib/isBase32":239,"./lib/isBase58":240,"./lib/isBase64":241,"./lib/isBefore":242,"./lib/isBoolean":243,"./lib/isBtcAddress":244,"./lib/isByteLength":245,"./lib/isCreditCard":246,"./lib/isCurrency":247,"./lib/isDataURI":248,"./lib/isDate":249,"./lib/isDecimal":250,"./lib/isDivisibleBy":251,"./lib/isEAN":252,"./lib/isEmail":253,"./lib/isEmpty":254,"./lib/isEthereumAddress":255,"./lib/isFQDN":256,"./lib/isFloat":257,"./lib/isFullWidth":258,"./lib/isHSL":259,"./lib/isHalfWidth":260,"./lib/isHash":261,"./lib/isHexColor":262,"./lib/isHexadecimal":263,"./lib/isIBAN":264,"./lib/isIMEI":265,"./lib/isIP":266,"./lib/isIPRange":267,"./lib/isISBN":268,"./lib/isISIN":269,"./lib/isISO31661Alpha2":270,"./lib/isISO31661Alpha3":271,"./lib/isISO4217":272,"./lib/isISO8601":273,"./lib/isISRC":274,"./lib/isISSN":275,"./lib/isIdentityCard":276,"./lib/isIn":277,"./lib/isInt":278,"./lib/isJSON":279,"./lib/isJWT":280,"./lib/isLatLong":281,"./lib/isLength":282,"./lib/isLicensePlate":283,"./lib/isLocale":284,"./lib/isLowercase":285,"./lib/isMACAddress":286,"./lib/isMD5":287,"./lib/isMagnetURI":288,"./lib/isMimeType":289,"./lib/isMobilePhone":290,"./lib/isMongoId":291,"./lib/isMultibyte":292,"./lib/isNumeric":293,"./lib/isOctal":294,"./lib/isPassportNumber":295,"./lib/isPort":296,"./lib/isPostalCode":297,"./lib/isRFC3339":298,"./lib/isRgbColor":299,"./lib/isSemVer":300,"./lib/isSlug":301,"./lib/isStrongPassword":302,"./lib/isSurrogatePair":303,"./lib/isTaxID":304,"./lib/isURL":305,"./lib/isUUID":306,"./lib/isUppercase":307,"./lib/isVAT":308,"./lib/isVariableWidth":309,"./lib/isWhitelisted":310,"./lib/ltrim":311,"./lib/matches":312,"./lib/normalizeEmail":313,"./lib/rtrim":314,"./lib/stripLow":315,"./lib/toBoolean":316,"./lib/toDate":317,"./lib/toFloat":318,"./lib/toInt":319,"./lib/trim":320,"./lib/unescape":321,"./lib/whitelist":328}],229:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.commaDecimal=i.dotDecimal=i.farsiLocales=i.arabicLocales=i.englishLocales=i.decimal=i.alphanumeric=i.alpha=void 0;var A={"en-US":/^[A-Z]+$/i,"az-AZ":/^[A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[А-Я]+$/i,"cs-CZ":/^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[A-ZÆØÅ]+$/i,"de-DE":/^[A-ZÄÖÜß]+$/i,"el-GR":/^[Α-ώ]+$/i,"es-ES":/^[A-ZÁÉÍÑÓÚÜ]+$/i,"fa-IR":/^[ابپتثجچحخدذرزژسشصضطظعغفقکگلمنوهی]+$/i,"fi-FI":/^[A-ZÅÄÖ]+$/i,"fr-FR":/^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[A-ZÀÉÈÌÎÓÒÙ]+$/i,"nb-NO":/^[A-ZÆØÅ]+$/i,"nl-NL":/^[A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[A-ZÆØÅ]+$/i,"hu-HU":/^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"pl-PL":/^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[А-ЯЁ]+$/i,"sl-SI":/^[A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๐\s]+$/i,"tr-TR":/^[A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[А-ЩЬЮЯЄIЇҐі]+$/i,"vi-VN":/^[A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,"ku-IQ":/^[ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,ar:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[א-ת]+$/,fa:/^['آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی']+$/i,"hi-IN":/^[\u0900-\u0961]+[\u0972-\u097F]*$/i};i.alpha=A;var r={"en-US":/^[0-9A-Z]+$/i,"az-AZ":/^[0-9A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[0-9А-Я]+$/i,"cs-CZ":/^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[0-9A-ZÆØÅ]+$/i,"de-DE":/^[0-9A-ZÄÖÜß]+$/i,"el-GR":/^[0-9Α-ω]+$/i,"es-ES":/^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,"fi-FI":/^[0-9A-ZÅÄÖ]+$/i,"fr-FR":/^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i,"hu-HU":/^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"nb-NO":/^[0-9A-ZÆØÅ]+$/i,"nl-NL":/^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[0-9A-ZÆØÅ]+$/i,"pl-PL":/^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[0-9A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[0-9А-ЯЁ]+$/i,"sl-SI":/^[0-9A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[0-9A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[0-9А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[0-9A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๙\s]+$/i,"tr-TR":/^[0-9A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,"ku-IQ":/^[٠١٢٣٤٥٦٧٨٩0-9ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,"vi-VN":/^[0-9A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,ar:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[0-9א-ת]+$/,fa:/^['0-9آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی۱۲۳۴۵۶۷۸۹۰']+$/i,"hi-IN":/^[\u0900-\u0963]+[\u0966-\u097F]*$/i};i.alphanumeric=r;var n={"en-US":".",ar:"٫"};i.decimal=n;var o=["AU","GB","HK","IN","NZ","ZA","ZM"];i.englishLocales=o;for(var a,s=0;si.minOccurrences;return e.split((0,r.default)(t)).length>i.minOccurrences};var A=o(e("./util/assertString")),r=o(e("./util/toString")),n=o(e("./util/merge"));function o(e){return e&&e.__esModule?e:{default:e}}var a={ignoreCase:!1,minOccurrences:1};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323,"./util/merge":325,"./util/toString":327}],232:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){return(0,r.default)(e),e===t};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],233:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">").replace(/\//g,"/").replace(/\\/g,"\").replace(/`/g,"`")};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],234:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:String(new Date);(0,A.default)(e);var i=(0,r.default)(t),n=(0,r.default)(e);return!!(n&&i&&n>i)};var A=n(e("./util/assertString")),r=n(e("./toDate"));function n(e){return e&&e.__esModule?e:{default:e}}t.exports=i.default,t.exports.default=i.default},{"./toDate":317,"./util/assertString":323}],235:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,r.default)(e);var A=e,o=i.ignore;if(o)if(o instanceof RegExp)A=A.replace(o,"");else{if("string"!=typeof o)throw new Error("ignore should be instance of a String or RegExp");A=A.replace(new RegExp("[".concat(o.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(t in n.alpha)return n.alpha[t].test(A);throw new Error("Invalid locale '".concat(t,"'"))},i.locales=void 0;var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A},n=e("./alpha");var o=Object.keys(n.alpha);i.locales=o},{"./alpha":229,"./util/assertString":323}],236:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,r.default)(e);var A=e,o=i.ignore;if(o)if(o instanceof RegExp)A=A.replace(o,"");else{if("string"!=typeof o)throw new Error("ignore should be instance of a String or RegExp");A=A.replace(new RegExp("[".concat(o.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(t in n.alphanumeric)return n.alphanumeric[t].test(A);throw new Error("Invalid locale '".concat(t,"'"))},i.locales=void 0;var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A},n=e("./alpha");var o=Object.keys(n.alphanumeric);i.locales=o},{"./alpha":229,"./util/assertString":323}],237:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^[\x00-\x7F]+$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],238:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){if((0,r.default)(e),!n.CountryCodes.has(e.slice(4,6).toUpperCase()))return!1;return o.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A},n=e("./isISO31661Alpha2");var o=/^[A-Za-z]{6}[A-Za-z0-9]{2}([A-Za-z0-9]{3})?$/;t.exports=i.default,t.exports.default=i.default},{"./isISO31661Alpha2":270,"./util/assertString":323}],239:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){if((0,r.default)(e),e.length%8==0&&n.test(e))return!0;return!1};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^[A-Z2-7]+=*$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],240:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){if((0,r.default)(e),n.test(e))return!0;return!1};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^[A-HJ-NP-Za-km-z1-9]*$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],241:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){(0,A.default)(e),t=(0,r.default)(t,s);var i=e.length;if(t.urlSafe)return a.test(e);if(i%4!=0||o.test(e))return!1;var n=e.indexOf("=");return-1===n||n===i-1||n===i-2&&"="===e[i-1]};var A=n(e("./util/assertString")),r=n(e("./util/merge"));function n(e){return e&&e.__esModule?e:{default:e}}var o=/[^A-Z0-9+\/=]/i,a=/^[A-Z0-9_\-]*$/i,s={urlSafe:!1};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323,"./util/merge":325}],242:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:String(new Date);(0,A.default)(e);var i=(0,r.default)(t),n=(0,r.default)(e);return!!(n&&i&&n1&&void 0!==arguments[1]?arguments[1]:n;if((0,r.default)(e),t.loose)return a.includes(e.toLowerCase());return o.includes(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n={loose:!1},o=["true","false","1","0"],a=[].concat(o,["yes","no"]);t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],244:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){if((0,r.default)(e),e.startsWith("bc1"))return n.test(e);return o.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^(bc1)[a-z0-9]{25,39}$/,o=/^(1|3)[A-HJ-NP-Za-km-z1-9]{25,39}$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],245:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){var i,A;(0,r.default)(e),"object"===n(t)?(i=t.min||0,A=t.max):(i=arguments[1],A=arguments[2]);var o=encodeURI(e).split(/%..|./).length-1;return o>=i&&(void 0===A||o<=A)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],246:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){(0,r.default)(e);var t=e.replace(/[- ]+/g,"");if(!n.test(t))return!1;for(var i,A,o,a=0,s=t.length-1;s>=0;s--)i=t.substring(s,s+1),A=parseInt(i,10),a+=o&&(A*=2)>=10?A%10+1:A,o=!o;return!(a%10!=0||!t)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^(?:4[0-9]{12}(?:[0-9]{3,6})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12,15}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11}|6[27][0-9]{14}|^(81[0-9]{14,17}))$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],247:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){return(0,r.default)(e),function(e){var t="\\d{".concat(e.digits_after_decimal[0],"}");e.digits_after_decimal.forEach((function(e,i){0!==i&&(t="".concat(t,"|\\d{").concat(e,"}"))}));var i="(".concat(e.symbol.replace(/\W/,(function(e){return"\\".concat(e)})),")").concat(e.require_symbol?"":"?"),A="-?",r="[1-9]\\d{0,2}(\\".concat(e.thousands_separator,"\\d{3})*"),n="(".concat(["0","[1-9]\\d*",r].join("|"),")?"),o="(\\".concat(e.decimal_separator,"(").concat(t,"))").concat(e.require_decimal?"":"?"),a=n+(e.allow_decimal||e.require_decimal?o:"");e.allow_negatives&&!e.parens_for_negatives&&(e.negative_sign_after_digits?a+=A:e.negative_sign_before_digits&&(a=A+a));e.allow_negative_sign_placeholder?a="( (?!\\-))?".concat(a):e.allow_space_after_symbol?a=" ?".concat(a):e.allow_space_after_digits&&(a+="( (?!$))?");e.symbol_after_digits?a+=i:a=i+a;e.allow_negatives&&(e.parens_for_negatives?a="(\\(".concat(a,"\\)|").concat(a,")"):e.negative_sign_before_digits||e.negative_sign_after_digits||(a=A+a));return new RegExp("^(?!-? )(?=.*\\d)".concat(a,"$"))}(t=(0,A.default)(t,o)).test(e)};var A=n(e("./util/merge")),r=n(e("./util/assertString"));function n(e){return e&&e.__esModule?e:{default:e}}var o={symbol:"$",require_symbol:!1,allow_space_after_symbol:!1,symbol_after_digits:!1,allow_negatives:!0,parens_for_negatives:!1,negative_sign_before_digits:!1,negative_sign_after_digits:!1,allow_negative_sign_placeholder:!1,thousands_separator:",",decimal_separator:".",allow_decimal:!0,require_decimal:!1,digits_after_decimal:[2],allow_space_after_digits:!1};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323,"./util/merge":325}],248:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){(0,r.default)(e);var t=e.split(",");if(t.length<2)return!1;var i=t.shift().trim().split(";"),A=i.shift();if("data:"!==A.substr(0,5))return!1;var s=A.substr(5);if(""!==s&&!n.test(s))return!1;for(var c=0;c=e.length?{done:!0}:{done:!1,value:e[A++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){i=e[Symbol.iterator]()},n:function(){var e=i.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==i.return||i.return()}finally{if(s)throw o}}}}(s);try{for(I.s();!(i=I.n()).done;){var f=(u=i.value,d=2,function(e){if(Array.isArray(e))return e}(u)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var i=[],A=!0,r=!1,n=void 0;try{for(var o,a=e[Symbol.iterator]();!(A=(o=a.next()).done)&&(i.push(o.value),!t||i.length!==t);A=!0);}catch(e){r=!0,n=e}finally{try{A||null==a.return||a.return()}finally{if(r)throw n}}return i}(u,d)||n(u,d)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),h=f[0],g=f[1];if(h.length!==g.length)return!1;c[g.charAt(0)]=h}}catch(e){I.e(e)}finally{I.f()}return new Date("".concat(c.m,"/").concat(c.d,"/").concat(c.y)).getDate()===+c.d}var u,d;var l;if(!t.strictMode)return"[object Date]"===Object.prototype.toString.call(e)&&isFinite(e);return!1};var A,r=(A=e("./util/merge"))&&A.__esModule?A:{default:A};function n(e,t){if(e){if("string"==typeof e)return o(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,A=new Array(t);i$)/g,""),s.endsWith(" ")&&(s=s.substr(0,s.length-1)),!function(e){var t=e.replace(/^"(.+)"$/,"$1");if(!t.trim())return!1;if(/[\.";<>]/.test(t)){if(t===e)return!1;if(!(t.split('"').length===t.split('\\"').length))return!1}return!0}(s))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>254)return!1;var l=e.split("@"),B=l.pop(),p=B.toLowerCase();if(t.host_blacklist.includes(p))return!1;var C=l.join("@");if(t.domain_specific_validation&&("gmail.com"===p||"googlemail.com"===p)){var Q=(C=C.toLowerCase()).split("+")[0];if(!(0,n.default)(Q.replace(/\./g,""),{min:6,max:30}))return!1;for(var E=Q.split("."),y=0;y63)&&(!!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)&&(!/[\uff01-\uff5e]/.test(e)&&(!/^-|-$/.test(e)&&!(!t.allow_underscores&&/_/.test(e)))))}))};var A=n(e("./util/assertString")),r=n(e("./util/merge"));function n(e){return e&&e.__esModule?e:{default:e}}var o={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323,"./util/merge":325}],257:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){(0,r.default)(e),t=t||{};var i=new RegExp("^(?:[-+])?(?:[0-9]+)?(?:\\".concat(t.locale?n.decimal[t.locale]:".","[0-9]*)?(?:[eE][\\+\\-]?(?:[0-9]+))?$"));if(""===e||"."===e||"-"===e||"+"===e)return!1;var A=parseFloat(e.replace(",","."));return i.test(e)&&(!t.hasOwnProperty("min")||A>=t.min)&&(!t.hasOwnProperty("max")||A<=t.max)&&(!t.hasOwnProperty("lt")||At.gt)},i.locales=void 0;var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A},n=e("./alpha");var o=Object.keys(n.decimal);i.locales=o},{"./alpha":229,"./util/assertString":323}],258:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)},i.fullWidth=void 0;var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;i.fullWidth=n},{"./util/assertString":323}],259:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){(0,r.default)(e);var t=e.replace(/\s+/g," ").replace(/\s?(hsla?\(|\)|,)\s?/gi,"$1");if(-1!==t.indexOf(","))return n.test(t);return o.test(t)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(,(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}(,((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?))?\)$/i,o=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(\s(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}\s?(\/\s((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?)\s?)?\)$/i;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],260:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)},i.halfWidth=void 0;var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;i.halfWidth=n},{"./util/assertString":323}],261:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){return(0,r.default)(e),new RegExp("^[a-fA-F0-9]{".concat(n[t],"}$")).test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n={md5:32,md4:32,sha1:40,sha256:64,sha384:96,sha512:128,ripemd128:32,ripemd160:40,tiger128:32,tiger160:40,tiger192:48,crc32:8,crc32b:8};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],262:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],263:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^(0x|0h)?[0-9A-F]+$/i;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],264:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),function(e){var t=e.replace(/[\s\-]+/gi,"").toUpperCase(),i=t.slice(0,2).toUpperCase();return i in n&&n[i].test(t)}(e)&&function(e){var t=e.replace(/[^A-Z0-9]+/gi,"").toUpperCase();return 1===(t.slice(4)+t.slice(0,4)).replace(/[A-Z]/g,(function(e){return e.charCodeAt(0)-55})).match(/\d{1,7}/g).reduce((function(e,t){return Number(e+t)%97}),"")}(e)},i.locales=void 0;var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n={AD:/^(AD[0-9]{2})\d{8}[A-Z0-9]{12}$/,AE:/^(AE[0-9]{2})\d{3}\d{16}$/,AL:/^(AL[0-9]{2})\d{8}[A-Z0-9]{16}$/,AT:/^(AT[0-9]{2})\d{16}$/,AZ:/^(AZ[0-9]{2})[A-Z0-9]{4}\d{20}$/,BA:/^(BA[0-9]{2})\d{16}$/,BE:/^(BE[0-9]{2})\d{12}$/,BG:/^(BG[0-9]{2})[A-Z]{4}\d{6}[A-Z0-9]{8}$/,BH:/^(BH[0-9]{2})[A-Z]{4}[A-Z0-9]{14}$/,BR:/^(BR[0-9]{2})\d{23}[A-Z]{1}[A-Z0-9]{1}$/,BY:/^(BY[0-9]{2})[A-Z0-9]{4}\d{20}$/,CH:/^(CH[0-9]{2})\d{5}[A-Z0-9]{12}$/,CR:/^(CR[0-9]{2})\d{18}$/,CY:/^(CY[0-9]{2})\d{8}[A-Z0-9]{16}$/,CZ:/^(CZ[0-9]{2})\d{20}$/,DE:/^(DE[0-9]{2})\d{18}$/,DK:/^(DK[0-9]{2})\d{14}$/,DO:/^(DO[0-9]{2})[A-Z]{4}\d{20}$/,EE:/^(EE[0-9]{2})\d{16}$/,EG:/^(EG[0-9]{2})\d{25}$/,ES:/^(ES[0-9]{2})\d{20}$/,FI:/^(FI[0-9]{2})\d{14}$/,FO:/^(FO[0-9]{2})\d{14}$/,FR:/^(FR[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,GB:/^(GB[0-9]{2})[A-Z]{4}\d{14}$/,GE:/^(GE[0-9]{2})[A-Z0-9]{2}\d{16}$/,GI:/^(GI[0-9]{2})[A-Z]{4}[A-Z0-9]{15}$/,GL:/^(GL[0-9]{2})\d{14}$/,GR:/^(GR[0-9]{2})\d{7}[A-Z0-9]{16}$/,GT:/^(GT[0-9]{2})[A-Z0-9]{4}[A-Z0-9]{20}$/,HR:/^(HR[0-9]{2})\d{17}$/,HU:/^(HU[0-9]{2})\d{24}$/,IE:/^(IE[0-9]{2})[A-Z0-9]{4}\d{14}$/,IL:/^(IL[0-9]{2})\d{19}$/,IQ:/^(IQ[0-9]{2})[A-Z]{4}\d{15}$/,IR:/^(IR[0-9]{2})0\d{2}0\d{18}$/,IS:/^(IS[0-9]{2})\d{22}$/,IT:/^(IT[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,JO:/^(JO[0-9]{2})[A-Z]{4}\d{22}$/,KW:/^(KW[0-9]{2})[A-Z]{4}[A-Z0-9]{22}$/,KZ:/^(KZ[0-9]{2})\d{3}[A-Z0-9]{13}$/,LB:/^(LB[0-9]{2})\d{4}[A-Z0-9]{20}$/,LC:/^(LC[0-9]{2})[A-Z]{4}[A-Z0-9]{24}$/,LI:/^(LI[0-9]{2})\d{5}[A-Z0-9]{12}$/,LT:/^(LT[0-9]{2})\d{16}$/,LU:/^(LU[0-9]{2})\d{3}[A-Z0-9]{13}$/,LV:/^(LV[0-9]{2})[A-Z]{4}[A-Z0-9]{13}$/,MC:/^(MC[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,MD:/^(MD[0-9]{2})[A-Z0-9]{20}$/,ME:/^(ME[0-9]{2})\d{18}$/,MK:/^(MK[0-9]{2})\d{3}[A-Z0-9]{10}\d{2}$/,MR:/^(MR[0-9]{2})\d{23}$/,MT:/^(MT[0-9]{2})[A-Z]{4}\d{5}[A-Z0-9]{18}$/,MU:/^(MU[0-9]{2})[A-Z]{4}\d{19}[A-Z]{3}$/,MZ:/^(MZ[0-9]{2})\d{21}$/,NL:/^(NL[0-9]{2})[A-Z]{4}\d{10}$/,NO:/^(NO[0-9]{2})\d{11}$/,PK:/^(PK[0-9]{2})[A-Z0-9]{4}\d{16}$/,PL:/^(PL[0-9]{2})\d{24}$/,PS:/^(PS[0-9]{2})[A-Z0-9]{4}\d{21}$/,PT:/^(PT[0-9]{2})\d{21}$/,QA:/^(QA[0-9]{2})[A-Z]{4}[A-Z0-9]{21}$/,RO:/^(RO[0-9]{2})[A-Z]{4}[A-Z0-9]{16}$/,RS:/^(RS[0-9]{2})\d{18}$/,SA:/^(SA[0-9]{2})\d{2}[A-Z0-9]{18}$/,SC:/^(SC[0-9]{2})[A-Z]{4}\d{20}[A-Z]{3}$/,SE:/^(SE[0-9]{2})\d{20}$/,SI:/^(SI[0-9]{2})\d{15}$/,SK:/^(SK[0-9]{2})\d{20}$/,SM:/^(SM[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,SV:/^(SV[0-9]{2})[A-Z0-9]{4}\d{20}$/,TL:/^(TL[0-9]{2})\d{19}$/,TN:/^(TN[0-9]{2})\d{20}$/,TR:/^(TR[0-9]{2})\d{5}[A-Z0-9]{17}$/,UA:/^(UA[0-9]{2})\d{6}[A-Z0-9]{19}$/,VA:/^(VA[0-9]{2})\d{18}$/,VG:/^(VG[0-9]{2})[A-Z0-9]{4}\d{16}$/,XK:/^(XK[0-9]{2})\d{16}$/};var o=Object.keys(n);i.locales=o},{"./util/assertString":323}],265:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){(0,r.default)(e);var i=n;(t=t||{}).allow_hyphens&&(i=o);if(!i.test(e))return!1;e=e.replace(/-/g,"");for(var A=0,a=2,s=0;s<14;s++){var c=e.substring(14-s-1,14-s),I=parseInt(c,10)*a;A+=I>=10?I%10+1:I,1===a?a+=1:a-=1}if((10-A%10)%10!==parseInt(e.substring(14,15),10))return!1;return!0};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^[0-9]{15}$/,o=/^\d{2}-\d{6}-\d{6}-\d{1}$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],266:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,r.default)(t),!(i=String(i)))return e(t,4)||e(t,6);if("4"===i){if(!a.test(t))return!1;var A=t.split(".").sort((function(e,t){return e-t}));return A[3]<=255}if("6"===i)return!!c.test(t);return!1};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",o="(".concat(n,"[.]){3}").concat(n),a=new RegExp("^".concat(o,"$")),s="(?:[0-9a-fA-F]{1,4})",c=new RegExp("^("+"(?:".concat(s,":){7}(?:").concat(s,"|:)|")+"(?:".concat(s,":){6}(?:").concat(o,"|:").concat(s,"|:)|")+"(?:".concat(s,":){5}(?::").concat(o,"|(:").concat(s,"){1,2}|:)|")+"(?:".concat(s,":){4}(?:(:").concat(s,"){0,1}:").concat(o,"|(:").concat(s,"){1,3}|:)|")+"(?:".concat(s,":){3}(?:(:").concat(s,"){0,2}:").concat(o,"|(:").concat(s,"){1,4}|:)|")+"(?:".concat(s,":){2}(?:(:").concat(s,"){0,3}:").concat(o,"|(:").concat(s,"){1,5}|:)|")+"(?:".concat(s,":){1}(?:(:").concat(s,"){0,4}:").concat(o,"|(:").concat(s,"){1,6}|:)|")+"(?::((?::".concat(s,"){0,5}:").concat(o,"|(?::").concat(s,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],267:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(0,A.default)(e);var i=e.split("/");if(2!==i.length)return!1;if(!o.test(i[1]))return!1;if(i[1].length>1&&i[1].startsWith("0"))return!1;var n=(0,r.default)(i[0],t);if(!n)return!1;var s=null;switch(String(t)){case"4":s=32;break;case"6":s=a;break;default:s=(0,r.default)(i[0],"6")?a:32}return i[1]<=s&&i[1]>=0};var A=n(e("./util/assertString")),r=n(e("./isIP"));function n(e){return e&&e.__esModule?e:{default:e}}var o=/^\d{1,3}$/,a=128;t.exports=i.default,t.exports.default=i.default},{"./isIP":266,"./util/assertString":323}],268:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,r.default)(t),!(i=String(i)))return e(t,10)||e(t,13);var A,s=t.replace(/[\s-]+/g,""),c=0;if("10"===i){if(!n.test(s))return!1;for(A=0;A<9;A++)c+=(A+1)*s.charAt(A);if("X"===s.charAt(9)?c+=100:c+=10*s.charAt(9),c%11==0)return!!s}else if("13"===i){if(!o.test(s))return!1;for(A=0;A<12;A++)c+=a[A%2]*s.charAt(A);if(s.charAt(12)-(10-c%10)%10==0)return!!s}return!1};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^(?:[0-9]{9}X|[0-9]{10})$/,o=/^(?:[0-9]{13})$/,a=[1,3];t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],269:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){if((0,r.default)(e),!n.test(e))return!1;for(var t=!0,i=0,A=e.length-2;A>=0;A--)if(e[A]>="A"&&e[A]<="Z")for(var o=e[A].charCodeAt(0)-55,a=o%10,s=Math.trunc(o/10),c=0,I=[a,s];c=5?1+2*(f-5):2*f:f,t=!t}else{var h=e[A].charCodeAt(0)-"0".charCodeAt(0);i+=t?h>=5?1+2*(h-5):2*h:h,t=!t}var g=10*Math.trunc((i+9)/10)-i;return+e[e.length-1]===g};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],270:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.has(e.toUpperCase())},i.CountryCodes=void 0;var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=new Set(["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]);var o=n;i.CountryCodes=o},{"./util/assertString":323}],271:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.has(e.toUpperCase())};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=new Set(["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","VAT","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWZ","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","URY","UZB","VUT","VEN","VNM","VGB","VIR","WLF","ESH","YEM","ZMB","ZWE"]);t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],272:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.has(e.toUpperCase())},i.CurrencyCodes=void 0;var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=new Set(["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UYW","UZS","VES","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]);var o=n;i.CurrencyCodes=o},{"./util/assertString":323}],273:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,r.default)(e);var i=t.strictSeparator?o.test(e):n.test(e);return i&&t.strict?a(e):i};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,o=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,a=function(e){var t=e.match(/^(\d{4})-?(\d{3})([ T]{1}\.*|$)/);if(t){var i=Number(t[1]),A=Number(t[2]);return i%4==0&&i%100!=0||i%400==0?A<=366:A<=365}var r=e.match(/(\d{4})-?(\d{0,2})-?(\d*)/).map(Number),n=r[1],o=r[2],a=r[3],s=o?"0".concat(o).slice(-2):o,c=a?"0".concat(a).slice(-2):a,I=new Date("".concat(n,"-").concat(s||"01","-").concat(c||"01"));return!o||!a||I.getUTCFullYear()===n&&I.getUTCMonth()+1===o&&I.getUTCDate()===a};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],274:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^[A-Z]{2}[0-9A-Z]{3}\d{2}\d{5}$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],275:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,r.default)(e);var i=n;if(i=t.require_hyphen?i.replace("?",""):i,!(i=t.case_sensitive?new RegExp(i):new RegExp(i,"i")).test(e))return!1;for(var A=e.replace("-","").toUpperCase(),o=0,a=0;a=2&&t===11-i},IT:function(e){return 9===e.length&&("CA00000AA"!==e&&e.search(/C[A-Z][0-9]{5}[A-Z]{2}/i)>-1)},NO:function(e){var t=e.trim();if(isNaN(Number(t)))return!1;if(11!==t.length)return!1;if("00000000000"===t)return!1;var i=t.split("").map(Number),A=(11-(3*i[0]+7*i[1]+6*i[2]+1*i[3]+8*i[4]+9*i[5]+4*i[6]+5*i[7]+2*i[8])%11)%11,r=(11-(5*i[0]+4*i[1]+3*i[2]+2*i[3]+7*i[4]+6*i[5]+5*i[6]+4*i[7]+3*i[8]+2*A)%11)%11;return A===i[9]&&r===i[10]},TH:function(e){if(!e.match(/^[1-8]\d{12}$/))return!1;for(var t=0,i=0;i<12;i++)t+=parseInt(e[i],10)*(13-i);return e[12]===((11-t%11)%10).toString()},LK:function(e){return!(10!==e.length||!/^[1-9]\d{8}[vx]$/i.test(e))||!(12!==e.length||!/^[1-9]\d{11}$/i.test(e))},"he-IL":function(e){var t=e.trim();if(!/^\d{9}$/.test(t))return!1;for(var i,A=t,r=0,n=0;n9?i-9:i;return r%10==0},"ar-LY":function(e){var t=e.trim();return!!/^(1|2)\d{11}$/.test(t)},"ar-TN":function(e){var t=e.trim();return!!/^\d{8}$/.test(t)},"zh-CN":function(e){var t,i=["11","12","13","14","15","21","22","23","31","32","33","34","35","36","37","41","42","43","44","45","46","50","51","52","53","54","61","62","63","64","65","71","81","82","91"],A=["7","9","10","5","8","4","2","1","6","3","7","9","10","5","8","4","2"],r=["1","0","X","9","8","7","6","5","4","3","2"],n=function(e){return i.includes(e)},o=function(e){var t=parseInt(e.substring(0,4),10),i=parseInt(e.substring(4,6),10),A=parseInt(e.substring(6),10),r=new Date(t,i-1,A);return!(r>new Date)&&(r.getFullYear()===t&&r.getMonth()===i-1&&r.getDate()===A)},a=function(e){return function(e){for(var t=e.substring(0,17),i=0,n=0;n<17;n++)i+=parseInt(t.charAt(n),10)*parseInt(A[n],10);return r[i%11]}(e)===e.charAt(17).toUpperCase()};return!!/^\d{15}|(\d{17}(\d|x|X))$/.test(t=e)&&(15===t.length?function(e){var t=/^[1-9]\d{7}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}$/.test(e);if(!t)return!1;var i=e.substring(0,2);if(!(t=n(i)))return!1;var A="19".concat(e.substring(6,12));return!!(t=o(A))}(t):function(e){var t=/^[1-9]\d{5}[1-9]\d{3}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}(\d|x|X)$/.test(e);if(!t)return!1;var i=e.substring(0,2);if(!(t=n(i)))return!1;var A=e.substring(6,14);return!!(t=o(A))&&a(e)}(t))},"zh-TW":function(e){var t={A:10,B:11,C:12,D:13,E:14,F:15,G:16,H:17,I:34,J:18,K:19,L:20,M:21,N:22,O:35,P:23,Q:24,R:25,S:26,T:27,U:28,V:29,W:32,X:30,Y:31,Z:33},i=e.trim().toUpperCase();return!!/^[A-Z][0-9]{9}$/.test(i)&&Array.from(i).reduce((function(e,i,A){if(0===A){var r=t[i];return r%10*9+Math.floor(r/10)}return 9===A?(10-e%10-Number(i))%10==0:e+Number(i)*(9-A)}),0)}};t.exports=i.default,t.exports.default=i.default},{"./isInt":278,"./util/assertString":323}],277:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){var i;if((0,A.default)(e),"[object Array]"===Object.prototype.toString.call(t)){var n=[];for(i in t)({}).hasOwnProperty.call(t,i)&&(n[i]=(0,r.default)(t[i]));return n.indexOf(e)>=0}if("object"===o(t))return t.hasOwnProperty(e);if(t&&"function"==typeof t.indexOf)return t.indexOf(e)>=0;return!1};var A=n(e("./util/assertString")),r=n(e("./util/toString"));function n(e){return e&&e.__esModule?e:{default:e}}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323,"./util/toString":327}],278:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){(0,r.default)(e);var i=(t=t||{}).hasOwnProperty("allow_leading_zeroes")&&!t.allow_leading_zeroes?n:o,A=!t.hasOwnProperty("min")||e>=t.min,a=!t.hasOwnProperty("max")||e<=t.max,s=!t.hasOwnProperty("lt")||et.gt;return i.test(e)&&A&&a&&s&&c};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,o=/^[-+]?[0-9]+$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],279:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){(0,A.default)(e);try{t=(0,r.default)(t,a);var i=[];t.allow_primitives&&(i=[null,!1,!0]);var n=JSON.parse(e);return i.includes(n)||!!n&&"object"===o(n)}catch(e){}return!1};var A=n(e("./util/assertString")),r=n(e("./util/merge"));function n(e){return e&&e.__esModule?e:{default:e}}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var a={allow_primitives:!1};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323,"./util/merge":325}],280:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){(0,A.default)(e);var t=e.split("."),i=t.length;if(i>3||i<2)return!1;return t.reduce((function(e,t){return e&&(0,r.default)(t,{urlSafe:!0})}),!0)};var A=n(e("./util/assertString")),r=n(e("./isBase64"));function n(e){return e&&e.__esModule?e:{default:e}}t.exports=i.default,t.exports.default=i.default},{"./isBase64":241,"./util/assertString":323}],281:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){if((0,A.default)(e),t=(0,r.default)(t,I),!e.includes(","))return!1;var i=e.split(",");if(i[0].startsWith("(")&&!i[1].endsWith(")")||i[1].endsWith(")")&&!i[0].startsWith("("))return!1;if(t.checkDMS)return s.test(i[0])&&c.test(i[1]);return o.test(i[0])&&a.test(i[1])};var A=n(e("./util/assertString")),r=n(e("./util/merge"));function n(e){return e&&e.__esModule?e:{default:e}}var o=/^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/,a=/^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/,s=/^(([1-8]?\d)\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|90\D+0\D+0)\D+[NSns]?$/i,c=/^\s*([1-7]?\d{1,2}\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|180\D+0\D+0)\D+[EWew]?$/i,I={checkDMS:!1};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323,"./util/merge":325}],282:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){var i,A;(0,r.default)(e),"object"===n(t)?(i=t.min||0,A=t.max):(i=arguments[1]||0,A=arguments[2]);var o=e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],a=e.length-o.length;return a>=i&&(void 0===A||a<=A)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],283:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){if((0,r.default)(e),t in n)return n[t](e);if("any"===t){for(var i in n){if((0,n[i])(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n={"cs-CZ":function(e){return/^(([ABCDEFHKIJKLMNPRSTUVXYZ]|[0-9])-?){5,8}$/.test(e)},"de-DE":function(e){return/^((AW|UL|AK|GA|AÖ|LF|AZ|AM|AS|ZE|AN|AB|A|KG|KH|BA|EW|BZ|HY|KM|BT|HP|B|BC|BI|BO|FN|TT|ÜB|BN|AH|BS|FR|HB|ZZ|BB|BK|BÖ|OC|OK|CW|CE|C|CO|LH|CB|KW|LC|LN|DA|DI|DE|DH|SY|NÖ|DO|DD|DU|DN|D|EI|EA|EE|FI|EM|EL|EN|PF|ED|EF|ER|AU|ZP|E|ES|NT|EU|FL|FO|FT|FF|F|FS|FD|FÜ|GE|G|GI|GF|GS|ZR|GG|GP|GR|NY|ZI|GÖ|GZ|GT|HA|HH|HM|HU|WL|HZ|WR|RN|HK|HD|HN|HS|GK|HE|HF|RZ|HI|HG|HO|HX|IK|IL|IN|J|JL|KL|KA|KS|KF|KE|KI|KT|KO|KN|KR|KC|KU|K|LD|LL|LA|L|OP|LM|LI|LB|LU|LÖ|HL|LG|MD|GN|MZ|MA|ML|MR|MY|AT|DM|MC|NZ|RM|RG|MM|ME|MB|MI|FG|DL|HC|MW|RL|MK|MG|MÜ|WS|MH|M|MS|NU|NB|ND|NM|NK|NW|NR|NI|NF|DZ|EB|OZ|TG|TO|N|OA|GM|OB|CA|EH|FW|OF|OL|OE|OG|BH|LR|OS|AA|GD|OH|KY|NP|WK|PB|PA|PE|PI|PS|P|PM|PR|RA|RV|RE|R|H|SB|WN|RS|RD|RT|BM|NE|GV|RP|SU|GL|RO|GÜ|RH|EG|RW|PN|SK|MQ|RU|SZ|RI|SL|SM|SC|HR|FZ|VS|SW|SN|CR|SE|SI|SO|LP|SG|NH|SP|IZ|ST|BF|TE|HV|OD|SR|S|AC|DW|ZW|TF|TS|TR|TÜ|UM|PZ|TP|UE|UN|UH|MN|KK|VB|V|AE|PL|RC|VG|GW|PW|VR|VK|KB|WA|WT|BE|WM|WE|AP|MO|WW|FB|WZ|WI|WB|JE|WF|WO|W|WÜ|BL|Z|GC)[- ]?[A-Z]{1,2}[- ]?\d{1,4}|(AIC|FDB|ABG|SLN|SAW|KLZ|BUL|ESB|NAB|SUL|WST|ABI|AZE|BTF|KÖT|DKB|FEU|ROT|ALZ|SMÜ|WER|AUR|NOR|DÜW|BRK|HAB|TÖL|WOR|BAD|BAR|BER|BIW|EBS|KEM|MÜB|PEG|BGL|BGD|REI|WIL|BKS|BIR|WAT|BOR|BOH|BOT|BRB|BLK|HHM|NEB|NMB|WSF|LEO|HDL|WMS|WZL|BÜS|CHA|KÖZ|ROD|WÜM|CLP|NEC|COC|ZEL|COE|CUX|DAH|LDS|DEG|DEL|RSL|DLG|DGF|LAN|HEI|MED|DON|KIB|ROK|JÜL|MON|SLE|EBE|EIC|HIG|WBS|BIT|PRÜ|LIB|EMD|WIT|ERH|HÖS|ERZ|ANA|ASZ|MAB|MEK|STL|SZB|FDS|HCH|HOR|WOL|FRG|GRA|WOS|FRI|FFB|GAP|GER|BRL|CLZ|GTH|NOH|HGW|GRZ|LÖB|NOL|WSW|DUD|HMÜ|OHA|KRU|HAL|HAM|HBS|QLB|HVL|NAU|HAS|EBN|GEO|HOH|HDH|ERK|HER|WAN|HEF|ROF|HBN|ALF|HSK|USI|NAI|REH|SAN|KÜN|ÖHR|HOL|WAR|ARN|BRG|GNT|HOG|WOH|KEH|MAI|PAR|RID|ROL|KLE|GEL|KUS|KYF|ART|SDH|LDK|DIL|MAL|VIB|LER|BNA|GHA|GRM|MTL|WUR|LEV|LIF|STE|WEL|LIP|VAI|LUP|HGN|LBZ|LWL|PCH|STB|DAN|MKK|SLÜ|MSP|TBB|MGH|MTK|BIN|MSH|EIL|HET|SGH|BID|MYK|MSE|MST|MÜR|WRN|MEI|GRH|RIE|MZG|MIL|OBB|BED|FLÖ|MOL|FRW|SEE|SRB|AIB|MOS|BCH|ILL|SOB|NMS|NEA|SEF|UFF|NEW|VOH|NDH|TDO|NWM|GDB|GVM|WIS|NOM|EIN|GAN|LAU|HEB|OHV|OSL|SFB|ERB|LOS|BSK|KEL|BSB|MEL|WTL|OAL|FÜS|MOD|OHZ|OPR|BÜR|PAF|PLÖ|CAS|GLA|REG|VIT|ECK|SIM|GOA|EMS|DIZ|GOH|RÜD|SWA|NES|KÖN|MET|LRO|BÜZ|DBR|ROS|TET|HRO|ROW|BRV|HIP|PAN|GRI|SHK|EIS|SRO|SOK|LBS|SCZ|MER|QFT|SLF|SLS|HOM|SLK|ASL|BBG|SBK|SFT|SHG|MGN|MEG|ZIG|SAD|NEN|OVI|SHA|BLB|SIG|SON|SPN|FOR|GUB|SPB|IGB|WND|STD|STA|SDL|OBG|HST|BOG|SHL|PIR|FTL|SEB|SÖM|SÜW|TIR|SAB|TUT|ANG|SDT|LÜN|LSZ|MHL|VEC|VER|VIE|OVL|ANK|OVP|SBG|UEM|UER|WLG|GMN|NVP|RDG|RÜG|DAU|FKB|WAF|WAK|SLZ|WEN|SOG|APD|WUG|GUN|ESW|WIZ|WES|DIN|BRA|BÜD|WHV|HWI|GHC|WTM|WOB|WUN|MAK|SEL|OCH|HOT|WDA)[- ]?(([A-Z][- ]?\d{1,4})|([A-Z]{2}[- ]?\d{1,3})))[- ]?(E|H)?$/.test(e)},"de-LI":function(e){return/^FL[- ]?\d{1,5}[UZ]?$/.test(e)},"fi-FI":function(e){return/^(?=.{4,7})(([A-Z]{1,3}|[0-9]{1,3})[\s-]?([A-Z]{1,3}|[0-9]{1,5}))$/.test(e)},"pt-PT":function(e){return/^([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})$/.test(e)},"sq-AL":function(e){return/^[A-Z]{2}[- ]?((\d{3}[- ]?(([A-Z]{2})|T))|(R[- ]?\d{3}))$/.test(e)},"pt-BR":function(e){return/^[A-Z]{3}[ -]?[0-9][A-Z][0-9]{2}|[A-Z]{3}[ -]?[0-9]{4}$/.test(e)}};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],284:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){if((0,r.default)(e),"en_US_POSIX"===e||"ca_ES_VALENCIA"===e)return!0;return n.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^[A-Za-z]{2,4}([_-]([A-Za-z]{4}|[\d]{3}))?([_-]([A-Za-z]{2}|[\d]{3}))?$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],285:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),e===e.toLowerCase()};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],286:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){if((0,r.default)(e),t&&(t.no_colons||t.no_separators))return o.test(e);return n.test(e)||a.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){4}([0-9a-fA-F]{2})$/,o=/^([0-9a-fA-F]){12}$/,a=/^([0-9a-fA-F]{4}\.){2}([0-9a-fA-F]{4})$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],287:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^[a-f0-9]{32}$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],288:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e.trim())};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^magnet:\?xt(?:\.1)?=urn:(?:aich|bitprint|btih|ed2k|ed2khash|kzhash|md5|sha1|tree:tiger):[a-z0-9]{32}(?:[a-z0-9]{8})?($|&)/i;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],289:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)||o.test(e)||a.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^(application|audio|font|image|message|model|multipart|text|video)\/[a-zA-Z0-9\.\-\+]{1,100}$/i,o=/^text\/[a-zA-Z0-9\.\-\+]{1,100};\s?charset=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?$/i,a=/^multipart\/[a-zA-Z0-9\.\-\+]{1,100}(;\s?(boundary|charset)=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?){0,2}$/i;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],290:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t,i){if((0,r.default)(e),i&&i.strictMode&&!e.startsWith("+"))return!1;if(Array.isArray(t))return t.some((function(t){if(n.hasOwnProperty(t)&&n[t].test(e))return!0;return!1}));if(t in n)return n[t].test(e);if(!t||"any"===t){for(var A in n){if(n.hasOwnProperty(A))if(n[A].test(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))},i.locales=void 0;var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n={"am-AM":/^(\+?374|0)((10|[9|7][0-9])\d{6}$|[2-4]\d{7}$)/,"ar-AE":/^((\+?971)|0)?5[024568]\d{7}$/,"ar-BH":/^(\+?973)?(3|6)\d{7}$/,"ar-DZ":/^(\+?213|0)(5|6|7)\d{8}$/,"ar-LB":/^(\+?961)?((3|81)\d{6}|7\d{7})$/,"ar-EG":/^((\+?20)|0)?1[0125]\d{8}$/,"ar-IQ":/^(\+?964|0)?7[0-9]\d{8}$/,"ar-JO":/^(\+?962|0)?7[789]\d{7}$/,"ar-KW":/^(\+?965)[569]\d{7}$/,"ar-LY":/^((\+?218)|0)?(9[1-6]\d{7}|[1-8]\d{7,9})$/,"ar-MA":/^(?:(?:\+|00)212|0)[5-7]\d{8}$/,"ar-OM":/^((\+|00)968)?(9[1-9])\d{6}$/,"ar-PS":/^(\+?970|0)5[6|9](\d{7})$/,"ar-SA":/^(!?(\+?966)|0)?5\d{8}$/,"ar-SY":/^(!?(\+?963)|0)?9\d{8}$/,"ar-TN":/^(\+?216)?[2459]\d{7}$/,"az-AZ":/^(\+994|0)(5[015]|7[07]|99)\d{7}$/,"bs-BA":/^((((\+|00)3876)|06))((([0-3]|[5-6])\d{6})|(4\d{7}))$/,"be-BY":/^(\+?375)?(24|25|29|33|44)\d{7}$/,"bg-BG":/^(\+?359|0)?8[789]\d{7}$/,"bn-BD":/^(\+?880|0)1[13456789][0-9]{8}$/,"ca-AD":/^(\+376)?[346]\d{5}$/,"cs-CZ":/^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"da-DK":/^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,"de-DE":/^((\+49|0)[1|3])([0|5][0-45-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7,9}$/,"de-AT":/^(\+43|0)\d{1,4}\d{3,12}$/,"de-CH":/^(\+41|0)([1-9])\d{1,9}$/,"de-LU":/^(\+352)?((6\d1)\d{6})$/,"dv-MV":/^(\+?960)?(7[2-9]|91|9[3-9])\d{7}$/,"el-GR":/^(\+?30|0)?(69\d{8})$/,"en-AU":/^(\+?61|0)4\d{8}$/,"en-BM":/^(\+?1)?441(((3|7)\d{6}$)|(5[0-3][0-9]\d{4}$)|(59\d{5}))/,"en-GB":/^(\+?44|0)7\d{9}$/,"en-GG":/^(\+?44|0)1481\d{6}$/,"en-GH":/^(\+233|0)(20|50|24|54|27|57|26|56|23|28|55|59)\d{7}$/,"en-GY":/^(\+592|0)6\d{6}$/,"en-HK":/^(\+?852[-\s]?)?[456789]\d{3}[-\s]?\d{4}$/,"en-MO":/^(\+?853[-\s]?)?[6]\d{3}[-\s]?\d{4}$/,"en-IE":/^(\+?353|0)8[356789]\d{7}$/,"en-IN":/^(\+?91|0)?[6789]\d{9}$/,"en-KE":/^(\+?254|0)(7|1)\d{8}$/,"en-KI":/^((\+686|686)?)?( )?((6|7)(2|3|8)[0-9]{6})$/,"en-MT":/^(\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$/,"en-MU":/^(\+?230|0)?\d{8}$/,"en-NA":/^(\+?264|0)(6|8)\d{7}$/,"en-NG":/^(\+?234|0)?[789]\d{9}$/,"en-NZ":/^(\+?64|0)[28]\d{7,9}$/,"en-PK":/^((00|\+)?92|0)3[0-6]\d{8}$/,"en-PH":/^(09|\+639)\d{9}$/,"en-RW":/^(\+?250|0)?[7]\d{8}$/,"en-SG":/^(\+65)?[3689]\d{7}$/,"en-SL":/^(\+?232|0)\d{8}$/,"en-TZ":/^(\+?255|0)?[67]\d{8}$/,"en-UG":/^(\+?256|0)?[7]\d{8}$/,"en-US":/^((\+1|1)?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,"en-ZA":/^(\+?27|0)\d{9}$/,"en-ZM":/^(\+?26)?09[567]\d{7}$/,"en-ZW":/^(\+263)[0-9]{9}$/,"en-BW":/^(\+?267)?(7[1-8]{1})\d{6}$/,"es-AR":/^\+?549(11|[2368]\d)\d{8}$/,"es-BO":/^(\+?591)?(6|7)\d{7}$/,"es-CO":/^(\+?57)?3(0(0|1|2|4|5)|1\d|2[0-4]|5(0|1))\d{7}$/,"es-CL":/^(\+?56|0)[2-9]\d{1}\d{7}$/,"es-CR":/^(\+506)?[2-8]\d{7}$/,"es-CU":/^(\+53|0053)?5\d{7}/,"es-DO":/^(\+?1)?8[024]9\d{7}$/,"es-HN":/^(\+?504)?[9|8]\d{7}$/,"es-EC":/^(\+?593|0)([2-7]|9[2-9])\d{7}$/,"es-ES":/^(\+?34)?[6|7]\d{8}$/,"es-PE":/^(\+?51)?9\d{8}$/,"es-MX":/^(\+?52)?(1|01)?\d{10,11}$/,"es-PA":/^(\+?507)\d{7,8}$/,"es-PY":/^(\+?595|0)9[9876]\d{7}$/,"es-SV":/^(\+?503)?[67]\d{7}$/,"es-UY":/^(\+598|0)9[1-9][\d]{6}$/,"es-VE":/^(\+?58)?(2|4)\d{9}$/,"et-EE":/^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/,"fa-IR":/^(\+?98[\-\s]?|0)9[0-39]\d[\-\s]?\d{3}[\-\s]?\d{4}$/,"fi-FI":/^(\+?358|0)\s?(4(0|1|2|4|5|6)?|50)\s?(\d\s?){4,8}\d$/,"fj-FJ":/^(\+?679)?\s?\d{3}\s?\d{4}$/,"fo-FO":/^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"fr-BF":/^(\+226|0)[67]\d{7}$/,"fr-CM":/^(\+?237)6[0-9]{8}$/,"fr-FR":/^(\+?33|0)[67]\d{8}$/,"fr-GF":/^(\+?594|0|00594)[67]\d{8}$/,"fr-GP":/^(\+?590|0|00590)[67]\d{8}$/,"fr-MQ":/^(\+?596|0|00596)[67]\d{8}$/,"fr-PF":/^(\+?689)?8[789]\d{6}$/,"fr-RE":/^(\+?262|0|00262)[67]\d{8}$/,"he-IL":/^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}$/,"hu-HU":/^(\+?36|06)(20|30|31|50|70)\d{7}$/,"id-ID":/^(\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\s?|\d]{5,11})$/,"it-IT":/^(\+?39)?\s?3\d{2} ?\d{6,7}$/,"it-SM":/^((\+378)|(0549)|(\+390549)|(\+3780549))?6\d{5,9}$/,"ja-JP":/^(\+81[ \-]?(\(0\))?|0)[6789]0[ \-]?\d{4}[ \-]?\d{4}$/,"ka-GE":/^(\+?995)?(5|79)\d{7}$/,"kk-KZ":/^(\+?7|8)?7\d{9}$/,"kl-GL":/^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"ko-KR":/^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/,"lt-LT":/^(\+370|8)\d{8}$/,"lv-LV":/^(\+?371)2\d{7}$/,"ms-MY":/^(\+?6?01){1}(([0145]{1}(\-|\s)?\d{7,8})|([236789]{1}(\s|\-)?\d{7}))$/,"mz-MZ":/^(\+?258)?8[234567]\d{7}$/,"nb-NO":/^(\+?47)?[49]\d{7}$/,"ne-NP":/^(\+?977)?9[78]\d{8}$/,"nl-BE":/^(\+?32|0)4\d{8}$/,"nl-NL":/^(((\+|00)?31\(0\))|((\+|00)?31)|0)6{1}\d{8}$/,"nn-NO":/^(\+?47)?[49]\d{7}$/,"pl-PL":/^(\+?48)? ?[5-8]\d ?\d{3} ?\d{2} ?\d{2}$/,"pt-BR":/^((\+?55\ ?[1-9]{2}\ ?)|(\+?55\ ?\([1-9]{2}\)\ ?)|(0[1-9]{2}\ ?)|(\([1-9]{2}\)\ ?)|([1-9]{2}\ ?))((\d{4}\-?\d{4})|(9[2-9]{1}\d{3}\-?\d{4}))$/,"pt-PT":/^(\+?351)?9[1236]\d{7}$/,"pt-AO":/^(\+244)\d{9}$/,"ro-RO":/^(\+?4?0)\s?7\d{2}(\/|\s|\.|\-)?\d{3}(\s|\.|\-)?\d{3}$/,"ru-RU":/^(\+?7|8)?9\d{9}$/,"si-LK":/^(?:0|94|\+94)?(7(0|1|2|4|5|6|7|8)( |-)?)\d{7}$/,"sl-SI":/^(\+386\s?|0)(\d{1}\s?\d{3}\s?\d{2}\s?\d{2}|\d{2}\s?\d{3}\s?\d{3})$/,"sk-SK":/^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"sq-AL":/^(\+355|0)6[789]\d{6}$/,"sr-RS":/^(\+3816|06)[- \d]{5,9}$/,"sv-SE":/^(\+?46|0)[\s\-]?7[\s\-]?[02369]([\s\-]?\d){7}$/,"tg-TJ":/^(\+?992)?[5][5]\d{7}$/,"th-TH":/^(\+66|66|0)\d{9}$/,"tr-TR":/^(\+?90|0)?5\d{9}$/,"tk-TM":/^(\+993|993|8)\d{8}$/,"uk-UA":/^(\+?38|8)?0\d{9}$/,"uz-UZ":/^(\+?998)?(6[125-79]|7[1-69]|88|9\d)\d{7}$/,"vi-VN":/^((\+?84)|0)((3([2-9]))|(5([25689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$/,"zh-CN":/^((\+|00)86)?(1[3-9]|9[28])\d{9}$/,"zh-TW":/^(\+?886\-?|0)?9\d{8}$/,"dz-BT":/^(\+?975|0)?(17|16|77|02)\d{6}$/};n["en-CA"]=n["en-US"],n["fr-CA"]=n["en-CA"],n["fr-BE"]=n["nl-BE"],n["zh-HK"]=n["en-HK"],n["zh-MO"]=n["en-MO"],n["ga-IE"]=n["en-IE"],n["fr-CH"]=n["de-CH"],n["it-CH"]=n["fr-CH"];var o=Object.keys(n);i.locales=o},{"./util/assertString":323}],291:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,A.default)(e),(0,r.default)(e)&&24===e.length};var A=n(e("./util/assertString")),r=n(e("./isHexadecimal"));function n(e){return e&&e.__esModule?e:{default:e}}t.exports=i.default,t.exports.default=i.default},{"./isHexadecimal":263,"./util/assertString":323}],292:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/[^\x00-\x7F]/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],293:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){if((0,r.default)(e),t&&t.no_symbols)return o.test(e);return new RegExp("^[+-]?([0-9]*[".concat((t||{}).locale?n.decimal[t.locale]:".","])?[0-9]+$")).test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A},n=e("./alpha");var o=/^[0-9]+$/;t.exports=i.default,t.exports.default=i.default},{"./alpha":229,"./util/assertString":323}],294:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^(0o)?[0-7]+$/i;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],295:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){(0,r.default)(e);var i=e.replace(/\s/g,"").toUpperCase();return t.toUpperCase()in n&&n[t].test(i)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n={AM:/^[A-Z]{2}\d{7}$/,AR:/^[A-Z]{3}\d{6}$/,AT:/^[A-Z]\d{7}$/,AU:/^[A-Z]\d{7}$/,BE:/^[A-Z]{2}\d{6}$/,BG:/^\d{9}$/,BR:/^[A-Z]{2}\d{6}$/,BY:/^[A-Z]{2}\d{7}$/,CA:/^[A-Z]{2}\d{6}$/,CH:/^[A-Z]\d{7}$/,CN:/^G\d{8}$|^E(?![IO])[A-Z0-9]\d{7}$/,CY:/^[A-Z](\d{6}|\d{8})$/,CZ:/^\d{8}$/,DE:/^[CFGHJKLMNPRTVWXYZ0-9]{9}$/,DK:/^\d{9}$/,DZ:/^\d{9}$/,EE:/^([A-Z]\d{7}|[A-Z]{2}\d{7})$/,ES:/^[A-Z0-9]{2}([A-Z0-9]?)\d{6}$/,FI:/^[A-Z]{2}\d{7}$/,FR:/^\d{2}[A-Z]{2}\d{5}$/,GB:/^\d{9}$/,GR:/^[A-Z]{2}\d{7}$/,HR:/^\d{9}$/,HU:/^[A-Z]{2}(\d{6}|\d{7})$/,IE:/^[A-Z0-9]{2}\d{7}$/,IN:/^[A-Z]{1}-?\d{7}$/,ID:/^[A-C]\d{7}$/,IR:/^[A-Z]\d{8}$/,IS:/^(A)\d{7}$/,IT:/^[A-Z0-9]{2}\d{7}$/,JP:/^[A-Z]{2}\d{7}$/,KR:/^[MS]\d{8}$/,LT:/^[A-Z0-9]{8}$/,LU:/^[A-Z0-9]{8}$/,LV:/^[A-Z0-9]{2}\d{7}$/,LY:/^[A-Z0-9]{8}$/,MT:/^\d{7}$/,MZ:/^([A-Z]{2}\d{7})|(\d{2}[A-Z]{2}\d{5})$/,MY:/^[AHK]\d{8}$/,NL:/^[A-Z]{2}[A-Z0-9]{6}\d$/,PL:/^[A-Z]{2}\d{7}$/,PT:/^[A-Z]\d{6}$/,RO:/^\d{8,9}$/,RU:/^\d{9}$/,SE:/^\d{8}$/,SL:/^(P)[A-Z]\d{7}$/,SK:/^[0-9A-Z]\d{7}$/,TR:/^[A-Z]\d{8}$/,UA:/^[A-Z]{2}\d{6}$/,US:/^\d{9}$/};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],296:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e,{min:0,max:65535})};var A,r=(A=e("./isInt"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./isInt":278}],297:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){if((0,r.default)(e),t in s)return s[t].test(e);if("any"===t){for(var i in s){if(s.hasOwnProperty(i))if(s[i].test(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))},i.locales=void 0;var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^\d{4}$/,o=/^\d{5}$/,a=/^\d{6}$/,s={AD:/^AD\d{3}$/,AT:n,AU:n,AZ:/^AZ\d{4}$/,BE:n,BG:n,BR:/^\d{5}-\d{3}$/,BY:/2[1-4]{1}\d{4}$/,CA:/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][\s\-]?\d[ABCEGHJ-NPRSTV-Z]\d$/i,CH:n,CN:/^(0[1-7]|1[012356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[1-5]|8[1345]|9[09])\d{4}$/,CZ:/^\d{3}\s?\d{2}$/,DE:o,DK:n,DO:o,DZ:o,EE:o,ES:/^(5[0-2]{1}|[0-4]{1}\d{1})\d{3}$/,FI:o,FR:/^\d{2}\s?\d{3}$/,GB:/^(gir\s?0aa|[a-z]{1,2}\d[\da-z]?\s?(\d[a-z]{2})?)$/i,GR:/^\d{3}\s?\d{2}$/,HR:/^([1-5]\d{4}$)/,HT:/^HT\d{4}$/,HU:n,ID:o,IE:/^(?!.*(?:o))[A-Za-z]\d[\dw]\s\w{4}$/i,IL:/^(\d{5}|\d{7})$/,IN:/^((?!10|29|35|54|55|65|66|86|87|88|89)[1-9][0-9]{5})$/,IR:/\b(?!(\d)\1{3})[13-9]{4}[1346-9][013-9]{5}\b/,IS:/^\d{3}$/,IT:o,JP:/^\d{3}\-\d{4}$/,KE:o,KR:/^(\d{5}|\d{6})$/,LI:/^(948[5-9]|949[0-7])$/,LT:/^LT\-\d{5}$/,LU:n,LV:/^LV\-\d{4}$/,LK:o,MX:o,MT:/^[A-Za-z]{3}\s{0,1}\d{4}$/,MY:o,NL:/^\d{4}\s?[a-z]{2}$/i,NO:n,NP:/^(10|21|22|32|33|34|44|45|56|57)\d{3}$|^(977)$/i,NZ:n,PL:/^\d{2}\-\d{3}$/,PR:/^00[679]\d{2}([ -]\d{4})?$/,PT:/^\d{4}\-\d{3}?$/,RO:a,RU:a,SA:o,SE:/^[1-9]\d{2}\s?\d{2}$/,SG:a,SI:n,SK:/^\d{3}\s?\d{2}$/,TH:o,TN:n,TW:/^\d{3}(\d{2})?$/,UA:o,US:/^\d{5}(-\d{4})?$/,ZA:n,ZM:o},c=Object.keys(s);i.locales=c},{"./util/assertString":323}],298:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),h.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/([01][0-9]|2[0-3])/,o=/[0-5][0-9]/,a=new RegExp("[-+]".concat(n.source,":").concat(o.source)),s=new RegExp("([zZ]|".concat(a.source,")")),c=new RegExp("".concat(n.source,":").concat(o.source,":").concat(/([0-5][0-9]|60)/.source).concat(/(\.[0-9]+)?/.source)),I=new RegExp("".concat(/[0-9]{4}/.source,"-").concat(/(0[1-9]|1[0-2])/.source,"-").concat(/([12]\d|0[1-9]|3[01])/.source)),f=new RegExp("".concat(c.source).concat(s.source)),h=new RegExp("^".concat(I.source,"[ tT]").concat(f.source,"$"));t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],299:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if((0,r.default)(e),!t)return n.test(e)||o.test(e);return n.test(e)||o.test(e)||a.test(e)||s.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^rgb\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){2}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\)$/,o=/^rgba\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/,a=/^rgb\((([0-9]%|[1-9][0-9]%|100%),){2}([0-9]%|[1-9][0-9]%|100%)\)/,s=/^rgba\((([0-9]%|[1-9][0-9]%|100%),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],300:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,A.default)(e),n.test(e)};var A=r(e("./util/assertString"));function r(e){return e&&e.__esModule?e:{default:e}}var n=(0,r(e("./util/multilineRegex")).default)(["^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)","(?:-((?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*))*))","?(?:\\+([0-9a-z-]+(?:\\.[0-9a-z-]+)*))?$"],"i");t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323,"./util/multilineRegex":326}],301:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/^[^\s-_](?!.*?[-_]{2,})[a-z0-9-\\][^\s]*[^-_\s]$/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],302:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,r.default)(e);var i=f(e);if((t=(0,A.default)(t||{},I)).returnScore)return h(i,t);return i.length>=t.minLength&&i.lowercaseCount>=t.minLowercase&&i.uppercaseCount>=t.minUppercase&&i.numberCount>=t.minNumbers&&i.symbolCount>=t.minSymbols};var A=n(e("./util/merge")),r=n(e("./util/assertString"));function n(e){return e&&e.__esModule?e:{default:e}}var o=/^[A-Z]$/,a=/^[a-z]$/,s=/^[0-9]$/,c=/^[-#!$@%^&*()_+|~=`{}\[\]:";'<>?,.\/ ]$/,I={minLength:8,minLowercase:1,minUppercase:1,minNumbers:1,minSymbols:1,returnScore:!1,pointsPerUnique:1,pointsPerRepeat:.5,pointsForContainingLower:10,pointsForContainingUpper:10,pointsForContainingNumber:10,pointsForContainingSymbol:10};function f(e){var t,i,A=(t=e,i={},Array.from(t).forEach((function(e){i[e]?i[e]+=1:i[e]=1})),i),r={length:e.length,uniqueChars:Object.keys(A).length,uppercaseCount:0,lowercaseCount:0,numberCount:0,symbolCount:0};return Object.keys(A).forEach((function(e){o.test(e)?r.uppercaseCount+=A[e]:a.test(e)?r.lowercaseCount+=A[e]:s.test(e)?r.numberCount+=A[e]:c.test(e)&&(r.symbolCount+=A[e])})),r}function h(e,t){var i=0;return i+=e.uniqueChars*t.pointsPerUnique,i+=(e.length-e.uniqueChars)*t.pointsPerRepeat,e.lowercaseCount>0&&(i+=t.pointsForContainingLower),e.uppercaseCount>0&&(i+=t.pointsForContainingUpper),e.numberCount>0&&(i+=t.pointsForContainingNumber),e.symbolCount>0&&(i+=t.pointsForContainingSymbol),i}t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323,"./util/merge":325}],303:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),n.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};var n=/[\uD800-\uDBFF][\uDC00-\uDFFF]/;t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],304:[function(e,t,i){"use strict";function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US";(0,r.default)(e);var i=e.slice(0);if(t in g)return t in l&&(i=i.replace(l[t],"")),!!g[t].test(i)&&(!(t in u)||u[t](i));throw new Error("Invalid locale '".concat(t,"'"))};var r=s(e("./util/assertString")),n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==A(e)&&"function"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var i={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=r?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(i,n,o):i[n]=e[n]}i.default=e,t&&t.set(e,i);return i}(e("./util/algorithms")),o=s(e("./isDate"));function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return e&&e.__esModule?e:{default:e}}function c(e){return function(e){if(Array.isArray(e))return I(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return I(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return I(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,A=new Array(t);i0){if(t&&!i&&!/[AEIOU]/.test(e[A]))return!1;if(i&&!/X/.test(e[A]))return!1}return!0}var g={"bg-BG":/^\d{10}$/,"cs-CZ":/^\d{6}\/{0,1}\d{3,4}$/,"de-AT":/^\d{9}$/,"de-DE":/^[1-9]\d{10}$/,"dk-DK":/^\d{6}-{0,1}\d{4}$/,"el-CY":/^[09]\d{7}[A-Z]$/,"el-GR":/^([0-4]|[7-9])\d{8}$/,"en-GB":/^\d{10}$|^(?!GB|NK|TN|ZZ)(?![DFIQUV])[A-Z](?![DFIQUVO])[A-Z]\d{6}[ABCD ]$/i,"en-IE":/^\d{7}[A-W][A-IW]{0,1}$/i,"en-US":/^\d{2}[- ]{0,1}\d{7}$/,"es-ES":/^(\d{0,8}|[XYZKLM]\d{7})[A-HJ-NP-TV-Z]$/i,"et-EE":/^[1-6]\d{6}(00[1-9]|0[1-9][0-9]|[1-6][0-9]{2}|70[0-9]|710)\d$/,"fi-FI":/^\d{6}[-+A]\d{3}[0-9A-FHJ-NPR-Y]$/i,"fr-BE":/^\d{11}$/,"fr-FR":/^[0-3]\d{12}$|^[0-3]\d\s\d{2}(\s\d{3}){3}$/,"fr-LU":/^\d{13}$/,"hr-HR":/^\d{11}$/,"hu-HU":/^8\d{9}$/,"it-IT":/^[A-Z]{6}[L-NP-V0-9]{2}[A-EHLMPRST][L-NP-V0-9]{2}[A-ILMZ][L-NP-V0-9]{3}[A-Z]$/i,"lv-LV":/^\d{6}-{0,1}\d{5}$/,"mt-MT":/^\d{3,7}[APMGLHBZ]$|^([1-8])\1\d{7}$/i,"nl-NL":/^\d{9}$/,"pl-PL":/^\d{10,11}$/,"pt-BR":/(?:^\d{11}$)|(?:^\d{14}$)/,"pt-PT":/^\d{9}$/,"ro-RO":/^\d{13}$/,"sk-SK":/^\d{6}\/{0,1}\d{3,4}$/,"sl-SI":/^[1-9]\d{7}$/,"sv-SE":/^(\d{6}[-+]{0,1}\d{4}|(18|19|20)\d{6}[-+]{0,1}\d{4})$/};g["lb-LU"]=g["fr-LU"],g["lt-LT"]=g["et-EE"],g["nl-BE"]=g["fr-BE"];var u={"bg-BG":function(e){var t=e.slice(0,2),i=parseInt(e.slice(2,4),10);i>40?(i-=40,t="20".concat(t)):i>20?(i-=20,t="18".concat(t)):t="19".concat(t),i<10&&(i="0".concat(i));var A="".concat(t,"/").concat(i,"/").concat(e.slice(4,6));if(!(0,o.default)(A,"YYYY/MM/DD"))return!1;for(var r=e.split("").map((function(e){return parseInt(e,10)})),n=[2,4,8,5,10,9,7,3,6],a=0,s=0;s50&&(i-=50),i>20){if(parseInt(t,10)<2004)return!1;i-=20}i<10&&(i="0".concat(i));var A="".concat(t,"/").concat(i,"/").concat(e.slice(4,6));if(!(0,o.default)(A,"YYYY/MM/DD"))return!1;if(10===e.length&&parseInt(e,10)%11!=0){var r=parseInt(e.slice(0,9),10)%11;if(!(parseInt(t,10)<1986&&10===r))return!1;if(0!==parseInt(e.slice(9),10))return!1}return!0},"de-AT":function(e){return n.luhnCheck(e)},"de-DE":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),i=[],A=0;A1}))).length&&3!==i.length)return!1;if(3===i[0].length){for(var o=i[0].split("").map((function(e){return parseInt(e,10)})),a=0,s=0;s58))return!1;t="18".concat(t)}}3===t.length&&(t=[t.slice(0,2),"0",t.slice(2)].join(""));var i="".concat(t,"/").concat(e.slice(2,4),"/").concat(e.slice(0,2));if(!(0,o.default)(i,"YYYY/MM/DD"))return!1;for(var A=e.split("").map((function(e){return parseInt(e,10)})),r=0,n=4,a=0;a<9;a++)r+=A[a]*n,1===(n-=1)&&(n=7);return 1!==(r%=11)&&(0===r?0===A[9]:A[9]===11-r)},"el-CY":function(e){for(var t=e.slice(0,8).split("").map((function(e){return parseInt(e,10)})),i=0,A=1;A4&&(i+=2));return String.fromCharCode(i%26+65)===e.charAt(8)},"el-GR":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),i=0,A=0;A<8;A++)i+=t[A]*Math.pow(2,8-A);return i%11%10===t[8]},"en-IE":function(e){var t=n.reverseMultiplyAndSum(e.split("").slice(0,7).map((function(e){return parseInt(e,10)})),8);return 9===e.length&&"W"!==e[8]&&(t+=9*(e[8].charCodeAt(0)-64)),0===(t%=23)?"W"===e[7].toUpperCase():e[7].toUpperCase()===String.fromCharCode(64+t)},"en-US":function(e){return-1!==function(){var e=[];for(var t in f)f.hasOwnProperty(t)&&e.push.apply(e,c(f[t]));return e}().indexOf(e.substr(0,2))},"es-ES":function(e){var t=e.toUpperCase().split("");if(isNaN(parseInt(t[0],10))&&t.length>1){var i=0;switch(t[0]){case"Y":i=1;break;case"Z":i=2}t.splice(0,1,i)}else for(;t.length<9;)t.unshift(0);t=t.join("");var A=parseInt(t.slice(0,8),10)%23;return t[8]===["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"][A]},"et-EE":function(e){var t=e.slice(1,3);switch(e.slice(0,1)){case"1":case"2":t="18".concat(t);break;case"3":case"4":t="19".concat(t);break;default:t="20".concat(t)}var i="".concat(t,"/").concat(e.slice(3,5),"/").concat(e.slice(5,7));if(!(0,o.default)(i,"YYYY/MM/DD"))return!1;for(var A=e.split("").map((function(e){return parseInt(e,10)})),r=0,n=1,a=0;a<10;a++)r+=A[a]*n,10===(n+=1)&&(n=1);if(r%11==10){r=0,n=3;for(var s=0;s<10;s++)r+=A[s]*n,10===(n+=1)&&(n=1);if(r%11==10)return 0===A[10]}return r%11===A[10]},"fi-FI":function(e){var t=e.slice(4,6);switch(e.slice(6,7)){case"+":t="18".concat(t);break;case"-":t="19".concat(t);break;default:t="20".concat(t)}var i="".concat(t,"/").concat(e.slice(2,4),"/").concat(e.slice(0,2));if(!(0,o.default)(i,"YYYY/MM/DD"))return!1;var A=parseInt(e.slice(0,6)+e.slice(7,10),10)%31;return A<10?A===parseInt(e.slice(10),10):["A","B","C","D","E","F","H","J","K","L","M","N","P","R","S","T","U","V","W","X","Y"][A-=10]===e.slice(10)},"fr-BE":function(e){if("00"!==e.slice(2,4)||"00"!==e.slice(4,6)){var t="".concat(e.slice(0,2),"/").concat(e.slice(2,4),"/").concat(e.slice(4,6));if(!(0,o.default)(t,"YY/MM/DD"))return!1}var i=97-parseInt(e.slice(0,9),10)%97,A=parseInt(e.slice(9,11),10);return i===A||(i=97-parseInt("2".concat(e.slice(0,9)),10)%97)===A},"fr-FR":function(e){return e=e.replace(/\s/g,""),parseInt(e.slice(0,10),10)%511===parseInt(e.slice(10,13),10)},"fr-LU":function(e){var t="".concat(e.slice(0,4),"/").concat(e.slice(4,6),"/").concat(e.slice(6,8));return!!(0,o.default)(t,"YYYY/MM/DD")&&(!!n.luhnCheck(e.slice(0,12))&&n.verhoeffCheck("".concat(e.slice(0,11)).concat(e[12])))},"hr-HR":function(e){return n.iso7064Check(e)},"hu-HU":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),i=8,A=1;A<9;A++)i+=t[A]*(A+1);return i%11===t[9]},"it-IT":function(e){var t=e.toUpperCase().split("");if(!h(t.slice(0,3)))return!1;if(!h(t.slice(3,6)))return!1;for(var i={L:"0",M:"1",N:"2",P:"3",Q:"4",R:"5",S:"6",T:"7",U:"8",V:"9"},A=0,r=[6,7,9,10,12,13,14];A40&&(s-=40),s<10&&(s="0".concat(s));var c="".concat(t[6]).concat(t[7],"/").concat(a,"/").concat(s);if(!(0,o.default)(c,"YY/MM/DD"))return!1;for(var I=0,f=1;f4&&(l+=2)}I+=l}return String.fromCharCode(65+I%26)===t[15]},"lv-LV":function(e){var t=(e=e.replace(/\W/,"")).slice(0,2);if("32"!==t){if("00"!==e.slice(2,4)){var i=e.slice(4,6);switch(e[6]){case"0":i="18".concat(i);break;case"1":i="19".concat(i);break;default:i="20".concat(i)}var A="".concat(i,"/").concat(e.slice(2,4),"/").concat(t);if(!(0,o.default)(A,"YYYY/MM/DD"))return!1}for(var r=1101,n=[1,6,3,7,9,10,5,8,4,2],a=0;a32e3)return!1;if(i===parseInt(t.join("").slice(5,7),10))return!1}}return!0},"nl-NL":function(e){return n.reverseMultiplyAndSum(e.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11===parseInt(e[8],10)},"pl-PL":function(e){if(10===e.length){for(var t=[6,5,7,2,3,4,5,6,7],i=0,A=0;A80?(r="18".concat(r),n-=80):n>60?(r="22".concat(r),n-=60):n>40?(r="21".concat(r),n-=40):n>20?(r="20".concat(r),n-=20):r="19".concat(r),n<10&&(n="0".concat(n));var a="".concat(r,"/").concat(n,"/").concat(e.slice(4,6));if(!(0,o.default)(a,"YYYY/MM/DD"))return!1;for(var s=0,c=1,I=0;I10?c=1:5===c&&(c+=2);return(s=10-s%10)===parseInt(e[10],10)},"pt-BR":function(e){if(11===e.length){var t,i;if(t=0,"11111111111"===e||"22222222222"===e||"33333333333"===e||"44444444444"===e||"55555555555"===e||"66666666666"===e||"77777777777"===e||"88888888888"===e||"99999999999"===e||"00000000000"===e)return!1;for(var A=1;A<=9;A++)t+=parseInt(e.substring(A-1,A),10)*(11-A);if(10===(i=10*t%11)&&(i=0),i!==parseInt(e.substring(9,10),10))return!1;t=0;for(var r=1;r<=10;r++)t+=parseInt(e.substring(r-1,r),10)*(12-r);return 10===(i=10*t%11)&&(i=0),i===parseInt(e.substring(10,11),10)}if("00000000000000"===e||"11111111111111"===e||"22222222222222"===e||"33333333333333"===e||"44444444444444"===e||"55555555555555"===e||"66666666666666"===e||"77777777777777"===e||"88888888888888"===e||"99999999999999"===e)return!1;for(var n=e.length-2,o=e.substring(0,n),a=e.substring(n),s=0,c=n-7,I=n;I>=1;I--)s+=o.charAt(n-I)*c,(c-=1)<2&&(c=9);var f=s%11<2?0:11-s%11;if(f!==parseInt(a.charAt(0),10))return!1;n+=1,o=e.substring(0,n),s=0,c=n-7;for(var h=n;h>=1;h--)s+=o.charAt(n-h)*c,(c-=1)<2&&(c=9);return(f=s%11<2?0:11-s%11)===parseInt(a.charAt(1),10)},"pt-PT":function(e){var t=11-n.reverseMultiplyAndSum(e.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11;return t>9?0===parseInt(e[8],10):t===parseInt(e[8],10)},"ro-RO":function(e){if("9000"!==e.slice(0,4)){var t=e.slice(1,3);switch(e[0]){case"1":case"2":t="19".concat(t);break;case"3":case"4":t="18".concat(t);break;case"5":case"6":t="20".concat(t)}var i="".concat(t,"/").concat(e.slice(3,5),"/").concat(e.slice(5,7));if(8===i.length){if(!(0,o.default)(i,"YY/MM/DD"))return!1}else if(!(0,o.default)(i,"YYYY/MM/DD"))return!1;for(var A=e.split("").map((function(e){return parseInt(e,10)})),r=[2,7,9,1,4,6,3,5,8,2,7,9],n=0,a=0;a53)return!1;t=t<10?"190".concat(t):"19".concat(t);var i=parseInt(e.slice(2,4),10);i>50&&(i-=50),i<10&&(i="0".concat(i));var A="".concat(t,"/").concat(i,"/").concat(e.slice(4,6));if(!(0,o.default)(A,"YYYY/MM/DD"))return!1}return!0},"sl-SI":function(e){var t=11-n.reverseMultiplyAndSum(e.split("").slice(0,7).map((function(e){return parseInt(e,10)})),8)%11;return 10===t?0===parseInt(e[7],10):t===parseInt(e[7],10)},"sv-SE":function(e){var t=e.slice(0);e.length>11&&(t=t.slice(2));var i="",A=t.slice(2,4),r=parseInt(t.slice(4,6),10);if(e.length>11)i=e.slice(0,4);else if(i=e.slice(0,2),11===e.length&&r<60){var a=(new Date).getFullYear().toString(),s=parseInt(a.slice(0,2),10);if(a=parseInt(a,10),"-"===e[6])i=parseInt("".concat(s).concat(i),10)>a?"".concat(s-1).concat(i):"".concat(s).concat(i);else if(i="".concat(s-1).concat(i),a-parseInt(i,10)<100)return!1}r>60&&(r-=60),r<10&&(r="0".concat(r));var c="".concat(i,"/").concat(A,"/").concat(r);if(8===c.length){if(!(0,o.default)(c,"YY/MM/DD"))return!1}else if(!(0,o.default)(c,"YYYY/MM/DD"))return!1;return n.luhnCheck(e.replace(/\W/,""))}};u["lb-LU"]=u["fr-LU"],u["lt-LT"]=u["et-EE"],u["nl-BE"]=u["fr-BE"];var d=/[-\\\/!@#$%\^&\*\(\)\+\=\[\]]+/g,l={"de-AT":d,"de-DE":/[\/\\]/g,"fr-BE":d};l["nl-BE"]=l["fr-BE"],t.exports=i.default,t.exports.default=i.default},{"./isDate":249,"./util/algorithms":322,"./util/assertString":323}],305:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){if((0,A.default)(e),!e||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;if((t=(0,o.default)(t,c)).validate_length&&e.length>=2083)return!1;if(!t.allow_fragments&&e.includes("#"))return!1;if(!t.allow_query_components&&(e.includes("?")||e.includes("&")))return!1;var i,a,h,g,u,d,l,B;if(l=e.split("#"),e=l.shift(),l=e.split("?"),e=l.shift(),(l=e.split("://")).length>1){if(i=l.shift().toLowerCase(),t.require_valid_protocol&&-1===t.protocols.indexOf(i))return!1}else{if(t.require_protocol)return!1;if("//"===e.substr(0,2)){if(!t.allow_protocol_relative_urls)return!1;l[0]=e.substr(2)}}if(""===(e=l.join("://")))return!1;if(l=e.split("/"),""===(e=l.shift())&&!t.require_host)return!0;if((l=e.split("@")).length>1){if(t.disallow_auth)return!1;if(""===l[0])return!1;if((a=l.shift()).indexOf(":")>=0&&a.split(":").length>2)return!1;var p=a.split(":"),C=(m=2,function(e){if(Array.isArray(e))return e}(y=p)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var i=[],A=!0,r=!1,n=void 0;try{for(var o,a=e[Symbol.iterator]();!(A=(o=a.next()).done)&&(i.push(o.value),!t||i.length!==t);A=!0);}catch(e){r=!0,n=e}finally{try{A||null==a.return||a.return()}finally{if(r)throw n}}return i}}(y,m)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?s(e,t):void 0}}(y,m)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),Q=C[0],E=C[1];if(""===Q&&""===E)return!1}var y,m;g=l.join("@"),d=null,B=null;var b=g.match(I);b?(h="",B=b[1],d=b[2]||null):(l=g.split(":"),h=l.shift(),l.length&&(d=l.join(":")));if(null!==d&&d.length>0){if(u=parseInt(d,10),!/^[0-9]+$/.test(d)||u<=0||u>65535)return!1}else if(t.require_port)return!1;if(t.host_whitelist)return f(h,t.host_whitelist);if(!((0,n.default)(h)||(0,r.default)(h,t)||B&&(0,n.default)(B,6)))return!1;if(h=h||B,t.host_blacklist&&f(h,t.host_blacklist))return!1;return!0};var A=a(e("./util/assertString")),r=a(e("./isFQDN")),n=a(e("./isIP")),o=a(e("./util/merge"));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,A=new Array(t);i=0;i--)if(-1===t.indexOf(e[i]))return!1;return!0};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],311:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){(0,r.default)(e);var i=t?new RegExp("^[".concat(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"]+"),"g"):/^\s+/g;return e.replace(i,"")};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],312:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t,i){(0,r.default)(e),"[object RegExp]"!==Object.prototype.toString.call(t)&&(t=new RegExp(t,i));return t.test(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],313:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){t=(0,r.default)(t,n);var i=e.split("@"),A=i.pop(),f=[i.join("@"),A];if(f[1]=f[1].toLowerCase(),"gmail.com"===f[1]||"googlemail.com"===f[1]){if(t.gmail_remove_subaddress&&(f[0]=f[0].split("+")[0]),t.gmail_remove_dots&&(f[0]=f[0].replace(/\.+/g,I)),!f[0].length)return!1;(t.all_lowercase||t.gmail_lowercase)&&(f[0]=f[0].toLowerCase()),f[1]=t.gmail_convert_googlemaildotcom?"gmail.com":f[1]}else if(o.indexOf(f[1])>=0){if(t.icloud_remove_subaddress&&(f[0]=f[0].split("+")[0]),!f[0].length)return!1;(t.all_lowercase||t.icloud_lowercase)&&(f[0]=f[0].toLowerCase())}else if(a.indexOf(f[1])>=0){if(t.outlookdotcom_remove_subaddress&&(f[0]=f[0].split("+")[0]),!f[0].length)return!1;(t.all_lowercase||t.outlookdotcom_lowercase)&&(f[0]=f[0].toLowerCase())}else if(s.indexOf(f[1])>=0){if(t.yahoo_remove_subaddress){var h=f[0].split("-");f[0]=h.length>1?h.slice(0,-1).join("-"):h[0]}if(!f[0].length)return!1;(t.all_lowercase||t.yahoo_lowercase)&&(f[0]=f[0].toLowerCase())}else c.indexOf(f[1])>=0?((t.all_lowercase||t.yandex_lowercase)&&(f[0]=f[0].toLowerCase()),f[1]="yandex.ru"):t.all_lowercase&&(f[0]=f[0].toLowerCase());return f.join("@")};var A,r=(A=e("./util/merge"))&&A.__esModule?A:{default:A};var n={all_lowercase:!0,gmail_lowercase:!0,gmail_remove_dots:!0,gmail_remove_subaddress:!0,gmail_convert_googlemaildotcom:!0,outlookdotcom_lowercase:!0,outlookdotcom_remove_subaddress:!0,yahoo_lowercase:!0,yahoo_remove_subaddress:!0,yandex_lowercase:!0,icloud_lowercase:!0,icloud_remove_subaddress:!0},o=["icloud.com","me.com"],a=["hotmail.at","hotmail.be","hotmail.ca","hotmail.cl","hotmail.co.il","hotmail.co.nz","hotmail.co.th","hotmail.co.uk","hotmail.com","hotmail.com.ar","hotmail.com.au","hotmail.com.br","hotmail.com.gr","hotmail.com.mx","hotmail.com.pe","hotmail.com.tr","hotmail.com.vn","hotmail.cz","hotmail.de","hotmail.dk","hotmail.es","hotmail.fr","hotmail.hu","hotmail.id","hotmail.ie","hotmail.in","hotmail.it","hotmail.jp","hotmail.kr","hotmail.lv","hotmail.my","hotmail.ph","hotmail.pt","hotmail.sa","hotmail.sg","hotmail.sk","live.be","live.co.uk","live.com","live.com.ar","live.com.mx","live.de","live.es","live.eu","live.fr","live.it","live.nl","msn.com","outlook.at","outlook.be","outlook.cl","outlook.co.il","outlook.co.nz","outlook.co.th","outlook.com","outlook.com.ar","outlook.com.au","outlook.com.br","outlook.com.gr","outlook.com.pe","outlook.com.tr","outlook.com.vn","outlook.cz","outlook.de","outlook.dk","outlook.es","outlook.fr","outlook.hu","outlook.id","outlook.ie","outlook.in","outlook.it","outlook.jp","outlook.kr","outlook.lv","outlook.my","outlook.ph","outlook.pt","outlook.sa","outlook.sg","outlook.sk","passport.com"],s=["rocketmail.com","yahoo.ca","yahoo.co.uk","yahoo.com","yahoo.de","yahoo.fr","yahoo.in","yahoo.it","ymail.com"],c=["yandex.ru","yandex.ua","yandex.kz","yandex.com","yandex.by","ya.ru"];function I(e){return e.length>1?e:""}t.exports=i.default,t.exports.default=i.default},{"./util/merge":325}],314:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){if((0,r.default)(e),t){var i=new RegExp("[".concat(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"]+$"),"g");return e.replace(i,"")}var A=e.length-1;for(;/\s/.test(e.charAt(A));)A-=1;return e.slice(0,A+1)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],315:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){(0,A.default)(e);var i=t?"\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F":"\\x00-\\x1F\\x7F";return(0,r.default)(e,i)};var A=n(e("./util/assertString")),r=n(e("./blacklist"));function n(e){return e&&e.__esModule?e:{default:e}}t.exports=i.default,t.exports.default=i.default},{"./blacklist":230,"./util/assertString":323}],316:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){if((0,r.default)(e),t)return"1"===e||/^true$/i.test(e);return"0"!==e&&!/^false$/i.test(e)&&""!==e};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],317:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),e=Date.parse(e),isNaN(e)?null:new Date(e)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],318:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e)?parseFloat(e):NaN};var A,r=(A=e("./isFloat"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./isFloat":257}],319:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){return(0,r.default)(e),parseInt(e,t||10)};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],320:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){return(0,A.default)((0,r.default)(e,t),t)};var A=n(e("./rtrim")),r=n(e("./ltrim"));function n(e){return e&&e.__esModule?e:{default:e}}t.exports=i.default,t.exports.default=i.default},{"./ltrim":311,"./rtrim":314}],321:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){return(0,r.default)(e),e.replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(///g,"/").replace(/\/g,"\\").replace(/`/g,"`").replace(/&/g,"&")};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],322:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.iso7064Check=function(e){for(var t=10,i=0;i=0;A--){if(i){var r=2*parseInt(e[A],10);t+=r>9?r.toString().split("").map((function(e){return parseInt(e,10)})).reduce((function(e,t){return e+t}),0):r}else t+=parseInt(e[A],10);i=!i}return t%10==0},i.reverseMultiplyAndSum=function(e,t){for(var i=0,A=0;A0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var i in t)void 0===e[i]&&(e[i]=t[i]);return e},t.exports=i.default,t.exports.default=i.default},{}],326:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){var i=e.join("");return new RegExp(i,t)},t.exports=i.default,t.exports.default=i.default},{}],327:[function(e,t,i){"use strict";function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){"object"===A(e)&&null!==e?e="function"==typeof e.toString?e.toString():"[object Object]":(null==e||isNaN(e)&&!e.length)&&(e="");return String(e)},t.exports=i.default,t.exports.default=i.default},{}],328:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t){return(0,r.default)(e),e.replace(new RegExp("[^".concat(t,"]+"),"g"),"")};var A,r=(A=e("./util/assertString"))&&A.__esModule?A:{default:A};t.exports=i.default,t.exports.default=i.default},{"./util/assertString":323}],329:[function(e,t,i){t.exports={name:"doipjs",version:"0.17.1",description:"Decentralized Online Identity Proofs library in Node.js",main:"./src/index.js",dependencies:{"@openpgp/hkp-client":"^0.0.2","@openpgp/wkd-client":"^0.0.3","@xmpp/client":"^0.13.1","@xmpp/debug":"^0.13.0",axios:"^0.25.0","browser-or-node":"^1.3.0",cors:"^2.8.5",dotenv:"^8.2.0",express:"^4.17.1","express-validator":"^6.10.0","hash-wasm":"^4.9.0","irc-upd":"^0.11.0",jsdom:"^20.0.0","merge-options":"^3.0.3",openpgp:"^5.5.0","query-string":"^6.14.1","valid-url":"^1.0.9",validator:"^13.5.2"},devDependencies:{browserify:"^17.0.0","browserify-shim":"^3.8.14",chai:"^4.2.0","chai-as-promised":"^7.1.1","chai-match-pattern":"^1.2.0","clean-jsdoc-theme":"^3.2.4",husky:"^7.0.0",jsdoc:"^3.6.6","license-check-and-add":"^4.0.3","lint-staged":"^11.0.0",minify:"^9.1",mocha:"^9.2.0",nodemon:"^2.0.19",standard:"^16.0.3"},scripts:{release:"yarn run test && yarn run release:bundle && yarn run release:minify","release:bundle":"./node_modules/.bin/browserify ./src/index.js --standalone doip -x openpgp -x jsdom -x @xmpp/client -x @xmpp/debug -x irc-upd -o ./dist/doip.js","release:minify":"./node_modules/.bin/minify ./dist/doip.js > ./dist/doip.min.js","license:check":"./node_modules/.bin/license-check-and-add check","license:add":"./node_modules/.bin/license-check-and-add add","license:remove":"./node_modules/.bin/license-check-and-add remove","docs:lib":"./node_modules/.bin/jsdoc -c jsdoc-lib.json -r -d ./docs -P package.json","standard:check":"./node_modules/.bin/standard ./src","standard:fix":"./node_modules/.bin/standard --fix ./src",mocha:"./node_modules/.bin/mocha",test:"yarn run standard:check && yarn run license:check && yarn run mocha",proxy:"NODE_ENV=production node ./src/proxy/","proxy:dev":"NODE_ENV=development ./node_modules/.bin/nodemon ./src/proxy/",prepare:"husky install"},repository:{type:"git",url:"https://codeberg.org/keyoxide/doipjs"},homepage:"https://js.doip.rocks",keywords:["pgp","gpg","openpgp","encryption","decentralized","identity"],author:"Yarmo Mackenbach (https://yarmo.eu)",license:"Apache-2.0",browserify:{transform:["browserify-shim"]},"browserify-shim":{openpgp:"global:openpgp"}}},{}],330:[function(e,t,i){const A=e("validator"),r=e("valid-url"),n=e("merge-options"),o=e("./proofs"),a=e("./verifications"),s=e("./claimDefinitions"),c=e("./defaults"),I=e("./enums");t.exports=class{constructor(e,t){if("object"==typeof e&&"claimVersion"in e){const t=e;if(1!==t.claimVersion)throw new Error("Invalid claim version");return this._uri=t.uri,this._fingerprint=t.fingerprint,this._status=t.status,this._matches=t.matches,void(this._verification=t.verification)}if(e&&!r.isUri(e))throw new Error("Invalid URI");if(t)try{A.isAlphanumeric(t)}catch(e){throw new Error("Invalid fingerprint")}this._uri=e||null,this._fingerprint=t||null,this._status=I.ClaimStatus.INIT,this._matches=null,this._verification=null}get uri(){return this._uri}get fingerprint(){return this._fingerprint}get status(){return this._status}get matches(){if(this._status===I.ClaimStatus.INIT)throw new Error("This claim has not yet been matched");return this._matches}get verification(){if(this._status!==I.ClaimStatus.VERIFIED)throw new Error("This claim has not yet been verified");return this._verification}set uri(e){if(this._status!==I.ClaimStatus.INIT)throw new Error("Cannot change the URI, this claim has already been matched");if(e&&!r.isUri(e))throw new Error("The URI was invalid");e=e.replace(/^\s+|\s+$/g,""),this._uri=e}set fingerprint(e){if(this._status===I.ClaimStatus.VERIFIED)throw new Error("Cannot change the fingerprint, this claim has already been verified");this._fingerprint=e}set status(e){throw new Error("Cannot change a claim's status")}set matches(e){throw new Error("Cannot change a claim's matches")}set verification(e){throw new Error("Cannot change a claim's verification result")}match(){if(this._status!==I.ClaimStatus.INIT)throw new Error("This claim was already matched");if(null===this._uri)throw new Error("This claim has no URI");this._matches=[],s.list.every(((e,t)=>{const i=s.data[e];if(!i.reURI.test(this._uri))return!0;const A=i.processURI(this._uri);return!A||(A.match.isAmbiguous?(this._matches.push(A),!0):(this._matches=[A],!1))})),this._status=I.ClaimStatus.MATCHED}async verify(e){if(this._status===I.ClaimStatus.INIT)throw new Error("This claim has not yet been matched");if(this._status===I.ClaimStatus.VERIFIED)throw new Error("This claim has already been verified");if(null===this._fingerprint)throw new Error("This claim has no fingerprint");e=n(c.opts,e||{}),0===this._matches.length&&(this._verification={result:!1,completed:!0,proof:{},errors:["No matches for claim"]});for(let t=0;t1||this._matches[0].match.isAmbiguous}toJSON(){return{claimVersion:1,uri:this._uri,fingerprint:this._fingerprint,status:this._status,matches:this._matches,verification:this._verification}}}},{"./claimDefinitions":339,"./defaults":353,"./enums":354,"./proofs":366,"./verifications":369,"merge-options":172,"valid-url":227,validator:228}],331:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/(.*)\/?/;i.reURI=r,i.processURI=e=>({serviceprovider:{type:"web",name:"activitypub"},match:{regularExpression:r,isAmbiguous:!0},profile:{display:e,uri:e,qr:null},proof:{uri:e,request:{fetcher:A.Fetcher.ACTIVITYPUB,access:A.ProofAccess.GENERIC,format:A.ProofFormat.JSON,data:{url:e}}},claim:[{format:A.ClaimFormat.FINGERPRINT,relation:A.ClaimRelation.CONTAINS,path:["summary"]},{format:A.ClaimFormat.FINGERPRINT,relation:A.ClaimRelation.CONTAINS,path:["attachment","value"]}],functions:{postprocess:(e,t)=>(e.profile.display=`${t.result.preferredUsername}@${new URL(t.result.url).hostname}`,{claimData:e,proofData:t})}}),i.tests=[{uri:"https://domain.org",shouldMatch:!0},{uri:"https://domain.org/@/alice/",shouldMatch:!0},{uri:"https://domain.org/@alice",shouldMatch:!0},{uri:"https://domain.org/u/alice/",shouldMatch:!0},{uri:"https://domain.org/users/alice/",shouldMatch:!0},{uri:"http://domain.org/alice",shouldMatch:!1}]},{"../enums":354}],332:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/dev\.to\/(.*)\/(.*)\/?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"devto"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:t[1],uri:`https://dev.to/${t[1]}`,qr:null},proof:{uri:e,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.NOCORS,format:A.ProofFormat.JSON,data:{url:`https://dev.to/api/articles/${t[1]}/${t[2]}`,format:A.ProofFormat.JSON}}},claim:{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:["body_markdown"]}}},i.tests=[{uri:"https://dev.to/alice/post",shouldMatch:!0},{uri:"https://dev.to/alice/post/",shouldMatch:!0},{uri:"https://domain.org/alice/post",shouldMatch:!1}]},{"../enums":354}],333:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/(.*)\/u\/(.*)\/?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"discourse"},match:{regularExpression:r,isAmbiguous:!0},profile:{display:`${t[2]}@${t[1]}`,uri:e,qr:null},proof:{uri:e,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.NOCORS,format:A.ProofFormat.JSON,data:{url:`https://${t[1]}/u/${t[2]}.json`,format:A.ProofFormat.JSON}}},claim:{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:["user","bio_raw"]}}},i.tests=[{uri:"https://domain.org/u/alice",shouldMatch:!0},{uri:"https://domain.org/u/alice/",shouldMatch:!0},{uri:"https://domain.org/alice",shouldMatch:!1}]},{"../enums":354}],334:[function(e,t,i){const A=e("../enums"),r=/^dns:([a-zA-Z0-9.\-_]*)(?:\?(.*))?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"dns"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:t[1],uri:`https://${t[1]}`,qr:null},proof:{uri:null,request:{fetcher:A.Fetcher.DNS,access:A.ProofAccess.SERVER,format:A.ProofFormat.JSON,data:{domain:t[1]}}},claim:{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:["records","txt"]}}},i.tests=[{uri:"dns:domain.org",shouldMatch:!0},{uri:"dns:domain.org?type=TXT",shouldMatch:!0},{uri:"https://domain.org",shouldMatch:!1}]},{"../enums":354}],335:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/(.*)\/(.*)\/gitea_proof\/?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"gitea"},match:{regularExpression:r,isAmbiguous:!0},profile:{display:`${t[2]}@${t[1]}`,uri:`https://${t[1]}/${t[2]}`,qr:null},proof:{uri:e,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.NOCORS,format:A.ProofFormat.JSON,data:{url:`https://${t[1]}/api/v1/repos/${t[2]}/gitea_proof`,format:A.ProofFormat.JSON}}},claim:{format:A.ClaimFormat.URI,relation:A.ClaimRelation.EQUALS,path:["description"]}}},i.tests=[{uri:"https://domain.org/alice/gitea_proof",shouldMatch:!0},{uri:"https://domain.org/alice/gitea_proof/",shouldMatch:!0},{uri:"https://domain.org/alice/other_proof",shouldMatch:!1}]},{"../enums":354}],336:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/gist\.github\.com\/(.*)\/(.*)\/?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"github"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:t[1],uri:`https://github.com/${t[1]}`,qr:null},proof:{uri:e,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.GENERIC,format:A.ProofFormat.JSON,data:{url:`https://api.github.com/gists/${t[2]}`,format:A.ProofFormat.JSON}}},claim:{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:["files","openpgp.md","content"]}}},i.tests=[{uri:"https://gist.github.com/Alice/123456789",shouldMatch:!0},{uri:"https://gist.github.com/Alice/123456789/",shouldMatch:!0},{uri:"https://domain.org/Alice/123456789",shouldMatch:!1}]},{"../enums":354}],337:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/(.*)\/(.*)\/gitlab_proof\/?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"gitlab"},match:{regularExpression:r,isAmbiguous:!0},profile:{display:`${t[2]}@${t[1]}`,uri:`https://${t[1]}/${t[2]}`,qr:null},proof:{uri:e,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.GENERIC,format:A.ProofFormat.JSON,data:{url:`https://${t[1]}/api/v4/projects/${t[2]}%2Fgitlab_proof`,format:A.ProofFormat.JSON}}},claim:{format:A.ClaimFormat.URI,relation:A.ClaimRelation.EQUALS,path:["description"]}}},i.tests=[{uri:"https://gitlab.domain.org/alice/gitlab_proof",shouldMatch:!0},{uri:"https://gitlab.domain.org/alice/gitlab_proof/",shouldMatch:!0},{uri:"https://domain.org/alice/other_proof",shouldMatch:!1}]},{"../enums":354}],338:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/news\.ycombinator\.com\/user\?id=(.*)\/?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"hackernews"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:t[1],uri:e,qr:null},proof:{uri:`https://hacker-news.firebaseio.com/v0/user/${t[1]}.json`,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.NOCORS,format:A.ProofFormat.JSON,data:{url:`https://hacker-news.firebaseio.com/v0/user/${t[1]}.json`,format:A.ProofFormat.JSON}}},claim:{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:["about"]}}},i.tests=[{uri:"https://news.ycombinator.com/user?id=Alice",shouldMatch:!0},{uri:"https://news.ycombinator.com/user?id=Alice/",shouldMatch:!0},{uri:"https://domain.org/user?id=Alice",shouldMatch:!1}]},{"../enums":354}],339:[function(e,t,i){const A={dns:e("./dns"),irc:e("./irc"),xmpp:e("./xmpp"),matrix:e("./matrix"),telegram:e("./telegram"),twitter:e("./twitter"),reddit:e("./reddit"),liberapay:e("./liberapay"),lichess:e("./lichess"),hackernews:e("./hackernews"),lobsters:e("./lobsters"),devto:e("./devto"),gitea:e("./gitea"),gitlab:e("./gitlab"),github:e("./github"),activitypub:e("./activitypub"),mastodon:e("./mastodon"),pleroma:e("./pleroma"),discourse:e("./discourse"),owncast:e("./owncast"),stackexchange:e("./stackexchange")};i.list=Object.keys(A),i.data=A},{"./activitypub":331,"./devto":332,"./discourse":333,"./dns":334,"./gitea":335,"./github":336,"./gitlab":337,"./hackernews":338,"./irc":340,"./liberapay":341,"./lichess":342,"./lobsters":343,"./mastodon":344,"./matrix":345,"./owncast":346,"./pleroma":347,"./reddit":348,"./stackexchange":349,"./telegram":350,"./twitter":351,"./xmpp":352}],340:[function(e,t,i){const A=e("../enums"),r=/^irc:\/\/(.*)\/([a-zA-Z0-9\-[\]\\`_^{|}]*)/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"communication",name:"irc"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:`irc://${t[1]}/${t[2]}`,uri:e,qr:null},proof:{uri:null,request:{fetcher:A.Fetcher.IRC,access:A.ProofAccess.SERVER,format:A.ProofFormat.JSON,data:{domain:t[1],nick:t[2]}}},claim:{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:[]}}},i.tests=[{uri:"irc://chat.ircserver.org/Alice1",shouldMatch:!0},{uri:"irc://chat.ircserver.org/alice?param=123",shouldMatch:!0},{uri:"irc://chat.ircserver.org/alice_bob",shouldMatch:!0},{uri:"https://chat.ircserver.org/alice",shouldMatch:!1}]},{"../enums":354}],341:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/liberapay\.com\/(.*)\/?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"liberapay"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:t[1],uri:e,qr:null},proof:{uri:e,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.GENERIC,format:A.ProofFormat.JSON,data:{url:`https://liberapay.com/${t[1]}/public.json`,format:A.ProofFormat.JSON}}},claim:{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:["statements","content"]}}},i.tests=[{uri:"https://liberapay.com/alice",shouldMatch:!0},{uri:"https://liberapay.com/alice/",shouldMatch:!0},{uri:"https://domain.org/alice",shouldMatch:!1}]},{"../enums":354}],342:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/lichess\.org\/@\/(.*)\/?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"lichess"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:t[1],uri:e,qr:null},proof:{uri:`https://lichess.org/api/user/${t[1]}`,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.GENERIC,format:A.ProofFormat.JSON,data:{url:`https://lichess.org/api/user/${t[1]}`,format:A.ProofFormat.JSON}}},claim:{format:A.ClaimFormat.FINGERPRINT,relation:A.ClaimRelation.CONTAINS,path:["profile","links"]}}},i.tests=[{uri:"https://lichess.org/@/Alice",shouldMatch:!0},{uri:"https://lichess.org/@/Alice/",shouldMatch:!0},{uri:"https://domain.org/@/Alice",shouldMatch:!1}]},{"../enums":354}],343:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/lobste\.rs\/u\/(.*)\/?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"lobsters"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:t[1],uri:e,qr:null},proof:{uri:`https://lobste.rs/u/${t[1]}.json`,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.NOCORS,format:A.ProofFormat.JSON,data:{url:`https://lobste.rs/u/${t[1]}.json`,format:A.ProofFormat.JSON}}},claim:{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:["about"]}}},i.tests=[{uri:"https://lobste.rs/u/Alice",shouldMatch:!0},{uri:"https://lobste.rs/u/Alice/",shouldMatch:!0},{uri:"https://domain.org/u/Alice",shouldMatch:!1}]},{"../enums":354}],344:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/(.*)\/@(.*)\/?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"mastodon"},match:{regularExpression:r,isAmbiguous:!0},profile:{display:`@${t[2]}@${t[1]}`,uri:e,qr:null},proof:{uri:e,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.GENERIC,format:A.ProofFormat.JSON,data:{url:e,format:A.ProofFormat.JSON}}},claim:{format:A.ClaimFormat.FINGERPRINT,relation:A.ClaimRelation.CONTAINS,path:["attachment","value"]}}},i.tests=[{uri:"https://domain.org/@alice",shouldMatch:!0},{uri:"https://domain.org/@alice/",shouldMatch:!0},{uri:"https://domain.org/alice",shouldMatch:!1}]},{"../enums":354}],345:[function(e,t,i){const A=e("../enums"),r=e("query-string"),n=/^matrix:u\/(?:@)?([^@:]*:[^?]*)(\?.*)?/;i.reURI=n,i.processURI=e=>{const t=e.match(n);if(!t[2])return null;const i=r.parse(t[2]);if(!("org.keyoxide.e"in i)||!("org.keyoxide.r"in i))return null;const o=`https://matrix.to/#/@${t[1]}`,a=`https://matrix.to/#/${i["org.keyoxide.r"]}/${i["org.keyoxide.e"]}`;return{serviceprovider:{type:"communication",name:"matrix"},match:{regularExpression:n,isAmbiguous:!1},profile:{display:`@${t[1]}`,uri:o,qr:null},proof:{uri:a,request:{fetcher:A.Fetcher.MATRIX,access:A.ProofAccess.GRANTED,format:A.ProofFormat.JSON,data:{eventId:i["org.keyoxide.e"],roomId:i["org.keyoxide.r"]}}},claim:{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:["content","body"]}}},i.tests=[{uri:"matrix:u/alice:matrix.domain.org?org.keyoxide.r=!123:domain.org&org.keyoxide.e=$123",shouldMatch:!0},{uri:"matrix:u/alice:matrix.domain.org",shouldMatch:!0},{uri:"xmpp:alice@domain.org",shouldMatch:!1},{uri:"https://domain.org/@alice",shouldMatch:!1}]},{"../enums":354,"query-string":194}],346:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/(.*)/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"owncast"},match:{regularExpression:r,isAmbiguous:!0},profile:{display:t[1],uri:e,qr:null},proof:{uri:`${e}/api/config`,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.GENERIC,format:A.ProofFormat.JSON,data:{url:`${e}/api/config`,format:A.ProofFormat.JSON}}},claim:{format:A.ClaimFormat.FINGERPRINT,relation:A.ClaimRelation.CONTAINS,path:["socialHandles","url"]}}},i.tests=[{uri:"https://live.domain.org",shouldMatch:!0},{uri:"https://live.domain.org/",shouldMatch:!0},{uri:"https://domain.org/live",shouldMatch:!0},{uri:"https://domain.org/live/",shouldMatch:!0}]},{"../enums":354}],347:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/(.*)\/users\/(.*)\/?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"pleroma"},match:{regularExpression:r,isAmbiguous:!0},profile:{display:`@${t[2]}@${t[1]}`,uri:e,qr:null},proof:{uri:e,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.GENERIC,format:A.ProofFormat.JSON,data:{url:e,format:A.ProofFormat.JSON}}},claim:{format:A.ClaimFormat.FINGERPRINT,relation:A.ClaimRelation.CONTAINS,path:["summary"]}}},i.tests=[{uri:"https://domain.org/users/alice",shouldMatch:!0},{uri:"https://domain.org/users/alice/",shouldMatch:!0},{uri:"https://domain.org/alice",shouldMatch:!1}]},{"../enums":354}],348:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/(?:www\.)?reddit\.com\/user\/(.*)\/comments\/(.*)\/(.*)\/?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"reddit"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:t[1],uri:`https://www.reddit.com/user/${t[1]}`,qr:null},proof:{uri:e,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.NOCORS,format:A.ProofFormat.JSON,data:{url:`https://www.reddit.com/user/${t[1]}/comments/${t[2]}.json`,format:A.ProofFormat.JSON}}},claim:{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:["data","children","data","selftext"]}}},i.tests=[{uri:"https://www.reddit.com/user/Alice/comments/123456/post",shouldMatch:!0},{uri:"https://www.reddit.com/user/Alice/comments/123456/post/",shouldMatch:!0},{uri:"https://reddit.com/user/Alice/comments/123456/post",shouldMatch:!0},{uri:"https://reddit.com/user/Alice/comments/123456/post/",shouldMatch:!0},{uri:"https://domain.org/user/Alice/comments/123456/post",shouldMatch:!1}]},{"../enums":354}],349:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/(.*(?:askubuntu|mathoverflow|serverfault|stackapps|stackoverflow|superuser)|.+\.stackexchange)\.com\/users\/(\d+)/,n=/\.stackexchange$/;i.reURI=r,i.processURI=e=>{const[,t,i]=e.match(r),o=t.replace(n,"");return{serviceprovider:{type:"web",name:"stackexchange"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:`${i}@${o}`,uri:e,qr:null},proof:{uri:`https://${t}.com/users/${i}?tab=profile`,request:{fetcher:A.Fetcher.HTTP,access:A.ProofAccess.GENERIC,format:A.ProofFormat.JSON,data:{url:`https://api.stackexchange.com/2.3/users/${i}?site=${o}&filter=!AH)b5JqVyImf`,format:A.ProofFormat.JSON}}},claim:{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:["items","about_me"]}}},i.tests=[{uri:"https://stackoverflow.com/users/1234",shouldMatch:!0},{uri:"https://stackoverflow.com/users/1234/alice",shouldMatch:!0},{uri:"https://stackoverflow.com/users/1234?tab=topactivity",shouldMatch:!0},{uri:"https://stackoverflow.com/users/1234/alice?tab=profile",shouldMatch:!0},{uri:"https://meta.stackoverflow.com/users/1234",shouldMatch:!0},{uri:"https://pt.stackoverflow.com/users/1234",shouldMatch:!0},{uri:"https://pt.meta.stackoverflow.com/users/1234",shouldMatch:!0},{uri:"https://serverfault.com/users/1234",shouldMatch:!0},{uri:"https://meta.stackexchange.com/users/1234",shouldMatch:!0},{uri:"https://gaming.meta.stackexchange.com/users/1234",shouldMatch:!0},{uri:"https://stackexchange.com/users/1234",shouldMatch:!1},{uri:"https://domain.com/users/1234",shouldMatch:!1},{uri:"https://meta.domain.com/users/1234",shouldMatch:!1}]},{"../enums":354}],350:[function(e,t,i){const A=e("../enums"),r=/https:\/\/t.me\/([A-Za-z0-9_]{5,32})\?proof=([A-Za-z0-9_]{5,32})/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"communication",name:"telegram"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:`@${t[1]}`,uri:`https://t.me/${t[1]}`,qr:`https://t.me/${t[1]}`},proof:{uri:`https://t.me/${t[2]}`,request:{fetcher:A.Fetcher.TELEGRAM,access:A.ProofAccess.GRANTED,format:A.ProofFormat.JSON,data:{user:t[1],chat:t[2]}}},claim:{format:A.ClaimFormat.URI,relation:A.ClaimRelation.EQUALS,path:["text"]}}},i.tests=[{uri:"https://t.me/alice?proof=foobar",shouldMatch:!0},{uri:"https://t.me/complex_user_1234?proof=complex_chat_1234",shouldMatch:!0},{uri:"https://t.me/foobar",shouldMatch:!1},{uri:"https://t.me/foobar?proof=",shouldMatch:!1},{uri:"https://t.me/?proof=foobar",shouldMatch:!1}]},{"../enums":354}],351:[function(e,t,i){const A=e("../enums"),r=/^https:\/\/twitter\.com\/(.*)\/status\/([0-9]*)(?:\?.*)?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"web",name:"twitter"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:`@${t[1]}`,uri:`https://twitter.com/${t[1]}`,qr:null},proof:{uri:e,request:{fetcher:A.Fetcher.TWITTER,access:A.ProofAccess.GRANTED,format:A.ProofFormat.TEXT,data:{tweetId:t[2]}}},claim:{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:[]}}},i.tests=[{uri:"https://twitter.com/alice/status/1234567890123456789",shouldMatch:!0},{uri:"https://twitter.com/alice/status/1234567890123456789/",shouldMatch:!0},{uri:"https://domain.org/alice/status/1234567890123456789",shouldMatch:!1}]},{"../enums":354}],352:[function(e,t,i){const A=e("../enums"),r=/^xmpp:([a-zA-Z0-9.\-_]*)@([a-zA-Z0-9.\-_]*)(?:\?(.*))?/;i.reURI=r,i.processURI=e=>{const t=e.match(r);return{serviceprovider:{type:"communication",name:"xmpp"},match:{regularExpression:r,isAmbiguous:!1},profile:{display:`${t[1]}@${t[2]}`,uri:e,qr:e},proof:{uri:null,request:{fetcher:A.Fetcher.XMPP,access:A.ProofAccess.SERVER,format:A.ProofFormat.TEXT,data:{id:`${t[1]}@${t[2]}`,field:"note"}}},claim:{format:A.ClaimFormat.URI,relation:A.ClaimRelation.CONTAINS,path:[]}}},i.tests=[{uri:"xmpp:alice@domain.org",shouldMatch:!0},{uri:"xmpp:alice@domain.org?omemo-sid-123456789=A1B2C3D4E5F6G7H8I9",shouldMatch:!0},{uri:"https://domain.org",shouldMatch:!1}]},{"../enums":354}],353:[function(e,t,i){const A={proxy:{hostname:null,policy:e("./enums").ProxyPolicy.NEVER},claims:{irc:{nick:null},matrix:{instance:null,accessToken:null},xmpp:{service:null,username:null,password:null},twitter:{bearerToken:null},activitypub:{acct:null,privateKey:null}}};i.opts=A},{"./enums":354}],354:[function(e,t,i){const A={ADAPTIVE:"adaptive",ALWAYS:"always",NEVER:"never"};Object.freeze(A);const r={ACTIVITYPUB:"activitypub",DNS:"dns",HTTP:"http",IRC:"irc",MATRIX:"matrix",TELEGRAM:"telegram",TWITTER:"twitter",XMPP:"xmpp"};Object.freeze(r);const n={GENERIC:0,NOCORS:1,GRANTED:2,SERVER:3};Object.freeze(n);const o={JSON:"json",TEXT:"text"};Object.freeze(o);const a={URI:0,FINGERPRINT:1};Object.freeze(a);const s={CONTAINS:0,EQUALS:1,ONEOF:2};Object.freeze(s);const c={INIT:"init",MATCHED:"matched",VERIFIED:"verified"};Object.freeze(c),i.ProxyPolicy=A,i.Fetcher=r,i.ProofAccess=n,i.ProofFormat=o,i.ClaimFormat=a,i.ClaimRelation=s,i.ClaimStatus=c},{}],355:[function(e,t,i){const A=e("axios"),r=e("validator"),n=e("browser-or-node");t.exports.timeout=5e3,t.exports.fn=async(i,o)=>{let a,s;n.isNode&&(a=e("crypto"));const c=new Promise(((e,A)=>{s=setTimeout((()=>A(new Error("Request was timed out"))),i.fetcherTimeout?i.fetcherTimeout:t.exports.timeout)})),I=new Promise(((e,t)=>{(async()=>{let s=!1;try{r.isURL(o.claims.activitypub.url),s=!0}catch(e){}const c=new Date,{host:I,pathname:f,search:h}=new URL(i.url),g={host:I,date:c.toUTCString(),accept:"application/activity+json"};if(s&&n.isNode){const e=`(request-target): get ${f}${h}\nhost: ${I}\ndate: ${c.toUTCString()}`,t=a.createSign("SHA256");t.write(e),t.end();const i=t.sign(o.claims.activitypub.privateKey.replace(/\\n/g,"\n"),"base64");g.signature=`keyId="${o.claims.activitypub.url}#main-key",headers="(request-target) host date",signature="${i}",algorithm="rsa-sha256"`}A.get(i.url,{headers:g}).then((e=>e.data)).then((t=>{e(t)})).catch((e=>{t(e)}))})()}));return Promise.race([I,c]).then((e=>(clearTimeout(s),e)))}},{axios:17,"browser-or-node":49,crypto:106,validator:228}],356:[function(e,t,i){const A=e("browser-or-node");if(t.exports.timeout=5e3,A.isNode){const i=e("dns");t.exports.fn=async(e,A)=>{let r;const n=new Promise(((i,A)=>{r=setTimeout((()=>A(new Error("Request was timed out"))),e.fetcherTimeout?e.fetcherTimeout:t.exports.timeout)})),o=new Promise(((t,A)=>{i.resolveTxt(e.domain,((i,r)=>{i?A(i):t({domain:e.domain,records:{txt:r}})}))}));return Promise.race([o,n]).then((e=>(clearTimeout(r),e)))}}else t.exports.fn=null},{"browser-or-node":49,dns:96}],357:[function(e,t,i){const A=e("axios"),r=e("../enums");t.exports.timeout=5e3,t.exports.fn=async(i,n)=>{let o;const a=new Promise(((e,A)=>{o=setTimeout((()=>A(new Error("Request was timed out"))),i.fetcherTimeout?i.fetcherTimeout:t.exports.timeout)})),s=new Promise(((t,n)=>{if(i.url)switch(i.format){case r.ProofFormat.JSON:A.get(i.url,{headers:{Accept:"application/json","User-Agent":`doipjs/${e("../../package.json").version}`},validateStatus:function(e){return e>=200&&e<400}}).then((e=>{t(e.data)})).catch((e=>{n(e)}));break;case r.ProofFormat.TEXT:A.get(i.url,{validateStatus:function(e){return e>=200&&e<400},responseType:"text"}).then((e=>{t(e.data)})).catch((e=>{n(e)}));break;default:n(new Error("No specified data format"))}else n(new Error("No valid URI provided"))}));return Promise.race([s,a]).then((e=>(clearTimeout(o),e)))}},{"../../package.json":329,"../enums":354,axios:17}],358:[function(e,t,i){i.activitypub=e("./activitypub"),i.dns=e("./dns"),i.http=e("./http"),i.irc=e("./irc"),i.matrix=e("./matrix"),i.telegram=e("./telegram"),i.twitter=e("./twitter"),i.xmpp=e("./xmpp")},{"./activitypub":355,"./dns":356,"./http":357,"./irc":359,"./matrix":360,"./telegram":361,"./twitter":362,"./xmpp":363}],359:[function(e,t,i){const A=e("browser-or-node");if(t.exports.timeout=2e4,A.isNode){const i=e("irc-upd"),A=e("validator");t.exports.fn=async(e,r)=>{let n;const o=new Promise(((i,A)=>{n=setTimeout((()=>A(new Error("Request was timed out"))),e.fetcherTimeout?e.fetcherTimeout:t.exports.timeout)})),a=new Promise(((t,n)=>{try{A.isAscii(r.claims.irc.nick)}catch(e){throw new Error(`IRC fetcher was not set up properly (${e.message})`)}try{const A=new i.Client(e.domain,r.claims.irc.nick,{port:6697,secure:!0,channels:[],showErrors:!1,debug:!1}),n=/[a-zA-Z0-9\-_]+\s+:\s(openpgp4fpr:.*)/,o=/End\sof\s.*\staxonomy./,a=[];A.addListener("registered",(t=>{A.send(`PRIVMSG NickServ TAXONOMY ${e.nick}`)})),A.addListener("notice",((e,i,r,s)=>{if(n.test(r)){const e=r.match(n);a.push(e[1])}o.test(r)&&(A.disconnect(),t(a))}))}catch(e){n(e)}}));return Promise.race([a,o]).then((e=>(clearTimeout(n),e)))}}else t.exports.fn=null},{"browser-or-node":49,"irc-upd":"irc-upd",validator:228}],360:[function(e,t,i){const A=e("axios"),r=e("validator");t.exports.timeout=5e3,t.exports.fn=async(e,i)=>{let n;const o=new Promise(((i,A)=>{n=setTimeout((()=>A(new Error("Request was timed out"))),e.fetcherTimeout?e.fetcherTimeout:t.exports.timeout)})),a=new Promise(((t,n)=>{try{r.isFQDN(i.claims.matrix.instance),r.isAscii(i.claims.matrix.accessToken)}catch(e){throw new Error(`Matrix fetcher was not set up properly (${e.message})`)}const o=`https://${i.claims.matrix.instance}/_matrix/client/r0/rooms/${e.roomId}/event/${e.eventId}?access_token=${i.claims.matrix.accessToken}`;A.get(o,{headers:{Accept:"application/json"}}).then((e=>e.data)).then((e=>{t(e)})).catch((e=>{n(e)}))}));return Promise.race([a,o]).then((e=>(clearTimeout(n),e)))}},{axios:17,validator:228}],361:[function(e,t,i){const A=e("axios"),r=e("validator");t.exports.timeout=5e3,t.exports.fn=async(i,n)=>{let o;const a=new Promise(((e,A)=>{o=setTimeout((()=>A(new Error("Request was timed out"))),i.fetcherTimeout?i.fetcherTimeout:t.exports.timeout)})),s=t=>new Promise(((o,a)=>{try{r.isAscii(n.claims.telegram.token)}catch(e){throw new Error(`Telegram fetcher was not set up properly (${e.message})`)}if(!i.chat||!i.user)return void a(new Error("Both chat name and user name must be provided"));const s=`https://api.telegram.org/bot${n.claims.telegram.token}/${t}?chat_id=@${i.chat}`;A.get(s,{headers:{Accept:"application/json","User-Agent":`doipjs/${e("../../package.json").version}`},validateStatus:e=>200===e}).then((e=>o(e.data))).catch((e=>a(e)))})),c=s("getChatAdministrators").then((e=>{if(!e.ok)throw new Error("Request to get chat administrators failed");return s("getChat").then((t=>{if(!t.ok)throw new Error("Request to get chat info failed");let A;for(const t of e.result)"creator"===t.status&&(A=t.user.username);if(!t.result.description)throw new Error("There is no chat description");if(A!==i.user)throw new Error("User doesn't match");return{user:A,text:t.result.description}}))}));return Promise.race([c,a]).then((e=>(clearTimeout(o),e)))}},{"../../package.json":329,axios:17,validator:228}],362:[function(e,t,i){const A=e("axios"),r=e("validator");t.exports.timeout=5e3,t.exports.fn=async(e,i)=>{let n;const o=new Promise(((i,A)=>{n=setTimeout((()=>A(new Error("Request was timed out"))),e.fetcherTimeout?e.fetcherTimeout:t.exports.timeout)})),a=new Promise(((t,n)=>{try{r.isAscii(i.claims.twitter.bearerToken)}catch(e){throw new Error(`Twitter fetcher was not set up properly (${e.message})`)}A.get(`https://api.twitter.com/1.1/statuses/show.json?id=${e.tweetId}&tweet_mode=extended`,{headers:{Accept:"application/json",Authorization:`Bearer ${i.claims.twitter.bearerToken}`}}).then((e=>e.data)).then((e=>{t(e.full_text)})).catch((e=>{n(e)}))}));return Promise.race([a,o]).then((e=>(clearTimeout(n),e)))}},{axios:17,validator:228}],363:[function(e,t,i){(function(i){(function(){const A=e("browser-or-node");if(t.exports.timeout=5e3,A.isNode){const A=e("jsdom"),{client:r,xml:n}=e("@xmpp/client"),o=e("@xmpp/debug"),a=e("validator");let s=null,c=null;const I=async(e,t,A)=>new Promise(((n,a)=>{const s=r({service:e,username:t,password:A});"production"!==i.env.NODE_ENV&&o(s,!0);const{iqCaller:c}=s;s.start(),s.on("online",(e=>{n({xmpp:s,iqCaller:c})})),s.on("error",(e=>{a(e)}))}));t.exports.fn=async(e,i)=>{try{a.isFQDN(i.claims.xmpp.service),a.isAscii(i.claims.xmpp.username),a.isAscii(i.claims.xmpp.password)}catch(e){throw new Error(`XMPP fetcher was not set up properly (${e.message})`)}if(!s||"online"!==s.status){const e=await I(i.claims.xmpp.service,i.claims.xmpp.username,i.claims.xmpp.password);s=e.xmpp,c=e.iqCaller}const r=(await c.request(n("iq",{type:"get",to:e.id},n("vCard","vcard-temp")),3e4)).getChild("vCard","vcard-temp").toString(),o=new A.JSDOM(r);let f;const h=new Promise(((i,A)=>{f=setTimeout((()=>A(new Error("Request was timed out"))),e.fetcherTimeout?e.fetcherTimeout:t.exports.timeout)})),g=new Promise(((t,i)=>{try{let i;switch(e.field.toLowerCase()){case"desc":case"note":if(i=o.window.document.querySelector("note text"),i||(i=o.window.document.querySelector("note")),i||(i=o.window.document.querySelector("DESC")),!i)throw new Error("No DESC or NOTE field found in vCard");i=i.textContent;break;default:i=o.window.document.querySelector(e).textContent}s.stop(),t(i)}catch(e){i(e)}}));return Promise.race([g,h]).then((e=>(clearTimeout(f),e)))}}else t.exports.fn=null}).call(this)}).call(this,e("_process"))},{"@xmpp/client":"@xmpp/client","@xmpp/debug":"@xmpp/debug",_process:187,"browser-or-node":49,jsdom:"jsdom",validator:228}],364:[function(e,t,i){const A=e("./claim"),r=e("./claimDefinitions"),n=e("./proofs"),o=e("./keys"),a=e("./signatures"),s=e("./enums"),c=e("./defaults"),I=e("./utils"),f=e("./verifications");i.Claim=A,i.claimDefinitions=r,i.proofs=n,i.keys=o,i.signatures=a,i.enums=s,i.defaults=c,i.utils=I,i.verifications=f},{"./claim":330,"./claimDefinitions":339,"./defaults":353,"./enums":354,"./keys":365,"./proofs":366,"./signatures":367,"./utils":368,"./verifications":369}],365:[function(e,t,i){(function(t){(function(){const A=e("axios"),r=e("valid-url"),n="undefined"!=typeof window?window.openpgp:void 0!==t?t.openpgp:null,o=e("@openpgp/hkp-client"),a=e("@openpgp/wkd-client"),s=e("./claim"),c=async(e,t)=>{const i=new o(t?`https://${t}`:"https://keys.openpgp.org"),A={query:e},r=await i.lookup(A).catch((e=>{throw new Error(`Key does not exist or could not be fetched (${e})`)}));if(!r)throw new Error("Key does not exist or could not be fetched");return await n.readKey({armoredKey:r}).catch((e=>{throw new Error(`Key could not be read (${e})`)}))},I=async e=>{const t=new a,i={email:e},A=await t.lookup(i).catch((e=>{throw new Error(`Key does not exist or could not be fetched (${e})`)}));if(!A)throw new Error("Key does not exist or could not be fetched");return await n.readKey({binaryKey:A}).catch((e=>{throw new Error(`Key could not be read (${e})`)}))},f=async(e,t)=>{const i=`https://keybase.io/${e}/pgp_keys.asc?fingerprint=${t}`;let r;try{r=await A.get(i,{responseType:"text"}).then((e=>{if(200===e.status)return e})).then((e=>e.data))}catch(e){throw new Error(`Error fetching Keybase key: ${e.message}`)}return await n.readKey({armoredKey:r}).catch((e=>{throw new Error(`Key does not exist or could not be fetched (${e})`)}))},h=async e=>await n.readKey({armoredKey:e}).catch((e=>{throw new Error(`Key could not be read (${e})`)}));i.fetchHKP=c,i.fetchWKD=I,i.fetchKeybase=f,i.fetchPlaintext=h,i.fetchURI=async e=>{if(!r.isUri(e))throw new Error("Invalid URI");const t=e.match(/([a-zA-Z0-9]*):([a-zA-Z0-9@._=+-]*)(?::([a-zA-Z0-9@._=+-]*))?/);if(!t[1])throw new Error("Invalid URI");switch(t[1]){case"hkp":return await c(t[3]?t[3]:t[2],t[3]?t[2]:null);case"wkd":return await I(t[2]);case"kb":return await f(t[2],t.length>=4?t[3]:null);default:throw new Error("Invalid URI protocol")}},i.fetch=async e=>{const t=e.match(/([a-zA-Z0-9@._=+-]*)(?::([a-zA-Z0-9@._=+-]*))?/);let i=null;if(!i)try{i=await h(e)}catch(e){}if(!i&&e.includes("@"))try{i=await I(t[1])}catch(e){}if(i||(i=await c(t[2]?t[2]:t[1],t[2]?t[1]:null)),!i)throw new Error("Key does not exist or could not be fetched");return i},i.process=async e=>{if(!(e&&e instanceof n.PublicKey))throw new Error("Invalid public key");const t=e.getFingerprint(),i=await e.getPrimaryUser(),A=e.users,r=[];return A.forEach(((e,A)=>{if(r[A]={userData:{id:e.userID?e.userID.userID:null,name:e.userID?e.userID.name:null,email:e.userID?e.userID.email:null,comment:e.userID?e.userID.comment:null,isPrimary:i.index===A,isRevoked:!1},claims:[]},"selfCertifications"in e&&e.selfCertifications.length>0){const i=e.selfCertifications[0],n=i.rawNotations;r[A].claims=n.filter((({name:e,humanReadable:t})=>t&&("proof@ariadne.id"===e||"proof@metacode.biz"===e))).map((({value:e})=>new s((new TextDecoder).decode(e),t))),r[A].userData.isRevoked=i.revoked}})),{fingerprint:t,users:r,primaryUserIndex:i.index,key:{data:e,fetchMethod:null,uri:null}}}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./claim":330,"@openpgp/hkp-client":1,"@openpgp/wkd-client":2,axios:17,"valid-url":227}],366:[function(e,t,i){const A=e("browser-or-node"),r=e("./fetcher"),n=e("./utils"),o=e("./enums"),a=(e,t)=>{switch(t.proxy.policy){case o.ProxyPolicy.ALWAYS:return I(e,t);case o.ProxyPolicy.NEVER:switch(e.proof.request.access){case o.ProofAccess.GENERIC:case o.ProofAccess.GRANTED:return c(e,t);case o.ProofAccess.NOCORS:case o.ProofAccess.SERVER:throw new Error("Impossible to fetch proof (bad combination of service access and proxy policy)");default:throw new Error("Invalid proof access value")}case o.ProxyPolicy.ADAPTIVE:switch(e.proof.request.access){case o.ProofAccess.GENERIC:return f(e,t);case o.ProofAccess.NOCORS:return I(e,t);case o.ProofAccess.GRANTED:return f(e,t);case o.ProofAccess.SERVER:return I(e,t);default:throw new Error("Invalid proof access value")}default:throw new Error("Invalid proxy policy")}},s=(e,t)=>{switch(t.proxy.policy){case o.ProxyPolicy.ALWAYS:return I(e,t);case o.ProxyPolicy.NEVER:return c(e,t);case o.ProxyPolicy.ADAPTIVE:return f(e,t);default:throw new Error("Invalid proxy policy")}},c=(e,t)=>new Promise(((i,A)=>{r[e.proof.request.fetcher].fn(e.proof.request.data,t).then((t=>i({fetcher:e.proof.request.fetcher,data:e,viaProxy:!1,result:t}))).catch((e=>A(e)))})),I=(e,t)=>new Promise(((i,A)=>{let o;try{o=n.generateProxyURL(e.proof.request.fetcher,e.proof.request.data,t)}catch(e){A(e)}const a={url:o,format:e.proof.request.format,fetcherTimeout:r[e.proof.request.fetcher].timeout};r.http.fn(a,t).then((t=>i({fetcher:"http",data:e,viaProxy:!0,result:t}))).catch((e=>A(e)))})),f=(e,t)=>new Promise(((i,A)=>{c(e,t).then((e=>i(e))).catch((r=>{I(e,t).then((e=>i(e))).catch((e=>A(e)))}))}));i.fetch=(e,t)=>{if(e.proof.request.fetcher===o.Fetcher.HTTP)e.proof.request.data.format=e.proof.request.format;return A.isNode?s(e,t):a(e,t)}},{"./enums":354,"./fetcher":358,"./utils":368,"browser-or-node":49}],367:[function(e,t,i){(function(t){(function(){const A="undefined"!=typeof window?window.openpgp:void 0!==t?t.openpgp:null,r=e("./claim"),n=e("./keys");i.process=async e=>{let t;const i={fingerprint:null,users:[{userData:{},claims:[]}],primaryUserIndex:null,key:{data:null,fetchMethod:null,uri:null}};try{t=await A.readCleartextMessage({cleartextMessage:e})}catch(e){throw new Error(`Signature could not be read (${e.message})`)}const o=t.signature.packets[0].issuerKeyID.toHex(),a=t.signature.packets[0].signersUserID,s=t.signature.packets[0].preferredKeyServer||"https://keys.openpgp.org/",c=t.getText(),I=[];if(c.split("\n").forEach(((e,t)=>{const A=e.match(/^([a-zA-Z0-9]*)=(.*)$/i);if(A)switch(A[1].toLowerCase()){case"key":I.push(A[2]);break;case"proof":i.users[0].claims.push(new r(A[2]))}})),I.length>0)try{i.key.uri=I[0],i.key.data=await n.fetchURI(i.key.uri),i.key.fetchMethod=i.key.uri.split(":")[0]}catch(e){}if(!i.key.data&&a)try{i.key.uri=`wkd:${a}`,i.key.data=await n.fetchURI(i.key.uri),i.key.fetchMethod="wkd"}catch(e){}if(!i.key.data)try{const e=s.match(/^(.*:\/\/)?([^/]*)(?:\/)?$/i);i.key.uri=`hkp:${e[2]}:${o||a}`,i.key.data=await n.fetchURI(i.key.uri),i.key.fetchMethod="hkp"}catch(e){throw new Error("Public key not found")}const f=await A.verify({message:t,verificationKeys:i.key.data}),{verified:h}=f.signatures[0];try{await h}catch(e){throw new Error(`Signature could not be verified (${e.message})`)}i.fingerprint=i.key.data.keyPacket.getFingerprint(),i.users[0].claims.forEach((e=>{e.fingerprint=i.fingerprint}));const g=await i.key.data.getPrimaryUser();let u;return a&&i.key.data.users.forEach((e=>{e.userID.email===a&&(u=e)})),u||(u=g.user),i.users[0].userData={id:u.userID?u.userID.userID:null,name:u.userID?u.userID.name:null,email:u.userID?u.userID.email:null,comment:u.userID?u.userID.comment:null,isPrimary:g.user.userID.userID===u.userID.userID},i.primaryUserIndex=i.users[0].userData.isPrimary?0:null,i}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./claim":330,"./keys":365}],368:[function(e,t,i){const A=e("validator"),r=e("./enums");i.generateProxyURL=(e,t,i)=>{try{A.isFQDN(i.proxy.hostname)}catch(e){throw new Error("Invalid proxy hostname")}const r=[];return Object.keys(t).forEach((e=>{r.push(`${e}=${encodeURIComponent(t[e])}`)})),`https://${i.proxy.hostname}/api/2/get/${e}?${r.join("&")}`},i.generateClaim=(e,t)=>{switch(t){case r.ClaimFormat.URI:return`openpgp4fpr:${e}`;case r.ClaimFormat.FINGERPRINT:return e;default:throw new Error("No valid claim format")}},i.getUriFromString=e=>{const t=e.match(/((([A-Za-z0-9]+:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www\.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w\-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[.!/\\\w]*))?)/gi),i=[];return t?(t.forEach((e=>{let t=!0;for(;t;){const i=e.charAt(e.length-1);-1!=="?!.".indexOf(i)?e=e.substring(0,e.length-1):t=!1}i.push(e)})),i):[]}},{"./enums":354,validator:228}],369:[function(e,t,i){const A=e("./utils"),r=e("./enums"),{bcryptVerify:n,argon2Verify:o}=e("hash-wasm"),a=async(e,t,i)=>{const a=A.generateClaim(t,i),s=A.generateClaim(t,r.ClaimFormat.URI);let c=!1;if(c=-1!==e.replace(/\r?\n|\r/g,"").toLowerCase().indexOf(a.toLowerCase()),!c){const t=/\$(argon2(?:id|d|i)|2a|2b|2y)(?:\$[a-zA-Z0-9=+\-,./]+)+/g;let i;for(;!c&&null!=(i=t.exec(e));){let e;const t=new Promise(((t,i)=>{e=setTimeout((()=>{t(!1)}),1e3)}));switch(i[1]){case"2a":case"2b":case"2y":try{if(parseInt(i[0].split("$")[2])>12)continue;const A=n({password:s,hash:i[0]}).then((e=>e)).catch((e=>!1));c=await Promise.race([A,t]).then((t=>(clearTimeout(e),t)))}catch(e){c=!1}break;case"argon2":case"argon2i":case"argon2d":case"argon2id":try{const A=o({password:s,hash:i[0]}).then((e=>e)).catch((e=>!1));c=await Promise.race([A,t]).then((t=>(clearTimeout(e),t)))}catch(e){c=!1}break;default:continue}}}if(!c){const t=A.getUriFromString(e);for(let e=0;e!1));r&&(200===r.status&&r.headers.get("ariadne-identity-proof")&&(c=-1!==r.headers.get("ariadne-identity-proof").toLowerCase().indexOf(s.toLowerCase())))}}return c},s=async(e,t,i,A,n)=>{if(!e)return!1;if(Array.isArray(e)){let r=!1;for(let o=0;o{const A={result:!1,completed:!1,errors:[]},n=Array.isArray(t.claim)?t.claim:[t.claim];switch(t.proof.request.format){case r.ProofFormat.JSON:for(let t=0;t