(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors~7d359b94"],{"0eec":function(e,r,n){var t=n("2910"),i=n("f309"),o=n("6e69"),a=n("3975"),s=n("f4e6"),u=n("ef2a"),f=n("33ef"),c=["RS256","RS384","RS512","ES256","ES384","ES512"],d=["RS256","RS384","RS512"],p=["HS256","HS384","HS512"];u&&(c.splice(3,0,"PS256","PS384","PS512"),d.splice(3,0,"PS256","PS384","PS512")),e.exports=function(e,r,n,u){var l;if("function"!==typeof n||u||(u=n,n={}),n||(n={}),n=Object.assign({},n),l=u||function(e,r){if(e)throw e;return r},n.clockTimestamp&&"number"!==typeof n.clockTimestamp)return l(new t("clockTimestamp must be a number"));if(void 0!==n.nonce&&("string"!==typeof n.nonce||""===n.nonce.trim()))return l(new t("nonce must be a non-empty string"));var y=n.clockTimestamp||Math.floor(Date.now()/1e3);if(!e)return l(new t("jwt must be provided"));if("string"!==typeof e)return l(new t("jwt must be a string"));var m,b=e.split(".");if(3!==b.length)return l(new t("jwt malformed"));try{m=a(e,{complete:!0})}catch(w){return l(w)}if(!m)return l(new t("invalid token"));var g,h=m.header;if("function"===typeof r){if(!u)return l(new t("verify must be called asynchronous if secret or public key is provided as a callback"));g=r}else g=function(e,n){return n(null,r)};return g(h,(function(r,a){if(r)return l(new t("error in secret or public key callback: "+r.message));var u,g=""!==b[2].trim();if(!g&&a)return l(new t("jwt signature is required"));if(g&&!a)return l(new t("secret or public key must be provided"));if(g||n.algorithms||(n.algorithms=["none"]),n.algorithms||(n.algorithms=~a.toString().indexOf("BEGIN CERTIFICATE")||~a.toString().indexOf("BEGIN PUBLIC KEY")?c:~a.toString().indexOf("BEGIN RSA PUBLIC KEY")?d:p),!~n.algorithms.indexOf(m.header.alg))return l(new t("invalid algorithm"));try{u=f.verify(e,m.header.alg,a)}catch(B){return l(B)}if(!u)return l(new t("invalid signature"));var w=m.payload;if("undefined"!==typeof w.nbf&&!n.ignoreNotBefore){if("number"!==typeof w.nbf)return l(new t("invalid nbf value"));if(w.nbf>y+(n.clockTolerance||0))return l(new i("jwt not active",new Date(1e3*w.nbf)))}if("undefined"!==typeof w.exp&&!n.ignoreExpiration){if("number"!==typeof w.exp)return l(new t("invalid exp value"));if(y>=w.exp+(n.clockTolerance||0))return l(new o("jwt expired",new Date(1e3*w.exp)))}if(n.audience){var v=Array.isArray(n.audience)?n.audience:[n.audience],x=Array.isArray(w.aud)?w.aud:[w.aud],j=x.some((function(e){return v.some((function(r){return r instanceof RegExp?r.test(e):r===e}))}));if(!j)return l(new t("jwt audience invalid. expected: "+v.join(" or ")))}if(n.issuer){var E="string"===typeof n.issuer&&w.iss!==n.issuer||Array.isArray(n.issuer)&&-1===n.issuer.indexOf(w.iss);if(E)return l(new t("jwt issuer invalid. expected: "+n.issuer))}if(n.subject&&w.sub!==n.subject)return l(new t("jwt subject invalid. expected: "+n.subject));if(n.jwtid&&w.jti!==n.jwtid)return l(new t("jwt jwtid invalid. expected: "+n.jwtid));if(n.nonce&&w.nonce!==n.nonce)return l(new t("jwt nonce invalid. expected: "+n.nonce));if(n.maxAge){if("number"!==typeof w.iat)return l(new t("iat required when maxAge is specified"));var S=s(n.maxAge,w.iat);if("undefined"===typeof S)return l(new t('"maxAge" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'));if(y>=S+(n.clockTolerance||0))return l(new o("maxAge exceeded",new Date(1e3*S)))}if(!0===n.complete){var k=m.signature;return l(null,{header:h,payload:w,signature:k})}return l(null,w)}))}},"14b7":function(e,r,n){e.exports={decode:n("3975"),verify:n("0eec"),sign:n("2567"),JsonWebTokenError:n("2910"),NotBeforeError:n("f309"),TokenExpiredError:n("6e69")}},2567:function(e,r,n){(function(r){var t=n("f4e6"),i=n("ef2a"),o=n("33ef"),a=n("9cfb"),s=n("0354"),u=n("4db4"),f=n("67de"),c=n("cd93"),d=n("99f9"),p=n("eb4c"),l=["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512","none"];i&&l.splice(3,0,"PS256","PS384","PS512");var y={expiresIn:{isValid:function(e){return u(e)||d(e)&&e},message:'"expiresIn" should be a number of seconds or string representing a timespan'},notBefore:{isValid:function(e){return u(e)||d(e)&&e},message:'"notBefore" should be a number of seconds or string representing a timespan'},audience:{isValid:function(e){return d(e)||Array.isArray(e)},message:'"audience" must be a string or array'},algorithm:{isValid:a.bind(null,l),message:'"algorithm" must be a valid string enum value'},header:{isValid:c,message:'"header" must be an object'},encoding:{isValid:d,message:'"encoding" must be a string'},issuer:{isValid:d,message:'"issuer" must be a string'},subject:{isValid:d,message:'"subject" must be a string'},jwtid:{isValid:d,message:'"jwtid" must be a string'},noTimestamp:{isValid:s,message:'"noTimestamp" must be a boolean'},keyid:{isValid:d,message:'"keyid" must be a string'},mutatePayload:{isValid:s,message:'"mutatePayload" must be a boolean'}},m={iat:{isValid:f,message:'"iat" should be a number of seconds'},exp:{isValid:f,message:'"exp" should be a number of seconds'},nbf:{isValid:f,message:'"nbf" should be a number of seconds'}};function b(e,r,n,t){if(!c(n))throw new Error('Expected "'+t+'" to be a plain object.');Object.keys(n).forEach((function(i){var o=e[i];if(o){if(!o.isValid(n[i]))throw new Error(o.message)}else if(!r)throw new Error('"'+i+'" is not allowed in "'+t+'"')}))}function g(e){return b(y,!1,e,"options")}function h(e){return b(m,!0,e,"payload")}var w={audience:"aud",issuer:"iss",subject:"sub",jwtid:"jti"},v=["expiresIn","notBefore","noTimestamp","audience","issuer","subject","jwtid"];e.exports=function(e,n,i,a){"function"===typeof i?(a=i,i={}):i=i||{};var s="object"===typeof e&&!r.isBuffer(e),u=Object.assign({alg:i.algorithm||"HS256",typ:s?"JWT":void 0,kid:i.keyid},i.header);function f(e){if(a)return a(e);throw e}if(!n&&"none"!==i.algorithm)return f(new Error("secretOrPrivateKey must have a value"));if("undefined"===typeof e)return f(new Error("payload is required"));if(s){try{h(e)}catch(y){return f(y)}i.mutatePayload||(e=Object.assign({},e))}else{var c=v.filter((function(e){return"undefined"!==typeof i[e]}));if(c.length>0)return f(new Error("invalid "+c.join(",")+" option for "+typeof e+" payload"))}if("undefined"!==typeof e.exp&&"undefined"!==typeof i.expiresIn)return f(new Error('Bad "options.expiresIn" option the payload already has an "exp" property.'));if("undefined"!==typeof e.nbf&&"undefined"!==typeof i.notBefore)return f(new Error('Bad "options.notBefore" option the payload already has an "nbf" property.'));try{g(i)}catch(y){return f(y)}var d=e.iat||Math.floor(Date.now()/1e3);if(i.noTimestamp?delete e.iat:s&&(e.iat=d),"undefined"!==typeof i.notBefore){try{e.nbf=t(i.notBefore,d)}catch(m){return f(m)}if("undefined"===typeof e.nbf)return f(new Error('"notBefore" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}if("undefined"!==typeof i.expiresIn&&"object"===typeof e){try{e.exp=t(i.expiresIn,d)}catch(m){return f(m)}if("undefined"===typeof e.exp)return f(new Error('"expiresIn" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}Object.keys(w).forEach((function(r){var n=w[r];if("undefined"!==typeof i[r]){if("undefined"!==typeof e[n])return f(new Error('Bad "options.'+r+'" option. The payload already has an "'+n+'" property.'));e[n]=i[r]}}));var l=i.encoding||"utf8";if("function"!==typeof a)return o.sign({header:u,payload:e,secret:n,encoding:l});a=a&&p(a),o.createSign({header:u,privateKey:n,payload:e,encoding:l}).once("error",a).once("done",(function(e){a(null,e)}))}}).call(this,n("1c35").Buffer)},2910:function(e,r){var n=function(e,r){Error.call(this,e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="JsonWebTokenError",this.message=e,r&&(this.inner=r)};n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,e.exports=n},3975:function(e,r,n){var t=n("33ef");e.exports=function(e,r){r=r||{};var n=t.decode(e,r);if(!n)return null;var i=n.payload;if("string"===typeof i)try{var o=JSON.parse(i);null!==o&&"object"===typeof o&&(i=o)}catch(a){}return!0===r.complete?{header:n.header,payload:i,signature:n.signature}:i}},"3fb5":function(e,r){"function"===typeof Object.create?e.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}}},"6e69":function(e,r,n){var t=n("2910"),i=function(e,r){t.call(this,e),this.name="TokenExpiredError",this.expiredAt=r};i.prototype=Object.create(t.prototype),i.prototype.constructor=i,e.exports=i},e3db:function(e,r){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},ef2a:function(e,r,n){(function(r){var t=n("8d61");e.exports=t.satisfies(r.version,"^6.12.0 || >=8.0.0")}).call(this,n("4362"))},f309:function(e,r,n){var t=n("2910"),i=function(e,r){t.call(this,e),this.name="NotBeforeError",this.date=r};i.prototype=Object.create(t.prototype),i.prototype.constructor=i,e.exports=i},f4e6:function(e,r,n){var t=n("1468");e.exports=function(e,r){var n=r||Math.floor(Date.now()/1e3);if("string"===typeof e){var i=t(e);if("undefined"===typeof i)return;return Math.floor(n+i/1e3)}return"number"===typeof e?n+e:void 0}}}]); //# sourceMappingURL=chunk-vendors~7d359b94.076637f1.js.map